/* ==========================================================================
   Film Finances — site stylesheet
   ========================================================================== */

:root {
  --navy: #2c2c72;
  --navy-dark: #1e1e52;
  --navy-light: #3d3d94;
  --gold: #c9a13b;
  --gold-light: #e0c26a;
  --cream: #f7f4ec;
  --cream-dark: #efe9d8;
  --ink: #1c1c2e;
  --grey: #5c5c6e;
  --white: #ffffff;
  --border: #e2e0d5;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(30, 30, 82, 0.12);
  --maxw: 1200px;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; margin: 0 0 16px; color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--grey); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #d9d9ee; }

.center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn--gold { background: var(--gold); color: var(--navy-dark); }
.btn--gold:hover { background: var(--gold-light); }
.btn--outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline:hover { background: var(--white); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-light); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 14px rgba(0,0,0,0.12);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav a.nav-link {
  color: var(--white);
  padding: 12px 16px;
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 3px;
  transition: background 0.15s ease;
}
.main-nav a.nav-link:hover, .main-nav li.current > a.nav-link { background: rgba(255,255,255,0.12); color: var(--gold-light); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 10px 14px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 3px;
}
.dropdown a:hover { background: var(--cream); color: var(--gold); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .btn { padding: 11px 24px; font-size: 0.78rem; }

.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  background: var(--navy-dark);
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,58,0.35) 0%, rgba(20,20,58,0.55) 55%, rgba(20,20,58,0.92) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 120px 0 72px; max-width: 760px; }
.hero__content .eyebrow { color: var(--gold-light); }
.hero .hero__content h1 { color: var(--white); margin-bottom: 8px; }
.hero-page {
  min-height: 320px;
  align-items: center;
}
.hero-page .hero__content { padding: 90px 0; max-width: 640px; }

/* rotating hero dots */
.hero__dots { position: absolute; z-index: 3; bottom: 28px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero__dots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--white); background: transparent; padding: 0; cursor: pointer; opacity: 0.6; }
.hero__dots button.is-active { background: var(--gold); border-color: var(--gold); opacity: 1; }

/* ==========================================================================
   Feature grid (icons)
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feature-card { text-align: center; padding: 8px; }
.feature-card img { height: 64px; width: auto; margin: 0 auto 22px; }
.feature-card h3 { text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.03em; }

/* ==========================================================================
   Service cards
   ========================================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card .num { font-family: var(--serif); font-size: 0.85rem; color: var(--gold); font-weight: 700; letter-spacing: 0.1em; }
.service-card h3 { margin-top: 8px; }
.service-card a.learn-more { color: var(--navy); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid var(--gold); padding-bottom: 3px; }

/* ==========================================================================
   Story / two-column
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split.reverse .split__media { order: 2; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 700; color: var(--gold); }
.stat .label { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82rem; font-weight: 700; }
.section--navy .stat .label { color: #d9d9ee; }

/* ==========================================================================
   News cards
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.news-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.news-card__img { height: 190px; overflow: hidden; background: var(--cream-dark); display: flex; align-items: center; justify-content: center; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__img.contain img { object-fit: contain; padding: 24px; }
.news-card__body { padding: 22px 24px 26px; }
.news-card .date { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold); font-weight: 700; }
.news-card h3 { font-size: 1.08rem; margin: 10px 0 0; }

/* ==========================================================================
   Global offices / tabs
   ========================================================================== */
.office-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 44px; }
.office-tabs button {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 11px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--navy);
}
.office-tabs button.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.office-panels { position: relative; }
.office-panel { display: none; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.office-panel.is-active { display: grid; }
.office-panel img { border-radius: var(--radius); }
.office-detail h3 { margin-bottom: 4px; }
.office-detail .addr { font-size: 1.05rem; margin-bottom: 6px; }
.office-detail .phone { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.office-map { margin-top: 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.office-map iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: #d9d9ee; max-width: 520px; margin: 0 auto 30px; }

/* ==========================================================================
   Subsidiaries
   ========================================================================== */
.subsid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 20px;
}
.subsid-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  transition: box-shadow 0.2s ease;
}
.subsid-card:hover { box-shadow: var(--shadow); }
.subsid-card img { max-height: 60px; width: auto; margin: 0 auto 18px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-dark); color: #c9c9e2; padding: 72px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid img { height: 36px; margin-bottom: 18px; }
.footer-grid p { color: #a7a7c9; font-size: 0.92rem; }
.footer-col h4 { color: var(--white); font-family: var(--sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #c9c9e2; font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #8888ad;
}
.footer-bottom a { color: #8888ad; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ==========================================================================
   Generic content blocks (about, services, legal pages)
   ========================================================================== */
.prose h2 { margin-top: 42px; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 780px; }
.prose blockquote {
  margin: 0 0 20px;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--gold);
  color: var(--ink);
  font-style: italic;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.process-strip.four { grid-template-columns: repeat(4, 1fr); }
.process-step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--white);
}
.process-step .step-num { color: var(--gold); font-weight: 700; font-family: var(--serif); font-size: 0.9rem; }
.process-step.is-current { border-color: var(--gold); box-shadow: 0 6px 20px rgba(201,161,59,0.18); }
.process-step h3 { font-size: 1.02rem; margin: 6px 0 8px; }
.process-step p { font-size: 0.92rem; margin: 0; }
.process-step .step-link { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 0.8rem; color: var(--navy); text-transform: uppercase; letter-spacing: .03em; }

.detail-list { display: grid; gap: 28px; margin-top: 40px; }
.detail-list .item { display: grid; grid-template-columns: 90px 1fr; gap: 22px; align-items: flex-start; }
.detail-list .item .idx { font-family: var(--serif); font-size: 2rem; color: var(--gold); font-weight: 700; }
.detail-list .item h3 { margin-bottom: 8px; }

/* Leaders */
.leader-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.leader-card { text-align: center; }
.leader-card img { width: 168px; height: 168px; object-fit: cover; border-radius: 50%; margin: 0 auto 20px; box-shadow: var(--shadow); }
.leader-card h3 { margin-bottom: 2px; }
.leader-card .title { color: var(--gold); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }

/* Resources directory */
.resource-category { margin-bottom: 56px; }
.resource-category h3 { text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 12px; margin-bottom: 28px; }
.resource-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.resource-logos a {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  height: 90px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.resource-logos a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.resource-logos img { max-height: 42px; max-width: 100%; width: auto; filter: grayscale(15%); }

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px;
  max-width: 640px;
  margin: 0 auto;
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--cream);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--gold); background: var(--white); }
.form-note { font-size: 0.82rem; color: var(--grey); margin-top: -8px; }
.form-msg { display: none; padding: 14px 16px; border-radius: 4px; font-size: 0.9rem; margin-top: 18px; }
.form-msg.success { background: #e8f3ea; color: #2a6b3a; }
.form-msg.error { background: #fbe8e8; color: #a02b2b; }

/* Blog / press */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.post-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: box-shadow .2s ease, transform .2s ease; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card__img { height: 220px; background: var(--cream-dark); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 26px 28px 30px; }

.post-article { max-width: 760px; margin: 0 auto; }
.post-article .post-meta { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold); font-weight: 700; margin-bottom: 14px; }
.post-article figure { margin: 32px 0; }
.post-article figure img { border-radius: var(--radius); }
.post-article figure figcaption { font-size: 0.8rem; color: var(--grey); margin-top: 8px; text-align: center; }
.post-article h2 { margin-top: 40px; }

.legal-doc h2 { margin-top: 36px; font-size: 1.3rem; }
.legal-doc ol { padding-left: 20px; }
.legal-doc li { margin-bottom: 8px; color: var(--grey); }
.legal-updated { color: var(--grey); font-size: 0.9rem; margin-bottom: 36px; }

/* Notice banner (used sparingly to flag rebuild notes if desired) */
.notice { background: #fff8e6; border: 1px solid #eddca0; color: #6b5a1e; padding: 14px 18px; border-radius: 4px; font-size: 0.88rem; margin-bottom: 28px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .split, .office-panel, .leader-grid, .post-grid { grid-template-columns: 1fr; }
  .split.reverse .split__media { order: 0; }
  .feature-grid, .service-grid, .news-grid, .subsid-grid { grid-template-columns: 1fr 1fr; }
  .process-strip, .process-strip.four { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 84px; left: 0; right: 0; bottom: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 20px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; width: 100%; }
  .main-nav > ul > li { width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,0.06); display: none; }
  .has-dropdown.is-open .dropdown { display: block; }
  .dropdown a { color: var(--white); }
  .header-cta .btn--nav-only { display: none; }
  .nav-toggle { display: block; }
  .feature-grid, .service-grid, .news-grid, .subsid-grid, .process-strip, .process-strip.four, .stats-row, .footer-grid, .leader-grid, .post-grid { grid-template-columns: 1fr; }
  .hero__content { padding-top: 90px; }
  .section { padding: 56px 0; }
  .detail-list .item { grid-template-columns: 1fr; }
  .office-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
}
