/* =========================================================
   The Office of Corporate Diplomacy & Strategic Services
   Modern minimal — Navy + Gold accent
   ========================================================= */

:root {
  --navy: #0F2C4D;
  --navy-deep: #0A1F38;
  --navy-soft: #4A6184;
  --gold: #B8893A;
  --gold-soft: #C99F5C;

  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --surface-alt: #F4F2EC;
  --border: #E5E2DA;
  --border-soft: #EDEAE2;

  --text: #1A1F2C;
  --text-muted: #5C6470;
  --text-faint: #9097A1;

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --container-narrow: 880px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius: 2px;

  --shadow-sm: 0 1px 2px rgba(15, 44, 77, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 44, 77, 0.06);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
/*
  Header layout
  -------------
  Use a fixed header height that the logo, nav, and toggle all align to.
  This prevents layout shift when the logo image loads (intrinsic ratio
  applied via width/height attrs in the markup) and guarantees the nav
  and brand share the same baseline on every viewport.
*/
:root {
  --header-height-desktop: 140px;
  --header-height-tablet: 116px;
  --header-height-mobile: 88px;
  --logo-height-desktop: 120px;
  --logo-height-tablet: 96px;
  --logo-height-mobile: 68px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-height-desktop);
  padding-top: 0;
  padding-bottom: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--navy);
  line-height: 0;          /* kill inline gap under the image */
}
.brand img.brand-logo {
  height: var(--logo-height-desktop);
  width: auto;
  max-height: 100%;
  display: block;
}
.site-nav {
  display: flex;
  align-items: center;     /* explicit vertical centring of links */
  gap: 2.25rem;
  flex: 0 0 auto;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
  transition: color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--navy); }
.site-nav a.active { color: var(--navy); font-weight: 500; }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  flex: 0 0 auto;
  align-self: center;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  opacity: 0;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.75rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 16ch;
  margin-bottom: 1.75rem;
}
.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  color: var(--navy);
  border-color: transparent;
  padding: 0.95rem 0;
}
.btn-ghost:hover { color: var(--gold); }

/* ---------- Generic sections ---------- */
.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--border-soft);
}
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
  max-width: 22ch;
}

/* ---------- Clients strip ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem 3rem;
  margin-top: 1rem;
}
.client-grid > div {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.client-grid > div span {
  display: block;
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.4rem;
}

/* ---------- Positioning two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.positioning-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.positioning-text p:last-child { margin-bottom: 0; }

/* ---------- Service grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  margin-top: 1.5rem;
}
.service-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  transition: background 0.3s var(--ease);
  position: relative;
}
.service-card:hover { background: var(--surface-alt); }
.service-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.875rem;
  line-height: 1.25;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.link-arrow {
  font-size: 0.8rem;
  color: var(--navy);
  letter-spacing: 0.04em;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.link-arrow:hover { color: var(--gold); }

/* ---------- Pull quote ---------- */
.section-quote {
  background: var(--navy);
  color: #fff;
  border-top: 0;
}
.section-quote blockquote {
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
}
.section-quote blockquote p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 1.75rem;
}
.section-quote footer {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---------- CTA ---------- */
.section-cta { background: var(--surface-alt); border-top: 0; }
.cta-inner {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto;
}
.cta-inner h2 {
  margin: 0 auto 1.25rem;
}
.cta-inner p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.025rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #C8D0DC;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 0;
  font-size: 0.875rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: 3rem;
}
.footer-mark { margin-bottom: 1.5rem; }
.footer-mark img.footer-logo {
  height: 96px;
  width: auto;
  display: block;
  max-width: 100%;
}
.footer-tagline {
  color: #8893A6;
  font-size: 0.875rem;
  max-width: 36ch;
  line-height: 1.55;
  margin-top: 0.25rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-cols a, .footer-cols .footer-line {
  display: block;
  padding: 0.3rem 0;
  color: #B5BFCE;
  font-size: 0.85rem;
  transition: color 0.2s var(--ease);
}
.footer-cols a:hover { color: var(--gold-soft); }
.footer-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-base {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 0.75rem;
  color: #6D7A8E;
}

/* ---------- Internal page styles ---------- */
.page-hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 20ch;
  margin-bottom: 1.5rem;
}
.page-hero .lead {
  max-width: 60ch;
  margin-bottom: 0;
}

.prose {
  max-width: 70ch;
  margin: 0 auto;
  color: var(--text);
  font-size: 1.025rem;
  line-height: 1.75;
}
.prose p { margin-bottom: 1.5rem; color: var(--text-muted); }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65rem;
  color: var(--navy);
  margin: 3.5rem 0 1.25rem;
  line-height: 1.25;
}
.prose h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  letter-spacing: 0.01em;
  margin: 2rem 0 0.5rem;
}

.detail-block {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--border-soft);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.detail-grid h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.detail-grid .detail-num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.detail-grid p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.75;
}
.detail-grid ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.detail-grid li {
  position: relative;
  padding: 0.875rem 0 0.875rem 1.5rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.95rem;
  color: var(--text);
}
.detail-grid li:last-child { border-bottom: 1px solid var(--border-soft); }
.detail-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Approach: principles ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}
.principle {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.principle-num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 0.875rem;
  letter-spacing: 0.04em;
}
.principle h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.principle p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- About: stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---------- Contact form ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.contact-info p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.975rem;
  line-height: 1.7;
}
.contact-detail {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.contact-detail dt {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.contact-detail dd {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--navy);
}
.contact-detail dd a:hover { color: var(--gold); }

form { display: grid; gap: 1.5rem; }
.field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 0;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  transition: border-color 0.2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-bottom-color: var(--navy);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.consent {
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.55;
}
.consent input { width: auto; margin-top: 0.25rem; }
.form-status {
  font-size: 0.875rem;
  color: var(--gold);
  min-height: 1.25rem;
}

/* ---------- Responsive ---------- */

/* Tablet / small laptop — keep horizontal nav but shrink logo & header */
@media (max-width: 1024px) {
  .header-inner { min-height: var(--header-height-tablet); }
  .brand img.brand-logo { height: var(--logo-height-tablet); }
  .site-nav { gap: 1.75rem; }
}

/* Phone & narrow tablet — collapse nav to drawer */
@media (max-width: 880px) {
  .header-inner { min-height: var(--header-height-mobile); }
  .brand img.brand-logo { height: var(--logo-height-mobile); }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a {
    padding: 0.95rem 1.5rem;
    border-top: 1px solid var(--border-soft);
    font-size: 1rem;
  }
  .site-nav a.active::after { display: none; }
  .two-col, .detail-grid, .contact-layout, .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .field-row { grid-template-columns: 1fr; }
}

/* iPhone Pro & smaller — tighten further so logo never crowds the toggle */
@media (max-width: 480px) {
  :root {
    --header-height-mobile: 80px;
    --logo-height-mobile: 60px;
  }
  .footer-cols { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; }
}

/* Very small viewports (iPhone SE, Galaxy S8) */
@media (max-width: 374px) {
  :root {
    --header-height-mobile: 72px;
    --logo-height-mobile: 52px;
  }
}

/* ---------- Privacy / Policy page ---------- */
.policy-meta {
  max-width: 70ch;
  margin: 0 auto 3rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--border-soft);
  background: var(--surface-alt);
}
.policy-meta dl {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
}
.policy-meta dt {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding-top: 0.15rem;
}
.policy-meta dd {
  margin: 0;
  color: var(--text-muted);
}
.policy-meta dd a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.policy-meta dd a:hover { color: var(--gold); }

.prose ul.policy-list,
.prose ol.policy-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  counter-reset: policy-counter;
}
.prose ul.policy-list li,
.prose ol.policy-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.75rem;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}
.prose ul.policy-list li:last-child,
.prose ol.policy-list li:last-child {
  border-bottom: 1px solid var(--border-soft);
}
.prose ul.policy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 8px;
  height: 1px;
  background: var(--gold);
}
.prose ol.policy-list {
  counter-reset: policy-counter;
}
.prose ol.policy-list li {
  counter-increment: policy-counter;
  padding-left: 2.5rem;
}
.prose ol.policy-list li::before {
  content: counter(policy-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.prose strong { color: var(--navy); font-weight: 600; }
.prose em { font-style: italic; color: var(--navy); }
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); }

@media (max-width: 600px) {
  .policy-meta { padding: 1.25rem 1.25rem; }
  .policy-meta dl { grid-template-columns: 1fr; gap: 0.15rem 0; }
  .policy-meta dt { padding-top: 0.6rem; }
  .policy-meta dt:first-child { padding-top: 0; }
}
