/*
Theme Name: VedYarta
Theme URI: https://vedyarta.com
Author: VedYarta
Description: Responsive medical-tourism theme for VedYarta — dental & orthopedic care in India. Mobile, tablet and desktop ready. Images and contact details are editable under Appearance → Customize → VedYarta Settings.
Version: 1.0.8
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: vedyarta
*/

/* ---------- Tokens ---------- */
:root {
	--navy: #0b3a5c;
	--navy-dark: #0a2d4a;
	--teal: #0e8c9b;
	--teal-light: #e6f5f7;
	--teal-soft: #f2fafb;
	--ink: #13324a;
	--text: #4a5d6e;
	--muted: #7a8b99;
	--line: #e3ecf1;
	--white: #ffffff;
	--radius: 14px;
	--radius-lg: 20px;
	--shadow: 0 6px 24px rgba(11, 58, 92, 0.08);
	--container: 1440px;
	--gutter: 16px;
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--script: "Caveat", "Segoe Script", cursive;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
svg { flex-shrink: 0; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 8px;
}
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 24px; } }

.section { padding: 56px 0; }
@media (min-width: 992px) { .section { padding: 80px 0; } }
.section--tint { background: linear-gradient(180deg, var(--teal-soft), #fff); }

.eyebrow {
	display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
}
.section-title { font-size: clamp(24px, 3.2vw, 32px); }
.section-lead { max-width: 520px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 22px; border-radius: 999px;
	font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
	border: 1.5px solid transparent; cursor: pointer; transition: all .2s ease;
	text-align: center;
}
.btn svg { width: 18px; height: 18px; }
.header-cta, .brand-tag, .brand-name { white-space: nowrap; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--teal); color: #fff; }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--teal); }
.btn--outline:hover { background: var(--teal-light); color: var(--navy); }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 14px; }
.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 700; color: var(--navy); font-size: 15px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
	backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-logo { width: 40px; height: 40px; }
.brand .custom-logo { max-height: 52px; width: auto; }
.brand-name { font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.brand-name span { color: var(--teal); font-weight: 600; }
.brand-tag { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav a {
	display: block; padding: 10px 10px; font-size: 14px; font-weight: 500; color: var(--ink);
	position: relative; white-space: nowrap;
}
.main-nav .current-menu-item > a, .main-nav a:hover { color: var(--teal); }
.main-nav .current-menu-item > a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
	height: 2px; background: var(--teal); border-radius: 2px;
}
.main-nav li { position: relative; }
.main-nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 210px; display: block;
	background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
	padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { padding: 8px 12px; border-radius: 8px; }
.main-nav .sub-menu a:hover { background: var(--teal-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
	display: none; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
	background: var(--teal-soft); border: 1px solid var(--line); font: 600 13px var(--font); color: var(--ink);
}
.lang-btn svg { width: 16px; height: 16px; }
.header-cta { display: none; }

.menu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
	background: #fff; color: var(--navy); cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.nav-open .menu-toggle .icon-open { display: none; }
.nav-open .menu-toggle .icon-close { display: block; }

/* Mobile drawer */
.mobile-nav {
	display: none; border-top: 1px solid var(--line); background: #fff;
	max-height: calc(100vh - 72px); overflow-y: auto;
}
.nav-open .mobile-nav { display: block; }
.mobile-nav ul { padding: 8px 16px; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 14px 4px; color: var(--ink); font-weight: 600; }
.mobile-nav .sub-menu { padding: 0 0 8px 12px; }
.mobile-nav .sub-menu li { border: 0; }
.mobile-nav .sub-menu a { padding: 8px 4px; font-weight: 500; color: var(--text); }
.mobile-nav .mobile-cta { padding: 16px; }
.mobile-nav .mobile-cta .btn { width: 100%; color: #fff; padding: 12px 22px; }

@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 1100px) {
	.main-nav { display: block; }
	.menu-toggle, .mobile-nav, .nav-open .mobile-nav { display: none; }
	.main-nav a { padding: 10px 8px; }
	.header-inner { min-height: 84px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #eef8fa 0%, #f6fbfc 45%, #ffffff 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr; align-items: center; }
.hero-content { padding: 40px 0 32px; position: relative; z-index: 2; }
.hero-badge {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
	background: #d7f0ee; color: var(--teal); font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.hero-badge svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.02em; margin-bottom: 14px; }
.hero-sub { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink); font-weight: 500; margin-bottom: 14px; }
.hero-text { max-width: 500px; margin-bottom: 26px; }
.hero-text strong { color: var(--ink); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media {
	position: relative; min-height: 300px; margin: 0 calc(-1 * var(--gutter));
	background-size: cover; background-position: center 72%; /* phones/tablets: show the hospital and cards */
	background-color: #cfe6ee;
}
.hero-media::before { /* soft fade into content on mobile */
	content: ""; position: absolute; inset: 0 0 auto 0; height: 60px;
	background: linear-gradient(180deg, #f1f9fb, transparent);
}
.hero-media-placeholder {
	position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 16px; text-align: center; color: var(--muted); font-size: 13px;
	background: repeating-linear-gradient(135deg, #d9edf2 0 14px, #e3f2f6 14px 28px);
}
.hero-script {
	position: absolute; right: 18px; top: 22px; font-family: var(--script); color: var(--navy);
	font-size: 26px; line-height: 1.05; transform: rotate(-6deg); text-align: left;
	text-shadow: 0 1px 8px rgba(255,255,255,.8);
}
.hero-script svg { display: block; width: 110px; height: 14px; margin-top: 4px; color: var(--teal); }
@media (min-width: 640px) { .hero-media { min-height: 380px; } }
@media (min-width: 992px) {
	/* Text gets ~54% of the container; the image fills the rest and bleeds to the screen edge */
	/* Text column only as wide as the text needs; the image starts right after it */
	.hero-grid { grid-template-columns: minmax(0, 560px) 1fr; min-height: 0; align-items: stretch; }
	.hero-content { padding: 44px 16px 56px 0; min-width: 0; align-self: start; }
	.hero-text { margin-bottom: 44px; }
	.hero-sub { font-size: clamp(16px, 1.4vw, 18px); }
	.hero h1 { font-size: clamp(32px, 3.3vw, 46px); }
	.hero-media {
		position: relative; min-height: 0; margin: 0;
		margin-right: calc(12px - var(--gutter)); /* image runs into the margin, leaving a slim 12px strip */
	}
	.hero-media::before { inset: 0 auto 0 0; width: 56px; height: auto; background: linear-gradient(90deg, #f1f9fb, transparent); }
	.hero-media { background-position: center; }
	.hero-script { right: 32px; top: 64px; font-size: 30px; }
	.hero-script svg { width: 160px; }
}
@media (min-width: 1200px) {
	.hero-script { right: 40px; top: 90px; font-size: 38px; }
	.hero-buttons { gap: 10px; }
	.hero-buttons .btn { padding: 12px 18px; font-size: 14.5px; white-space: nowrap; }
}

/* ---------- Trust bar ---------- */
.trust { background: var(--teal-soft); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 0; padding-top: 12px; padding-bottom: 12px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.trust-item:last-child { border-bottom: 0; }
.trust-item svg { width: 34px; height: 34px; color: var(--navy); }
.trust-item h3 { font-size: 15px; margin-bottom: 4px; }
.trust-item p { font-size: 13.5px; margin: 0; color: var(--muted); line-height: 1.5; }
@media (min-width: 640px) {
	.trust-grid { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
	.trust-item:nth-last-child(-n+1) { border-bottom: 0; }
}
@media (min-width: 1024px) {
	.trust-grid { grid-template-columns: repeat(5, 1fr); padding-top: 28px; padding-bottom: 28px; }
	.trust-item:first-child { padding-left: 0; }
	.trust-item { border-bottom: 0; border-right: 1px solid var(--line); padding: 8px 16px; }
	.trust-item:last-child { border-right: 0; }
}

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.steps { display: grid; grid-template-columns: 1fr; gap: 14px; counter-reset: step; }
.step {
	display: grid; grid-template-columns: 64px 1fr; gap: 4px 16px; align-items: center;
	padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.step-icon {
	grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; background: var(--teal-light);
	display: grid; place-items: center; color: var(--teal);
}
.step-icon svg { width: 28px; height: 28px; }
.step-num {
	display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
	background: var(--teal-light); color: var(--teal); font-size: 12px; font-weight: 700; margin-right: 8px;
}
.step h3 { font-size: 16px; color: var(--navy); margin: 0; display: flex; align-items: center; }
.step p { font-size: 13.5px; margin: 0; color: var(--muted); line-height: 1.5; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
	.process-grid { grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
	.steps { grid-template-columns: repeat(5, 1fr); gap: 8px; }
	.step {
		display: flex; flex-direction: column; text-align: center; border: 0; padding: 0 6px; background: none;
		position: relative;
	}
	.step-icon { width: 76px; height: 76px; margin-bottom: 14px; box-shadow: 0 0 0 8px var(--teal-soft); }
	.step-icon svg { width: 32px; height: 32px; }
	.step:not(:last-child)::after {
		content: ""; position: absolute; top: 32px; right: -8px; width: 8px; height: 8px;
		border-top: 2px solid #9ccfd6; border-right: 2px solid #9ccfd6; transform: rotate(45deg);
	}
	.step-num { margin: 0 auto 6px; }
	.step h3 { flex-direction: column; margin-bottom: 8px; }
}

/* ---------- Hospitals ---------- */
.hospitals-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.carousel { position: relative; }
.carousel-track {
	display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 4px 2px 16px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.hospital-card {
	scroll-snap-align: start; background: #fff; border-radius: var(--radius);
	box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line);
}
.hospital-img { position: relative; aspect-ratio: 16/9; background: #cfe3ec center/cover no-repeat; }
.hospital-city {
	position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px; border-radius: 999px; background: rgba(11,45,74,.78); color: #fff;
	font-size: 13px; font-weight: 600;
}
.hospital-city svg { width: 15px; height: 15px; }
.hospital-body { padding: 14px 16px 16px; }
.hospital-body h3 { font-size: 16px; color: var(--navy); margin-bottom: 2px; }
.hospital-spec { font-size: 13px; color: var(--teal); margin-bottom: 12px; }
.hospital-spec span { color: var(--line); margin: 0 6px; }
.hospital-badges { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.hospital-badges span { display: inline-flex; align-items: center; gap: 5px; }
.hospital-badges svg { width: 14px; height: 14px; }
.carousel-btn {
	position: absolute; top: 38%; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--line); background: #fff; color: var(--teal); box-shadow: var(--shadow);
	display: none; place-items: center; cursor: pointer;
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn--prev { left: -18px; }
.carousel-btn--next { right: -18px; }
.carousel-btn:disabled { opacity: .4; cursor: default; }
@media (min-width: 640px) { .carousel-track { grid-auto-columns: calc(50% - 8px); } .carousel-btn { display: grid; } }
@media (min-width: 992px) { .hospitals-grid { grid-template-columns: 0.8fr 1.2fr; gap: 40px; } }

/* ---------- Treatments ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 28px; }
.section-head > div { max-width: 560px; }
.section-head p { margin: 0; }
.treatments-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.treatment-card {
	display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative;
}
.treatment-img { aspect-ratio: 16/10; background: #dbe9ef center/cover no-repeat; }
.treatment-body { padding: 22px 20px 20px; position: relative; }
.treatment-body h3 { display: flex; align-items: center; gap: 12px; font-size: 18px; color: var(--navy); margin-bottom: 12px; }
.treatment-body h3 svg { width: 30px; height: 30px; color: var(--navy); }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; padding: 4px 0; }
.check-list svg { width: 16px; height: 16px; color: var(--teal); margin-top: 3px; }
.round-link {
	position: absolute; right: 16px; bottom: 16px; width: 38px; height: 38px; border-radius: 50%;
	background: var(--navy); color: #fff; display: grid; place-items: center; transition: background .2s;
}
.round-link:hover { background: var(--teal); color: #fff; }
.round-link svg { width: 18px; height: 18px; }
@media (min-width: 640px) {
	.treatment-card { grid-template-columns: 0.9fr 1.1fr; }
	.treatment-img { aspect-ratio: auto; min-height: 220px; }
}
@media (min-width: 1100px) { .treatments-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.testi-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.testi-card {
	display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin: 0;
}
.testi-avatar {
	width: 56px; height: 56px; border-radius: 50%; background: var(--teal-light) center/cover no-repeat;
	display: grid; place-items: center; color: var(--teal); font-weight: 700; font-size: 18px;
}
.testi-card blockquote { margin: 0 0 12px; font-size: 14.5px; color: var(--ink); line-height: 1.6; }
.testi-card cite { font-style: normal; font-size: 13px; color: var(--muted); display: block; }
.testi-card cite strong { display: block; color: var(--ink); font-weight: 600; }
@media (min-width: 768px) { .testi-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .testi-grid { grid-template-columns: 0.75fr 1.25fr; gap: 40px; } }

/* ---------- CTA band ---------- */
.cta-band {
	position: relative; text-align: center; padding: 64px 0;
	background: linear-gradient(180deg, #dcecf4 0%, #f5e6d9 70%, #f0d9c6 100%) center/cover no-repeat;
}
.cta-band.has-image { background-size: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.35); }
.cta-band .container { position: relative; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 8px; }
.cta-band p { margin-bottom: 22px; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9cad8; font-size: 14px; }
.site-footer a { color: #d6e3ec; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 40px 0 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand, .site-footer .brand-name { color: #fff; }
.site-footer .brand-name span { color: #fff; font-weight: 700; }
.site-footer .brand-tag { color: #9fb3c3; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 6px 0; }
.footer-nav li:not(:last-child)::after { content: "|"; margin: 0 14px; color: rgba(255,255,255,.25); }
.social { display: flex; gap: 12px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--teal); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px 0 24px; font-size: 12.5px; }
.footer-bottom ul { display: flex; flex-wrap: wrap; }
.footer-bottom li:not(:last-child)::after { content: "|"; margin: 0 10px; color: rgba(255,255,255,.25); }
@media (min-width: 992px) {
	.footer-top { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
	.footer-nav ul { justify-content: center; }
}

/* ---------- Floating WhatsApp (mobile) ---------- */
.wa-float {
	position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
	background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.wa-float:hover { color: #fff; transform: scale(1.05); }
.wa-float svg { width: 28px; height: 28px; }
@media (min-width: 1100px) { .wa-float { display: none; } }

/* ---------- Generic pages ---------- */
.page-hero { background: var(--teal-soft); padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); margin: 0; }
.entry-content { max-width: 780px; padding: 40px 0 64px; }
.entry-content img { border-radius: var(--radius); }
.entry-content h2 { margin-top: 1.6em; }
.entry-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.entry-content input, .entry-content textarea, .entry-content select {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px;
}
.post-list article { padding: 24px 0; border-bottom: 1px solid var(--line); }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

@media (min-width: 1280px) {
	.lang-btn { display: inline-flex; }
	.main-nav a { padding: 10px 12px; }
}

/* Phone-only components: hidden by default, switched on in the phone block below */
.mobile-bar, .treatment-toggle, .testi-dots { display: none; }

/* =========================================================
   Mobile & tablet refinements (below 992px only).
   Nothing in this block affects laptop/desktop layouts.
   ========================================================= */
@media (max-width: 991.98px) {
	/* Picture first, then the message */
	.hero-media { order: -1; }
	.hero-media::before { inset: auto 0 0 0; height: 48px; background: linear-gradient(0deg, #f1f9fb, transparent); }
	.hero-content { padding-top: 24px; }
}

@media (max-width: 639.98px) {
	.section { padding: 44px 0; }

	/* Hero: shorter, punchier */
	.hero-media { min-height: 230px; }
	.hero-script { font-size: 21px; top: 14px; right: 14px; }
	.hero-script svg { width: 84px; height: 10px; }
	.hero-badge { font-size: 12px; padding: 5px 12px; margin-bottom: 14px; }
	.hero h1 { font-size: 28px; margin-bottom: 10px; }
	.hero-sub { font-size: 16px; margin-bottom: 20px; }
	.hero-text { display: none; } /* sub-heading already says it; full text stays on larger screens */
	.hero-buttons { flex-direction: column; gap: 10px; }
	.hero-buttons .btn { width: 100%; }
	.hero-content { padding-bottom: 32px; }

	/* Trust points: compact 2-column tiles instead of a long list */
	.trust-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 20px; padding-bottom: 20px; }
	.trust-item {
		flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line);
		border-radius: 12px; background: #fff;
	}
	.trust-item:last-child { border: 1px solid var(--line); grid-column: 1 / -1; }
	.trust-item svg { width: 26px; height: 26px; }
	.trust-item h3 { font-size: 14px; margin-bottom: 2px; }
	.trust-item p { font-size: 12.5px; }

	/* Process: swipeable cards instead of five stacked boxes */
	.steps {
		grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%;
		overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px;
		margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter);
		scroll-padding-left: var(--gutter); scrollbar-width: none;
	}
	.steps::-webkit-scrollbar { display: none; }
	.step { scroll-snap-align: start; grid-template-columns: 52px 1fr; }
	.step-icon { width: 52px; height: 52px; }
	.step-icon svg { width: 24px; height: 24px; }

	/* Treatments: shorter photos */
	.treatment-img { aspect-ratio: 16/8; }

	/* Bottom contact bar replaces the round WhatsApp button */
	.wa-float { display: none; }
	body { padding-bottom: 72px; }
	.mobile-bar {
		display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) 16px; background: #fff;
		border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11,58,92,.10);
	}
	.mobile-bar-text { flex: 1; min-width: 0; line-height: 1.3; }
	.mobile-bar-text strong { display: block; font-size: 14px; color: var(--ink); }
	.mobile-bar-text span { display: block; font-size: 12.5px; color: var(--muted); }
	.mobile-bar-btn {
		display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 12px;
		background: #1fae5b; color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap;
	}
	.mobile-bar-btn:hover { color: #fff; background: #189a50; }
	.mobile-bar-btn svg { width: 20px; height: 20px; }

	/* Patient stories: swipe one at a time */
	.testi-cards {
		display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 86%; gap: 12px;
		overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scroll-padding-left: var(--gutter);
	}
	.testi-cards::-webkit-scrollbar { display: none; }
	.testi-card { scroll-snap-align: start; }
	.testi-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
	.testi-dots i { width: 8px; height: 8px; border-radius: 8px; background: #cfe3ea; transition: all .2s; }
	.testi-dots i.is-active { width: 22px; background: var(--teal); }

	/* Treatments: tap to expand, photos hidden */
	.treatments-grid { gap: 12px; }
	.treatment-card { grid-template-columns: 1fr; }
	.treatment-img { display: none; }
	.treatment-body { padding: 16px 18px; }
	.treatment-body h3 { margin: 0; cursor: pointer; }
	.treatment-toggle {
		display: grid; place-items: center; margin-left: auto; width: 36px; height: 36px; padding: 0;
		border: 0; background: none; color: var(--teal); cursor: pointer;
	}
	.treatment-toggle svg { width: 22px; height: 22px; transition: transform .2s; }
	.treatment-card.is-open .treatment-toggle svg { transform: rotate(180deg); }
	.treatment-card:not(.is-open) .check-list, .treatment-card:not(.is-open) .round-link { display: none; }
	.treatment-card.is-open .check-list { margin-top: 12px; }

	/* Floating WhatsApp: smaller so it covers less text */
	.wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
	.wa-float svg { width: 25px; height: 25px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
