/* Center City Orthodontics (Design Option 1): prototype styles.
   Values come from the Figma frame "Center City Orthodontics Design Option 1"
   (Free Stuff (Arpan), node 210:534). Self-contained: nothing here is shared
   with the portfolio site. Desktop matches the 1440px frame; the tablet and
   mobile layouts are adaptations (the file has no frames for them). */

:root {
  --blue: #2986fd;         /* top bar, tags, icon discs, consultation panel */
  --green: #83bd57;        /* primary buttons */
  --ink: #252525;          /* headings, dark button */
  --ink-2: #222;           /* Invisalign topic pills */
  --muted: #666;           /* body copy */
  --page: #f9f9fb;         /* page / alternate section background */
  --white: #fff;
  --nav-pill: #ededed;
  --footer: #131313;
  --doctor-ink: #163c3d;
  --doctor-body: #535b53;
  --sky: #e7f7ff;          /* review cards */
  --lilac: #f3f3ff;
  --mint: #dafffc;         /* Invisalign topic pills */
  --lime: #f4ffc9;
  --cream: #f9ffe4;
  --panel: #ebf7ff;        /* Invisalign topic cards */
  --panel-line: rgba(41, 134, 253, .3);
  --field: #f5f5f5;
  --placeholder: rgba(102, 102, 102, .4);
  --divider: #dedfe1;
  --rule: rgba(102, 102, 102, .15);
  --rule-faint: rgba(102, 102, 102, .1);
  --award-tile: #fefefe;
  --star: #fc0;
  --error: #e00034;

  --sans: "Inter", system-ui, sans-serif;
  --sans-tight: "Inter Tight", "Inter", system-ui, sans-serif;
  --serif: "Castoro", Georgia, serif;
  --lexend: "Lexend", "Inter", system-ui, sans-serif;

  --h1: 50px;   --h1-lh: 58px;
  --h2: 48px;   --h2-lh: 56px;
  --h3: 24px;   --h3-lh: 32px;
  --body: 18px; --body-lh: 28.8px;

  --container: 1300px;
  --gutter: 15px;
  --section-y: 120px;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 var(--body)/var(--body-lh) var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3 { font-weight: 500; text-transform: capitalize; }
h2 { font-size: var(--h2); line-height: var(--h2-lh); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 8px; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }

/* ---- Shared pieces ------------------------------------------------------ */
.heading-group { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.heading-group.center { align-items: center; text-align: center; }
.tag {
  display: inline-block; padding: 5px 15px; border-radius: 20px;
  background: var(--blue); color: var(--white);
  font-size: 16px; line-height: 25.6px; text-transform: uppercase; white-space: nowrap;
}
.tag--light { background: var(--white); color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  padding: 8px 8px 8px 20px; border: 0; border-radius: 100px;
  background: var(--green); color: var(--white); cursor: pointer;
  font: 500 18px/28.8px var(--sans); text-transform: capitalize; white-space: nowrap;
  transition: background-color .2s, box-shadow .2s;
}
.btn > span:first-child { padding-bottom: .8px; }
.btn-icon { display: grid; place-items: center; width: 45px; height: 45px; flex: none; border-radius: 45px; background: var(--white); }
.btn-icon img { width: 18px; height: 14px; transition: transform .2s; }
.btn:hover { background: #74ab4a; }
.btn:hover .btn-icon img { transform: translateX(3px); }
.btn--dark { background: var(--ink); font-family: var(--sans-tight); }
.btn--dark:hover { background: #000; }
.btn--tight { font-family: var(--sans-tight); }

/* ---- Top bar ------------------------------------------------------------ */
.topbar { display: flex; align-items: center; justify-content: center; min-height: 39px; padding: 4px var(--gutter); background: var(--blue); color: var(--white); text-align: center; }
.topbar p { font-size: 16px; line-height: 20px; letter-spacing: 1.728px; text-transform: uppercase; }

/* ---- Navigation --------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 20; padding: 8px 15px; background: var(--white); }
.nav-pill {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: 1410px; height: 88.8px; margin: 0 auto; padding: 0 24px 0 30px;
  border-radius: 68px; background: var(--nav-pill);
}
.nav-logo { display: flex; justify-content: center; width: 201.84px; height: 89px; }
.nav-logo img { width: 89px; height: 89px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 21px; transform: translateX(8px); }
.nav-link {
  display: inline-block; padding: 29px 0 30px; border: 0; background: none; cursor: pointer;
  font: 500 18px/28.8px var(--sans); color: var(--ink); text-transform: capitalize; white-space: nowrap;
  transition: color .2s;
}
.nav-link:hover, .nav-link.is-current, .dropdown.open > .nav-link { color: var(--blue); }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; left: -16px; top: calc(100% - 14px); min-width: 250px;
  display: grid; padding: 8px; border-radius: 16px; background: var(--white);
  box-shadow: 0 18px 40px rgba(37, 37, 37, .14), 0 0 0 1px rgba(37, 37, 37, .05);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.dropdown-menu a { padding: 10px 12px; border-radius: 10px; font-size: 16px; line-height: 22px; color: var(--ink); }
.dropdown-menu a:hover { background: var(--page); color: var(--blue); }
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-cta { justify-self: end; width: 328px; justify-content: space-between; }

.menu-toggle { display: none; position: relative; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--white); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px; background: var(--ink); border-radius: 2px; transition: transform .2s, background-color .2s; }
.menu-toggle span { top: 50%; margin-top: -1px; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; left: 0; margin-left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.drawer { display: none; }

/* ---- Hero + welcome ----------------------------------------------------- */
.hero { padding: 30px 0; }
.hero-media, .welcome { width: calc(100% - 40px); max-width: 1400px; margin: 0 auto; }
.hero-media { aspect-ratio: 1400 / 725; margin-bottom: 30px; border-radius: var(--radius); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.welcome { display: flex; flex-direction: column; align-items: center; padding: 64px 24px; border-radius: var(--radius); background: var(--white); text-align: center; }
.welcome h1 { font-size: var(--h1); line-height: var(--h1-lh); margin-bottom: 30px; }
.welcome-badges { display: flex; align-items: center; gap: 30px; }
.welcome-badges img:first-child { width: 152px; height: 195px; }
.welcome-badges img:last-child { width: 200px; height: 98px; }
.welcome-copy { margin: -6px 0 24px; color: var(--muted); }

/* ---- Who we are --------------------------------------------------------- */
.who { padding: 120px 0 160px; }
.who-inner { display: flex; align-items: center; justify-content: center; gap: 110px; }
.who-media { position: relative; flex: none; width: 580px; aspect-ratio: 580 / 664; }
.who-photo { position: absolute; left: 0; top: 0; width: 90.17%; height: 100%; object-fit: cover; object-position: 42% 50%; border-radius: var(--radius); }
.who-video {
  position: absolute; left: 32.93%; top: 61.75%; width: 67.07%; height: 45.18%;
  padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #4e4e4e;
}
.who-video > img { position: absolute; left: -41.77%; top: -16.93%; width: 183.54%; height: 133.87%; max-width: none; }
.who-video::after { content: ""; position: absolute; inset: 0; background: rgba(78, 78, 78, .2); transition: background-color .2s; }
.who-video:hover::after { background: rgba(78, 78, 78, .05); }
.who-play { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); transition: transform .2s; }
.who-play img { width: 62px; height: 41.33px; }
.who-video:hover .who-play { transform: translate(-50%, -50%) scale(1.08); }
.who-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18.8px; width: 580px; }
.who-copy .body { min-height: 99px; color: var(--muted); }
.checks { display: grid; gap: 20px; width: 100%; padding-bottom: 27px; border-bottom: 1px solid var(--rule); }
.checks li { display: flex; align-items: flex-start; gap: 20px; font-size: 22px; line-height: 30px; font-weight: 500; text-transform: capitalize; }
.check { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 30px; background: var(--blue); }
.question { color: var(--muted); }
.question a { font-size: 20px; line-height: 32px; font-weight: 500; color: var(--ink); }
.question a:hover { color: var(--blue); }

/* ---- Services ----------------------------------------------------------- */
.services { background: var(--white); }
.service-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 45px; }
.service { width: 403.33px; }
.service--wide { width: 460px; }
.service a { display: flex; flex-direction: column; gap: 30px; padding: 30px 15px; border-radius: var(--radius); background: var(--white); transition: box-shadow .2s, transform .2s; }
.service a:hover { box-shadow: 0 16px 40px rgba(41, 134, 253, .12); transform: translateY(-2px); }
.service-head { display: flex; align-items: center; gap: 20px; }
.service-icon { width: 84px; height: 84px; flex: none; }
.service-icon--disc, .beyond-icon--disc { display: grid; place-items: center; border-radius: 80px; background: var(--blue); }
.service-icon--disc img { width: 60px; height: 54.34px; }
.service-text { display: flex; flex-direction: column; gap: 4.9px; flex: 1; }
.h3 { font-size: var(--h3); line-height: var(--h3-lh); font-weight: 500; text-transform: capitalize; }
.service-desc { color: var(--muted); }
.service-img { display: block; height: 150px; border-radius: var(--radius); overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service a:hover .service-img img { transform: scale(1.03); }

/* ---- About the doctor --------------------------------------------------- */
.doctor { padding: 120px 60px; background: var(--page); }
.doctor-inner { display: flex; align-items: center; gap: 80px; max-width: 1320px; margin: 0 auto; }
.doctor-photo { width: 621px; height: 545px; flex: none; object-fit: cover; border-radius: 12px; }
.doctor-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 0 1 637px; }
.doctor-copy h2 { display: flex; align-items: center; height: 73px; font: 400 43px/51.6px var(--serif); letter-spacing: -1px; color: var(--doctor-ink); }
.doctor-copy > p { max-width: 533px; font: 300 16px/29px var(--lexend); letter-spacing: -.16px; color: var(--doctor-body); }
.doctor-list { max-width: 533px; font: 300 16px/29px var(--sans); letter-spacing: -.16px; color: var(--doctor-body); }
.doctor-list b { font-weight: 700; }
.doctor-list ul { list-style: disc; padding-left: 24px; }

/* ---- Testimonials ------------------------------------------------------- */
.testimonials { background: var(--white); }
.testimonials-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 45px; }
.testimonials-head .heading-group { max-width: 630px; }
.carousel-arrows { display: flex; gap: 26px; flex: none; }
.arrow-btn { display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 1px solid var(--ink); border-radius: 60px; background: var(--white); cursor: pointer; transition: background-color .2s; }
.arrow-btn img { width: 25px; height: 25px; transition: filter .2s; }
.arrow-btn:hover { background: var(--ink); }
.arrow-btn:hover img { filter: invert(1); }
.carousel { position: relative; height: 469px; overflow: hidden; touch-action: pan-y; }
.carousel-track { display: flex; gap: 24px; width: max-content; will-change: transform; }
.carousel-track.animate { transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.review {
  display: flex; flex-direction: column; flex: none; width: var(--card-w, 347px); height: 412px;
  padding: 24px 30px 19px; border-radius: var(--radius); background: var(--sky);
}
.review--lilac { background: var(--lilac); }
.review--mist { background: var(--page); }
.review-head { display: flex; align-items: center; gap: 20px; height: 92px; padding-bottom: 12px; border-bottom: 1px solid var(--divider); }
.avatar { position: relative; width: 80px; height: 80px; flex: none; border-radius: 80px; overflow: hidden; }
.avatar img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; }
.review-name { display: block; font-size: 28px; line-height: 36px; font-weight: 500; text-transform: capitalize; white-space: nowrap; }
.review-role { display: block; margin-top: 4px; font-size: 16px; line-height: 25.6px; color: var(--muted); text-transform: uppercase; }
.review blockquote {
  margin: 12px -12px 0 0; color: var(--muted); text-transform: capitalize;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; line-clamp: 8; overflow: hidden;
}
.stars { display: flex; gap: 10px; margin-top: auto; }
.stars img { width: 22px; height: 22px; }

/* ---- Smile gallery ------------------------------------------------------ */
.smiles { padding: 112px 0; background: var(--page); }
.smile-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 45px 20px; margin-top: 45px; }
.smile-grid li { height: 200px; border-radius: 8px; overflow: hidden; }
.smile-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.smile-grid li:hover img { transform: scale(1.04); }
.smile-grid .faded { opacity: .8; }

/* ---- Invisalign topics -------------------------------------------------- */
.invisalign { padding: 120px 0 97px; background: var(--white); }
.invisalign-stage { position: relative; height: calc(951px); max-width: 1300px; }
.invisalign-heading h2 { max-width: 686px; }
.invisalign-badge {
  position: absolute; left: 50%; top: 247.6px; width: 350px; height: 350px; transform: translateX(-50%);
  border: 3px solid var(--panel-line); border-radius: 50%; overflow: hidden; background: var(--white);
}
.invisalign-badge img { width: 100%; height: 100%; object-fit: contain; }
.topics { position: absolute; inset: 0 var(--gutter); pointer-events: none; }
.topic {
  position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: 0; border: 0; background: none; text-align: left; cursor: pointer; pointer-events: auto;
}
.topic-row { display: flex; align-items: center; gap: 15px; }
.topic-pill {
  display: block; padding: 15px 40px; border-radius: 50px; background: var(--pill);
  font-size: 22px; line-height: 30px; font-weight: 500; color: var(--ink-2); text-transform: capitalize; white-space: nowrap;
}
.topic-dot { width: 25px; height: 25px; flex: none; border: 5px solid var(--blue); border-radius: 25px; transition: background-color .2s; }
.topic-card {
  display: flex; align-items: center; width: 380px; height: 180px; padding: 0 var(--pad, 33px);
  border: 3px solid var(--panel-line); border-radius: var(--radius); background: var(--panel);
  color: var(--muted); transition: border-color .2s, box-shadow .2s;
}
.topic:hover .topic-card { border-color: rgba(41, 134, 253, .6); }
.topic.is-active .topic-card { border-color: var(--blue); box-shadow: 0 14px 30px rgba(41, 134, 253, .14); }
.topic.is-active .topic-dot { background: var(--blue); }
.topic--dpp    { left: 0;     top: 247.6px; }
.topic--dpp .topic-pill { width: 310px; }
.topic--adults { left: 0;     top: 557.6px; --pad: 21px; }
.topic--adults .topic-pill { width: 289px; }
.topic--costs  { left: 481px; top: 691px;   --pad: 18px; }
.topic--costs .topic-pill { width: 263px; }
.topic--about  { left: 927px; top: 127.6px; --pad: 18px; }
.topic--about .topic-pill { width: 263px; }
.topic--itero  { left: 888px; top: 427.6px; --pad: 20px; }
.topic--itero .topic-pill { width: 323px; }

/* ---- Awards ------------------------------------------------------------- */
.award-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 45px 30px; max-width: 1230px; margin: 45px auto 0; }
.award-grid li { position: relative; width: 180px; height: 113px; border-radius: 16px; overflow: hidden; background: var(--award-tile); }
.award-grid img { width: 100%; height: 100%; object-fit: contain; }
.award-grid .zoom img { position: absolute; max-width: none; object-fit: fill; }
.award-grid .zoom--a img { left: 2.06%; top: -17.12%; width: 95.89%; height: 134.25%; }
.award-grid .zoom--b img { left: 2.78%; top: -15.82%; width: 94.44%; height: 131.64%; }

/* ---- About the practice ------------------------------------------------- */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: repeat(3, 403.33px); justify-content: center; gap: 30px; margin-top: 45px; }
.about-card { display: flex; flex-direction: column; align-items: flex-start; padding: 30px 15px; border-radius: var(--radius); background: var(--white); }
.about-card > img { width: 100%; height: 234px; object-fit: cover; border-radius: var(--radius); }
.about-card h3 { margin: 20px 0 30px; font-size: 28px; line-height: 36px; }

/* ---- Philadelphia band -------------------------------------------------- */
.band { position: relative; max-width: 1440px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: #2b2a28; }
.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-copy { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 394.6px; padding: 64px 24px; color: var(--white); text-align: center; }
.band h2 { font-size: var(--h1); line-height: var(--h1-lh); padding-bottom: 30px; }
.band p { margin: 15px 0 45px; }
.band .btn { width: 271.17px; justify-content: space-between; }

/* ---- Beyond straight teeth ---------------------------------------------- */
.beyond { background: var(--page); }
.beyond-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 45px; }
.beyond-card { display: flex; align-items: center; gap: 20px; width: 403.33px; padding: 30px 15px; border-radius: var(--radius); background: var(--white); }
.beyond-icon { width: 84px; height: 84px; flex: none; }
.beyond-card:nth-child(2) .beyond-icon { width: 90px; height: 90px; }
.beyond-icon--disc img { width: 41px; height: 48px; }
.beyond-card > div { display: flex; flex-direction: column; gap: 4.9px; flex: 1; }
.beyond-card h3 { font-size: var(--h3); line-height: var(--h3-lh); }
.beyond-card p { color: var(--muted); }
.beyond-card p.narrow { max-width: 225px; }
.beyond-card:nth-child(3) p { max-width: 250px; }

/* ---- Consultation ------------------------------------------------------- */
.consult { padding: 60px 0; background: var(--white); }
.consult-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1440px; margin: 0 auto; padding: 0 15px; align-items: start; }
.consult-media { aspect-ratio: 690 / 773; border-radius: var(--radius); overflow: hidden; }
.consult-media img { width: 100%; height: 100%; object-fit: cover; }
.consult-form { display: flex; flex-direction: column; align-items: flex-start; gap: 25px; padding: 45px; border-radius: var(--radius); background: var(--blue); }
.consult-form h2 { color: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; width: 100%; }
.field { position: relative; display: block; width: 100%; }
.field input, .field textarea {
  display: block; width: 100%; margin: 0; border: 2px solid transparent; border-radius: 10px; outline: none;
  color: var(--ink); font-family: var(--sans); letter-spacing: .5px; transition: border-color .2s, box-shadow .2s;
}
.field input { height: 72px; padding: 0 16px 0 31px; background: var(--field); font-size: 16px; }
.field input::placeholder { color: var(--placeholder); text-transform: uppercase; opacity: 1; }
.field textarea { min-height: 170px; padding: 31px 56px 20px 31px; background: var(--white); font-size: 18px; line-height: 25.71px; resize: vertical; }
.field textarea::placeholder { color: var(--placeholder); text-transform: capitalize; opacity: 1; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field .invalid { border-color: var(--error); box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.field-chevron { position: absolute; right: 34px; top: 32px; width: 12.73px; height: 7.36px; pointer-events: none; }
.consult-form .btn { min-height: 68.8px; padding-block: 0; }
.consult-form .btn > span:first-child { padding-right: 10px; }
.form-status { margin-top: -8px; color: var(--white); font-size: 16px; line-height: 24px; }
.form-status:empty { display: none; }

/* ---- Footer ------------------------------------------------------------- */
.footer { padding: 0 15px 18px; background: var(--page); }
.footer-card { max-width: 1410px; margin: 0 auto; padding-top: 100px; border-radius: var(--radius); background: var(--footer); color: var(--white); }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 15px 20px; }
.footer-cta { display: flex; align-items: center; gap: 30px; }
.footer-cta h2 { flex: 0 0 826.66px; padding-right: 165.33px; }
.footer-cta .btn { margin: 0 0 15px auto; width: 271.17px; justify-content: space-between; }
.footer-grid {
  display: grid; grid-template-columns: 394.45px 276.13px 276.11px 323.3px; justify-content: center; align-items: stretch;
  margin-top: 45px; padding: 99px 0 20px; border-top: 1px solid var(--rule-faint); border-bottom: 1px solid var(--rule-faint);
}
.footer-brand { border-right: 1px solid var(--rule); }
.footer-logo { position: relative; display: block; width: 200px; height: 177px; margin-top: -107.57px; overflow: hidden; }
.footer-logo img { position: absolute; left: -11.5%; top: -6.29%; width: 100%; height: 112.58%; max-width: none; }
.footer-brand p { margin-top: 9.37px; }
.socials { display: flex; gap: 20px; margin-top: 20.6px; }
.socials a { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--white); border-radius: 50px; transition: background-color .2s; }
.socials a:hover { background: rgba(255, 255, 255, .12); }
.socials img { width: 18px; height: 18px; object-fit: contain; }
.socials li:first-child img { width: 10px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 0 61px 0 60px; border-right: 1px solid var(--rule); }
.footer-col--last { padding-right: 60px; border-right: 0; }
.footer-col h3 { margin-bottom: 10px; font-size: 30px; line-height: 38px; }
.footer-col a { padding-bottom: .8px; text-transform: capitalize; white-space: nowrap; }
.footer-col a:hover, .footer-legal a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { margin-top: 45px; padding-left: 67.59px; text-align: center; }

/* ---- Toast (links to pages this prototype doesn't include) -------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--white);
  font-size: 16px; line-height: 22px; box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================================
   Tablet (≤ 1180px): adapted, no Figma frame
   ========================================================================= */
@media (max-width: 1180px) {
  :root { --h1: 42px; --h1-lh: 50px; --h2: 40px; --h2-lh: 48px; --gutter: 24px; --section-y: 88px; }
  html { scroll-padding-top: 100px; }
  .topbar p { font-size: 13px; letter-spacing: 1.2px; }

  .nav-pill { grid-template-columns: auto 1fr auto auto; gap: 12px; height: 76px; padding: 0 12px 0 16px; }
  .nav-logo { width: auto; height: 76px; }
  .nav-logo img { width: 76px; height: 76px; }
  .nav-links { display: none; }
  .nav-cta { grid-column: 3; width: auto; gap: 14px; }
  .menu-toggle { display: block; grid-column: 4; }
  .drawer {
    display: grid; gap: 2px; max-width: 1410px; margin: 0 auto; padding: 0 24px;
    max-height: 0; overflow: hidden; border-radius: 28px; background: var(--nav-pill);
    transition: max-height .3s ease, padding .3s ease, margin .3s ease;
  }
  .drawer.open { max-height: 520px; margin-top: 8px; padding: 12px 24px 24px; }
  .drawer a:not(.btn) { padding: 12px 0; font-size: 20px; line-height: 26px; font-weight: 500; border-bottom: 1px solid rgba(37, 37, 37, .08); }
  .drawer .btn { justify-self: start; margin-top: 16px; }

  .welcome { padding: 56px 24px; }

  .who { padding: 88px 0; }
  .who-inner { flex-direction: column; gap: 56px; }
  .who-media { width: min(580px, 100%); align-self: center; margin-bottom: 7%; }
  .who-copy { width: 100%; max-width: 640px; }
  .who-copy .body { min-height: 0; }

  .service, .service--wide { width: calc(50% - 15px); }
  .service-img { height: 180px; }

  .doctor { padding: 88px 24px; }
  .doctor-inner { flex-direction: column; gap: 40px; max-width: 640px; }
  .doctor-photo { width: 100%; height: auto; aspect-ratio: 621 / 545; }
  .doctor-copy { flex: none; width: 100%; }

  .carousel { height: 448px; }

  .smile-grid { gap: 16px; }
  .smile-grid li { height: auto; aspect-ratio: 238 / 200; }

  .invisalign { padding: 88px 0; }
  .invisalign-stage { height: auto; }
  .invisalign-badge { position: relative; left: auto; top: auto; transform: none; width: 300px; height: 300px; margin: 40px auto; }
  .topics { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .topic { position: static; width: 100%; min-width: 0; }
  .topic--dot-first .topic-dot { order: 1; }
  .topic .topic-pill { width: auto; }
  .topic-card { width: 100%; height: auto; min-height: 180px; padding: 24px; }

  .award-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 760px; }
  .award-grid li { width: auto; height: auto; aspect-ratio: 180 / 113; }

  .about-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .about-card { padding: 20px 0; }
  .about-card > img { height: auto; aspect-ratio: 373 / 234; }
  .about-card h3 { margin: 16px 0 20px; font-size: 24px; line-height: 32px; }

  .band { margin: 0 20px; }
  .band-copy { min-height: 0; }
  .band h2 { padding-bottom: 16px; }
  .band p { max-width: 640px; margin: 0 0 32px; }
  .band p br, .welcome br, .welcome-copy br, .footer-brand br { display: none; }

  .beyond-grid { flex-direction: column; align-items: center; }
  .beyond-card { width: min(600px, 100%); }
  .beyond-card p.narrow, .beyond-card:nth-child(3) p { max-width: none; }
  .band::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); }
  .band-copy { z-index: 1; }

  .consult-inner { grid-template-columns: 1fr; gap: 24px; padding: 0 20px; }
  .consult-media { aspect-ratio: 16 / 10; }
  .consult-media img { object-position: 50% 30%; }

  .footer-card { padding-top: 64px; }
  .footer-inner { padding: 0 24px 20px; }
  .footer-cta { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-cta h2 { flex: none; padding-right: 0; }
  .footer-cta .btn { margin: 0; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); row-gap: 32px; margin-top: 40px; padding: 32px 0; }
  .footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: 160px 1fr; grid-template-rows: auto auto; column-gap: 32px; align-items: center; padding-bottom: 32px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .footer-logo { grid-row: 1 / span 2; width: 160px; height: 142px; margin-top: 0; }
  .footer-brand p { margin-top: 0; align-self: end; }
  .socials { margin-top: 16px; align-self: start; }
  .footer-col { padding: 0 24px; }
  .footer-col a { white-space: normal; }
  .footer-col:nth-child(2) { padding-left: 0; }
  .footer-legal { margin-top: 28px; padding-left: 0; }
}

/* =========================================================================
   Mobile (≤ 720px): adapted, no Figma frame
   ========================================================================= */
@media (max-width: 720px) {
  :root { --h1: 30px; --h1-lh: 38px; --h2: 30px; --h2-lh: 38px; --h3: 21px; --h3-lh: 28px; --body: 16px; --body-lh: 26px; --gutter: 20px; --section-y: 64px; }
  html { scroll-padding-top: 88px; }
  .topbar { padding: 8px 16px; }
  .topbar p { display: grid; gap: 2px; font-size: 11px; line-height: 15px; letter-spacing: .9px; }
  .topbar-sep { display: none; }

  .nav { padding: 8px 10px; }
  .nav-pill { grid-template-columns: auto 1fr auto; height: 64px; padding: 0 8px 0 10px; }
  .nav-logo { height: 64px; }
  .nav-logo img { width: 62px; height: 62px; }
  .nav-cta { display: none; }
  .menu-toggle { grid-column: 3; width: 48px; height: 48px; }
  .drawer .btn { font-size: 16px; }

  .tag { font-size: 14px; line-height: 22px; padding: 4px 13px; }
  .btn { font-size: 16px; padding-left: 18px; }
  .btn-icon { width: 40px; height: 40px; }

  .hero { padding: 16px 0 24px; }
  .hero-media, .welcome { width: calc(100% - 20px); }
  .hero-media { aspect-ratio: 4 / 3; margin-bottom: 16px; }
  .hero-media img { object-position: 30% 50%; }
  .welcome { padding: 40px 20px; }
  .welcome h1 { margin-bottom: 24px; }
  .welcome-badges { gap: 20px; }
  .welcome-badges img:first-child { width: 114px; height: 146px; }
  .welcome-badges img:last-child { width: 150px; height: 74px; }
  .welcome-copy { margin: 4px 0 24px; }

  .who { padding: 64px 0; }
  .who-inner { gap: 40px; }
  .checks li { font-size: 18px; line-height: 26px; gap: 14px; }
  .checks li .check { width: 26px; height: 26px; }
  .question { font-size: 16px; }
  .question a { font-size: 18px; }

  .service, .service--wide { width: 100%; }
  .service a { padding: 16px 0; gap: 20px; }
  .service-icon { width: 68px; height: 68px; }
  .service-icon--disc img { width: 48px; height: 44px; }
  .service-img { height: 190px; }
  .service-grid { gap: 8px; margin-top: 32px; }

  .doctor { padding: 64px 20px; }
  .doctor-copy h2 { height: auto; font-size: 34px; line-height: 42px; }

  .testimonials-head { flex-wrap: wrap; padding-bottom: 32px; }
  .carousel-arrows { gap: 14px; margin-left: auto; }
  .arrow-btn { width: 50px; height: 50px; }
  .carousel { height: 410px; --card-w: min(347px, calc(100vw - 64px)); }
  h2 br { display: none; }
  .review { height: 384px; padding: 20px 22px 18px; }
  .review-head { gap: 14px; height: 84px; }
  .avatar { width: 64px; height: 64px; }
  .review-name { font-size: 22px; line-height: 30px; white-space: normal; }
  .review-role { font-size: 13px; line-height: 20px; margin-top: 0; }
  .review blockquote { margin-right: 0; -webkit-line-clamp: 10; line-clamp: 10; font-size: 16px; line-height: 26px; }

  .smiles { padding: 64px 0; }
  .smile-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }

  .invisalign { padding: 64px 0; }
  .invisalign-badge { width: 240px; height: 240px; margin: 32px auto; }
  .topics { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .topic { gap: 12px; }
  .topic-pill { padding: 12px 28px; font-size: 18px; line-height: 26px; }
  .topic-card { min-height: 0; padding: 20px; }

  .award-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 32px; }

  .about-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }

  .band { margin: 0 10px; }
  .band-copy { padding: 48px 20px; }
  .band .btn { width: auto; }

  .beyond-card { width: 100%; padding: 24px 18px; gap: 16px; }
  .beyond-icon, .beyond-card:nth-child(2) .beyond-icon { width: 68px; height: 68px; }
  .beyond-icon--disc img { width: 33px; height: 39px; }
  .beyond-card p.narrow, .beyond-card:nth-child(3) p { max-width: none; }
  .beyond-grid { gap: 16px; margin-top: 32px; }

  .consult { padding: 40px 0; }
  .consult-inner { padding: 0 10px; gap: 16px; }
  .consult-media { aspect-ratio: 4 / 3; }
  .consult-form { padding: 28px 20px; gap: 18px; }
  .field-row { grid-template-columns: 1fr; gap: 18px; }
  .field input { height: 60px; padding-left: 20px; }
  .field textarea { padding: 20px 48px 16px 20px; font-size: 16px; }
  .field-chevron { right: 22px; top: 26px; }
  .consult-form .btn { min-height: 60px; }

  .footer { padding: 0 10px 10px; }
  .footer-card { padding-top: 48px; }
  .footer-inner { padding: 0 20px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 28px; }
  .footer-brand { display: block; }
  .footer-logo { width: 130px; height: 115px; }
  .footer-brand p { margin-top: 12px; }
  .socials { gap: 14px; }
  .socials a { width: 46px; height: 46px; }
  .footer-col { padding: 0; border-right: 0; }
  .footer-col h3 { margin-bottom: 4px; font-size: 22px; line-height: 30px; }
  .footer-col a { font-size: 16px; line-height: 26px; }
  .footer-col--last { grid-column: 1 / -1; }
  .footer-legal { font-size: 15px; }
}
