/* ============================================================
   Ken Nangle Consulting — styles.css
   Shared across all pages. Keep this file in the same folder
   as your HTML files.
   ============================================================ */

/* === CSS VARIABLES ======================================== */
:root {
  --bg:           #F8F7F5;
  --bg-alt:       #EFEFEB;
  --bg-white:     #FFFFFF;
  --text:         #1A1A18;
  --text-muted:   #67665F;
  --accent:       #3D6BB5;
  --accent-dark:  #2D559A;
  --accent-light: #E8EFF9;
  --border:       #DDDAD3;
  --border-light: #E8E5DE;
  --font-display: 'Raleway', system-ui, sans-serif;
  --font-body:    'Raleway', system-ui, sans-serif;
  --max-w:        1180px;
  --px:           clamp(1.25rem, 5vw, 3.5rem);
  --section-gap:  clamp(4rem, 9vw, 7rem);
  --radius:       4px;
  --radius-lg:    8px;
  --transition:   0.2s ease;
}

/* === RESET ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* === TYPOGRAPHY =========================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: clamp(3rem, 7vw, 5.75rem); font-weight: 300; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 2.75vw, 1.85rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--text-muted); max-width: 60ch; }
p.large { font-size: 1.25rem; }
.label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* === LAYOUT =============================================== */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.section     { padding: var(--section-gap) 0; }
.section--alt { background: var(--bg-alt); }
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* === BUTTONS ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary   { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline   { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text); }
.btn-ghost     { background: transparent; color: var(--accent); border-color: transparent; padding-left: 0; padding-right: 0; font-size: 0.875rem; }
.btn-ghost:hover { color: var(--accent-dark); }
.btn-white     { background: #fff; color: var(--accent); border-color: #fff; }
.btn-white:hover { background: rgba(255,255,255,0.9); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { border-color: #fff; }

/* === NAVIGATION =========================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 245, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo       { display: flex; flex-direction: column; gap: 1px; }
.nav-logo-name  { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: var(--text); line-height: 1; }
.nav-logo-tag   { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.nav-links      { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a    { font-size: 0.875rem; color: var(--text-muted); padding: 0.4rem 0.75rem; border-radius: var(--radius); transition: color var(--transition); }
.nav-links a:hover  { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 500; }
.nav-cta        { margin-left: 0.5rem; }

.nav-hamburger  { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: all 0.25s; }
.nav-mobile     { display: none; flex-direction: column; background: var(--bg-white); border-bottom: 1px solid var(--border-light); padding: 1rem var(--px); gap: 0; }
.nav-mobile.open { display: flex; }
.nav-mobile a   { font-size: 1rem; color: var(--text-muted); padding: 0.75rem 0; border-bottom: 1px solid var(--border-light); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--text); }

/* === FOOTER =============================================== */
.footer { background: var(--text); padding: 3.5rem 0 2rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.footer-grid  { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo  { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: #fff; display: block; margin-bottom: 0.5rem; }
.footer p     { color: rgba(255,255,255,0.45); font-size: 0.875rem; max-width: 32ch; }
.footer-heading { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-links span { font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.3); display: flex; justify-content: space-between; align-items: center; }

/* === COMPONENTS =========================================== */
.divider   { width: 32px; height: 1.5px; background: var(--accent); margin: 1.25rem 0; }

.page-hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--border-light); }
.page-hero .label { margin-bottom: 1rem; }
.page-hero h1 { max-width: 18ch; }
.page-hero p.large { margin-top: 1.25rem; max-width: 52ch; }

.section-header        { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-header .label { margin-bottom: 0.75rem; }
.section-header h2     { max-width: 24ch; }
.section-header p      { margin-top: 0.75rem; }

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: border-color var(--transition);
}
.card:hover { border-color: var(--border); }
.card-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 300; color: #B8C9E0; margin-bottom: 1rem; line-height: 1; }
.card-icon {
  width: 40px; height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}
.card h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.card p  { font-size: 0.925rem; max-width: none; }
.card-tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-light);
  padding: 0.25rem 0.6rem; border-radius: 2px; margin-bottom: 1rem;
}

.step-item { padding: 1.5rem 0; border-top: 2px solid var(--accent); }
.step-item .label { margin-bottom: 0.75rem; }
.step-item h4 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; margin-bottom: 0.6rem; }
.step-item p  { font-size: 0.9rem; }

.cta-banner { background: var(--accent); color: #fff; padding: clamp(3rem, 6vw, 5rem) 0; text-align: center; }
.cta-banner h2 { font-family: var(--font-display); font-weight: 300; color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,0.7); margin: 0 auto 2rem; max-width: 46ch; }
.cta-btn-row   { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === FORM ================================================= */
.form-group { margin-bottom: 1.5rem; }
label  { display: block; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text); margin-bottom: 0.5rem; }
input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

/* === RESPONSIVE =========================================== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
