/* ── SHARED STYLES — Rootside Digital ── */

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

:root {
  --forest:       #152A20;
  --forest-deep:  #0E1F17;
  --forest-mid:   #1E3828;
  --forest-light: #2A4D38;
  --sage:         #4A7A60;
  --sage-light:   #7AAF92;
  --cream:        #F5F0E6;
  --cream-dark:   #EDE6D8;
  --cream-mid:    #E2D9C8;
  --warm-white:   #FAF7F1;
  --ink:          #1A2820;
  --muted:        #7A8C82;
  --border-dark:  rgba(255,255,255,0.08);
  --border-light: rgba(26,40,32,0.12);
  --gold:         #C8882A;
  --gold-light:   #DFA040;
  --mono:         'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 1000;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 52px;
  height: 64px;
  background: rgba(245,240,230,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}
.logo-word {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--forest);
}
.logo-word span { color: var(--sage); }
.logo-tag {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--forest); }

.nav-cta {
  background: var(--forest) !important;
  color: var(--cream) !important;
  padding: 9px 20px;
  border-radius: 4px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--forest-light) !important; color: var(--cream) !important; }

/* ── SHARED TYPOGRAPHY ── */
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--forest);
}
h2 em { font-style: italic; color: var(--sage); }

h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  color: var(--forest);
}

.eyebrow-line { width: 36px; height: 1px; background: var(--gold); }

/* ── TICKER ── */
.ticker {
  background: var(--forest-deep);
  border-bottom: 1px solid var(--border-dark);
  padding: 13px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner { display: inline-flex; animation: ticker 26s linear infinite; }
.ticker-item {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sage-light);
  padding: 0 28px;
}
.ticker-dot { color: var(--gold); padding: 0 4px; }

/* ── SHARED BUTTONS ── */
.btn-primary-green {
  display: inline-block;
  background: var(--forest);
  color: var(--cream);
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-primary-green:hover { background: var(--forest-light); transform: translateY(-1px); }

/* ── PAGE HEADER (services, contact, case-studies) ── */
.page-header {
  background: var(--forest);
  padding: 140px 52px 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}
.page-header-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.page-header-glow {
  position: absolute; top: -20%; right: -5%;
  width: 55vw; height: 55vw;
  background: radial-gradient(ellipse, rgba(74,122,96,0.22) 0%, transparent 60%);
  pointer-events: none;
}
.page-header-inner { position: relative; z-index: 2; max-width: 1100px; }
.page-eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  opacity: 0; animation: fadeIn 0.7s 0.1s forwards;
}
.page-eyebrow span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
}
.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -2px;
  color: var(--warm-white);
  margin-bottom: 32px;
  opacity: 0;
  animation: slideUp 0.9s 0.2s cubic-bezier(0.16,1,0.3,1) forwards;
}
.page-header h1 em { font-style: italic; color: var(--sage-light); }
.page-header-sub {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(250,247,241,0.5);
  max-width: 560px;
  font-weight: 300;
  opacity: 0;
  animation: fadeIn 0.8s 0.4s forwards;
}

/* ── FOOTER ── */
footer {
  background: var(--forest-deep);
  border-top: 1px solid var(--border-dark);
  padding: 36px 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.footer-logo {
  font-size: 15px;
  font-weight: 800;
  color: rgba(250,247,241,0.6);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.footer-logo span { color: var(--sage-light); }
.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(250,247,241,0.2);
  letter-spacing: 1px;
  text-align: center;
}
.footer-location {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(250,247,241,0.2);
  letter-spacing: 1px;
  text-align: right;
}

/* ── ANIMATIONS ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  nav { padding: 0 24px; }
  nav .nav-links li:not(:last-child) { display: none; }
  .page-header { padding: 100px 24px 60px; }
  footer { grid-template-columns: 1fr; gap: 10px; text-align: center; padding: 28px 24px; }
  .footer-location { text-align: center; }
}
