/*
Theme Name: AV Dispensary
Theme URI: https://avsocialstrategies.com
Author: AV Social Strategies
Author URI: http://avsocialstrategies.com
Description: AV Dispensary WordPress Theme
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.3
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: av-dispensary
Tags: Blog, Portfolio, Entertainment, Grid Layout, One Column, Two Columns, Three Columns, Four Columns, Block Editor Patterns, Block Editor Styles, Custom Logo, custom-menu, Editor Style, Featured Images, Site Editor, Full Width Template, rtl-language-support, Style Variations, Template Editing, Theme Options, translation-ready, Wide Blocks

AV Dispensary WordPress Theme, (C) 2025 AV Social Strategies.
AV Dispensary is distributed under the terms of the GNU GPL.
*/

/* CSS Reset
---------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

b,
strong {
	font-weight: var(--wp--custom--font-weight--semi-bold);
}

ol,
ul {
	padding: 0;
}

ol:where(:not([class*="wp-block"])),
ol:where(.wp-block-list),
ul:where(:not([class*="wp-block"])),
ul:where(.wp-block-list) {
	padding-inline-start: var(--wp--preset--spacing--medium);
}

div[class*="wp-block-"] figcaption {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--x-small);
	margin-bottom: 0;
	margin-top: 20px;
	text-align: center;
}

img,
figure {
	max-width: 100%;
	height: auto;
}

/* Temporary fix for text-decoration-thickness in Firefox */
@-moz-document url-prefix() {
	a {
		text-decoration-thickness: .1rem !important;
	}
}

/* Standardize form styling
--------------------------------------------- */

input,
button,
textarea,
select {
	font: inherit;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
	appearance: none;
}

input:not([type="submit"]),
select,
textarea,
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
	color: var(--wp--preset--color--main);
	border-radius: 5px;
	border: solid 1px var(--wp--preset--color--border-light);
	padding: .5em 1em;
	font-size: var(--wp--preset--font-size--small);
	background-color: #fff;
}

input:focus-visible,
textarea:focus-visible {
	outline-color: var(--wp--preset--color--primary);
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

label {
	width: 100%;
	display: block;
}

::placeholder {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.75;
}

/* Helper styles
---------------------------------------------------------------------------- */

a.more-link {
	display: block;
}

/* Inline code */
*:not(.wp-block-code) > code {
	background-color: var(--wp--preset--color--tertiary);
	padding: 3px 5px;
	position: relative;
	border-radius: 3px;
}

.wp-block-categories {
	position: relative;
}

/* Adjust terms at bottom of posts */
.single .wp-block-group .wp-block-post-terms,
.blog .wp-block-group .wp-block-post-terms {
	margin-bottom: -8px !important;
}

/* Remove margin on term description on archive pages */
.wp-block-term-description p:last-child {
	margin-bottom: 0;
}

/* Remove last separator on post list */
.remove-border-and-padding .wp-block-post-template li:last-child .wp-block-separator {
	display: none;
}

/* Hide post meta div if no tags assigned */
.single .wp-block-group:has(> .post-meta:empty) {
	display: none;
}

.wp-block-group:empty:has(+ .comment-respond) {
	display: none;
}

.row-logos > figure {
	flex-shrink: 1 !important;
}

/* Sticky header */

header:has(>.is-position-sticky) {
	position: sticky;
	top: calc( 0px + var( --wp-admin--admin-bar--height, 0px ) );
	z-index: 100;
}

/* Account for admin bar on mobile */

@media (max-width: 600px) {
	header:has(>.is-position-sticky) {
		top: 0;
	}
}  

.clear-both {
	clear: both;
}

/* Coming Soon Page */

/* make the paragraph track the logo bottom */
.logo-lockup {
	position: relative;
	display: inline-block;       /* shrink-wrap to the logo width */
  }
  .logo-lockup img {
	display: block;              /* remove inline gap */
  }
  .logo-address {
	position: relative;
	top: clamp(-25px, -1rem - 1vw, -16px);
	left: 39px;
  }

  @media (min-width: 530px) {
	.logo-address {
		left: unset;
	}
  }

  /* Rewards Pattern */
  .rewards-logo{
	position: relative;
  }

  .rewards-logo h2{
	position: relative;
	top: -25px;
  }
  
/* Icons */
.wp-block-image.is-style-icon-small{
	display: inline-block;
}

.wp-block-image.is-style-icon-small img{
	display: block;
}




/* === Subscribe pill =============================================== */
.av-subscribe{
	--h: clamp(40px, 5vw, 60px);            /* control height here */
	--r: 16px;   /* pill radius */
	--bg: rgba(255,255,255,.95);
	--text: #5b4c4e;           /* tweak to your brand text color */
	--primary: var(--wp--preset--color--primary, #d07db3); /* theme.json primary */
	
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	column-gap: 0;
	max-width: 600px; /* optional */
  }
  
  /* remove default CF7 spacing */
  .av-subscribe p{ margin:0; }
  .wpcf7 form .wpcf7-response-output, .wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
	border-color: var(--primary);
	grid-column: 1 / -1;
	margin: 1rem 0 0;
	color: #fff;
}
  
  /* Hide the label text visually (keep it in the DOM) */
  .av-subscribe > label{
	display:block;
	font-size:0;               /* hide only the text node */
  }
  .av-subscribe p:first-of-type > label br{ display:none; }
  
  /* input wrapper should be block so it fills the grid cell */
  .av-subscribe .wpcf7-form-control-wrap{ display:block; }
  
  /* email input */
  .av-subscribe input.wpcf7-email{
	width:100%;
	height:var(--h);
	padding:0 clamp(15px, 2vw, 28px);
	border:0;
	border-radius: 0;
	background: var(--bg);
	color: var(--text);
	font-size: clamp(16px, 2.2vw, 24px);
	line-height:1;
	box-shadow: inset 0 1px 0 rgba(0,0,0,.05);
	-webkit-appearance: none;
  }
  .av-subscribe input.wpcf7-email::placeholder{
	color: var(--text);
	opacity:.7;
  }
  .av-subscribe input.wpcf7-email:focus{
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in hsl, var(--primary) 35%, transparent);
  }
  
  /* submit button */
  .av-subscribe input.wpcf7-submit {
	height: var(--h);
	padding: 0 clamp(15px, 2vw, 28px);
	border: 0;
	border-radius: 0;
	background: var(--primary);
	color: #fff;
	font-weight: 600;
	font-size: clamp(1rem, 0.5rem + 1.5vw, 1.5625rem);
	letter-spacing: .02em;
	cursor: pointer;
	transition: filter .15s ease, transform .15s ease;
	font-family: var(--wp--preset--font-family--be-vietnam-pro);
}
  .av-subscribe input.wpcf7-submit:hover{ filter:brightness(1.04); }
  
  /* optional: tidy spinner */
  .av-subscribe .wpcf7-spinner{ margin-left:10px; display: none; }

  
  

/* Make inner shell respect safe viewport height for mobile browser chrome */
@supports (height: 100dvh){
  .cs-shell{ min-height: 100dvh; }
}

/* Footer */
footer a {
	text-decoration: none;
}

/* Store Details */
@media (min-width: 781px) {
	.store-details{
		padding: 7rem 4rem;
	}
}

@media (max-width: 781px) {
	footer .has-mobile-border {
		position: relative;
		}
		
		footer .has-mobile-border::before {
			content: "";
			position: absolute;
			top: calc((var(--wp--preset--spacing--medium) / -2) + 2px);
			left: 50%;                 /* anchor at the center of the section */
			width: 100vw;              /* span the entire viewport */
			height: 1px;
			background: var(--wp--preset--color--base);
			transform: translateX(-50%); /* center the 100vw bar on the viewport */
			pointer-events: none;   /* centers the line across viewport */
	}

	footer .has-mobile-border.first-section::before {
		top: calc((var(--wp--preset--spacing--x-large) / -2) + 2px);
	}

	footer nav{
		max-width: 300px;
	}

	footer nav.wp-block-navigation ul li a:where(:not(.wp-element-button)){
		padding-top: 2px;
		padding-bottom: 2px;
	}
}

/* Hero Slider */

.hero-slider #n2-ss-2-arrow-previous {
	width: 45px;
	padding: 8px 0px 8px 4px !important;
	border-radius: 0 25px 25px 0 !important;
}

.hero-slider #n2-ss-2-arrow-next {
	width: 45px;
	padding: 8px 0px 8px 8px !important;
	border-radius: 25px 0 0 25px !important;
}

/* Subcribe Block */
@media (max-width: 781px) {
	.av-subscribe-block p.has-text-align-left{
		text-align: center;
	}
}

@media (min-width: 1076px) {
	header .wp-block-site-logo{
		position: relative;
		top: -10px;
	}
}

@media (min-width: 600px){
	.hide-on-desktop{
		display: none!important;
	}
}

/* Sticky Header Behaviors
--------------------------------------------- */

/* Sticky top header - always sticks to top */
.site-header {
	position: sticky;
	top: 0;
	z-index: 105;
	background: var(--wp--preset--color--base);
}

/* Sticky horizontal nav - sticks after carousel scrolls away */
.header-navigation {
	position: sticky;
	top: 169px;
	z-index: 101;
	background: var(--wp--preset--color--base);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	border-top: 1px solid #eee;
}

@media (min-width: 600px){
	.header-navigation {
		top: 229px;
	}
}

@media (min-width: 665px){
	.header-navigation {
		top: 181px;
	}
}

@media (min-width: 956px){
	.header-navigation {
		top: 136px;
	}
}

/* More Links Grid */

.more-links-grid .wp-block-buttons > .wp-block-button.wp-block-button__width-100{
	aspect-ratio: 1/1;
}

@media (max-width:600px) {
	.more-links-grid{
		grid-template-columns: repeat(2, 1fr);
	}
}

.page-id-861 .header-navigation{
	display: none;
}

.page-id-861 .header-carousel{
	display: none;
}

.page-id-861 .av-dutchie-search{
	display: none;
}

@media (min-width: 968px ) {
	.av-dutchie-search {
		margin-left: auto !important;
	}
}

/* Reverse column order only on mobile */
@media (max-width: 781px) { /* WordPress mobile breakpoint for columns */
    .wp-block-columns.reverse-mobile {
        flex-direction: column-reverse !important;
    }
}

/* Stack grid on mobile */
/* Default: 1 column on mobile */
@media (max-width: 781px) {
	.stack-mobile {
		grid-template-columns: 1fr !important;
	}
}

/* Contact Page */
/* --- Scope ------------------------------------------------------- */
.av-contact { width: 100%; }
.av-contact * { box-sizing: border-box; }

/* Card wrapper (border + padding like screenshot) */
.av-contact__card{
  width: 100%;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: clamp(16px, 3vw, 28px);
  background: #fff;
}

/* Stack fields with spacing */
.av-contact .wpcf7-form-control-wrap,
.av-contact .wpcf7-form-control {
  display: block;
  width: 100%;
}
.av-contact .wpcf7-form-control-wrap { margin-bottom: 18px; }

/* Inputs & textarea */
.av-contact input[type="text"],
.av-contact input[type="email"],
.av-contact textarea {
  width: 100%;
  border: 1px solid #e3e3e3;
  border-radius: 16px;
  background: #fff;
  padding: 16px 20px;
  font-size: 18px;
  line-height: 1.4;
  color: #444;
  outline: none;
  transition: box-shadow .15s, border-color .15s;
}

.av-contact textarea {
  min-height: 160px;           /* taller message box */
  resize: vertical;
}

/* Placeholder color */
.av-contact ::placeholder { color: #b3b3b3; }

/* Focus state */
.av-contact input:focus,
.av-contact textarea:focus {
  border-color: #d7d7d7;
  box-shadow: 0 0 0 3px rgba(0,0,0,.03);
}

/* Submit button: full-width pill using WP primary color */
.av-contact input[type="submit"]{
  display: block;
  width: 100%;
  border: 0;
  border-radius: 9999px;
  padding: clamp(18px, 3.2vw, 24px);
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 600;
  color: #fff;
  background: var(--wp--preset--color--primary);
  cursor: pointer;
  transition: filter .15s, transform .02s;
}
.av-contact input[type="submit"]:hover { filter: brightness(0.95); }
.av-contact input[type="submit"]:active { transform: translateY(1px); }

/* CF7 messages (keep layout intact, 100% width) */
.av-contact .wpcf7-response-output{
  margin: 14px 0 0;
  border-radius: 12px;
  padding: 12px 16px;
}

.wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output {
	border-color: var(--wp--preset--color--primary);
	border-radius: 10px;
	color: var(--wp--preset--color--primary-accent);
}

.wpcf7-not-valid-tip {
	color: var(--wp--preset--color--primary-accent);
}