/* ALMA, cabinet dentaire. Brief in CLAUDE.md ("Design brief").
   Palette from their current site (forest, sand, cream, sage); composition from
   Nova Dental (hero, care grid, closing band) and Eugenia Grab (header, statement,
   numbered sections, labels, footer). */
@font-face { font-family: "Cormorant"; src: url("/assets/fonts/cormorant.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/assets/fonts/cormorant-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --cream: #f4f1e8;   /* page ground */
  --paper: #fbf9f4;   /* cards */
  --sand: #e6dcc8;    /* care band, footer (their main colour) */
  --forest: #212e21;  /* ink, contact band (their text colour) */
  --soft: #4f5a4c;    /* secondary text, AA on cream, paper and sand */
  --sage: #aec0ab;    /* decorative only: ghost numerals, lines on forest */
  --accent: #4b6748;  /* deep sage, the one accent: hero word, contact word, room numerals */
  --line: rgba(33, 46, 33, .16);
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--cream); color: var(--forest); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--forest); color: var(--cream); border-radius: 999px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

/* Section titles: Nova's sans headline with one italic serif word */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head h2, .fees h2, .contact h2 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.035em; }
.section-head h2 em, .fees h2 em, .contact h2 em, .hero h1 em { font-size: 1.12em; }
.section-head p { color: var(--soft); max-width: 36ch; justify-self: end; }
.section-head--stack { grid-template-columns: 1fr; gap: 12px; }
.section-head--stack p { justify-self: start; font-size: 1.0625rem; }
.small-note { margin-top: 24px; color: var(--soft); font-size: .8125rem; max-width: 70ch; }

/* Eugenia's label: thin arrow line, uppercase serif */
.arrow-label { display: flex; align-items: center; gap: 14px; font: 500 1.0625rem/1 var(--serif); text-transform: uppercase; letter-spacing: .14em; }
.arrow-label::before { content: ""; width: 44px; height: 1px; background: currentColor; }

/* Header: wordmark left; quiet language switch, call button and a thin menu button right */
.site-header { position: relative; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 20px var(--gutter); max-width: 1376px; margin-inline: auto; }
.home .site-header { position: absolute; inset: 0 0 auto; }
.brand { display: grid; text-decoration: none; line-height: 1; margin-right: auto; }
.brand-name { font: 500 1.75rem/1 var(--serif); letter-spacing: .16em; }
.brand-tag { margin-top: 4px; font-size: .6875rem; letter-spacing: .08em; color: var(--soft); }
.header-call, .btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--forest); color: var(--cream); font-size: .875rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .15s; }
.header-call:hover, .btn:hover { background: var(--accent); }
.header-call:focus-visible, .btn:focus-visible { outline-color: var(--forest); }
.btn { min-height: 52px; padding: 0 28px; font-size: 1rem; }

/* Thin menu button: two hairlines, they cross when open */
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.js .menu-btn { display: grid; place-items: center; }
.menu-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-lines { position: relative; width: 26px; height: 8px; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-lines::before { top: 0; }
.menu-lines::after { top: 6.5px; }
.menu-btn[aria-expanded="true"] .menu-lines::before { top: 3.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { top: 3.25px; transform: rotate(-45deg); }

/* Menu panel: without JS it shows as a plain row of links */
.menu .nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .875rem; font-weight: 500; }
.menu .nav a { text-decoration: none; }
.menu-contact { display: none; }
.js .menu { display: none; position: absolute; top: calc(100% - 6px); right: var(--gutter); width: min(360px, calc(100vw - 2 * var(--gutter))); padding: 12px 28px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 40px -24px rgba(33, 46, 33, .35); }
.js .menu.open { display: block; }
.js .menu .nav { display: grid; gap: 0; }
.js .menu .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font: 400 1.75rem/1.1 var(--serif); }
.js .menu .nav a:hover { color: var(--accent); }
.js .menu-contact { display: grid; gap: 6px; margin-top: 18px; font-size: .875rem; color: var(--soft); }
.js .menu-contact a { text-decoration: none; }
.js .menu-contact a:hover { text-decoration: underline; }

/* Language switch (playbook pill), kept quiet: no track, a light pill under the current language */
.lang { --seg: 32px; --n: 3; position: relative; display: grid; grid-template-columns: repeat(var(--n), var(--seg)); }
.lang a, .lang-on > span { display: grid; place-items: center; height: 26px; border-radius: 999px; font-weight: 500; font-size: .6875rem; letter-spacing: .06em; }
.lang a { position: relative; z-index: 1; color: var(--soft); text-decoration: none; transition: color .15s; }
.lang a:hover { color: var(--forest); }
.lang-pill, .lang-on { position: absolute; top: 0; left: 0; height: 26px; pointer-events: none; transition: transform .3s var(--ease), clip-path .3s var(--ease); }
.lang-pill { width: var(--seg); border-radius: 999px; background: rgba(33, 46, 33, .1); transform: translateX(calc(var(--i) * 100%)); }
.lang-on { z-index: 2; display: grid; grid-template-columns: repeat(var(--n), var(--seg)); color: var(--forest); font-weight: 600; clip-path: inset(0 calc((var(--n) - 1 - var(--i)) * var(--seg)) 0 calc(var(--i) * var(--seg)) round 999px); }

/* Hero (Nova): full-bleed clip, headline bottom-left */
.hero { position: relative; display: flex; align-items: flex-end; min-height: max(620px, min(100svh, 900px)); overflow: hidden; background: var(--sand) url("/assets/img/hero-poster.jpg") center / cover; }
.hero-media { position: absolute; inset: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
/* Cream wash under the text so the ink keeps its contrast on any frame */
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(244, 241, 232, .92) 0%, rgba(244, 241, 232, .55) 38%, rgba(244, 241, 232, 0) 70%); }
.grain { position: absolute; inset: 0; z-index: 1; opacity: .22; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .13 0 0 0 0 .18 0 0 0 0 .13 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-text { position: relative; z-index: 2; padding-top: 140px; padding-bottom: clamp(40px, 7vw, 88px); }
.label { font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { max-width: 14ch; font-size: clamp(2.75rem, 7.4vw, 6.25rem); line-height: .98; letter-spacing: -.045em; }
.hero h1 em { color: var(--accent); }
.hero-lead { max-width: 46ch; margin-top: 28px; font-size: 1.0625rem; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.bracket { font-weight: 500; text-decoration: none; padding: 8px 0; }
.bracket::before { content: "( "; }
.bracket::after { content: " )"; }
.bracket:hover { text-decoration: underline; }

/* Statement (Eugenia) */
.statement { padding-block: clamp(80px, 12vw, 160px); display: grid; justify-items: center; text-align: center; }
.statement .arrow-label { margin-bottom: 40px; }
.statement-text { max-width: 26ch; font: 400 clamp(1.9rem, 4.4vw, 3.4rem)/1.12 var(--serif); letter-spacing: -.01em; }
.column { margin-top: clamp(48px, 7vw, 88px); max-width: 34ch; display: grid; justify-items: center; color: var(--soft); }
.column li { padding: 18px 0; }
.column li + li::before { content: ""; display: block; width: 1px; height: 40px; margin: 0 auto 18px; background: var(--forest); opacity: .35; }

/* Care (Nova's services grid on a band) */
.care { background: var(--sand); padding-block: clamp(72px, 10vw, 128px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: row dense; gap: 16px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 30px; background: var(--paper); border-radius: 18px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px -18px rgba(33, 46, 33, .35); }
.card--img { grid-row: span 2; }
/* Last card lies across two columns so the grid ends square */
.card--wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; column-gap: 28px; align-content: start; }
.card--wide .card-img { grid-row: 1 / -1; margin: -12px 0 -18px -12px; }
.card--wide .card-img img { height: 100%; aspect-ratio: auto; min-height: 220px; }
.card-img { margin: -12px -12px 8px; }
.card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.card-num { font-size: .8125rem; font-weight: 500; color: var(--soft); }
.card h3 { font-size: 1.5rem; line-height: 1.1; letter-spacing: -.02em; }
.card p { color: var(--soft); font-size: .9375rem; }

/* Premises (Eugenia's numbered sections) */
.practice { padding-block: clamp(80px, 11vw, 150px); }
.rooms { display: grid; gap: clamp(56px, 8vw, 112px); }
.room { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.room:nth-child(even) { grid-template-columns: 5fr 7fr; }
.room:nth-child(even) .room-img { order: 2; }
.room-img img { width: 100%; max-height: 82vh; object-fit: cover; border-radius: 4px; }
.room--1 .room-img img { aspect-ratio: 16 / 10; }
.room:not(.room--1) .room-img img { aspect-ratio: 4 / 5; }
.room-text { position: relative; padding-block: 40px; }
.ghost { display: block; font: 300 clamp(7rem, 16vw, 14rem)/.8 var(--serif); font-variant-numeric: lining-nums; color: var(--sage); letter-spacing: -.02em; }
.room-sub { margin-top: 10px; color: var(--soft); font-size: 1.0625rem; }
.room h3 { margin-top: -.45em; position: relative; font: 500 clamp(1.5rem, 2.6vw, 2.25rem)/1.1 var(--serif); text-transform: uppercase; letter-spacing: .08em; }

/* Team */
.team { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.team-lead { margin: 28px 0 clamp(40px, 6vw, 72px); max-width: 26ch; font: 400 clamp(1.7rem, 3.4vw, 2.6rem)/1.15 var(--serif); }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.doc-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 4px; background: var(--sand); }
.doc h3 { margin-top: 20px; font: 500 1.75rem/1.1 var(--serif); }
.doc-role { margin-top: 6px; font-size: .875rem; font-weight: 500; }
.doc-quals { margin-top: 16px; border-top: 1px solid var(--line); }
.doc-quals li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .875rem; color: var(--soft); }
.doc-lang { margin-top: 14px; font-size: .875rem; }
.doc-lang span { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.team .small-note { margin-top: 40px; }

/* Fees and access */
.fees { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 64px; padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); }
.fees-text { display: grid; gap: 18px; max-width: 62ch; color: var(--soft); }
.fees-text a { color: var(--forest); font-weight: 500; }

/* Contact (Nova's closing band) */
.contact { background: var(--forest); color: var(--cream); padding-block: clamp(72px, 10vw, 128px); }
.contact h2 em { color: var(--sage); }
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-lead { margin-top: 20px; color: #d9dccf; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin: 40px 0 0; }
.facts dt { font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }
.facts dd { margin: 8px 0 0; }
.big-link { font: 500 1.75rem/1.2 var(--serif); font-variant-numeric: lining-nums; }
.muted { font-size: .875rem; color: #d9dccf; }
.urgent { margin-top: 40px; padding: 22px 24px; border: 1px solid rgba(174, 192, 171, .45); border-radius: 14px; }
.urgent h3 { font: 500 1.375rem/1.2 var(--serif); }
.urgent p { margin-top: 8px; color: #d9dccf; font-size: .9375rem; }
.contact-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }

/* Footer (Eugenia) */
.site-footer { background: var(--sand); padding: clamp(64px, 9vw, 112px) var(--gutter) 28px; text-align: center; }
.footer-mark { font: 300 clamp(5rem, 22vw, 15rem)/.85 var(--serif); letter-spacing: .1em; margin-right: -.1em; }
.footer-tag { margin-top: 18px; font: italic 500 1.375rem/1.2 var(--serif); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; margin-top: 36px; font-size: .875rem; font-weight: 500; }
.footer-nav a { text-decoration: none; padding: 6px 0; }
.footer-nav a:hover { text-decoration: underline; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; margin-top: 16px; font-size: .9375rem; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; max-width: 1280px; margin: 56px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--soft); }

/* Phones: call and directions always visible */
.call-bar { display: none; }

/* Legal page */
.legal { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 96px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.035em; line-height: 1.05; }
.legal h1 + p { margin-top: 12px; color: var(--soft); font-size: .875rem; }
.legal h2 { margin-top: 36px; font: 500 1.5rem/1.2 var(--serif); }
.legal p { margin-top: 10px; }

@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* Room for the call bar: on the last block, so no cream strip shows under the footer */
  .site-footer { padding-bottom: 92px; }
  .legal { padding-bottom: 120px; }
  .site-header { gap: 10px; padding-block: 14px; }
  .header-call { display: none; }
  .lang { --seg: 30px; }
  .brand-name { font-size: 1.5rem; }
  .hero { min-height: 640px; }
  .hero-text { padding-top: 120px; }
  .hero-lead { font-size: 1rem; }
  .section-head { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
  .cards, .docs { grid-template-columns: 1fr; }
  .card--img { grid-row: auto; }
  .card--wide { grid-column: auto; display: flex; }
  .card--wide .card-img { margin: -12px -12px 8px; }
  .card--wide .card-img img { aspect-ratio: 4 / 3; min-height: 0; }
  .room, .room:nth-child(even) { grid-template-columns: 1fr; gap: 0; }
  .room:nth-child(even) .room-img { order: 0; }
  .room:not(.room--1) .room-img img { aspect-ratio: 4 / 4.4; }
  .room-text { padding-block: 0; margin-top: -.5em; }
  .ghost { font-size: 6.5rem; }
  .fees, .contact-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .contact-img { order: -1; }
  .contact-img img { aspect-ratio: 4 / 3; }
  .footer-base { flex-direction: column; align-items: center; }
  .call-bar { position: fixed; inset: auto 0 0; z-index: 20; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--sage); border-top: 1px solid var(--sage); }
  .call-bar svg { flex: none; color: var(--sage); }
  .call-bar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding-bottom: env(safe-area-inset-bottom); background: var(--forest); color: var(--cream); font-weight: 600; font-size: .9375rem; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lang-pill, .lang-on, .card, .menu-lines::before, .menu-lines::after { transition: none; }
  .card:hover { transform: none; }
}
