/* ==========================================================================
   Tova Designs — site styles
   ========================================================================== */

/* Safira March is a licensed font. Put your web-licensed files in /fonts
   with these names and they'll load automatically. Until then, Italiana
   (Google Fonts) is used as a stand-in. */
@font-face {
  font-family: "Safira March";
  src: url("../fonts/SafiraMarch.woff2") format("woff2"),
       url("../fonts/SafiraMarch.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #FBF8F2;
  --vanilla: #F6EEDF;
  --sand: #D9C6A5;
  --bay: #DCE7EC;
  --bay-line: #A9BFC8;
  --bay-ink: #4E5F67;
  --mist: #E6E4DF;
  --driftwood: #7A6343;
  --ink: #2F3A40;
  --muted: #5E676B;
  --line: #E3DCCF;

  --serif: "Safira March", "Italiana", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
  /* Body text weight: 300 (Light) reads best. Change to 100 for Montserrat Thin. */
  --body-weight: 300;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 9vw, 128px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: var(--body-weight);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--ink); }
a:hover { color: var(--driftwood); }

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

p { margin: 0; }

h1, h2, h3 { margin: 0; font-weight: 400; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--cream);
  padding: 10px 16px; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--cream); }

/* ---------- Layout helpers ---------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section); padding-bottom: var(--section); }
.section--flush-top { padding-top: 0; }
.section--vanilla { background: var(--vanilla); }
.section--bay { background: var(--bay); }

.stack { display: flex; flex-direction: column; gap: 22px; }
.stack--lg { gap: 48px; }
.stack--sm { gap: 12px; }

.split-head {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-end;
  gap: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr));
  gap: var(--gap, 32px);
}

/* ---------- Type ---------- */

.eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--driftwood);
}
.section--bay .eyebrow { color: var(--bay-ink); }

.display {
  font-family: var(--serif);
  font-size: clamp(48px, 7.6vw, 112px);
  line-height: 1;
  letter-spacing: 0.005em;
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.05;
}

.h3 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.15;
}

.statement {
  font-family: var(--serif);
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.3;
}

.lead { font-size: 19px; max-width: 600px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

.caps {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.center { text-align: center; align-items: center; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 34px;
  background: var(--ink); color: var(--cream);
  border: 1px solid var(--ink);
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--sm { min-height: 48px; padding: 0 28px; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn[disabled] { opacity: .6; cursor: progress; }

.text-link {
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase;
  text-underline-offset: 8px;
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.center .actions { justify-content: center; }

/* ---------- Header ---------- */

.topbar {
  background: var(--vanilla);
  text-align: center;
  padding: 10px 16px;
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted);
}

.site-header { border-bottom: 1px solid var(--line); background: var(--cream); }

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 24px;
  padding-top: 22px; padding-bottom: 22px;
}

.nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.nav a {
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; padding: 12px 0;
  border-bottom: 1px solid transparent;
}
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.logo {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none; color: var(--ink);
}
.logo__word {
  font-family: var(--serif);
  font-size: 36px; line-height: 1;
  letter-spacing: 0.26em; margin-right: -0.26em;
}
.logo__sub {
  font-size: 8px; font-weight: 400;
  letter-spacing: 0.7em; margin-right: -0.7em;
}

.site-header__cta { display: flex; justify-content: flex-end; }

.nav-toggle {
  display: none;
  justify-self: end;
  min-height: 44px; padding: 0 16px;
  background: transparent; border: 1px solid var(--ink); color: var(--ink);
  font-family: var(--sans); font-size: 11px; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer;
}

@media (max-width: 900px) {
  .site-header__inner { grid-template-columns: 1fr auto; }
  .logo { order: -1; align-items: flex-start; }
  .logo__word { font-size: 30px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav, .site-header__cta { display: none; grid-column: 1 / -1; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; gap: 0;
    border-top: 1px solid var(--line); padding-top: 8px;
  }
  .site-header.is-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-header.is-open .site-header__cta { display: flex; justify-content: flex-start; padding-bottom: 8px; }
}

/* ---------- Images ---------- */

.photo { width: 100%; object-fit: cover; }
.photo--hero { height: clamp(360px, 46vw, 620px); }
.photo--tall { height: 420px; }
.photo--strip { height: 380px; }

.figure { position: relative; margin: 0; }
.figure__caption {
  position: absolute; left: 24px; bottom: 22px;
  font-size: 11px; font-weight: 400; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--cream);
}

.mosaic { --min: 300px; --gap: 12px; }
.mosaic__text {
  height: 420px; background: var(--mist);
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 40px; text-align: right;
  font-size: 22px; font-weight: 300; letter-spacing: 0.32em; line-height: 1.6;
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: 48px; }
.hero .display { max-width: 1040px; }

/* ---------- Intro row ---------- */

.intro { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.intro__label { flex: 1 1 220px; padding-top: 14px; }
.intro__body { flex: 3 1 min(100%, 560px); }

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border-top: 1px solid var(--sand);
}
.service { padding: 40px 36px 24px; display: flex; flex-direction: column; gap: 16px; }
.service + .service { border-left: 1px solid var(--line); }
.service:first-child { padding-left: 0; }
.service:last-child { padding-right: 0; }
.service__num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--driftwood); }
.service__title { font-size: 14px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }
.service__tags { font-size: 13px; letter-spacing: 0.08em; color: var(--muted); line-height: 2.1; }

@media (max-width: 700px) {
  .service { padding: 32px 0 16px; }
  .service + .service { border-left: none; border-top: 1px solid var(--line); }
}

/* ---------- Project cards ---------- */

.card { display: flex; flex-direction: column; gap: 18px; text-decoration: none; }
.card__media { position: relative; height: 460px; overflow: hidden; background: var(--mist); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__overlay-word {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 40px; letter-spacing: 0.2em; color: var(--cream);
}
.badge {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 12px; background: var(--cream);
  font-size: 10px; font-weight: 500; letter-spacing: 0.24em;
}
.card__sector { font-size: 11px; font-weight: 400; letter-spacing: 0.24em; color: var(--driftwood); }
.card__summary { font-size: 15px; color: var(--muted); }
.card[hidden] { display: none; }

/* ---------- Filters ---------- */

.filters-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  min-height: 44px; padding: 0 18px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--sand);
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.filters-count { font-size: 13px; letter-spacing: 0.12em; color: var(--muted); }

/* ---------- Feature (light & water) ---------- */

.feature { --min: 380px; --gap: 56px; align-items: center; }
.feature blockquote {
  margin: 0; font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 60px); line-height: 1.15;
}

/* ---------- People ---------- */

.portrait {
  aspect-ratio: 4 / 5; background: var(--mist);
  display: flex; align-items: flex-end; padding: 16px;
}
.portrait--sand { background: var(--sand); }
.portrait span { font-size: 10px; font-weight: 500; letter-spacing: 0.24em; color: var(--muted); }
.portrait--sand span { color: var(--ink); }
.offset { margin-top: 56px; }

/* ---------- Steps / values ---------- */

.steps { list-style: none; margin: 0; padding: 0; --min: 240px; --gap: 0 40px; }
.step { border-top: 1px solid var(--sand); padding-top: 24px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.step__num { font-size: 11px; font-weight: 400; letter-spacing: 0.3em; color: var(--driftwood); }
.step p { font-size: 16px; }

/* ---------- Tags ---------- */

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 14px; border: 1px solid var(--sand); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Full-bleed CTA over image ---------- */

.cta-photo { position: relative; overflow: hidden; }
.cta-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-photo__inner {
  position: relative;
  padding: clamp(80px, 11vw, 160px) var(--gutter);
  display: flex; justify-content: center;
}
.cta-card {
  width: 100%; max-width: 620px;
  background: rgba(251, 248, 242, 0.94);
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}

/* ---------- Contact ---------- */

.contact-details { --min: 200px; --gap: 28px; padding-top: 28px; border-top: 1px solid var(--sand); }
.contact-details .label { color: var(--driftwood); display: block; margin-bottom: 4px; }

.form-panel { background: var(--vanilla); padding: clamp(28px, 4vw, 52px); }
.form { display: flex; flex-direction: column; gap: 22px; }
.form .grid { --min: 220px; --gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 300; color: var(--ink);
  min-height: 48px; padding: 0 14px;
  border: 1px solid var(--sand); border-radius: 0;
  background: var(--cream);
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: 140px; }
.field select { padding: 0 12px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--driftwood); outline-offset: 1px; }

fieldset.field { border: none; margin: 0; padding: 0; }
fieldset.field legend { padding: 0; margin-bottom: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--sand); background: var(--cream);
  font-size: 14px; cursor: pointer;
}
.check input { accent-color: var(--ink); width: 16px; height: 16px; }

/* Honeypot field to catch spam bots — hidden from people */
.hp { position: absolute; left: -9999px; }

.form-error { color: #8A2C1F; font-size: 15px; font-weight: 400; }

.form-success {
  min-height: 520px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: 18px;
}

/* FAQ */
.faq { border-top: 1px solid var(--bay-line); }
.faq details { border-bottom: 1px solid var(--bay-line); padding: 22px 0; }
.faq summary {
  font-family: var(--serif); font-size: 26px; line-height: 1.3;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 200; font-size: 28px; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; max-width: 720px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--vanilla); }
.site-footer__inner { padding-top: 64px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 48px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo__word { font-family: var(--serif); font-size: 30px; letter-spacing: 0.24em; }
.footer-logo__sub { font-size: 9px; font-weight: 400; letter-spacing: 0.5em; padding-left: 12px; border-left: 1px solid var(--sand); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col a { text-decoration: none; }
.footer-col .label { margin-bottom: 6px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 22px; border-top: 1px solid var(--sand);
  font-size: 12px; letter-spacing: 0.08em; color: var(--muted);
}

/* ---------- Gentle reveal on scroll ---------- */

/* Only hidden when JavaScript is running, so content never disappears without it */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card__media img { transition: none; }
}
