/* ============================================
   MADS MIKKELSEN OFFICIAL — Design System
   Faithful to the Siena Parallax aesthetic:
   Black + Cream, editorial minimalism
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Core Palette — Black + Cream only, matching the Siena reference */
  --color-black: #000000;
  --color-near-black: #111111;
  --color-cream: #fcfbf6;
  --color-cream-dark: #f0ece4;

  /* Text */
  --color-text-primary: #000000;
  --color-text-secondary: #555555;
  --color-text-muted: #888888;
  --color-text-on-dark: #ffffff;
  --color-text-on-dark-muted: rgba(255, 255, 255, 0.6);

  /* UI */
  --color-border: rgba(0, 0, 0, 0.1);
  --color-border-light: rgba(255, 255, 255, 0.1);
  --color-shadow: rgba(0, 0, 0, 0.15);

  /* Typography — Syne applied everywhere with weight 800 for the wavy style */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Syne', sans-serif;
  --font-label: 'Syne', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --nav-height: 80px;
  --max-width: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}


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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.03em;
  background-color: var(--color-cream);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

ul, ol { list-style: none; }


/* --- Navigation (minimal, like the reference) --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2rem;
  transition: background 0.4s var(--ease-out);
}

.site-nav.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Left side nav: logo/back */
.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.nav-label {
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-label:hover {
  opacity: 0.8;
}

/* Right side nav: page links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-self: center;
}

.nav-links a {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 0.6;
}

/* Right side nav: social icons */
.nav-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: end;
}

.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.nav-social a:hover {
  opacity: 0.7;
}


/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  z-index: 101;
  background: transparent;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
  pointer-events: none;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Fullscreen Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5.5rem 1.75rem 2.5rem;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.35s var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6.5vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.2s, transform 0.2s, padding-left 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu a:hover,
.mobile-menu a:active,
.mobile-menu a.active {
  color: #ffffff;
  padding-left: 0.5rem;
}

.mobile-menu a.active::after {
  content: "•";
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
}

.mobile-menu-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mobile-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: none;
  padding: 0;
}

.mobile-social a:hover,
.mobile-social a:active {
  color: #fff;
  padding-left: 0;
}

.mobile-copy {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}


/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}


/* --- Section styles (for pages below the parallax) --- */
.section {
  padding: var(--space-5xl) 0;
}

.section-cream {
  background: var(--color-cream);
  color: var(--color-text-primary);
}

.section-dark {
  background: var(--color-black);
  color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-header .section-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  display: block;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.95;
}


/* --- Footer --- */
.site-footer {
  background: var(--color-black);
  color: #fff;
  padding: var(--space-4xl) 0 var(--space-2xl);
  border-top: 1px solid var(--color-border-light);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--color-text-on-dark-muted);
  max-width: 280px;
  margin-top: 0.75rem;
  line-height: 1.7;
}

.footer-nav h3,
.footer-nav h4 {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-on-dark-muted);
  margin-bottom: 1rem;
}

.footer-nav a {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-on-dark-muted);
  padding: 3px 0;
  transition: color 0.2s;
}

.footer-nav a:hover { color: #fff; }

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.footer-social a:hover {
  border-color: #fff;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding-top: 1.5rem;
  font-size: 0.7rem;
  color: var(--color-text-on-dark-muted);
  display: flex;
  justify-content: space-between;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
}


/* --- Screen-reader / SEO visually hidden utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    padding: 0 1.25rem;
  }

  .site-nav.scrolled {
    background: rgba(0, 0, 0, 0.94);
  }

  .nav-left {
    flex: 1;
    min-width: 0;
  }

  .nav-label {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
  }

  .nav-links {
    display: none;
  }

  .nav-social {
    display: none;
  }

  .nav-hamburger {
    display: flex;
    margin-right: -6px;
  }

  /* Container */
  .container {
    padding: 0 1.25rem;
  }

  /* Section headers */
  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .section-header h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  /* Footer */
  .site-footer {
    padding: var(--space-3xl) 0 var(--space-xl);
  }

  .footer-inner {
    flex-direction: column;
    gap: 2.25rem;
  }

  .footer-nav h3,
  .footer-nav h4 {
    margin-bottom: 0.75rem;
  }

  .footer-nav a {
    display: inline-block;
    padding: 8px 0;
    min-height: 38px;
    font-size: 0.9rem;
    -webkit-tap-highlight-color: transparent;
  }

  .footer-social {
    gap: 1rem;
  }

  .footer-social a {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding-top: 1.25rem;
  }
}

