/* -----------------------------
   VARIABLES
----------------------------- */
:root{
  --bg: #ffffff;
  --text: #111111;
  --muted: #5a5a5a;
  --line: #e7e7e7;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --shadow2: 0 8px 18px rgba(0,0,0,.08);

  --wrap: 1100px;

  /* Dark header */
  --headerBg: #0f0f10;
  --headerText: #f2f2f2;
  --headerLine: rgba(255,255,255,.10);
  --headerLink: rgba(255,255,255,.86);
  --headerLinkHover: #ffffff;
  --headerBtnBorder: rgba(255,255,255,.22);
}

/* -----------------------------
   BASE
----------------------------- */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: "widescreen", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.small{ font-size: .92rem; }
.subtle{ color: var(--muted); }

/* -----------------------------
   HEADER (DARK) — FLEX
----------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--headerBg);
  border-bottom: 1px solid var(--headerLine);
}

.site-header .header-inner{
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px; /* CHANGED (was 14px 0) */
}

.brand img{
  height: 36px;
  width: auto;
}

/* Nav (center) */
.site-header nav{
  flex: 1 1 auto;
  text-align: center;
}

nav ul{
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

nav a{
  text-decoration: none;
  color: var(--headerLink);
  font-weight: 600;
}

nav a:hover{
  color: var(--headerLinkHover);
}

/* CTA group (right) */
.site-header .cta{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* -----------------------------
   BUTTONS (GLOBAL)
----------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  white-space: nowrap;
}

/* Used in header + anywhere else needed */
.btn.primary{
  background: #ffffff;  /* inverted for dark header */
  color: #111111;
}
.btn.primary:hover{ transform: translateY(-1px); }

.btn.ghost{
  background: transparent;
  color: var(--headerText);
  border-color: var(--headerBtnBorder);
}
.btn.ghost:hover{
  border-color: rgba(255,255,255,.40);
  transform: translateY(-1px);
}

/* -----------------------------
   SECTIONS / TYPE
----------------------------- */
.section{ padding: 48px 0; }

h1{
  margin: 0 0 10px;
  font-size: 2.6rem;
  letter-spacing: -.02em;
}

h2{
  margin: 0 0 10px;
  font-size: 2.0rem;
  letter-spacing: -.01em;
}

.lead{
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 70ch;
}

/* -----------------------------
   SHARED FRAME STYLE
   (About / Showreel / Services)
----------------------------- */
.about-frame,
.showreel-frame,
.services-frame{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #ffffff;
  padding: 28px;
}

/* HERO — let Hype control everything */
.hero{
  width: 100%;
  margin-top: 30px;
  margin-bottom: -20px;
}

/* -----------------------------
   SERVICES (FRAMED) + CARDS (UNFRAMED)
----------------------------- */
.services-frame .lead{
  max-width: none;
  margin-bottom: 18px;
}

.services-grid{
  display: flex;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* LOCK 3-up on desktop; still wraps when space is tight */
.service-card{
  flex: 0 0 calc((100% - 36px) / 3);
  background: transparent;
  border: 0;
  box-shadow: none;
  min-width: 240px;
}

.service-card img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.service-card h3{
  margin: 6px 0 6px;
  font-size: 1.1rem;
}

.service-card p{
  margin: 0;
  color: var(--muted);
}

/* -----------------------------
   ABOUT — FLEX
----------------------------- */
.about-grid{
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.about-photo{
  width: 340px;
  max-width: 80%;
}

.about-photo img{
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}

.about-text{
  flex: 1 1 360px;
}

.about-text p{
  margin: 0 0 12px;
  color: var(--muted);
}

/* -----------------------------
   SHOWREEL — VIDEO + LINK
----------------------------- */
.showreel-frame .lead{
  margin-bottom: 14px;
  max-width: none;
}

.showreel-video{
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}

.showreel-video iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.showreel-note{
  margin: 12px 0 0;
}

.showreel-note a{
  color: inherit;
  border-bottom: 1px solid rgba(0,0,0,.25);
  text-decoration: none;
}
.showreel-note a:hover{
  border-bottom-color: rgba(0,0,0,.55);
}

/* -----------------------------
   SHOWREEL — HEADING + CTA
----------------------------- */

.showreel-frame h2{
  margin-bottom: 6px;
}

.showreel-frame .lead{
  margin-bottom: 16px;
}

.showreel-note{
  margin: 14px 0 10px;
  color: var(--muted);
}

/* Button row */
.showreel-actions{
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Match Contact CTA styling (dark on white) */
.showreel-actions .btn.primary{
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
}
.showreel-actions .btn.primary:hover{
  background: #000000;
  transform: translateY(-1px);
}

/* Mobile behaviour — neat, not oversized */
@media (max-width: 640px){
  .showreel-actions{
    flex-direction: column;
    align-items: center;
  }

  .showreel-actions .btn{
    width: auto;
    min-width: 220px;
    max-width: 92%;
    padding: 10px 18px;
    font-size: 1rem;
    line-height: 1.2;
  }
}


/* -----------------------------
   CONTACT — stable, non-wrapping CTAs
----------------------------- */
#contact .lead{ max-width: none; }

#contact .contact-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 14px;
  align-items: center;
  width: 100%;
}

/* Keep your Contact buttons dark (on white background) */
#contact .contact-actions .btn{
  flex: 1 1 260px;
  width: auto;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 1.05rem;
  font-weight: 850;
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
  white-space: nowrap;
}

#contact .contact-actions .btn.primary{
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}
#contact .contact-actions .btn.primary:hover{
  background: #000000;
}

/* -----------------------------
   FOOTER (DARK) — FINAL (STABLE)
----------------------------- */
.site-footer{
  background: #0f0f10;
  color: #f2f2f2;
  border-top: 1px solid rgba(255,255,255,.08);
}

.site-footer a{
  color: #f2f2f2;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.site-footer a:hover{
  border-bottom-color: rgba(255,255,255,.55);
}

.footer-inner{
  display: flex;
  gap: 22px;
  padding: 34px 20px 22px; /* CHANGED (was 34px 0 22px) */
  align-items: stretch;
}

.footer-inner > :first-child{ width: 60%; }
.footer-inner > :last-child{ width: 40%; margin-left: auto; }

.footer-title{
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-lines{
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,.85);
}

.footer-label{
  min-width: 78px;
  color: rgba(255,255,255,.65);
  font-weight: 700;
}

/* RIGHT COLUMN becomes a vertical stack */
.footer-brand{
  text-align: right;
  display: flex;
  flex-direction: column;
}

.footer-logo{ font-size: 1.15rem; }
.footer-tagline{ color: rgba(255,255,255,.70); }

.footer-bottomline{
  margin-top: auto;
  padding-top: 18px;
  color: rgba(255,255,255,.70);
  white-space: nowrap;
}

/* -----------------------------
   RESPONSIVE
----------------------------- */

/* Header: nav on its own line */
@media (max-width: 640px){
  .site-header .header-inner{ flex-wrap: wrap; }

  .site-header nav{
    order: 3;
    width: 100%;
    margin-top: 8px;
  }

  .site-header .cta{ order: 2; }
  .brand{ order: 1; }
}

/* Very small: stack cleanly */
@media (max-width: 420px){
  .site-header .header-inner{
    flex-direction: column;
    align-items: center;
  }
  .site-header .cta{ margin-left: 0; }
}

/* Services + Footer stack */
@media (max-width: 900px){
  .service-card{ flex: 1 1 100%; }

  .footer-inner{
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 18px;
  }

  .footer-inner > :first-child,
  .footer-inner > :last-child{
    width: 100%;
    margin-left: 0;
  }

  .footer-brand{
    text-align: left;
    width: 100%;
  }

  .footer-bottomline{
    white-space: normal;
    text-align: left;
    padding-top: 14px;
  }
}

/* Contact CTA: stacked, centred, not huge */
@media (max-width: 640px){
  #contact .contact-actions{
    flex-direction: column;
    align-items: center;
  }

  #contact .contact-actions .btn{
    flex: none;
    width: auto;
    min-width: 220px;
    max-width: 92%;
    padding: 10px 18px;
    font-size: 1rem;
    line-height: 1.2;
    box-shadow: 0 6px 14px rgba(0,0,0,.10);
  }
}


