/* Sommers Marketing Group — shared styles for static pages
   Brand tokens are matched to the React app (smg-primary/secondary/accent/dark). */

:root {
  --smg-primary: #0E3A7D;
  --smg-secondary: #2563EB;
  --smg-accent: #3B82F6;
  --smg-dark: #060D1F;
  --smg-slate-50: #F8FAFC;
  --smg-slate-100: #F1F5F9;
  --smg-slate-200: #E2E8F0;
  --smg-slate-500: #64748B;
  --smg-slate-600: #475569;
  --smg-slate-900: #0F172A;
  --smg-white: #FFFFFF;
  --smg-radius-sm: 0.75rem;
  --smg-radius-md: 1rem;
  --smg-radius-lg: 1.5rem;
  --smg-shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --smg-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --smg-shadow-cta: 0 8px 30px rgb(37 99 235 / .3);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--smg-slate-900);
  background-color: var(--smg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--smg-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 .75rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--smg-slate-900);
  line-height: 1.15;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.375rem; }
p  { margin: 0 0 1rem; color: var(--smg-slate-600); }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--smg-slate-100);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 5rem;
}
.nav-brand {
  display: inline-flex; align-items: center;
  text-decoration: none; line-height: 0;
}
.nav-brand img { height: 2.75rem; width: auto; display: block; }
@media (min-width: 768px) { .nav-brand img { height: 3rem; } }
.nav-links { display: none; gap: 2rem; align-items: center; }
.nav-links a {
  color: var(--smg-slate-600); font-weight: 500; font-size: .95rem;
  text-decoration: none; transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--smg-secondary); }
@media (min-width: 768px) { .nav-links { display: flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .875rem 1.5rem; border-radius: 9999px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .15s ease;
  border: 0; cursor: pointer;
}
.btn-primary {
  background: var(--smg-secondary); color: #fff;
  box-shadow: var(--smg-shadow-cta);
}
.btn-primary:hover { background: var(--smg-primary); transform: translateY(-1px); text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--smg-slate-900);
  border: 1px solid var(--smg-slate-200);
}
.btn-ghost:hover { background: var(--smg-slate-50); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.section-slate { background: var(--smg-slate-50); }
.section-dark {
  background: linear-gradient(180deg, var(--smg-slate-900) 0%, var(--smg-dark) 100%);
  color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgb(191 219 254 / .85); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 5rem 0 4rem;
  background:
    radial-gradient(60% 50% at 80% 0%, rgb(37 99 235 / .15) 0%, transparent 60%),
    radial-gradient(50% 40% at 0% 100%, rgb(99 102 241 / .12) 0%, transparent 60%),
    var(--smg-white);
}
@media (min-width: 768px) { .hero { padding: 7rem 0 5rem; } }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .375rem .875rem; margin-bottom: 1.5rem;
  background: rgb(37 99 235 / .08); color: var(--smg-secondary);
  border-radius: 9999px; font-size: .8125rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 { max-width: 56rem; margin-bottom: 1.25rem; }
.hero-lede { max-width: 42rem; font-size: 1.125rem; color: var(--smg-slate-600); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

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

.card {
  background: var(--smg-white);
  border: 1px solid var(--smg-slate-100);
  border-radius: var(--smg-radius-md);
  padding: 1.75rem;
  box-shadow: var(--smg-shadow-md);
  transition: transform .2s ease, box-shadow .2s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--smg-shadow-lg);
  border-color: var(--smg-slate-200);
}
.card-icon {
  width: 3rem; height: 3rem; border-radius: var(--smg-radius-sm);
  background: rgb(37 99 235 / .1); color: var(--smg-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { margin-bottom: 0; font-size: .95rem; }

.card-link {
  display: inline-flex; align-items: center; gap: .375rem;
  margin-top: 1rem; color: var(--smg-secondary); font-weight: 600; font-size: .95rem;
}
.card-link:hover { text-decoration: none; color: var(--smg-primary); }

/* ---------- Section header ---------- */
.section-header { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.section-eyebrow {
  display: inline-block; color: var(--smg-secondary);
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: .75rem;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .375rem; }
.field label { font-size: .875rem; font-weight: 600; color: var(--smg-slate-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1px solid var(--smg-slate-200);
  border-radius: var(--smg-radius-sm);
  font: inherit; color: inherit; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--smg-secondary);
  box-shadow: 0 0 0 3px rgb(37 99 235 / .15);
}
.field textarea { min-height: 7rem; resize: vertical; }
.form-hint { font-size: .8125rem; color: var(--smg-slate-500); margin-top: .25rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--smg-dark); color: #cbd5e1;
  padding: 3rem 0 2rem;
}
.footer-logo-wrap {
  display: inline-block;
  background: #fff;
  border-radius: .5rem;
  padding: .375rem .625rem;
  margin-bottom: .75rem;
}
.footer-logo {
  height: 2.25rem; width: auto; display: block;
}
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / .08);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .8125rem; color: #94a3b8;
}
.footer-bottom a { color: #94a3b8; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.muted { color: var(--smg-slate-500); }
.stack > * + * { margin-top: 1rem; }
.lead { font-size: 1.125rem; color: var(--smg-slate-600); }
