/* Sacksteder Orthodontics (Beach Theme): prototype styles.
   Values come from the Figma frame "Home page" (Free Stuff (Arpan),
   node 210:5686, under "Sacksteder Orthodontics - Beach Theme").
   Self-contained: nothing here is shared with the portfolio site. Desktop
   matches the 1280px frame; the tablet and mobile layouts are adaptations
   (the file has no frames for them). */

:root {
  --teal: #136778;          /* headings, outline text, slider buttons */
  --aqua: #2bb5d3;          /* links, gradient light end */
  --aqua-deep: #1f8fa7;     /* gradient dark end */
  --ink: #333;              /* body copy */
  --ink-2: #454545;         /* approach copy */
  --ink-3: #494949;         /* braces intro */
  --ink-footer: #0f0f0f;
  --rule-footer: #4d3e31;
  --white: #fff;
  --ribbon-text: #f2f5fc;
  --field-line: #b0b0b9;
  --card-line: #dadada;
  --map-line: #ada3a3;
  --placeholder: rgba(17, 17, 17, .4);
  --muted: rgba(17, 17, 17, .5);
  --error: #c62828;

  --grad: linear-gradient(90deg, var(--aqua-deep) 0%, var(--aqua) 72%, var(--aqua) 100%);

  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Nunito", system-ui, sans-serif;
  --ui: "Poppins", system-ui, sans-serif;
  --form: "Inter", system-ui, sans-serif;

  --h1: 64px;
  --h2: 43px;
  --h2-lh: 51.6px;
  --body: 18px;

  --ribbon-h: 52px;
  --radius: 12px;
  --btn-r: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 var(--body)/24px var(--sans);
  letter-spacing: -.16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2 { font-family: var(--serif); font-weight: 700; color: var(--teal); letter-spacing: -1px; }
h2 { font-size: var(--h2); line-height: var(--h2-lh); }
.center { text-align: center; }
:focus-visible { outline: 2px solid var(--aqua-deep); outline-offset: 3px; }

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

.container { width: 100%; max-width: 1280px; margin: 0 auto; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 47px; padding: 0 22px; border: 0; border-radius: var(--btn-r);
  background: var(--grad); color: var(--white);
  font: 600 16px/20.8px var(--ui); letter-spacing: -.1px; white-space: nowrap; cursor: pointer;
  box-shadow: 0 0 0 rgba(19, 103, 120, 0);
  transition: filter .2s, box-shadow .2s, transform .2s;
}
.btn:hover { filter: brightness(1.06) saturate(1.05); box-shadow: 0 8px 20px -8px rgba(19, 103, 120, .55); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--outline { background: transparent; color: var(--teal); border: 1px solid var(--aqua); }
.btn--outline:hover { background: rgba(43, 181, 211, .1); filter: none; }
.btn--white { background: var(--white); color: var(--teal); letter-spacing: -.16px; }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--aqua); font: 600 16px/19.2px var(--ui); letter-spacing: -.16px;
}
.arrow {
  width: 12px; height: 13px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s;
}
.text-link:hover .arrow { transform: translateX(4px); }
.text-link:hover { color: var(--aqua-deep); }

/* ---- Ribbon ------------------------------------------------------------- */
.ribbon {
  display: flex; align-items: center; justify-content: center; gap: 51px;
  height: var(--ribbon-h); padding: 0 16px 0 10px;
  background: linear-gradient(90deg, var(--aqua) 0%, var(--aqua) 30%, var(--aqua-deep) 52%, var(--aqua) 82%);
  color: var(--ribbon-text); font: 400 14px/22.4px var(--ui); letter-spacing: 0;
}
.ribbon a { display: inline-flex; align-items: center; gap: 13px; }
.ribbon a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.ribbon img[src$="icon-email.svg"] { width: 22px; height: 22px; margin-right: -3px; }

/* ---- Navigation (over the hero photo) ----------------------------------- */
.nav { position: absolute; left: 0; right: 0; top: var(--ribbon-h); z-index: 20; }
.nav-inner {
  display: flex; align-items: center;
  max-width: 1280px; height: 87px; margin: 0 auto; padding: 20px 32px 20px 35px;
}
.nav-logo { flex: none; width: 283px; margin-top: 1px; }
.nav-logo img { width: 283px; height: auto; }
.dropdown { display: flex; }
.nav-links { display: flex; align-items: center; gap: 48px; margin-left: 59px; margin-top: -1px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 14px; padding: 0; height: 24px;
  border: 0; background: none; color: var(--white); cursor: pointer;
  font: 600 16px/19.2px var(--ui); letter-spacing: -.16px; white-space: nowrap;
}
.dropdown .nav-link, .nav-link[href="#reviews"] { font-weight: 500; }
.nav-link:hover { opacity: .85; }
.chev {
  width: 10px; height: 15px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s;
}
.dropdown { position: relative; }
.dropdown.open .chev, .dropdown:hover .chev { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; left: -18px; top: calc(100% + 14px); min-width: 300px;
  display: grid; padding: 8px; border-radius: 12px;
  background: var(--white); box-shadow: 0 18px 40px -12px rgba(9, 50, 60, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.dropdown-menu::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.dropdown-menu a { padding: 10px 12px; border-radius: 8px; font: 500 15px/20px var(--ui); color: var(--teal); }
.dropdown-menu a:hover, .dropdown-menu a:focus-visible { background: rgba(43, 181, 211, .12); }
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-cta { margin-left: auto; width: 185px; padding: 0; letter-spacing: -.16px; }
.menu-toggle { display: none; }
.drawer { display: none; }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; height: 800px; display: flex; align-items: flex-end; overflow: hidden; background: #2f4650; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 49.951%, rgba(0, 0, 0, .2) 84.841%),
    linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .35)),
    linear-gradient(rgba(255, 255, 255, .15), rgba(255, 255, 255, .15));
}
.hero-copy { position: relative; z-index: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 68px 76px; color: var(--white); }
.hero h1 { max-width: 790px; color: var(--white); font-size: var(--h1); line-height: 69.8px; letter-spacing: -2px; }
.hero p { max-width: 806px; margin-top: 32px; font-size: 24px; line-height: 30px; }

/* ---- Sand-textured body ------------------------------------------------- */
.sand {
  background: #f8f6f1 url("assets/sand.jpg") center -852px / max(1290px, 100%) auto repeat;
}

/* ---- Welcome ------------------------------------------------------------ */
.welcome { padding-top: 82px; }
.welcome-inner { display: grid; grid-template-columns: 545px 1fr; column-gap: 80px; align-items: center; padding: 0 54px 0 54px; }
.welcome-img { width: 545px; height: 545px; object-fit: fill; border-radius: var(--radius); } /* the frame stretches the photo to a square */
.welcome-copy h2 { font-size: var(--h2); }
.welcome-copy p { max-width: 547px; margin-top: 30px; }
.welcome-copy .btn { width: 287px; margin-top: 33px; padding: 0; }

/* ---- Reviews ------------------------------------------------------------ */
.reviews { padding: 80px 0 38px; }
.reviews-inner { display: grid; grid-template-columns: 290px 1fr; column-gap: 14px; align-items: center; padding: 0 46px 0 45px; }
.reviews-head { margin-top: 22px; }
.reviews-head h2 { font-size: calc(var(--h2) - 1px); }
.google-g { width: 36px; height: 36px; margin-top: 42px; }
.google-reviews { width: 162.5px; height: 17px; margin-top: 12px; object-fit: cover; object-position: left; }
.rating { margin-top: 10px; font: 600 20px/19.2px var(--sans); }
.slider { position: relative; outline-offset: 6px; }
.slide { display: grid; grid-template-columns: 280px 1fr; column-gap: 50px; }
.slide[hidden] { display: none; }
.slide-photo { width: 280px; height: 330px; object-fit: cover; border-radius: 8px; }
.slide-copy { display: flex; flex-direction: column; min-height: 330px; }
.quote-mark { width: 27px; height: 20px; }
.slide blockquote { margin-top: 20px; font-size: 24px; line-height: 33px; color: var(--ink); max-width: 555px; }
.slide figcaption { margin-top: auto; font: 600 20px/24px var(--ui); color: var(--ink); }
.slider-controls { position: absolute; right: 19px; bottom: 0; display: flex; gap: 24px; }
.round {
  display: grid; place-items: center; width: 56px; height: 56px; padding: 0;
  border: 1px solid var(--teal); border-radius: 50%; background: transparent; cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.round img { width: 22px; height: 22px; }
.round:hover { background: rgba(19, 103, 120, .08); }
.round.nudge { animation: nudge .35s ease; }
@keyframes nudge { 30% { transform: translateX(var(--nudge, 4px)); } 60% { transform: translateX(calc(var(--nudge, 4px) * -.5)); } }
.slide.is-entering { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; } }

/* ---- Approach ----------------------------------------------------------- */
.approach { padding: 80px 0 52px; }
.approach-inner { display: grid; grid-template-columns: 540px 1fr; column-gap: 69px; padding: 0 31px 0 55px; }
.approach-copy h2 { max-width: 505px; }
.approach-copy p { max-width: 540px; color: var(--ink-2); }
.approach-copy h2 + p { margin-top: 33px; }
.approach-copy p + p { margin-top: 24px; }
.perks { display: grid; gap: 33px; padding-top: 17px; }
.perks li { display: grid; grid-template-columns: 83px 1fr; align-items: start; }
.perks img { grid-row: 1 / span 2; width: 59px; height: auto; }
.perks li:nth-child(2) img { width: 53px; }
.perks li:nth-child(3) img { width: 50px; margin-top: 2px; }
.perks h3 { padding-top: 6px; font: 700 24px/24px var(--serif); letter-spacing: -.16px; color: var(--teal); }
.perks p { max-width: 462px; margin-top: 23px; color: var(--ink-2); }
.perks li:nth-child(2) p { max-width: 434px; }

/* ---- Services ----------------------------------------------------------- */
.services { padding: 75px 0 21px; }
.services-title { max-width: 640px; margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(3, 385px); justify-content: center; column-gap: 24px; margin-top: 59px; padding: 0 23px 0 38px; }
.card { display: flex; flex-direction: column; }
.card-img { display: block; height: 300px; border-radius: var(--radius); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-img:hover img { transform: scale(1.04); }
.card h3 { margin-top: 27px; font: 600 22px/26.4px var(--ui); letter-spacing: -.16px; color: var(--teal); }
.card p { margin-top: 24px; }
.card .text-link { margin-top: auto; padding-top: 25px; align-self: flex-start; }
.center-row { display: flex; justify-content: center; margin-top: 49px; }
.center-row .btn { width: 189px; padding: 0; }

/* ---- Braces ------------------------------------------------------------- */
.braces { padding-top: 80px; }
.braces-head { display: grid; grid-template-columns: 1fr 522px; column-gap: 40px; padding: 0 59px; }
.braces-head h2 { max-width: 420px; }
.braces-head .btn { width: 189px; margin-top: 15px; padding: 0; }
.braces-head p { margin-top: 2px; font: 600 24px/28px var(--sans); letter-spacing: 0; color: var(--ink-3); }
.braces-img { width: calc(100% - 110px); max-width: 1170px; height: 440px; margin: 48px auto 0; object-fit: cover; border-radius: var(--radius); }

/* ---- Contact ------------------------------------------------------------ */
.contact { padding: 98px 0 52px; }
.contact-title { max-width: 780px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 487px 487px; justify-content: center; column-gap: 34px; margin-top: 62px; }
.map { display: block; height: 500px; border-radius: 22.93px; overflow: hidden; }
.map img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--map-line); border-radius: 22.93px; transition: transform .4s ease; }
.map:hover img { transform: scale(1.02); }
.form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 13px; row-gap: 18px; align-content: start; font-family: var(--form); }
.field { display: block; }
.field--full { grid-column: 1 / -1; }
.field > span { display: block; margin-bottom: 7px; font: 500 15.3px/22.93px var(--form); letter-spacing: -.12px; color: #000; }
.form input, .form textarea {
  display: block; width: 100%; height: 54px; margin: 0; padding: 0 22px;
  border: 1px solid var(--field-line); border-radius: 8px; background: var(--white); color: #111;
  font: 500 15.3px/19px var(--form); letter-spacing: -.12px;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { height: 199px; padding: 21px 22px; resize: vertical; }
.form ::placeholder { color: var(--placeholder); opacity: 1; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(43, 181, 211, .2); }
.form .invalid { border-color: var(--error); }
.form .btn--block { grid-column: 1 / -1; height: 49px; font: 500 15.3px/19.87px var(--form); letter-spacing: -.12px; }
.form-status { grid-column: 1 / -1; margin-top: -4px; font: 500 15px/22px var(--form); color: var(--teal); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9.5px; max-width: 1104.5px; margin: 52px auto 0; }
.contact-cards a {
  display: grid; grid-template-columns: 57px 1fr; column-gap: 12px; align-items: center; align-content: center;
  height: 98px; padding: 0 16px 4px 22px;
  border: 1px solid var(--card-line); border-radius: 16px; background: var(--white);
  transition: box-shadow .2s, transform .2s;
}
.contact-cards a:hover { box-shadow: 0 10px 24px -14px rgba(19, 103, 120, .5); transform: translateY(-2px); }
.badge { grid-row: 1 / span 2; display: grid; place-items: center; width: 57px; height: 57px; border-radius: 50%; background: var(--grad); }
.badge img { width: 30px; height: 30px; }
.contact-cards .label { font: 500 17.2px/24.42px var(--form); color: var(--muted); }
.contact-cards strong { margin-top: 2px; font: 600 19px/21px var(--form); color: #000; white-space: nowrap; }
.contact-cards strong.phone { font: 600 19.1px/22.4px var(--ui); color: var(--ink); }

/* ---- Blog --------------------------------------------------------------- */
.blog { padding: 60px 0 70px; }
.blog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 55px; }
.blog-head p { margin-top: 11px; font-size: 20px; line-height: 30px; }
.blog-head .btn { width: 158px; padding: 0; margin-bottom: 11px; }
.posts { display: grid; grid-template-columns: repeat(3, 370px); justify-content: center; column-gap: 32px; margin-top: 46px; }
.post { display: flex; flex-direction: column; }
.post-img { display: block; height: 220px; border-radius: var(--radius); overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-img:hover img { transform: scale(1.04); }
.post h3 { max-width: 341px; margin-top: 30px; font: 600 22px/26.4px var(--ui); letter-spacing: -.16px; color: var(--ink); }
.post p { max-width: 374px; margin-top: 14px; }
.post .text-link { margin-top: auto; padding-top: 14px; align-self: flex-start; }

/* ---- Footer ------------------------------------------------------------- */
.footer { position: relative; background: #d9b48c url("assets/footer-beach.jpg") center / cover no-repeat; color: var(--ink-footer); }
.footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .2) 15.065%, rgba(0, 0, 0, 0) 44.764%),
    linear-gradient(180deg, rgba(253, 244, 230, 0) 39.121%, rgba(253, 244, 230, .16) 57.384%);
}
.footer .container { position: relative; padding: 68px 55px 45px; }
.cta { display: grid; justify-items: center; text-align: center; color: var(--white); }
.cta h2 { max-width: 841px; font: 600 43px/51.6px var(--ui); letter-spacing: -1px; color: var(--white); }
.cta p { max-width: 633px; margin-top: 14px; font: 500 16px/24px var(--ui); letter-spacing: -.16px; }
.cta .btn { width: 135px; padding: 0; margin-top: 27px; }
.footer-grid { display: grid; grid-template-columns: 445px 1fr 241px 104px; column-gap: 0; margin-top: 122px; }
.footer-about { grid-column: 1; }
.footer-logo { display: block; width: 457px; margin: -6px 0 -6px -6px; }
.footer-logo img { width: 457px; height: auto; }
.footer-about p { margin-top: 31px; font-size: 16px; line-height: 28.8px; letter-spacing: 0; }
.footer-legal-links { display: flex; gap: 26px; margin-top: 26px; font-size: 16px; line-height: 22.4px; letter-spacing: 0; }
.footer-legal-links a:hover, .footer-col a:hover, .footer-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-col { display: grid; align-content: start; gap: 10px; padding-top: 5px; }
.footer-col:nth-of-type(1) { margin-left: 140px; }
.footer-col h4 { margin-bottom: 14px; font: 600 18px/20px var(--ui); letter-spacing: 0; }
.footer-col a { font-size: 14px; line-height: 22.4px; letter-spacing: 0; justify-self: start; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 61px; padding-top: 38px; border-top: 2px solid var(--rule-footer); font: 700 16px/20px var(--sans); letter-spacing: 0; }

/* ---- 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(--teal); color: var(--white);
  font: 500 15px/22px var(--ui); letter-spacing: 0; box-shadow: 0 12px 32px rgba(9, 50, 60, .35);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================================
   Wider than the frame: keep the 1280 layout centred, backgrounds full-bleed
   ========================================================================= */

/* =========================================================================
   Tablet (≤ 1180px): adapted, no Figma frame
   ========================================================================= */
@media (max-width: 1180px) {
  :root { --h1: 52px; --h2: 36px; --h2-lh: 44px; --body: 17px; }
  body { line-height: 24px; }

  .nav { background: linear-gradient(180deg, rgba(10, 40, 48, .55), rgba(10, 40, 48, 0)); }
  .nav-inner { height: 80px; padding: 12px 24px; gap: 16px; }
  .nav-logo, .nav-logo img { width: 230px; }
  .nav-links { display: none; }
  .nav-cta { width: auto; padding: 0 20px; }
  .menu-toggle {
    display: grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 0;
    border: 1px solid rgba(255, 255, 255, .6); border-radius: var(--btn-r); background: rgba(255, 255, 255, .08); cursor: pointer;
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .25s, background-color .25s;
  }
  .menu-toggle span { position: relative; }
  .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
  .menu-toggle span::before { top: -7px; }
  .menu-toggle span::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
  .drawer {
    display: grid; margin: 0 16px; padding: 0 20px; border-radius: 16px;
    background: var(--white); box-shadow: 0 24px 48px -16px rgba(9, 50, 60, .45);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s ease, padding .3s ease, visibility 0s .3s;
  }
  .drawer.open { max-height: calc(100vh - 160px); overflow-y: auto; padding: 8px 20px 20px; visibility: visible; transition-delay: 0s; }
  .drawer > a:not(.btn), .drawer summary {
    display: block; padding: 14px 0; border-bottom: 1px solid rgba(19, 103, 120, .12);
    font: 600 18px/22px var(--ui); color: var(--teal); cursor: pointer;
  }
  .drawer summary { list-style: none; position: relative; }
  .drawer summary::-webkit-details-marker { display: none; }
  .drawer summary::after {
    content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
    border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s;
  }
  .drawer details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
  .drawer details a { display: block; padding: 10px 0 10px 16px; font: 500 16px/22px var(--ui); color: var(--ink); }
  .drawer details[open] { padding-bottom: 6px; border-bottom: 1px solid rgba(19, 103, 120, .12); }
  .drawer details[open] summary { border-bottom: 0; }
  .drawer .btn { margin-top: 18px; }

  .hero { height: 680px; }
  .hero-copy { padding: 0 40px 64px; }
  .hero h1 { line-height: 1.1; max-width: 680px; }
  .hero p { max-width: 640px; margin-top: 24px; font-size: 21px; line-height: 28px; }

  .welcome { padding-top: 72px; }
  .welcome-inner { grid-template-columns: 1fr 1fr; column-gap: 48px; padding: 0 40px; }
  .welcome-img { width: 100%; height: auto; aspect-ratio: 1; }
  .welcome-copy p { margin-top: 20px; }
  .welcome-copy .btn { width: auto; padding: 0 24px; margin-top: 24px; }

  .reviews { padding: 72px 0 40px; }
  .reviews-inner { grid-template-columns: 1fr; row-gap: 32px; padding: 0 40px; }
  .reviews-head { display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; margin-top: 0; }
  .reviews-head h2 { grid-column: 1 / -1; font-size: var(--h2); margin-bottom: 16px; }
  .google-g { margin: 0; }
  .google-reviews { margin: 0; }
  .rating { margin: 0; }
  .slide { grid-template-columns: 240px 1fr; column-gap: 36px; }
  .slide-photo { width: 240px; height: 300px; }
  .slide-copy { min-height: 300px; }
  .slide blockquote { font-size: 21px; line-height: 30px; }
  .slider-controls { right: 0; gap: 14px; }
  .round { width: 48px; height: 48px; }

  .approach { padding: 72px 0 56px; }
  .approach-inner { grid-template-columns: 1fr; row-gap: 48px; padding: 0 40px; }
  .approach-copy h2, .approach-copy p { max-width: 680px; }
  .perks { padding-top: 0; gap: 32px; }
  .perks p, .perks li:nth-child(2) p { max-width: 560px; margin-top: 14px; }
  .perks h3 { font-size: 22px; line-height: 26px; }

  .services { padding: 64px 0 40px; }
  .services-title { max-width: 560px; padding: 0 40px; box-sizing: content-box; }
  .cards { grid-template-columns: repeat(3, 1fr); column-gap: 20px; margin-top: 44px; padding: 0 40px; }
  .card-img { height: auto; }
  .card-img img { height: auto; aspect-ratio: 385 / 300; }
  .card h3 { margin-top: 20px; font-size: 20px; line-height: 25px; }
  .card p { margin-top: 14px; font-size: 16px; line-height: 23px; }
  .card .text-link { padding-top: 18px; }
  .center-row { margin-top: 40px; }

  .braces { padding-top: 72px; }
  .braces-head { grid-template-columns: 1fr 1fr; padding: 0 40px; }
  .braces-head p { font-size: 20px; line-height: 27px; }
  .braces-img { width: calc(100% - 80px); height: auto; aspect-ratio: 1170 / 440; margin-top: 40px; }

  .contact { padding: 80px 0 56px; }
  .contact-title { max-width: 600px; padding: 0 40px; box-sizing: content-box; }
  .contact-grid { grid-template-columns: 1fr 1fr; column-gap: 28px; margin-top: 44px; padding: 0 40px; }
  .map { height: 100%; min-height: 360px; }
  .contact-cards { gap: 12px; max-width: none; margin-top: 40px; padding: 0 40px; }
  .contact-cards a { height: 88px; padding: 0 12px 2px 16px; grid-template-columns: 48px 1fr; }
  .badge { width: 48px; height: 48px; }
  .badge img { width: 26px; height: 26px; }
  .contact-cards .label { font-size: 15px; line-height: 21px; }
  .contact-cards strong, .contact-cards strong.phone { font-size: 16px; }

  .blog { padding: 64px 0 64px; }
  .blog-head { padding: 0 40px; }
  .posts { grid-template-columns: repeat(3, 1fr); column-gap: 20px; margin-top: 44px; padding: 0 40px; }
  .post-img { height: auto; }
  .post-img img { height: auto; aspect-ratio: 370 / 220; }
  .post h3 { margin-top: 20px; font-size: 19px; line-height: 24px; }
  .post p { font-size: 16px; line-height: 23px; }

  .footer .container { padding: 64px 40px 40px; }
  .cta h2 { font-size: 38px; line-height: 46px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; margin-top: 96px; }
  .footer-about { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 360px) 1fr; column-gap: 40px; align-items: start; }
  .footer-logo { width: 100%; max-width: 360px; margin: 0; }
  .footer-logo img { width: 100%; }
  .footer-about p { margin-top: 0; }
  .footer-legal-links { grid-column: 2; margin-top: 12px; }
  .footer-col:nth-of-type(1) { margin-left: 0; }
  .footer-bottom { margin-top: 48px; padding-top: 28px; }
}

/* Narrow tablet: cards and posts become rows */
@media (max-width: 900px) {
  .welcome-inner { grid-template-columns: 1fr; row-gap: 36px; }
  .welcome-img { max-width: 560px; aspect-ratio: 4 / 3; }
  .cards, .posts { grid-template-columns: 1fr; row-gap: 36px; }
  .card, .post { display: grid; grid-template-columns: minmax(0, 300px) 1fr; column-gap: 28px; align-content: start; }
  .card-img, .post-img { grid-row: 1 / span 3; align-self: start; }
  .card h3, .post h3 { margin-top: 0; }
  .card .text-link, .post .text-link { margin-top: 0; }
  .braces-head { grid-template-columns: 1fr; row-gap: 20px; }
  .braces-head p { max-width: 600px; }
  .braces-head > div { display: contents; }
  .braces-head .btn { order: 3; margin-top: 4px; }
  .contact-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .map { min-height: 0; height: 340px; }
  .welcome-img { object-fit: cover; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-cards strong, .contact-cards strong.phone { font-size: 18px; }
}

/* =========================================================================
   Mobile (≤ 720px): adapted, no Figma frame
   ========================================================================= */
@media (max-width: 720px) {
  :root { --h1: 38px; --h2: 30px; --h2-lh: 37px; --body: 16px; --ribbon-h: 44px; }
  body { line-height: 23px; }

  .ribbon { gap: 20px; font-size: 13px; padding: 0 12px; }
  .ribbon a { gap: 8px; }
  .ribbon img[src$="icon-call.svg"] { width: 13px; height: auto; }
  .ribbon img[src$="icon-email.svg"] { width: 18px; height: 18px; }

  .nav-inner { height: 72px; padding: 10px 16px; gap: 10px; }
  .nav-logo, .nav-logo img { width: 190px; }
  .nav-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .drawer { margin: 0 12px; }

  .hero { height: 620px; }
  .hero-bg { object-position: 30% center; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .45) 80%),
      linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .35));
  }
  .hero-copy { padding: 0 20px 48px; }
  .hero h1 { letter-spacing: -1px; line-height: 1.16; }
  .hero p { margin-top: 18px; font-size: 18px; line-height: 25px; }

  .welcome { padding-top: 56px; }
  .welcome-inner, .reviews-inner, .approach-inner, .braces-head, .blog-head, .cards, .posts, .contact-grid, .contact-cards { padding-left: 20px; padding-right: 20px; }
  .welcome-copy .btn { width: 100%; white-space: normal; text-align: center; }

  .reviews { padding: 56px 0 32px; }
  .reviews-head h2 { margin-bottom: 12px; }
  .slide { grid-template-columns: 1fr; row-gap: 24px; }
  .slide-photo { width: 100%; height: auto; aspect-ratio: 1; object-position: center 20%; }
  .reviews-head { grid-template-columns: auto 1fr; row-gap: 10px; }
  .rating { grid-column: 1 / -1; }
  .slide-copy { min-height: 0; }
  .slide blockquote { margin-top: 14px; font-size: 19px; line-height: 28px; }
  .slide figcaption { margin-top: 20px; min-height: 48px; display: flex; align-items: center; }
  .slider-controls { bottom: 0; }

  .approach { padding: 56px 0 48px; }
  .approach-inner { row-gap: 40px; }
  .perks li { grid-template-columns: 64px 1fr; }
  .perks img, .perks li:nth-child(2) img { width: 48px; }
  .perks li:nth-child(3) img { width: 46px; }
  .perks h3 { padding-top: 2px; font-size: 20px; line-height: 25px; }
  .perks p, .perks li:nth-child(2) p { margin-top: 8px; }

  .services { padding: 56px 0 32px; }
  .services-title, .contact-title { padding: 0 20px; }
  .cards, .posts { margin-top: 32px; row-gap: 40px; }
  .card, .post { display: flex; }
  .card-img, .post-img { align-self: stretch; }
  .card h3, .post h3 { margin-top: 20px; }
  .card .text-link, .post .text-link { padding-top: 16px; }
  .center-row { margin-top: 36px; }

  .braces { padding-top: 56px; }
  .braces-head p { font-size: 18px; line-height: 25px; }
  .braces-img { width: calc(100% - 40px); aspect-ratio: 4 / 3; margin-top: 32px; object-position: 45% center; }

  .contact { padding: 64px 0 48px; }
  .contact-grid { margin-top: 32px; }
  .form { grid-template-columns: 1fr; }
  .map { height: 280px; }
  .contact-cards { margin-top: 32px; }
  .contact-cards a { height: auto; min-height: 80px; padding: 12px 14px; column-gap: 14px; }
  .badge { width: 50px; height: 50px; }
  .badge img { width: 26px; height: 26px; }
  .contact-cards a { grid-template-columns: 50px 1fr; }
  .contact-cards .label { font-size: 15px; line-height: 21px; }
  .contact-cards strong, .contact-cards strong.phone { font-size: 17px; white-space: normal; overflow-wrap: anywhere; }

  .blog { padding: 48px 0 56px; }
  .blog-head { flex-direction: column; align-items: flex-start; }
  .blog-head p { font-size: 17px; line-height: 25px; }
  .blog-head .btn { margin: 4px 0 0; }

  .footer::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(253, 244, 230, 0) 30%, rgba(253, 244, 230, .5) 42%, rgba(253, 244, 230, .3) 100%); }
  .footer .container { z-index: 1; padding: 56px 20px 32px; }
  .cta h2 { font-size: 30px; line-height: 37px; letter-spacing: -.5px; }
  .cta p { font-size: 15px; line-height: 23px; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; margin-top: 72px; }
  .footer-about { display: block; }
  .footer-logo { max-width: 300px; }
  .footer-about p { margin-top: 20px; font-size: 15px; line-height: 26px; }
  .footer-legal-links { margin-top: 16px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; margin-top: 36px; padding-top: 22px; font-size: 14px; }
}
