:root {
  --navy: #0f1e3d;
  --navy-light: #1b2f5a;
  --gold: #c9a227;
  --gold-light: #e8c766;
  --text: #1f2937;
  --muted: #5b6573;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --border: #e3e8f0;
  --radius: 10px;
  --max: 1120px;
  --font-head: Cambria, Georgia, serif;
  --font-body: Calibri, "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

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

a { color: var(--navy-light); }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

section { padding: 5rem 0; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  font-size: 1.15rem;
}
.logo span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 6rem 0 5rem;
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--gold-light); }
.hero p.lead { color: #d6dcea; margin: 1.25rem 0 2rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-photo {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  border: 6px solid var(--gold);
  margin-inline: auto;
  background: var(--navy-light);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Stats */
.stats {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding: 2.5rem 0;
  gap: 1rem;
}
.stat-number {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
}
.stat-label { color: var(--muted); font-size: 0.95rem; }

/* Cards */
.grid-3, .grid-2 {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 10px 30px rgba(15, 30, 61, 0.1); transform: translateY(-3px); }
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 1rem;
}
.card p { color: var(--muted); }
.card a.more {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

/* Case studies */
.case {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
}
.case-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.case h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.case h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 1.75rem 0 0.75rem;
}
.case ul { padding-left: 1.25rem; }
.case li { margin-bottom: 0.6rem; }

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.result {
  background: var(--bg-soft);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
}
.result strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--navy);
  line-height: 1.1;
}
.result span { font-size: 0.92rem; color: var(--muted); }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6dcea; margin-bottom: 1.75rem; }

/* Page header (inner pages): matches the homepage hero */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 5rem 0 4rem;
}
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero .lead { color: #d6dcea; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #c7cfe0;
  padding: 2.5rem 0;
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.site-footer a { color: var(--gold-light); text-decoration: none; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-photo { order: -1; max-width: 260px; }
  .stats-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  section { padding: 3.5rem 0; }
  .case { padding: 1.5rem; }
}

.h1-sub { display: block; font-size: 0.5em; font-weight: 400; margin-top: 0.6rem; color: #d6dcea; font-family: var(--font-body); }

/* Two-column layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.plain-list { list-style: none; margin-top: 0.5rem; }
.plain-list li { position: relative; padding-left: 1.2rem; margin-bottom: 0.5rem; color: var(--muted); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* Timeline */
.timeline { margin-top: 2rem; border-left: 3px solid var(--gold); padding-left: 1.5rem; }
.timeline-item { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding-bottom: 1.75rem; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -2.05rem; top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); }
.timeline-years { color: var(--gold); font-weight: 700; font-size: 0.95rem; }
.timeline-item p { color: var(--muted); font-size: 0.97rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem; align-items: start; }
.contact-aside .btn { margin-top: 1rem; }
.contact-form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.contact-form button { justify-self: start; border: 0; cursor: pointer; font: inherit; }

@media (max-width: 860px) {
  .two-col, .contact-grid, .form-row { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .timeline-item::before { left: -2.05rem; }
}

/* Photos */
.about-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius); border: 6px solid var(--gold); }
.contact-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: center 25%; border: 4px solid var(--gold); margin-bottom: 1rem; }
@media (max-width: 860px) { .about-photo { max-width: 320px; margin-inline: auto; } }

.hero-solo { grid-template-columns: 1fr; max-width: 820px; }

/* About banner: navy text panel beside the photo */
.about-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
}
.about-banner-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem clamp(1.5rem, 5vw, 5rem);
}
.about-banner-text h1 { color: #fff; margin-bottom: 1rem; }
.about-banner-text .eyebrow { color: var(--gold-light); }
.about-banner-text .lead { color: #d6dcea; margin-bottom: 2rem; }
.about-banner-text .btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.about-banner-photo { position: relative; overflow: hidden; }
.about-banner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}
.about-banner-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(15,30,61,0) 25%);
}

/* Quick facts strip */
.facts { background: #fff; border-bottom: 1px solid var(--border); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 2rem 0; text-align: center; }
.fact-value { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.fact-label { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 860px) {
  .about-banner { grid-template-columns: 1fr; min-height: auto; }
  .about-banner-photo { height: 380px; order: -1; }
  .about-banner-photo::after { background: linear-gradient(0deg, var(--navy) 0%, rgba(15,30,61,0) 35%); }
  .facts-grid { grid-template-columns: 1fr; }
}

/* Contact split layout: portrait photo beside the form */
.contact-split { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; }
.contact-portrait {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--gold);
  background: var(--navy);
}
.contact-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.contact-portrait-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 3rem 1.5rem 1.5rem;
  background: linear-gradient(0deg, var(--navy) 0%, rgba(15,30,61,0) 100%);
  color: #fff;
}
.contact-portrait-caption strong { display: block; font-family: var(--font-head); font-size: 1.3rem; }
.contact-portrait-caption span { color: #d6dcea; font-size: 0.95rem; }
.contact-intro h2 { margin-bottom: 0.75rem; }
.contact-points { list-style: none; margin: 1.25rem 0 1.75rem; display: grid; gap: 0.75rem; }
.contact-points li { color: var(--muted); padding-left: 1.6rem; position: relative; }
.contact-points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.contact-form-card { margin-top: 1.5rem; }
@media (max-width: 860px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-portrait { max-width: 360px; margin-inline: auto; width: 100%; }
}

/* Breadcrumbs (for dark header bands) */
.breadcrumbs { margin-bottom: 1.25rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.breadcrumbs li { color: #d6dcea; }
.breadcrumbs li + li::before { content: "\203A"; color: var(--gold-light); margin-right: 0.5rem; }
.breadcrumbs a { color: var(--gold-light); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: #fff; font-weight: 600; }

/* Blog */
.breadcrumbs { margin-bottom: 1rem; }
.post-tags { margin-bottom: 1rem; }
.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 3px 12px;
  margin: 0 6px 6px 0;
  background: transparent;
}
.page-hero .tag { color: var(--gold-light); border-color: var(--gold-light); }
.blog-meta-hero { color: #d6dcea; margin-top: 0.75rem; font-size: 0.95rem; }
.blog-meta { color: var(--muted); font-size: 0.95rem; margin-top: 1.5rem; }
.post-list { max-width: 860px; }
.post-card h2 { font-size: 1.5rem; margin-top: 0; }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover { color: var(--gold); }
.post-card p { color: var(--muted); }
.post-body { max-width: 760px; margin: 0 auto; }
.post-body p, .post-body li { font-size: 1.05rem; color: var(--text); }
.post-body ul, .post-body ol { padding-left: 1.4rem; margin: 0.75rem 0 1.25rem; }
.post-body li { margin-bottom: 0.45rem; }
.post-body h2 { margin-top: 2.5rem; }
.post-body h3 { margin-top: 1.8rem; }
.post-body hr { border: 0; border-top: 1px solid var(--border); margin: 3rem 0; }
.post-body .meta { color: var(--muted); }
ul.checks { list-style: none; padding-left: 0; }
ul.checks li { padding-left: 0.2rem; }
.callout {
  border-left: 4px solid var(--gold);
  background: var(--bg-soft);
  padding: 1rem 1.4rem;
  margin: 2rem 0;
  color: var(--navy);
  border-radius: 0 8px 8px 0;
}
.author-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.author-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius);
  border: 6px solid var(--gold);
}
.author-text p { color: var(--text); }
.author-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.author-links a { font-weight: 700; color: var(--navy-light); text-decoration: none; }
.author-links a:hover { color: var(--gold); }
@media (max-width: 860px) {
  .author-layout { grid-template-columns: 1fr; }
  .author-photo { max-width: 320px; margin-inline: auto; display: block; }
}

/* Post visuals */
.post-figure { margin: 2rem 0; }
.post-figure img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); display: block; }
.post-feature { margin-top: 0; }
.post-figure figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 0.6rem; font-style: italic; }
.post-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 0.5rem; font-size: 0.97rem; background: #fff; border-radius: var(--radius); overflow: hidden; }
.post-table th { background: var(--navy); color: #fff; text-align: left; padding: 0.75rem 0.9rem; font-family: var(--font-body); }
.post-table td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.post-table tbody tr:nth-child(even) td { background: var(--bg-soft); }
.table-note { font-size: 0.88rem; color: var(--muted); }
.box { background: var(--bg-soft); border: 1px solid var(--border); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.box-title { font-family: var(--font-body); font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin-bottom: 0.4rem; }
.box p { margin: 0; color: var(--navy); }
.flow { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin: 2rem auto; max-width: 480px; }
.flow-box { width: 100%; background: #fff; border: 2px solid var(--navy); color: var(--navy); border-radius: var(--radius); padding: 0.9rem 1.2rem; text-align: center; font-weight: 600; font-family: var(--font-body); }
.flow-result { background: var(--navy); color: #fff; border-color: var(--gold); }
.flow-arrow { color: var(--gold); font-weight: 700; font-size: 0.9rem; font-family: var(--font-body); }
.flow-note { color: var(--muted); font-size: 0.95rem; text-align: center; }
ul.plain-bullets { list-style: disc; padding-left: 1.4rem; }
ul.plain-bullets li { margin-bottom: 0.45rem; }
