/* ══════════════════════════════════════════════════════════
   SIMPLY HOME — SHARED DESIGN SYSTEM
   Applies to all pages. index.html also imports this.
══════════════════════════════════════════════════════════ */

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

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

:root {
  --forest:    #0D0F0A;
  --parchment: #F5F0E8;
  --gold:      #C9A96E;
  --pine:      #1C2118;
  --sage:      #8B9E88;
  --mist:      #2C3828;
  --gold-dim:  rgba(201,169,110,0.12);
  --gold-line: rgba(201,169,110,0.35);

  --display: 'Cormorant Garamond', Georgia, serif;
  --body:    'Inter', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background: var(--forest);
  color: var(--parchment);
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--body); cursor: pointer; }

/* ── TAP HIGHLIGHT ── */
* { -webkit-tap-highlight-color: rgba(0,0,0,0); }

/* ── FOCUS STYLES (keyboard navigation) ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--forest); }
::-webkit-scrollbar-thumb { background: var(--mist); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
* { scrollbar-width: thin; scrollbar-color: var(--mist) var(--forest); }

/* ── UTILITY ── */
.eyebrow {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.9125rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: lowercase;
  text-shadow: 0 1px 8px rgba(13,15,10,0.95);
}

.gold-line {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2.0625rem, 3.5625vw, 3.2625rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--parchment);
  margin-top: 0.8rem;
}

.reveal {
  opacity: 1;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: var(--forest);
  font-family: var(--body);
  font-size: 0.8425rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  -webkit-appearance: none;
}
.btn-primary:hover { background: var(--parchment); transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 2px solid var(--parchment); outline-offset: 3px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--parchment);
  font-family: var(--body);
  font-size: 0.8425rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--gold-line);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
  -webkit-appearance: none;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.btn-ghost:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.panel-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.7825rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.25s;
}
.panel-arrow:hover { gap: 1.2rem; }

.panel-arrow-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s;
}
.panel-arrow:hover .panel-arrow-line { width: 48px; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 1.4rem 4vw;
  transition: background 0.4s, padding 0.4s;
}
nav.scrolled {
  background: rgba(13,15,10,0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 1rem 4vw;
  border-bottom: 1px solid var(--gold-line);
}
.nav-logo {
  font-family: var(--display);
  font-size: 1.4625rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--parchment);
  white-space: nowrap;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--parchment); }

.nav-cta {
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--gold-line);
  color: var(--gold) !important;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--gold); color: var(--forest) !important; border-color: var(--gold); }

.nav-hamburger {
  display: none;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  margin: -8px;
  min-width: 44px;
  min-height: 44px;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--parchment);
  transition: all 0.3s;
  pointer-events: none;
}

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,15,10,0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 99;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: -webkit-flex; display: flex; }
.mobile-menu a {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--parchment);
  transition: color 0.2s;
  padding: 0.25rem 0;
  min-height: 44px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 4vw;
  background: none;
  border: none;
  color: var(--sage);
  font-size: 1.5625rem;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}

/* ── PAGE HERO (interior pages) ── */
.page-hero {
  position: relative;
  padding: 14rem 4vw 7rem;
  overflow: clip;
  background: var(--pine);
  border-bottom: 1px solid var(--gold-line);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  -webkit-filter: grayscale(15%);
  filter: grayscale(15%);
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,15,10,0.55) 0%,
    rgba(13,15,10,0.45) 40%,
    rgba(13,15,10,0.65) 75%,
    rgba(13,15,10,0.92) 100%
  );
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8625rem, 6.0625vw, 5.5625rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--parchment);
  margin: 0.8rem 0 1.4rem;
  text-shadow: 0 2px 24px rgba(13,15,10,0.9), 0 1px 4px rgba(13,15,10,0.7);
}
.page-hero p {
  font-size: 1.0625rem;
  color: var(--sage);
  line-height: 1.8;
  max-width: 520px;
  text-shadow: 0 1px 8px rgba(13,15,10,0.95);
}
.page-hero-divider { margin: 1.4rem 0; max-width: 180px; }

/* ── FOOTER ── */
footer {
  background: var(--pine);
  border-top: 1px solid var(--gold-line);
  padding: 5rem 4vw 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4vw;
  margin-bottom: 4rem;
}
.footer-brand .nav-logo { font-size: 1.6625rem; margin-bottom: 1rem; display: block; }
.footer-tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.9625rem;
  color: var(--sage);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.6rem;
}
.footer-contact { font-size: 0.8625rem; color: var(--sage); line-height: 2; }
.footer-contact a:hover { color: var(--gold); }
.footer-col-title {
  font-family: var(--display);
  font-size: 0.8625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--parchment);
  margin-bottom: 1.2rem;
}
.footer-links { list-style: none; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; gap: 0.7rem; }
.footer-links a { font-size: 0.8825rem; color: var(--sage); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--gold-line);
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.7825rem; letter-spacing: 0.1em; color: var(--sage); }
.footer-legal { display: -webkit-flex; display: flex; gap: 1.6rem; }
.footer-legal a { font-size: 0.7825rem; letter-spacing: 0.1em; color: var(--sage); transition: color 0.2s; }
.footer-legal a:hover { color: var(--gold); }

/* ── FORM CONTROLS (shared) ── */
.form-label {
  display: block;
  font-size: 0.7625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--forest);
  border: 1px solid var(--gold-line);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 0.9625rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.form-control:focus { border-color: var(--gold); }
.form-control option { background: var(--forest); color: var(--parchment); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: -webkit-flex; display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 10rem 5vw 4rem; }
  .page-hero h1 { font-size: clamp(2.2625rem, 10.0625vw, 3.0625rem); }
}

/* ── ACCESSIBILITY ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── SKIP TO CONTENT (ACCESSIBILITY) ── */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 9999;
  background: var(--gold);
  color: var(--forest);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}
