/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.drag-scroll { cursor: grab; }
.drag-scroll.is-dragging { cursor: grabbing; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: #707070;
  background: #F3EFE3;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --gold-1:    #C47641;
  --gold-2:    #DAB383;
  --gold-3:    #E4D0AC;
  --gold-4:    #F3EFE3;
  --brown:     #603A17;
  --brown-btn: #833C0B;
  --gray:      #707070;
  --white:     #FFFFFF;
  --font-h: 'Fahkwang', serif;
  --font-b: 'DM Sans', sans-serif;
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 3px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
#site-header.scrolled {
  background: rgba(243, 239, 227, 0.94);
  border-bottom-color: var(--gold-3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 160px;
  max-width: 1440px;
  margin: 0 auto;
}
.logo-img { height: 44px; width: auto; object-fit: contain; }

/* ── Dark fixed veil behind the transparent header — lifts nav readability over images ── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 110px;
  background: linear-gradient(to bottom, rgba(20,10,3,0.52) 0%, transparent 100%);
  pointer-events: none;
  z-index: 99;
  transition: opacity 0.35s ease;
}

/* ── Desktop nav — right-aligned to mirror logo padding ── */
.main-nav {
  position: fixed;
  top: 0; right: 160px;
  left: auto; transform: none;
  height: 94px;
  display: flex;
  align-items: center;
  z-index: 101;
  pointer-events: auto;
}
.main-nav a {
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 22px;
  color: var(--gold-3);
  text-shadow: 0 1px 6px rgba(20,10,3,0.50);
  padding: 1px 24px;
  transition: color 0.2s, text-shadow 0.2s;
}
.main-nav a:hover { color: var(--white); }
.main-nav a.active {
  color: var(--white);
  border: 1px solid var(--white);
  border-radius: 100px;
  padding: 5px 22px;
}

/* Scrolled state — header is cream, revert nav to dark gold/brown */
body.header-scrolled::before { opacity: 0; }
body.header-scrolled .main-nav a { color: var(--gold-1); text-shadow: none; }
body.header-scrolled .main-nav a:hover { color: var(--brown); }
body.header-scrolled .main-nav a.active { color: var(--brown); border-color: var(--brown); }

/* ── Nav backdrop ── */
.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 98; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease; cursor: pointer;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

/* ── Nav close button ── */
.nav-close {
  display: none; position: absolute;
  top: 18px; right: 24px;
  width: 44px; height: 44px;
  background: none; border: none;
  font-size: 36px; line-height: 1;
  color: var(--brown); cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}

/* ── Hamburger toggle ── */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: space-between;
  width: 28px; height: 20px;
  background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--gold-1); border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   SHARED BUTTONS
═══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 40px; height: 48px;
  background: var(--gold-3); border-radius: 24px;
  font-family: var(--font-h); font-size: 16px; font-weight: 400;
  letter-spacing: 0.1em; color: var(--brown-btn);
  transition: background 0.25s, color 0.25s; cursor: pointer; border: none;
}
.btn-primary:hover { background: var(--gold-2); color: var(--white); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
#footer { background: var(--gold-2); padding: 48px 0; }
.footer-inner {
  max-width: 1030px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 40px; padding: 0 20px;
}
.contact-header { display: flex; flex-direction: column; gap: 10px; }
.contact-title {
  font-family: var(--font-h); font-size: 20px; font-weight: 400;
  line-height: 28px; letter-spacing: 0.1em; color: var(--white);
}
.contact-header p {
  font-family: var(--font-b); font-size: 14px; font-weight: 300;
  line-height: 20px; letter-spacing: 0.24em; color: var(--white);
}
.contact-form-row {
  display: flex; align-items: flex-start; gap: 32px; flex-wrap: wrap;
}
.form-inputs-col { display: flex; flex-direction: column; gap: 16px; flex: 0 0 248px; }
.form-input {
  width: 100%; height: 34px; padding: 0 16px;
  border-radius: 34px; border: 0.5px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.22);
  font-family: var(--font-b); font-size: 14px; font-weight: 300;
  letter-spacing: 0.24em; color: var(--white); outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-input::placeholder { color: rgba(255,255,255,0.65); }
.form-input:focus { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.30); }
.form-textarea {
  flex: 1; min-width: 260px; max-width: 470px; height: 102px; padding: 10px 16px;
  border-radius: 16px; border: 0.5px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.22);
  font-family: var(--font-b); font-size: 14px; font-weight: 300;
  letter-spacing: 0.24em; color: var(--white); outline: none; resize: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-textarea::placeholder { color: rgba(255,255,255,0.65); }
.form-textarea:focus { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.30); }
.btn-submit {
  align-self: flex-end; width: 120px; height: 48px;
  border: none; border-radius: 24px; background: var(--gold-3);
  font-family: var(--font-h); font-size: 16px; font-weight: 400;
  letter-spacing: 0.1em; color: var(--brown-btn); cursor: pointer;
  transition: background 0.25s, color 0.25s; white-space: nowrap;
}
.btn-submit:hover { background: var(--white); color: var(--brown); }
.footer-bottom {
  display: flex; flex-direction: row; justify-content: space-between;
  align-items: flex-start; gap: 24px;
}
.footer-info {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-b); font-size: 13px; font-weight: 300;
  letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.75);
}
.footer-info-label { color: var(--white); font-weight: 400; }
.footer-info-label::after { content: ':  '; }
.footer-info a { color: rgba(255, 255, 255, 0.75); text-decoration: none; transition: color 0.2s; }
.footer-info a:hover { color: var(--white); }
.footer-right { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-nav { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-nav a {
  font-family: var(--font-h); font-size: 16px; font-weight: 400;
  letter-spacing: 0.1em; line-height: 22px; color: var(--white); transition: opacity 0.2s;
}
.footer-nav a:hover { opacity: 0.70; }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.footer-legal a {
  font-family: var(--font-b); font-size: 14px; font-weight: 300;
  letter-spacing: 0.18em; color: rgba(255,255,255,0.80);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.40);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.footer-legal a:hover { color: var(--white); text-decoration-color: rgba(255,255,255,0.90); }
.copyright {
  font-family: var(--font-b); font-size: 12px; font-weight: 300;
  line-height: 18px; letter-spacing: 0.14em; color: rgba(255,255,255,0.65);
}

/* ═══════════════════════════════════════════
   SCROLL-REVEAL
═══════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   RESPONSIVE — SHARED
═══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .header-inner { padding: 22px 80px; }
  .main-nav { right: 80px; height: 88px; }
}
@media (max-width: 1060px) {
  .header-inner { padding: 20px 48px; }
  .main-nav { right: 48px; }
  .main-nav a { padding: 1px 14px; font-size: 14px; }
}
@media (max-width: 960px) {
  .contact-form-row { flex-direction: column; }
  .form-inputs-col { flex: none; width: 100%; }
  .form-textarea { width: 100%; max-width: 100%; }
  .btn-submit { align-self: flex-start; }
  body::before { display: none; }
  .header-inner { padding: 18px 28px; }
  #site-header {
    background: rgba(243,239,227,0.96);
    border-bottom-color: var(--gold-3);
  }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    transform: none; height: auto;
    background: #F3EFE3;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 40px; z-index: 99; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .main-nav.open { opacity: 1; pointer-events: auto; z-index: 102; }
  .nav-close { display: flex; }
  .main-nav a {
    font-family: var(--font-h); font-size: 22px; padding: 10px 0;
    letter-spacing: 0.2em; color: var(--brown); text-shadow: none;
    border-bottom: 1px solid rgba(96,58,23,0.15);
    width: 220px; text-align: center; transition: color 0.2s;
  }
  .main-nav a:hover { color: var(--gold-1); }
  .main-nav a.active {
    border: none;
    border-bottom: 1px solid rgba(96,58,23,0.15);
    border-radius: 0;
    padding: 10px 0;
  }
  .footer-inner { padding: 0 24px; gap: 32px; }
  .footer-nav { gap: 20px; }
  .footer-legal { gap: 14px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .footer-right { align-items: flex-start; }
  .footer-legal { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .header-inner { padding: 14px 20px; }
  .logo-img { height: 36px; }
  .footer-inner { padding: 0 20px; }
  .footer-nav { gap: 14px; flex-wrap: wrap; }
  .footer-nav a { font-size: 14px; }
  .footer-legal { gap: 12px; }
  .footer-legal a { font-size: 12px; }
  .copyright { font-size: 11px; letter-spacing: 0.1em; }
}
