/* ============================================================
   GFULL CABINET — theme.css
   Warm architectural minimal. Marcellus + Hanken Grotesk.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Hanken+Grotesk:wght@300;400;500;600&display=swap');

:root {
  /* Color */
  --paper:      #F7F4EF;
  --paper-2:    #EFEAE1;
  --paper-3:    #E7E1D6;
  --ink:        #1C1B18;
  --ink-soft:   #57534A;
  --ink-faint:  #908A7E;
  --line:       rgba(28, 27, 24, 0.13);
  --line-soft:  rgba(28, 27, 24, 0.07);
  --accent:     #97774F;   /* warm wood / clay */
  --accent-deep:#7C5F3C;
  --white:      #FCFAF6;

  /* Type */
  --serif: 'Marcellus', 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, sans-serif;

  /* Layout */
  --pad: clamp(20px, 5vw, 80px);
  --maxw: 1480px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Type helpers ---------- */
.serif { font-family: var(--serif); font-weight: 400; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow.muted { color: var(--ink-faint); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: -0.01em; }

.display {
  font-family: var(--serif);
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.h-xl { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 68px); line-height: 1.02; }
.h-lg { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 46px); }
.h-md { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); }

.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 300;
}
.small { font-size: 13px; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 140px); }
.divider { height: 1px; background: var(--line); width: 100%; }

/* ---------- Placeholder image ---------- */
.ph {
  position: relative;
  background-color: var(--paper-3);
  background-image:
    repeating-linear-gradient(135deg, rgba(28,27,24,0) 0, rgba(28,27,24,0) 13px, rgba(28,27,24,0.028) 13px, rgba(28,27,24,0.028) 14px);
  overflow: hidden;
  color: var(--ink-faint);
}
.ph[data-label]::after {
  content: attr(data-label);
  position: absolute;
  left: 14px; bottom: 12px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: rgba(247,244,239,0.72);
  padding: 4px 8px;
  border-radius: 2px;
  backdrop-filter: blur(2px);
}
.ph.dark { background-color: #26241F; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0) 0, rgba(255,255,255,0) 13px, rgba(255,255,255,0.035) 13px, rgba(255,255,255,0.035) 14px); }
.ph.dark[data-label]::after { color: rgba(255,255,255,0.6); background: rgba(28,27,24,0.5); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.04em;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--light { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-u {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.04em;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  transition: gap .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.link-u:hover { gap: 14px; color: var(--accent-deep); border-color: var(--accent-deep); }

/* ============================================================
   HEADER
   ============================================================ */
.announce {
  background: var(--ink);
  color: rgba(252,250,246,0.86);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 9px 16px;
}
.announce a { border-bottom: 1px solid rgba(252,250,246,0.4); padding-bottom: 1px; }

.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,244,239,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand small { font-size: 9px; letter-spacing: 0.3em; display: block; color: var(--ink-faint); margin-top: 2px; text-align: center; }
.nav-links { display: flex; gap: 30px; justify-self: start; }
.nav-links a {
  font-size: 13px; letter-spacing: 0.03em; color: var(--ink-soft);
  position: relative; padding: 4px 0;
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--ink); transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.nav-right .btn { padding: 11px 20px; }

.burger { display: none; width: 26px; height: 16px; position: relative; }
.burger span { position: absolute; left: 0; height: 1.5px; width: 100%; background: var(--ink); transition: .35s var(--ease); }
.burger span:nth-child(1){ top: 0; } .burger span:nth-child(2){ top: 7px; } .burger span:nth-child(3){ top: 14px; }
body.menu-open .burger span:nth-child(1){ top: 7px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity: 0; }
body.menu-open .burger span:nth-child(3){ top: 7px; transform: rotate(-45deg); }

/* mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--paper);
  padding: 110px var(--pad) 40px;
  transform: translateY(-100%);
  transition: transform .55s var(--ease);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
body.menu-open .mobile-menu { transform: translateY(0); }
.mobile-menu a.m-link { font-family: var(--serif); font-size: 34px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot { background: var(--ink); color: rgba(252,250,246,0.7); padding-top: clamp(60px, 8vw, 110px); }
.foot-cta { padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot-cta h2 { color: var(--paper); }
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-block: clamp(48px, 6vw, 80px);
}
.foot-grid .brand { color: var(--paper); }
.foot-col h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(252,250,246,0.45); margin-bottom: 18px; font-weight: 500; }
.foot-col a { display: block; font-size: 14px; padding: 6px 0; color: rgba(252,250,246,0.72); transition: color .3s var(--ease); }
.foot-col a:hover { color: var(--paper); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-block: 26px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: rgba(252,250,246,0.4); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .burger { display: block; justify-self: end; }
  .brand { justify-self: start; }
  .nav { justify-items: start; }
  .nav-right { justify-self: end; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
}
