/* ============================================================
   DR. PEU — HOMEPAGE STYLES (loads after style.css)
   ============================================================ */

/* ── HERO ── */
.hero {
  position: relative;
  margin-top: var(--nav-h);
  padding: clamp(48px, 7vw, 90px) 0 clamp(56px, 7vw, 80px);
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 90% 0%, var(--blue-pale), transparent 60%),
    radial-gradient(700px 500px at 0% 90%, #FFF7E8, transparent 55%),
    var(--white);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(31,169,113,0.1); color: #137a52;
  border: 1px solid rgba(31,169,113,0.25);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.3px;
  padding: 7px 15px; border-radius: var(--r-pill);
  margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(1.35); } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.6vw, 66px);
  font-weight: 600; line-height: 1.04;
  letter-spacing: -0.03em; color: var(--ink);
  margin-bottom: 18px;
}
.hero h1 .accent {
  color: var(--blue);
  font-style: italic;
}
.hero-sub { font-size: clamp(16px, 1.8vw, 20px); color: var(--ink-soft); margin-bottom: 26px; max-width: 480px; line-height: 1.55; }
.hero-creds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.cred {
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line);
  padding: 7px 14px; border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
}
.cred strong { color: var(--blue); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero portrait */
.hero-figure { position: relative; }
.hero-portrait {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-lg); aspect-ratio: 4/5; background: var(--blue-pale);
  max-width: 440px; margin-left: auto;
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-portrait::after { content:''; position:absolute; inset:0; background: linear-gradient(to top, rgba(11,23,51,0.18), transparent 35%); pointer-events:none; }
.hero-caption { position: absolute; left: 22px; bottom: 20px; z-index: 2; color: #fff; }
.hero-caption .lbl { font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.85; }
.hero-caption .nm { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.hero-chip {
  position: absolute; top: 18px; right: -10px; z-index: 3;
  background: var(--gold); color: #3a2f06;
  font-size: 11px; font-weight: 800; line-height: 1.25; text-align: center;
  padding: 9px 14px; border-radius: 12px;
  box-shadow: 0 8px 22px rgba(201,162,39,0.45);
}
.hero-float {
  position: absolute; left: -14px; top: 50%; z-index: 3;
  background: #fff; border-radius: 14px; box-shadow: var(--sh-md);
  padding: 12px 16px; display: flex; align-items: center; gap: 11px;
}
.hero-float .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-pale); display: grid; place-items: center; font-size: 19px; }
.hero-float .t { font-size: 12px; color: var(--ink-faint); }
.hero-float .v { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }

/* ── STATS / TRUST STRIP ── */
.stats { background: var(--blue); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; padding-top: 30px; padding-bottom: 30px; }
.stat { text-align: center; padding: 6px; border-right: 1px solid rgba(255,255,255,0.16); }
.stat:last-child { border-right: none; }
.stat .n { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; line-height: 1; margin-bottom: 5px; }
.stat .l { font-size: 12.5px; color: rgba(255,255,255,0.8); line-height: 1.35; }

/* ── ABOUT ── */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-figure { position: relative; }
.about-figure img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-lg); aspect-ratio: 4/3; object-fit: cover; }
.about-figcaption {
  position: absolute; right: -16px; bottom: -18px; max-width: 230px;
  background: var(--blue); color: #fff; font-size: 12.5px; line-height: 1.5;
  padding: 14px 18px; border-radius: 14px; box-shadow: var(--sh-blue);
}
.about-quote {
  background: #fff; border-left: 3px solid var(--blue);
  padding: 18px 22px; border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 24px 0; font-family: var(--font-display); font-style: italic;
  font-size: 16px; color: var(--ink-soft); line-height: 1.7; box-shadow: var(--sh-sm);
}
.cred-list { list-style: none; display: flex; flex-direction: column; gap: 13px; margin: 24px 0; }
.cred-list li { display: flex; gap: 13px; font-size: 15px; color: var(--ink-soft); }
.cred-list li::before { content: '✓'; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.bmdc-tag { display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 11px 18px; border-radius: var(--r-pill); }
.bmdc-tag b { color: var(--gold); }

/* ── SERVICES (TETRIS GRID) ── */
.services { background: #fff; }
.services-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.services-head .lead { margin: 0 auto; }

.svc-grid { 
  display: grid; 
  grid-template-columns: repeat(6, 1fr); /* 6 Columns for PC */
  grid-auto-rows: 170px;                 /* Fixed square height */
  grid-auto-flow: dense;                 /* Essential for Tetris packing */
  gap: 16px; 
}

.svc-card {
  grid-column: span 1;
  grid-row: span 1;
  background: #fff; 
  border: 1px solid var(--line);
  border-radius: var(--r-md); 
  padding: 20px;
  cursor: pointer; 
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 1;
}

.svc-card:hover { 
  border-color: var(--blue-mid); 
  box-shadow: var(--sh-md); 
}

/* Expanded State: 3x2 on PC */
.svc-card.open { 
  grid-row: span 2;
  border-color: var(--blue); 
  box-shadow: var(--sh-md); 
  background: var(--blue-pale);
  z-index: 2;
}

/* Visible Base Content */
.svc-ic-wrap {
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.4s var(--ease);
}
.svc-ic { 
  width: 56px; height: 56px; 
  border-radius: 14px; background: var(--blue-pale); 
  display: grid; place-items: center; font-size: 26px; 
  margin-bottom: 12px; 
  transition: background 0.4s;
}
.svc-card.open .svc-ic { background: #fff; }

.svc-card h3 { 
  font-family: var(--font-display); 
  font-size: 16px; font-weight: 600; 
  color: var(--ink); line-height: 1.3; margin: 0;
}

/* Hidden Content inside Expanded Wrapper */
.svc-expanded-content {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.svc-card.open .svc-expanded-content {
  opacity: 1;
  max-height: 300px;
  margin-top: 16px;
}
.svc-short { 
  font-size: 14.5px; color: var(--ink-soft); 
  line-height: 1.6; max-width: 540px; margin-bottom: 22px; 
}
.svc-read-more { padding: 11px 24px; font-size: 14px; }

/* ── AFFILIATIONS (not used by default, reserved) ── */

/* ── LOCATION ── */
.location { background: var(--paper); }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.loc-items { display: flex; flex-direction: column; gap: 18px; margin: 26px 0; }
.loc-item { display: flex; gap: 14px; }
.loc-item .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-pale); display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.loc-item strong { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 3px; }
.loc-item p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.loc-map { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-md); border: 1px solid var(--line); }
.loc-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ── TESTIMONIALS ── */
.testi { background: #fff; }
.testi-head { text-align: center; max-width: 600px; margin: 0 auto 44px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; }
.testi-stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }
.testi-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.7; font-style: italic; margin-bottom: 18px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-author .av { width: 42px; height: 42px; border-radius: 50%; background: var(--blue-pale); display: grid; place-items: center; font-size: 18px; color: var(--blue); font-weight: 700; }
.testi-author .nm { font-size: 14px; font-weight: 700; color: var(--ink); }
.testi-author .meta { font-size: 12.5px; color: var(--ink-faint); }
.testi-note { text-align: center; margin-top: 28px; font-size: 13px; color: var(--ink-faint); }

/* ── CONTACT ── */
.contact { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.contact::before { content:''; position: absolute; inset: 0; background: radial-gradient(700px 400px at 85% 10%, rgba(75,107,245,0.35), transparent 60%); }
.contact .wrap { position: relative; z-index: 2; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 56px); align-items: center; }
.contact h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; color: #fff; letter-spacing: -0.02em; margin-bottom: 14px; }
.contact .lead { color: rgba(255,255,255,0.75); }
.contact-items { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 14px; }
.contact-item .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.1); display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.contact-item strong { display: block; color: #fff; font-size: 14.5px; margin-bottom: 3px; }
.contact-item span, .contact-item p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.6; }
.contact-card { background: #fff; border-radius: var(--r-lg); padding: 32px; text-align: center; color: var(--ink); box-shadow: var(--sh-lg); }
.contact-card .lbl { font-size: 13px; color: var(--ink-faint); font-weight: 600; letter-spacing: 0.5px; margin-bottom: 8px; }
.contact-card .phone { display: block; font-family: var(--font-display); font-size: clamp(28px, 4vw, 38px); font-weight: 600; color: var(--blue); text-decoration: none; margin-bottom: 20px; letter-spacing: -0.01em; }
.contact-card .btn { width: 100%; justify-content: center; }
.contact-card .hrs { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); line-height: 1.7; }

/* ── FAQ ── */
.faq { background: var(--paper); }
.faq-head { text-align: center; max-width: 600px; margin: 0 auto 40px; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow 0.3s; }
.faq-item.open { box-shadow: var(--sh-sm); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.faq-q .pm { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-pale); color: var(--blue); display: grid; place-items: center; font-size: 18px; transition: transform 0.3s, background 0.3s; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 22px 20px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; }

/* ── RESPONSIVE ── */
@media (max-width: 940px) {
  /* Tablet / Small Laptop: 3 Columns */
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-card.open { grid-column: 1 / -1 !important; grid-row: span 2; }
  
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 420px; margin: 0 auto; }
  .hero-portrait { margin: 0 auto; }
  .stats .wrap { grid-template-columns: repeat(3, 1fr); gap: 24px 12px; }
  .stat:nth-child(3) { border-right: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 460px; }
  .loc-grid, .contact-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Phone: 2 Columns */
  .svc-grid { 
    grid-template-columns: repeat(2, 1fr); 
    grid-auto-rows: 155px; /* Slightly tighter boxes for phones */
  }
  .svc-card.open { grid-column: 1 / -1 !important; grid-row: span 2; }
}

@media (max-width: 560px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.16); }
  .stat:nth-child(even) { border-right: none; }
  .hero-float { left: 0; }
  .hero-chip { right: 0; }
  .about-figcaption { right: 0; }
}
.hero-text h1 .h1-sub {
  display: block !important;
  font-size: 1.1rem !important;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 0.6rem;
  opacity: 0.85;
  font-style: normal;
  font-family: 'Plus Jakarta Sans', sans-serif;
}