/* =====================================================
   Cirta LLC — Stylesheet
   Where Strategy Meets Precision
   ===================================================== */

/* -------- 1. Brand tokens -------- */
:root {
  /* Brand palette */
  --navy: #0C447C;
  --navy-deep: #061F3B;
  --gold: #A07840;
  --gold-light: #C39B5F;
  --ivory: #F5F2EC;
  --ivory-warm: #FAF7F1;
  --white: #FFFFFF;
  --line: rgba(12, 68, 124, 0.12);
  --line-strong: rgba(12, 68, 124, 0.25);
  --text: #0C447C;
  --text-soft: rgba(12, 68, 124, 0.72);
  --text-muted: rgba(12, 68, 124, 0.55);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'EB Garamond', Garamond, Georgia, serif;
  --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Spacing & layout */
  --max-width: 1240px;
  --max-narrow: 920px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4rem, 9vw, 7.5rem);
}

/* -------- 2. Reset & base -------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

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

a { color: var(--navy); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold); }

::selection { background: var(--navy); color: var(--ivory); }

/* -------- 3. Typography -------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--navy);
  margin: 0 0 1rem;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1.25rem; color: var(--text-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
  display: inline-block;
}

.eyebrow.muted { color: var(--text-muted); }

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.55;
  color: var(--navy);
  font-weight: 400;
  margin: 0 0 2rem;
}

.text-center { text-align: center; }

/* -------- 4. Layout primitives -------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: var(--section-pad) 0; }

.divider {
  height: 1px;
  background: var(--line);
  margin: 0 auto;
  max-width: 80px;
}

.divider-gold {
  height: 1px;
  background: var(--gold);
  width: 60px;
  margin: 0 0 1.5rem;
}

/* -------- 5. Header / Navigation -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo__mark {
  width: 38px;
  height: 38px;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-logo__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.site-logo__sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.site-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  position: relative;
  padding: 0.25rem 0;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after { width: 100%; }

.site-nav a.is-active { color: var(--navy); }

.nav-cta {
  background: var(--navy);
  color: var(--ivory) !important;
  padding: 0.65rem 1.4rem !important;
  border-radius: 2px;
  font-size: 0.78rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.nav-cta:hover { background: var(--navy-deep); color: var(--ivory) !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { max-height: 500px; padding: 1rem 0 1.5rem; }
  .site-nav a { padding: 0.85rem var(--gutter); border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .nav-cta { margin: 1rem var(--gutter) 0; text-align: center; }
}

/* -------- 6. Hero -------- */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 9vw, 6rem);
  background: var(--ivory);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(160, 120, 64, 0.04) 18px, rgba(160, 120, 64, 0.04) 19px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
}

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1.15;
}

.hero__visual-frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  transform: translate(20px, 20px);
}

.hero__visual-mark {
  position: absolute;
  inset: 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.hero__visual-mark svg {
  width: 100%;
  height: 100%;
  max-width: 220px;
}

.hero h1 { margin-bottom: 1.5rem; }

.hero__title-italic {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.hero__meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
}

.hero__meta-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.hero__meta-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-top: 0.25rem;
}

/* -------- 7. Buttons -------- */
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.85rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--ivory);
  transition: all 0.25s ease;
  border-radius: 2px;
}

.btn:hover { background: var(--navy-deep); color: var(--ivory); border-color: var(--navy-deep); }

.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--ivory); }

.btn--gold { background: var(--gold); border-color: var(--gold); }
.btn--gold:hover { background: var(--navy); border-color: var(--navy); }

.btn__arrow { transition: transform 0.25s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* -------- 8. Section: Mark line / Quote -------- */
.section-light { background: var(--ivory); }
.section-warm { background: var(--ivory-warm); }
.section-dark { background: var(--navy); color: var(--ivory); }
.section-dark h2, .section-dark h3, .section-dark .lede { color: var(--ivory); }
.section-dark p { color: rgba(245, 242, 236, 0.78); }
.section-dark .eyebrow { color: var(--gold-light); }

.heritage-quote {
  text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
}

.heritage-quote::before {
  content: '';
  display: block;
  width: 1px;
  height: 60px;
  background: var(--gold);
  margin: 0 auto 2.5rem;
}

.heritage-quote q {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.4;
  color: var(--ivory);
  max-width: 760px;
  margin: 0 auto 2rem;
  font-weight: 400;
  quotes: '\201C' '\201D';
}

.heritage-quote q::before { content: open-quote; opacity: 0.4; }
.heritage-quote q::after { content: close-quote; opacity: 0.4; }

.heritage-quote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* -------- 9. Section header pattern -------- */
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}

.section-head--left {
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  text-align: left;
}

.section-head h2 { margin-bottom: 1rem; }

.section-head p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-soft);
}

/* -------- 10. Services grid -------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--ivory);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
  position: relative;
}

.service-card:hover { background: var(--ivory-warm); }

.service-card__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.service-card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.5rem;
  color: var(--navy);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}

.service-card p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

/* -------- 11. Sectors strip -------- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

@media (max-width: 900px) {
  .sectors-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

.sector-tile {
  padding: 2rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  background: var(--ivory);
  transition: background 0.25s ease;
  text-align: center;
  min-height: 130px;
}

.sector-tile:hover { background: var(--ivory-warm); }

.sector-tile__dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.sector-tile__name {
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
}

/* -------- 12. Approach / Why Cirta -------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem 3rem;
}

.pillar {
  position: relative;
  padding-left: 1.5rem;
  border-left: 1px solid var(--gold);
}

.pillar h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.005em;
}

.pillar p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

/* -------- 13. Engagement models -------- */
.engagements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.engagement-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 2.25rem 2rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.engagement-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.engagement-card__type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.engagement-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.engagement-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* -------- 14. CTA strip -------- */
.cta-strip {
  text-align: center;
  padding: clamp(4rem, 8vw, 6.5rem) var(--gutter);
  position: relative;
}

.cta-strip h2 {
  margin-bottom: 1.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta-strip p {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.cta-strip .btn-row { justify-content: center; }

/* -------- 15. Footer -------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(245, 242, 236, 0.78);
  padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .site-logo__name { color: var(--ivory); }
.footer-brand .site-logo__sub { color: var(--gold-light); }
.footer-brand p {
  font-size: 0.9rem;
  margin-top: 1.25rem;
  max-width: 320px;
  color: rgba(245, 242, 236, 0.6);
}

.footer-col h4 {
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.65rem; font-size: 0.92rem; }
.footer-col a {
  color: rgba(245, 242, 236, 0.7);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(245, 242, 236, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(245, 242, 236, 0.5);
}

/* -------- 16. About / Story page styles -------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

@media (max-width: 800px) { .story-grid { grid-template-columns: 1fr; } }

.story-pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  line-height: 1.5;
  color: var(--navy);
  border-left: 2px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2rem;
  border-left: 1px solid var(--line);
  margin-left: 8px;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
}

.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }

.timeline__year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.timeline__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.timeline__body {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0;
}

/* -------- 17. Contact page -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-block {
  background: var(--ivory-warm);
  border: 1px solid var(--line);
  padding: 2.5rem;
}

.contact-block + .contact-block { margin-top: 1.5rem; }

.contact-block h3 {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }

.contact-list__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 90px;
}

.contact-list__value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
}

.contact-list__value a { color: var(--navy); }
.contact-list__value a:hover { color: var(--gold); }

/* Form */
.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; }

.form-field label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  background: var(--ivory);
  border: 1px solid var(--line-strong);
  color: var(--navy);
  transition: border-color 0.2s ease;
  border-radius: 2px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--gold);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--font-body);
}

.form-status {
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(160, 120, 64, 0.1);
  color: var(--gold);
  border: 1px solid var(--gold);
}

.form-status.is-error {
  display: block;
  background: rgba(180, 50, 50, 0.08);
  color: #b03232;
  border: 1px solid rgba(180, 50, 50, 0.3);
}

/* -------- 18. Reveal animation -------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* -------- 19. Page header (interior pages) -------- */
.page-header {
  background: var(--ivory-warm);
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; right: -10%;
  width: 50%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(160, 120, 64, 0.05) 20px,
    rgba(160, 120, 64, 0.05) 21px
  );
  pointer-events: none;
}

.page-header__inner { position: relative; }

.page-header h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0;
}

.crumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: block;
}

/* -------- 20. Service detail rows -------- */
.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}

@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 0; }
}

.service-row__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  padding-top: 0.3rem;
}

.service-row h3 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 500;
}

.service-row__body p { margin-bottom: 1rem; }

.service-row__body ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 540px) { .service-row__body ul { columns: 1; } }

.service-row__body li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-soft);
  break-inside: avoid;
}

.service-row__body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* -------- 21. Utility -------- */
.spacer-sm { height: 2rem; }
.spacer-md { height: 4rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--navy);
  color: var(--ivory);
  padding: 0.5rem 1rem;
  z-index: 100;
}


/* =====================================================
   Mobile & Accessibility Polish
   ===================================================== */

/* Better tap targets on mobile (Google's recommended minimum is 48x48px) */
@media (max-width: 860px) {
  .site-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav-cta {
    min-height: 48px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .btn {
    min-height: 48px;
    padding: 0.95rem 1.6rem;
  }
  .footer-col a, .footer-col li {
    padding: 0.25rem 0;
  }
}

/* Smaller logo on mobile so it doesn't dominate the header */
@media (max-width: 600px) {
  .site-logo__mark {
    height: 56px !important;
  }
  .site-header__inner {
    padding: 0.85rem var(--gutter);
  }
  .footer-brand .site-logo__mark {
    height: 50px !important;
  }
}

/* Sectors grid on mobile — stack 2 columns */
@media (max-width: 700px) {
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 420px) {
  .sectors-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Service grid on tablet — 2 columns instead of 3 */
@media (max-width: 900px) and (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Stack engagement cards on mobile */
@media (max-width: 700px) {
  .engagements {
    grid-template-columns: 1fr !important;
  }
  .pillars {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
}

/* Service rows — better mobile flow */
@media (max-width: 760px) {
  .service-row {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
  .service-row__num {
    font-size: 0.78rem;
  }
  .service-row__body ul {
    columns: 1 !important;
  }
}

/* Hero meta wraps cleaner on small screens */
@media (max-width: 540px) {
  .hero__meta {
    gap: 1.25rem !important;
  }
  .hero__meta-item {
    min-width: 45%;
  }
  .btn-row {
    width: 100%;
  }
  .btn-row .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Heading sizing finetune for very narrow phones */
@media (max-width: 380px) {
  body {
    font-size: 15px;
  }
  .hero__subtitle {
    font-size: 1rem;
  }
}

/* Improved focus states for keyboard navigation (a11y) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 0;
}

/* Hover states only on devices that support hover (avoid sticky hover on mobile) */
@media (hover: none) {
  .service-card:hover { background: var(--ivory); }
  .sector-tile:hover { background: var(--ivory); }
  .engagement-card:hover { transform: none; border-color: var(--line); }
}

/* iOS notch / safe-area handling */
@supports (padding: max(0px)) {
  .site-header__inner,
  .site-footer .container,
  .container {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
}

/* Smooth scroll only when allowed by user preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print stylesheet */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .btn,
  .cta-strip {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
    font-size: 11pt;
  }
  a {
    text-decoration: underline;
    color: black !important;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }
  .container, .container-narrow {
    max-width: 100%;
  }
  section { padding: 1.5rem 0 !important; }
}

/* -------- 22. Legal pages (Terms, Privacy) -------- */
.legal-prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-soft, #2a3a52);
}

.legal-prose h2 {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  color: var(--navy);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line, rgba(12, 68, 124, 0.12));
  scroll-margin-top: 6rem;
}

.legal-prose h3 {
  font-family: var(--font-sans, 'Inter Tight', sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 1.85rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.005em;
}

.legal-prose p {
  margin: 0 0 1.05rem;
}

.legal-prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.3rem;
}

.legal-prose ul li {
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
}

.legal-prose ul li::marker {
  color: var(--gold);
}

.legal-prose strong {
  color: var(--navy);
  font-weight: 600;
}

.legal-prose a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(160, 120, 64, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.legal-prose a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.legal-prose .lede {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--navy);
  margin: 1.5rem 0 2.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--ivory-warm);
}

.legal-meta {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted, #5a6b82);
  text-transform: uppercase;
  padding: 0.6rem 0.9rem;
  background: var(--ivory-warm);
  border: 1px solid var(--line, rgba(12, 68, 124, 0.1));
  display: inline-block;
  margin-bottom: 2rem;
}

.legal-meta strong {
  color: var(--navy);
  font-weight: 600;
}

.legal-footnote {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line, rgba(12, 68, 124, 0.1));
  font-size: 0.85rem;
  color: var(--text-muted, #5a6b82);
  font-style: italic;
}

@media (max-width: 640px) {
  .legal-prose { font-size: 0.95rem; line-height: 1.7; }
  .legal-prose h2 { margin-top: 2.25rem; }
  .legal-meta { font-size: 0.72rem; padding: 0.5rem 0.75rem; }
  .legal-prose .lede { padding: 1rem 1.15rem; font-size: 1.1rem; }
}

/* -------- 23. Footer social icons -------- */
.footer-social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 1.75rem 0 0;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(245, 242, 236, 0.12);
}

.footer-social-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.55);
  margin-right: 0.5rem;
  font-weight: 500;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(245, 242, 236, 0.18);
  border-radius: 50%;
  color: rgba(245, 242, 236, 0.7);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  color: var(--navy-deep);
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}

.footer-social a svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  display: block;
}

@media (max-width: 540px) {
  .footer-social { flex-wrap: wrap; }
  .footer-social-label { width: 100%; margin-bottom: 0.5rem; margin-right: 0; }
}

/* -------- 24. Content protection -------- */
/* Disable text selection site-wide except inside form fields. */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Block image dragging */
img, svg {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}
