/* =============================================================
   BLUE ROOM STUDIO — SHARED STYLESHEET
   /css/styles.css

   Linked from every page. Contains everything that is identical
   across all six pages. Page-specific rules (hero sizing,
   page sections) stay in each page's inline <style> block.

   Sections:
     1. Variables
     2. Reset & base
     3. Navigation
     4. Hero structural components (sizing stays page-specific)
     5. Utility
     6. Footer CTA  (about.html overrides this to a dark variant)
     7. Site footer
     8. Responsive overrides for the above
   ============================================================= */


/* ── 1. VARIABLES ─────────────────────────────────────────── */

:root {
  --yellow: #FEDD00;
  --black: #111111;
  --black-mid: #1a1a1a;
  --border: transparent; /* separation via colour blocks, not hairlines */
  --surface-hover: #222222;
  --text-muted: #888;
  --text-dim: #888;
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
}


/* ── 2. RESET & BASE ──────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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


/* ── 3. NAVIGATION ────────────────────────────────────────── */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--black);
  z-index: 100;
}

.nav-logo { display: block; height: 36px; width: auto; flex-shrink: 0; }
.nav-logo svg { height: 36px; width: auto; }

.nav-links { display: flex; gap: 36px; align-items: center; }

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: #aaa;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover  { color: var(--yellow); }
.nav-links a.active { color: var(--yellow); }

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--black-mid);
  border-bottom: 1px solid var(--border);
}

.nav-drawer.open { display: flex; }

.nav-drawer a {
  font-family: var(--font-body);
  font-size: 15px;
  color: #aaa;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

/* index.html adds a subtle background on this rule via its local <style> */
.nav-drawer a:hover,
.nav-drawer a.active { color: var(--yellow); }


/* ── 4. HERO STRUCTURAL COMPONENTS ───────────────────────── */
/*
   .hero sizing (padding, min-height, border-bottom) differs per page
   and stays in each page's inline <style>.

   .hero-headline margin-bottom and .hero-sub color/max-width also
   differ per page — kept inline for now.

   What IS identical everywhere: the video layer, overlay, inner
   wrapper, reduced-motion guard, and the yellow span colour.
*/

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.3);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

.hero-headline span { color: var(--yellow); }


/* ── 5. UTILITY ───────────────────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ── 6. FOOTER CTA ────────────────────────────────────────── */
/*
   Standard: yellow background, dark text — used on 5 of 6 pages.
   about.html overrides background + all text colours in its
   inline <style> block (dark background, white/yellow text).
*/

.footer-cta {
  padding: 56px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--yellow);
}

.footer-cta-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 28px);
  color: #111;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.footer-cta-text span { color: #111; }

.footer-cta-email {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: #111;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.footer-cta-email:hover { opacity: 0.75; }


/* ── 7. SITE FOOTER ───────────────────────────────────────── */

.site-footer {
  padding: 24px 48px;
  background: var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer-copy {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-dim);
}

.site-footer-links { display: flex; gap: 24px; }

.site-footer-links a {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.site-footer-links a:hover { color: var(--yellow); }


/* ── 8. RESPONSIVE ────────────────────────────────────────── */

@media (max-width: 1024px) {
  .nav        { padding: 18px 32px; }
  .nav-links  { gap: 24px; }
  .footer-cta { padding: 48px 32px; }
  .site-footer { padding: 24px 32px; }
}

@media (max-width: 768px) {
  .nav           { padding: 16px 24px; }
  .nav-links     { display: none; }
  .nav-hamburger { display: flex; }
  .footer-cta {
    padding: 40px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer {
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}
