/* Aqua Vision Care theme styles. Design tokens live in theme.json. */

/* ---------- Layout: force columns to flex (defensive) ---------- */
.wp-block-columns {
	display: flex !important;
	gap: 1.5rem;
	flex-wrap: wrap !important;
}
.wp-block-column {
	flex: 1 1 0 !important;
	min-width: 0;
}
@media (max-width: 781px) {
	.wp-block-columns {
		flex-direction: column;
	}
	.wp-block-column {
		flex: 1 1 100% !important;
	}
}

/* ---------- Layout: grid fallback (replaces wp:columns) ---------- */
.avc-grid {
	display: grid !important;
	gap: 1.5rem;
}
.avc-grid-2 {
	grid-template-columns: repeat(2, 1fr) !important;
}
.avc-grid-3 {
	grid-template-columns: repeat(3, 1fr) !important;
}
.avc-grid-4 {
	grid-template-columns: repeat(4, 1fr) !important;
}
.avc-grid-5 {
	grid-template-columns: repeat(5, 1fr) !important;
}
.avc-grid-item {
	min-width: 0;
}
@media (max-width: 781px) {
	.avc-grid-2,
	.avc-grid-3,
	.avc-grid-4,
	.avc-grid-5 {
		grid-template-columns: 1fr !important;
	}
}

/* ---------- Accessibility ---------- */
.avc-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #1E2A2B;
	color: #fff;
	padding: 0.75rem 1.25rem;
	z-index: 200;
	border-radius: 0 0 8px 0;
}
.avc-skip-link:focus {
	left: 0;
	color: #fff;
}
:focus-visible {
	outline: 3px solid #F2A33C;
	outline-offset: 2px;
}

/* ---------- Header ---------- */
.avc-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid #e5efef;
}
.avc-site-header.is-scrolled {
	box-shadow: 0 2px 12px rgba(15, 107, 110, 0.12);
}
.avc-header-inner {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	gap: 1rem;
}
.avc-header-actions {
	gap: 1rem;
	align-items: center;
}
.avc-phone-link {
	font-weight: 600;
	color: #2878C4;
	white-space: nowrap;
}
.avc-announcement {
	background: #2878C4;
	color: #fff;
	text-align: center;
	padding: 0.5rem 1rem;
}
.avc-announcement p {
	margin: 0;
	font-size: 0.9375rem;
}

/* ---------- Buttons ---------- */
.avc-btn {
	display: inline-block;
	background: #F2A33C;
	color: #1E2A2B;
	font-weight: 600;
	padding: 0.9rem 1.75rem;
	border-radius: 999px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
}
.avc-btn:hover {
	background: #d98f2e;
	color: #1E2A2B;
}
.avc-btn:active {
	transform: translateY(1px);
}

/* ---------- Shared pattern pieces ---------- */
.avc-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	margin-bottom: 0.5rem;
}
.avc-hero {
	padding: 4rem 0;
}
.avc-hero-image img {
	border-radius: 16px;
}
.avc-action-card,
.avc-service-card,
.avc-doctor-card,
.avc-review-card {
	border: 1px solid #e5efef;
	border-radius: 16px;
	padding: 1.75rem;
	box-shadow: 0 2px 10px rgba(15, 107, 110, 0.06);
	height: 100%;
}
.avc-action-card h3,
.avc-service-card h3 {
	margin-top: 0;
}
.avc-why-band,
.avc-mif-spotlight,
.avc-cta-band,
.avc-contacts-cta,
.avc-appointment-section,
.avc-promotions {
	padding: 4rem 0;
}
.avc-promotions .wp-block-columns {
	margin-top: 2rem;
}
.avc-promo-card {
	border-radius: 1rem;
	padding: 1.75rem;
	box-shadow: 0 2px 10px rgba(15, 107, 110, 0.06);
	height: 100%;
}
.avc-promo-card h3 {
	margin-top: 0;
}
.avc-promo-image {
	margin: 0 0 1rem;
}
.avc-promo-image img {
	border-radius: 0.75rem;
	width: 100%;
}
.avc-brands {
	padding: 4rem 0;
}
.avc-brands .wp-block-columns {
	margin-top: 2rem;
}
.avc-brands li {
	padding: 0.35rem 0;
	font-weight: 500;
}
.avc-brands-tech {
	margin-top: 2rem;
	font-size: 1.05rem;
}
.avc-dry-eye-spa {
	padding: 4rem 0;
}
.avc-dry-eye-spa .wp-block-columns {
	margin-top: 2rem;
}
.avc-spa-photo img {
	border-radius: 1rem;
}
.avc-spa-video {
	margin-top: 2rem;
}
.avc-spa-video video {
	border-radius: 1rem;
	width: 100%;
}
.avc-doctor-photo img {
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.avc-address {
	font-style: normal;
}
.avc-hours {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
}
.avc-hours li {
	padding: 0.35rem 0;
	border-bottom: 1px dashed #d7e4e4;
}
.avc-social-links {
	list-style: none;
	display: flex;
	gap: 1rem;
	padding: 0;
	margin: 1rem 0 0;
}
.avc-map-placeholder {
	background: #F4F7F7;
	border: 2px dashed #6FB5F2;
	border-radius: 16px;
	padding: 3rem 2rem;
	text-align: center;
	color: #2878C4;
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---------- Appointment form ---------- */
.avc-appointment-form {
	max-width: 720px;
	margin: 2rem auto 0;
	background: #fff;
	border-radius: 16px;
	padding: 2rem;
	border: 1px solid #e5efef;
}
.avc-form-note {
	color: #2878C4;
}
.avc-field {
	margin-bottom: 1.25rem;
}
.avc-field label,
.avc-legend {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4rem;
}
.avc-field input[type="text"],
.avc-field input[type="tel"],
.avc-field input[type="email"],
.avc-field input[type="date"],
.avc-field select,
.avc-field textarea {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1.5px solid #c9dcdc;
	border-radius: 10px;
	font-size: 1rem;
	background: #fff;
	color: #1E2A2B;
}
.avc-field input:focus,
.avc-field select:focus,
.avc-field textarea:focus {
	border-color: #2878C4;
	outline: none;
	box-shadow: 0 0 0 3px rgba(53, 181, 178, 0.25);
}
.avc-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}
.avc-radio {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 400;
	margin-right: 1.25rem;
}
.avc-consent label {
	font-weight: 400;
}
.avc-honeypot {
	position: absolute;
	left: -9999px;
}
.avc-form-error {
	background: #fde8e8;
	color: #9b1c1c;
	border-radius: 10px;
	padding: 0.9rem 1.1rem;
}
.avc-turnstile-field {
	margin: 1rem 0;
}

/* ---------- Footer ---------- */
.avc-site-footer {
	padding: 3.5rem 0 1.5rem;
}
.avc-site-footer a {
	color: #fff;
}
.avc-site-footer a:hover {
	color: #F2A33C;
}
.avc-site-footer .avc-hours li {
	border-bottom-color: rgba(255, 255, 255, 0.2);
}
.avc-footer-bottom {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 0.875rem;
}

/* ---------- WooCommerce boutique ---------- */
.woocommerce .avc-main {
	max-width: 87.5rem;
	margin: 0 auto;
	padding: 2rem 1.25rem 4rem;
}
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
	border-radius: 12px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	list-style: none;
}
.woocommerce-message {
	background: #e6f7f6;
	border: 1px solid #6FB5F2;
}
.woocommerce-info {
	background: #F4F7F7;
	border: 1px solid #c9dcdc;
}
.woocommerce-error {
	background: #fde8e8;
	border: 1px solid #e5a3a3;
}
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
	list-style: none;
	padding: 0;
	margin: 2rem 0;
}
/* Cart thumbnails: WooCommerce's block-theme CSS sets a fixed width without
   height, so the height attribute stretches images. Keep the aspect ratio. */
.woocommerce-page .woocommerce-cart-form .product-thumbnail a img,
.woocommerce table.cart .product-thumbnail img {
	width: 117px;
	height: auto;
	border-radius: .75rem;
}
.woocommerce ul.products li.product {
	background: #fff;
	border: 1px solid #e5efef;
	border-radius: 16px;
	padding: 1.25rem;
	text-align: center;
	display: flex;
	flex-direction: column;
}
.woocommerce ul.products li.product img {
	border-radius: 12px;
	margin-bottom: 1rem;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.1rem;
	font-weight: 600;
	color: #1E2A2B;
}
.woocommerce ul.products li.product .price {
	color: #2878C4;
	font-weight: 600;
	font-size: 1.15rem;
	margin: 0.5rem 0 1rem;
}
.woocommerce span.onsale {
	background: #F2A33C;
	color: #1E2A2B;
	font-weight: 700;
	border-radius: 999px;
	padding: 0.3rem 0.9rem;
	font-size: 0.8125rem;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: #F2A33C;
	color: #1E2A2B;
	font-weight: 600;
	border-radius: 999px;
	padding: 0.9rem 1.75rem;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: #d98f2e;
	color: #1E2A2B;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: #2878C4;
	color: #fff;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: #17456E;
	color: #fff;
}
.woocommerce div.product .summary .price {
	color: #2878C4;
	font-size: 1.75rem;
	font-weight: 700;
}
.avc-rx-note {
	background: #F4F7F7;
	border-left: 3px solid #6FB5F2;
	padding: 0.9rem 1.1rem;
	border-radius: 0 10px 10px 0;
	font-size: 0.95rem;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
	list-style: none;
	display: flex;
	gap: 0.5rem;
	padding: 0;
	border-bottom: 2px solid #e5efef;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: none;
	border: none;
	padding: 0.75rem 1.25rem;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	border-bottom: 3px solid #2878C4;
}
.woocommerce table.shop_table {
	border: 1px solid #e5efef;
	border-radius: 12px;
	border-collapse: separate;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 0.9rem 1rem;
}
.woocommerce table.shop_table thead {
	background: #F4F7F7;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	border: 1.5px solid #c9dcdc;
	border-radius: 10px;
	padding: 0.8rem 1rem;
}
.woocommerce form .form-row label {
	font-weight: 600;
}
.woocommerce .col2-set {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}
#order_review_heading {
	margin-top: 2rem;
}
.woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
}
.woocommerce-MyAccount-navigation ul li {
	padding: 0.6rem 0;
	border-bottom: 1px solid #e5efef;
}
.woocommerce-MyAccount-navigation ul li.is-active a {
	color: #2878C4;
	font-weight: 700;
}
.woocommerce-breadcrumb {
	margin-bottom: 1.5rem;
	color: #5b6f70;
}
.woocommerce-pagination ul {
	list-style: none;
	display: flex;
	gap: 0.5rem;
	padding: 0;
	justify-content: center;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
	display: inline-block;
	padding: 0.6rem 1rem;
	border: 1px solid #c9dcdc;
	border-radius: 10px;
}
.woocommerce-pagination ul li span.current {
	background: #2878C4;
	color: #fff;
	border-color: #2878C4;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
	.woocommerce .col2-set {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 640px) {
	.avc-form-row {
		grid-template-columns: 1fr;
	}
	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}
	.avc-header-actions .avc-phone-link {
		display: none;
	}
	.avc-hero {
		padding: 2.5rem 0;
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}
}

/* ---------- Shortcode-rendered site header/footer (block-template safe) ---------- */
@media (max-width: 781px) {
	.avc-sf-cols {
		grid-template-columns: 1fr !important;
	}
	.avc-sh-inner {
		flex-direction: column;
		text-align: center;
		justify-content: center;
	}
}

/* Phone link inside the dark shortcode header/footer */
.avc-sh .avc-phone-link,
.avc-sf .avc-phone-link {
	color: #FFFFFF;
}
.avc-sf address {
	font-style: normal;
}
