/* Hats, Lats & Attitude — site styles */
:root {
  --bg: #0e0e0f;
  --bg-2: #17171a;
  --card: #1d1d21;
  --line: #2c2c31;
  --text: #f2efe9;
  --muted: #a7a39c;
  --accent: #ff5a36;      /* hot coral */
  --accent-2: #3fd0c9;    /* Ionian teal */
  --radius: 14px;
  --max: 1160px;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,14,15,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
  font-family: var(--display); font-size: 1.45rem; letter-spacing: .02em;
  text-decoration: none; text-transform: uppercase; line-height: 1;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none; font-weight: 600; font-size: .92rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--text);
  font-size: 1.6rem; cursor: pointer; padding: 6px;
}
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a { display: block; padding: 16px; }
  .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1.02; letter-spacing: .01em; }
h1 { font-size: clamp(2.8rem, 9vw, 6.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: .5em; }
h3 { font-size: 1.6rem; margin-bottom: .4em; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 62ch; }
p + p { margin-top: 1em; }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; text-transform: uppercase;
  letter-spacing: .06em; font-size: .9rem; border: 2px solid var(--accent);
  background: var(--accent); color: #111; transition: transform .15s, background .2s, color .2s;
  cursor: pointer; font-family: var(--body);
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn.ghost:hover { background: var(--text); color: #111; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: calc(100vh - 68px); min-height: calc(100svh - 68px);
  display: grid; align-items: end; overflow: hidden;
  background: radial-gradient(ellipse at 70% 20%, #2a1a16 0%, var(--bg) 65%);
}
.hero video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14,14,15,.15) 0%, rgba(14,14,15,.55) 55%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 0 9vh; }
.hero h1 { max-width: 12ch; }
.hero .lead { color: #d9d5ce; margin-top: 18px; }
.sound-toggle {
  position: absolute; z-index: 3; right: 16px; bottom: 16px;
  background: rgba(0,0,0,.55); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font-size: .8rem; cursor: pointer; font-family: var(--body);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 90px 0 50px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.page-hero .lead { margin-top: 16px; }

/* ---------- Sections ---------- */
section.block { padding: 90px 0; }
section.block.alt { background: var(--bg-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 780px) { .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 32px; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.card .icon { font-size: 1.8rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .98rem; }

/* Pillars strip */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars div { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); }
.pillars div:last-child { border-right: 0; }
.pillars strong { display: block; font-family: var(--display); font-size: 1.7rem; text-transform: uppercase; font-weight: 400; }
.pillars span { color: var(--muted); font-size: .88rem; }
@media (max-width: 780px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars div:nth-child(2) { border-right: 0; }
  .pillars div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Image placeholder frame */
.frame {
  aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #2a1a16, #12302e); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center; padding: 20px;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Packages ---------- */
.package { position: relative; }
.package.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.package .tag {
  position: absolute; top: -12px; left: 24px; background: var(--accent); color: #111;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.package .price { font-family: var(--display); font-size: 2rem; margin: 6px 0 14px; color: var(--accent-2); }
.package ul { list-style: none; margin: 4px 0 24px; flex: 1; }
.package li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.package li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.package .btn { align-self: flex-start; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 400; color: var(--accent); }
.stat span { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 780px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font-family: var(--body);
  font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em;
}
.filter.active, .filter:hover { border-color: var(--accent); color: var(--text); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.video-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-card .embed { position: relative; width: 100%; background: #000; }
.video-card .embed.wide { aspect-ratio: 16/9; }
.video-card .embed.tall { aspect-ratio: 9/16; max-height: 640px; }
.video-card .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .meta { padding: 16px 18px 20px; }
.video-card .platform { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.video-card h3 { font-size: 1.25rem; margin: 6px 0 0; }
.video-card a.open { font-size: .85rem; color: var(--muted); }
.empty-note { color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); padding: 30px; text-align: center; }

.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a {
  text-decoration: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-weight: 600; font-size: .9rem; transition: border-color .2s;
}
.socials a:hover { border-color: var(--accent); }

/* ---------- Contact ---------- */
form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
input, select, textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; color: var(--text); font: inherit; font-size: 1rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 160px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.contact-aside .card + .card { margin-top: 18px; }
.form-status { font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { padding: 80px 0; text-align: center; background: linear-gradient(120deg, #2a1410, #0f2a28); }
.cta-band h2 { margin-bottom: .3em; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

.frame.has-img { padding: 0; }
.prose a:not(.btn) { color: var(--accent-2); }

/* YouTube background video for the hero: cover the area like object-fit, hide controls */
.hero-yt { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-yt iframe {
  position: absolute; top: 50%; left: 50%; border: 0;
  width: 100vw; height: 56.25vw;          /* 16:9 from width */
  min-height: 100%; min-width: 177.78vh;  /* 16:9 from height */
  transform: translate(-50%, -50%) scale(1.15); /* trims YouTube's edge UI */
}

/* Vertical (Shorts) opening video */
@media (max-width: 780px) {
  .hero--vertical .hero-yt iframe {
    width: 100%; height: 177.78vw;          /* 9:16 from width */
    min-height: 100%; min-width: 56.25vh;   /* 9:16 from height */
    transform: translate(-50%, -50%) scale(1.12);
  }
}
@media (min-width: 781px) {
  .hero--vertical {
    grid-template-columns: 1fr auto; align-items: center; gap: 56px;
    padding: 48px max(16px, calc((100vw - 1160px) / 2));
  }
  .hero--vertical::after { display: none; }
  .hero--vertical .hero-content { width: auto; margin: 0; padding: 0; }
  .hero--vertical .hero-yt {
    position: relative; inset: auto; order: 2;
    height: min(78vh, 720px); aspect-ratio: 9 / 16;
    border-radius: 24px; border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 6px #1a1a1d;
  }
  .hero--vertical .hero-yt iframe {
    width: 100%; height: 100%; min-width: 0; min-height: 0;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

/* Featured video showcase (services page) */
.showcase { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.showcase-video { position: relative; border-radius: 24px; overflow: hidden; background: #000;
  border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 6px #1a1a1d; }
.showcase-video.tall { aspect-ratio: 9 / 16; width: 340px; max-width: 100%; }
.showcase-video.wide { aspect-ratio: 16 / 9; width: 560px; max-width: 100%; }
.showcase-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 780px) {
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase-video { margin-inline: auto; }
}
