/* ============================================================
   Comedy Clipster - styles
   Two brand colours only, no white anywhere:
     Yellow      #FFD400
     Near-black  #111111
   Every section is either yellow-on-black or black-on-yellow,
   alternating down the page.
   Font: Montserrat throughout (700/800 headings, 400 body)
   ============================================================ */

:root {
  --yellow: #FFD400;
  --black: #111111;

  --max-width: 1100px;
  --gap: 24px;
}

/* ---------- Reset / base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--yellow);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* Centres content and keeps comfortable padding on the sides */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Shared section spacing */
section {
  padding: 80px 0;
}

.section-title {
  font-weight: 800;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-lead {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 60ch;
}

/* ---------- Button ---------- */
.btn {
  display: inline-block;
  background: var(--black);
  color: var(--yellow);
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 4px;
  transition: transform 0.08s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo img {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 4px 0;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* Mobile menu button - hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle-bar {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--yellow);
  color: var(--black);
  padding: 100px 0;
}

.hero-title {
  font-weight: 800;
  font-size: clamp(38px, 8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.5px;
  max-width: 16ch;
}

.hero-sub {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 500;
  margin: 24px 0 40px;
  max-width: 48ch;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--black);
  color: var(--yellow);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.service {
  background: var(--yellow);
  color: var(--black);
  padding: 32px;
  border-radius: 6px;
}

.service h3 {
  color: var(--black);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 12px;
}

.service p {
  font-size: 16px;
}

/* ============================================================
   WORK - 9:16 placeholder grid
   ============================================================ */
.work {
  background: var(--yellow);
  color: var(--black);
}

.work .section-lead {
  color: var(--black);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* Each box holds a vertical (9:16) clip. aspect-ratio keeps the shape.
   Black boxes on the yellow section, like blank phone screens. */
.work-item {
  aspect-ratio: 9 / 16;
  background: var(--black);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.work-item span {
  color: var(--yellow);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  padding: 0 12px;
}

/* If you drop in an <img> or <video>, make it fill the box neatly */
.work-item img,
.work-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--black);
  color: var(--yellow);
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 24px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-list a {
  font-weight: 700;
  font-size: clamp(22px, 4vw, 32px);
  text-decoration: none;
  word-break: break-word;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  color: var(--yellow);
  padding: 40px 0;
  /* Thin divider so the footer reads apart from the black contact section above */
  border-top: 3px solid var(--yellow);
}

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

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

.footer-meta {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-meta span {
  font-weight: 400;
  color: var(--yellow);
}

/* ============================================================
   RESPONSIVE - tablet and phone
   ============================================================ */

/* Tablet: two columns for services and work */
@media (max-width: 860px) {
  .services-grid,
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phone: single column, show the mobile menu */
@media (max-width: 640px) {
  section {
    padding: 60px 0;
  }

  .hero {
    padding: 72px 0;
  }

  /* Swap the desktop nav for a dropdown triggered by the toggle */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--black);
    border-top: 3px solid var(--yellow);
  }

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

  .site-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 212, 0, 0.25); /* faint yellow divider */
  }

  .services-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  /* Keep placeholder boxes from getting too tall on a narrow single column */
  .work-item {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ============================================================
   404 PAGE - full-height, centred, yellow-on-black
   ============================================================ */
.notfound {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
  color: var(--yellow);
  padding: 40px 0;
}

.notfound-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.notfound-logo {
  height: 72px;
  width: auto;
  margin-bottom: 24px;
}

.notfound-code {
  font-weight: 800;
  font-size: clamp(64px, 16vw, 140px);
  line-height: 1;
  letter-spacing: -2px;
}

.notfound-title {
  font-weight: 800;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.1;
}

.notfound-sub {
  font-size: 18px;
  margin: 8px 0 32px;
  max-width: 44ch;
}
