/* ─────────────────────────────────────────────────────────────
   ANVIL & FORGE ADVISORY — Site Stylesheet
   anvilandforgeadvisory.ai
   Brand: Navy #002855 · Gold #C5A55A · White #FFFFFF
   ───────────────────────────────────────────────────────────── */

/* ── CUSTOM PROPERTIES ───────────────────────────────────────── */
:root {
  --navy:        #002855;
  --navy-deep:   #001A3A;
  --navy-mid:    #003070;
  --gold:        #C5A55A;
  --gold-dark:   #A88A40;
  --white:       #FFFFFF;
  --surface:     #F0F4F8;
  --body-text:   #2D3E50;
  --muted:       #8BA0BC;
  --border:      #D0D8E4;

  --ff-primary:  'Montserrat', sans-serif;
  --ff-accent:   'Space Grotesk', sans-serif;

  --nav-h:       80px;
  --max-w:       1200px;
  --section-pad: 5rem;
  --radius:      4px;

  --shadow-card: 0 4px 24px rgba(0, 40, 85, 0.08);
  --shadow-hover: 0 8px 40px rgba(0, 40, 85, 0.14);
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-primary);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
h1 {
  font-family: var(--ff-primary);
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
}
h2 {
  font-family: var(--ff-primary);
  font-weight: 700;
  line-height: 1.2;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.015em;
}
h3 {
  font-family: var(--ff-primary);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
}
p { font-size: 1rem; line-height: 1.7; }
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
}
.lead-dark { color: rgba(255,255,255,0.75); }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: var(--section-pad) 0; }
.section--white  { background: var(--white); }
.section--surface { background: var(--surface); }
.section--navy   { background: var(--navy); }
.section--deep   { background: var(--navy-deep); }

/* ── NAVIGATION ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--navy);
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo img {
  height: 60px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__links a {
  font-family: var(--ff-primary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  padding-bottom: 2px;
}
.nav__links a:hover { color: var(--white); }
.nav__links a.active { color: var(--gold); }
.nav__cta {
  font-family: var(--ff-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy) !important;
  background: var(--gold);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--gold-dark); color: var(--white) !important; }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--navy);
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  overflow: hidden;
}
/* Forge glow — atmospheric, very low opacity */
.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(197,165,90,0.07) 0%, transparent 65%);
  animation: forge-glow 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes forge-glow {
  from { transform: translate(0,0) scale(1); opacity: 0.7; }
  to   { transform: translate(80px, 60px) scale(1.3); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
/* Homepage hero — forge video background, plays once, holds final frame */
.hero--video {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero--video::before { content: none; }
.hero--video .hero__content { padding: 4rem 0; }
.hero__video,
.hero__video-final,
.hero__video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__video { object-fit: cover; }
.hero__video-final {
  background-image: url('../assets/forge-final-frame.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
@supports (background-image: image-set(url('i.webp') type('image/webp'))) {
  .hero__video-final {
    background-image: image-set(url('../assets/forge-final-frame.webp') type('image/webp'),
                                url('../assets/forge-final-frame.jpg') type('image/jpeg'));
  }
}
.hero--video.video-ended .hero__video-final { opacity: 1; }
.hero__video-overlay { background: rgba(0, 40, 85, 0.72); }
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero__video-final { opacity: 1; transition: none; }
}

/* Interior hero — forge final-frame background, navy overlay.
   Forge-glow animation stays homepage-only (disabled below). */
.hero--image::before { content: none; }
.hero--image {
  background-color: var(--navy);
  background-image: linear-gradient(rgba(0, 40, 85, 0.78), rgba(0, 40, 85, 0.78)),
    url('../assets/forge-final-frame.jpg');
  background-size: cover;
  background-position: center;
}
@supports (background-image: image-set(url('i.webp') type('image/webp'))) {
  .hero--image {
    background-image: linear-gradient(rgba(0, 40, 85, 0.78), rgba(0, 40, 85, 0.78)),
      image-set(url('../assets/forge-final-frame.webp') type('image/webp'),
                url('../assets/forge-final-frame.jpg') type('image/jpeg'));
  }
}
.hero--center { text-align: center; }
.hero--center .hero__content { margin: 0 auto; }
.hero__content { position: relative; z-index: 1; max-width: 760px; }
.hero--center .hero__content { max-width: 820px; }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.72);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}
.hero--center .hero__sub { margin: 0 auto 2.5rem; }
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero--center .hero__actions { justify-content: center; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 0.8rem 1.8rem;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold);
  color: var(--navy);
}
.btn--gold:hover { background: var(--gold-dark); color: var(--white); }
.btn--outline-white {
  border: 1.5px solid rgba(255,255,255,0.45);
  color: var(--white);
}
.btn--outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.07);
}
.btn--outline-navy {
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }

/* ── SECTION HEADER ──────────────────────────────────────────── */
.section-header { margin-bottom: 3rem; }
.section-header h2 { color: var(--navy); }
.section-header p {
  margin-top: 0.875rem;
  color: var(--muted);
  max-width: 560px;
  font-size: 1.05rem;
}
.section-header--white h2,
.section-header--white p { color: var(--white); }
.section-header--white p { color: rgba(255,255,255,0.65); }

/* ── CARD GRID ───────────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 1.5rem;
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.card--surface { background: var(--surface); box-shadow: none; }
.card--navy { background: var(--navy); color: var(--white); box-shadow: var(--shadow-card); }

.card__num {
  font-family: var(--ff-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.card h3 { margin-bottom: 0.75rem; color: var(--navy); }
.card--navy h3 { color: var(--white); }
.card p { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }
.card--navy p { color: rgba(255,255,255,0.65); }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  transition: gap 0.2s;
}
.card__link:hover { gap: 0.7rem; }

/* ── FRAMEWORK SECTION ───────────────────────────────────────── */
.framework {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.framework--reverse { direction: rtl; }
.framework--reverse > * { direction: ltr; }
.framework__text h2 { color: var(--navy); margin-bottom: 1rem; }
.framework__text p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.framework__visual {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  color: var(--white);
}
.framework__visual .big-label {
  font-family: var(--ff-primary);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.framework__visual p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}

/* ── STATEMENT PANEL — navy punctuation moment ───────────────── */
.statement-panel {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 3rem 3.5rem;
  margin-top: 3rem;
}
.statement-panel h3 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}
.statement-panel p {
  color: rgba(255,255,255,0.75);
  max-width: 760px;
}
.statement-panel .tagline {
  margin-top: 1.25rem;
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
}

/* ── PRINCIPLE ROWS — numbered circles, deck style ───────────── */
.principles { margin-top: 2.5rem; }
.principle {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.principle:last-child { border-bottom: 1px solid var(--border); }
.principle__num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--ff-accent);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.principle h3 { color: var(--navy); margin-bottom: 0.35rem; }
.principle p { color: var(--muted); font-size: 0.975rem; max-width: 760px; }
.card .principle__num { margin-bottom: 1.25rem; }
.step .principle__num { margin-top: 0.1rem; }

/* ── FEATURE CARD — light entry card with CTA ────────────────── */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-card h3 { color: var(--navy); font-size: 1.35rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--muted); }
.feature-card .btn { margin-top: 1.75rem; }

/* ── CHECK LIST — gold-dot list ──────────────────────────────── */
.check-list { margin-top: 0.5rem; }
.check-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.6;
  margin-bottom: 0.65rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* ── PROCESS STEPS ───────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 2rem; }
.step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  align-items: start;
}
.step__num {
  font-family: var(--ff-primary);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
  padding-top: 0.2rem;
}
.step h3 { color: var(--navy); margin-bottom: 0.4rem; }
.step p { font-size: 0.95rem; color: var(--muted); }

/* ── STAT ROW ────────────────────────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--white);
  padding: 2rem;
  text-align: center;
}
.stat__num {
  font-family: var(--ff-primary);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__label {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── BLOCKQUOTE ──────────────────────────────────────────────── */
.pullquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
}
.pullquote p {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.55;
}
.pullquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: normal;
}

/* ── CTA BAND ────────────────────────────────────────────────── */
.cta-band {
  background-color: var(--navy);
  background-image: linear-gradient(rgba(0, 40, 85, 0.80), rgba(0, 40, 85, 0.80)),
    url('../assets/forge-final-frame.jpg');
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
  text-align: center;
}
@supports (background-image: image-set(url('i.webp') type('image/webp'))) {
  .cta-band {
    background-image: linear-gradient(rgba(0, 40, 85, 0.80), rgba(0, 40, 85, 0.80)),
      image-set(url('../assets/forge-final-frame.webp') type('image/webp'),
                url('../assets/forge-final-frame.jpg') type('image/jpeg'));
  }
}
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.cta-band .btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── CONTACT FORM ────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--ff-primary);
  font-size: 0.95rem;
  color: var(--body-text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  width: 100%;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-submit { margin-top: 0.5rem; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 0.8fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand img { height: 60px; width: auto; margin-bottom: 1.25rem; }
.footer__brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 320px;
}
.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ── ABOUT PAGE ──────────────────────────────────────────────── */
.profile-photo {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.team-photo--placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.team-photo--placeholder img { width: 34%; opacity: 0.25; border-radius: var(--radius); }
.team-photo--placeholder .plus {
  font-family: var(--ff-primary);
  font-weight: 800;
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
}
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.bio-aside {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
}
.bio-aside h3 { color: var(--navy); font-size: 1rem; margin-bottom: 0.5rem; }
.bio-aside p { font-size: 0.9rem; color: var(--muted); }
.bio-aside .divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.bio-main h2 { color: var(--navy); margin-bottom: 1.25rem; }
.bio-main p { margin-bottom: 1.25rem; color: var(--muted); font-size: 1.05rem; }

/* ── UTILITIES ───────────────────────────────────────────────── */
.text-gold  { color: var(--gold); }
.text-muted { color: var(--muted); }
.text-white { color: var(--white); }
.text-navy  { color: var(--navy); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.page-padding { padding-top: var(--nav-h); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 4rem; }
  .card-grid--3 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .framework { grid-template-columns: 1fr; gap: 2.5rem; }
  .framework--reverse { direction: ltr; }
  .bio-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  :root { --section-pad: 3rem; }
  .container { padding: 0 1.25rem; }
  .statement-panel { padding: 2rem 1.5rem; }
  .principle { grid-template-columns: 2.5rem 1fr; gap: 1rem; }

  /* Nav mobile */
  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: var(--navy-deep);
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 1rem; }
  .nav__toggle { display: flex; }
  .nav__cta { margin-top: 0.5rem; text-align: center; }

  .card-grid--3,
  .card-grid--2 { grid-template-columns: 1fr; }

  .form-grid { grid-template-columns: 1fr; }

  .stat-row { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero--center .hero__actions { align-items: center; }

  .cta-band .btn-row { flex-direction: column; align-items: center; }

  .step { grid-template-columns: 2.5rem 1fr; }
}
