/**
 * Breatheazy Landing Page Styles
 *
 * Mobile-first styles for the landing page template.
 * Uses CSS custom properties from the child theme's style.css.
 *
 * @package Breatheazy_Child
 * @since   1.0.0
 */

/* ==========================================================================
   Layout
   ========================================================================== */

/*
 * Astra Full-Width Override
 * -------------------------
 * Astra's "Boxed" site layout wraps page content inside .ast-container (or
 * similar wrappers) that carry a max-width and horizontal padding, causing
 * section backgrounds to cut off at hard edges instead of spanning the
 * full viewport width.
 *
 * The PHP filters in inc/landing-page.php (astra_site_layout,
 * astra_page_layout) are the primary fix. These CSS rules are a belt-and-
 * suspenders fallback that handles any residual constraint Astra may inject
 * via .ast-container, .entry-content, or .site-content regardless of the
 * Astra version or active addons.
 *
 * Pattern: section backgrounds go edge-to-edge (100vw); the inner
 * .breatheazy-container constrains content to 1200 px centered.
 */

/* Remove max-width and padding from Astra's content wrappers when the
   landing page template is active. The body class breatheazy-landing-page
   is added by inc/landing-page.php via the body_class filter. */
.breatheazy-landing-page #content,
.breatheazy-landing-page .site-content,
.breatheazy-landing-page .ast-container,
.breatheazy-landing-page #primary,
.breatheazy-landing-page .content-area,
.breatheazy-landing-page .entry-content,
.breatheazy-landing-page .ast-article-single {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	float: none !important;
}

/* The .breatheazy-landing wrapper itself must stretch to the full viewport.
   width: 100vw + negative margin technique is not needed here because the
   wrappers above are already reset to 100%. overflow-x: hidden prevents
   any subpixel scroll jank from the 100vw on the sections below. */
.breatheazy-landing {
	overflow-x: hidden;
	padding-bottom: 72px;
	font-size: 17px;
	line-height: 1.7;
	width: 100%;
}

/*
 * Section Full-Width Pattern
 * --------------------------
 * Every direct <section> child of .breatheazy-landing is implicitly 100%
 * wide because block elements stretch to fill their container. The
 * backgrounds painted on those sections therefore span the full viewport
 * once the ancestor containers are reset above.
 *
 * If a section still clips (e.g. Astra injects a wrapper with overflow:hidden),
 * the width: 100vw + negative horizontal margin technique below can be
 * applied directly to individual sections as a last resort. It is NOT used
 * by default because it causes a horizontal scrollbar unless the nearest
 * overflow:hidden ancestor is the viewport itself.
 */

.breatheazy-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--spacing-md);
}

.breatheazy-section__title {
	text-align: center;
	margin-bottom: var(--spacing-sm);
	color: var(--color-text);
}

.breatheazy-section__subtitle {
	text-align: center;
	color: var(--color-text-muted);
	margin-bottom: var(--spacing-xl);
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.breatheazy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 32px;
	font-family: var(--font-family-base);
	font-size: var(--font-size-lg);
	font-weight: 600;
	line-height: 1;
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	text-decoration: none;
	transition: background-color var(--transition-fast), transform var(--transition-fast);
	min-height: 52px;
}

.breatheazy-btn--primary,
.breatheazy-btn--accent {
	color: #FFFFFF;
	background-color: var(--color-accent);
}

.breatheazy-btn--primary:hover,
.breatheazy-btn--primary:focus,
.breatheazy-btn--accent:hover,
.breatheazy-btn--accent:focus {
	color: #FFFFFF;
	background-color: var(--color-accent-dark);
	transform: translateY(-2px);
}

/* WhatsApp button variant */
.breatheazy-btn--whatsapp {
	color: #FFFFFF;
	background-color: #25D366;
}

.breatheazy-btn--whatsapp:hover,
.breatheazy-btn--whatsapp:focus {
	color: #FFFFFF;
	background-color: #1ebe5d;
	transform: translateY(-2px);
}

/* ==========================================================================
   Coloured Section Backgrounds — Full Viewport Width
   ==========================================================================
   These sections have a non-white background that must span the full
   viewport width. They require no max-width of their own; background paint
   fills whatever width the element occupies. Width is 100% of the (now
   unconstrained) .breatheazy-landing wrapper.

   The sections affected: .breatheazy-hero, .breatheazy-stats,
   .breatheazy-doctor-trust (has background set via utility class in HTML),
   .breatheazy-trust-strip, .breatheazy-final-cta.

   Explicit width: 100% is set here as a belt-and-suspenders guard in case
   any ancestor still applies a non-100% width.
   ========================================================================== */

/* All direct sections within the landing page. Block elements are 100% wide
   by default, but we explicitly enforce this to guard against any Astra rule
   that may apply a max-width via an inherited or descendant selector. */
.breatheazy-landing > section {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.breatheazy-hero {
	padding: var(--spacing-xl) 0 var(--spacing-2xl);
	/* Impactful diagonal teal-to-blue gradient */
	background: linear-gradient(135deg, #0D9488 0%, #0B7C72 35%, #1E3A5F 100%);
	color: #FFFFFF;
}

.breatheazy-hero .breatheazy-container {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: var(--spacing-lg);
}

.breatheazy-hero__content {
	text-align: center;
}

/* Substantially larger hero headline */
.breatheazy-hero__title {
	font-size: clamp(2rem, 6vw, 3.5rem);
	color: #FFFFFF;
	margin-bottom: var(--spacing-sm);
	line-height: 1.15;
	font-weight: 800;
}

.breatheazy-hero__tagline {
	font-size: var(--font-size-xl);
	color: rgba(255, 255, 255, 0.9);
	font-weight: 600;
	margin-bottom: var(--spacing-md);
}

.breatheazy-hero__description {
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: var(--spacing-md);
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
	font-size: var(--font-size-lg);
}

/* Prominent price display */
.breatheazy-hero__price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: var(--spacing-sm);
	margin-bottom: var(--spacing-sm);
	line-height: 1;
	flex-wrap: wrap;
}

.breatheazy-hero__price-current {
	font-size: clamp(2.25rem, 7vw, 3.25rem);
	font-weight: 800;
	color: #FFFFFF;
}

.breatheazy-hero__price-mrp {
	font-size: var(--font-size-lg);
	font-weight: 400;
	color: rgba(255, 255, 255, 0.6);
}

.breatheazy-hero__price-mrp del {
	text-decoration: line-through;
}

/* Kerala delivery badge */
.breatheazy-hero__delivery-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--radius-full);
	padding: 6px 14px;
	font-size: var(--font-size-sm);
	color: #FFFFFF;
	margin-bottom: var(--spacing-lg);
	backdrop-filter: blur(4px);
}

/* Dual CTA group */
.breatheazy-hero__cta-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-sm);
}

.breatheazy-hero__cta {
	font-size: var(--font-size-xl);
	padding: 16px 48px;
	width: 100%;
	max-width: 280px;
}

.breatheazy-hero__cta-wa {
	font-size: var(--font-size-lg);
	padding: 14px 32px;
	width: 100%;
	max-width: 280px;
}

/* Product image */
.breatheazy-hero__image {
	width: 100%;
	max-width: 320px;
}

.breatheazy-hero__img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	box-shadow: 0 0 40px rgba(255, 255, 255, 0.15), 0 20px 40px rgba(0, 0, 0, 0.2);
	object-fit: cover;
}

/* ==========================================================================
   Product Specifications
   ========================================================================== */

.breatheazy-specs {
	padding: var(--spacing-2xl) 0;
}

.breatheazy-specs__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--spacing-md);
	margin-top: var(--spacing-lg);
}

.breatheazy-spec-card {
	background: var(--color-bg);
	border-radius: var(--radius-md);
	padding: var(--spacing-lg);
	text-align: center;
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--transition-base);
}

.breatheazy-spec-card:hover {
	box-shadow: var(--shadow-md);
}

.breatheazy-spec-card__icon {
	color: var(--color-primary);
	margin-bottom: var(--spacing-sm);
}

.breatheazy-spec-card__label {
	font-size: var(--font-size-sm);
	font-weight: 600;
	color: var(--color-text-muted);
	margin-bottom: var(--spacing-xs);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.breatheazy-spec-card__value {
	font-size: var(--font-size-xl);
	font-weight: 700;
	color: var(--color-secondary);
	margin: 0;
}

/* ==========================================================================
   Social Proof Counter Strip
   ========================================================================== */

.breatheazy-stats {
	background-color: var(--color-primary);
	padding: var(--spacing-xl) 0;
}

.breatheazy-stats__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--spacing-md);
	text-align: center;
}

.breatheazy-stats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.breatheazy-stats__number {
	display: block;
	font-size: clamp(2rem, 6vw, 3rem);
	font-weight: 800;
	color: #FFFFFF;
	line-height: 1;
}

.breatheazy-stats__label {
	font-size: var(--font-size-sm);
	color: rgba(255, 255, 255, 0.85);
	font-weight: 500;
}

/* ==========================================================================
   Use Cases — "Does Your Family Struggle With..."
   ========================================================================== */

.breatheazy-use-cases {
	padding: var(--spacing-2xl) 0;
}

.breatheazy-use-cases__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--spacing-md);
}

.breatheazy-use-case-card {
	background: var(--color-surface);
	border-radius: var(--radius-md);
	padding: var(--spacing-lg);
	text-align: center;
	transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.breatheazy-use-case-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.breatheazy-use-case-card__icon {
	color: var(--color-primary);
	margin-bottom: var(--spacing-sm);
}

.breatheazy-use-case-card__title {
	font-size: var(--font-size-lg);
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: var(--spacing-xs);
}

.breatheazy-use-case-card__desc {
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
	margin: 0;
	line-height: 1.5;
}

/* ==========================================================================
   Doctor Endorsement — revamped layout
   ========================================================================== */

.breatheazy-doctor-trust {
	padding: var(--spacing-2xl) 0;
}

.breatheazy-doctor-trust__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-lg);
	text-align: center;
}

/* Circular photo placeholder */
.breatheazy-doctor-trust__photo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	border: 3px solid rgba(255, 255, 255, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
	flex-shrink: 0;
}

.breatheazy-doctor-trust__content {
	flex: 1;
}

.breatheazy-doctor-trust__title {
	color: #FFFFFF;
	margin-bottom: var(--spacing-md);
}

.breatheazy-doctor-trust__quote {
	margin: 0 0 var(--spacing-md);
	padding: 0;
	border: none;
}

.breatheazy-doctor-trust__quote p {
	color: rgba(255, 255, 255, 0.95);
	font-size: var(--font-size-xl);
	font-style: italic;
	line-height: 1.7;
	margin: 0;
}

.breatheazy-doctor-trust__cite {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-style: normal;
}

.breatheazy-doctor-trust__cite strong {
	color: #FFFFFF;
	font-size: var(--font-size-lg);
}

.breatheazy-doctor-trust__cite span {
	color: rgba(255, 255, 255, 0.75);
	font-size: var(--font-size-sm);
}

/* ==========================================================================
   Key Benefits — larger cards, bigger icons
   ========================================================================== */

.breatheazy-benefits {
	padding: var(--spacing-2xl) 0;
}

.breatheazy-benefits__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-md);
	margin-top: var(--spacing-lg);
}

.breatheazy-benefit-card {
	background: var(--color-bg);
	border-radius: var(--radius-lg);
	padding: var(--spacing-xl);
	text-align: center;
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.breatheazy-benefit-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.breatheazy-benefit-card__icon {
	color: var(--color-primary);
	margin-bottom: var(--spacing-md);
}

.breatheazy-benefit-card__title {
	font-size: var(--font-size-xl);
	font-weight: 700;
	color: var(--color-secondary);
	margin-bottom: var(--spacing-sm);
}

.breatheazy-benefit-card__desc {
	color: var(--color-text-muted);
	margin: 0;
	font-size: var(--font-size-lg);
	line-height: 1.6;
}

/* ==========================================================================
   Trust Badges Strip
   ========================================================================== */

.breatheazy-trust-strip {
	background-color: var(--color-surface);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
	padding: var(--spacing-xl) 0;
}

.breatheazy-trust-strip__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--spacing-lg);
	justify-items: center;
}

.breatheazy-trust-strip__item {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	font-size: var(--font-size-base);
	font-weight: 600;
	color: var(--color-text);
}

.breatheazy-trust-strip__icon {
	color: var(--color-primary);
	flex-shrink: 0;
	display: flex;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.breatheazy-testimonials {
	padding: var(--spacing-2xl) 0;
}

.breatheazy-testimonials__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-md);
	margin-top: var(--spacing-lg);
}

.breatheazy-testimonial-card {
	background: var(--color-surface);
	border-radius: var(--radius-md);
	padding: var(--spacing-lg);
	margin: 0;
	border-left: 4px solid var(--color-primary);
}

.breatheazy-testimonial-card__text {
	font-style: italic;
	color: var(--color-text);
	margin-bottom: var(--spacing-md);
	line-height: 1.7;
	font-size: var(--font-size-lg);
}

.breatheazy-testimonial-card__text::before {
	content: "\201C";
	font-size: var(--font-size-3xl);
	color: var(--color-primary);
	line-height: 0;
	vertical-align: -0.4em;
	margin-right: 4px;
}

.breatheazy-testimonial-card__author {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
}

.breatheazy-testimonial-card__name {
	font-style: normal;
	font-weight: 600;
	color: var(--color-secondary);
}

.breatheazy-testimonial-card__location {
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.breatheazy-faq {
	padding: var(--spacing-2xl) 0;
}

.breatheazy-faq__list {
	max-width: 720px;
	margin: var(--spacing-lg) auto 0;
}

.breatheazy-faq__item {
	background: var(--color-bg);
	border-radius: var(--radius-md);
	margin-bottom: var(--spacing-sm);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.breatheazy-faq__question {
	padding: var(--spacing-md) var(--spacing-lg);
	font-weight: 600;
	font-size: var(--font-size-lg);
	color: var(--color-text);
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 56px;
}

.breatheazy-faq__question::-webkit-details-marker {
	display: none;
}

.breatheazy-faq__question::after {
	content: "+";
	font-size: var(--font-size-xl);
	font-weight: 400;
	color: var(--color-primary);
	flex-shrink: 0;
	margin-left: var(--spacing-md);
	transition: transform var(--transition-fast);
}

.breatheazy-faq__item[open] .breatheazy-faq__question::after {
	transform: rotate(45deg);
}

.breatheazy-faq__answer {
	padding: 0 var(--spacing-lg) var(--spacing-md);
	color: var(--color-text-muted);
	font-size: var(--font-size-lg);
	line-height: 1.7;
}

.breatheazy-faq__answer p {
	margin: 0;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.breatheazy-final-cta {
	padding: var(--spacing-2xl) 0;
	text-align: center;
}

.breatheazy-final-cta__title {
	color: #FFFFFF;
	margin-bottom: var(--spacing-md);
}

.breatheazy-final-cta__text {
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: var(--spacing-lg);
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
	font-size: var(--font-size-lg);
}

.breatheazy-final-cta__button {
	font-size: var(--font-size-xl);
	padding: 16px 48px;
}

/* Footer note below CTA button */
.breatheazy-final-cta__note {
	margin-top: var(--spacing-md);
	color: rgba(255, 255, 255, 0.7);
	font-size: var(--font-size-sm);
}

/* ==========================================================================
   Sticky Mobile CTA
   ========================================================================== */

.breatheazy-sticky-cta {
	display: block;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999;
	background: var(--color-bg);
	padding: var(--spacing-sm) var(--spacing-md);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.breatheazy-sticky-cta__button {
	display: flex;
	width: 100%;
	font-size: var(--font-size-lg);
	padding: 14px;
}

/* ==========================================================================
   Floating WhatsApp FAB
   ========================================================================== */

.breatheazy-whatsapp-fab {
	position: fixed;
	/* On mobile: sit above the sticky CTA bar (~72px) plus a gap */
	bottom: 84px;
	right: 20px;
	z-index: 1000;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: #25D366;
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
	text-decoration: none;
	transition: background-color var(--transition-fast), transform var(--transition-fast);
	animation: breatheazy-whatsapp-pulse 2.5s ease-out 1;
}

.breatheazy-whatsapp-fab:hover,
.breatheazy-whatsapp-fab:focus {
	background-color: #1ebe5d;
	color: #FFFFFF;
	transform: scale(1.08);
	animation: none;
}

@keyframes breatheazy-whatsapp-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
	50%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
	100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45); }
}

/* ==========================================================================
   Responsive — Tablet (544px+)
   ========================================================================== */

@media (min-width: 544px) {
	.breatheazy-use-cases__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.breatheazy-benefits__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.breatheazy-testimonials__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.breatheazy-hero__image {
		max-width: 360px;
	}

	.breatheazy-hero__cta-group {
		flex-direction: row;
		justify-content: center;
		flex-wrap: wrap;
	}

	.breatheazy-hero__cta,
	.breatheazy-hero__cta-wa {
		width: auto;
		max-width: none;
	}

	.breatheazy-trust-strip__grid {
		grid-template-columns: repeat(4, 1fr);
	}

	/* Doctor trust — side-by-side on tablet+ */
	.breatheazy-doctor-trust__inner {
		flex-direction: row;
		text-align: left;
		align-items: flex-start;
	}

	.breatheazy-doctor-trust__quote p {
		font-size: var(--font-size-lg);
	}

	.breatheazy-doctor-trust__cite {
		align-items: flex-start;
	}
}

/* ==========================================================================
   Responsive — Desktop (922px+)
   ========================================================================== */

@media (min-width: 922px) {
	.breatheazy-landing {
		padding-bottom: 0;
	}

	.breatheazy-hero .breatheazy-container {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.breatheazy-hero__content {
		text-align: left;
		flex: 1;
		max-width: 560px;
	}

	.breatheazy-hero__description {
		margin-left: 0;
	}

	.breatheazy-hero__price {
		justify-content: flex-start;
	}

	.breatheazy-hero__delivery-badge {
		margin-left: 0;
	}

	.breatheazy-hero__cta-group {
		justify-content: flex-start;
	}

	.breatheazy-hero__image {
		max-width: 420px;
		flex-shrink: 0;
	}

	.breatheazy-specs__grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.breatheazy-use-cases__grid {
		grid-template-columns: repeat(3, 1fr);
		max-width: 900px;
		margin-left: auto;
		margin-right: auto;
	}

	.breatheazy-benefits__grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.breatheazy-testimonials__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	/* Hide sticky CTA on desktop — full CTAs are visible */
	.breatheazy-sticky-cta {
		display: none;
	}

	/* On desktop, float above Astra's scroll-to-top button */
	.breatheazy-whatsapp-fab {
		bottom: 100px;
	}
}
