/* page-orthodontics.css: page-only components for orthodontics.html. Tokens come from site.css. */

/* doctor cutout on a tinted arch */
/* real headshot from the client's About page (205x249 native): shown at native size, clean rounded frame */
.o-headshot{display:flex;justify-content:center}
.o-headshot::after{display:none}
.o-headshot img{width:520px;max-width:100%;height:auto;aspect-ratio:1/1;object-position:center;object-fit:cover;border-radius:var(--radius-lg);border:6px solid #fff;box-shadow:0 0 0 1.5px var(--color-primary-100,#c5ebe6),var(--shadow-xl)}
.o-card-h2{font-size:clamp(1.6rem,2.8vw,2.15rem);line-height:1.15;margin:.6rem 0 1.1rem;text-wrap:balance}
.o-creds{list-style:none;margin:0 0 1.4rem;padding:1rem 0 0;border-top:1px solid var(--color-border);display:grid;gap:.45rem}
.o-creds li{position:relative;padding-left:1.1rem;font-size:.875rem;line-height:1.5;color:var(--color-text-secondary)}
.o-creds li::before{content:'';position:absolute;left:0;top:.55em;width:6px;height:6px;border-radius:50%;background:var(--color-accent)}

/* braces cards: the card image is a line illustration */
.o-svgcard{display:grid;place-items:center;background:linear-gradient(150deg,#e8f6f4,#f5f2ee)}
.o-svgcard--clear{background:linear-gradient(150deg,#fdf0eb,#f5f2ee)}
.o-svgcard--ret{background:linear-gradient(150deg,#f5f2ee,#e8f6f4)}
.o-svgcard svg{width:72%;height:auto;max-height:82%;transition:transform .8s var(--ease-out)}
.i-card:hover .o-svgcard svg{transform:scale(1.05)}
/* all four shapes are stroked line art with a faint tint (fill alpha under .5), like the retainer: effects.js then draws them
   as strokes together instead of holding solid-filled teeth and brackets back for a late pop-in (they read as missing artwork) */
.o-svgcard .tooth{fill:rgba(26,138,125,.07);stroke:#0e6b61;stroke-width:2}
.o-svgcard .wire{stroke:#5e5853;stroke-width:2.2}
.o-svgcard .brk.metal{fill:rgba(94,88,83,.14);stroke:#5e5853;stroke-width:2}
.o-svgcard .brk.clear{fill:rgba(224,124,90,.14);stroke:#c9663f;stroke-width:2}
.o-svgcard .slot{stroke:#5e5853;stroke-width:1.6}
.o-svgcard .brk.clear~.slot,.o-svgcard--clear .slot{stroke:#c9663f}
.o-svgcard .plate{fill:rgba(224,124,90,.18);stroke:#c9663f;stroke-width:2}

.o-tips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;margin-top:clamp(2rem,4vw,3rem);padding-top:clamp(1.5rem,3vw,2rem);border-top:1px solid var(--color-border)}
.o-tip h3{font-size:1.1rem;margin-bottom:.35rem}
.o-tip p{font-size:.9375rem;line-height:1.6}

/* comparison band: teal, seamed from the off-white section above */
.o-compare{position:relative;color:#fff;padding:calc(190px + 1.5rem) 0 var(--section-padding);
  background:linear-gradient(to bottom,#faf9f7 0,#cdeae5 50px,#2bb5a5 110px,#1a8a7d 150px,#0e6b61 190px,#0e6b61 100%)}
.o-compare h2{color:#fff;text-wrap:balance}
.o-compare .i-head p{color:rgba(255,255,255,.92)}
.o-table-wrap{max-width:960px;margin:0 auto;overflow-x:auto;border-radius:var(--radius-lg);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16)}
.o-table{width:100%;border-collapse:collapse;font-size:.9375rem;line-height:1.5}
.o-table th,.o-table td{padding:1rem 1.25rem;text-align:left;vertical-align:top;border-bottom:1px solid rgba(255,255,255,.14)}
.o-table tbody tr:last-child th,.o-table tbody tr:last-child td{border-bottom:0}
.o-table thead th{font-family:'DM Serif Display',Georgia,serif;font-weight:400;font-size:1.35rem;color:#fff;background:rgba(0,0,0,.12)}
.o-table tbody th{font-weight:600;color:#fff;width:24%}
.o-table td{color:rgba(255,255,255,.92)}
.o-compare-note{max-width:720px;margin:1.5rem auto 0;text-align:center;font-size:.9375rem;color:rgba(255,255,255,.92)}
.o-compare-note a{color:#fff;text-decoration:underline;text-underline-offset:3px}
/* site.css "main a:not([class])" (teal, for light grounds) ties on specificity and used to win: teal link on the teal band */
main .o-compare-note a,main .o-compare-note a:hover{color:#fff}

/* teens + early treatment: text with line-art arch beside the timeline */
.o-teen-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(2rem,5vw,4rem);align-items:start}
.o-teen-text h3{font-size:1.3rem;margin:1.6rem 0 .5rem}
.o-teen-text p{margin-bottom:1rem}
.o-teen-text p a{text-decoration:underline;text-underline-offset:3px}
.o-teen-text .i-checklist{margin:.75rem 0 1.25rem}
.o-arch{display:block;width:100%;max-width:300px;height:auto;margin:0 0 1.5rem}
.o-arch path{stroke:#1a8a7d;stroke-width:1.8;stroke-linecap:round}
.o-arch path.al{stroke:#e07c5a;stroke-width:1.4}
.o-steps-title{font-size:1.3rem;margin-bottom:1.25rem}
.o-teen-steps .i-steps{max-width:none}

/* related links inside the FAQ aside */
.o-related{margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--color-border)}
.o-related h3{font-size:1.1rem;margin-bottom:.6rem}
.o-related ul{list-style:none;display:grid;gap:.5rem}
.o-related a{font-size:.9375rem;text-decoration:underline;text-underline-offset:3px}

@media (max-width:980px){
  .o-teen-grid{grid-template-columns:1fr}
  .o-tips{grid-template-columns:1fr}
}
@media (max-width:640px){
  .o-table th,.o-table td{padding:.8rem .85rem;font-size:.875rem}
  .o-table thead th{font-size:1.1rem}
  .o-arch{max-width:240px;margin-left:auto;margin-right:auto}
}

/* keep the 1440px aurora plane from widening the document on small screens */
#invisalign{overflow-x:clip}

/* gallery: four photos fill the row instead of leaving a gap */
#smile-gallery .i-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
#smile-gallery .i-gallery figure{aspect-ratio:16/10;box-shadow:var(--shadow-md)}
@media (max-width:640px){#smile-gallery .i-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}}

/* timeline stays in view beside the longer teen copy on desktop */
@media (min-width:981px){.o-teen-steps{position:sticky;top:calc(var(--header-h,80px) + 1.5rem)}}

/* life with braces: photo beside the tips (overrides the 3-column tip row) */
.o-life{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:clamp(1.75rem,4vw,3.5rem);align-items:center;margin-top:clamp(2.5rem,5vw,4rem)}
.o-life-photo{margin:0;position:relative;isolation:isolate}
.o-life-photo img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:center 30%;border-radius:var(--radius-lg);box-shadow:var(--shadow-lg)}
.o-life-photo::before{content:'';position:absolute;inset:-12px auto auto -12px;width:60%;height:60%;border-radius:var(--radius-lg);background:linear-gradient(135deg,var(--color-accent-light),var(--color-primary-100));z-index:-1}
.o-life-title{font-size:clamp(1.4rem,2.4vw,1.8rem);margin-bottom:.6rem;text-wrap:balance}
.o-life-body>p{margin-bottom:1.25rem}
.o-life .o-tips{grid-template-columns:1fr;margin-top:0;padding-top:1.25rem;gap:1rem}
@media (max-width:980px){.o-life{grid-template-columns:1fr}.o-life-photo{max-width:360px}}

/* 2026-10-14 ai-tells: no card accent bar, icons off tinted tiles, braces as a list of wide rows */
.i-card-body::before{display:none}
.o-svgcard,.o-svgcard--clear,.o-svgcard--ret{background:none}
#braces .i-cards{grid-template-columns:1fr;max-width:900px}
#braces .i-card{flex-direction:row;align-items:center}
#braces .o-svgcard{flex:0 0 180px;aspect-ratio:1/1}
@media (max-width:600px){#braces .i-card{flex-direction:column;align-items:stretch}#braces .o-svgcard{flex:none;aspect-ratio:16/10}}
/* braces portrait removed: tips run as one row under the intro */
.o-life{grid-template-columns:1fr}
.o-life .o-tips{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:760px){.o-life .o-tips{grid-template-columns:1fr}}

/* soft aurora bands (operator 2026-10-14: less beige, uneven horizontal auroras in orange and green, elegant).
   Host: .i-section.i-aur.acc-k with <div class="aur" aria-hidden="true"></div> first, then an optional
   .aur-tint--coral or .aur-tint--teal sibling that tilts that band's streak colours. */
.i-section.i-aur.acc-k{--aur-k:.45}
.aur-tint{position:absolute;top:-6px;left:50%;width:108vw;margin-left:-54vw;height:calc(var(--seam,220px) + 6px);pointer-events:none;z-index:-1;-webkit-mask:linear-gradient(to bottom,transparent 0,#000 30%,#000 62%,transparent 100%);mask:linear-gradient(to bottom,transparent 0,#000 30%,#000 62%,transparent 100%)}
.aur-tint--coral{background:radial-gradient(ellipse 22% 30% at 72% 46%,rgb(240 129 79/.08),rgb(240 129 79/0) 70%),radial-gradient(ellipse 14% 22% at 88% 58%,rgb(224 124 90/.04),rgb(224 124 90/0) 70%),radial-gradient(ellipse 12% 20% at 34% 52%,rgb(240 129 79/.04),rgb(240 129 79/0) 70%)}
.aur-tint--teal{background:radial-gradient(ellipse 24% 30% at 26% 48%,rgb(43 181 165/.08),rgb(43 181 165/0) 70%),radial-gradient(ellipse 13% 22% at 10% 60%,rgb(26 138 125/.035),rgb(26 138 125/0) 70%),radial-gradient(ellipse 12% 20% at 66% 44%,rgb(43 181 165/.035),rgb(43 181 165/0) 70%)}
@media (prefers-reduced-motion:no-preference){.aur-tint{animation:tintDrift 46s ease-in-out infinite alternate}}
@keyframes tintDrift{from{transform:translate3d(-1.5%,0,0)}to{transform:translate3d(1.5%,8px,0)}}

/* light hero (operator 2026-10-14: "the page isn't bright enough", card to the left): bright photo,
   white liquid-glass card with dark ink, card aligned to the left page edge */
section.page-hero{background:#fff}
section.page-hero::before{background:linear-gradient(90deg,rgba(255,255,255,.22) 0%,rgba(255,255,255,0) 50%)}
@media (min-width:961px){section.page-hero>.container{max-width:none;padding-left:clamp(1.5rem,5.5vw,6rem)}}
section.page-hero .page-hero-panel{max-width:34rem;background:rgba(255,255,255,.78);backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px) saturate(1.2);border:1px solid rgba(255,255,255,.75);box-shadow:0 16px 44px rgba(26,23,21,.16),inset 0 1px 0 rgba(255,255,255,.95)}
section.page-hero h1{color:#1a1715;text-shadow:none}
section.page-hero .page-hero-lede{color:#2d2926}
section.page-hero .page-hero-ctas .cta-secondary{background:transparent;border-color:#1a1715;color:#1a1715}
section.page-hero .page-hero-ctas .cta-secondary:hover{background:#1a1715;color:#fff}
section.page-hero .crumbs{color:#4a4440}
section.page-hero .crumbs a{color:#0e6b61}
section.page-hero .crumbs a:hover{color:#1a1715}
section.page-hero .em-hero-note{color:#2d2926}
section.page-hero .em-hero-note a{color:#0e6b61}
@media (max-width:640px){
  section.page-hero::before{background:linear-gradient(to bottom,rgba(255,255,255,0) 0,rgba(255,255,255,0) calc(var(--hp-h) - 110px),#fff var(--hp-h))}
  section.page-hero .page-hero-panel{background:rgba(255,255,255,.88);backdrop-filter:blur(6px) saturate(1.1);-webkit-backdrop-filter:blur(6px) saturate(1.1)}
}

/* final polish 2026-11-12 (gd-N8, web N6): at 430 the braces and retainer icon slots were 16:10 with a 72%-wide icon (about 200px wide,
   lost in empty space), and the first section after the hero left about 135px of white before the portrait.
   Icon drawn 96px tall (about 154px wide) in a slot about 128px tall; first section top padding cut to 1rem. */
@media (max-width:600px){
  #braces .o-svgcard{aspect-ratio:auto;height:128px}
  #braces .o-svgcard svg{width:auto;height:96px;max-width:100%;max-height:none}
}
@media (max-width:640px){
  .page-hero+.i-section#orthodontist.i-section{padding-top:1rem}
}


/* wider photo column so the Invisalign display shows beside Dr. Bateman (operator 2026-11-17); this file loads on orthodontics.html only */
@media (min-width:981px){.i-doctor{grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:1120px}}
