/* ---------- SERVICE DETAIL PAGES (e.g. Nose) ---------- */
/* Shared styles for individual procedure pages linked from the
   Facial Plastic Surgery / Breast / Body Contouring, etc. sub-menus.
   Depends on tokens defined in main.css (--navy-900, --blue-*, --teal-*,
   --muted, --line, --radius-*) and layout classes from components.css
   (.page-hero, .page-body). Load this file only on service detail pages. */

.svc-section{padding:64px 0;}
.svc-section:first-of-type{padding-top:0;} /* hero already provides top spacing */
.svc-section + .svc-section{border-top:1px solid var(--line);} /* hairline divider between stacked sections */
/* When a CTA banner immediately follows a section, drop its top padding —
   otherwise the section's own bottom padding (64px) plus the banner's top
   padding (64px) doubles up into a 128px gap. */
.svc-section + .cta-banner{padding-top:0;}

.svc-head{max-width:640px; margin-bottom:36px;}
.svc-head h2{
  font-size:clamp(24px,3vw,32px);
  font-weight:800;
  color:var(--navy-900);
  letter-spacing:-0.01em;
  margin-bottom:12px;
}
.svc-head p{font-size:15px; color:var(--muted); line-height:1.7;}

/* --- Overview: text + image --- */
.svc-overview-grid{
  display:grid;
  grid-template-columns:1.15fr 0.85fr; /* copy gets slightly more room than the image */
  gap:64px;
  align-items:start;
  padding-top:8px;
}
/* Site-wide .eyebrow (main.css) renders as a filled pill. Here we want a
   slim underline-style label instead, so every pill property (background,
   border, padding, radius) is explicitly reset to none/0 before the
   editorial look is applied — scoped to this section only. */
.svc-overview-copy .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:none;
  border:none;
  padding:0;
  border-radius:0;
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--blue-700);
  margin-bottom:22px;
}
.svc-overview-copy .eyebrow::before{
  content:'';
  width:26px; height:2px;
  background:linear-gradient(90deg, var(--blue-500), var(--teal-500)); /* short accent bar replaces the old heart icon */
  flex-shrink:0;
}
.svc-overview-copy .eyebrow svg{display:none;} /* hide the inline heart icon markup still present in the HTML */
.svc-overview-copy h1,
.svc-overview-copy h2{
  font-family:'Plus Jakarta Sans', sans-serif;
  font-size:clamp(26px,3.2vw,34px);
  font-weight:800;
  line-height:1.15;
  color:var(--navy-900);
  letter-spacing:-0.015em;
  margin-bottom:18px;
}
.svc-overview-copy p{font-size:15px; color:var(--muted); line-height:1.75; margin-bottom:14px;}

/* "Signs you may be a candidate" — 2x2 grid of icon + text rows.
   Replaces a plain checkmark checklist with numbered/iconed tiles that
   match the visual language used elsewhere on this page (e.g. .proc-icon). */
.svc-signs{
  margin-top:30px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 28px;
}
.sign-card{
  display:flex;
  align-items:flex-start;
  gap:13px;
  padding:16px 0;
  border-top:1px solid var(--line); /* divider between rows within a column */
}
.sign-card:nth-child(1),
.sign-card:nth-child(2){border-top:none; padding-top:0;} /* no divider above the first row of each column */
.sign-icon{
  flex-shrink:0;
  width:36px; height:36px;
  border-radius:10px;
  background:linear-gradient(135deg, var(--blue-500), var(--teal-600));
  display:flex; align-items:center; justify-content:center;
  font-family:'Plus Jakarta Sans', sans-serif;
  font-size:13px;
  font-weight:800;
  letter-spacing:.01em;
  color:#fff; /* serial number (01–04) shown inside the tile */
}
/* :last-child (not a bare "span" selector) so this rule doesn't also match
   and override the white text color set on .sign-icon above — both are
   <span> elements inside .sign-card. */
.sign-card span:last-child{font-size:13.5px; color:var(--ink); line-height:1.5; padding-top:6px;}
.sign-card .sign-icon{color:#fff;}

.svc-overview-media{position:relative;}
/* Soft color panel offset behind the photo frame for depth — sits below
   the frame (z-index:0) and peeks out from its top-right edge. */
.svc-overview-media::before{
  content:'';
  position:absolute;
  top:28px; right:-20px;
  width:88%; height:94%;
  background:linear-gradient(150deg, var(--blue-100), var(--teal-100));
  border-radius:8px 32px 8px 32px;
  z-index:0;
}
/* Asymmetric corner radii (32px/8px alternating) give the frame a
   distinctive shape instead of a plain rounded rectangle. */
.svc-media-frame{
  position:relative;
  z-index:1;
  border-radius:32px 8px 32px 8px;
  overflow:hidden;
  aspect-ratio:4/4.7;
  max-width:380px;
  box-shadow:0 30px 60px -28px rgba(10,37,54,0.4);
}
.svc-media-frame img{width:100%; height:100%; object-fit:cover; display:block;}

/* Floating trust card that overlaps the bottom edge of the photo frame
   (negative top margin pulls it up over the image). */
.svc-media-badge{
  position:relative;
  z-index:2;
  margin-top:-38px;
  margin-left:24px;
  max-width:270px;
  background:#fff;
  border-radius:var(--radius-md);
  padding:16px 18px;
  display:flex;
  align-items:center;
  gap:12px;
  box-shadow:0 20px 40px -22px rgba(10,37,54,0.3);
}
.svc-media-badge .badge-icon{
  flex-shrink:0;
  width:38px; height:38px;
  border-radius:10px;
  background:var(--bg-wash);
  display:flex; align-items:center; justify-content:center;
}
.svc-media-badge .badge-icon svg{width:18px; height:18px; stroke:var(--blue-700);}
.svc-media-badge strong{display:block; font-size:13px; font-weight:800; color:var(--navy-900); margin-bottom:2px;}
.svc-media-badge span{font-size:11.5px; color:var(--muted); line-height:1.4;}

/* --- Related procedures (informational chips, not yet individual pages) --- */
.svc-types-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
  gap:16px;
}
.type-card{
  background:var(--blue-50);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:18px 18px 20px;
}
.type-card h4{font-size:14.5px; font-weight:700; color:var(--navy-900); margin-bottom:6px;}
.type-card p{font-size:12.5px; color:var(--muted); line-height:1.55;}

/* --- Procedures grid: premium card set ---
   Bento-style card grid for "Procedures under Nose Surgery". Each card:
   - numbered tile (top-left) instead of a per-procedure icon
   - category pill (top-right): blue = cosmetic-only, teal (.is-functional)
     = the procedure also addresses breathing/airway function
   - gradient top border + icon lift on hover */
.proc-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}
.proc-card{
  position:relative;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:28px 26px 26px;
  overflow:hidden;
  transition:transform .35s cubic-bezier(.22,.8,.32,1), box-shadow .35s ease, border-color .35s ease;
}
/* Gradient bar, hidden by default (scaleX 0), sweeps in from the left on hover */
.proc-card::before{
  content:'';
  position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg, var(--blue-500), var(--teal-500));
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .45s cubic-bezier(.22,.8,.32,1);
}
.proc-card:hover{
  transform:translateY(-6px);
  box-shadow:0 26px 48px -28px rgba(18,104,138,0.38);
  border-color:var(--blue-100);
}
.proc-card:hover::before{transform:scaleX(1);}

.proc-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px;
}
/* Numbered tile (01–06) shown in place of a per-procedure icon */
.proc-icon{
  flex-shrink:0;
  width:48px; height:48px;
  border-radius:14px;
  background:linear-gradient(135deg, var(--blue-500), var(--teal-600));
  display:flex; align-items:center; justify-content:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3), 0 10px 20px -12px rgba(18,104,138,.6);
  transition:transform .35s cubic-bezier(.22,.8,.32,1);
  font-family:'Plus Jakarta Sans', sans-serif;
  font-size:15px;
  font-weight:800;
  letter-spacing:.01em;
  color:#fff;
}
.proc-card:hover .proc-icon{transform:scale(1.08) rotate(-4deg);}

/* Category pill: blue by default, teal (.is-functional) flags procedures
   that also address breathing/airway function, not just appearance. */
.proc-tag{
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  padding:5px 11px;
  border-radius:99px;
  background:var(--blue-50);
  color:var(--blue-700);
  white-space:nowrap;
}
.proc-tag.is-functional{background:var(--teal-100); color:var(--teal-600);}

.proc-card h4{
  font-family:'Plus Jakarta Sans', sans-serif;
  font-size:17px;
  font-weight:800;
  color:var(--navy-900);
  letter-spacing:-0.01em;
  margin-bottom:8px;
}
.proc-card p{font-size:13.5px; color:var(--muted); line-height:1.65;}

/* First card (most common procedure) sits on a soft wash background to
   read as a subtle "featured" item without a heavier treatment. */
.proc-card--feature{background:var(--bg-wash); border-color:transparent;}
.proc-card--feature:hover{border-color:var(--blue-100);}

@media (max-width:900px){
  .proc-grid{grid-template-columns:repeat(2, 1fr);} /* 3 cols -> 2 cols on tablet */
}
@media (max-width:600px){
  .proc-grid{grid-template-columns:1fr;}
}

/* --- Single accordion panel (no category sidebar), e.g. Procedures list --- */
.jn-single{
  background:var(--bg-wash);
  border-radius:var(--radius-lg);
  padding:16px;
}

/* --- Journey: sidebar categories + accordion --- */
.jn-journey{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:24px;
  background:var(--bg-wash);
  border-radius:var(--radius-lg);
  padding:16px;
}
.jn-sidebar{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.jn-cat-btn{
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  text-align:left;
  background:transparent;
  border:1px solid transparent;
  border-radius:var(--radius-md);
  padding:14px 16px;
  transition:background .15s ease, box-shadow .15s ease;
}
.jn-cat-btn:hover{background:rgba(255,255,255,0.6);}
.jn-cat-btn.active{
  background:#fff;
  border-color:var(--line);
  box-shadow:0 10px 24px -16px rgba(10,37,54,0.25);
}
.jn-cat-icon{
  flex-shrink:0;
  width:38px; height:38px;
  border-radius:10px;
  background:var(--blue-50);
  color:var(--blue-700);
  display:flex; align-items:center; justify-content:center;
  transition:background .15s ease, color .15s ease;
}
.jn-cat-icon svg{width:18px; height:18px;}
.jn-cat-btn.active .jn-cat-icon{
  background:linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color:#fff;
}
.jn-cat-text{display:flex; flex-direction:column; gap:3px;}
.jn-cat-text strong{font-size:14px; font-weight:700; color:var(--navy-900);}
.jn-cat-text small{font-size:12px; color:var(--muted);}

.jn-content{
  background:#fff;
  border-radius:var(--radius-md);
  padding:28px;
}
.jn-content-head{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:24px;
}
.jn-content-icon{
  flex-shrink:0;
  width:52px; height:52px;
  border-radius:14px;
  background:linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color:#fff;
  display:flex; align-items:center; justify-content:center;
}
.jn-content-icon svg{width:24px; height:24px;}
.jn-content-head h3{font-size:19px; font-weight:800; color:var(--navy-900); margin-bottom:3px;}
.jn-content-head p{font-size:13px; color:var(--muted);}

.jn-panel{display:flex; flex-direction:column; gap:10px;}
.jn-item{
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:2px 22px;
  background:var(--blue-50);
}
.jn-item summary{
  list-style:none;
  cursor:pointer;
  padding:15px 30px 15px 0;
  font-size:14px;
  font-weight:700;
  color:var(--navy-900);
  position:relative;
}
.jn-item summary::-webkit-details-marker{display:none;}
.jn-item summary::before{
  content:'';
  position:absolute;
  left:-16px; top:22px;
  width:5px; height:5px;
  border-radius:50%;
  background:var(--blue-600);
}
.jn-item summary::after{
  content:'+';
  position:absolute;
  right:0; top:50%;
  transform:translateY(-50%);
  width:24px; height:24px;
  border-radius:50%;
  background:#fff;
  color:var(--blue-700);
  font-size:16px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  transition:transform .2s ease;
}
.jn-item[open] summary::after{transform:translateY(-50%) rotate(45deg);}
.jn-item p{font-size:13.5px; color:var(--muted); line-height:1.7; padding-bottom:18px;}

/* --- Doctor spotlight ---
   Two doctor cards side by side (was a single card + inline "View All
   Doctors" link; the CTA now lives outside the grid, centered below both
   cards, so it reads as one shared action rather than belonging to just
   the first doctor). */
.svc-doctors-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-bottom:28px;
}
.svc-doctors-cta-wrap{text-align:center;}
.svc-doctor-card{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:26px;
  align-items:center;
  background:var(--blue-50);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:22px;
}
.svc-doctor-photo{
  width:100%; aspect-ratio:1/1;
  border-radius:14px; overflow:hidden;
  background:#EAF6F9;
}
.svc-doctor-photo img{width:100%; height:100%; object-fit:cover; display:block;}
.svc-doctor-info h4{font-size:17px; font-weight:800; color:var(--navy-900); margin-bottom:4px;}
.svc-doctor-info .qual{font-size:12.5px; color:var(--muted); line-height:1.55; margin-bottom:14px;}


/* Tablet: stack overview text/image, drop decorative offset panel behind
   the photo (not enough room for it to read cleanly), switch the Journey
   accordion's sidebar to a horizontal scroller, and stack the two doctor
   cards. */
@media (max-width:900px){
  .svc-overview-grid{grid-template-columns:1fr; gap:28px;}
  .svc-overview-media{order:-1;}
  .svc-overview-media::before{display:none;}
  .svc-media-frame{border-radius:var(--radius-lg); aspect-ratio:16/10; max-width:none;}
  .svc-media-badge{margin-left:16px; margin-top:-32px;}
  .jn-journey{grid-template-columns:1fr;}
  .jn-sidebar{
    flex-direction:row;
    overflow-x:auto;
    gap:10px;
    padding-bottom:4px;
  }
  .jn-cat-btn{width:auto; flex-shrink:0;}
  .jn-cat-text small{display:none;}
  .svc-doctors-grid{grid-template-columns:1fr; gap:16px;}
  .svc-doctor-card{grid-template-columns:110px 1fr; padding:18px;}
}
/* Small phones: signs grid drops to a single column, so the divider that
   was between columns 1&2 needs to move above card 2 instead. */
@media (max-width:560px){
  .svc-signs{grid-template-columns:1fr;}
  .sign-card:nth-child(2){border-top:1px solid var(--line); padding-top:16px;}
  .svc-media-badge{max-width:none;}
}
@media (max-width:600px){
  .svc-section{padding:48px 0;}
  .jn-journey{padding:12px;}
  .jn-content{padding:20px;}
  .jn-cat-text strong{font-size:13px;}
}
