/* ============================================================
   BASE — shared across all pages
   retold. | css/base.css
   ============================================================ */

/* ── RESET & ROOT ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #F2EDE3;
  --cream:     #FAF7F1;
  --beige:     #E8E0CF;
  --dark:      #222B22;
  --forest:    #2E3D2F;
  --green-mid: #4A6450;
  --sage:      #7A9B7E;
  --sage-lt:   #A8C4AB;
  --text:      #252018;
  --muted:     #7A7060;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 2px; }

/* ── TYPOGRAPHY HELPERS ───────────────────────────────────── */
.eyebrow-text {
  font-size: 9px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--sage); font-weight: 400;
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.eyebrow-text::before,
.eyebrow-text::after {
  content: ''; width: 22px; height: 1px;
  background: var(--sage); opacity: .55;
}

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: var(--dark);
  border-bottom: 1px solid rgba(168,196,171,.12);
}
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  text-decoration: none; color: rgba(242,237,227,.4); transition: color .2s;
}
.nav-links a:hover { color: var(--sage-lt); }
.nav-cta {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  padding: 8px 20px; background: transparent;
  border: 1px solid rgba(122,155,126,.4); color: var(--sage-lt);
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all .2s;
}
.nav-cta:hover { background: var(--green-mid); border-color: var(--green-mid); color: #fff; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: rgba(242,237,227,.6);
}
.nav-drawer {
  display: none; position: fixed; top: 60px; left: 0; right: 0;
  background: var(--dark); border-bottom: 1px solid rgba(168,196,171,.1);
  flex-direction: column; padding: 24px 40px; gap: 20px; z-index: 199;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  text-decoration: none; color: rgba(242,237,227,.5); transition: color .2s;
}
.nav-drawer a:hover { color: var(--sage-lt); }

/* ── A3 WOODEN FRAME SYSTEM ───────────────────────────────── */
/* A3 portrait ratio = 297 × 420 mm                           */
.a3 { width: 100%; position: relative; }

.wood {
  padding: 15px; position: relative;
  background:
    repeating-linear-gradient(
      90deg, transparent 0, transparent 5px,
      rgba(0,0,0,.025) 5px, rgba(0,0,0,.025) 10px
    ),
    linear-gradient(148deg,
      #5A2808 0%, #844010 10%, #663010 22%,
      #9A5018 36%, #5A2A08 50%, #7A3C10 64%,
      #622E08 78%, #7A3A10 100%
    );
  box-shadow:
    0 2px 0 1px #381604, 0 -2px 0 1px #381604,
    2px 0 0 1px #381604, -2px 0 0 1px #381604,
    inset 0 2px 8px rgba(0,0,0,.4),
    inset 0 -2px 8px rgba(0,0,0,.4),
    0 18px 48px rgba(0,0,0,.22),
    0 6px 18px rgba(0,0,0,.14);
  transition: box-shadow .4s ease, transform .4s ease;
}
.wood::before, .wood::after {
  content: ''; position: absolute;
  width: 18px; height: 18px; z-index: 2;
  border: 1px solid rgba(255,255,255,.1);
}
.wood::before { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.wood::after  { bottom: 6px; right: 6px; border-left: none; border-top: none; }

.mat {
  padding: 10px; background: #EEE8DA;
  box-shadow: inset 0 0 14px rgba(0,0,0,.09);
}

.canvas {
  aspect-ratio: 297 / 420;
  width: 100%; display: block;
  background: #F5F1E8; overflow: hidden;
}
.canvas img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-green {
  padding: 12px 28px; background: var(--green-mid); color: var(--cream);
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  font-family: 'DM Sans', sans-serif; border: none; cursor: pointer;
  text-decoration: none; display: inline-block; transition: background .2s;
}
.btn-green:hover { background: var(--sage); }

.btn-ghost {
  padding: 12px 28px; background: transparent; color: rgba(242,237,227,.5);
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid rgba(242,237,227,.15); cursor: pointer;
  text-decoration: none; display: inline-block; transition: all .2s;
}
.btn-ghost:hover { border-color: var(--sage); color: var(--sage-lt); }

.btn-outline {
  padding: 10px 24px; background: transparent; color: var(--dark);
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid rgba(37,32,24,.2); cursor: pointer;
  text-decoration: none; display: inline-block; transition: all .2s;
}
.btn-outline:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }

.btn-sage {
  padding: 12px 28px; background: var(--sage); color: #fff;
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  font-family: 'DM Sans', sans-serif; border: none; cursor: pointer;
  text-decoration: none; display: inline-block; transition: background .2s;
  align-self: flex-start;
}
.btn-sage:hover { background: var(--green-mid); }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--dark);
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  border-top: 1px solid rgba(122,155,126,.1);
}
.f-col { padding: 48px 40px; border-right: 1px solid rgba(122,155,126,.08); }
.f-col:last-child { border-right: none; }
.f-logo img { height: 48px; margin-bottom: 18px; }
.f-tag {
  font-size: 12px; color: rgba(242,237,227,.28);
  line-height: 1.85; max-width: 250px; font-weight: 300;
}
.f-col-title {
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--sage); margin-bottom: 18px;
}
.f-links { list-style: none; }
.f-links li { margin-bottom: 10px; }
.f-links a {
  font-size: 13px; color: rgba(242,237,227,.3);
  text-decoration: none; transition: color .2s; font-weight: 300;
}
.f-links a:hover { color: var(--sage-lt); }
.f-bottom {
  background: var(--dark); padding: 14px 40px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(122,155,126,.08);
}
.f-copy { font-size: 10px; color: rgba(242,237,227,.18); letter-spacing: 1px; }
.f-social { display: flex; gap: 18px; }
.soc {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(242,237,227,.18); text-decoration: none; transition: color .2s;
}
.soc:hover { color: var(--sage); }

/* ── REVEAL ANIMATION ─────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ── ENQUIRY MODAL ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(34,43,34,.78);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--cream); max-width: 440px; width: 100%;
  padding: 48px; position: relative;
  transform: translateY(20px); transition: transform .3s ease;
}
.modal-overlay.open .modal-box { transform: none; }

.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--muted); transition: color .2s;
}
.modal-close:hover { color: var(--dark); }

.modal-eyebrow {
  font-size: 9px; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--sage); margin-bottom: 8px;
}
.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px; font-weight: 300; color: var(--dark);
  line-height: 1.1; margin-bottom: 24px;
}
.modal-rule { height: 1px; background: var(--beige); margin-bottom: 28px; }

.modal-field { margin-bottom: 18px; }
.modal-field label {
  display: block; font-size: 9px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.modal-field input {
  width: 100%; padding: 11px 14px;
  background: var(--bg); border: 1px solid rgba(74,100,80,.2);
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 13px; outline: none; transition: border-color .2s;
}
.modal-field input:focus { border-color: var(--sage); }

.modal-submit {
  width: 100%; padding: 13px; margin-top: 8px;
  background: var(--green-mid); border: none;
  color: #fff; font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  font-family: 'DM Sans', sans-serif; cursor: pointer; transition: background .2s;
}
.modal-submit:hover { background: var(--forest); }

.modal-confirm { display: none; text-align: center; padding: 20px 0 8px; }
.confirm-icon { font-size: 24px; color: var(--sage); margin-bottom: 16px; }
.confirm-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 300; color: var(--dark); margin-bottom: 10px;
}
.confirm-body { font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.8; }

/* ── MOBILE — shared ──────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  footer { grid-template-columns: 1fr; }
  .f-col { border-right: none; border-bottom: 1px solid rgba(122,155,126,.08); padding: 36px 24px; }
  .f-col:last-child { border-bottom: none; }
  .f-bottom { padding: 14px 24px; flex-direction: column; gap: 8px; text-align: center; }
}
