/* ==========================================================================
   Sofa auf Maß — Sophisticated Living
   B2C landing page design system
   --------------------------------------------------------------------------
   Fonts are self-hosted (GDPR: never hotlink Google Fonts from a German site).
   Upload the .woff2 files to /wp-content/themes/blocksy-child/fonts/ or drop
   this stylesheet next to a /fonts/ folder. If the files are absent the
   fallback stack below still reads as premium — nothing breaks.
   ========================================================================== */

@font-face {
  font-family: "SaM Display";
  src: url("../fonts/display-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SaM Display";
  src: url("../fonts/display-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SaM Sans";
  src: url("../fonts/sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SaM Sans";
  src: url("../fonts/sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Palette — sampled from the studio's own photography */
  --ink: #211c18;
  --ink-soft: #5e564e;
  --ink-faint: #8b8177;
  --bone: #faf7f2;
  --sand: #f1ebe2;
  --sand-deep: #e7dfd3;
  --line: #e2d9cd;
  --line-soft: #ece5db;
  --white: #ffffff;
  --accent: #a75a3c;
  --accent-deep: #8a4930;
  --accent-tint: #f6ece6;

  /* Spacing — 8 pt grid, one scale, used everywhere */
  --s-1: 0.25rem;  /*  4 */
  --s-2: 0.5rem;   /*  8 */
  --s-3: 0.75rem;  /* 12 */
  --s-4: 1rem;     /* 16 */
  --s-5: 1.5rem;   /* 24 */
  --s-6: 2rem;     /* 32 */
  --s-7: 3rem;     /* 48 */
  --s-8: 4rem;     /* 64 */
  --s-9: 5rem;     /* 80 */
  --s-10: 6rem;    /* 96 */
  --s-11: 8rem;    /* 128 */

  /* Vertical rhythm for sections — fluid, but always a multiple of the grid */
  --section-y: clamp(3.5rem, 8vw, 7.5rem);
  --section-y-lg: clamp(4.5rem, 10vw, 9.5rem);

  /* Layout */
  --measure: 68ch;
  --container: 1200px;
  --container-wide: 1440px;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  /* Type */
  --font-display: "SaM Display", "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, "Times New Roman", serif;
  --font-sans: "SaM Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-lg: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem);
  --t-xl: clamp(1.375rem, 1vw + 1.1rem, 1.75rem);
  --t-2xl: clamp(1.75rem, 2vw + 1.2rem, 2.5rem);
  --t-3xl: clamp(2.125rem, 3vw + 1.3rem, 3.25rem);
  --t-4xl: clamp(2.5rem, 4.5vw + 1.2rem, 4.5rem);

  /* Other */
  --radius: 2px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 2px rgba(33, 28, 24, 0.05);
  --shadow: 0 12px 32px -12px rgba(33, 28, 24, 0.16);
  --shadow-lg: 0 32px 64px -24px rgba(33, 28, 24, 0.22);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --tap: 44px; /* minimum touch target */
  --header-h: 68px;
}

@media (min-width: 900px) {
  :root {
    --header-h: 84px;
  }
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* belt-and-braces against horizontal scroll */
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

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

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: 780px;
}

.section {
  padding-block: var(--section-y);
}

.section--lg {
  padding-block: var(--section-y-lg);
}

.section--sand {
  background: var(--sand);
}

.section--ink {
  background: var(--ink);
  color: var(--bone);
}

.section--tight-top {
  padding-top: 0;
}

.stack > * + * {
  margin-top: var(--flow, var(--s-4));
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 200;
  padding: var(--s-3) var(--s-5);
  background: var(--ink);
  color: var(--bone);
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: var(--s-4);
}

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: none;
}

/* Below 520px the rule steals width and leaves wrapped lines hanging under it */
@media (max-width: 519px) {
  .eyebrow::before {
    display: none;
  }
}

.section--ink .eyebrow {
  color: #d9a88e;
}

.h1 {
  font-size: var(--t-4xl);
}
.h2 {
  font-size: var(--t-3xl);
}
.h3 {
  font-size: var(--t-2xl);
}
.h4 {
  font-size: var(--t-xl);
}

.lede {
  font-size: var(--t-lg);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.section--ink .lede {
  color: #cbc2b8;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: var(--t-sm);
}

/* Section heading block — one component, so every section aligns identically */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  max-width: 720px;
  margin-bottom: var(--s-8);
}

.section-head--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.section-head--center .eyebrow::before {
  display: none;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bone);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: var(--tap);
  padding: var(--s-3) var(--s-6);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--accent {
  --btn-bg: var(--accent);
  --btn-fg: var(--white);
  --btn-bd: var(--accent);
}

.btn--accent:hover {
  --btn-bg: var(--accent-deep);
  --btn-bd: var(--accent-deep);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
}

.btn--ghost:hover {
  --btn-bd: var(--ink);
}

.btn--light {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  --btn-bd: rgba(250, 247, 242, 0.35);
}

.btn--light:hover {
  --btn-bg: var(--bone);
  --btn-fg: var(--ink);
  --btn-bd: var(--bone);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

@media (max-width: 419px) {
  /* On the smallest phones stack CTAs full-width rather than let them squeeze */
  .btn-row .btn {
    width: 100%;
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--tap);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}

.link-arrow::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--tap);
  line-height: 1.15;
  flex: none;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand__sub {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav {
  display: none;
}

@media (min-width: 1000px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--s-6);
  }
  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    font-size: var(--t-sm);
    color: var(--ink-soft);
    padding-block: var(--s-2);
    border-bottom: 1px solid transparent;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  }
  .nav a:hover {
    color: var(--ink);
    border-bottom-color: var(--accent);
  }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.header__phone {
  display: none;
}

@media (min-width: 1000px) {
  .header__phone {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    min-height: var(--tap);
    font-size: var(--t-sm);
    font-weight: 500;
    color: var(--ink);
  }
}

.header .btn {
  display: none;
}

@media (min-width: 700px) {
  .header .btn {
    display: inline-flex;
  }
}

/* Burger */
.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  margin-right: calc(var(--s-3) * -1);
  background: none;
  border: 0;
  cursor: pointer;
}

@media (min-width: 1000px) {
  .burger {
    display: none;
  }
}

.burger span {
  position: relative;
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: background 0.2s var(--ease);
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.burger span::before {
  top: -7px;
}
.burger span::after {
  top: 7px;
}

.burger[aria-expanded="true"] span {
  background: transparent;
}

.burger[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: var(--s-6) var(--gutter) var(--s-8);
  background: var(--bone);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 1000px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-nav__foot {
  margin-top: var(--s-7);
  display: grid;
  gap: var(--s-3);
}

.mobile-nav__foot a {
  min-height: var(--tap);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  border: 0;
}

body.nav-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(88vh, 780px);
  padding-block: var(--s-9);
  background: var(--sand);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Two-stop scrim: keeps the left-hand text legible without greying the photo */
  background: linear-gradient(
      100deg,
      rgba(24, 20, 17, 0.82) 0%,
      rgba(24, 20, 17, 0.62) 38%,
      rgba(24, 20, 17, 0.18) 68%,
      rgba(24, 20, 17, 0.05) 100%
    );
}

@media (max-width: 767px) {
  .hero__media::after {
    background: linear-gradient(
      180deg,
      rgba(24, 20, 17, 0.55) 0%,
      rgba(24, 20, 17, 0.72) 45%,
      rgba(24, 20, 17, 0.88) 100%
    );
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  color: var(--bone);
}

.hero__content {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.hero .eyebrow {
  color: #e0b49a;
}

.hero h1 {
  font-size: var(--t-4xl);
  color: var(--white);
}

.hero__lede {
  font-size: var(--t-lg);
  color: rgba(250, 247, 242, 0.88);
  max-width: 52ch;
}

.hero .btn-row {
  margin-top: var(--s-2);
}

.hero__proof {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-width: 860px;
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(250, 247, 242, 0.2);
  font-size: var(--t-sm);
  color: rgba(250, 247, 242, 0.82);
}

/* From 620px up the three proofs fit on one row */
@media (min-width: 620px) {
  .hero__proof {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--s-3) var(--s-7);
  }
}

.hero__proof li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.hero__proof svg {
  flex: none;
  color: #e0b49a;
}

/* --------------------------------------------------------------------------
   8. Trust bar
   -------------------------------------------------------------------------- */

.trustbar {
  background: var(--ink);
  color: var(--bone);
  padding-block: var(--s-5);
}

.trustbar ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4) var(--s-5);
  text-align: center;
}

@media (min-width: 760px) {
  .trustbar ul {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trustbar li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trustbar b {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 400;
}

.trustbar span {
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a89e93;
}

/* --------------------------------------------------------------------------
   9. Generic card grid
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  height: 100%;
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s-2);
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  flex: none;
}

.card h3 {
  font-size: var(--t-lg);
  font-family: var(--font-display);
}

.card p {
  color: var(--ink-soft);
  font-size: var(--t-sm);
  line-height: 1.7;
}

/* Problem cards — quieter, on sand */
.card--plain {
  background: transparent;
  border: 0;
  padding: 0;
}

.card--outline {
  background: var(--white);
  border-color: var(--line);
}

/* --------------------------------------------------------------------------
   10. Split (image + text)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-10);
  }
  .split--reverse .split__media {
    order: 2;
  }
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand-deep);
  aspect-ratio: 4 / 3;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

/* Checklist */
.checks {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--s-3);
  align-items: start;
  font-size: var(--t-base);
  color: var(--ink-soft);
}

.checks svg {
  margin-top: 6px;
  color: var(--accent);
  flex: none;
}

.checks b {
  color: var(--ink);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   11. Process
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: var(--s-5);
  counter-reset: step;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--s-4);
  }
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  position: absolute;
  top: var(--s-4);
  left: 0;
  font-family: var(--font-display);
  font-size: var(--t-sm);
  letter-spacing: 0.1em;
  color: var(--accent);
}

.step h3 {
  margin-top: var(--s-4);
  font-size: var(--t-lg);
}

.step p {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  line-height: 1.7;
}

.section--ink .step {
  border-top-color: rgba(250, 247, 242, 0.18);
}

.section--ink .step p {
  color: #b4aaa0;
}

.section--ink .step::before {
  color: #d9a88e;
}

/* --------------------------------------------------------------------------
   12. Gallery / projects
   -------------------------------------------------------------------------- */

.projects {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 700px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .projects {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand-deep);
  aspect-ratio: 4 / 5;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project:hover img {
  transform: scale(1.04);
}

.project__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s-8) var(--s-5) var(--s-5);
  background: linear-gradient(
    to top,
    rgba(24, 20, 17, 0.85),
    rgba(24, 20, 17, 0)
  );
  color: var(--bone);
}

.project__caption h3 {
  font-size: var(--t-lg);
}

.project__caption p {
  font-size: var(--t-sm);
  color: rgba(250, 247, 242, 0.75);
  margin-top: 2px;
}

/* Fabric swatches */
.swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}

@media (min-width: 620px) {
  .swatches {
    grid-template-columns: repeat(4, 1fr);
  }
}

.swatch {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.swatch__chip {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.swatch b {
  font-size: var(--t-sm);
  font-weight: 500;
}

.swatch span {
  font-size: var(--t-xs);
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   13. Price bands
   -------------------------------------------------------------------------- */

.prices {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 800px) {
  .prices {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-7) var(--s-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.price--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  position: relative;
}

.price__tag {
  position: absolute;
  top: 0;
  right: var(--s-6);
  transform: translateY(-50%);
  padding: var(--s-1) var(--s-3);
  background: var(--accent);
  color: var(--white);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
}

.price h3 {
  font-size: var(--t-lg);
}

.price__amount {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  line-height: 1;
}

.price__amount small {
  display: block;
  margin-top: var(--s-2);
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.price ul {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-2);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-soft);
  font-size: var(--t-sm);
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   14. Testimonials
   -------------------------------------------------------------------------- */

.quotes {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 900px) {
  .quotes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quote {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-lg);
  line-height: 1.45;
}

.quote figcaption {
  font-size: var(--t-sm);
  color: var(--ink-soft);
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   15. FAQ accordion
   -------------------------------------------------------------------------- */

.faq {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  width: 100%;
  min-height: 64px;
  padding: var(--s-5) 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--t-lg);
  color: var(--ink);
}

.faq__q:hover {
  color: var(--accent);
}

.faq__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__q[aria-expanded="true"] .faq__icon::after {
  transform: rotate(0deg);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}

.faq__a > div {
  overflow: hidden;
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__a p {
  padding-bottom: var(--s-5);
  color: var(--ink-soft);
  max-width: 66ch;
}

.faq__a p + p {
  padding-top: var(--s-3);
}

/* --------------------------------------------------------------------------
   16. CTA + form
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
}

.cta__grid {
  display: grid;
  gap: var(--s-8);
}

@media (min-width: 950px) {
  .cta__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: var(--s-10);
    align-items: start;
  }
}

.cta h2 {
  color: var(--white);
}

.cta__contact {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(250, 247, 242, 0.18);
}

.cta__contact a,
.cta__contact p {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--t-base);
  color: rgba(250, 247, 242, 0.85);
}

.cta__contact a {
  min-height: var(--tap);
  align-items: center;
}

.cta__contact a:hover {
  color: var(--white);
}

.cta__contact svg {
  flex: none;
  margin-top: 3px;
  color: #d9a88e;
}

.form {
  padding: var(--s-7);
  background: var(--bone);
  color: var(--ink);
  border-radius: var(--radius-lg);
}

@media (max-width: 560px) {
  .form {
    padding: var(--s-6) var(--s-5);
  }
}

.form__grid {
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 560px) {
  .form__grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.field label {
  font-size: var(--t-sm);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  min-height: var(--tap);
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px; /* 16px minimum stops iOS Safari zooming on focus */
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.field__hint {
  font-size: var(--t-xs);
  color: var(--ink-faint);
}

.consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--s-3);
  align-items: start;
  min-height: var(--tap);
  padding-block: var(--s-1);
  font-size: var(--t-sm);
  color: var(--ink-soft);
  cursor: pointer;
}

.consent input {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--sand);
  padding-block: var(--s-9) var(--s-6);
  font-size: var(--t-sm);
}

.footer__grid {
  display: grid;
  gap: var(--s-7);
}

@media (min-width: 700px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

.footer h4 {
  margin-bottom: var(--s-4);
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer ul {
  display: grid;
  gap: var(--s-1);
}

.footer li a,
.footer address a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.footer li a:hover,
.footer address a:hover {
  color: var(--accent);
}

.footer address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.9;
}

@media (pointer: fine) and (min-width: 700px) {
  /* Tighten the footer lists where the pointer is precise */
  .footer li a,
  .footer address a {
    min-height: 36px;
  }
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: var(--t-xs);
}

.footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
}

.footer__sisters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
  font-size: var(--t-xs);
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   18. Sticky mobile action bar
   -------------------------------------------------------------------------- */

.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom));
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.3s var(--ease);
}

.actionbar.is-visible {
  transform: translateY(0);
}

@media (min-width: 700px) {
  .actionbar {
    display: none;
  }
}

.actionbar .btn {
  padding-inline: var(--s-3);
  font-size: var(--t-xs);
}

/* Keep the last section clear of the fixed bar on mobile */
@media (max-width: 699px) {
  .footer {
    padding-bottom: calc(var(--s-9) + 40px);
  }
}

/* --------------------------------------------------------------------------
   19. Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   20. Utilities
   -------------------------------------------------------------------------- */

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

.center {
  text-align: center;
}

.mt-6 {
  margin-top: var(--s-6);
}
.mt-7 {
  margin-top: var(--s-7);
}
.mt-8 {
  margin-top: var(--s-8);
}
