/* Dafis Gold — static build stylesheet
   Palette: unbleached ledger paper, cypress green, assay brass
   Type: GFS Didot (display) + Manrope (text)                          */

:root {
  --paper: #f4efe3;
  --paper-2: #eae2d2;
  --paper-3: #ded4bf;
  --ink: #1b2119;
  --cypress: #24422f;
  --cypress-deep: #14231a;
  --cypress-light: #3e6b4e;
  --stone: #6b6252;
  --rule: #cfc4ae;
  --brass: #b8862e;
  --brass-light: #e3b863;
  --brass-deep: #7c5514;
  --display: "GFS Didot", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Noto Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--brass-light); color: var(--cypress-deep); }

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- typographic details ---------- */

.wrap { max-width: 1400px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (min-width: 640px) { .wrap { padding-left: 40px; padding-right: 40px; } }
@media (min-width: 1024px) { .wrap { padding-left: 56px; padding-right: 56px; } }

.smallcaps {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.4;
}

.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.015em;
  margin: 0;
}

.tnum { font-variant-numeric: tabular-nums lining-nums; }

.eyebrow { color: var(--stone); margin: 0 0 14px; }
.eyebrow--brass { color: var(--brass-deep); }
.eyebrow--light { color: var(--brass-light); }
.eyebrow--pale { color: rgba(244, 239, 227, 0.7); }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule--dark { background: rgba(244, 239, 227, 0.22); }

/* ---------- header ---------- */

.site {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(244, 239, 227, 0.9);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(10px);
  transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 14px 0;
}
.site.is-dark {
  background: rgba(20, 35, 26, 0.96);
  border-bottom-color: rgba(244, 239, 227, 0.15);
  padding: 6px 0;
  box-shadow: 0 10px 30px -24px rgba(20, 35, 26, 0.9);
}

.site__row { display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { width: 36px; height: 36px; color: var(--cypress); transition: all 0.5s ease; }
.is-dark .brand__mark { width: 28px; height: 28px; color: var(--brass-light); }
.brand__name {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.5s ease, font-size 0.5s ease;
}
.brand__sub {
  display: block;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--stone);
  transition: color 0.5s ease;
}
.is-dark .brand__name { color: var(--paper); font-size: 0.68rem; }
.is-dark .brand__sub { color: rgba(244, 239, 227, 0.55); }

.nav { display: none; margin-left: auto; align-items: center; gap: 16px; }
.nav a {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--stone);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.nav a:hover { color: var(--cypress); }
.nav a[aria-current="page"] { color: var(--brass-deep); }
.is-dark .nav a { color: rgba(244, 239, 227, 0.65); }
.is-dark .nav a:hover,
.is-dark .nav a[aria-current="page"] { color: var(--brass-light); }

.langs { display: none; position: relative; margin-left: 16px; }
.langs__btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  background: var(--paper-2);
  color: var(--ink);
  border: 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: inherit;
  font-size: 0.6rem;
  font-weight: 800;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.langs__btn:hover { background: var(--paper-3); color: var(--cypress); }
.is-dark .langs__btn { background: rgba(244, 239, 227, 0.14); color: var(--paper); }
.is-dark .langs__btn:hover { background: rgba(244, 239, 227, 0.24); }
.langs__chev { transition: transform 0.25s ease; }
.langs.is-open .langs__chev { transform: rotate(180deg); }
.langs__menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 172px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--cypress-deep);
  border: 1px solid rgba(244, 239, 227, 0.18);
  box-shadow: 0 18px 40px -22px rgba(20, 35, 26, 0.6);
}
.langs.is-open .langs__menu { display: block; }
.langs__menu a {
  display: block;
  padding: 9px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(244, 239, 227, 0.82);
  background: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.langs__menu a:hover { color: var(--brass-light); background: rgba(244, 239, 227, 0.08); }
.langs__menu a.is-on { color: var(--brass-light); background: rgba(227, 184, 99, 0.14); }

.cta-tel {
  display: none;
  margin-left: 8px;
  padding: 10px 16px;
  background: var(--cypress);
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.6rem;
  font-weight: 700;
  transition: background-color 0.3s ease;
}
.cta-tel:hover { background: var(--brass-deep); }
.is-dark .cta-tel { background: var(--brass); color: var(--cypress-deep); }
.is-dark .cta-tel:hover { background: var(--brass-light); }

.burger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px 0 8px 12px;
  cursor: pointer;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--cypress); transition: background-color 0.4s ease; }
.burger span:nth-child(2) { width: 16px; }
.is-dark .burger span { background: var(--paper); }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .langs { display: block; }
  .burger { display: none; }
}
@media (min-width: 1280px) { .cta-tel { display: inline-block; } }

/* ---------- fullscreen menu ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--cypress-deep);
  color: var(--paper);
  display: none;
  flex-direction: column;
}
.overlay.is-open { display: flex; }
.overlay__top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(244, 239, 227, 0.15); }
.overlay__close { background: none; border: 0; color: rgba(244, 239, 227, 0.75); cursor: pointer; letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.68rem; font-weight: 700; }
.overlay__nav { flex: 1; overflow-y: auto; padding: 24px 20px; }
.overlay__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(244, 239, 227, 0.15);
}
.overlay__nav a .n { color: rgba(227, 184, 99, 0.75); }
.overlay__nav a .t { font-family: var(--display); font-size: 2.1rem; line-height: 1; }
.overlay__nav a:hover .t { color: var(--brass-light); }
.overlay__langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.overlay__langs a { padding: 10px 16px; background: rgba(244, 239, 227, 0.1); color: rgba(244, 239, 227, 0.8); border: 0; }
.overlay__langs a.is-on { background: var(--brass); color: var(--cypress-deep); }
.overlay__foot { padding: 20px; border-top: 1px solid rgba(244, 239, 227, 0.15); }
.overlay__foot a.tel { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--brass-light); }

/* ---------- hero ---------- */

.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 80svh; padding-top: 112px; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; filter: saturate(0.82) contrast(1.02); z-index: -2; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(244,239,227,0.96) 0%, rgba(244,239,227,0.88) 46%, rgba(244,239,227,0.64) 100%);
}
@media (min-width: 768px) {
  .hero__scrim { background: linear-gradient(96deg, rgba(244,239,227,0.985) 0%, rgba(244,239,227,0.94) 40%, rgba(244,239,227,0.55) 66%, rgba(244,239,227,0.05) 100%); }
}
.hero h1 { font-family: var(--display); font-weight: 400; margin: 24px 0 0; font-size: clamp(2.5rem, 8.4vw, 7.6rem); line-height: 0.88; letter-spacing: -0.015em; color: var(--cypress); }
.hero h1 .brass { color: var(--brass-deep); display: block; }
.hero h1 span { display: block; }
.hero__lede { max-width: 34rem; font-size: 1.05rem; line-height: 1.7; color: rgba(27, 33, 25, 0.8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 16px 24px;
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.68rem; font-weight: 700;
  background: var(--cypress); color: var(--paper); transition: background-color 0.3s ease, color 0.3s ease;
}
.btn:hover { background: var(--brass-deep); }
.btn--ghost { background: none; color: var(--cypress); border: 1px solid var(--cypress); }
.btn--ghost:hover { background: var(--cypress); color: var(--paper); }
.hero__grid { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 768px) { .hero__grid { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); background: rgba(244, 239, 227, 0.85); }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts > div { padding: 20px 24px; border-color: var(--rule); }
.facts > div:nth-child(2n) { border-left: 1px solid var(--rule); }
.facts > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
@media (min-width: 640px) {
  .facts > div { border-top: 0; }
  .facts > div + div { border-left: 1px solid var(--rule); }
}
.facts p { margin: 0; }
.facts .v { margin-top: 8px; font-size: 1.05rem; font-weight: 800; color: var(--cypress); }

/* ---------- generic sections ---------- */

section { position: relative; }
.band { padding: 80px 0; }
.band--paper2 { background: var(--paper-2); }
.band--dark { background: var(--cypress-deep); color: var(--paper); }
.band--green { background: var(--cypress); color: var(--paper); }

.masthead { padding: 128px 0 64px; border-bottom: 1px solid var(--rule); }
.masthead h1 { font-family: var(--display); font-weight: 400; margin: 24px 0 0; font-size: clamp(2.6rem, 7.4vw, 6.4rem); line-height: 0.9; color: var(--cypress); }
.masthead h1 span { display: block; }
.masthead .lede { margin-top: 32px; max-width: 42rem; font-size: 1.05rem; line-height: 1.75; color: rgba(27, 33, 25, 0.75); }

.statement { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.1; max-width: 60rem; margin: 0; }

.board { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .board { grid-template-columns: repeat(5, 1fr); } }
.board > div { padding: 32px 8px; border-color: rgba(244, 239, 227, 0.2); }
.board > div:nth-child(2n) { border-left: 1px solid rgba(244, 239, 227, 0.2); }
@media (min-width: 1024px) {
  .board > div { border-left: 1px solid rgba(244, 239, 227, 0.2); padding: 32px 20px; }
  .board > div:first-child { border-left: 0; }
  .board > div { border-bottom: 0; }
}
.board > div:not(:last-child) { border-bottom: 1px solid rgba(244, 239, 227, 0.2); }
@media (min-width: 1024px) { .board > div:not(:last-child) { border-bottom: 0; } }
.board .fig { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: 1; color: var(--paper); display: flex; align-items: baseline; gap: 4px; }
.board .fig em { font-style: normal; font-family: var(--sans); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.12em; color: var(--brass-light); }
.board .lbl { margin: 16px 0 0; color: rgba(244, 239, 227, 0.7); }

/* datasheet rows with dotted leaders */
.sheet { border-top: 1px solid var(--rule); }
.sheet .row { display: flex; align-items: baseline; gap: 8px; padding: 12px 0; border-bottom: 1px solid rgba(207, 196, 174, 0.6); }
.sheet .row .k { flex: none; color: rgba(27, 33, 25, 0.75); }
.sheet .row .dots { flex: 1 1 auto; height: 0.7em; border-bottom: 1px dotted var(--rule); transform: translateY(-0.18em); min-width: 24px; }
.sheet .row .v { flex: none; text-align: right; font-weight: 700; color: var(--cypress); }
.sheet .row .v.is-accent { color: var(--brass-deep); }
.sheet--dark { border-top-color: rgba(244, 239, 227, 0.25); }
.sheet--dark .row { border-bottom-color: rgba(244, 239, 227, 0.2); }
.sheet--dark .row .k { color: rgba(244, 239, 227, 0.7); }
.sheet--dark .row .v, .sheet--dark .row .v.is-accent { color: var(--brass-light); }

.split { display: grid; gap: 56px; }
@media (min-width: 1024px) { .split { grid-template-columns: repeat(12, 1fr); gap: 40px; } }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-12 { grid-column: span 12; }
@media (min-width: 1024px) { .sticky { position: sticky; top: 112px; } }

h2.head { font-family: var(--display); font-weight: 400; margin: 16px 0 0; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 0.95; color: var(--cypress); }
h3.sub { font-family: var(--display); font-weight: 400; margin: 0; font-size: 1.7rem; line-height: 1.05; color: var(--cypress); }
p.body { margin: 16px 0 0; font-size: 1rem; line-height: 1.75; color: rgba(27, 33, 25, 0.78); }
figure { margin: 0; }
figcaption { margin-top: 16px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.68rem; font-weight: 700; }
.photo { width: 100%; object-fit: cover; background: var(--paper-3); filter: saturate(0.85) contrast(1.04); }

.steps .step { display: grid; gap: 16px; padding: 28px 0; border-bottom: 1px solid rgba(244, 239, 227, 0.2); }
@media (min-width: 768px) { .steps .step { grid-template-columns: 2fr 3fr 7fr; align-items: baseline; } }
.steps .n { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--brass-light); }
.steps .t { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; font-weight: 700; }
.steps .b { margin: 0; color: rgba(244, 239, 227, 0.7); }

.cols2 { display: grid; gap: 40px; }
.cols3 { display: grid; gap: 40px; }
@media (min-width: 768px) { .cols2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .cols3 { grid-template-columns: repeat(3, 1fr); } }
.tiles { display: grid; gap: 0; }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tiles--3 { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.tiles > div { padding: 32px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) {
  .tiles > div { padding: 32px; }
  .tiles > div:nth-child(2n) { border-left: 1px solid var(--rule); }
  .tiles > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
@media (min-width: 768px) { .tiles > div:first-child { padding-left: 0; } }

.bullets { border-top: 1px solid var(--rule); }
.bullets li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); list-style: none; }
.bullets { margin: 24px 0 0; padding: 0; }
.bullets li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; background: var(--brass); }
.bullets--green li::before { background: var(--cypress); }

.callstrip { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 24px; padding: 56px 0; }
.callstrip .tel { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; color: var(--brass-light); }
.callstrip .tel:hover { color: var(--paper); }

/* ---------- footer ---------- */

.site-foot { background: var(--cypress-deep); color: var(--paper); padding: 64px 0; }
.site-foot .grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .site-foot .grid { grid-template-columns: 5fr 3fr 4fr; } }
.site-foot a:hover { color: var(--brass-light); }
.site-foot nav { display: flex; flex-direction: column; gap: 12px; }
.site-foot nav a, .site-foot .credit, .site-foot .rights { color: rgba(244, 239, 227, 0.65); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.68rem; font-weight: 700; }
.site-foot .tagline { color: rgba(244, 239, 227, 0.65); font-size: 0.9rem; max-width: 24rem; }
.site-foot .bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(244, 239, 227, 0.15); }
.site-foot .credit a { color: var(--brass-light); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(184, 134, 46, 0.5); }

.grain {
  pointer-events: none; position: fixed; inset: 0; z-index: 60; opacity: 0.2; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

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