/* American Castle Productions — shared styles */

:root {
  /* midnight-navy base */
  --bg: #0a1024;
  --bg-alt: #0e1630;
  --panel: #142042;
  --stone: #1b2952;
  --text: #eef1f8;
  --muted: #9fabc7;
  /* Old Glory red + white as the accent system (aliased to --gold* so
     the whole stylesheet repaints from these two lines) */
  --gold: #c1272d;       /* Old Glory red — accents, borders, actions */
  --gold-soft: #f2f5fb;  /* crisp white — headings accents, hovers */
  --navy: #1b3a8f;       /* flag blue */
  --rust: #c1272d;       /* flag red */
  --white: #ffffff;
  --castle: #05070f;     /* silhouette / battlement fill */
  --line: rgba(159, 178, 214, 0.20);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1120px;
  /* faint stone-grain texture */
  --stone-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 18px;
}

p { margin: 0 0 18px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 13, 11, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* patriotic tricolor hairline across the very top */
.site-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg,
    var(--navy) 0%, var(--navy) 33%,
    var(--white) 33%, var(--white) 66%,
    var(--rust) 66%, var(--rust) 100%);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand .mark { color: var(--gold); font-size: 20px; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 15px 30px;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn { color: var(--white); }
.btn:hover { background: var(--gold); color: var(--white); }
.btn-solid { background: var(--gold); color: var(--white); }
.btn-solid:hover { background: #a81f24; border-color: #a81f24; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(59,94,180,0.28), transparent 60%),
    linear-gradient(180deg, #0d1836 0%, #070c1c 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
  opacity: 0.5;
}
.hero .wrap { position: relative; z-index: 3; padding-top: 60px; padding-bottom: 150px; }
.hero h1 {
  font-size: clamp(44px, 9vw, 104px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 3.5vw, 30px);
  color: var(--gold-soft);
  margin-bottom: 28px;
}
.hero .lede {
  max-width: 720px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 18px;
}
.hero .btn-row { justify-content: center; }

/* responsive 16:9 click-to-watch trailer poster */
.video-frame { aspect-ratio: 16 / 9; position: relative; display: block; background: #000; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-frame .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 78px; height: 78px;
  border-radius: 50%;
  z-index: 2;
  background: var(--gold);
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
  transition: transform 0.25s ease, background 0.25s ease;
}
.video-frame .play-btn::before {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 15px 0 15px 26px;
  border-color: transparent transparent transparent #fff;
}
.video-frame:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); background: #a81f24; }
.video-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,16,36,0.1), rgba(10,16,36,0.45));
  pointer-events: none;
}

/* castle silhouette anchored to the bottom of the hero */
.hero-castle {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: min(40vh, 280px);
  z-index: 1;
  pointer-events: none;
}

/* ---------- Decorative flourish (line — star — line) ---------- */
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 26px;
  color: var(--gold);
}
.flourish::before, .flourish::after {
  content: "";
  height: 1px;
  width: clamp(40px, 12vw, 80px);
}
.flourish::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.flourish::after  { background: linear-gradient(90deg, var(--gold), transparent); }
.flourish .star { font-size: 15px; line-height: 1; }

/* Americana star before each capability card title */
.card h3::before {
  content: "\2605";
  color: var(--gold);
  font-family: var(--sans);
  font-size: 15px;
  margin-right: 10px;
  vertical-align: 2px;
}

/* Faint stone grain on the darker panels */
.section-alt, .page-hero, .cta-band { position: relative; }
.section-alt > *, .page-hero > *, .cta-band > * { position: relative; z-index: 2; }
.section-alt::after, .page-hero::after, .cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--stone-grain);
  background-size: 160px 160px;
  opacity: 0.045;
  pointer-events: none;
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.narrow { max-width: 760px; }
.center { text-align: center; margin: 0 auto; }

.section-title { font-size: clamp(30px, 5vw, 48px); margin-bottom: 22px; }
.lead { font-size: 19px; color: var(--muted); }

/* ---------- Cards / What we do ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 34px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card h3 { font-size: 26px; color: var(--gold-soft); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; margin: 0; }

/* wide framed image inside a content section */
.section-media {
  display: block;
  width: 100%;
  height: clamp(260px, 42vh, 460px);
  object-fit: cover;
  margin-top: 48px;
  border: 1px solid var(--line);
}

/* image sitting beside text in a .split layout */
.split-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background:
    radial-gradient(900px 400px at 50% 120%, rgba(193,39,45,0.30), transparent 60%),
    var(--stone);
  border-top: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(30px, 5vw, 52px); margin-bottom: 20px; }
.cta-band p { max-width: 640px; margin: 0 auto 30px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact-block { margin-bottom: 30px; }
.contact-block .label {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px;
  color: var(--gold); margin-bottom: 6px;
}
.contact-block a { color: var(--text); border-bottom: 1px solid var(--line); }
.contact-block a:hover { color: var(--gold-soft); }

form label { display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
form .field { margin-bottom: 22px; }
input, select, textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  padding: 13px 15px;
  transition: border-color 0.2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 150px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: #0a0907;
  border-top: 1px solid var(--line);
  padding: 54px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
/* crenellated battlement cresting the footer */
.site-footer::before {
  content: "";
  position: absolute;
  top: -15px; left: 0;
  width: 100%; height: 15px;
  background: #0a0907;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 28px, transparent 28px 50px);
          mask: repeating-linear-gradient(90deg, #000 0 28px, transparent 28px 50px);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner .brand { font-size: 18px; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-size: 12px; }
.footer-links a:hover { color: var(--gold-soft); }
.copyright { width: 100%; text-align: center; margin-top: 30px; font-size: 12px; letter-spacing: 0.08em; color: #6f6857; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 120px 0 80px;
  text-align: center;
  background:
    radial-gradient(1000px 500px at 50% -20%, rgba(59,94,180,0.24), transparent 60%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(38px, 7vw, 68px); text-transform: uppercase; letter-spacing: 0.03em; }
.page-hero p { color: var(--gold-soft); font-family: var(--serif); font-style: italic; font-size: 22px; margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 70px 0; }
}
