/* ============================================================
   NORTHCUT — style.css
   Design: dark cinematic, lime accent (#c6ff4a), Space Grotesk
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg:          #16181d;
  --bg-card:     #1e2027;
  --bg-card-alt: #22252e;
  --text:        #f4f4f0;
  --text-muted:  #8a8d96;
  --accent:      #c6ff4a;
  --accent-dim:  rgba(198, 255, 74, 0.12);
  --border:      rgba(244, 244, 240, 0.08);
  --border-accent: rgba(198, 255, 74, 0.35);

  --font:        'Space Grotesk', system-ui, sans-serif;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;

  --transition:  0.25s ease;
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 12px 48px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

img, iframe, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

section {
  padding-block: clamp(80px, 12vw, 140px);
}

/* ---------- Section Labels & Headers ---------- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-header {
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
              box-shadow var(--transition), color var(--transition),
              border-color var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: #0e1012;
  border-color: var(--accent);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: #d9ff6e;
  border-color: #d9ff6e;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(198, 255, 74, 0.28);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--secondary:hover, .btn--secondary:focus-visible {
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline:hover, .btn--outline:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(198, 255, 74, 0.10);
}

/* ---------- Scroll-fade Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside grids */
.work__grid .fade-in:nth-child(2),
.why__grid .fade-in:nth-child(2),
.packages__grid .fade-in:nth-child(2) { transition-delay: 0.12s; }

.work__grid .fade-in:nth-child(3),
.why__grid .fade-in:nth-child(3),
.packages__grid .fade-in:nth-child(3) { transition-delay: 0.24s; }

.why__grid .fade-in:nth-child(4) { transition-delay: 0.36s; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(22, 24, 29, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.logo-svg--sm { width: 30px; height: 30px; }

.nav__wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Desktop links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 12px 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.nav__mobile.open {
  max-height: 300px;
}
.nav__mobile-link {
  padding: 14px clamp(20px, 5vw, 64px);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav__mobile-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 140px 100px;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero__headline {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero__headline em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 40px;
}
.br-desktop { display: none; }
@media (min-width: 768px) { .br-desktop { display: block; } }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Ambient glows */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
}
.hero__glow--1 {
  width: 480px;
  height: 480px;
  background: rgba(198, 255, 74, 0.07);
  top: -80px;
  right: -80px;
}
.hero__glow--2 {
  width: 300px;
  height: 300px;
  background: rgba(198, 255, 74, 0.04);
  bottom: 60px;
  left: 20%;
}

/* ============================================================
   THE WORK
   ============================================================ */
.work { background: var(--bg); }

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 820px) {
  .work__grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-inline: auto;
  }
}

/* Video card */
.video-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 9:16 aspect ratio container */
.video-card__player {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0d0e12;
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.video-card:hover .video-card__player {
  border-color: var(--border-accent);
  box-shadow: 0 8px 40px rgba(198, 255, 74, 0.08);
}

/* Self-hosted <video> fills the container, no black bars */
.video-card__player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

/* ---------- Mute / unmute toggle button ---------- */
.video-mute-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(14, 16, 18, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(244, 244, 240, 0.15);
  cursor: pointer;
  color: var(--text);
  transition: background var(--transition), border-color var(--transition),
              transform var(--transition);
  /* Hidden by default — fades in on hover */
  opacity: 0;
}
.video-card__player:hover .video-mute-btn,
.video-card__player:focus-within .video-mute-btn {
  opacity: 1;
}
/* Always visible on touch devices (no hover state) */
@media (hover: none) {
  .video-mute-btn { opacity: 1; }
}

.video-mute-btn:hover {
  background: rgba(198, 255, 74, 0.18);
  border-color: var(--accent);
  transform: scale(1.08);
}

.video-mute-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  pointer-events: none;
}

/* Show/hide correct icon based on muted state */
.video-mute-btn[data-muted="true"]  .icon-muted   { display: block; }
.video-mute-btn[data-muted="true"]  .icon-unmuted { display: none;  }
.video-mute-btn[data-muted="false"] .icon-muted   { display: none;  }
.video-mute-btn[data-muted="false"] .icon-unmuted { display: block; }

.video-card__caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  padding-inline: 2px;
}
.video-card__product {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

/* ============================================================
   WHY NORTHCUT
   ============================================================ */
.why {
  background: linear-gradient(180deg, var(--bg) 0%, #1a1c22 100%);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .why__grid { grid-template-columns: 1fr; } }

.why__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.why__card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.why__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
}
.why__icon svg { width: 100%; height: 100%; }

.why__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.why__body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   PACKAGES
   ============================================================ */
.packages { background: var(--bg); }

.packages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 860px) {
  .packages__grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }
}

.pkg-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.pkg-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

/* Featured card */
.pkg-card--featured {
  background: var(--bg-card-alt);
  border-color: var(--border-accent);
  box-shadow: 0 0 0 1px var(--border-accent), var(--shadow-card);
}
.pkg-card--featured:hover {
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lift);
}

.pkg-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0e1012;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.pkg-card__top {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pkg-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.pkg-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pkg-card__amount {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.pkg-card--featured .pkg-card__amount { color: var(--accent); }

.pkg-card__per {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pkg-card__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.pkg-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.check {
  color: var(--accent);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.pkg-card__cta { width: 100%; justify-content: center; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative;
  overflow: hidden;
}

.contact__inner { position: relative; z-index: 2; }

.contact__body {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact__email,
.contact__insta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  transition: border-color var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
}
.contact__email svg,
.contact__insta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}
.contact__email:hover,
.contact__insta:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(198, 255, 74, 0.10);
}

.contact__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(198, 255, 74, 0.06) 0%, transparent 70%);
  bottom: -200px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 32px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer__wordmark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   FOCUS STYLES (Accessibility)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   SCROLLBAR (subtle)
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2e3038; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3e4148; }
