/* ==========================================================================
   AMS Neolife Super-Speciality Clinic - Design System
   Palette sampled directly from the client logo (AMS Logo.pdf):
   navy #14558C, orange #DD7A37, teal #00A7C9.
   Typography: Fraunces (editorial serif, headings) + Inter (body/UI).
   This stylesheet fully replaces the parent theme's CSS (dequeued in
   functions.php) - every class referenced by parent JS/shortcodes and by
   this child theme's templates is defined here from scratch.
   ========================================================================== */

:root {
	--navy: #14558C;
	--navy-dark: #0E3E68;
	--navy-deep: #0A2C4A;
	--orange: #DD7A37;
	--orange-dark: #C1622A;
	--teal: #00A7C9;
	--teal-dark: #00839F;
	--cream: #FBF7F1;
	--cream-deep: #F3EADD;
	--ink: #1E2530;
	--slate: #5B6472;
	--slate-light: #8993A1;
	--white: #FFFFFF;
	--border: rgba(20, 85, 140, 0.14);
	--border-soft: rgba(20, 85, 140, 0.08);
	--shadow-sm: 0 2px 10px rgba(20, 40, 70, 0.06);
	--shadow-md: 0 12px 32px rgba(20, 40, 70, 0.10);
	--shadow-lg: 0 24px 60px rgba(20, 40, 70, 0.16);
	--radius: 4px;
	--radius-lg: 6px;
	--font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--container-w: 1240px;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--cream);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 {
	font-family: var(--font-serif);
	font-weight: 600;
	color: var(--navy-deep);
	line-height: 1.15;
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 500; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.entry-content p { color: var(--slate); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }

.h1-section { padding: 88px 0; }
.h1-section-tint { background: var(--cream-deep); }
.h1-section-head { max-width: 720px; margin: 0 0 44px; }
.h1-section-head h2 { margin-bottom: 0.4em; }
.h1-section-lead { color: var(--slate); font-size: 1.08rem; }

.h1-eyebrow {
	font-family: var(--font-sans);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--teal-dark);
	margin: 0 0 0.9em;
}

.h1-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--navy);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, gap 0.2s ease;
}
.h1-link-arrow:hover { border-color: var(--navy); gap: 10px; }

/* ---- Buttons ---- */
.h1-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: var(--radius);
	border: 1.5px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}
.h1-btn-lg { padding: 16px 34px; font-size: 1rem; }
.h1-btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.h1-btn-primary { background: var(--orange); color: var(--white); box-shadow: var(--shadow-sm); }
.h1-btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.h1-btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.h1-btn-outline:hover { background: var(--navy); color: var(--white); }
.h1-btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.h1-btn-outline-light:hover { background: var(--white); color: var(--navy); }
.h1-btn-whatsapp { background: var(--teal); color: var(--white); }
.h1-btn-whatsapp:hover { background: var(--teal-dark); }
.h1-btn .h1-icon-whatsapp svg { width: 18px; height: 18px; }

/* ---- Icons ---- */
.h1-icon { display: inline-flex; align-items: center; margin-right: 6px; }
.h1-icon-whatsapp svg { width: 16px; height: 16px; fill: currentColor; }

/* ==========================================================================
   Header
   ========================================================================== */
.h1-topbar { background: var(--navy-deep); color: rgba(255,255,255,0.88); font-size: 0.82rem; }
.h1-topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 24px; gap: 16px; flex-wrap: wrap; }
.h1-topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.h1-topbar-link { color: inherit; opacity: 0.92; }
.h1-topbar-link:hover { opacity: 1; text-decoration: underline; }
.h1-topbar-tagline { font-style: italic; opacity: 0.75; font-family: var(--font-serif); }

.site-header.h1-header {
	background: var(--white);
	border-bottom: 1px solid var(--border-soft);
	position: sticky;
	top: 0;
	z-index: 200;
	transition: box-shadow 0.2s ease;
}
.site-header.h1-header.scrolled { box-shadow: var(--shadow-sm); }
.h1-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 14px 24px; }
.h1-logo-img { height: 52px; width: auto; }
.h1-nav { flex: 1; display: flex; justify-content: center; }
.h1-nav #primary-menu { display: flex; gap: 22px; align-items: center; }
.h1-nav #primary-menu a { display: inline-block; white-space: nowrap; font-weight: 600; font-size: 0.92rem; color: var(--navy-deep); padding: 6px 0; border-bottom: 2px solid transparent; }
.h1-nav #primary-menu a:hover,
.h1-nav #primary-menu a.active { border-color: var(--orange); }
.h1-header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	padding: 8px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--navy-deep); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.h1-hero { background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 100%); padding: 64px 0 80px; }
.h1-hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.h1-hero-subtitle { font-size: 1.1rem; color: var(--slate); max-width: 58ch; }
.h1-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 30px; }
.h1-hero-trust { display: flex; flex-direction: column; gap: 10px; }
.h1-hero-trust li { display: flex; align-items: center; font-size: 0.92rem; color: var(--navy-deep); font-weight: 600; }
.h1-hero-media { position: relative; }
.h1-hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.h1-hero-media-caption {
	position: absolute; left: 20px; bottom: -18px;
	background: var(--white); border: 1px solid var(--border-soft);
	padding: 10px 18px; border-radius: var(--radius); box-shadow: var(--shadow-md);
	font-size: 0.82rem; font-weight: 700; color: var(--navy-deep); display: flex; align-items: center;
}

/* ---- Trust strip ---- */
.h1-trust-strip { background: var(--navy); }
.h1-trust-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 24px; }
.h1-trust-fact { text-align: center; color: var(--white); }
.h1-trust-value { display: block; font-family: var(--font-serif); font-size: 2.4rem; font-weight: 600; color: var(--white); }
.h1-trust-label { display: block; font-size: 0.82rem; opacity: 0.82; margin-top: 4px; line-height: 1.35; }

/* ---- Founders story ---- */
.h1-founders-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.h1-founders-copy p { color: var(--slate); font-size: 1.02rem; }
.h1-founders-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; }

/* ---- Doctors ---- */
.h1-doctors-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.h1-doctor-card {
	display: grid; grid-template-columns: 220px 1fr;
	background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
	overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.h1-doctor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.h1-doctor-card-media { position: relative; background: var(--cream-deep); min-height: 100%; }
.h1-doctor-card-media img { width: 100%; height: 100%; object-fit: cover; }
.h1-doctor-monogram {
	width: 100%; height: 100%; min-height: 220px; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
	color: var(--white); font-family: var(--font-serif); font-size: 2.6rem; font-weight: 600;
}
.h1-doctor-monogram-lg { min-height: 340px; font-size: 3.4rem; border-radius: var(--radius-lg); }
.h1-doctor-card-info { padding: 26px 24px; display: flex; flex-direction: column; }
.h1-doctor-card-info h3 { margin-bottom: 4px; }
.h1-doctor-designation { font-weight: 700; color: var(--navy); font-size: 0.92rem; margin-bottom: 2px; }
.h1-doctor-specialization { color: var(--slate); font-size: 0.9rem; margin-bottom: 10px; }
.h1-doctor-experience-badge {
	display: inline-block; align-self: flex-start; background: var(--cream-deep); color: var(--orange-dark);
	font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.h1-doctor-card-info .h1-link-arrow { margin-top: auto; }

/* ---- Departments ---- */
.h1-departments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.h1-department-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 30px 26px; scroll-margin-top: 140px; }
.h1-department-icon { font-size: 2rem; margin-bottom: 14px; }
.h1-department-lead { font-size: 0.84rem; font-style: italic; color: var(--teal-dark); margin-bottom: 14px; }
.h1-department-bullets li { position: relative; padding-left: 18px; font-size: 0.92rem; color: var(--slate); margin-bottom: 8px; }
.h1-department-bullets li::before { content: '\2013'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.h1-departments-more { margin-top: 36px; }

/* ---- Facilities bento ---- */
.h1-facilities-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 18px; }
.h1-facility-item { position: relative; overflow: hidden; border-radius: var(--radius-lg); grid-column: span 2; }
.h1-facility-wide { grid-column: span 4; }
.h1-facility-tall { grid-row: span 2; }
.h1-facility-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.h1-facility-item:hover img { transform: scale(1.05); }
.h1-facility-caption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 20px;
	background: linear-gradient(180deg, transparent 0%, rgba(10,44,74,0.86) 100%);
	color: var(--white);
}
.h1-facility-caption h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 2px; }
.h1-facility-caption p { color: rgba(255,255,255,0.85); font-size: 0.86rem; margin: 0; }
.h1-facilities-more { margin-top: 30px; }

/* ---- Credentials ---- */
.h1-credentials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.h1-credential-card { background: var(--white); border-top: 3px solid var(--orange); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-sm); padding: 32px 30px; }
.h1-credential-title { color: var(--slate); font-size: 0.94rem; margin-bottom: 12px; }
.h1-credential-quals { font-size: 0.85rem; letter-spacing: 0.02em; color: var(--navy); font-weight: 600; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); }
.h1-credential-awards li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--slate); margin-bottom: 12px; line-height: 1.5; }
.h1-credential-awards li::before { content: '\1F3C6'; flex-shrink: 0; }

/* ---- Patient journey ---- */
.h1-journey-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 40px; }
.h1-journey-step { position: relative; padding-top: 8px; }
.h1-journey-num { display: block; font-family: var(--font-serif); font-size: 2.6rem; color: var(--orange); opacity: 0.85; margin-bottom: 6px; }
.h1-journey-step p { color: var(--slate); font-size: 0.94rem; }
.h1-journey-cta { text-align: center; }

/* ---- FAQ accordion ---- */
.brandadoc-faq-accordion { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	background: none; border: none; padding: 20px 4px; text-align: left; font-weight: 600; font-size: 1.02rem; color: var(--navy-deep);
}
.faq-icon { flex-shrink: 0; font-size: 1.3rem; color: var(--orange); transition: transform 0.2s ease; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer.open { max-height: 600px; }
.faq-answer :is(p) { padding: 0 4px 20px; color: var(--slate); }
.h1-faq-more { margin-top: 30px; }

/* ---- Contact CTA + forms ---- */
.h1-contact-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.h1-contact-details { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.h1-contact-details li,
.h1-footer-contact li { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.h1-contact-details a,
.h1-footer-contact a { font-weight: 600; }
.h1-contact-details a:hover,
.h1-footer-contact a:hover { text-decoration: underline; }

.brandadoc-appointment-form-wrapper,
.h1-contact-form-area { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.booking-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group-full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 0.84rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
	font-size: 0.95rem; background: var(--cream); color: var(--ink); transition: border-color 0.15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
.submit-btn {
	margin-top: 8px; width: 100%; padding: 15px; background: var(--orange); color: var(--white); border: none;
	border-radius: var(--radius); font-weight: 700; font-size: 1rem; transition: background 0.15s ease;
}
.submit-btn:hover { background: var(--orange-dark); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.booking-response,
.contact-response { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; }

.h1-contact-form-area h2 { margin-bottom: 20px; }
.h1-contact-info-box { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.h1-contact-info-box .h1-icon { width: 34px; height: 34px; background: var(--cream-deep); border-radius: 50%; align-items: center; justify-content: center; flex-shrink: 0; margin: 0; }
.h1-contact-info-box h4 { margin-bottom: 2px; font-size: 0.95rem; }
.h1-contact-info-box p { margin: 0; color: var(--slate); font-size: 0.92rem; }
.h1-contact-map { margin-top: 40px; }
.google-map-embed { width: 100%; height: 420px; border: 0; border-radius: var(--radius-lg); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer.h1-footer { background: var(--navy-deep); color: rgba(255,255,255,0.82); padding: 64px 0 0; }
.h1-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; }
.h1-footer-col h3 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.h1-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.h1-footer-col a { color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.h1-footer-col a:hover { color: var(--white); }
.h1-footer-logo { height: 44px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.h1-footer-about p { font-size: 0.9rem; color: rgba(255,255,255,0.68); margin-bottom: 18px; }
.h1-footer-contact li { color: rgba(255,255,255,0.82); }
.h1-footer-contact a { color: rgba(255,255,255,0.9); }
.brandadoc-social-links { display: flex; gap: 10px; }
.social-link {
	width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,0.1); border-radius: 50%; font-size: 0.7rem; color: var(--white);
}
.social-link:hover { background: var(--orange); }
.h1-footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 24px; font-size: 0.82rem; color: rgba(255,255,255,0.6); text-align: center; }

/* ---- Floating WhatsApp + mobile CTA bar ---- */
.h1-whatsapp-float {
	position: fixed; right: 22px; bottom: 90px; z-index: 300;
	width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: var(--white);
	display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
}
.h1-whatsapp-float svg { width: 28px; height: 28px; }
.h1-mobile-cta-bar { display: none; }

/* ==========================================================================
   Inner-page shared components
   ========================================================================== */
.h1-page-header { background: var(--cream-deep); padding: 56px 0 40px; }
.h1-page-header h1 { margin-bottom: 10px; }
.breadcrumbs { font-size: 0.85rem; color: var(--slate); }
.breadcrumbs a { color: var(--navy); font-weight: 600; }
.breadcrumbs span { color: var(--slate); }

.content-area { padding: 88px 0; }

/* ---- Contact page ---- */
.h1-contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.h1-contact-map { margin-top: 40px; }

/* ---- Doctor single page ---- */
.h1-doctor-hero { background: var(--cream); padding: 64px 0; }
.h1-doctor-hero-inner { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.h1-doctor-hero-media img,
.h1-doctor-hero-media .h1-doctor-monogram-lg { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 3/4; width: 100%; object-fit: cover; }
.h1-doctor-hero-designation { font-weight: 700; color: var(--navy); font-size: 1.05rem; margin-bottom: 2px; }
.h1-doctor-hero-specialization { color: var(--slate); font-size: 1rem; margin-bottom: 14px; }
.h1-doctor-experience-badge { display: inline-block; background: var(--white); border: 1px solid var(--border); color: var(--orange-dark); font-size: 0.8rem; font-weight: 700; padding: 5px 14px; border-radius: 20px; margin-bottom: 20px; }

.h1-doctor-quickfacts { background: var(--navy); }
.h1-quickfacts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 32px 24px; }
.h1-quickfact { text-align: center; color: var(--white); }
.h1-quickfact strong { display: block; font-family: var(--font-serif); font-size: 1.9rem; }
.h1-quickfact span { font-size: 0.8rem; opacity: 0.82; }

.h1-doctor-about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.h1-doctor-why { background: var(--cream-deep); border-radius: var(--radius-lg); padding: 30px 26px; align-self: start; position: sticky; top: 100px; }
.h1-doctor-why h3 { margin-bottom: 16px; }
.h1-doctor-why-list li { position: relative; padding-left: 22px; font-size: 0.92rem; color: var(--slate); margin-bottom: 12px; }
.h1-doctor-why-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--teal-dark); font-weight: 700; }

.h1-education-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.h1-education-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 22px; display: flex; gap: 14px; align-items: flex-start; }
.h1-education-icon { font-size: 1.4rem; }
.h1-education-card p { margin: 0; font-size: 0.9rem; color: var(--slate); font-weight: 600; }

.h1-achievements-list { max-width: 780px; }
.h1-achievements-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.96rem; color: var(--slate); }
.h1-achievement-icon { flex-shrink: 0; }

.h1-care-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.h1-care-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 22px 18px; text-align: center; }
.h1-care-icon { font-size: 1.6rem; margin-bottom: 10px; }
.h1-care-card h3 { font-size: 0.95rem; font-family: var(--font-sans); font-weight: 600; color: var(--navy-deep); margin: 0; }
.h1-doctor-services-more { margin-top: 28px; }
.h1-doctor-book-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.h1-doctor-book-form { margin-top: 30px; text-align: left; }

/* ---- About page ---- */
.h1-about-intro-grid { max-width: 780px; margin: 0 auto; }
.h1-about-intro-copy p { font-size: 1.05rem; color: var(--slate); }
.h1-team-groups-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.h1-team-group-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 24px; }
.h1-team-group-card h3 { font-size: 1rem; margin-bottom: 10px; color: var(--teal-dark); }
.h1-team-group-card li { font-size: 0.94rem; color: var(--navy-deep); font-weight: 600; padding: 4px 0; }
.h1-about-cta { text-align: center; }
.h1-about-cta-inner .h1-hero-actions { justify-content: center; margin-top: 24px; }

/* ---- Services page ---- */
.h1-service-group { margin-bottom: 64px; scroll-margin-top: 100px; }
.h1-service-group:last-child { margin-bottom: 0; }
.h1-service-group-head { max-width: 720px; margin-bottom: 28px; }
.h1-service-group-lead { color: var(--teal-dark); font-style: italic; font-size: 0.95rem; }

/* ---- Gallery page ---- */
.h1-gallery-filter,
.gallery-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
	background: var(--white); border: 1.5px solid var(--border); color: var(--navy-deep);
	padding: 9px 20px; border-radius: 24px; font-weight: 600; font-size: 0.88rem; transition: all 0.15s ease;
}
.filter-btn.active,
.filter-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.brandadoc-gallery-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 18px; }
.gallery-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
	position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,44,74,0.82) 100%);
	display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; opacity: 0; transition: opacity 0.25s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-zoom { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.9); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.gallery-caption { color: var(--white); font-weight: 600; font-size: 0.9rem; }

.brandadoc-lightbox {
	position: fixed; inset: 0; background: rgba(10,20,35,0.94); z-index: 999;
	display: none; align-items: center; justify-content: center;
}
.brandadoc-lightbox.active { display: flex; }
.brandadoc-lightbox img { max-width: 88vw; max-height: 84vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-nav {
	position: absolute; background: rgba(255,255,255,0.12); color: var(--white); border: none;
	width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--orange); }

/* ---- Utility ---- */
.back-to-top {
	position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%;
	background: var(--navy); color: var(--white); display: none; align-items: center; justify-content: center;
	font-size: 1.2rem; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transition: opacity 0.2s ease;
	z-index: 250;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.screen-reader-text {
	position: absolute; left: -9999px; top: 10px; background: var(--white); color: var(--navy);
	padding: 10px 18px; z-index: 1000; border-radius: var(--radius);
}
.screen-reader-text:focus { left: 10px; }
.table-responsive { overflow-x: auto; }
[class*="fade-in-up"] { animation: h1FadeInUp 0.5s ease both; }
@keyframes h1FadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   Responsive - Tablet
   ========================================================================== */
@media (max-width: 1024px) {
	.h1-hero-inner,
	.h1-founders-grid,
	.h1-doctor-about-grid,
	.h1-contact-cta-grid,
	.h1-contact-grid,
	.h1-doctor-hero-inner { grid-template-columns: 1fr; }
	.h1-hero-media { order: -1; max-width: 420px; margin: 0 auto; }
	.h1-doctor-why { position: static; margin-top: 24px; }
	.h1-departments-grid,
	.h1-credentials-grid,
	.h1-team-groups-grid { grid-template-columns: repeat(2, 1fr); }
	.h1-journey-steps,
	.h1-education-grid,
	.h1-care-grid,
	.h1-quickfacts-grid,
	.h1-trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
	.h1-facilities-grid { grid-template-columns: repeat(2, 1fr); }
	.h1-facility-wide { grid-column: span 2; }
	.brandadoc-gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
	.h1-doctor-card { grid-template-columns: 160px 1fr; }
	.h1-topbar-tagline { display: none; }

	/* The full horizontal nav + Call + WhatsApp buttons don't fit next to
	   the logo below desktop width - collapse to the hamburger menu here
	   rather than only at the phone breakpoint. */
	.h1-nav { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--white); padding: 90px 24px 24px; transform: translateX(100%); transition: transform 0.25s ease; z-index: 199; overflow-y: auto; }
	.h1-nav.active { transform: translateX(0); }
	.h1-nav #primary-menu { flex-direction: column; align-items: flex-start; gap: 22px; }
	.h1-nav #primary-menu a { font-size: 1.1rem; }
	.menu-toggle { display: flex; }
	.h1-header-cta .h1-btn-outline,
	.h1-header-cta .h1-btn-primary { display: none; }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */
@media (max-width: 767px) {
	.container { padding: 0 18px; }
	.h1-section { padding: 56px 0; }
	.h1-section-head { margin-bottom: 30px; }

	.h1-topbar-info { gap: 12px; font-size: 0.76rem; }
	.h1-topbar-hours { display: none; }
	.h1-header-inner { padding: 12px 18px; }
	.h1-logo-img { height: 38px; }
	.h1-nav { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--white); padding: 90px 24px 24px; transform: translateX(100%); transition: transform 0.25s ease; z-index: 199; overflow-y: auto; }
	.h1-nav.active { transform: translateX(0); }
	.h1-nav #primary-menu { flex-direction: column; align-items: flex-start; gap: 22px; }
	.h1-nav #primary-menu a { font-size: 1.1rem; }
	.menu-toggle { display: flex; }
	.h1-header-cta .h1-btn-outline,
	.h1-header-cta .h1-btn-primary { display: none; }

	.h1-hero { padding: 32px 0 48px; }
	.h1-hero-actions { flex-direction: column; }
	.h1-hero-actions .h1-btn { width: 100%; }
	.h1-hero-trust { gap: 8px; }
	.h1-hero-media img { aspect-ratio: 5/4; }
	.h1-hero-media-caption { left: 12px; bottom: -14px; font-size: 0.72rem; padding: 8px 14px; }

	.h1-trust-strip-inner,
	.h1-departments-grid,
	.h1-credentials-grid,
	.h1-journey-steps,
	.h1-education-grid,
	.h1-care-grid,
	.h1-quickfacts-grid,
	.h1-team-groups-grid,
	.h1-doctors-grid { grid-template-columns: 1fr; }
	.h1-trust-value { font-size: 2rem; }

	.h1-facilities-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
	.h1-facility-wide, .h1-facility-tall { grid-column: span 1; grid-row: span 1; }

	.h1-doctor-card { grid-template-columns: 1fr; }
	.h1-doctor-monogram { min-height: 180px; }

	.booking-form-grid { grid-template-columns: 1fr; }
	.brandadoc-appointment-form-wrapper,
	.h1-contact-form-area { padding: 22px; }

	.h1-footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
	.h1-whatsapp-float { display: none; }
	.h1-mobile-cta-bar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 280;
		background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(20,40,70,0.1);
	}
	.h1-mobile-cta {
		flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
		padding: 14px 8px; font-weight: 700; font-size: 0.86rem; color: var(--navy-deep); border-right: 1px solid var(--border-soft);
	}
	.h1-mobile-cta:last-child { border-right: none; }
	.h1-mobile-cta-book { background: var(--orange); color: var(--white); }
	body { padding-bottom: 58px; }

	.brandadoc-gallery-grid { grid-template-columns: 1fr !important; }
	.h1-doctor-hero-media img,
	.h1-doctor-hero-media .h1-doctor-monogram-lg { aspect-ratio: 4/3; }
}
