/* ═══════════════════════════════════════════════
   THE-A-WAY — STYLESHEET
   Palette C: White / Navy #132238 / Amber #E8A020
   Fonts: Fraunces (headings) + Inter (body)
═══════════════════════════════════════════════ */

:root {
  --navy:    #132238;
  --amber:   #E8A020;
  --white:   #FFFFFF;
  --ink:     #1C1C1C;
  --muted:   #4A4A4A;
  --bg:      #FFFFFF;
  --surface: #F7F8FA;
  --border:  #E8E4DF;
  --radius:  10px;
  --shadow:  0 2px 20px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ═══ NAV ═══════════════════════════════════════ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 48px;
  transition: background 0.25s, box-shadow 0.25s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; gap: 40px;
  height: 70px;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--white); text-decoration: none;
  transition: color 0.2s; white-space: nowrap; letter-spacing: -0.01em;
}
.nav-logo span { color: var(--amber); }
.nav.scrolled .nav-logo { color: var(--navy); }
.nav-links {
  display: flex; gap: 32px; align-items: center; margin-left: auto;
}
.nav-links a {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.82); text-decoration: none;
  transition: color 0.15s;
}
.nav.scrolled .nav-links a { color: var(--navy); }
.nav-links a:hover,
.nav.scrolled .nav-links a:hover { color: var(--amber); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px; transition: background 0.2s;
}
.nav.scrolled .nav-toggle span { background: var(--navy); }

/* ═══ HERO ═══════════════════════════════════════ */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: flex-start; justify-content: center;
  text-align: left;
  /* Swap gradient for real image: background-image: url('/assets/images/hero.jpg'); */
  background: linear-gradient(155deg, #0a1520 0%, #132238 45%, #091a0f 100%);
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: transparent;
}
.hero-content {
  position: absolute; bottom: 80px; left: 60px;
  z-index: 1; max-width: 480px; text-align: left;
}
.hero-eyebrow {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 18px;
}
.hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.82rem, 4.9vw, 2.94rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.02em;
  color: var(--white); margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.08rem; line-height: 1.65;
  color: rgba(255,255,255,0.72);
  max-width: 500px; margin: 0 auto 40px;
}
.hero-form {
  display: flex; gap: 0; max-width: 440px; margin: 0 auto 14px;
}
.hero-form input {
  flex: 1; padding: 14px 18px;
  border: 2px solid rgba(255,255,255,0.22);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--white); font-size: 0.95rem; font-family: inherit;
  outline: none; transition: border-color 0.15s;
}
.hero-form input::placeholder { color: rgba(255,255,255,0.38); }
.hero-form input:focus { border-color: var(--amber); }
.hero-form button {
  padding: 14px 22px;
  background: var(--amber); color: var(--navy);
  border: 2px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem; font-weight: 600; font-family: inherit;
  cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s;
}
.hero-form button:hover { background: #f5b030; border-color: #f5b030; }
.hero-form button:disabled { opacity: 0.7; cursor: not-allowed; }
.hero-note {
  font-size: 0.78rem; color: rgba(255,255,255,0.38); min-height: 1.2em;
}
.hero-note.ok { color: #81c784; }
.hero-note.err { color: #ef9a9a; }

/* ═══ INTRO STRIP ════════════════════════════════ */

.strip {
  background: var(--navy);
  padding: 24px 48px;
}
.strip-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
}
.strip-stat {
  font-size: 0.88rem; color: rgba(255,255,255,0.65); white-space: nowrap;
}
.strip-stat strong { color: var(--amber); font-weight: 600; }
.strip-div { width: 1px; height: 18px; background: rgba(255,255,255,0.18); flex-shrink: 0; }

/* ═══ SHARED SECTION STYLES ══════════════════════ */

.section-inner { max-width: 1120px; margin: 0 auto; padding: 0 48px; }

.section-eyebrow {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 10px;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.02em;
  color: var(--navy); margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem; line-height: 1.72;
  color: var(--muted); max-width: 600px;
}

/* ═══ CATEGORIES ═════════════════════════════════ */

.categories { padding: 96px 0; }

.cat-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; margin-top: 52px;
}
.cat-card {
  display: flex; flex-direction: column;
  padding: 34px 30px;
  border: 1.5px solid var(--border); border-radius: 14px;
  background: var(--white); text-decoration: none; color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s;
  position: relative; overflow: hidden;
}
.cat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--amber); opacity: 0; transition: opacity 0.2s;
}
.cat-card:hover { border-color: rgba(232,160,32,0.5); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card:hover::after { opacity: 1; }
.cat-icon {
  width: 54px; height: 54px; border-radius: 12px;
  background: rgba(232,160,32,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber); margin-bottom: 22px; flex-shrink: 0;
}
.cat-title {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--navy); margin-bottom: 12px; line-height: 1.25;
}
.cat-desc {
  font-size: 0.9rem; line-height: 1.68;
  color: var(--muted); flex: 1; margin-bottom: 24px;
}
.cat-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.cat-count {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--amber);
}
.cat-cta {
  font-size: 0.88rem; font-weight: 600;
  color: var(--navy); transition: color 0.15s;
}
.cat-card:hover .cat-cta { color: var(--amber); }

/* ═══ FEATURED METHODOLOGIES ════════════════════ */

.featured { padding: 96px 0; background: var(--surface); }

.method-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; margin-top: 52px;
}
.method-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: 14px;
  border: 1.5px solid var(--border);
  text-decoration: none; color: inherit; overflow: hidden;
  transition: box-shadow 0.2s, transform 0.18s, border-color 0.2s;
}
.method-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #ccc; }

.method-image {
  height: 176px; position: relative;
  display: flex; align-items: flex-end; padding: 14px;
}
.method-image--1 { background: linear-gradient(140deg,#132238 0%,#1d4a7a 100%); }
.method-image--2 { background: linear-gradient(140deg,#1a1a38 0%,#2a1a4a 100%); }
.method-image--3 { background: linear-gradient(140deg,#0d2a1a 0%,#1a3a2a 100%); }
/* When real images are added: add background-image: url(...) to override */

.method-cat-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; background: var(--amber);
  color: var(--navy); padding: 4px 10px; border-radius: 4px;
}
.method-body {
  padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column;
}
.method-body h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--navy); margin-bottom: 10px; line-height: 1.35;
}
.method-body p {
  font-size: 0.88rem; line-height: 1.65;
  color: var(--muted); flex: 1; margin-bottom: 18px;
}
.method-read {
  font-size: 0.85rem; font-weight: 600; color: var(--amber);
}

/* ═══ ABOUT ══════════════════════════════════════ */

.about { padding: 96px 0; }
.about-inner {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 88px; align-items: center;
}
.about-body {
  font-size: 1rem; line-height: 1.78; color: var(--muted); margin-bottom: 18px;
}
.about-link {
  display: inline-block; margin-top: 10px;
  font-size: 0.9rem; font-weight: 600; color: var(--navy);
  text-decoration: none; border-bottom: 2px solid var(--amber);
  padding-bottom: 2px; transition: color 0.15s;
}
.about-link:hover { color: var(--amber); }
.about-image-placeholder {
  width: 100%; aspect-ratio: 4/5;
  background: var(--surface); border: 2px dashed var(--border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; color: var(--muted); font-family: monospace;
}

/* ═══ ECOSYSTEM ══════════════════════════════════ */

.ecosystem { padding: 96px 0; background: var(--navy); }
.ecosystem .section-title { color: var(--white); }

.eco-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 14px; margin-top: 52px;
}
.eco-card {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 26px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px; text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}
.eco-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(232,160,32,0.35);
}
.eco-logo-wrap {
  width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.eco-logo { max-width: 46px; max-height: 46px; object-fit: contain; filter: brightness(0) invert(1); }
.eco-logo-fallback {
  width: 46px; height: 46px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  font-size: 0.78rem; font-weight: 700; color: var(--amber);
  display: flex; align-items: center; justify-content: center;
}
.eco-info { flex: 1; }
.eco-name { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.eco-desc { font-size: 0.82rem; line-height: 1.45; color: rgba(255,255,255,0.5); }
.eco-arrow {
  font-size: 1rem; color: rgba(255,255,255,0.25); flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}
.eco-card:hover .eco-arrow { color: var(--amber); transform: translateX(4px); }

/* ═══ SUBSCRIBE ══════════════════════════════════ */

.subscribe { padding: 96px 0; border-top: 1px solid var(--border); text-align: center; }
.subscribe .section-inner { max-width: 560px; }
.subscribe-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 700; color: var(--navy); margin-bottom: 14px; letter-spacing: -0.02em;
}
.subscribe-sub {
  font-size: 1rem; line-height: 1.68; color: var(--muted); margin-bottom: 36px;
}
.subscribe-form {
  display: flex; gap: 0; max-width: 420px; margin: 0 auto 14px;
}
.subscribe-form input {
  flex: 1; padding: 13px 16px;
  border: 1.5px solid var(--border); border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 0.95rem; font-family: inherit; color: var(--ink);
  outline: none; transition: border-color 0.15s;
}
.subscribe-form input:focus { border-color: var(--amber); }
.subscribe-form button {
  padding: 13px 22px;
  background: var(--navy); color: var(--white);
  border: 1.5px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background 0.15s;
}
.subscribe-form button:hover { background: #1d3558; }
.subscribe-form button:disabled { opacity: 0.7; cursor: not-allowed; }
.subscribe-msg { font-size: 0.82rem; color: var(--muted); min-height: 1.2em; }
.subscribe-msg.ok { color: #2e7d32; }
.subscribe-msg.err { color: #c62828; }

/* ═══ FOOTER ══════════════════════════════════════ */

.footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 64px; }
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 48px 56px;
  display: grid; grid-template-columns: 180px repeat(4,1fr); gap: 40px;
}
.footer-brand .nav-logo { color: var(--navy); font-size: 1.1rem; display: inline-block; margin-bottom: 8px; }
.footer-tagline { font-size: 0.82rem; color: var(--muted); font-style: italic; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col-title {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 4px;
}
.footer-col a { font-size: 0.84rem; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 48px;
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 0.78rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.footer-bottom a:hover { color: var(--amber); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--muted); transition: color 0.15s; display: flex; }
.footer-social a:hover { color: var(--amber); }

/* ═══ RESPONSIVE ══════════════════════════════════ */

@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--white); padding: 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-links.open a { color: var(--navy); font-size: 1rem; }
  .section-inner { padding: 0 24px; }
  .cat-grid,
  .method-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-image { display: none; }
  .eco-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding: 20px 24px; }
  .strip { padding: 20px 24px; }
  .strip-div { display: none; }
  .categories, .featured, .about, .ecosystem, .subscribe { padding: 64px 0; }
}

@media (max-width: 600px) {
  .hero-content { left: 16px; max-width: calc(100% - 32px); }
  .hero-form { flex-direction: column; }
  .hero-form input {
    border-right: 2px solid rgba(255,255,255,0.22);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .hero-form button { border-radius: 0 0 var(--radius) var(--radius); }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input {
    border-right: 1.5px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .subscribe-form button { border-radius: 0 0 var(--radius) var(--radius); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
