/* ═══════════════════════════════════════════════════════════════
   HANNAH BARRON — Shared Design System
   Emil-design-eng principles throughout
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --green-950: #070f05;
  --green-900: #0e1f0a;
  --green-800: #1a3810;
  --green-700: #275219;
  --green-600: #346b22;
  --green-500: #4a8a2e;
  --green-400: #6aaa44;
  --green-100: #d0e8b8;
  --green-50:  #eef7e4;

  --orange-700: #a84408;
  --orange-600: #c4520a;
  --orange-500: #e8640a;
  --orange-400: #f07c20;
  --orange-100: #fde4c8;
  --orange-50:  #fff4ec;

  --brown-800: #3d2010;
  --brown-600: #6b4020;
  --brown-400: #a06030;
  --brown-200: #d4a878;
  --brown-100: #f0d8b8;

  --cream:     #faf6ef;
  --cream-mid: #f0e8d8;
  --near-black:#080f06;
  --black:     #000000;
  --white:     #ffffff;

  --gray-900: #111810;
  --gray-700: #2d3b28;
  --gray-500: #56694e;
  --gray-400: #788f6e;
  --gray-300: #a8b8a0;
  --gray-100: #e8f0e0;

  /* Emil's custom easing — never use CSS defaults */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --font-display: 'Oswald', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.15);
  --shadow-md: 0 4px 24px rgba(0,0,0,.20);
  --shadow-lg: 0 16px 56px rgba(0,0,0,.30);
  --shadow-xl: 0 24px 80px rgba(0,0,0,.40);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--gray-900);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; }

/* ── Reduced Motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Utilities ───────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Typography ──────────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.section-tag {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--orange-500);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.05;
  color: var(--green-900);
  margin-bottom: 16px;
}
.section-title.light { color: var(--white); }
.section-desc {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.8;
  max-width: 520px;
}
.section-desc.light { color: rgba(255,255,255,.65); }
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-tag { justify-content: center; }
.section-header.centered .section-desc { margin: 0 auto; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background 150ms var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(232, 100, 10, 0.4);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--orange-600); box-shadow: 0 6px 24px rgba(232, 100, 10, 0.5); }
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
}

.btn-outline-dark {
  background: transparent;
  color: var(--green-900);
  border: 2px solid var(--green-900);
}
@media (hover: hover) and (pointer: fine) {
  .btn-outline-dark:hover { background: var(--green-900); color: var(--white); }
}

.btn-sm { padding: 10px 22px; font-size: .85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

/* ── Nav ─────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
#nav.transparent { background: transparent; }
#nav.solid {
  background: rgba(8, 15, 6, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--orange-500);
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  border-radius: var(--radius-xs);
  transition: color 150ms var(--ease-out), background 150ms var(--ease-out);
}
.nav-links a.active { color: var(--orange-400); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--white); background: rgba(255,255,255,.06); }
}
.nav-right {
  display: flex; align-items: center; gap: 12px;
}
.nav-social {
  display: flex; align-items: center; gap: 8px;
}
.nav-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out), transform 160ms var(--ease-out);
}
.nav-social a:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .nav-social a:hover { background: var(--orange-500); color: var(--white); }
}
.nav-mobile-btn {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--white); padding: 6px;
}
.nav-mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 199;
  background: var(--green-950);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.nav-mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.nav-mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  transition: color 150ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-mobile-menu a:hover { color: var(--orange-400); }
}
.mobile-close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none; cursor: pointer;
  color: var(--white); font-size: 1.5rem;
}
@media (max-width: 860px) {
  .nav-links, .nav-social { display: none; }
  .nav-mobile-btn { display: block; }
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--green-950);
  color: rgba(255,255,255,.55);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 840px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: .88rem; line-height: 1.8; max-width: 280px; }
.footer-brand .footer-socials {
  display: flex; gap: 10px; margin-top: 24px;
}
.footer-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  display: grid; place-items: center;
  font-size: .9rem; color: rgba(255,255,255,.6);
  transition: border-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 160ms var(--ease-out), background 150ms var(--ease-out);
}
.footer-socials a:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .footer-socials a:hover { border-color: var(--orange-500); color: var(--orange-500); background: rgba(232,100,10,.08); }
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  transition: color 150ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--orange-400); }
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem;
}
@media (max-width: 560px) { .footer-bottom { flex-direction: column; gap: 10px; text-align: center; } }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.35); transition: color 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .footer-bottom-links a:hover { color: rgba(255,255,255,.7); }
}

/* ── Scroll Reveal System (Emil-style) ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.from-left {
  transform: translateX(-28px) scale(0.97);
}
.reveal.from-right {
  transform: translateX(28px) scale(0.97);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1) translateX(0);
}
.section-header.reveal { transition-duration: 700ms; }

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.4; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes rotateSlow {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
@keyframes stampIn {
  0%   { opacity: 0; transform: scale(1.3) rotate(-6deg); }
  60%  { transform: scale(0.95) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(-3deg); }
}

/* ── Card base ───────────────────────────────────────────────── */
.card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
}
.card:active { transform: scale(0.98); }

/* ── Image placeholder ───────────────────────────────────────── */
.img-placeholder {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  background: var(--green-800);
  position: relative;
  overflow: hidden;
}
.img-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, transparent 50%, rgba(0,0,0,.1) 100%);
}

/* ── Divider wave ────────────────────────────────────────────── */
.wave-divider { display: block; width: 100%; overflow: hidden; line-height: 0; }
.wave-divider svg { display: block; }
