/* ==========================================================================
   Think Forward Films — styles.css
   Self-contained, no external dependencies except Google Fonts (optional).
   Theme color: brand blue #336699
   ========================================================================== */

:root {
  --blue: #336699;
  --blue-dark: #26507a;
  --blue-darker: #1c3d5c;
  --ink: #16232e;
  --ink-soft: #46586a;
  --line: #e4e9ee;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(24, 42, 60, 0.10);
  --shadow-lg: 0 24px 60px rgba(24, 42, 60, 0.18);
  --maxw: 1160px;
  --font-head: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}
.section__title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.section__lead { font-size: 1.1rem; max-width: 640px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(51,102,153,.35); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--outline { background: transparent; color: var(--blue-dark); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-darker));
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: 0 4px 10px rgba(51,102,153,.4);
}
.brand__mark svg { width: 17px; height: 17px; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav__links a:hover { color: var(--blue); text-decoration: none; }
.nav__links a.active { color: var(--blue); }
.nav__cta { margin-left: 6px; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 10px;
}
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-darker);
  color: #fff;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
}
/* Scale the Vimeo iframe to cover the hero like a background video */
.hero__video iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;      /* 16:9 */
  min-height: 100%; min-width: 177.77vh; /* 16:9 */
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,28,40,.55), rgba(15,28,40,.72));
}
.hero__inner { position: relative; z-index: 2; padding: 120px 0; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .2em; font-weight: 700;
  font-size: .82rem; color: #cfe3f2; margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  max-width: 15ch;
  margin-bottom: 20px;
}
.hero h1 .accent { color: #9fd0f5; }
.hero__lead { color: #e7eef5; font-size: 1.2rem; max-width: 46ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Feature / value row ---------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(51,102,153,.12); color: var(--blue-dark);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; }
.card p { margin-bottom: 0; }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.work-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.work-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work-item__video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0d1b26;
}
.work-item__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.work-item__body { padding: 22px 24px 26px; }
.work-item__body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.work-item__tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--blue-dark); background: rgba(51,102,153,.1);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.work-item__credits { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.work-item__credits span { color: var(--ink); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue), var(--blue-darker));
  color: #fff; text-align: center; border-radius: 22px;
  padding: 56px 32px;
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { color: #e7eef5; max-width: 52ch; margin: 0 auto 26px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; color: var(--ink); }
.field .req { color: #c0392b; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; color: var(--ink);
  border: 1px solid #cdd7e0; border-radius: 10px; background: #fff;
  transition: border .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(51,102,153,.18);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ink-soft); }
.info-list { list-style: none; padding: 0; margin: 0 0 8px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ico { color: var(--blue); flex: 0 0 auto; margin-top: 3px; }
.info-list .ico svg { width: 20px; height: 20px; }
.info-list .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 700; }
.info-list a, .info-list strong { color: var(--ink); font-weight: 600; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7d2dc; padding: 56px 0 28px; }
.site-footer a { color: #c7d2dc; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { color: #9fb0bd; }
.footer-col h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.08); display: grid; place-items: center;
  transition: background .15s;
}
.socials a:hover { background: var(--blue); }
.socials svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: .88rem; color: #8ea0ad; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .28s ease;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 0; width: 100%; }
  .nav__cta { margin: 8px 0 0; }
  .nav__toggle { display: block; }
  .section { padding: 60px 0; }
}

/* ---------- Brand logo image ---------- */
.brand { gap: 11px; }
.brand__logo { height: 34px; width: auto; display: block; }
.footer-brand .brand__logo { height: 30px; }
@media (max-width: 900px) { .brand__logo { height: 30px; } }

/* ---------- New hero: large video on top, text below ---------- */
.hero-video { width: 100%; background: #fff; padding: 44px 24px 8px; }
.hero-video__frame {
  position: relative;
  width: 100%;
  max-width: 1040px;      /* contained, not full-bleed */
  margin: 0 auto;
  aspect-ratio: 16 / 9;   /* shows the whole frame */
  border-radius: 18px;    /* rounded edges */
  overflow: hidden;
  background: #0b1620;
  box-shadow: 0 24px 60px rgba(24, 42, 60, 0.18);
  line-height: 0;
}
.hero-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.hero-intro { text-align: center; padding: 58px 0 66px; background: #fff; }
.hero-intro__eyebrow {
  text-transform: uppercase; letter-spacing: .2em; font-weight: 700;
  font-size: .82rem; color: var(--blue); margin-bottom: 14px;
}
.hero-intro h1 {
  font-size: clamp(1.15rem, 5vw, 3.5rem);
  white-space: nowrap;   /* keep the headline on one line */
  max-width: none; margin: 0 auto 16px;
}
.hero-intro h1 .accent { color: var(--blue); }
.hero-intro__lead {
  font-size: 1.2rem; color: var(--ink-soft);
  max-width: 54ch; margin: 0 auto 28px;
}
.hero-intro .hero__actions { justify-content: center; }

@media (max-width: 640px) {
  /* On phones show the full video frame (no cropping) at the top */
  .hero-video { padding: 22px 16px 4px; }
  .hero-video__frame { border-radius: 14px; }
  .hero-intro { padding: 30px 0 44px; }
  .hero-intro__lead { font-size: 1.08rem; }
}


/* Credit links in work items */
.work-item__credits a { color: var(--blue-dark); font-weight: 600; }
.work-item__credits a:hover { text-decoration: underline; }

/* Brand wordmark: all caps in Montserrat */
.brand { text-transform: uppercase; letter-spacing: .045em; }
