/* v1774291585 */
/* ============================================================
   CAVALIER TECHNOLOGY GROUP
   Bimodal palette: Ivory light sections + Deep ink dark sections
   Inspired by: The Historic Cavalier Hotel (1927) & Duke Humfrey's Library
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600;1,700&family=Lora:ital,wght@0,400;0,500;1,400;1,500&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap');

/* ── Tokens ── */
:root {
  /* Light mode — aged ivory */
  --ivory:        #F8F4EC;
  --ivory-dim:    #EEE8D8;
  --ivory-card:   #FFFDF8;
  --ivory-border: #D4C9B0;
  --ivory-rule:   #C0B498;

  /* Dark mode — deep library oak */
  --oak:          #1C1710;
  --oak-surface:  #241E14;
  --oak-card:     #2A231A;
  --oak-border:   #3A3020;
  --oak-rule:     #4A3E2C;

  /* Brass — ornament only */
  --brass:        #8C6A2E;
  --brass-mid:    #A07C3A;
  --brass-light:  #C49A50;
  --brass-faint:  #6A5022;

  /* Text — light contexts */
  --ink-900:  #0D0A05;
  --ink-700:  #1C1508;
  --ink-500:  #2E2416;
  --ink-300:  #4A3E28;
  --ink-100:  #6A5C44;

  /* Text — dark contexts */
  --parch-900: #FDFAF4;
  --parch-700: #EFE5CC;
  --parch-500: #D8C9A8;
  --parch-300: #B8A67E;
  --parch-100: #7A6A54;

  /* Layout */
  --nav-h:   80px;
  --max-w:   1200px;
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);

  /* Type */
  --serif-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --serif-body:    'Lora', Georgia, 'Times New Roman', serif;
  --serif-caption: 'Cormorant Garamond', Georgia, serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--serif-body);
  background: var(--ivory);
  color: var(--ink-900);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* Explicit text rendering */
body, p, li, span, a, button, input, textarea, label {
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.section    { padding: 112px 0; }
.section-sm { padding: 72px 0; }
.sr-only    { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif-caption);
  font-size: 0.75rem;
  font-style: italic;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--brass);
  opacity: 0.7;
}
.eyebrow.no-rule::before, .eyebrow.no-rule::after { display: none; }

/* Dark section eyebrow */
.dark .eyebrow { color: var(--brass-light); }
.dark .eyebrow::before, .dark .eyebrow::after { background: var(--brass-light); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--serif-display);
  line-height: 1.1;
  font-weight: 700;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); letter-spacing: -0.01em; line-height:1.2; }
h4 { font-size: 1.2rem; font-weight: 600; line-height:1.3; }

p   { font-size: 1.15rem; line-height: 1.95; color: var(--ink-700); }
.dark p { color: var(--parch-900); }

/* Large lead text */
.lead {
  font-family: var(--serif-body);
  font-size: 1.25rem;
  line-height: 1.85;
  color: var(--ink-700);
  font-weight: 400;
}
.dark .lead { color: var(--parch-900); }

/* ── Dark section utility ── */
.dark {
  background: var(--oak);
  color: var(--parch-900);
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--parch-900); }

/* ── Brass ornament rules ── */
/* Brass horizontal rule */

.dark /* Brass horizontal rule */
.brass-hr {
  background: linear-gradient(90deg, transparent, var(--brass-light) 30%, var(--brass-light) 70%, transparent);
  opacity: 0.3;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif-caption);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: none;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
}
/* Primary on light bg */
.btn-dark {
  padding: 18px 40px;
  background: var(--oak);
  color: var(--parch-900);
  border: 1px solid var(--oak);
}
.btn-dark:hover {
  background: var(--oak-surface);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(22,18,12,0.2);
}
/* Primary on dark bg */
.btn-light {
  padding: 18px 40px;
  background: var(--ivory);
  color: var(--oak);
  border: 1px solid var(--ivory);
}
.btn-light:hover {
  background: var(--ivory-card);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(242,236,224,0.15);
}
/* Outline on light */
.btn-outline-dark {
  padding: 15px 35px;
  background: transparent;
  color: var(--ink-900);
  border: 1px solid var(--ivory-border);
}
.btn-outline-dark:hover { border-color: var(--brass); color: var(--brass); }
/* Outline on dark */
.btn-outline-light {
  padding: 15px 35px;
  background: transparent;
  color: var(--parch-700);
  border: 1px solid var(--oak-rule);
}
.btn-outline-light:hover { border-color: var(--brass-light); color: var(--brass-light); }
/* Ghost */
.btn-ghost-dark {
  padding: 0;
  background: transparent;
  color: var(--brass);
  font-family: var(--serif-caption);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  border: none;
}
.btn-ghost-dark::after { content: '→'; transition: transform 0.25s; }
.btn-ghost-dark:hover { color: var(--ink-900); }
.btn-ghost-dark:hover::after { transform: translateX(5px); }
.btn-ghost-light {
  padding: 0;
  background: transparent;
  color: var(--brass-light);
  font-family: var(--serif-caption);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  border: none;
}
.btn-ghost-light::after { content: '→'; transition: transform 0.25s; }
.btn-ghost-light:hover { color: var(--parch-900); }
.btn-ghost-light:hover::after { transform: translateX(5px); }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: var(--nav-h);
  background: rgba(242, 236, 224, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ivory-border);
  transition: all 0.3s;
}
.nav::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass) 30%, var(--brass) 70%, transparent);
  opacity: 0.35;
}
.nav.scrolled { background: rgba(242, 236, 224, 0.99); box-shadow: 0 4px 24px rgba(22,18,12,0.08); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 40px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-logo-mark {
  width: 42px; height: 42px;
  border: 1px solid var(--brass);
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
}
.nav-logo-mark::before, .nav-logo-mark::after {
  content: ''; position: absolute;
  width: 7px; height: 7px; border: 1px solid var(--brass); opacity: 0.6;
}
.nav-logo-mark::before { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.nav-logo-mark::after  { bottom: -4px; right: -4px; border-left: none; border-top: none; }
.nav-logo-sigil {
  font-family: var(--serif-display);
  font-size: 0.8rem; font-weight: 700;
  color: var(--brass); letter-spacing: 0.05em;
}
.nav-logo-text { display: flex; flex-direction: column; gap: 2px; }
.nav-logo-name {
  font-family: var(--serif-display);
  font-size: 1rem; font-weight: 700;
  color: var(--ink-900); line-height: 1; letter-spacing: 0.01em;
}
.nav-logo-sub {
  font-family: var(--serif-caption);
  font-size: 0.58rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--brass); line-height: 1; font-style: italic;
}

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-link {
  font-family: var(--serif-caption);
  font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-900);
  transition: color 0.2s; position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--brass); }
.nav-link.active::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; right: 0; height: 1px; background: var(--brass);
}
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 20px); left: -20px;
  background: var(--ivory-card); border: 1px solid var(--ivory-border);
  border-top: 2px solid var(--brass);
  min-width: 220px; padding: 8px 0;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: all 0.25s var(--ease);
  box-shadow: 0 20px 60px rgba(22,18,12,0.12);
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav-dropdown-item {
  display: block; padding: 12px 24px;
  font-family: var(--serif-caption); font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-500); transition: all 0.15s;
  border-left: 2px solid transparent;
}
.nav-dropdown-item:hover { color: var(--ink-900); border-left-color: var(--brass); padding-left: 30px; }

/* Hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 1px; background: var(--ink-900); transition: all 0.3s; }
.nav-mobile {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--ivory-card); z-index: 99;
  flex-direction: column; padding: 40px; gap: 0; overflow-y: auto;
  border-top: 2px solid var(--brass);
}
.nav-mobile.open { display: flex; }
.nav-mobile-link {
  display: block; padding: 18px 0;
  font-family: var(--serif-caption); font-size: 0.9rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-500); border-bottom: 1px solid var(--ivory-border); transition: color 0.2s;
}
.nav-mobile-link:hover { color: var(--ink-900); }
.nav-mobile-sub { font-size: 0.82rem; padding: 12px 0 12px 20px; color: var(--ink-300); letter-spacing: 0.1em; }

/* ── Footer ── */
footer {
  background: var(--oak);
  color: var(--parch-900);
  position: relative;
}
footer::before {
  content: ''; display: block; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass-faint) 20%, var(--brass) 50%, var(--brass-faint) 80%, transparent);
  opacity: 0.6;
}
.footer-inner { padding: 80px 0 36px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 60px;
  border-bottom: 1px solid var(--oak-rule); margin-bottom: 36px;
}
.footer-brand .nav-logo { margin-bottom: 24px; }
.footer-brand .nav-logo-name { color: var(--parch-900); }
.footer-brand p { font-size: 1rem; max-width: 300px; line-height: 1.8; color: var(--parch-700); }
.footer-col h5 {
  font-family: var(--serif-caption); font-size: 0.68rem; font-style: italic;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass-light);
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--oak-rule);
}
.footer-col a {
  display: block; font-family: var(--serif-caption); font-size: 0.88rem;
  color: var(--parch-700); padding: 7px 0; font-size:0.95rem; transition: color 0.2s; letter-spacing: 0.03em;
}
.footer-col a:hover { color: var(--parch-700); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-family: var(--serif-caption); font-size: 0.76rem; color: var(--parch-500); letter-spacing: 0.06em; margin: 0; }

/* ── HERO — dark, dramatic ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--oak); position: relative; overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg-image {
  position: absolute; inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  opacity: 0.45;
  z-index: 1;
}
/* Dark overlay with warm tint — lets hero image show through */
.hero::before { display: none; }
/* Grid — architectural drawing paper */
.hero::after { display: none; }
.hero-content { position: relative; z-index: 3; max-width: 780px; }

/* Provenance badge */
.hero-provenance {
  display: inline-flex; align-items: center; gap: 20px; margin-bottom: 48px;
}
.hero-provenance-line { width: 48px; height: 1px; background: var(--brass); opacity: 0.7; }
.hero-provenance-text {
  font-family: var(--serif-caption); font-size: 0.7rem; font-style: italic;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass-light);
}

/* Hero headline */
.hero h1 { color: var(--parch-900); margin-bottom: 32px; }
.hero h1 em { font-style: italic; color: var(--ivory-dim); font-weight: 400; }
.hero .lead { color: var(--parch-900); max-width: 560px; margin-bottom: 52px; font-size:1.15rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero bottom stats — like an inscription on a stone lintel */
.hero-register {
  margin-top: 96px;
  padding-top: 48px;
  border-top: 1px solid var(--oak-rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.hero-register-item {
  padding: 0 40px 0 0;
  border-right: 1px solid var(--oak-rule);
}
.hero-register-item:last-child { border-right: none; padding-right: 0; }
.hero-register-item:not(:first-child) { padding-left: 40px; }
.hero-register-num {
  font-family: var(--serif-display); font-size: 3rem; font-weight: 700;
  color: var(--parch-900); display: block; line-height: 1; letter-spacing: -0.02em;
}
.hero-register-label {
  font-family: var(--serif-caption); font-size: 0.85rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--parch-700); margin-top: 8px; display: block;
}

/* ── What sets us apart — dark band ── */
.distinction {
  background: var(--oak-surface);
  border-top: 1px solid var(--oak-border);
  border-bottom: 1px solid var(--oak-border);
  padding: 56px 0;
}
.distinction-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 0; flex-wrap: wrap;
}
.distinction-item {
  text-align: center; flex: 1;
  padding: 0 32px;
  border-right: 1px solid var(--oak-rule);
}
.distinction-item:last-child { border-right: none; }
.distinction-word {
  font-family: var(--serif-display); font-size: 1.5rem; font-weight: 700;
  color: var(--parch-900); display: block; line-height: 1; margin-bottom: 10px;
}
.distinction-desc {
  font-family: var(--serif-caption); font-size: 0.88rem; letter-spacing: 0.08em; color: var(--parch-900);
  text-transform: uppercase; color: var(--parch-300);
}

/* ── Cards — light context ── */
.card {
  background: var(--ivory-card); border: 1px solid var(--ivory-border);
  padding: 40px; position: relative; transition: all 0.35s var(--ease);
}
.card-corner-tl, .card-corner-br {
  position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--brass); opacity: 0; transition: opacity 0.35s;
}
.card-corner-tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.card-corner-br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.card:hover { border-color: var(--ivory-rule); box-shadow: 0 8px 48px rgba(22,18,12,0.08); }
.card:hover .card-corner-tl, .card:hover .card-corner-br { opacity: 1; }

/* Card number/icon */
.card-num {
  font-family: var(--serif-caption); font-size: 0.7rem; font-style: italic;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass);
  display: block; margin-bottom: 20px;
}
.card h3 { font-size: 1.6rem; color: var(--ink-900); margin-bottom: 14px; }
.card p { font-size: 0.95rem; color: var(--ink-700); }

/* Dark card variant */
.card-dark {
  background: var(--oak-card); border: 1px solid var(--oak-border);
  padding: 40px; position: relative; transition: all 0.35s var(--ease);
}
.card-dark:hover { border-color: var(--oak-rule); }
.card-dark h3, .card-dark h4 { color: var(--parch-900); }
.card-dark p { color: var(--parch-900); font-size: 1.1rem; }
.card-dark .card-num { color: var(--brass-light); }

/* ── Grids ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Section header ── */
.section-header { margin-bottom: 72px; }
.section-header.center { text-align: center; }
.section-header.center p { max-width: 560px; margin: 20px auto 0; }
.section-header p { max-width: 580px; margin-top: 20px; }

/* ── Featured services 2-col layout ── */
.service-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border: 1px solid var(--ivory-border); margin-bottom: 1px;
}
.service-row-visual {
  background: var(--oak); display: flex; align-items: center; justify-content: center;
  min-height: 400px; padding: 60px; position: relative; overflow: hidden;
}
.service-row-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(140,106,46,0.1) 0%, transparent 70%);
}
.service-row-visual-num {
  font-family: var(--serif-display); font-size: 10rem; font-weight: 900;
  color: var(--oak-border); line-height: 1; position: absolute;
  bottom: -20px; right: 20px; font-style: italic; user-select: none;
}
.service-row-visual-label {
  font-family: var(--serif-display); font-size: 2.5rem; font-weight: 700;
  color: #FEFCF8; position: relative; z-index: 1; text-align: center;
  line-height: 1.2;
}
.service-row-visual-label em { display: block; font-weight: 400; font-size: 1.1rem; color: var(--brass-light); margin-bottom: 10px; letter-spacing: 0.04em; }
.service-row-content { padding: 60px; background: var(--ivory-card); display: flex; flex-direction: column; justify-content: center; }
.service-row-content h3 { font-size: 1.8rem; color: var(--ink-900); margin-bottom: 16px; }
.service-row-content p { margin-bottom: 24px; }
.service-checklist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.service-checklist-item {
  display: flex; gap: 12px; align-items: flex-start;
  font-family: var(--serif-caption); font-size: 0.92rem;
  color: var(--ink-700); letter-spacing: 0.02em; line-height: 1.6;
}
.service-checklist-item::before { content: '◆'; color: var(--brass); font-size: 0.4rem; margin-top: 6px; flex-shrink: 0; }

/* ── Testimonials ── */
.testimonial {
  background: var(--oak); padding: 52px 48px;
  position: relative; overflow: hidden;
}
.testimonial::before {
  content: '\201C';
  font-family: var(--serif-display); font-size: 10rem; font-weight: 900;
  color: var(--brass); opacity: 0.1;
  position: absolute; top: -10px; left: 20px; line-height: 1; pointer-events: none;
}
.testimonial-text {
  font-family: var(--serif-display); font-size: 1.1rem; font-style: italic;
  line-height: 1.65; color: #FDFBF6; margin-bottom: 36px; position: relative; z-index: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 18px; }
.testimonial-monogram {
  width: 46px; height: 46px; border: 1px solid var(--oak-rule);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif-display); font-size: 1.1rem; font-weight: 700;
  color: var(--brass-light); flex-shrink: 0;
}
.testimonial-name { font-family: var(--serif-display); font-size: 1rem; font-weight: 600; color: var(--parch-900); }
.testimonial-role { font-family: var(--serif-caption); font-size: 0.78rem; color: var(--parch-300); letter-spacing: 0.08em; margin-top: 2px; }

/* ── Process steps ── */
.process { display: flex; flex-direction: column; }
.process-item {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--ivory-border); align-items: start;
}
.process-item:last-child { border-bottom: none; }
.process-num {
  font-family: var(--serif-caption); font-size: 0.8rem; font-style: italic;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass);
  padding-top: 4px;
}
.process-content h4 { font-size: 1.1rem; color: var(--ink-900); margin-bottom: 10px; }
.process-content p { font-size: 0.97rem; color: var(--ink-700); }

/* ── CTA Band — dark ── */
.cta-band {
  background: var(--oak); padding: 120px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(140,106,46,0.08) 0%, transparent 70%);
}

.cta-band h2 { color: var(--parch-900); margin-bottom: 20px; }
.cta-band .lead { color: var(--parch-500); max-width: 500px; margin: 0 auto 52px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Location band — ivory ── */
.location-band {
  background: var(--ivory-dim); border-top: 1px solid var(--ivory-border);
  border-bottom: 1px solid var(--ivory-border); padding: 64px 0;
}
.location-inner { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.location-mark { font-family: var(--serif-display); font-size: 2.5rem; color: var(--brass); flex-shrink: 0; }
.location-text h3 { font-size: 1.6rem; color: var(--ink-900); margin-bottom: 10px; }
.location-text p { margin: 0; }

/* ── Stats band — ivory ── */
.stats-band {
  background: var(--ivory-dim); border-top: 1px solid var(--ivory-border);
  border-bottom: 1px solid var(--ivory-border); padding: 72px 0;
}
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-block {
  text-align: center; padding: 0 32px;
  border-right: 1px solid var(--ivory-border);
}
.stat-block:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif-display); font-size: 3.5rem; font-weight: 700;
  color: var(--ink-900); display: block; line-height: 1; letter-spacing: -0.03em;
}
.stat-label { font-family: var(--serif-caption); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--parch-700); margin-top: 12px; display: block; }

/* ── FAQ ── */
.faq { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--ivory-border); }
.faq-question {
  width: 100%; text-align: left; padding: 28px 0;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--serif-display); font-size: 1.05rem; font-style: italic;
  color: var(--ink-900); transition: color 0.2s; line-height: 1.3;
}
.faq-question:hover { color: var(--brass); }
.faq-icon { font-size: 1.2rem; color: var(--brass); flex-shrink: 0; transition: transform 0.3s; font-family: var(--serif-display); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-answer-inner { padding: 0 0 28px; font-size: 1.15rem; line-height: 1.95; color: var(--ink-700); }

/* Dark FAQ variant */
.dark .faq-item { border-bottom-color: var(--oak-rule); }
.dark .faq-question { color: var(--parch-700); }
.dark .faq-question:hover { color: var(--brass-light); }
.dark .faq-icon { color: var(--brass-light); }
.dark .faq-answer-inner { color: var(--parch-500); }

/* ── Forms ── */
.form-group { margin-bottom: 28px; }
.form-label { display: block; font-family: var(--serif-caption); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 10px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 15px 18px;
  background: var(--ivory-card); border: 1px solid var(--ivory-border);
  color: var(--ink-900); font-family: var(--serif-body); font-size: 1rem;
  transition: border-color 0.25s; outline: none; border-radius: 0;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--brass); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-100); font-style: italic; }
.form-textarea { resize: vertical; min-height: 150px; }
.form-select { cursor: pointer; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--oak); padding: calc(var(--nav-h) + 80px) 0 96px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 70% 40%, rgba(140,106,46,0.08) 0%, transparent 65%);
}
.page-hero::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-faint) 20%, var(--brass) 50%, var(--brass-faint) 80%, transparent);
  opacity: 0.4;
}
.page-hero-content { position: relative; z-index: 1; max-width: 720px; }
.page-hero h1 { color: var(--parch-900); margin-bottom: 24px; }
.page-hero p { font-size: 1.1rem; max-width: 580px; color: var(--parch-500); line-height: 1.85; }
.page-hero .hero-actions { margin-top: 40px; }

/* ── Service detail layout ── */
.service-detail { display: grid; grid-template-columns: 1fr 360px; gap: 80px; align-items: start; }
.service-sticky { position: sticky; top: calc(var(--nav-h) + 24px); }
.sidebar-panel {
  background: var(--ivory-card); border: 1px solid var(--ivory-border);
  border-top: 3px solid var(--brass); padding: 36px;
}
.sidebar-panel h4 {
  font-family: var(--serif-caption); font-size: 0.7rem; font-style: italic;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--ivory-border);
}
.sidebar-list { display: flex; flex-direction: column; }
.sidebar-item {
  display: flex; gap: 14px; align-items: flex-start;
  font-family: var(--serif-caption); font-size: 0.9rem; color: var(--ink-500);
  padding: 11px 0; border-bottom: 1px solid var(--ivory-dim); letter-spacing: 0.03em;
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item::before { content: '◆'; color: var(--brass); font-size: 0.38rem; flex-shrink: 0; margin-top: 7px; }

/* Use cases */
.use-case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ivory-border); }
.use-case {
  background: var(--ivory-card); padding: 22px 24px;
  font-family: var(--serif-caption); font-size: 0.9rem; color: var(--ink-500);
  display: flex; gap: 14px; letter-spacing: 0.02em; line-height: 1.65;
}
.use-case::before { content: '◆'; color: var(--brass); font-size: 0.38rem; flex-shrink: 0; margin-top: 8px; }

/* ── Team cards ── */
.team-card {
  background: var(--ivory-card); border: 1px solid var(--ivory-border);
  padding: 40px; text-align: center; transition: border-color 0.3s;
}
.team-card:hover { border-color: var(--ivory-rule); box-shadow: 0 8px 48px rgba(22,18,12,0.06); }
.team-monogram {
  width: 80px; height: 80px; border: 1px solid var(--brass);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif-display); font-size: 1.8rem; font-weight: 700;
  color: var(--brass); margin: 0 auto 28px;
}
.team-card h4 { font-size: 1.3rem; color: var(--ink-900); margin-bottom: 4px; }
.team-role { font-family: var(--serif-caption); font-size: 0.72rem; font-style: italic; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); display: block; margin-bottom: 16px; }
.team-card p { font-size: 0.9rem; }

/* ── Timeline ── */
.timeline { display: flex; flex-direction: column; position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--brass), transparent); opacity: 0.4; }
.timeline-item { padding: 0 0 44px; position: relative; }
.timeline-dot { position: absolute; left: -34px; top: 6px; width: 10px; height: 10px; border: 1px solid var(--brass); background: var(--ivory-card); transform: rotate(45deg); }
.timeline-year { font-family: var(--serif-caption); font-size: 0.7rem; font-style: italic; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.timeline-item h4 { font-size: 1.1rem; color: var(--ink-900); margin-bottom: 8px; }
.timeline-item p { font-size: 0.9rem; }

/* ── Principle cards ── */
.principle-card { background: var(--ivory-card); border: 1px solid var(--ivory-border); padding: 36px; transition: border-color 0.3s; }
.principle-card:hover { border-color: var(--ivory-rule); }
.principle-num { font-family: var(--serif-caption); font-size: 0.68rem; font-style: italic; letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass); display: block; margin-bottom: 16px; }
.principle-card h4 { font-size: 1.15rem; color: var(--ink-900); margin-bottom: 12px; }

/* ── Contact layout ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 36px; }
.contact-detail { display: flex; gap: 20px; }
.contact-icon { width: 44px; height: 44px; border: 1px solid var(--ivory-border); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; color: var(--brass); }
.contact-label { font-family: var(--serif-caption); font-size: 0.68rem; font-style: italic; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); margin-bottom: 6px; }
.contact-value { font-family: var(--serif-caption); font-size: 0.92rem; color: var(--ink-500); display: block; transition: color 0.2s; }
.contact-value:hover { color: var(--ink-900); }

/* ── Region cards ── */
.region-card { background: var(--ivory-card); border: 1px solid var(--ivory-border); padding: 32px; transition: border-color 0.3s; display: flex; flex-direction: column; gap: 10px; }
.region-card:hover { border-color: var(--ivory-rule); }
.region-tag { font-family: var(--serif-caption); font-size: 0.68rem; font-style: italic; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
.region-card h4 { font-size: 1.2rem; color: var(--ink-900); }

/* ── Insights ── */
.filter-bar { display: flex; flex-wrap: wrap; margin-bottom: 60px; border: 1px solid var(--ivory-border); }
.filter-btn { padding: 14px 24px; border: none; border-right: 1px solid var(--ivory-border); background: transparent; color: var(--ink-300); font-family: var(--serif-caption); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: all 0.2s; }
.filter-btn:last-child { border-right: none; }
.filter-btn.active { background: var(--oak); color: var(--parch-700); }
.filter-btn:not(.active):hover { background: var(--ivory-dim); color: var(--ink-900); }

.article-card { background: var(--ivory-card); border: 1px solid var(--ivory-border); overflow: hidden; transition: all 0.3s; }
.article-card:hover { border-color: var(--ivory-rule); box-shadow: 0 8px 48px rgba(22,18,12,0.06); }
.article-thumb { height: 180px; background: var(--oak); border-bottom: 1px solid var(--ivory-border); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; position: relative; }
.article-tag { position: absolute; top: 16px; left: 16px; font-family: var(--serif-caption); font-size: 0.68rem; font-style: italic; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-light); }
.article-body { padding: 28px; }
.article-meta { display: flex; gap: 12px; font-family: var(--serif-caption); font-size: 0.72rem; color: var(--ink-100); letter-spacing: 0.1em; margin-bottom: 14px; }
.article-body h4 { font-family: var(--serif-display); font-size: 1.2rem; font-weight: 600; color: var(--ink-900); margin-bottom: 12px; line-height: 1.35; }
.article-body p { font-size: 1rem; line-height: 1.8; }

/* ── Map ── */
.map-embed { width: 100%; height: 320px; background: var(--ivory-dim); border: 1px solid var(--ivory-border); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--ink-300); font-family: var(--serif-caption); font-size: 0.85rem; letter-spacing: 0.1em; }

/* ── Check list ── */
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-item { display: flex; gap: 14px; align-items: flex-start; font-family: var(--serif-caption); font-size: 1.05rem; color: var(--ink-900); letter-spacing: 0.03em; line-height: 1.6; }
.check-item::before { content: '◆'; color: var(--brass); font-size: 0.38rem; flex-shrink: 0; margin-top: 7px; }
.dark .check-item { color: var(--parch-700); }
.dark .check-item::before { color: var(--brass-light); }

/* ── Scroll reveal ── */
.reveal { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.animate
.reveal.animate
.reveal.animate

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-sticky { position: static; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat-block { border-right: none; }
  .service-row { grid-template-columns: 1fr; }
  .service-row-visual { min-height: 280px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }

  /* Nav */
  .nav-links, .nav-cta, .nav-phone { display: none !important; }
  .nav-hamburger { display: flex !important; }
  .container { padding: 0 20px; }

  /* Sections — modest reduction, not aggressive */
  .section    { padding: 64px 0; }
  .section-sm { padding: 44px 0; }

  /* Hero — keep full height feel but allow scroll */
  .hero { padding: calc(var(--nav-h) + 48px) 0 72px; }
  .page-hero { padding: calc(var(--nav-h) + 52px) 0 64px; }
  .cta-band { padding: 72px 0; }

  /* Typography — modest scale down only */
  h1 { font-size: clamp(2rem, 7.5vw, 2.8rem); }
  h2 { font-size: clamp(1.65rem, 5.5vw, 2.2rem); }
  h3 { font-size: clamp(1.3rem, 4.5vw, 1.6rem); }
  h4 { font-size: 1.1rem; }

  /* Grids → single column */
  .grid-3, .grid-4, .grid-2,
  .grid-cards, .resp-2col-wide,
  .resp-2col-gap, .svc-row { grid-template-columns: 1fr !important; gap: 20px !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Service rows */
  .service-row { grid-template-columns: 1fr !important; }
  .service-row-content { order: 2 !important; padding: 36px 24px; }
  .service-row-visual  { order: 1 !important; min-height: 200px; }
  .service-row-visual-num { font-size: 6rem; }
  .service-row-visual-label { font-size: 1.5rem; }
  .service-row-visual-label em { font-size: 1rem; }

  /* Service detail */
  .service-overview,
  .service-detail { grid-template-columns: 1fr !important; gap: 40px; }
  .service-sidebar { position: static; }

  /* Stats */
  .stats-inner        { grid-template-columns: 1fr 1fr; }
  .stat-block         { padding: 24px 16px; border-right: none; }
  .resp-stats-dark    { grid-template-columns: 1fr 1fr !important; padding: 32px 16px; }

  /* Distinction band */
  .distinction-inner  { flex-wrap: wrap; }
  .distinction-item   { min-width: 50%; flex: 1; border-right: none; padding: 16px 12px; border-bottom: 1px solid var(--oak-rule); }
  .distinction-item:nth-child(odd)  { border-right: 1px solid var(--oak-rule); }
  .distinction-item:last-child { border-bottom: none; }
  .distinction-word   { font-size: 1.2rem; }
  .distinction-desc   { font-size: 0.8rem; }

  /* Trust band */
  .trust-industries   { flex-wrap: wrap; }
  .trust-industry-cell { min-width: 50%; flex: 1 1 50%; border-right: none !important; border-bottom: 1px solid var(--ivory-border); }
  .trust-industry-cell:last-child { border-bottom: none; }

  /* Use cases */
  .use-case-grid      { grid-template-columns: 1fr; background: transparent; }
  .use-case           { border: 1px solid var(--ivory-border); margin-bottom: 1px; }

  /* Process */
  .process-item,
  .process-step       { grid-template-columns: 44px 1fr; gap: 16px; }

  /* Contact */
  .contact-layout     { grid-template-columns: 1fr; gap: 40px; }

  /* Buttons — full width on small screens */
  .hero-actions       { flex-direction: column; align-items: stretch; }
  .cta-actions        { flex-direction: column; align-items: center; }
  .hero-actions .btn,
  .cta-actions .btn   { justify-content: center; }

  /* Cards */
  .card, .card-dark   { padding: 28px 20px; }
  .testimonial        { padding: 28px 24px; }
  .testimonial-text   { font-size: 1rem; }

  /* Location */
  .location-inner     { flex-direction: column; gap: 20px; align-items: flex-start; }

  /* Timeline */
  .timeline           { padding-left: 28px; }

  /* FAQ */
  .faq-question       { font-size: 0.97rem; padding: 20px 0; }
  .filter-bar         { flex-direction: column; }
  .filter-btn         { border-right: none; border-bottom: 1px solid var(--ivory-border); }

  /* Touch targets */
  .btn-dark, .btn-light,
  .btn-outline-dark,
  .btn-outline-light  { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; font-size: 0.8rem; }
  .nav-mobile-link    { min-height: 44px; display: flex; align-items: center; }
  input, select, textarea { font-size: 16px !important; }
}

@media (max-width: 480px) {
  .container          { padding: 0 16px; }
  h1                  { font-size: clamp(1.75rem, 9vw, 2.2rem); }
  .stats-inner,
  .resp-stats-dark    { grid-template-columns: 1fr !important; }
  .stat-block         { padding: 20px; }
  .trust-industry-cell { min-width: 100%; flex: 1 1 100%; }
}

/* ── Layout classes used by inner pages ── */
.resp-2col-wide  { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.resp-2col-gap   { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.svc-row         { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.resp-stats-dark { background: var(--oak); padding: 48px; display: grid; grid-template-columns: repeat(4,1fr); gap: 0; text-align: center; }
.trust-industries { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; border: 1px solid var(--ivory-border); }
.trust-industry-cell { padding: 18px 32px; border-right: 1px solid var(--ivory-border); text-align: center; flex: 1; min-width: 130px; }
.trust-industry-cell:last-child { border-right: none; }
.grid-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

/* ── Missing page classes ── */
.page-hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 75% 40%, rgba(140,106,46,0.07) 0%, transparent 70%); pointer-events: none; }
.service-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.service-overview { display: grid; grid-template-columns: 1fr 360px; gap: 80px; align-items: start; }
.location-glyph { font-family: var(--serif-display); font-size: 2.5rem; color: var(--brass); flex-shrink: 0; }
.article-featured { background: var(--ivory-card); border: 1px solid var(--ivory-border); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.faq-list { display: flex; flex-direction: column; }
.process-steps { display: flex; flex-direction: column; }
.process-step { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--ivory-border); align-items: start; }
.process-step:last-child { border-bottom: none; }
.step-num { font-family: var(--serif-caption); font-size: 1rem; font-style: italic; letter-spacing: 0.16em; color: var(--brass); }
.step-content h4 { font-size: 1.1rem; color: var(--ink-900); margin-bottom: 10px; }
.step-content p { font-size: 0.97rem; }
.sidebar-card { background: var(--ivory-card); border: 1px solid var(--ivory-border); border-top: 3px solid var(--brass); padding: 36px; }
.sidebar-card h4 { font-family: var(--serif-caption); font-size: 0.8rem; font-style: italic; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--ivory-border); font-weight: 400; }
.cta-band-content { position: relative; z-index: 1; }
.cta-band .eyebrow { justify-content: center; }
.cta-band h2 { color: var(--parch-900); margin-bottom: 20px; }
.cta-band p { max-width: 500px; margin: 0 auto 48px; color: var(--parch-900); }

/* ── Readability: explicit contrast rules ── */
.dark p, .dark li, .page-hero p, .cta-band p { color: var(--parch-900) !important; }
.dark h1,.dark h2,.dark h3,.dark h4,.page-hero h1,.cta-band h2 { color: var(--parch-900) !important; }
.dark .eyebrow { color: var(--brass-light) !important; }
.dark .eyebrow::before,.dark .eyebrow::after { background: var(--brass-light) !important; }
.section p { color: var(--ink-700); }
.section .lead { color: var(--ink-900); }

/* ── 1024px breakpoint for inner page layouts ── */
@media (max-width: 1024px) {
  .service-overview { grid-template-columns: 1fr; gap: 48px; }
  .service-sidebar  { position: static; }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 40px; }
  .resp-stats-dark  { padding: 36px 24px; }
  .article-featured { grid-template-columns: 1fr; }
  .svc-row          { gap: 40px; }
}

/* Testimonial 3-col grid */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 768px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* Why it works card visibility fix */
.why-it-works-card {
  background: var(--ivory-card);
  padding: 48px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  border: 1px solid var(--ivory-border);
}

/* Why It Works override — dark section so cards are visible */
.why-it-works-section { background: var(--ivory); }
.why-it-works-card {
  background: white;
  border: 1px solid var(--ivory-border);
  border-left: 3px solid var(--brass);
}

.reveal.visible { opacity: 1 !important; transform: none !important; }

.resp-stats-dark .stat-block { border-right: 1px solid var(--oak-border); }
.resp-stats-dark .stat-block:nth-child(2n) { border-right: none; }
