/* ==========================================================
   Advocate Consulting – shared stylesheet
   Brand color system (from 1.html)
   ========================================================== */
:root {
  --primary: #0A2342;          /* Deep Navy */
  --primary-dark: #3C6E91;     /* Slate Blue */
  --secondary: #1C7C54;        /* Emerald */
  --secondary-soft: #A8C4A2;   /* Sage */
  --accent-orange: #C56A29;    /* Burnt Orange */
  --accent-gold: #C9A227;      /* Brass Gold (sparingly) */
  --charcoal: #2E2E2E;         /* Charcoal */

  --bg: #F7F9FC;               /* Soft White */
  --neutral-light: #E1E5EE;    /* Light Gray */

  --text-main: #0A2342;
  --text-muted: #4b5563;

  --border-subtle: #E1E5EE;
  --card-bg: #ffffff;
  --shadow-soft: 0 12px 30px rgba(10, 35, 66, 0.12);
  --radius-lg: 1rem;
  --radius-full: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
p a, .contact-details a, .text-link { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }
p a:hover, .contact-details a:hover, .text-link:hover { color: var(--secondary); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent-gold); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

.page { max-width: 1120px; margin: 0 auto; padding: 0 16px 48px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}
.site-header .inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

/* Logo: gold monogram (assets/logo.png) + HTML wordmark */
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand-logo { width: 44px; height: 44px; flex: none; border-radius: 50%; box-shadow: 0 6px 14px rgba(10,35,66,.22); }
.logo-text {
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary); line-height: 1.1;
}
.brand:hover .logo-text { color: var(--primary-dark); }

.nav-links {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
  font-size: 0.95rem; color: var(--text-muted);
}
.nav-links a:not(.btn) { position: relative; padding: 4px 0; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--primary-dark); }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--primary); font-weight: 700; }
.nav-links a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  border-radius: 2px; background: var(--secondary);
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-subtle);
  border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--primary);
  align-items: center; justify-content: center;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .2s ease, background .2s ease;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.6rem; border-radius: var(--radius-full); border: none;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; font-family: inherit;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 25px rgba(10,35,66,.35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(10,35,66,.45); }
.btn-secondary { background: var(--secondary); color: #fff; box-shadow: 0 10px 25px rgba(28,124,84,.3); }
.btn-secondary:hover { background: #166645; transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- Sections ---------- */
section { margin-bottom: 56px; scroll-margin-top: 90px; }
.section-label {
  text-transform: uppercase; font-weight: 600; letter-spacing: 0.08em;
  font-size: 0.75rem; color: var(--secondary); margin-bottom: 8px;
}
.section-title { font-size: 1.9rem; font-weight: 700; line-height: 1.25; margin-bottom: 10px; color: var(--text-main); }
h1.section-title { font-size: 2.2rem; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 20px; max-width: 760px; }

.card {
  background: var(--card-bg); border-radius: var(--radius-lg);
  padding: 26px 22px; box-shadow: var(--shadow-soft); border: 1px solid var(--border-subtle);
}
.card > h2 { font-size: 1.3rem; margin-bottom: 14px; color: var(--primary); }
.note { margin-top: 18px; font-size: 0.95rem; color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 40px; border-radius: 1.5rem;
  background: radial-gradient(circle at top left, var(--primary-dark) 0%, var(--primary) 45%, var(--secondary) 100%);
  box-shadow: var(--shadow-soft); color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px;
  border-radius: 50%; border: 2px solid rgba(201,162,39,.35);
}
.hero h1 { font-size: 2.6rem; line-height: 1.15; font-weight: 800; margin-bottom: 12px; color: #fff; max-width: 720px; }
.hero p { font-size: 1.15rem; color: var(--neutral-light); margin-bottom: 26px; }
.hero .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 10px 25px rgba(0,0,0,.25); }
.hero .btn-primary:hover { background: var(--bg); }

/* Page intro band for interior pages */
.page-intro { padding: 8px 0 4px; }

/* ---------- Home: stakes ---------- */
.stakes-list {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px; margin-bottom: 24px; font-size: 0.95rem;
}
.stakes-item {
  padding: 10px 12px; border-radius: 0.75rem; border: 1px solid var(--accent-orange);
  background: #FFF6EE; color: var(--accent-orange); display: flex; gap: 8px; align-items: flex-start;
}
.stakes-bullet { font-size: 0.95rem; margin-top: 0; }

/* ---------- Home: value ---------- */
.value-list {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.value-item {
  padding: 12px 14px; border-radius: 0.9rem; background: #EEF5EC;
  border: 1px solid var(--secondary-soft); border-left: 4px solid var(--secondary);
  font-size: 0.95rem; color: var(--secondary); font-weight: 600;
}

/* ---------- Home: metrics / testimonial ---------- */
.metrics {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.metric-item { padding: 14px; border-radius: 0.9rem; border: 1px solid var(--border-subtle); background: var(--bg); font-size: 0.95rem; }
.metric-title { font-weight: 700; margin-bottom: 4px; color: var(--primary); }
.testimonial {
  margin-top: 10px; padding: 14px 0 0 16px; border-top: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-gold);
  font-size: 1rem; color: var(--text-muted); font-style: italic;
}
.testimonial span { display: block; margin-top: 6px; font-style: normal; font-weight: 600; color: var(--text-main); font-size: 0.9rem; }

/* ---------- Home: plan ---------- */
.plan-steps {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px; margin-bottom: 24px; counter-reset: step;
}
.plan-step {
  position: relative; padding: 16px 14px 16px 56px; border-radius: 0.9rem;
  background: var(--neutral-light); border: 1px solid var(--primary-dark); font-size: 0.95rem;
}
.plan-step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 16px;
  width: 26px; height: 26px; border-radius: 999px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(10,35,66,.5);
}
.plan-step-title { font-weight: 700; margin-bottom: 4px; }
.subsection { margin-top: 40px; }

.explanatory p { margin-bottom: 10px; color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Grids / tiles (Services, Careers, Outcomes) ---------- */
.service-grid, .grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px;
}
.service-item, .tile {
  padding: 18px 16px; border-radius: 0.9rem; background: var(--bg);
  border: 1px solid var(--border-subtle); border-top: 3px solid var(--primary-dark);
  transition: transform .12s ease, box-shadow .12s ease;
}
.service-item:hover, .tile:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(10,35,66,.08); }
.service-item h3, .tile h3, .pillar h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 6px; }
.service-item p, .tile p, .pillar p { font-size: 0.95rem; color: var(--text-muted); }
.outcomes .service-item { border-top-color: var(--secondary); }

.pillars-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pillar {
  padding: 18px 16px; border-radius: 0.9rem; background: #F1F5F9;
  border: 1px solid var(--border-subtle); border-left: 4px solid var(--secondary);
}

.badge, .pricing-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-full);
  background: #EEF5EC; color: var(--secondary); border: 1px solid var(--secondary-soft);
  margin-bottom: 14px;
}
.toolkit-list { list-style: none; display: grid; gap: 10px; }
.toolkit-list li {
  position: relative; padding: 12px 14px 12px 40px; border-radius: 0.75rem;
  background: var(--bg); border: 1px solid var(--border-subtle); font-size: 0.95rem; color: var(--text-muted);
}
.toolkit-list li::before {
  content: "✓"; position: absolute; left: 14px; top: 12px; color: var(--secondary); font-weight: 700;
}
.toolkit-list strong { color: var(--primary); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pricing-plan {
  display: flex; flex-direction: column; padding: 20px 18px; border-radius: 0.9rem;
  background: var(--bg); border: 1px solid var(--border-subtle); border-top: 4px solid var(--primary);
}
.pricing-plan:nth-child(2) { border-top-color: var(--secondary); }
.pricing-plan:nth-child(3) { border-top-color: var(--primary-dark); }
.pricing-plan:nth-child(4) { border-top-color: var(--accent-orange); }
.pricing-plan:nth-child(4) .pricing-badge { background: #FFF6EE; color: var(--accent-orange); border-color: var(--accent-orange); }
.pricing-plan .pricing-badge { align-self: flex-start; }
.pricing-plan h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 4px; }
.pricing-tagline { font-size: 0.95rem; color: var(--primary-dark); font-weight: 600; margin-bottom: 12px; }
.pricing-plan ul { list-style: none; display: grid; gap: 8px; font-size: 0.93rem; color: var(--text-muted); }
.pricing-plan li { position: relative; padding-left: 20px; }
.pricing-plan li::before { content: "•"; position: absolute; left: 4px; color: var(--secondary); font-weight: 700; }
.roi-block {
  margin-top: 24px; padding: 18px 20px; border-radius: 0.9rem;
  background: var(--primary); color: var(--neutral-light); font-size: 0.98rem;
  border-left: 5px solid var(--accent-gold);
}
.roi-block strong { display: block; color: #fff; font-size: 1.1rem; margin-bottom: 4px; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--charcoal); color: #fff; border-radius: 1.25rem; padding: 28px 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.cta h3 { font-size: 1.3rem; margin-bottom: 4px; }
.cta p { font-size: 0.98rem; opacity: 0.9; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.cta .btn-primary:hover { background: var(--bg); }

/* ---------- Contact / forms ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.form { display: grid; gap: 14px; }
.form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; color: var(--primary); }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--charcoal);
  padding: 0.7rem 0.9rem; border-radius: 0.6rem; border: 1px solid #c9d1de; background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--primary-dark); box-shadow: 0 0 0 3px rgba(60,110,145,.2);
}
.form .btn { justify-self: start; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp-field { position: absolute !important; left: -9999px !important; }
.contact-details {
  padding: 20px; border-radius: 0.9rem; background: var(--bg); border: 1px solid var(--border-subtle);
  font-size: 0.95rem; color: var(--text-muted); align-self: start;
}
.contact-details p + p { margin-top: 10px; }
.contact-details strong { color: var(--primary); }

/* ---------- Thank you ---------- */
.thanks { text-align: center; padding: 48px 24px; }
.thanks .check {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--secondary); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center;
}
.thanks .section-subtitle { margin-left: auto; margin-right: auto; }
.thanks .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; background: var(--primary); color: var(--neutral-light); }
.site-footer .inner {
  max-width: 1120px; margin: 0 auto; padding: 32px 16px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: flex-start;
}
.site-footer .brand-logo { width: 52px; height: 52px; box-shadow: none; border-radius: 0; }
.site-footer .logo-text { color: #fff; font-size: 1.1rem; }
.site-footer .brand:hover .logo-text { color: var(--accent-gold); }
.tagline {
  margin-top: 12px; color: var(--accent-gold); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.footer-meta { font-size: 0.9rem; margin-top: 10px; color: var(--secondary-soft); }
.footer-meta a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.93rem; }
.footer-links a { color: var(--neutral-light); }
.footer-links a:hover { color: var(--accent-gold); }
.footer-bottom { border-top: 1px solid rgba(225,229,238,.15); }
.footer-bottom .inner { display: block; padding: 14px 16px; font-size: 0.85rem; color: var(--secondary-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 16px 30px rgba(10,35,66,.12); padding: 8px 16px 16px;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--border-subtle); }
  .nav-links a[aria-current="page"]:not(.btn)::after { display: none; }
  .nav-links a[aria-current="page"]:not(.btn) { color: var(--secondary); }
  .nav-links .btn { margin-top: 12px; }
  .site-header .inner { position: relative; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .logo-text { font-size: 0.92rem; letter-spacing: 0.08em; }
  .brand { gap: 10px; }
  .brand-logo { width: 40px; height: 40px; }
  .tagline { font-size: 0.72rem; letter-spacing: 0.1em; }
  .hero { padding: 36px 22px; }
  .hero h1 { font-size: 1.95rem; }
  .section-title, h1.section-title { font-size: 1.6rem; }
  .card { padding: 20px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .cta { padding: 22px 20px; }
  .btn { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* About hero */
.hero .hero-label { color: var(--accent-gold); }
.plan-steps + .service-grid { margin-top: 8px; }
