/* ==========================================================================
   Behrens Services, LLC — Design System
   Warm, approachable, professional. Earthy palette (clay + sage + cream).
   ========================================================================== */

:root {
  /* Palette */
  /* Navy = primary brand (matches logo) */
  --navy: #1f3a5e;
  --navy-dark: #14273d;
  --navy-soft: #d6dfea;
  /* Clay = warm accent */
  --clay: #c2613d;
  --clay-dark: #9a4a2c;
  --clay-soft: #f0d9c9;
  --cream: #fbf8f3;
  --cream-2: #f3ece1;
  --surface: #ffffff;
  --ink: #2b2724;
  --ink-soft: #564f48;
  --muted: #877d72;
  --line: #e7ddd0;

  /* Type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing / layout */
  --container: 1140px;
  --container-narrow: 820px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(43, 39, 36, 0.06), 0 2px 8px rgba(43, 39, 36, 0.05);
  --shadow-md: 0 6px 24px rgba(43, 39, 36, 0.10);
  --shadow-lg: 0 20px 48px rgba(43, 39, 36, 0.14);
  --transition: 200ms ease;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-dark); text-decoration: none; }
a:hover { color: var(--navy); }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px; }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { color: var(--ink-soft); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-soft); line-height: 1.6; }

/* ----- Layout ----- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.container.narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-cream2 { background: var(--cream-2); }
.section-ink { background: var(--navy-dark); color: var(--cream); }
.section-ink h2, .section-ink h3 { color: var(--cream); }
.section-ink p { color: #b9c6d6; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.85rem;
}
.section-ink .eyebrow { color: var(--navy-soft); }
.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.section-ink .btn-outline { border-color: rgba(255,255,255,.3); color: var(--cream); }
.section-ink .btn-outline:hover { border-color: var(--navy-soft); color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 243, 0.85);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 40px; height: auto; flex: none; }
.brand .brand-sub { display: block; font-family: var(--font-body); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); line-height: 1; margin-top: 2px; }
.brand .brand-name { line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: 0.97rem;
  padding: 0.5rem 0.9rem; border-radius: 999px; transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--ink); background: var(--cream-2); }
.nav-links a.active { color: var(--navy-dark); background: var(--navy-soft); }
.nav-cta { margin-left: 0.5rem; }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { color: #fff; background: var(--navy); }
.nav-links a.nav-cta:hover { background: var(--navy-dark); }

.nav-toggle { display: none; background: none; border: 0; padding: 0.4rem; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-120%); transition: transform 280ms ease;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.85rem 1rem; font-size: 1.05rem; }
  .nav-cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(194, 97, 61, 0.10), transparent 60%),
    radial-gradient(50% 70% at 5% 90%, rgba(111, 125, 87, 0.12), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 2rem; max-width: 32ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-since { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.5rem; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clay-dark); }
.hero-since::before { content: ""; width: 28px; height: 2px; background: var(--clay); }

/* Hero illustration card */
.hero-art {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, var(--clay) 0%, var(--clay-dark) 100%);
  aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-lg);
}
.hero-art .field { position: absolute; inset: 0; }
.hero-art-badge {
  position: absolute; left: 1.25rem; bottom: 1.25rem; right: 1.25rem;
  background: rgba(251,248,243,.94); backdrop-filter: blur(4px);
  border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-md);
}
.hero-art-badge strong { font-family: var(--font-head); font-size: 1.1rem; color: var(--ink); }
.hero-art-badge span { display: block; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin-inline: auto; aspect-ratio: 4/3.4; }
  .hero .lead { max-width: 48ch; }
}

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--navy-soft); }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.98rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy-soft); color: var(--navy-dark); margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.sage { background: var(--clay-soft); color: var(--clay-dark); }

/* Industry pills */
.pills { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.6rem 1.1rem; font-weight: 500; font-size: 0.95rem; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.pill svg { width: 18px; height: 18px; color: var(--clay-dark); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; } }
.stat { text-align: center; }
.stat .num { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 600; color: var(--navy); line-height: 1; }
.section-ink .stat .num { color: var(--navy-soft); }
.stat .label { margin-top: 0.5rem; font-size: 0.95rem; color: var(--muted); }
.section-ink .stat .label { color: #b9c6d6; }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero { padding-block: clamp(2.75rem, 7vw, 4.5rem); background: var(--cream-2); border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 56ch; margin-top: 0.85rem; }

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.member {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition);
}
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.member .avatar {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; color: #fff; margin-bottom: 1rem;
  background: linear-gradient(140deg, var(--navy), var(--navy-dark));
}
.member.lead-card { grid-column: span 1; }
.member .avatar.sage { background: linear-gradient(140deg, var(--clay), var(--clay-dark)); }

/* Photo avatars */
.avatar.photo { padding: 0; overflow: hidden; background: var(--cream-2); box-shadow: 0 0 0 3px var(--navy-soft); }
.avatar.photo.sage { box-shadow: 0 0 0 3px var(--clay-soft); }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.member h3 { font-size: 1.2rem; margin-bottom: 0.15rem; }
.member .role { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.75rem; }
.member .role.sage { color: var(--clay-dark); }
.member p { font-size: 0.95rem; }

/* Featured leaders */
.leaders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 720px) { .leaders { grid-template-columns: 1fr; } }
.leader {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.5rem;
}
.leader .avatar { width: 80px; height: 80px; font-size: 1.8rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ci-icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy-dark); }
.contact-item .ci-icon svg { width: 22px; height: 22px; }
.contact-item h4 { margin-bottom: 0.15rem; }
.contact-item a { font-weight: 600; }
.contact-item p, .contact-item span { font-size: 0.95rem; color: var(--ink-soft); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.8rem 1rem; font: inherit; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(194,97,61,.15); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.form-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-fields:disabled { opacity: 0.5; }
.form-callout { display: flex; gap: 0.7rem; align-items: flex-start; background: var(--clay-soft); border: 1px solid #c4d0ad; color: var(--clay-dark); border-radius: var(--radius-sm); padding: 0.95rem 1.1rem; margin-bottom: 1.5rem; font-size: 0.93rem; line-height: 1.55; }
.form-callout svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.form-callout a { color: var(--clay-dark); font-weight: 600; text-decoration: underline; }
.form-callout a:hover { color: var(--ink); }
.form-status { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-size: 0.95rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--clay-soft); color: var(--clay-dark); }
.form-status.err { background: #f7dcd2; color: var(--navy-dark); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: linear-gradient(140deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.25rem); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 50ch; margin: 0 auto 1.75rem; }
.cta-band .btn-primary { background: #fff; color: var(--navy-dark); }
.cta-band .btn-primary:hover { background: var(--cream); color: var(--navy-dark); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-dark); color: #aebccd; padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.site-footer .brand { color: var(--cream); margin-bottom: 1rem; }
.site-footer .brand .brand-sub { color: #8095aa; }
.site-footer p { color: #9aabbe; font-size: 0.95rem; max-width: 38ch; }
.footer-col h4 { color: var(--cream); font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a { display: block; color: #aebccd; padding: 0.3rem 0; font-size: 0.97rem; }
.footer-col a:hover { color: var(--navy-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: 0.88rem; color: #8095aa; }
.footer-bottom a { color: #8095aa; }
.footer-bottom a:hover { color: var(--navy-soft); }

/* ==========================================================================
   Cookie banner
   ========================================================================== */
.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200;
  max-width: 560px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.25rem 1.4rem;
  display: none;
}
.cookie.show { display: block; animation: cookieIn 360ms ease; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.cookie p { font-size: 0.92rem; margin-bottom: 1rem; }
.cookie-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.cookie .btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

/* ==========================================================================
   Utilities & motion
   ========================================================================== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
