/* ============================================
   Cornerstone Consulting — Site Styles
   ============================================ */

:root {
  --ink: #16343a;
  --ink-2: #1f4a52;
  --gold: #b8923f;
  --gold-light: #e3c78a;
  --cream: #faf6ef;
  --cream-2: #f2ebdc;
  --white: #ffffff;
  --text: #3a3530;
  --text-soft: #6b6459;
  --border: #e7ddc9;

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 52, 58, 0.08);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
a { color: inherit; }

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

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 0.9em;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 62ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--ink-2); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(184, 146, 63, 0.35);
}
.btn-gold:hover { background: #a67f34; }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { height: 42px; width: auto; }
.brand-fallback {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}
.brand-fallback span { color: var(--gold); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 24px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
  transition: 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
  background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pinwheel {
  width: min(360px, 90%);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(22,52,58,0.18));
}

.page-hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero .lede { margin-top: 10px; }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--white); }
.section-ink {
  background: var(--ink);
  color: var(--cream-2);
}
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-ink .lede { color: #cfe0e0; }

.section-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 18px;
}

.pillar-card {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 30px;
  border-top: 4px solid var(--gold);
}
.pillar-card h3 { margin-bottom: 10px; }
.pillar-card p { color: var(--text-soft); margin: 0; font-size: 0.97rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.tag-list li {
  list-style: none;
  background: var(--cream-2);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); }
.cta-banner .lede { color: #cfe0e0; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfe0e0;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 38px; margin-bottom: 14px; }
.footer-brand .brand-fallback { color: var(--white); }
.footer-brand .brand-fallback span { color: var(--gold-light); }
.footer-grid p { color: #a9c0c0; }
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; color: #cfe0e0; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #8fa8a8;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 20px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  font-size: 0.92rem;
}
input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,146,63,0.18);
}
textarea { resize: vertical; min-height: 140px; }

.form-note {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 10px;
}
.form-status {
  margin-top: 16px;
  font-weight: 700;
  display: none;
}
.form-status.success { color: #2f7d4f; display: block; }
.form-status.error { color: #b3432b; display: block; }

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.contact-info-card .row {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-info-card .row:last-child { margin-bottom: 0; }
.contact-info-card .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-info-card h4 {
  margin: 0 0 4px;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}
.contact-info-card p { margin: 0; font-weight: 700; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .split { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .cta-banner { padding: 44px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Mobile nav open state */
body.nav-open .main-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 84px;
  left: 0; right: 0;
  background: var(--cream);
  padding: 24px;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
