/* ============================================================
   home.css — Styles specific to index.html
   ============================================================ */

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 5%;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--ivory) 0%, var(--cream) 60%, #EDE5D8 100%);
  z-index: 0;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

.hero-decor {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 151, 90, 0.08) 0%, transparent 70%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  animation: fadeUp 1s ease 0.2s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 300;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--charcoal);
  display: block;
}

.hero-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-stat-divider {
  width: 1px;
  background: var(--border);
}

/* Hero visual / image frame */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.2s ease 0.5s both;
}

.hero-img-frame { position: relative; width: 440px; height: 560px; }

.hero-img-bg {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold-light);
  border-radius: 4px;
  opacity: 0.4;
}

.hero-img-placeholder {
  width: 440px;
  height: 560px;
  background: linear-gradient(160deg, #E8DFD0, #D4C9B4);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-img-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
}

.hero-img-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.hero-img-inner { text-align: center; }

.hero-img-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.hero-img-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--charcoal);
}

.hero-img-title {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.hero-trust {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: white;
  border-radius: 4px;
  padding: 0.8rem 1.2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-trust-icon { font-size: 1.4rem; }

.hero-trust-text { font-size: 0.72rem; line-height: 1.4; }

.hero-trust-text strong {
  display: block;
  color: var(--charcoal);
  font-weight: 600;
}

.fortis-badge {
  position: absolute;
  top: 24px;
  right: -10px;
  background: var(--charcoal);
  color: white;
  padding: 0.6rem 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* ------------------------------------------------------------
   ABOUT
   ------------------------------------------------------------ */
.about { background: var(--warm-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 6rem;
  align-items: center;
}

.about-img-wrap { position: relative; }

.about-img {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--cream), #DDD0BC);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
}

.about-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 26, 23, 0.3), transparent);
}

.about-img-text {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 2;
  color: white;
}

.about-img-text h3 { font-size: 1.6rem; font-weight: 400; }

.about-img-text p {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.3rem;
}

.about-cert {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.about-cert-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.about-cert-label {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  line-height: 1.3;
}

.about-content p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.qualifications { margin: 2rem 0; }

.qual-title {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}

.qual-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.qual-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-body);
}

.qual-list li::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.5rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-stat {
  background: var(--cream);
  padding: 1.2rem;
  border-radius: 4px;
  border-left: 2px solid var(--gold);
}

.about-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--charcoal);
}

.about-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ------------------------------------------------------------
   SERVICES PREVIEW (home page grid)
   ------------------------------------------------------------ */
.services { background: var(--ivory); }

.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}

.services-desc {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 420px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--warm-white);
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  margin-top: 1rem;
  font-weight: 500;
  transition: gap 0.3s;
}

.service-link:hover { gap: 0.8rem; }

/* ------------------------------------------------------------
   WHY CHOOSE
   ------------------------------------------------------------ */
.why { background: var(--charcoal); }

.why .section-tag { color: var(--gold-light); }
.why .section-tag::before { background: var(--gold-light); }
.why .section-title { color: white; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.why-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 4px;
  transition: all 0.4s;
}

.why-card:hover {
  background: rgba(184, 151, 90, 0.08);
  border-color: rgba(184, 151, 90, 0.3);
  transform: translateY(-4px);
}

.why-icon {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  display: block;
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 500;
  color: white;
  margin-bottom: 0.6rem;
  font-family: 'DM Sans', sans-serif;
}

.why-card p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------------------------------------
   TESTIMONIALS
   ------------------------------------------------------------ */
.testimonials { background: var(--warm-white); }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.testi-card {
  background: var(--cream);
  padding: 2.5rem;
  border-radius: 4px;
  position: relative;
  transition: all 0.4s;
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testi-quote {
  font-size: 3rem;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'Cormorant Garamond', serif;
}

.testi-text {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

.testi-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
}

.testi-procedure {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.testi-stars {
  color: var(--gold);
  font-size: 0.8rem;
  margin-top: 0.8rem;
}

/* ------------------------------------------------------------
   HOSPITAL SECTION
   ------------------------------------------------------------ */
.hospital {
  background: linear-gradient(135deg, var(--ivory), var(--cream));
}

.hospital-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hospital-visual {
  background: linear-gradient(160deg, #C8BDB0, #B0A494);
  border-radius: 4px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hospital-visual-text { text-align: center; color: white; }
.hospital-visual-text h3 { font-size: 2rem; font-weight: 400; }

.hospital-visual-text p {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.4rem;
}

.hospital-content p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hospital-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.hospital-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.hospital-feature-icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hospital-feature-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
  font-family: 'DM Sans', sans-serif;
}

.hospital-feature-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq { background: var(--ivory); }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--charcoal);
  text-align: left;
  gap: 1rem;
}

.faq-q:hover { color: var(--gold); }

.faq-icon {
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-icon.open { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-a p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-muted);
  padding-bottom: 1.2rem;
}

.faq-a.open { max-height: 220px; }

.faq-cta {
  background: var(--charcoal);
  padding: 3rem;
  border-radius: 4px;
  text-align: center;
}

.faq-cta h3 {
  font-size: 1.6rem;
  color: white;
  margin-bottom: 0.8rem;
}

.faq-cta p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   RESPONSIVE — Home page
   ------------------------------------------------------------ */

/* ── Tablet (≤ 1024px) ──────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Hero: stack to single column, image becomes a circular portrait above text */
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 90px;
    padding-bottom: 4rem;
    row-gap: 0;
    min-height: auto;        /* don't force full-screen height on mobile */
    align-items: flex-start;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
    order: -1;           /* photo appears above the text */
    margin-bottom: 2.5rem;
    animation: fadeIn 0.8s ease 0.1s both;
  }

  /* Shrink the frame to a neat circle */
  .hero-img-frame {
    width: 180px;
    height: 180px;
  }

  /* Decorative offset border → hidden on small screens */
  .hero-img-bg { display: none; }

  /* Make the placeholder itself circular */
  .hero-img-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 0 0 6px rgba(184, 151, 90, 0.15);
  }

  /* Round the actual <img> to match */
  .hero-img-placeholder img {
    border-radius: 50%;
    object-position: center 10%;
  }

  /* Hide overlays that don't fit on a circle */
  .hero-trust,
  .fortis-badge { display: none; }

  /* Centre other hero elements */
  .hero-stats  { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-badge  { margin: 0 auto 2rem; }
  .hero-sub    { margin-left: auto; margin-right: auto; }

  /* About: image shows as a wide landscape banner above the text */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .about-img-wrap {
    display: block;
    width: 100%;                /* explicit — prevents 0-width collapse */
    max-width: 600px;
    margin: 0 auto;
    opacity: 1 !important;      /* bypass reveal animation — no scroll needed */
    transform: none !important;
    transition: none !important;
  }

  /* Landscape banner crop — switch img from position:absolute to static flow */
  .about-img {
    aspect-ratio: unset;
    width: 100%;
    height: 300px;
    display: block;             /* override flex — simpler for static img child */
    overflow: hidden;
    border-radius: 4px;
  }

  /* Static-flow image: fills container width naturally, no containing-block issues */
  .about-img img {
    position: static;
    inset: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
    z-index: auto;
    border-radius: 0;
  }

  /* Keep overlay (::after) on top of the now-static image */
  .about-img::after { z-index: 1; }

  /* Keep the gold cert badge but reposition it */
  .about-cert {
    top: -14px;
    right: -14px;
    width: 86px;
    height: 86px;
  }
  .about-cert-num { font-size: 1.7rem; }

  /* Grid adjustments */
  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .services-intro  { grid-template-columns: 1fr; gap: 1.5rem; }
  .why-grid        { grid-template-columns: repeat(2, 1fr); }
  .testi-grid      { grid-template-columns: 1fr; }
  .hospital-inner  { grid-template-columns: 1fr; gap: 2.5rem; }
  .faq-grid        { grid-template-columns: 1fr; }
}

/* ── Mobile (≤ 640px) ───────────────────────────────────────── */
@media (max-width: 640px) {
  /* Hero circle a touch smaller on phones */
  .hero-img-frame       { width: 148px; height: 148px; }
  .hero-img-placeholder { width: 148px; height: 148px; }
  .hero-visual          { margin-bottom: 2rem; }

  /* About image: slightly shorter on small phones */
  .about-img { height: 240px; }
  .about-img img { object-position: center 10%; }

  /* Hide the cert badge on small phones to avoid overlap */
  .about-cert { display: none; }

  /* Other grid tweaks */
  .services-grid    { grid-template-columns: 1fr; }
  .why-grid         { grid-template-columns: 1fr; }
  .about-stats      { grid-template-columns: 1fr; }
  .hero-stats       { flex-direction: column; gap: 1rem; }
  .hero-stat-divider{ display: none; }
  .delight-cards-row { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------
   PATIENT DELIGHT CARDS — home page testimonials
   ------------------------------------------------------------ */
.delight-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.delight-card-img-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: all 0.3s;
}

.delight-card-img-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(28, 26, 23, 0.12);
}

.delight-card-img-wrap img {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
}

.delight-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(28,26,23,0.8));
  color: rgba(255,255,255,0.85);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1.5rem 0.8rem 0.7rem;
  font-family: 'DM Sans', sans-serif;
}

/* Delight card lightbox */
.delight-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 23, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.delight-lightbox.active { display: flex; }

.delight-lightbox img {
  max-width: min(90vw, 600px);
  max-height: 90vh;
  border-radius: 4px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.delight-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.delight-lightbox-close:hover { opacity: 1; }

@media (max-width: 1024px) {
  .delight-cards-row { grid-template-columns: repeat(2, 1fr); }
}
