/* ============================================================
   MUNCH POWELL — SHARED CSS ARCHITECTURE
   /assets/css/main.css
   Single source of truth for all shared styling.
   Covers: tokens, reset, body, header, nav, buttons, footer,
           layout utilities, typography system, focus states,
           motion reduction, shared animations.
   ============================================================ */

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

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --cream: #FAF8F3;
  --beige: #F2EDE4;
  --beige-dark: #E8E0D2;
  --slate-blue: #6B7F99;
  --slate-blue-dark: #536175;
  --slate-blue-light: #8A9BB5;
  --charcoal: #2C2C2A;
  --charcoal-soft: #4A4844;
  --muted: #8A8780;
  --gold: #B89A6A;
  --white: #FFFFFF;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --radius: 50px;
  --radius-card: 16px;
  --transition: 0.25s ease;
}

/* ── BASE ──────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.75;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ────────────────────────────────────────────────── */
section { padding: 100px 5%; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── TYPOGRAPHY UTILITIES ──────────────────────────────────── */
.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.section-heading {
  text-align: center;
  margin-bottom: 64px;
}

.section-heading h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.section-heading p {
  font-size: 17px;
  font-weight: 400;
  color: var(--charcoal-soft);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── HEADER ────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,154,106,0.15);
  padding: 0 5%;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-mark {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--slate-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark span {
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo-divider {
  width: 1px;
  height: 20px;
  background: var(--beige-dark);
}

/* ── NAVIGATION ────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  text-decoration: none;
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

nav a:hover,
nav a.active,
nav a[aria-current="page"] { color: var(--slate-blue); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--charcoal);
  fill: none;
  stroke-width: 1.5;
}

/* ── BUTTON SYSTEM ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  min-height: 44px;
}

.btn-primary {
  background: var(--slate-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--slate-blue-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid rgba(44,44,42,0.25);
}

.btn-outline:hover {
  border-color: var(--slate-blue);
  color: var(--slate-blue);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-blue);
  border: 1.5px solid var(--slate-blue-light);
  padding: 14px 36px;
  font-size: 14px;
}

.btn-ghost:hover {
  background: var(--slate-blue);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
  padding: 14px 36px;
  font-size: 14px;
}

.btn-ghost-light:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid rgba(44,44,42,0.3);
}

.btn-secondary:hover {
  border-color: var(--slate-blue);
  color: var(--slate-blue);
  transform: translateY(-1px);
}

.btn-large {
  padding: 16px 44px;
  font-size: 14px;
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--charcoal);
  padding: 72px 5% 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand .footer-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.footer-links a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.footer-links a:hover { color: var(--gold); }

.footer-links a svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }

.footer-nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover { color: rgba(255,255,255,0.6); }

/* ── FOCUS STATES ──────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--slate-blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ── MOTION REDUCTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .geo-circle { animation: none; }
}

/* ── RESPONSIVE — SHARED COMPONENTS ───────────────────────── */
@media (max-width: 900px) {
  nav { display: none; }

  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 24px 5% 32px;
    border-bottom: 1px solid var(--beige-dark);
    gap: 24px;
    align-items: flex-start;
    z-index: 99;
  }

  nav.open .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: flex; }
  header { position: relative; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-links { align-items: flex-start; }
}

@media (max-width: 768px) {
  section { padding: 64px 5%; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
}
