/* Hair salon design, Retro version (local-business sites), from the "Hair Saloon - Retro" design file at 1440 px.
   DM Serif Display for display, DM Sans for text (self-hosted, assets/fonts); pistachio and burgundy, tilted
   photos, round badges and pills. Motion lives in script.js, shared behaviour in the engine's site.js.
   Tilts use the `rotate` property, so GSAP can animate `transform` on the same elements. */

:root {
  --pist: #dce6bc;
  --pist-2: #cddba6;
  --pist-3: #c3d396;
  --wine: #5a1220;
  --wine-2: #6e1e2d;
  --wine-3: #7a2636;
  --rose: #e6bec4;
  --wine-soft: #6b2a35;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  /* 40 px sides at 1440, content capped at 1360 px on wider screens. */
  --pad: max(2.5rem, calc((100% - 85rem) / 2));
  --header-h: 6rem;
  --title: clamp(3rem, 6.67vw, 6rem);
  --ease-out: cubic-bezier(.215, .61, .355, 1);
  --ease-in: cubic-bezier(.55, .085, .68, .53);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--pist);
  color: var(--wine);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, blockquote, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.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; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Shared pieces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.4375rem; padding: 0 2rem; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 1.0625rem/1.2 var(--sans); white-space: nowrap;
  /* Colour only: entrances animate transform and opacity (hair-salon-retro.js). */
  transition: background-color .35s var(--ease-in), color .35s var(--ease-in);
}
.btn:hover { transition-timing-function: var(--ease-out); }
.btn-small { min-height: 2.625rem; padding: 0 1.5rem; font-size: .9375rem; }
.btn-dark { background: var(--wine); color: var(--pist); }
.btn-dark:hover { background: var(--wine-3); }
.btn-soft { background: var(--pist-2); color: var(--wine); }
.btn-soft:hover { background: var(--pist-3); }
.text-link { position: relative; font: 700 1.0625rem/1.2 var(--sans); }
.text-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.25rem; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-in);
}
.text-link:hover::after { transform: scaleX(1); transform-origin: left; transition-timing-function: var(--ease-out); }
.link-button { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .2em; }

.section { padding: 5rem var(--pad); }
.section-dark { background: var(--wine); color: var(--pist); }
.section-soft { background: var(--pist-2); }
.section-title { font: 400 var(--title)/1.2 var(--serif); letter-spacing: -.021em; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 2.5rem; }
.section-note { flex: none; width: min(100%, 35rem); margin-top: 1.875rem; font-size: 1.125rem; line-height: 1.55; }
.section-dark .section-note { color: var(--rose); }
.gallery .section-note { width: min(100%, 23.75rem); margin-top: 4.375rem; }

.photo { position: relative; overflow: hidden; background: var(--pist-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.tilt { rotate: var(--tilt, 0deg); }
/* SplitText line masks (hair-salon-retro.js): room for the descenders of the serif. */
.split-line-mask { padding-bottom: .12em; margin-bottom: -.12em; }

.badge { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--wine); color: var(--pist); text-align: center; }
.badge-inner { display: flex; flex-direction: column; align-items: center; }
.badge-label { font: 700 .9375rem/1.2 var(--sans); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem;
  height: var(--header-h); padding: 0 var(--pad);
  background: var(--pist);
  transition: transform .3s var(--ease-in);
}
.site-header.is-hidden { transform: translateY(-100%); transition-timing-function: var(--ease-out); }
/* The booking pill stays on screen while the bar is away: it moves down by the bar's height. */
.header-actions .btn { transition: translate .3s var(--ease-in), background-color .35s var(--ease-in); }
.wordmark { font: 400 2.25rem/1.2 var(--serif); white-space: nowrap; }
.wordmark.has-logo img { height: 2.75rem; width: auto; }
.site-nav { display: flex; justify-content: center; gap: .625rem; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 1.125rem; border-radius: 999px;
  background: var(--pist-2); font: 600 .9375rem/1.2 var(--sans);
  transition: background-color .3s var(--ease-in), color .3s var(--ease-in);
}
.site-nav a:hover { background: var(--wine); color: var(--pist); transition-timing-function: var(--ease-out); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1.25rem; }
.site-header.is-hidden .header-actions .btn { translate: 0 var(--header-h); box-shadow: 0 0 0 2px var(--pist), 0 10px 24px rgba(90, 18, 32, .25); }
.header-phone { font: 600 .9375rem/1.2 var(--sans); white-space: nowrap; transition: opacity .3s var(--ease-in); }
.header-phone:hover { opacity: .65; }
.header-socials, .footer-socials, .menu-socials { display: flex; align-items: center; gap: .875rem; }
.header-socials a, .footer-socials a, .menu-socials a { display: flex; transition: opacity .3s var(--ease-in); }
.header-socials a:hover, .footer-socials a:hover, .menu-socials a:hover { opacity: .6; }
.menu-toggle { display: none; padding: .25rem; border: 0; background: none; cursor: pointer; }

.menu-overlay { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; padding: 0 var(--pad) 2rem; background: var(--pist); overflow-y: auto; }
.menu-overlay[hidden] { display: none; }
.menu-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex: none; }
.menu-close { padding: .25rem; border: 0; background: none; cursor: pointer; }
.menu-links { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; margin: auto 0; padding: 2rem 0; }
.menu-links a { font: 400 clamp(2.75rem, 12vw, 3.75rem)/1.1 var(--serif); }
.menu-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; font-weight: 600; }

/* Language switcher (sites with more than one language): the current code in the header, the names in a rounded card below it. */
.lang-switch { position: relative; }
.lang-current { display: flex; align-items: center; gap: .25rem; font: 600 .9375rem/1.2 var(--sans); list-style: none; cursor: pointer; transition: opacity .3s var(--ease-in); }
.lang-current::-webkit-details-marker { display: none; }
.lang-current:hover { opacity: .65; }
.lang-current svg { transition: transform .3s var(--ease-in); }
.lang-switch[open] .lang-current svg { transform: rotate(180deg); }
.lang-list { position: absolute; top: calc(100% + 1rem); right: 0; z-index: 45; min-width: 12rem; max-height: min(70vh, 28rem); overflow-y: auto; padding: .625rem; border: 2px solid var(--wine); border-radius: 1.5rem; background: var(--pist); box-shadow: 0 14px 30px rgba(90, 18, 32, .18); }
.lang-list a { display: block; padding: .5rem .875rem; border-radius: 999px; font: 600 .9375rem/1.2 var(--sans); white-space: nowrap; transition: background-color .2s var(--ease-in), color .2s var(--ease-in); }
.lang-list a:hover { background: var(--wine); color: var(--pist); }
.lang-list a[aria-current] { background: var(--pist-2); }
.lang-list a[aria-current]:hover { background: var(--wine); }
.menu-langs { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font: 600 .9375rem/1.2 var(--sans); }
.menu-langs a { opacity: .55; }
.menu-langs a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: .25em; }

/* ---------- Hero ---------- */
.hero { padding: 2.5rem var(--pad) 3.75rem; }
.hero-title { max-width: 85rem; font: 400 clamp(3.25rem, 8.33vw, 7.5rem)/.95 var(--serif); letter-spacing: -.025em; }
/* Text 520 on the left; photos in an 800 × 640 area from x 600 (470 × 600 at -4°, 290 × 380 at +6°). */
.hero-grid { display: grid; grid-template-columns: minmax(0, 520fr) minmax(0, 800fr); column-gap: 2.5rem; margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.hero-tagline { font: 400 clamp(1.625rem, 2.22vw, 2rem)/1.15 var(--serif); }
.hero-intro { max-width: 27.5rem; margin-top: 2.25rem; font-size: 1.125rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 3.3rem; }
.hero-badge { --tilt: 12deg; width: 11.875rem; margin: 5.8rem 0 0 17.4rem; rotate: 12deg; }
.hero-badge .badge-year { font: 400 3.5rem/1.2 var(--serif); }
.hero-photos { position: relative; aspect-ratio: 800 / 640; }
.hero-photos .photo { position: absolute; }
.hero-photo { --tilt: -4deg; left: 0; top: 0; width: 58.75%; height: 93.75%; }
.hero-detail { --tilt: 6deg; left: 62.5%; top: 9.4%; width: 36.25%; height: 59.4%; }
.hero-photos .photo:only-child { width: 70%; }

/* ---------- Services ---------- */
.services { position: relative; padding-bottom: 13rem; }
/* Two columns 620 wide, 120 apart; the right one 120 lower. */
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5.5625rem 7.5rem; margin-top: 5.375rem; }
.service { position: relative; max-width: 38.75rem; }
.service:nth-child(even) { top: 7.5rem; }
.service-price { font: 400 clamp(3rem, 4.44vw, 4rem)/1.2 var(--serif); }
.service-name { margin-top: .5rem; font: 400 2rem/1.2 var(--serif); }
.service-desc { max-width: 30rem; margin-top: .5rem; line-height: 1.55; }
.service-book { display: inline-block; margin-top: .5rem; font: 700 .9375rem/1.2 var(--sans); }
.service-book span:first-child { position: relative; }
.service-book span:first-child::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.25rem; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-in);
}
.service-book:hover span:first-child::after { transform: scaleX(1); transform-origin: left; transition-timing-function: var(--ease-out); }
@media (hover: hover) {
  .service-price, .service-book { transition: translate .35s var(--ease-in); }
  .service:hover .service-price, .service:hover .service-book,
  .service:focus-within .service-price, .service:focus-within .service-book { translate: 6px 0; transition-timing-function: var(--ease-out); }
}
/* The photo of the pointed service, trailing the pointer (hair-salon-retro.js). */
.service-photo {
  position: absolute; left: 0; top: 0; z-index: 5; width: 13.75rem; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 1.5rem; rotate: -4deg; box-shadow: 0 24px 48px rgba(20, 4, 8, .35);
  pointer-events: none; visibility: hidden; opacity: 0;
}
.service-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About ---------- */
/* Text 620 on the left; the art in a 740 × 890 area from x 660: photo 470 × 600 at +3°, detail 280 × 340 at
   -5°, badge 240. */
.about { display: grid; grid-template-columns: minmax(0, 620fr) minmax(0, 740fr); grid-template-rows: auto 1fr; align-items: start; padding-bottom: 7.5rem; }
.about .section-title { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 1; line-height: .95; }
.about-text-col { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; height: 100%; }
.about-quote { max-width: 43.75rem; margin-top: 3rem; font: 400 clamp(1.75rem, 2.5vw, 2.25rem)/1.15 var(--serif); }
.about-text { display: grid; gap: 1.6em; max-width: 35rem; margin-top: 4.8rem; line-height: 1.6; }
.about-signature { margin-top: auto; padding-top: 3rem; font: 400 2rem/1.2 var(--serif); }
.about-art { grid-column: 2; grid-row: 1 / 3; position: relative; aspect-ratio: 740 / 890; margin-top: .625rem; }
.about-art > * { position: absolute; }
.about-photo { --tilt: 3deg; left: 27.03%; top: 0; width: 63.51%; height: 67.42%; }
.about-detail { --tilt: -5deg; left: 0; top: 61.8%; width: 37.84%; height: 38.2%; }
.about-badge { left: 54.05%; top: 73.03%; width: 32.43%; }
.about-badge .badge-num { font: 400 clamp(4rem, 6.67vw, 6rem)/1 var(--serif); font-variant-numeric: lining-nums; }
.about.no-art { grid-template-columns: 1fr; }

/* ---------- Gallery ---------- */
.gallery { padding-top: 4.375rem; }
.gallery-blocks { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2.5rem; }
/* One large (660 × 740) and four small (330 × 360) photos, 20 px apart; mirrored blocks swap the sides. */
.gallery-block { display: grid; grid-template-columns: minmax(0, 660fr) minmax(0, 330fr) minmax(0, 330fr); gap: 1.25rem; }
.gallery-block > :first-child { grid-column: 1; grid-row: 1 / 3; }
.gallery-block.is-mirrored { grid-template-columns: minmax(0, 330fr) minmax(0, 330fr) minmax(0, 660fr); }
.gallery-block.is-mirrored > :first-child { grid-column: 3; }
.gallery-block > :not(:first-child) { aspect-ratio: 330 / 360; }
.gallery-rest { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 1.25rem; }
.gallery-rest > * { aspect-ratio: 4 / 3; }
.gallery-item { padding: 0; border: 0; cursor: zoom-in; }
.gallery-item img { transition: transform .8s var(--ease-in); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.04); transition: transform 1.2s var(--ease-out); }

.lightbox { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 4rem 1.5rem; background: rgba(90, 18, 32, .95); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 1.5rem; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; padding: .5rem; border: 0; background: none; color: var(--pist); cursor: pointer; }

/* ---------- Testimonials ---------- */
.testimonials { overflow: hidden; padding-bottom: 6rem; }
/* Without the pinned scroll (no script, reduced motion, touch screens) the row scrolls sideways by hand. */
.review-viewport { margin: 3rem calc(-1 * var(--pad)) 0; padding: 0 var(--pad) 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.review-viewport::-webkit-scrollbar { display: none; }
.review-viewport.is-pinned { overflow: visible; scroll-snap-type: none; }
.review-track { display: flex; align-items: flex-start; gap: 5rem; width: max-content; padding-right: var(--pad); }
.review {
  display: flex; flex-direction: column; gap: .875rem; flex: none; width: min(38.75rem, 82vw); padding: 2.5rem;
  border-radius: 2.5rem; background: var(--pist); color: var(--wine); scroll-snap-align: start;
}
.review:nth-child(3n + 1) { margin-top: 3.75rem; }
.review:nth-child(3n + 2) { width: min(35rem, 82vw); background: var(--pist-2); }
.review:nth-child(3n) { width: min(36.25rem, 82vw); margin-top: 8rem; }
.stars { font-size: 1.0625rem; line-height: 1.2; letter-spacing: .125rem; }
.stars span { display: inline-block; }
.review-quote { font: 400 1.75rem/1.2 var(--serif); }
.review-client { display: flex; flex-direction: column; gap: .875rem; }
.review-name { font: 700 1.0625rem/1.2 var(--sans); }
.review-detail { font-size: .9375rem; line-height: 1.2; color: var(--wine-soft); }

/* ---------- FAQ ---------- */
.faq { padding-bottom: 6rem; }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 5rem; margin-top: 4rem; }
.faq-item { padding-bottom: 2.5rem; }
.faq-q { font: 400 1.75rem/1.2 var(--serif); }
.faq-a { margin-top: .5rem; line-height: 1.55; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 620fr) minmax(0, 640fr); gap: 6.25rem; align-items: start; padding-bottom: 5rem; }
.contact-address { display: flex; flex-direction: column; margin-top: .9rem; font: 400 clamp(1.75rem, 2.5vw, 2.25rem)/1.2 var(--serif); }
.contact-lines { display: flex; flex-direction: column; gap: .625rem; margin-top: 1.75rem; }
.contact-lines div { display: grid; grid-template-columns: 5.625rem minmax(0, 1fr); align-items: baseline; }
.contact-lines dt { font-size: .9375rem; color: var(--rose); }
.contact-lines dd { font: 700 1.125rem/1.2 var(--sans); overflow-wrap: anywhere; }
.contact-lines a { transition: opacity .3s var(--ease-in); }
.contact-lines a:hover { opacity: .7; }
.hours { display: flex; flex-direction: column; gap: .5rem; max-width: 32.5rem; margin-top: 2.75rem; }
.hours div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.8125rem; padding: 0 1.375rem; border-radius: 999px; background: var(--wine-2); }
.hours dd { font-weight: 700; text-align: right; }
.hours .is-closed dd { font-weight: 400; color: var(--rose); }

.map-row { display: flex; align-items: center; gap: 1.875rem; margin-top: 4.125rem; }
.map { position: relative; flex: none; width: 18.75rem; aspect-ratio: 1; }
.map-disc { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; background: var(--pist); }
.map-sketch { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--pist-3); stroke-linecap: round; transition: opacity .6s var(--ease-out); }
.map-pin, .map-marker-dot { display: block; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 6px rgba(90, 18, 32, .18); }
.map-pin { position: absolute; left: 48.7%; top: 52.7%; margin: -.6875rem 0 0 -.6875rem; }
/* Two classes: MapLibre's own .maplibregl-map sets position: relative on this element. */
.map .map-canvas { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease-out); }
.map.is-ready .map-canvas { opacity: 1; }
.map.is-ready .map-sketch { opacity: 0; }
/* The sketch pin's opacity belongs to its entrance (inline), so the ready map hides it with visibility. */
.map.is-ready .map-pin { visibility: hidden; }
.map-attribution {
  position: absolute; left: 50%; bottom: 7%; z-index: 2; width: 62%; translate: -50% 0; padding: .125rem .375rem;
  border-radius: 999px; background: rgba(220, 230, 188, .85); color: var(--wine-soft);
  font-size: .5625rem; line-height: 1.25; text-align: center; opacity: 0; transition: opacity .6s var(--ease-out);
}
.map.is-ready .map-attribution { opacity: 1; }
.map-zoom { position: absolute; top: 50%; right: .75rem; z-index: 2; display: flex; flex-direction: column; gap: .375rem; translate: 0 -50%; }
.map-zoom[hidden] { display: none; }
.map-zoom button { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: var(--wine); color: var(--pist); cursor: pointer; transition: background-color .3s var(--ease-in); }
.map-zoom button:hover { background: var(--wine-3); }
.map-zoom button:disabled { background: #9a6d75; cursor: default; }
.map-marker { display: block; }
.map-canvas .maplibregl-canvas:focus-visible { outline: none; }

.contact-card { margin-top: .625rem; padding: 2.75rem; border-radius: 2.5rem; background: var(--pist); color: var(--wine); }
.form-title { font: 400 2.5rem/1.2 var(--serif); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.25rem; }
.field { position: relative; display: flex; flex-direction: column; gap: .75rem; }
.field label { font: 700 .9375rem/1.2 var(--sans); transform-origin: 0 50%; transition: transform .3s var(--ease-in), opacity .3s var(--ease-in); }
.field input, .field textarea {
  width: 100%; min-height: 3.375rem; padding: 1rem 1.5rem;
  border: 1.5px solid transparent; border-radius: 999px; background: var(--pist-2); color: var(--wine);
  font: 400 1.0625rem/1.4 var(--sans); transition: border-color .3s var(--ease-in);
}
.field textarea { height: 9.375rem; border-radius: 1.75rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--wine); transition-timing-function: var(--ease-out); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b3261e; }
/* Floating labels (hair-salon-retro.js adds .has-float): the label rests inside its empty field and rises above
   it on focus or once the field holds text. Without the script the labels simply sit above the fields. */
.has-float .field label { pointer-events: none; transform: translate(1.5rem, 3rem); opacity: .7; font-weight: 400; }
.has-float .field.is-active label { transform: none; opacity: 1; font-weight: 700; transition-timing-function: var(--ease-out); }
.consent { display: flex; align-items: flex-start; gap: .625rem; font-size: .9375rem; line-height: 1.2; }
.consent input { appearance: none; flex: none; width: 1.125rem; height: 1.125rem; margin: 0; border: 1.5px solid var(--wine); border-radius: .3125rem; background: var(--pist-2); cursor: pointer; }
.consent input:checked { background: var(--wine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dce6bc' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 80% no-repeat; }
.consent.is-invalid input { box-shadow: 0 0 0 2px #b3261e; }
.btn-submit { align-self: flex-start; }
.btn-submit:disabled { background: #9a6d75; cursor: default; }
.form-msg { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1.25rem; padding: 1rem 1.5rem; border-radius: 1.75rem; background: var(--pist-2); }
.form-ok { border-radius: 999px; background: var(--wine); color: var(--pist); font-weight: 700; }
.form-msg svg { flex: none; margin-top: .15rem; }
.form-msg ul { margin: .5rem 0 0; padding-left: 1.1rem; list-style: disc; }
.form-err { color: #8a1c14; }

/* ---------- Footer ---------- */
.site-footer { padding: 3.125rem var(--pad) 4.375rem; }
.footer-name { overflow: hidden; padding-bottom: .1em; font: 400 clamp(4rem, 13.9vw, 12.5rem)/1 var(--serif); letter-spacing: -.03em; overflow-wrap: anywhere; }
.footer-logo img { height: clamp(4rem, 10vw, 9rem); width: auto; }
.footer-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; margin-top: 4.5rem; font-size: .9375rem; line-height: 1.2; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; font-weight: 700; }
.footer-socials { gap: 1rem; }
.footer-socials svg { width: 1.25rem; height: 1.25rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.5rem; }
.footer-links .link-button, .footer-nav a { text-decoration: none; transition: opacity .3s var(--ease-in); }
.footer-links .link-button:hover, .footer-nav a:hover { opacity: .6; }
.footer-rights { margin-top: 2.5rem; font-size: .9375rem; color: var(--wine-soft); }

/* ---------- Legal modals ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1.5rem; background: rgba(90, 18, 32, .55); }
.modal[hidden] { display: none; }
.modal-card { display: flex; flex-direction: column; width: min(100%, 42rem); max-height: min(100%, 48rem); border-radius: 2rem; background: var(--pist); color: var(--wine); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.75rem 1.75rem 1rem; }
.modal-head h2 { font: 400 2rem/1.1 var(--serif); }
.modal-x { padding: .25rem; border: 0; background: none; cursor: pointer; }
.modal-body { padding: 0 1.75rem; overflow-y: auto; }
.modal-body h3 { margin: 1.25rem 0 .35rem; font: 700 1rem/1.3 var(--sans); }
.modal-body p { font-size: .9375rem; line-height: 1.6; }
.modal-body p + p { margin-top: .75rem; }
.modal-updated { color: var(--wine-soft); }
.modal-foot { display: flex; justify-content: flex-end; padding: 1.25rem 1.75rem 1.75rem; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav, .header-phone, .header-socials { display: none; }
  .menu-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; row-gap: 3rem; }
  .hero-badge { margin: 3rem 0 0 auto; }
  .hero-photos { width: min(100%, 50rem); }
  .section-head { flex-direction: column; gap: 1rem; }
  .section-note, .gallery .section-note { margin-top: 0; }
  .service-list { column-gap: 3rem; }
  .about { grid-template-columns: 1fr; }
  .about-text-col { grid-row: 2; }
  .about-signature { margin-top: 2.5rem; padding-top: 0; }
  .about-art { grid-column: 1; grid-row: 3; width: min(100%, 46rem); margin-top: 3rem; }
  .contact { grid-template-columns: 1fr; gap: 3.5rem; }
  .footer-row { grid-template-columns: 1fr; justify-items: start; }
  .footer-links { justify-content: flex-start; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .header-actions .lang-switch { display: none; }
  :root { --pad: 1.25rem; --header-h: 4.5rem; --title: clamp(2.75rem, 12vw, 3.5rem); }
  body { font-size: 1rem; }
  .wordmark { font-size: 1.75rem; }
  .header-actions { gap: .75rem; }
  .header-actions .btn-small { padding: 0 1.125rem; min-height: 2.5rem; }
  .section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero { padding-top: 1.5rem; padding-bottom: 3rem; }
  .hero-title { font-size: clamp(2.75rem, 13vw, 3.75rem); }
  .hero-grid { margin-top: 1.75rem; row-gap: 2.5rem; }
  .hero-intro { margin-top: 1.25rem; font-size: 1rem; }
  .hero-actions { margin-top: 1.75rem; }
  .hero-badge { width: 8.75rem; margin: 1.5rem .5rem 0 auto; }
  .hero-badge .badge-year { font-size: 2.5rem; }
  .hero-text { position: relative; }
  .services { padding-bottom: 3.5rem; }
  .service-list { grid-template-columns: 1fr; row-gap: 2.75rem; margin-top: 2.5rem; }
  .service:nth-child(even) { top: 0; }
  .service-price { font-size: 2.75rem; }
  .service-name { font-size: 1.75rem; }
  .about { padding-bottom: 4rem; }
  .about-quote { margin-top: 1.75rem; }
  .about-text { margin-top: 2rem; }
  .about-art { margin-top: 2.5rem; }
  .about-badge .badge-num { font-size: 3rem; }
  .about-badge .badge-label { font-size: .75rem; }
  .gallery { padding-top: 3.5rem; }
  .gallery-blocks, .gallery-block, .gallery-rest { gap: .75rem; }
  .gallery-blocks { margin-top: 1.75rem; }
  /* The large photo across the width, the four small ones two by two below it. */
  .gallery-block, .gallery-block.is-mirrored { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-block > :first-child, .gallery-block.is-mirrored > :first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery-block > :not(:first-child) { aspect-ratio: 1; }
  .gallery-rest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-rest > :only-child { grid-column: 1 / -1; }
  .testimonials { padding-bottom: 3.5rem; }
  .review-viewport { margin-top: 2rem; }
  .review-track { gap: 1rem; }
  .review, .review:nth-child(3n + 2), .review:nth-child(3n) { width: 82vw; margin-top: 0; padding: 1.75rem; border-radius: 1.75rem; }
  .review-quote { font-size: 1.375rem; }
  .faq { padding-bottom: 2rem; }
  .faq-list { grid-template-columns: 1fr; margin-top: 2rem; }
  .faq-q { font-size: 1.5rem; }
  .contact { padding-bottom: 3.5rem; gap: 2.5rem; }
  .hours div { padding: 0 1.125rem; }
  .map-row { flex-direction: column; align-items: flex-start; gap: 1.25rem; margin-top: 2.5rem; }
  .map { width: min(100%, 18.75rem); }
  .contact-card { padding: 1.75rem 1.25rem; border-radius: 1.75rem; }
  .form-title { font-size: 2rem; }
  .site-footer { padding-top: 2.5rem; padding-bottom: 3rem; }
  .footer-name { font-size: 16vw; }
  .footer-row { margin-top: 2.5rem; }
  .modal { padding: 0; align-items: end; }
  .modal-card { max-height: 92vh; border-radius: 1.5rem 1.5rem 0 0; }
}
