/* ─────────────────────────────────────────────────────────────
   Simple Magic — Static Site Styles
   Fonts: Libre Baskerville (headings) + Open Sans (body/nav)
   Theme: pure black, white text, muted body copy
───────────────────────────────────────────────────────────── */

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

:root {
  --black: #000;
  --white: #fff;
  --text-muted: rgba(255, 255, 255, 0.46);
  --text-strong: rgba(255, 255, 255, 0.85);
  --section-border: rgba(255, 255, 255, 0.08);

  --font-heading: 'Libre Baskerville', Palatino, 'Book Antiqua', Georgia, serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --nav-height: 72px;
  --max-width: 1200px;
  --section-pad-v: 80px;
  --section-pad-h: 48px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── HEADER / NAV ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--black);
  border-bottom: 1px solid var(--section-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}

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

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ── HERO SECTION ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  background: var(--black);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-content {
  flex: 1 1 50%;
  padding: 80px 0;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 28px;
}

.hero-body {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 520px;
}

.hero-tagline {
  color: var(--text-muted);
  font-size: 16px;
}

/* Phone mockup */
.hero-phone {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 340px;
  flex-shrink: 0;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  pointer-events: none;
}

.phone-screen {
  position: absolute;
  top: 3.5%;
  left: 6%;
  width: 88%;
  height: 93%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
  border-radius: 28px;
}

/* ── CONTENT SECTIONS (Vision / Content Creators) ─────── */
.content-section {
  background: var(--black);
  border-top: 1px solid var(--section-border);
}

.content-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad-v) var(--section-pad-h);
  display: flex;
  align-items: center;
  gap: 64px;
}

.content-section__inner--reversed {
  flex-direction: row-reverse;
}

.content-section__text {
  flex: 1 1 50%;
}

.content-section__text h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 24px;
}

.content-section__text p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.content-section__text p:last-child {
  margin-bottom: 0;
}

.content-section__text strong {
  color: var(--white);
  font-weight: 600;
}

.content-section__media {
  flex: 1 1 45%;
}

.content-section__media img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

/* ── ABOUT SECTION ───────────────────────────────────────── */
.section-about {
  background: var(--black);
  border-top: 1px solid var(--section-border);
  padding: var(--section-pad-v) var(--section-pad-h);
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.about-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 28px;
}

.about-lead {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 700px;
  margin: 0 auto 16px;
}

.about-location {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 64px;
}

/* Team grid */
.team-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 24px;
  text-align: left;
}

.team-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #111;
}

.team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%);
}

.team-card__info h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 4px;
}

.team-card__role {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.team-card__links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.icon-link:hover {
  opacity: 0.7;
}

.icon-link--email {
  color: #d44638;
}

.icon-link--linkedin {
  color: #0a66c2;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--section-border);
  padding: 32px var(--section-pad-h);
  text-align: center;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ─────────────────────────────────────────────────────────────
   LEGAL PAGE
───────────────────────────────────────────────────────────── */

/* Legal hero — background image with overlay */
.legal-hero {
  position: relative;
  min-height: 380px;
  margin-top: var(--nav-height);
  background-image: url('../assets/images/legal-hero-bg.png');
  background-size: cover;
  background-position: center 30%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Paths are relative to page root — use different paths for the play/ subdir */
.page-legal .legal-hero {
  background-image: url('../assets/images/legal-hero-bg.png');
}

.legal-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.legal-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px var(--section-pad-h);
}

.legal-hero__content h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  color: var(--white);
}

/* Legal body */
.legal-body {
  background: var(--black);
  padding: 72px var(--section-pad-h);
}

.legal-inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal-prose p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.legal-prose h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  color: var(--white);
  margin: 48px 0 24px;
}

.legal-prose h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin: 32px 0 12px;
}

.legal-prose ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-prose ul li {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.legal-prose a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--text-muted);
}

.legal-prose a:hover {
  text-decoration-color: var(--white);
}

.legal-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px !important;
}

.legal-privacy {
  border-top: 1px solid var(--section-border);
  margin-top: 0;
  padding-top: 0;
}

.legal-privacy h2 {
  margin-top: 64px;
}

/* Support block */
.support-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--section-border);
  border-radius: 4px;
  padding: 32px 40px;
  margin: 48px 0;
  text-align: center;
}

.support-block p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.support-block a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--text-muted);
}

.support-block a:hover {
  text-decoration-color: var(--white);
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root {
    --section-pad-h: 20px;
    --section-pad-v: 48px;
  }

  /* ── Hero ── */
  .hero-inner {
    flex-direction: column-reverse; /* phone DOM-order is after text, reverse puts it on top */
    min-height: auto;
    padding: 40px 0 0; /* images break out of padding — apply to text separately */
    gap: 0;
  }

  .hero-content {
    padding: 32px var(--section-pad-h) 48px;
    width: 100%;
  }

  .hero-phone {
    width: 100%;
    padding: 0;
  }

  .phone-mockup {
    width: 220px;
    margin: 0 auto;
  }

  /* ── Content sections ── */
  .content-section__inner,
  .content-section__inner--reversed {
    flex-direction: column; /* image first (it's first in DOM for both sections) */
    gap: 0;
    padding: 0;           /* remove inner padding — handled per-child */
  }

  /* Vision section: image is second in DOM but should appear first — override */
  .section-vision .content-section__inner {
    flex-direction: column-reverse;
  }

  .content-section__text {
    flex: none;
    width: 100%;
    padding: 32px var(--section-pad-h) 48px;
  }

  .content-section__media {
    flex: none;
    width: 100%;
  }

  .content-section__media img {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    display: block;
  }

  /* ── About ── */
  .section-about {
    padding: var(--section-pad-v) var(--section-pad-h);
  }

  .team-grid {
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: var(--black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 99;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    font-size: 20px;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hamburger → X when open */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .team-card {
    flex-direction: column;
    text-align: center;
  }

  .team-card__links {
    justify-content: center;
  }

  .legal-hero {
    min-height: 280px;
  }
}
