/* ================ THEME ================ */
:root {
  --bg: #f8f6f2;
  --bg2: #f0ede6;
  --bg3: #ffffff;
  --text: #1a1a2e;
  --text-muted: #555;
  --border: #ddd;
  --gold: #8B6914;
  --gold-light: #b8930a;
  --hero-bg: #1a1a2e;
  --hero-text: #f8f6f2;
  --shadow: rgba(0,0,0,0.08);
  --shadow-hover: rgba(0,0,0,0.15);
}
[data-theme="dark"] {
  --bg: #080810;
  --bg2: #10101a;
  --bg3: #16161f;
  --text: #e8e0d0;
  --text-muted: #aaa;
  --border: #2a2a3a;
  --gold: #c9a84c;
  --gold-light: #e0bc60;
  --hero-bg: #04040a;
  --hero-text: #e8e0d0;
  --shadow: rgba(0,0,0,0.4);
  --shadow-hover: rgba(0,0,0,0.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p { color: var(--text-muted); line-height: 1.7; }
em { color: var(--gold); font-style: normal; font-weight: 700; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 4.5rem 0; }
.bg-alt { background: var(--bg2); }

.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.section-sub { color: var(--text-muted); margin-top: 0.75rem; max-width: 700px; }

/* ================ THEME TOGGLE ================ */
#theme-toggle {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1000;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 2rem;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px var(--shadow);
}
#theme-toggle:hover { box-shadow: 0 4px 12px var(--shadow-hover); }

/* ================ HEADER ================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,246,242,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .site-header { background: rgba(8,8,16,0.92); }
.nav { display:flex; justify-content:space-between; align-items:center; padding: 0.9rem 1.25rem; }
.brand { font-weight: 800; color: var(--text); font-size: 1.05rem; }
.brand:hover { text-decoration: none; color: var(--gold); }
.nav nav { display: flex; gap: 1.25rem; align-items: center; }
.nav nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav nav a:hover { color: var(--gold); text-decoration: none; }
@media (max-width: 600px) {
  .nav nav a:not(.btn) { display: none; }
}

/* ================ BUTTONS ================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px var(--shadow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ================ HERO ================ */
.hero { background: var(--hero-bg); color: var(--hero-text); padding: 5rem 0 4rem; }
.hero-inner { text-align: center; }
.hero h1 { color: var(--hero-text); margin: 0.6rem 0 1rem; }
.hero .lede { color: rgba(255,255,255,0.78); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 720px; margin: 0 auto 1.75rem; }
.hero .kicker { color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; }
.hero-ctas { display:flex; gap:0.75rem; justify-content:center; flex-wrap:wrap; margin-bottom: 2rem; }
.hero-ctas .btn-ghost { color: var(--hero-text); border-color: rgba(255,255,255,0.25); }
.hero-ctas .btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.hero-stats { display:flex; gap: 2rem; justify-content:center; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stats > div { display:flex; flex-direction:column; align-items:center; }
.hero-stats strong { color: var(--gold-light); font-size: 1.5rem; font-weight: 800; }
.hero-stats span { color: rgba(255,255,255,0.6); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ================ TILES ================ */
.tiles-section h2 { margin-bottom: 0.5rem; }
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.tile {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  color: var(--text);
  display: flex; flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}
.tile:hover {
  text-decoration: none;
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px var(--shadow);
}
.tile-icon { font-size: 2rem; margin-bottom: 0.6rem; display: block; }
.tile h3 { color: var(--text); margin-bottom: 0.5rem; }
.tile p { font-size: 0.95rem; flex-grow: 1; }
.tile-link {
  margin-top: 1rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ================ WHY GRID ================ */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; margin-top: 2.5rem;
}
.why-card { background: var(--bg3); border: 1px solid var(--border); padding: 1.5rem; border-radius: 0.8rem; }
.why-card strong { color: var(--text); font-size: 1.05rem; display:block; margin-bottom: 0.5rem; }

/* ================ CAPABILITIES GRID ================ */
.caps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem; margin-top: 2.5rem;
}
.cap {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 1.1rem;
  border-radius: 0.7rem;
  transition: all 0.2s ease;
}
.cap:hover { border-color: var(--gold); transform: translateY(-2px); }
.cap span { font-size: 1.6rem; display: block; margin-bottom: 0.3rem; }
.cap strong { color: var(--text); display: block; margin-bottom: 0.25rem; font-size: 0.98rem; }
.cap p { font-size: 0.85rem; color: var(--text-muted); }

.center-cta { text-align:center; margin-top: 2.5rem; }

/* ================ CTA BAND ================ */
.cta-band { background: var(--hero-bg); color: var(--hero-text); text-align: center; padding: 4rem 0; }
.cta-band h2 { color: var(--hero-text); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.78); margin-bottom: 1.5rem; max-width: 600px; margin-left:auto; margin-right:auto; }

/* ================ FOOTER ================ */
.site-footer { background: var(--bg2); padding: 2rem 0; text-align: center; border-top: 1px solid var(--border); }
.site-footer p { font-size: 0.88rem; margin: 0.25rem 0; }

/* ================ INDUSTRY PAGE ================ */
.industry-hero { background: var(--hero-bg); color: var(--hero-text); padding: 4.5rem 0 3.5rem; text-align: center; }
.industry-hero h1 { color: var(--hero-text); }
.industry-hero .lede { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 720px; margin: 1rem auto 1.5rem; }
.industry-hero .stat { display:inline-block; margin-top: 1rem; font-size: 1.05rem; color: var(--gold-light); font-weight:700; padding: 0.6rem 1.2rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 2rem; }

.pain-list { margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.pain {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 4px solid #d9534f;
  padding: 1.4rem 1.4rem 1.4rem 1.2rem;
  border-radius: 0.7rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.2s ease;
}
.pain:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--shadow); }
.pain .pain-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; filter: grayscale(0%); }
.pain .pain-body { flex-grow: 1; }
.pain strong { color: var(--text); display: block; margin-bottom: 0.35rem; font-size: 1.05rem; }
.pain p { font-size: 0.92rem; color: var(--text-muted); }
[data-theme="dark"] .pain { border-left-color: #e57373; }

.solution-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.9rem; margin-top: 2rem; }
.solution { background: var(--bg3); border: 1px solid var(--border); padding: 1.1rem; border-radius: 0.7rem; }
.solution span { font-size: 1.5rem; display: block; margin-bottom: 0.3rem; }
.solution strong { color: var(--text); display:block; margin-bottom: 0.25rem; }
.solution p { font-size: 0.88rem; }

/* ================ AUDIT FORM ================ */
.audit-hero { background: var(--hero-bg); color: var(--hero-text); padding: 4rem 0 3rem; text-align: center; }
.audit-hero h1 { color: var(--hero-text); }
.audit-hero p { color: rgba(255,255,255,0.78); max-width: 640px; margin: 1rem auto 0; }
.audit-form { background: var(--bg3); border: 1px solid var(--border); border-radius: 1rem; padding: 2rem; max-width: 720px; margin: -2rem auto 4rem; box-shadow: 0 12px 28px var(--shadow); position: relative; }
.field { margin-bottom: 1.5rem; }
.field label { display: block; color: var(--text); font-weight: 600; margin-bottom: 0.5rem; font-size: 0.95rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.field input[type="file"] { padding: 0.5rem; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  background: var(--gold); color: #fff; border: none;
  padding: 0.5rem 1rem; border-radius: 0.4rem;
  margin-right: 0.75rem; cursor: pointer; font-weight: 600;
}
.field input[type="file"]::file-selector-button:hover { background: var(--gold-light); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field textarea { min-height: 100px; resize: vertical; }
.field .hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.4rem; }
.radio-group { display: flex; flex-direction: column; gap: 0.5rem; }
.radio-group label { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; cursor: pointer; padding: 0.7rem 1rem; border: 1px solid var(--border); border-radius: 0.5rem; transition: all 0.15s; line-height: 1.3; }
.radio-group label:hover { border-color: var(--gold); }
.radio-group input[type="radio"] { flex-shrink: 0; width: 1.1rem; height: 1.1rem; margin: 0; }
.radio-group label > span, .radio-group label { text-align: left; }
.checkbox-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.5rem; }
.checkbox-group label { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; cursor: pointer; padding: 0.65rem 0.9rem; border: 1px solid var(--border); border-radius: 0.5rem; transition: all 0.15s; font-size: 0.92rem; line-height: 1.3; text-align: left; }
.checkbox-group label:hover { border-color: var(--gold); }
.checkbox-group input[type="checkbox"] { flex-shrink: 0; width: 1.05rem; height: 1.05rem; margin: 0; }
.budget-q { background: var(--bg2); border-radius: 0.7rem; padding: 1.25rem; margin-bottom: 1.5rem; border: 1px solid var(--border); }
.budget-q strong { color: var(--text); display: block; margin-bottom: 0.6rem; }
.budget-q .hint { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0.8rem; }

.thanks { text-align:center; padding: 5rem 1.5rem; }
.thanks h1 { color: var(--text); margin-bottom: 1rem; }
.thanks p { max-width: 600px; margin: 0 auto 1rem; }

/* ================ MOBILE TUNING ================ */
@media (max-width: 600px) {
  .hero { padding: 3.5rem 0 3rem; }
  section { padding: 3rem 0; }
  .hero-stats { gap: 1.25rem; }
  .audit-form { padding: 1.25rem; margin-top: -1.5rem; }
}
