/* ============================================================
   CENTURION LEGACY — styles.css
   Dark luxury theme · gold/bronze accents · Roman-inspired
   Sections in order:
     1. Variables & reset
     2. Typography helpers
     3. Layout helpers (container, section, rule)
     4. Buttons
     5. Header / Nav
     6. Hero
     7. Vision
     8. Ecosystem cards
     9. Values pillars
    10. Join form
    11. Footer
    12. Reveal animation
    13. Responsive / motion preferences
   ============================================================ */

/* ---------- 1. Variables & reset ---------- */
:root {
  --bg:        #0a0a0b;   /* near-black */
  --bg-alt:    #111113;   /* charcoal */
  --bg-card:   #16161a;   /* raised charcoal */
  --line:      #2a2a2e;   /* hairline borders */

  --gold:      #c9a24b;   /* primary gold accent */
  --gold-soft: #e3c982;   /* lighter gold for hover/headlines */
  --bronze:    #8a6a34;   /* deeper bronze */

  --text:      #f3f1ea;   /* readable near-white */
  --text-dim:  #b6b3aa;   /* muted body text */

  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1140px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

/* ---------- 2. Typography helpers ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }

.gold { color: var(--gold); }

.eyebrow,
.section-eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1.1rem;
}

.lead { font-size: 1.18rem; color: var(--text); }
p { color: var(--text-dim); margin: 0 0 1.1rem; }
strong { color: var(--text); font-weight: 600; }

/* ---------- 3. Layout helpers ---------- */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.narrow { max-width: 760px; }

.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.vision    { background: var(--bg-alt); }
.ecosystem { background: var(--bg); }
.values    { background: var(--bg-alt); }
.join      { background: var(--bg); }

.section-title { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: 0.01em; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }

/* Thin Roman rule (hairline with center diamond) */
.rule {
  width: 64px; height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--bronze));
  margin: 1.4rem 0 1.8rem;
  position: relative;
}
.rule.center { margin-inline: auto; }
.rule::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 6px; height: 6px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--bronze));
  color: #14110a;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.btn-block { width: 100%; }

/* ---------- 5. Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 10, 11, 0.92);
  border-bottom-color: var(--line);
}

.nav {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { color: var(--gold); font-size: 1.3rem; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 1.05rem;
}

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--gold-soft); }
.nav-cta {
  color: var(--gold) !important;
  border: 1px solid var(--line);
  padding: 0.5rem 1.1rem; border-radius: var(--radius);
}
.nav-cta:hover { border-color: var(--gold); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: 0.3s var(--ease); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem 1.25rem 4rem;
  /* Layers, top to bottom: faint vector columns/laurel backdrop, gold glow,
     bottom vignette, base gradient. To swap in a real photo later, add it as
     the first url() layer (it will sit above the gradients). */
  background:
    url("assets/hero-bg.svg") center top / cover no-repeat,
    radial-gradient(120% 80% at 50% 0%, rgba(201, 162, 75, 0.12), transparent 55%),
    radial-gradient(100% 100% at 50% 100%, rgba(0,0,0,0.7), transparent 60%),
    linear-gradient(180deg, #0c0c0e, #0a0a0b);
  overflow: hidden;
}
/* Subtle column-line texture overlay */
.hero-overlay {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg, transparent, transparent 78px,
    rgba(201, 162, 75, 0.05) 78px, rgba(201, 162, 75, 0.05) 79px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 880px; }

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin: 0 0 1.5rem;
  letter-spacing: 0.01em;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-dim);
  max-width: 640px; margin: 0 auto 2.4rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  color: var(--gold); font-size: 1.4rem;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- 7. Vision ---------- */
.vision .lead { margin-bottom: 1.4rem; }

/* ---------- 8. Ecosystem cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
/* Top gold accent line that fills on hover */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--bronze));
  transition: width 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: #3a3a40; }
.card:hover::before { width: 100%; }

.card-icon { color: var(--gold); font-size: 1.5rem; display: block; margin-bottom: 1rem; }
.card-title { font-size: 1.55rem; margin-bottom: 0.3rem; }
.card-tag {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--bronze); margin-bottom: 0.9rem; font-weight: 600;
}
.card p:last-child { margin-bottom: 0; font-size: 0.97rem; }

/* ---------- 9. Values pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  text-align: center;
}
.pillar { padding: 1rem; }
/* Stylized thin "column" accent above each pillar */
.pillar-column {
  width: 38px; height: 56px; margin: 0 auto 1.4rem;
  border-left: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  border-top: 3px solid var(--gold-soft);
  position: relative;
  opacity: 0.85;
}
.pillar-column::after {
  content: ""; position: absolute; bottom: -3px; left: -6px; right: -6px;
  height: 3px; background: var(--gold-soft);
}
.pillar-title { font-size: 1.8rem; margin-bottom: 0.6rem; color: var(--gold-soft); }
.pillar p { margin-bottom: 0; }

/* ---------- 10. Join form ---------- */
.join-form { margin-top: 2.4rem; display: grid; gap: 1.3rem; }
.hidden-field { display: none; } /* Netlify honeypot — hidden from real visitors */
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-dim); font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans); font-size: 1rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: #6f6c64; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); background: #131316; outline: none; }
.field textarea { resize: vertical; }

.form-status { margin: 0.4rem 0 0; min-height: 1.2em; font-size: 0.92rem; color: var(--gold-soft); }

/* ---------- 11. Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 2rem;
  align-items: center; justify-content: space-between;
}
.footer-brand .brand-mark { font-size: 1.5rem; }
.footer-company { font-family: var(--serif); font-size: 1.25rem; color: var(--text); margin: 0.5rem 0 0.2rem; }
.footer-motto { color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; margin: 0; }

.footer-links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.85rem; color: var(--text-dim); letter-spacing: 0.06em;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--gold-soft); }

.footer-fine {
  text-align: center; color: #6f6c64; font-size: 0.78rem;
  margin: 2.5rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto;
}

/* ---------- 12. Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 13. Responsive / motion ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(10,10,11,0.98);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .nav-links.open { max-height: 340px; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 1rem 1.25rem; }
  .nav-cta { border: none !important; border-radius: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}
