/* ==========================================================================
   Meritix — base styles
   ========================================================================== */

:root {
  --navy: #0f1b2d;
  --navy-deep: #0a1320;
  --ink: #1b2431;
  --paper: #f7f5f0;
  --paper-soft: #efece4;
  --gold: #b68a35;
  --gold-light: #d9b976;
  --line: #e3ded2;
  --muted: #5b6472;
  --max-w: 1120px;
  --radius: 10px;
  --shadow: 0 12px 30px -18px rgba(15, 27, 45, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.1em; }

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

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

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

.eyebrow {
  display: inline-block;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9em;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.brand span { color: var(--gold-light); }

.brand-logo {
  display: block;
  height: 26px;
  width: auto;
}

.footer-brand .brand-logo { height: 24px; margin-bottom: 0.7rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
}

.nav-links a {
  color: rgba(255,255,255,0.78);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #fff; }

.nav-cta {
  background: var(--gold);
  color: var(--navy-deep) !important;
  padding: 0.62rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.nav-cta:hover { background: var(--gold-light); }

.nav-toggle { display: none; }

/* ---------------------------------------------------------------- hero */

.hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #142238 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f4f1ea;
  padding: 96px 0 108px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(182,138,53,0.16), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(182,138,53,0.10), transparent 40%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 760px; }

.hero .eyebrow { color: var(--gold-light); }

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 0.4em;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-lede {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 1.12rem;
  color: rgba(244,241,234,0.82);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline {
  border: 1px solid rgba(244,241,234,0.35);
  color: #f4f1ea;
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn-outline-dark {
  border: 1px solid rgba(27,36,49,0.25);
  color: var(--navy-deep);
}
.btn-outline-dark:hover { border-color: var(--navy-deep); }

/* ---------------------------------------------------------------- sections */

section { padding: 88px 0; }

.section-soft { background: var(--paper-soft); }
.section-dark {
  background: var(--navy-deep);
  color: rgba(244,241,234,0.9);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--gold-light); }

.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head.left { margin: 0 0 3rem; text-align: left; }

.lede {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------------------------------------------------------------- cards */

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.9rem;
  box-shadow: var(--shadow);
}

.card h3 { font-size: 1.15rem; margin-bottom: 0.55em; }

.card p:last-child { margin-bottom: 0; }

.card-number {
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.8em;
}

/* ---------------------------------------------------------------- table */

.table-wrap { overflow-x: auto; margin: 2rem 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.92rem;
  background: #fff;
}

th, td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--navy-deep);
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tr:nth-child(even) td { background: var(--paper-soft); }

/* ---------------------------------------------------------------- lists */

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }

.check-list li {
  padding-left: 1.9rem;
  position: relative;
  font-family: 'Inter', -apple-system, sans-serif;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.check-list strong { color: var(--navy-deep); }

/* ---------------------------------------------------------------- FAQ */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy-deep);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  margin-top: 0.9rem;
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--muted);
}

.faq-item p em { color: var(--ink); font-style: normal; font-weight: 500; }

/* ---------------------------------------------------------------- CTA */

.cta-band {
  background: linear-gradient(135deg, var(--navy-deep), #17273f);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: 4rem 2rem;
}

.cta-band h2 { color: #fff; }
.cta-band .lede { color: rgba(244,241,234,0.78); margin-bottom: 1.8rem; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--navy-deep);
  color: rgba(244,241,234,0.6);
  padding: 56px 0 32px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.footer-brand .brand { display: block; margin-bottom: 0.5rem; }

.footer-links {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-links a { color: rgba(244,241,234,0.65); }
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
}

/* ---------------------------------------------------------------- misc */

.page-hero {
  background: var(--navy-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 72px 0 64px;
}

.page-hero h1 { color: #fff; margin-bottom: 0.3em; }
.page-hero .lede { color: rgba(244,241,234,0.78); max-width: 620px; }

.badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(182,138,53,0.15);
  color: var(--gold-light);
  border: 1px solid rgba(182,138,53,0.4);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.post-card .post-media {
  height: 170px;
  background: linear-gradient(135deg, var(--navy-deep), var(--gold));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.9;
}

.post-card .post-body { padding: 1.6rem 1.7rem 1.9rem; flex: 1; display: flex; flex-direction: column; }

.post-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.post-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.post-card p { color: var(--muted); font-family: 'Inter', sans-serif; font-size: 0.94rem; }
.post-card .read-more {
  margin-top: auto;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--navy-deep);
}
.post-card .read-more:hover { color: var(--gold); }

.post-hero-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(244,241,234,0.65);
  margin-bottom: 0.8rem;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.4rem;
  margin-top: 2em;
}

.article-body .figcap {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin: -0.6em 0 1.6em;
}

.article-body table { font-size: 0.88rem; }

.article-media {
  height: 320px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-deep), var(--gold));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 0.8rem;
}

.article-footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 720px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
}

.article-footer-nav a:hover { color: var(--gold); }

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold-light);
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}

.form-row { margin-bottom: 1.3rem; }

.form-row label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy-deep);
}

.form-row input,
.form-row textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}

.contact-meta { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }

.form-success {
  display: none;
  background: #eef7ee;
  border: 1px solid #bfe3bf;
  color: #205c20;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.approach-grid {
  align-items: center;
  gap: 3rem;
  grid-template-columns: 0.85fr 1fr 1fr;
}

.approach-grid .eyebrow { color: var(--gold-light); }
.approach-grid h2, .approach-grid strong { color: #fff; }

.photo-panel {
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
  min-height: 320px;
}

.photo-strip {
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
  height: 260px;
  margin: 3rem 0;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .approach-grid { grid-template-columns: 1fr 1fr; }
  .approach-grid .photo-panel { grid-column: 1 / -1; min-height: 240px; }
  .nav-links { display: none; }
  .hero { padding: 72px 0 84px; }
  section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
}
