/* ============================================================
   ADAM ELLGAARD MEDIA — DESIGN SYSTEM
   style.css · Shared across all pages
============================================================ */

/* ── CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  --bg:          #0a0a0a;
  --bg-2:        #111111;
  --bg-3:        #181818;
  --surface:     #1c1c1c;
  --border:      rgba(255,255,255,0.07);
  --border-h:    rgba(255,255,255,0.14);
  --text:        #f0ede8;
  --text-muted:  #888078;
  --text-dim:    #555048;
  --accent:      #c9a96e;
  --accent-dim:  rgba(201,169,110,0.12);
  --accent-glow: rgba(201,169,110,0.06);
  --white:       #ffffff;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;
  --space-2xl: 12rem;

  --container: 1180px;
  --radius:    3px;
  --radius-lg: 8px;
}

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

html { scroll-behavior: smooth; font-size: 16px; background: var(--bg); }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

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

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.display {
  font-family: var(--ff-display);
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 300;
  color: var(--text);
}

p { color: var(--text-muted); font-size: 0.975rem; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section { padding: var(--space-xl) 0; }

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes pulse-gold {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible         { opacity: 1; transform: translateY(0); }
.reveal-delay-1         { transition-delay: 0.1s; }
.reveal-delay-2         { transition-delay: 0.22s; }
.reveal-delay-3         { transition-delay: 0.36s; }
.reveal-delay-4         { transition-delay: 0.5s; }

/* ── NAVIGATION ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.5rem var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}
nav.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(18px);
  padding: 1rem var(--space-md);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: color 0.2s;
}
.nav-logo span { color: var(--accent); }
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover            { color: var(--text); }
.nav-links a:hover::after     { transform: scaleX(1); }
.nav-links a.active           { color: var(--accent); }
.nav-links a.active::after    { transform: scaleX(1); }

.nav-cta {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--accent) !important;
  border: 1px solid rgba(201,169,110,0.35) !important;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius);
  transition: background 0.25s, color 0.25s, border-color 0.25s !important;
}
.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
  border-color: var(--accent) !important;
}
.nav-cta::after { display: none !important; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--text);
  transition: all 0.3s var(--ease-out);
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open      { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-menu a:hover   { color: var(--accent); }
.mobile-menu a.active  { color: var(--accent); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.28s var(--ease-out);
  white-space: nowrap;
  background: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: #d4b47e;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,169,110,0.25);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-h);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.85rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}
.btn-ghost:hover { color: var(--accent); }

.arrow-icon {
  width: 14px; height: 14px;
  transition: transform 0.25s var(--ease-out);
}
.btn:hover .arrow-icon { transform: translateX(4px); }

/* ── SECTION HEADER ─────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ── DIVIDER ────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ── STATS BAR ──────────────────────────────────────────── */
.stats-bar {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1;
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.4rem;
}

/* ── MARQUEE ────────────────────────────────────────────── */
.marquee-section {
  overflow: hidden;
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 3rem;
  letter-spacing: 0.04em;
}
.marquee-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── CTA STRIP ──────────────────────────────────────────── */
.cta-strip {
  padding: var(--space-lg) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.cta-strip h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
}

/* ── TAGS ───────────────────────────────────────────────── */
.tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}
.footer-brand h3 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.4rem;
}
.footer-brand h3 span { color: var(--accent); }
.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.social-link:hover {
  color: var(--accent);
  border-color: rgba(201,169,110,0.3);
  background: var(--accent-glow);
}
.footer-col h4 {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-col li a {
  font-size: 0.87rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col li a:hover { color: var(--accent); }
.footer-col .contact-value {
  font-size: 0.87rem;
  color: var(--text-muted);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.77rem; color: var(--text-dim); }
.cvr { font-size: 0.77rem; color: var(--text-dim); }

/* ── CONTACT ICON ───────────────────────────────────────── */
.contact-icon {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  transition: border-color 0.2s, background 0.2s;
}
.contact-item:hover .contact-icon {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-item-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}
.contact-item-value {
  font-size: 0.9rem;
  color: var(--text);
}

/* ── PAGE HEADER (inner pages) ──────────────────────────── */
.page-header {
  padding-top: calc(90px + var(--space-lg));
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --space-xl: 4rem; --space-2xl: 6rem; }
  nav { padding: 1.2rem 1.5rem; }
  .container { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stats-inner { gap: 1.5rem; }
  .cta-strip-inner { flex-direction: column; align-items: flex-start; }
}
