/* --- Fertility Care Tirupati - Master Stylesheet --- */
:root {
  --primary-color: #0d826a;
  --primary-hover: #08614f;
  --secondary-color: #f7941d;
  --text-dark: #222222;
  --text-muted: #555555;
  --bg-light: #f8fafc;
  --white: #ffffff;
}
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--text-dark); line-height: 1.65; margin: 0; padding-bottom: 75px; }
h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); line-height: 1.25; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.65rem); }
p, li { font-size: clamp(0.95rem, 1.2vw, 1.05rem); }
.sticky-action-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12); display: flex; justify-content: center; align-items: center; gap: 12px; padding: 10px 16px; z-index: 9999; }
.sticky-action-bar .btn-sticky { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: clamp(0.9rem, 1.5vw, 1.05rem); font-weight: 600; padding: 10px 22px; border-radius: 50px; text-decoration: none; transition: all 0.25s ease; min-width: 120px; }
.btn-sticky-call { background: #f0f4f8; color: #1e293b; border: 1px solid #cbd5e1; }
.btn-sticky-call:hover { background: #e2e8f0; }
.btn-sticky-whatsapp { background: #128c7e; color: #ffffff; }
.btn-sticky-whatsapp:hover { background: #075e54; color: #ffffff; }
.btn-sticky-opd { background: #0d826a; color: #ffffff; border: 1px solid #096b57; }
.btn-sticky-opd:hover { background: #08614f; color: #ffffff; }
@media (max-width: 600px) {
  .sticky-action-bar { gap: 6px; padding: 8px 10px; }
  .sticky-action-bar .btn-sticky { flex: 1; min-width: unset; padding: 9px 10px; font-size: 0.85rem; }
}

/* ===== Ashalatha IVF Hospital Premium Responsive Layer ===== */
:root{
  --ah-primary:#0f806d;
  --ah-primary-dark:#075e51;
  --ah-pink:#e94f8a;
  --ah-ink:#17222b;
  --ah-muted:#66727c;
  --ah-soft:#f5fbf9;
  --ah-border:#e4ece9;
  --ah-shadow:0 18px 55px rgba(20,55,48,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:#fff;color:var(--ah-ink);font-family:'Poppins',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;overflow-x:hidden;padding-bottom:76px}
img{max-width:100%;height:auto}
a{transition:color .2s ease,background .2s ease,border-color .2s ease,transform .2s ease}
.container{max-width:1240px}

/* top strip */
.ah-topbar{background:linear-gradient(90deg,#0b5147,#0f806d);color:#fff;font-size:.84rem}
.ah-topbar-inner{min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.ah-topbar a{color:#fff;text-decoration:none}
.ah-topbar a:hover{color:#d8fff6}

/* premium header */
.ah-header{position:sticky;top:0;z-index:5000;background:rgba(255,255,255,.97);backdrop-filter:blur(16px);border-bottom:1px solid rgba(15,128,109,.10);box-shadow:0 8px 28px rgba(16,52,45,.07)}
.ah-nav{min-height:82px;display:flex;align-items:center;gap:22px}
.ah-brand{display:flex;align-items:center;min-width:210px}
.ah-brand img{height:58px;width:auto;object-fit:contain}
.ah-menu{margin-left:auto;display:flex;align-items:center;gap:4px;list-style:none;padding:0;margin-bottom:0}
.ah-menu>li{position:relative}
.ah-link,.ah-menu>li>a{display:flex;align-items:center;gap:7px;padding:13px 12px;border-radius:12px;color:#26333b;text-decoration:none;font-size:.92rem;font-weight:600;white-space:nowrap}
.ah-link:hover,.ah-menu>li>a:hover,.ah-menu>li.active>a{color:var(--ah-primary);background:#eff9f6}
.ah-dropdown{position:absolute;top:calc(100% + 8px);left:0;width:310px;background:#fff;border:1px solid var(--ah-border);border-radius:18px;padding:10px;box-shadow:0 22px 60px rgba(22,52,46,.16);opacity:0;visibility:hidden;transform:translateY(8px);transition:.2s ease}
.ah-dropdown a{display:block;padding:12px 13px;border-radius:12px;color:#26333b;text-decoration:none;font-size:.9rem;font-weight:600}
.ah-dropdown a:hover{background:#f1faf7;color:var(--ah-primary);transform:translateX(2px)}
.ah-menu>li:hover>.ah-dropdown,.ah-menu>li:focus-within>.ah-dropdown{opacity:1;visibility:visible;transform:none}
.ah-cta{background:linear-gradient(135deg,var(--ah-primary),#1b9b84);color:#fff!important;border-radius:999px!important;padding:12px 18px!important;box-shadow:0 8px 22px rgba(15,128,109,.20)}
.ah-cta:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(15,128,109,.28);background:linear-gradient(135deg,#0b705f,#178e79)!important}
.ah-toggle{display:none;margin-left:auto;border:1px solid #d9e8e4;background:#fff;width:46px;height:46px;border-radius:13px;color:var(--ah-primary);font-size:1.25rem;cursor:pointer}
.ah-mobile-panel{display:none}

/* hero */
.ah-hero-wrap{background:linear-gradient(180deg,#fff 0%,#f8fcfb 100%);padding:20px 0 0}
.ah-hero-image{display:block;width:100%;border-radius:26px;box-shadow:var(--ah-shadow);object-fit:cover;object-position:center;aspect-ratio:2048/694}
.ah-hero-copy{max-width:1050px;margin:-42px auto 0;position:relative;z-index:2;background:rgba(255,255,255,.96);border:1px solid rgba(15,128,109,.10);border-radius:24px;box-shadow:0 18px 45px rgba(22,52,46,.12);padding:28px 34px}
.ah-hero-copy .hero-title{font-size:clamp(2rem,4vw,3.2rem);font-weight:800;line-height:1.12;color:#102c28}
.ah-hero-copy .hero-lead{font-size:1.04rem;color:#5b6870}

/* content polish */
section.py-5,section.py-4{position:relative}
section.py-5:nth-of-type(even){background-image:linear-gradient(180deg,#fff,#fbfdfc)}
.card{border-color:var(--ah-border)!important;border-radius:20px!important;box-shadow:0 10px 35px rgba(20,55,48,.07);overflow:hidden}
.card:hover{box-shadow:0 16px 42px rgba(20,55,48,.11)}
.btn-success{background:var(--ah-primary)!important;border-color:var(--ah-primary)!important}
.btn-success:hover{background:var(--ah-primary-dark)!important;border-color:var(--ah-primary-dark)!important}
.text-success{color:var(--ah-primary)!important}
.bg-success{background:linear-gradient(135deg,#0b6d5c,#13947b)!important}

/* treatment image cards */
.gallery-img,.story-card img{border-radius:18px 18px 0 0}

/* footer */
footer{background:linear-gradient(135deg,#102f2b,#0c1f1d)!important;border-top:4px solid rgba(76,196,169,.55)}
footer a:hover{color:#fff!important}

/* sticky mobile actions */
.sticky-action-bar{background:rgba(255,255,255,.96)!important;border-top:1px solid #dce8e4;box-shadow:0 -10px 35px rgba(15,48,43,.12)!important;z-index:6000}

/* page headings */
body>section:not(.hero-section) h1, main h1{letter-spacing:-.02em}

@media (max-width:1199px){
  .ah-nav{gap:12px}.ah-brand{min-width:185px}.ah-brand img{height:52px}
  .ah-link,.ah-menu>li>a{font-size:.84rem;padding:11px 8px}
  .ah-cta{padding:11px 14px!important}
}
@media (max-width:991px){
  .ah-topbar-inner{justify-content:center;padding:7px 0}
  .ah-topbar .ah-address{display:none}
  .ah-nav{min-height:72px}
  .ah-toggle{display:inline-flex;align-items:center;justify-content:center}
  .ah-menu{display:none}
  .ah-mobile-panel{position:absolute;left:12px;right:12px;top:calc(100% + 8px);background:#fff;border:1px solid var(--ah-border);border-radius:20px;box-shadow:0 24px 65px rgba(16,52,45,.17);padding:10px;max-height:calc(100vh - 90px);overflow:auto}
  .ah-mobile-panel.open{display:block}
  .ah-mobile-panel a{display:flex;align-items:center;justify-content:space-between;padding:14px 13px;color:#26333b;text-decoration:none;border-radius:12px;font-weight:600}
  .ah-mobile-panel a:hover{background:#f1faf7;color:var(--ah-primary)}
  .ah-mobile-group>button{width:100%;border:0;background:none;display:flex;align-items:center;justify-content:space-between;padding:14px 13px;border-radius:12px;color:#26333b;font:inherit;font-weight:600;text-align:left;cursor:pointer}
  .ah-mobile-group>button:hover{background:#f1faf7;color:var(--ah-primary)}
  .ah-mobile-sub{display:none;padding:0 0 6px 10px}
  .ah-mobile-group.open .ah-mobile-sub{display:block}
  .ah-mobile-sub a{font-size:.9rem;font-weight:500}
  .ah-mobile-cta{margin-top:7px;background:var(--ah-primary)!important;color:#fff!important;justify-content:center!important}
  .ah-hero-wrap{padding-top:12px}
  .ah-hero-image{border-radius:20px;aspect-ratio:16/7;object-position:center}
  .ah-hero-copy{margin:14px 12px 0;padding:24px 20px;border-radius:20px}
}
@media (max-width:600px){
  body{padding-bottom:68px}
  .ah-brand img{height:46px;max-width:190px}
  .ah-nav{min-height:64px}
  .ah-topbar{font-size:.78rem}
  .ah-topbar .ah-hours{display:none}
  .ah-hero-image{aspect-ratio:1.7/1;object-position:center center}
  .ah-hero-copy{padding:20px 17px}
  .ah-hero-copy .hero-title{font-size:1.75rem}
  .ah-hero-copy .hero-lead{font-size:.96rem}
  .sticky-action-bar .btn-sticky{font-size:.78rem!important;padding:9px 7px!important}
}
@media (max-width:380px){
  .ah-brand img{max-width:165px}.ah-toggle{width:42px;height:42px}
  .ah-hero-copy .hero-title{font-size:1.55rem}
}


/* ===== Premium Inner Page Hero Banners ===== */
.ah-inner-hero{position:relative;padding:34px 0 38px;background:linear-gradient(135deg,#f7fcfb 0%,#ffffff 48%,#fff7fa 100%);border-bottom:1px solid #e6efec;overflow:hidden}
.ah-inner-hero::before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;right:-180px;top:-210px;background:rgba(233,79,138,.07);pointer-events:none}
.ah-inner-hero::after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;left:-170px;bottom:-180px;background:rgba(15,128,109,.06);pointer-events:none}
.ah-inner-hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.02fr) minmax(360px,.98fr);align-items:stretch;gap:34px;min-height:360px}
.ah-inner-hero-copy{display:flex;flex-direction:column;justify-content:center;padding:20px 4px 20px 0}
.ah-inner-hero-eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--ah-primary);font-size:.82rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;margin-bottom:10px}
.ah-inner-hero-eyebrow::before{content:"";width:34px;height:3px;border-radius:10px;background:linear-gradient(90deg,var(--ah-primary),var(--ah-pink))}
.ah-inner-hero h1{font-size:clamp(2rem,3.5vw,3.45rem);line-height:1.1;letter-spacing:-.035em;font-weight:800;color:#14252a;margin:0 0 16px}
.ah-inner-hero-lead{font-size:clamp(1rem,1.25vw,1.13rem);line-height:1.75;color:#5e6b73;max-width:760px;margin:0 0 22px}
.ah-inner-hero-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.ah-inner-hero-actions .btn{min-height:48px;padding:11px 22px;border-radius:999px;font-weight:700}
.ah-inner-hero-photo{position:relative;min-height:360px;border-radius:28px;overflow:hidden;box-shadow:0 18px 50px rgba(24,65,58,.14);border:7px solid rgba(255,255,255,.92);background:#eef7f4}
.ah-inner-hero-photo img{display:block;width:100%;height:100%;min-height:346px;object-fit:cover;object-position:center}
.ah-inner-hero-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,66,56,.02),rgba(255,255,255,0) 55%,rgba(233,79,138,.10));pointer-events:none}
.ah-inner-hero-tag{position:absolute;left:18px;bottom:18px;z-index:2;padding:9px 13px;border-radius:999px;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);color:#1b5148;font-size:.8rem;font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.08)}
.ah-breadcrumb{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:10px;font-size:.82rem;color:#78858b}
.ah-breadcrumb a{color:var(--ah-primary);text-decoration:none;font-weight:600}

@media (max-width:991px){
  .ah-inner-hero{padding:22px 0 28px}
  .ah-inner-hero-grid{grid-template-columns:1fr;gap:18px;min-height:0}
  .ah-inner-hero-photo{order:-1;min-height:300px;border-radius:22px;border-width:5px}
  .ah-inner-hero-photo img{min-height:290px;max-height:390px}
  .ah-inner-hero-copy{padding:4px 0 0}
  .ah-inner-hero h1{font-size:clamp(1.85rem,5vw,2.65rem)}
}
@media (max-width:600px){
  .ah-inner-hero{padding:14px 0 22px}
  .ah-inner-hero-grid{gap:14px}
  .ah-inner-hero-photo{min-height:220px;border-radius:18px}
  .ah-inner-hero-photo img{min-height:210px;max-height:260px;object-position:center}
  .ah-inner-hero-copy{padding:2px 2px 0}
  .ah-inner-hero-eyebrow{font-size:.72rem;margin-bottom:8px}
  .ah-inner-hero h1{font-size:1.72rem;line-height:1.14;margin-bottom:12px}
  .ah-inner-hero-lead{font-size:.94rem;line-height:1.6;margin-bottom:16px}
  .ah-inner-hero-actions .btn{width:100%;min-height:46px}
  .ah-inner-hero-tag{left:12px;bottom:12px;font-size:.72rem;padding:7px 10px}
}


/* ===== Mobile Stability & Readability Fixes ===== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
body {
  min-width: 0;
}
.container, .container-fluid, main, section, header, footer,
.row, [class*="col-"], .card, .card-body {
  min-width: 0;
}
img, video, iframe, table {
  max-width: 100%;
}
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ah-mobile-panel,
.ah-mobile-panel * {
  max-width: 100%;
}
.ah-mobile-panel a {
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* FAQ: permanently open, readable, no accordion/collapse interaction */
.faq-static-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.faq-item-static {
  background: #fff;
  border: 1px solid #e2ece8;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 8px 28px rgba(20,55,48,.06);
}
.faq-question {
  margin: 0 0 9px;
  color: #17332f;
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 750;
}
.faq-answer {
  margin: 0;
  color: #526069;
  font-size: 1rem;
  line-height: 1.75;
}

/* Mobile treatment menu: show every treatment submenu item immediately */
@media (max-width: 991px) {
  .ah-mobile-group {
    margin: 4px 0 8px;
    padding: 4px;
    background: #f2faf7;
    border: 1px solid #dcece7;
    border-radius: 16px;
  }
  .ah-mobile-treatment-main {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    color: var(--ah-primary) !important;
    background: transparent !important;
    font-size: 1.05rem;
    font-weight: 800 !important;
    padding: 14px 13px !important;
  }
  .ah-mobile-sub {
    display: block !important;
    padding: 0 4px 7px 4px !important;
  }
  .ah-mobile-sub a {
    background: #fff;
    margin: 4px 0;
    padding: 13px 12px !important;
    border: 1px solid #e8f0ed;
    font-size: 1rem !important;
    line-height: 1.35;
  }

  /* Make all normal page copy comfortably readable on phones. */
  body {
    font-size: 17px;
    line-height: 1.7;
  }
  p, li {
    font-size: 1.03rem !important;
    line-height: 1.7 !important;
  }
  .small {
    font-size: .98rem !important;
    line-height: 1.65 !important;
  }
  h1, .h1 {
    font-size: 2rem;
    line-height: 1.18;
  }
  h2, .h2 {
    font-size: 1.65rem;
    line-height: 1.25;
  }
  h3, .h3, .h4, .h5 {
    line-height: 1.3;
  }
  .faq-question {
    font-size: 1.05rem;
  }
  .faq-answer {
    font-size: 1rem;
  }
  .form-label {
    font-size: .98rem !important;
  }
  .form-control, .form-select {
    min-height: 48px;
    font-size: 1rem;
  }
  textarea.form-control {
    min-height: 110px;
  }
}

@media (max-width: 600px) {
  .ah-mobile-panel {
    left: 8px;
    right: 8px;
    width: auto;
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    overflow-x: hidden;
  }
  .ah-mobile-panel a {
    font-size: 1rem;
  }
  .ah-nav {
    padding-left: 10px;
    padding-right: 10px;
  }
  .ah-topbar-inner {
    padding-left: 10px;
    padding-right: 10px;
  }
  .ah-inner-hero-lead,
  .ah-hero-copy .hero-lead {
    font-size: 1rem;
  }
  .faq-item-static {
    padding: 18px 17px;
  }
}


/* ===== Enquiry Form ===== */
.enquiry-form {
  background: #fff;
}
.enquiry-form .form-control,
.enquiry-form .form-select {
  border: 1px solid #dbe7e3;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}
.enquiry-form .form-control:focus,
.enquiry-form .form-select:focus {
  border-color: var(--ah-primary);
  box-shadow: 0 0 0 .2rem rgba(15,128,109,.12);
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}


/* =========================================================
   FOOTER READABILITY — ALL PAGES
   Keep footer text bright and clearly readable on dark background.
   ========================================================= */
footer.bg-dark,
footer {
  color: #ffffff !important;
}

footer p,
footer .text-secondary,
footer li,
footer li a,
footer .small,
footer .small.text-secondary,
footer .text-muted {
  color: #e8f5f2 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #e8f5f2 !important;
}

footer a.text-secondary,
footer a.text-secondary:link,
footer a.text-secondary:visited {
  color: #e8f5f2 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #e8f5f2 !important;
}

footer a.text-secondary:hover,
footer a.text-secondary:focus,
footer a.text-secondary:active {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

footer h4,
footer h5,
footer h6 {
  color: #ffffff !important;
  opacity: 1 !important;
}

footer h4.text-success {
  color: #55d6b3 !important;
  -webkit-text-fill-color: #55d6b3 !important;
}

footer hr {
  border-color: rgba(232,245,242,.35) !important;
  opacity: 1 !important;
}

footer .text-center.small.text-secondary {
  color: #dcefeb !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #dcefeb !important;
}
