/* ==========================================================================
   ZERA CURTAINS
   1. Design tokens   2. Base   3. Typography   4. Layout   5. Buttons
   6. Utilities       7. Announcement bar   8. Header and navigation   9. Hero   10. About   11. Collections   12. Motorized   13. Services   14. Projects   15. Designers   16. Why ZERA   17. Footer   18. Floating buttons

   Breakpoints (media queries cannot read variables, so they live here):
   40rem  (640px)  large phone
   48rem  (768px)  tablet
   64rem  (1024px) small laptop
   70rem  (1120px) full desktop navigation
   80rem  (1280px) wide desktop
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  /* Palette */
  --ivory: #F4F0E8;
  --sand: #D9C9B5;
  --taupe: #A69A83;
  --olive: #646B55;
  --charcoal: #292A25;

  /* Semantic colour roles */
  --color-bg: var(--ivory);
  --color-surface: var(--sand);
  --color-text: var(--charcoal);
  --color-text-muted: rgba(41, 42, 37, 0.72);
  --color-accent: var(--olive);
  --color-line: rgba(41, 42, 37, 0.16);
  --color-line-strong: var(--taupe);

  /* Type families */
  --font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale (fluid) */
  --fs-display: clamp(3rem, 2.2rem + 4vw, 6rem);
  --fs-h1: clamp(2.5rem, 2rem + 2.5vw, 4.25rem);
  --fs-h2: clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --fs-h3: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --fs-h4: 1.25rem;
  --fs-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --section-y: clamp(4rem, 3rem + 5vw, 8rem);

  /* Containers */
  --container: 76rem;
  --container-narrow: 48rem;
  --container-wide: 90rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Borders and shape: soft, organic curves */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1rem;
  --radius-pill: 999px;
  --radius: var(--radius-md);
  --border: 1px solid var(--color-line);
  --border-strong: 1px solid var(--color-line-strong);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-1: 200ms;
  --dur-2: 350ms;

  /* Navigation height */
  --nav-h: 4.25rem;
}

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + var(--space-5));
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--sand); color: var(--charcoal); }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

main:focus { outline: none; }

/* 3. Typography ---------------------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: var(--fs-h4); line-height: 1.3; }

p { margin: 0 0 var(--space-4); max-width: 65ch; }

.display { font-family: var(--font-display); font-size: var(--fs-display); font-weight: 400; line-height: 1.02; letter-spacing: -0.015em; }
.lead { font-size: var(--fs-lg); line-height: 1.7; color: var(--color-text-muted); }
.text-sm { font-size: var(--fs-sm); }
.text-muted { color: var(--color-text-muted); }

/* 4. Layout -------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); }
.container--wide { width: min(100% - 2 * var(--gutter), var(--container-wide)); }
.section { padding-block: var(--section-y); }

/* 5. Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.btn--primary { background: var(--charcoal); border-color: var(--charcoal); color: var(--ivory); }
.btn--primary:hover { background: var(--olive); border-color: var(--olive); }
.btn--outline { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: var(--ivory); }
.btn--light { background: var(--ivory); border-color: var(--ivory); color: var(--charcoal); }
.btn--light:hover { background: var(--sand); border-color: var(--sand); }
.btn--outline-light { background: transparent; border-color: rgba(244, 240, 232, 0.7); color: var(--ivory); }
.btn--outline-light:hover { background: var(--ivory); border-color: var(--ivory); color: var(--charcoal); }
.btn--sm { min-height: 2.75rem; padding: 0.65rem 1.4rem; }

/* 6. Utilities ----------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 200;
  padding: var(--space-3) var(--space-4);
  background: var(--charcoal);
  color: var(--ivory);
  border-radius: var(--radius-pill);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* 7. Announcement bar ---------------------------------------------------- */
.announcement {
  padding: 0.5rem var(--gutter);
  background: var(--olive);
  color: var(--ivory);
  text-align: center;
}
.announcement__text {
  max-width: none;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-wrap: balance;
}

/* 8. Header and navigation ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 3rem; width: 3rem; max-width: 100%; object-fit: contain; border-radius: 50%; }

.site-header__cta { display: none; }

/* Hamburger: two fine lines that turn into a cross */
.nav-toggle {
  display: inline-grid;
  place-content: center;
  gap: 7px;
  width: 3rem;
  height: 3rem;
  margin-right: -0.75rem;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 1.5rem;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-of-type(1) { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-of-type(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* Mobile and tablet: dropdown panel */
.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  padding: var(--space-2) var(--gutter) var(--space-6);
  background: var(--color-bg);
  border-bottom: var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility 0s linear var(--dur-2);
}
.primary-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.primary-nav__list { margin: 0; padding: 0; list-style: none; }

.primary-nav__link {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  border-bottom: var(--border);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  text-decoration: none;
  transition: color var(--dur-1) var(--ease);
}
.primary-nav__link:hover,
.primary-nav__link[aria-current="page"] { color: var(--olive); }

.primary-nav__cta { display: flex; width: 100%; min-height: 3.25rem; margin-top: var(--space-5); }

/* Desktop: logo left, links centred, button right */
@media (min-width: 70rem) {
  :root { --nav-h: 5rem; }

  .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .brand img { height: 3.5rem; width: 3.5rem; }
  .nav-toggle { display: none; }

  .primary-nav {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .primary-nav__list { display: flex; gap: clamp(1.25rem, 2vw, 2.5rem); }
  .primary-nav__cta { display: none; }
  .site-header__cta { display: inline-flex; justify-self: end; }

  .primary-nav__link {
    position: relative;
    min-height: 0;
    padding-block: 0.5rem;
    border-bottom: 0;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.02em;
  }
  .primary-nav__link:hover,
  .primary-nav__link[aria-current="page"] { color: var(--color-text); }

  .primary-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.1rem;
    height: 1px;
    background: var(--olive);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-2) var(--ease);
  }
  .primary-nav__link:hover::after,
  .primary-nav__link:focus-visible::after,
  .primary-nav__link[aria-current="page"]::after { transform: scaleX(1); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 9. Hero ---------------------------------------------------------------- */
.hero {
  /* Poster chain: real JPGs first, generated placeholder underneath as the fallback. */
  --hero-poster: url("../assets/hero/poster-desktop.jpg"), url("../assets/hero/poster-placeholder.svg");
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: max(32rem, 90vh);
  min-height: max(32rem, 90svh);
  overflow: hidden;
  background: var(--charcoal);
  color: var(--ivory);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  scroll-margin-top: calc(-1 * var(--space-5));
}
.hero :focus-visible { outline-color: var(--ivory); }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-poster);
  background-size: cover;
  background-position: center;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero.is-playing .hero__video { opacity: 1; }

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(41, 42, 37, 0.6) 0%, rgba(41, 42, 37, 0.3) 50%, rgba(41, 42, 37, 0.2) 100%);
}

.hero__inner {
  padding-top: clamp(6rem, 12vh, 9rem);
  padding-bottom: clamp(3.5rem, 9vh, 6rem);
}

.hero__label {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: none;
  margin: 0 0 var(--space-5);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.9);
}
.hero__title {
  margin: 0 0 var(--space-5);
  font-size: clamp(2.25rem, 1rem + 5vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: initial;
}
.hero__line { display: block; }
.hero__text {
  max-width: 34rem;
  margin: 0 0 var(--space-6);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.7;
  color: rgba(244, 240, 232, 0.9);
}
.hero__actions { display: flex; flex-direction: column; gap: var(--space-3); }
.hero__actions .btn { width: 100%; min-height: 3.25rem; }

/* Pause control (appears once the video is playing) */
.hero__toggle {
  position: absolute;
  top: var(--space-4);
  right: var(--gutter);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  background: rgba(41, 42, 37, 0.25);
  border: 1px solid rgba(244, 240, 232, 0.6);
  border-radius: 50%;
  color: var(--ivory);
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.hero__toggle[hidden] { display: none; }
.hero__toggle:hover { background: var(--ivory); color: var(--charcoal); }
.hero__toggle svg { width: 1.125rem; height: 1.125rem; }
.hero.is-paused .icon-pause,
.hero:not(.is-paused) .icon-play { display: none; }

.hero__scroll { display: none; }

/* Entrance: one calm sequence on load */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero__label, .hero__title, .hero__text, .hero__actions { animation: hero-rise 900ms var(--ease) both; }
.hero__title { animation-delay: 120ms; }
.hero__text { animation-delay: 240ms; }
.hero__actions { animation-delay: 360ms; }

/* Phones get their own poster crop */
@media (max-width: 47.99rem) {
  .hero { --hero-poster: url("../assets/hero/poster-mobile.jpg"), url("../assets/hero/poster-desktop.jpg"), url("../assets/hero/poster-placeholder.svg"); min-height: max(34rem, 88vh); min-height: max(34rem, 88svh); }
  .hero__overlay { background: linear-gradient(to top, rgba(41, 42, 37, 0.7) 0%, rgba(41, 42, 37, 0.42) 55%, rgba(41, 42, 37, 0.3) 100%); }
}

@media (min-width: 40rem) {
  .hero__label { font-size: 0.78125rem; letter-spacing: 0.24em; }
  .hero__label::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; gap: var(--space-4); }
  .hero__actions .btn { width: auto; min-height: 3rem; }
}

@media (min-width: 48rem) {
  .hero__toggle { top: auto; bottom: var(--space-6); }
  .hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 0;
    display: flex;
    justify-content: center;
    width: 3rem;
    height: 4.5rem;
    transform: translateX(-50%);
  }
  .hero__scroll::before { content: ""; width: 1px; height: 3.25rem; background: rgba(244, 240, 232, 0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__label, .hero__title, .hero__text, .hero__actions { animation: none; }
}

/* 10. About -------------------------------------------------------------- */
/* Reusable small label (also available to later sections) */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: none;
  margin: 0 0 var(--space-5);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }

/* Scroll reveal: content stays visible if JavaScript is unavailable */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Mobile first: heading, photographs, then story */
.about__layout { display: grid; gap: var(--space-7); }

.about__title {
  margin: 0;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
  line-height: 1.08;
}
.about__title span { display: block; }

.about__media {
  position: relative;
  width: 100%;
  max-width: 38rem;
  margin-left: auto;
  padding-bottom: 18%;
}
.about__figure { margin: 0; }
.about__figure img { display: block; width: 100%; height: auto; object-fit: cover; background: var(--sand); }
.about__figure--primary { width: 84%; margin-left: auto; }
.about__figure--primary img { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
.about__figure--secondary { position: absolute; left: 0; bottom: 0; width: 48%; }
.about__figure--secondary img { aspect-ratio: 1 / 1; border: 0.5rem solid var(--color-bg); border-radius: var(--radius-md); }

.about__copy p { max-width: 34rem; margin: 0 0 var(--space-5); color: var(--color-text-muted); }
.about__copy .about__lead { font-size: var(--fs-lg); line-height: 1.7; color: var(--color-text); }

.about__copy .about__stat {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin: var(--space-7) 0 0;
  padding-top: var(--space-5);
  border-top: var(--border);
  color: var(--color-text);
}
.about__stat-figure {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
  line-height: 1;
  color: var(--olive);
}
.about__stat-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.about__stat-text strong { font-weight: 500; color: var(--color-text); }

/* Values: ruled editorial list rather than cards */
.about__values {
  margin: clamp(4rem, 8vw, 7rem) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: var(--border);
}
.about__values li { display: grid; gap: var(--space-2); padding-block: var(--space-5); border-top: var(--border); }
.about__values h3 { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.about__values p { max-width: 34rem; margin: 0; color: var(--color-text-muted); }

@media (min-width: 48rem) {
  .about__values li { grid-template-columns: 1fr 1.4fr; column-gap: var(--space-6); align-items: baseline; padding-block: var(--space-6); }
}

@media (min-width: 64rem) {
  .about__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "head media" "copy media";
    column-gap: clamp(3rem, 7vw, 7rem);
    row-gap: var(--space-6);
    align-items: start;
  }
  .about__head { grid-area: head; }
  .about__copy { grid-area: copy; }
  .about__media { grid-area: media; max-width: none; margin: 0; }
  .about__values li { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(3rem, 7vw, 7rem); }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* 11. Collections -------------------------------------------------------- */
/* The About section already provides the space above, so no extra top padding here. */
.collections { padding-top: 0; }

.collections__head { display: grid; gap: var(--space-5); margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.collections__title { margin: 0; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); line-height: 1.08; }
.collections__intro { max-width: 34rem; margin: 0; font-size: var(--fs-lg); line-height: 1.7; color: var(--color-text-muted); }

.collections__panels { display: grid; gap: clamp(4rem, 8vw, 8rem); }

.collection { display: grid; gap: var(--space-6); }
.collection__media { margin: 0; overflow: hidden; border-radius: var(--radius-md); background: var(--sand); }
.collection__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

.collection__title { margin: 0 0 var(--space-5); font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.1; }

.collection__items { margin: 0 0 var(--space-5); padding: 0; list-style: none; border-top: var(--border); }
.collection__items li { padding-block: 0.8rem; border-bottom: var(--border); }
.collection__item--note { color: var(--olive); font-weight: 500; }

/* Quiet text link for enquiries */
.link-quiet {
  position: relative;
  display: inline-block;
  padding-block: 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--dur-2) var(--ease);
}
.link-quiet::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  height: 1px;
  background: var(--taupe);
  transition: background-color var(--dur-2) var(--ease);
}
.link-quiet:hover { color: var(--olive); }
.link-quiet:hover::after { background: var(--olive); }

/* Panel 2: blinds read as a large serif index */
.collection--blinds .collection__items li {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  line-height: 1.2;
  padding-block: 0.9rem;
}

/* Panel 3: image mounted like a print on a sand mat */
.collection--decor .collection__media { padding: clamp(0.75rem, 2vw, 1.5rem); }
.collection--decor .collection__media img { border-radius: var(--radius-sm); }

@media (hover: hover) {
  .collection__media img { transition: transform 900ms var(--ease); }
  .collection--curtains:hover .collection__media img,
  .collection--blinds:hover .collection__media img { transform: scale(1.03); }
}

@media (min-width: 48rem) {
  .collection--curtains .collection__items,
  .collection--decor .collection__items { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-6); }
  .collection--curtains .collection__item--wide { grid-column: 1 / -1; }
  .collection__media { max-width: 36rem; }
}

@media (min-width: 64rem) {
  .collections__head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(3rem, 7vw, 7rem);
    align-items: end;
  }

  .collection { align-items: center; column-gap: clamp(3rem, 7vw, 7rem); }
  .collection__media { grid-area: media; max-width: none; }
  .collection__body { grid-area: body; }

  .collection--curtains { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "media body"; }
  .collection--blinds { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "body media"; }
  .collection--decor { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); grid-template-areas: "media body"; }
}

/* 12. Motorized curtains ------------------------------------------------- */
.motor {
  --motor-poster: url("../assets/motorized/motorized-poster.jpg"), url("../assets/motorized/placeholder-motorized-curtains.svg");
  overflow: hidden;
  background: var(--charcoal);
  color: var(--ivory);
  border-radius: var(--radius-xl);
}
.motor :focus-visible { outline-color: var(--ivory); }
.motor .eyebrow { color: var(--sand); }

.motor__inner { display: grid; }

.motor__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.motor__frame {
  position: absolute;
  inset: 0;
  background-image: var(--motor-poster);
  background-size: cover;
  background-position: center;
}
.motor__video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.motor__media.is-playing .motor__video { opacity: 1; }

/* The picture settles slowly as it scrolls into view */
.js .motor__frame { transform: scale(1.06); transition: transform 1600ms var(--ease); }
.js .motor__media.is-visible .motor__frame { transform: none; }

.motor__toggle {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  background: rgba(41, 42, 37, 0.25);
  border: 1px solid rgba(244, 240, 232, 0.6);
  border-radius: 50%;
  color: var(--ivory);
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.motor__toggle[hidden] { display: none; }
.motor__toggle:hover { background: var(--ivory); color: var(--charcoal); }
.motor__toggle svg { width: 1.125rem; height: 1.125rem; }
.motor__media.is-paused .icon-pause,
.motor__media:not(.is-paused) .icon-play { display: none; }

.motor__body { padding: var(--space-7) var(--gutter) var(--space-8); }
.motor__title { margin: 0 0 var(--space-5); font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); line-height: 1.08; color: var(--ivory); }
.motor__text { max-width: 32rem; margin: 0; font-size: var(--fs-lg); line-height: 1.7; color: rgba(244, 240, 232, 0.8); }

.motor__features { margin: var(--space-6) 0 var(--space-7); padding: 0; list-style: none; border-top: 1px solid rgba(244, 240, 232, 0.2); }
.motor__features li { padding-block: 0.85rem; border-bottom: 1px solid rgba(244, 240, 232, 0.2); color: rgba(244, 240, 232, 0.92); }

.motor__cta { width: 100%; min-height: 3.25rem; line-height: 1.5; text-align: center; white-space: normal; }

@media (min-width: 40rem) {
  .motor__cta { width: auto; }
}

@media (min-width: 64rem) {
  .motor__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .motor__media { aspect-ratio: 4 / 3; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
  .motor__body {
    align-self: center;
    padding-block: clamp(3rem, 6vw, 6rem);
    padding-left: clamp(3rem, 6vw, 6rem);
    padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2));
  }
  .motor__toggle { right: var(--space-5); bottom: var(--space-5); }
}

@media (prefers-reduced-motion: reduce) {
  .js .motor__frame { transform: none; transition: none; }
}

/* 13. Services ----------------------------------------------------------- */
.services__head { display: grid; gap: var(--space-5); margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.services__title { margin: 0; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); line-height: 1.08; }
.services__intro { max-width: 30rem; margin: 0; padding-top: var(--space-4); border-top: var(--border-strong); color: var(--color-text-muted); }

.services__list { display: grid; gap: clamp(3.5rem, 7vw, 6rem); margin: 0; padding: 0; list-style: none; }

.service { display: grid; gap: var(--space-5); }
.service--tailoring { --ratio: 4 / 5; }
.service--consultation { --ratio: 1 / 1; }
.service--installation { --ratio: 4 / 5; }

/* Blank media container: keeps size, ratio and background until a photo is added */
.service__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); border-radius: var(--radius-md); }
.service__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.service__media img[hidden] { display: none; }

.service__num {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: none;
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--olive);
}
.service__num::after { content: ""; flex: 1; height: 1px; background: var(--taupe); }
.service__title { margin: 0 0 var(--space-3); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); line-height: 1.15; }
.service__text { max-width: 30rem; margin: 0; color: var(--color-text-muted); }

/* Tablet: media and text side by side, alternating sides */
@media (min-width: 48rem) {
  .service { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--space-7); align-items: center; }
  .service:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .service:nth-child(even) .service__media { order: 2; }
  .service__media { aspect-ratio: var(--ratio); }
}

/* Desktop: three columns cascading downward */
@media (min-width: 64rem) {
  .services__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: clamp(3rem, 7vw, 7rem);
    align-items: end;
  }
  .services__list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3.5vw, 3.5rem); align-items: start; }
  .service,
  .service:nth-child(even) { grid-template-columns: minmax(0, 1fr); column-gap: 0; align-items: start; }
  .service:nth-child(even) .service__media { order: 0; }
  .service:nth-child(2) { margin-top: clamp(4rem, 8vw, 8rem); }
  .service:nth-child(3) { margin-top: clamp(8rem, 16vw, 16rem); }
}

/* 14. Projects ----------------------------------------------------------- */
/* Services above already provides the space, so no extra top padding here. */
.projects { padding-top: 0; }

.projects__head { display: grid; gap: var(--space-5); margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.projects__title { margin: 0; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); line-height: 1.08; }
.projects__intro { max-width: 30rem; margin: 0; padding-top: var(--space-4); border-top: var(--border-strong); color: var(--color-text-muted); }

/* Gallery: 12-column grid. In each row one tile sets the height (it has an aspect-ratio);
   its neighbours stretch to match, so rows stay flush without fixed pixel heights. */
.gallery {
  --gallery-gap: clamp(0.5rem, 0.2rem + 1.6vw, 1.5rem);
  --gallery-radius: var(--radius-sm);
  --tone-a: var(--sand);
  --tone-b: var(--sand);
  --tone-c: var(--sand);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gallery-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
@supports (background: color-mix(in srgb, red, blue)) {
  .gallery {
    --tone-b: color-mix(in srgb, var(--sand) 55%, var(--ivory));
    --tone-c: color-mix(in srgb, var(--taupe) 42%, var(--ivory));
  }
}

.gallery__item { position: relative; grid-column: span 6; min-width: 0; }

/* Blank media container: keeps size, shape and tone until a photo or video is added */
.gallery__media {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background-color: var(--tone, var(--sand));
  border-radius: var(--gallery-radius);
}
.gallery__media img,
.gallery__media video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery__media img[hidden] { display: none; }

/* Phones and tablets */
.gallery__item--1 { --tone: var(--tone-a); grid-column: span 12; aspect-ratio: 4 / 3; }
.gallery__item--2 { --tone: var(--tone-b); aspect-ratio: 4 / 5; }
.gallery__item--3 { --tone: var(--tone-c); }
.gallery__item--video { --tone: var(--tone-b); grid-column: span 12; aspect-ratio: 16 / 9; }
.gallery__item--4 { --tone: var(--tone-c); grid-column: span 5; aspect-ratio: 2 / 3; }
.gallery__item--5 { --tone: var(--tone-a); grid-column: span 7; }
.gallery__item--6 { --tone: var(--tone-b); grid-column: span 7; aspect-ratio: 1 / 1; }
.gallery__item--7 { --tone: var(--tone-a); grid-column: span 5; }

/* Video: optional poster behind it, video fades in once real footage has loaded */
.gallery__item--video .gallery__media {
  background-image: url("../assets/projects/project-video-poster.jpg");
  background-size: cover;
  background-position: center;
}
.gallery__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.gallery__item--video.has-video .gallery__video { opacity: 1; }

.gallery__toggle {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  background: rgba(41, 42, 37, 0.25);
  border: 1px solid rgba(244, 240, 232, 0.6);
  border-radius: 50%;
  color: var(--ivory);
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.gallery__toggle[hidden] { display: none; }
.gallery__toggle:hover { background: var(--ivory); color: var(--charcoal); }
.gallery__toggle:focus-visible { outline-color: var(--ivory); }
.gallery__toggle svg { width: 1.125rem; height: 1.125rem; }
.gallery__item--video.is-paused .icon-pause,
.gallery__item--video:not(.is-paused) .icon-play { display: none; }

/* Lightbox trigger: an invisible button laid over a tile, revealed by script only once its image has loaded */
.gallery__open {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--gallery-radius);
  cursor: zoom-in;
}
.gallery__open[hidden] { display: none; }

@media (hover: hover) {
  .gallery__item.is-openable .gallery__media img { transition: transform 900ms var(--ease); }
  .gallery__item.is-openable:hover .gallery__media img { transform: scale(1.03); }
}

@media (min-width: 48rem) {
  .gallery__item--1 { aspect-ratio: 3 / 2; }
}

@media (min-width: 64rem) {
  .projects__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: clamp(3rem, 7vw, 7rem);
    align-items: end;
  }

  /* Row 1: wide landscape + portrait. Row 2: portrait + video. Rows 3-4: tall portrait beside a wide tile and two smaller ones. */
  .gallery__item--1 { grid-column: span 8; aspect-ratio: 5 / 3; }
  .gallery__item--2 { grid-column: span 4; aspect-ratio: auto; }
  .gallery__item--3 { grid-column: span 4; }
  .gallery__item--video { grid-column: span 8; }
  .gallery__item--4 { grid-column: 1 / span 5; grid-row: 3 / span 2; }
  .gallery__item--5 { grid-column: 6 / span 7; grid-row: 3; }
  .gallery__item--6 { grid-column: 6 / span 4; grid-row: 4; aspect-ratio: auto; }
  .gallery__item--7 { grid-column: 10 / span 3; grid-row: 4; }
  .gallery__toggle { right: var(--space-5); bottom: var(--space-5); }
}

/* Lightbox ---------------------------------------------------------------- */
html:has(.lightbox[open]) { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(41, 42, 37, 0.96);
  border: 0;
  color: var(--ivory);
}
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox :focus-visible { outline-color: var(--ivory); }

.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 4.5rem var(--gutter) var(--space-4); }
.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  max-height: calc(100dvh - 11rem);
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__bar { display: flex; align-items: center; justify-content: center; gap: var(--space-5); padding: 0 var(--gutter) var(--space-5); }
.lightbox__count { min-width: 4.5rem; max-width: none; margin: 0; font-size: var(--fs-sm); letter-spacing: 0.14em; text-align: center; color: rgba(244, 240, 232, 0.8); }
.lightbox.is-single .lightbox__bar { display: none; }

.lightbox__btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  background: rgba(41, 42, 37, 0.25);
  border: 1px solid rgba(244, 240, 232, 0.6);
  border-radius: 50%;
  color: var(--ivory);
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.lightbox__btn:hover { background: var(--ivory); color: var(--charcoal); }
.lightbox__btn svg { width: 1.25rem; height: 1.25rem; }
.lightbox__close { position: absolute; top: var(--space-4); right: var(--gutter); z-index: 1; }

@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox__img { animation: lightbox-in 300ms var(--ease) both; }
}

/* 15. Designers ---------------------------------------------------------- */
/* Olive panel in the same family as the Motorized panel. Text stays solid ivory (4.9:1 on olive); fading it would fail contrast. */
.designers {
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
  background: var(--olive);
  border-radius: var(--radius-xl);
  color: var(--ivory);
}
.designers :focus-visible { outline-color: var(--ivory); }
.designers .eyebrow { color: var(--ivory); }

.designers__layout { display: grid; gap: var(--space-7); }

.designers__title {
  margin: 0 0 var(--space-5);
  font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ivory);
}
.designers__title span { display: block; }

.designers__text { max-width: 34rem; margin: 0 0 var(--space-6); font-size: var(--fs-lg); line-height: 1.7; }

.designers__actions { display: flex; flex-direction: column; gap: var(--space-3); }
.designers__actions .btn { width: 100%; min-height: 3.25rem; line-height: 1.5; white-space: normal; text-align: center; }

/* Blank media container: keeps size, ratio and tone until a photo is added */
.designers__media {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--sand);
  border-radius: var(--radius-sm);
}
.designers__media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.designers__media img[hidden] { display: none; }

/* Supporting points: open columns divided by the rule after each number, not cards */
.designers__points { margin: clamp(3.5rem, 7vw, 6rem) 0 0; padding: 0; list-style: none; }
.designers__point { padding-block: var(--space-4) var(--space-5); }
.designers__num {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: none;
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
}
.designers__num::after { content: ""; flex: 1; height: 1px; background: rgba(244, 240, 232, 0.35); }
.designers__point-title { margin: 0 0 var(--space-3); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); line-height: 1.15; color: var(--ivory); }
.designers__point-text { max-width: 30rem; margin: 0; }

@media (min-width: 40rem) {
  .designers__actions { flex-direction: row; flex-wrap: wrap; gap: var(--space-4); }
  .designers__actions .btn { width: auto; min-height: 3rem; white-space: nowrap; }
}

@media (min-width: 48rem) {
  .designers__layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(2rem, 6vw, 7rem);
    align-items: center;
  }
  .designers__media { justify-self: end; }

  .designers__points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3.5vw, 3.5rem); }
}

@media (min-width: 64rem) {
  .designers__layout { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}

/* 16. Why choose ZERA ---------------------------------------------------- */
/* The panel above provides no bottom space, so this section keeps its normal top padding. */
.why__layout { display: grid; gap: var(--space-6); }

.why__title { margin: 0; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); line-height: 1.08; }
.why__title span { display: block; }
.why__head { margin-bottom: var(--space-2); }
.why__intro { max-width: 32rem; margin: 0; padding-top: var(--space-4); border-top: var(--border-strong); color: var(--color-text-muted); }

/* Blank media container: keeps size, ratio and tone until a photo is added */
.why__media {
  position: relative;
  width: 100%;
  max-width: 30rem;
  margin: var(--space-3) 0 var(--space-4);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--sand);
  border-radius: var(--radius-md);
}
.why__media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.why__media img[hidden] { display: none; }
/* Stay invisible until the file has really loaded, so a missing photo never flashes a broken-image icon */
.js .why__media img:not(.is-loaded) { visibility: hidden; }

/* Four strengths: an index of large numerals and ruled rows, not cards */
.why__list { margin: 0; padding: 0; list-style: none; border-bottom: var(--border); }
.why__item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: var(--space-4);
  align-items: start;
  padding-block: var(--space-6);
  border-top: var(--border);
}
.why__num {
  max-width: none;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
  line-height: 1;
  color: var(--olive);
}
.why__item-title { margin: 0 0 var(--space-3); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); line-height: 1.15; }
.why__item-text { max-width: 32rem; margin: 0; color: var(--color-text-muted); }

@media (min-width: 48rem) {
  .why__item { grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: var(--space-5); }
}

/* Desktop: title across the top; photo on the left, intro and the four strengths on the right */
@media (min-width: 64rem) {
  .why__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas: "head head" "media intro" "media list";
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(3rem, 7vw, 7rem);
    row-gap: 0;
    align-items: start;
  }
  .why__head { grid-area: head; margin-bottom: clamp(3rem, 6vw, 5rem); }
  .why__media { grid-area: media; max-width: none; margin: 0; }
  .why__intro { grid-area: intro; margin-bottom: var(--space-6); padding-top: 0; border-top: 0; }
  .why__list { grid-area: list; }
  .why__item { grid-template-columns: 6rem minmax(0, 1fr); padding-block: var(--space-6); }
}

/* 17. Testimonials ------------------------------------------------------- */
/* Slightly less bottom space than a normal section: the contact section below opens with its own ruled line. */
.testimonials { padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }

.testimonials__head { display: grid; gap: var(--space-5); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.testimonials__title { margin: 0; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); line-height: 1.08; }
.testimonials__intro { max-width: 30rem; margin: 0; color: var(--color-text-muted); }

/* Three open columns divided by a single rule, not cards. Empty slots stay as quiet ruled space. */
.testimonials__list { display: grid; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.testimonial { margin: 0; padding-top: var(--space-5); border-top: var(--border-strong); }
.testimonial__quote { margin: 0; }
.testimonial__text {
  max-width: none;
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  line-height: 1.45;
}
.testimonial__text:empty { min-height: 3.5rem; margin: 0; }
.testimonial__meta { display: grid; gap: var(--space-1); }
.testimonial__name { font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.testimonial__type { font-size: var(--fs-sm); color: var(--color-text-muted); }
.testimonial__name:empty, .testimonial__type:empty { display: none; }

@media (min-width: 48rem) {
  .testimonials__item { max-width: 44rem; }
  .testimonial__text:empty { min-height: 5rem; }
}

@media (min-width: 64rem) {
  .testimonials__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(3rem, 7vw, 7rem); align-items: end; }
  .testimonials__list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .testimonials__item { max-width: none; }
  /* Editorial stagger: the middle column sits lower */
  .testimonials__item:nth-child(2) { margin-top: var(--space-8); }
  .testimonial__text:empty { min-height: 9rem; }
}

/* 18. Contact and location ----------------------------------------------- */
/* One compact curved card holds the message, details, Instagram and map. */
.contact { padding-top: 0; }

.contact__card {
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 1rem + 3vw, 2.75rem);
  background: rgba(217, 201, 181, 0.22);
  border: var(--border);
  border-radius: var(--radius-xl);
}

.contact__title { margin: 0 0 var(--space-4); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); line-height: 1.12; }
.contact__intro { max-width: 32rem; margin: 0 0 var(--space-5); font-size: var(--fs-sm); line-height: 1.6; color: var(--color-text-muted); }
.contact__cta { max-width: none; margin: 0 0 var(--space-5); }
.contact__cta .btn { width: 100%; }

/* Details: compact ruled rows, label on the left, value on the right */
.contact__details { margin: 0; border-bottom: var(--border); }
.contact__row { display: grid; gap: var(--space-1); padding-block: var(--space-4); border-top: var(--border); }
.contact__label {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
}
.contact__value { margin: 0; font-family: var(--font-display); font-size: 1.125rem; line-height: 1.4; }
.contact__address { font-style: normal; }
.contact__address span { display: block; }

.contact__list { margin: 0; padding: 0; list-style: none; }
.contact__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: underline;
  text-decoration-color: var(--taupe);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
  transition: color var(--dur-1) var(--ease), text-decoration-color var(--dur-1) var(--ease);
}
.contact__link:hover { color: var(--olive); text-decoration-color: var(--olive); }
.contact__link--sm { font-family: var(--font-body); font-size: var(--fs-sm); }
.contact__tag { margin-left: var(--space-3); font-family: var(--font-body); font-size: var(--fs-sm); color: var(--color-text-muted); }

.contact__hours li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--space-5); max-width: 22rem; padding-block: 2px; }
.contact__time { white-space: nowrap; }

/* Parking: quiet, secondary */
.contact__note { max-width: none; margin: var(--space-4) 0 var(--space-5); font-size: var(--fs-sm); color: var(--color-text-muted); }

/* Map: sits inside the card, with its own gentle curve */
.contact__map {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand);
  border-radius: var(--radius-md);
}
.contact__map iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }

@media (min-width: 40rem) {
  .contact__cta .btn { width: auto; }
  .contact__row { grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: var(--space-4); align-items: baseline; }
  .contact__map { aspect-ratio: 16 / 10; }
}


/* 17. Footer ------------------------------------------------------------- */
.site-footer {
  padding: var(--space-8) 0 calc(10rem + env(safe-area-inset-bottom, 0px)); /* room so the floating buttons clear the last line */
  background: var(--charcoal);
  color: var(--ivory);
}
.site-footer__grid { display: grid; gap: var(--space-7); }
.site-footer__logo { display: inline-block; }
.site-footer__logo img { height: 6.5rem; width: 6.5rem; max-width: 100%; object-fit: contain; border-radius: 50%; }
.site-footer__tagline { max-width: 18rem; margin: var(--space-5) 0 0; font-family: var(--font-display); font-size: var(--fs-h4); line-height: 1.4; color: var(--ivory); }

.site-footer__heading {
  margin: 0 0 var(--space-4);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
}
.site-footer__heading--spaced { margin-top: var(--space-6); }
.site-footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.site-footer__link { display: inline-block; padding: 0.2rem 0; color: var(--ivory); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.site-footer__link:hover { border-bottom-color: var(--taupe); }
.site-footer__link:focus-visible, .fab:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.site-footer__address { margin: var(--space-5) 0 0; font-style: normal; font-size: var(--fs-sm); line-height: 1.7; color: rgba(244, 240, 232, 0.78); }
.site-footer__social { max-width: none; margin: 0; font-size: var(--fs-sm); }
.site-footer__hours li { display: flex; flex-direction: column; font-size: var(--fs-sm); color: rgba(244, 240, 232, 0.78); }
.site-footer__hours li span:first-child { color: var(--ivory); }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(166, 154, 131, 0.35);
  text-align: center;
  align-items: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: rgba(244, 240, 232, 0.65);
}
.site-footer__bottom p { max-width: none; margin: 0; }

@media (min-width: 40rem) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .site-footer { padding-bottom: var(--space-6); }
  .site-footer__grid { grid-template-columns: 1.3fr 0.8fr 1.2fr 1fr; column-gap: var(--space-8); }
  .site-footer__brand { grid-column: auto; }
  .site-footer__bottom { flex-direction: column; justify-content: center; align-items: center; text-align: center; }
}

/* 18. Floating action buttons ------------------------------------------- */
.fab-group {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  z-index: 90; /* below the sticky header (100) */
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.fab {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--ivory);
  box-shadow: 0 2px 8px rgba(41, 42, 37, 0.25);
  transition: transform var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.fab svg { width: 1.375rem; height: 1.375rem; }
.fab--whatsapp { background: #25D366; color: #fff; }
.fab--call { background: var(--olive); }
.fab--top { background: var(--charcoal); border: 1px solid rgba(244, 240, 232, 0.35); }
.fab:active { transform: scale(0.94); }
.fab:focus-visible { outline-color: var(--charcoal); box-shadow: 0 0 0 2px var(--ivory); }

@media (hover: hover) {
  .fab:hover { transform: translateY(-2px); }
  .fab--whatsapp:hover { background: #1EBE5A; }
  .fab--call:hover { background: #565d49; }
  .fab--top:hover { background: #3a3b35; }
  .fab::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 0.625rem);
    top: 50%;
    padding: 0.25rem 0.625rem;
    background: var(--charcoal);
    color: var(--ivory);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    letter-spacing: 0.04em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity var(--dur-1) var(--ease);
  }
  .fab:hover::after, .fab:focus-visible::after { opacity: 1; }
}
@media (min-width: 48rem) {
  .fab-group { right: max(1.25rem, env(safe-area-inset-right, 0px)); bottom: max(1.25rem, env(safe-area-inset-bottom, 0px)); }
  .fab { width: 3rem; height: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fab { transition: none; }
  .fab:hover, .fab:active { transform: none; }
}

/* Instagram icon beside the handle */
.ig-icon { flex: none; width: 1.125rem; height: 1.125rem; }
.site-footer__social .site-footer__link, .contact__value .contact__link[href*="instagram.com"] { display: inline-flex; align-items: center; gap: 0.5rem; }

/* Designer credit: blue text link */
.credit-pill {
  color: #6DB6F2;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--dur-1) var(--ease);
}
.credit-pill:hover { color: #9CCEF7; }
.credit-pill:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
