/* =============================================================
   QUINTA LOCURA — Global Stylesheet
   Shared by all pages. Edit once, applies everywhere.
   ============================================================= */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --canopy:    #1B3320;
  --mossback:  #2E5935;
  --leafwork:  #4A7F52;
  --madre:     #B04E28;
  --ember:     #CD6F3E;
  --parchment: #F4EBD6;
  --bone:      #DFCEA8;
  --ochre:     #C49A56;
  --ashwood:   #7B6A52;
  --soot:      #1A0F07;

  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'Barlow', system-ui, sans-serif;
  --cond:  'Barlow Condensed', system-ui, sans-serif;

  --max-w: 1160px;
  --pad:   clamp(1.25rem, 4vw, 2.5rem);
  --ease:  cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--parchment);
  color: var(--soot);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ── UTILITIES ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--cond);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--madre);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 1.8rem;
  height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--cond);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9em 1.8em;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--terra { background: var(--madre); color: var(--parchment); border: 1.5px solid var(--madre); }
.btn--terra:hover { background: var(--ember); border-color: var(--ember); }
.btn--outline { background: transparent; color: rgba(255,255,255,0.88); border: 1.5px solid rgba(255,255,255,0.4); }
.btn--outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.75); }
.btn--dark { background: var(--canopy); color: var(--parchment); border: 1.5px solid var(--canopy); }
.btn--dark:hover { background: var(--mossback); border-color: var(--mossback); }

/* ── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 1.6rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(27, 51, 32, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem var(--pad);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.nav__logo { display: flex; flex-direction: column; line-height: 1; }
.nav__logo-name { font-family: var(--serif); font-size: 1.25rem; color: #fff; letter-spacing: 0.01em; }
.nav__logo-sub {
  font-family: var(--cond);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 3px;
}
.nav__links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav__links li a {
  font-family: var(--cond);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.nav__links li a:hover,
.nav__links li a[aria-current="page"] { color: #fff; }
.nav__burger { display: none; flex-direction: column; justify-content: center; gap: 5px; padding: 4px; }
.nav__burger span {
  display: block; width: 22px; height: 1.5px;
  background: rgba(255,255,255,0.85);
  transition: transform 0.3s, opacity 0.3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav__overlay {
  display: none; position: fixed; inset: 0;
  background: var(--canopy); z-index: 190;
  flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.nav__overlay.is-open { display: flex; }
.nav__overlay a { font-family: var(--serif); font-size: 2.2rem; font-style: italic; color: var(--parchment); transition: color 0.2s; }
.nav__overlay a:hover { color: var(--ember); }
.nav__overlay .btn { font-family: var(--cond); font-style: normal; font-size: 0.85rem; }
@media (max-width: 740px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer { background: var(--soot); }
.footer__inner { max-width: var(--max-w); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--pad) 2rem; }
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1.75rem;
}
.footer__brand-name { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--parchment); margin-bottom: 0.4rem; }
.footer__brand-sub { display: block; font-family: var(--cond); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 1.1rem; }
.footer__brand p { font-size: 0.88rem; font-weight: 300; line-height: 1.75; color: rgba(255,255,255,0.38); }
.footer__col h5 { font-family: var(--cond); font-size: 0.63rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.26); margin-bottom: 1.25rem; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col ul a { font-size: 0.88rem; font-weight: 300; color: rgba(255,255,255,0.48); transition: color 0.2s; }
.footer__col ul a:hover { color: var(--parchment); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__legal,
.footer__loc { font-family: var(--cond); font-size: 0.7rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.22); }
@media (max-width: 720px) { .footer__top { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ── ACCESSIBILITY ──────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
