/* ============================================================
   Sundberg ATM — brand stylesheet
   Brand red sampled from logo: #BE1D2C
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --red: #BE1D2C;
  --red-dark: #8e131e;
  --red-light: #e23445;
  --ink: #141414;
  --ink-soft: #2a2a2a;
  --paper: #f7f5f3;
  --paper-2: #efebe7;
  --white: #ffffff;
  --muted: #6b6663;
  --line: rgba(20,20,20,0.10);
  --display: 'Oswald', system-ui, sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --maxw: 1180px;
  --shadow: 0 18px 50px -20px rgba(20,20,20,0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.04; text-transform: uppercase; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.accent { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 2px; border: 2px solid var(--red);
  background: var(--red); color: var(--white);
  cursor: pointer; transition: all 0.2s ease;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); border-color: var(--white); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,243,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.9rem; color: var(--ink);
  position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--red); transition: width 0.25s ease;
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--red); }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.nav__toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding: 110px 0 120px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(190,29,44,0.42), transparent 46%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.hero__giant {
  position: absolute; right: -4%; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-weight: 700; font-size: 34vw; line-height: 0.8;
  color: rgba(255,255,255,0.03); z-index: 0; user-select: none; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero__eyebrow {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.32em;
  font-size: 0.8rem; color: var(--red-light); margin-bottom: 22px; font-weight: 600;
}
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 700; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { font-size: 1.18rem; max-width: 52ch; margin: 26px 0 36px; color: rgba(255,255,255,0.78); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.section-head { max-width: 60ch; margin-bottom: 56px; }
.section-head .kicker {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.28em;
  font-size: 0.78rem; color: var(--red); font-weight: 600; margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.section-head .kicker::before { content: ''; width: 34px; height: 2px; background: var(--red); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }

/* ---------- Stat band ---------- */
.stats { background: var(--red); color: var(--white); padding: 56px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat .num { font-family: var(--display); font-weight: 700; font-size: 3rem; line-height: 1; }
.stat .lbl { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; margin-top: 8px; opacity: 0.9; }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: 38px 32px; transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card .ico {
  width: 56px; height: 56px; border-radius: 3px; display: grid; place-items: center;
  background: var(--ink); color: var(--white); margin-bottom: 22px;
}
.card .ico svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Solutions detail ---------- */
.solution {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 34px; align-items: center;
  padding: 44px 0; border-bottom: 1px solid var(--line);
}
.solution:last-child { border-bottom: 0; }
.solution__no { font-family: var(--display); font-weight: 700; font-size: 2.6rem; color: var(--paper-2); -webkit-text-stroke: 1px var(--red); }
.solution__body h3 { font-size: 1.7rem; font-weight: 600; margin-bottom: 10px; }
.solution__body h3 .badge {
  font-family: var(--body); font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; background: var(--red); color: #fff; padding: 4px 10px; border-radius: 2px;
  vertical-align: middle; margin-left: 12px; letter-spacing: 0.06em;
}
.solution__body p { color: var(--muted); max-width: 62ch; }
.solution__body ul { list-style: none; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.solution__body li { font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.solution__body li::before { content: ''; width: 7px; height: 7px; background: var(--red); border-radius: 50%; }
.solution__ico { width: 70px; height: 70px; color: var(--red); }
.solution__ico svg { width: 100%; height: 100%; }

/* ---------- Split / About ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.split__media {
  background: var(--ink); border-radius: 6px; min-height: 380px; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.split__media::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(190,29,44,0.5), transparent 60%);
}
.split__media img { position: relative; width: 58%; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4)); }
.split h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 700; margin-bottom: 18px; }
.split p { color: var(--muted); margin-bottom: 16px; }
.checklist { list-style: none; margin: 20px 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checklist li svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--red); margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink); color: var(--white); text-align: center; border-radius: 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(190,29,44,0.55), transparent 55%);
}
.cta-band .wrap { position: relative; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 50ch; margin: 18px auto 32px; font-size: 1.1rem; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--ink); color: var(--white); padding: 86px 0 76px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(190,29,44,0.35), transparent 50%);
}
.page-hero .wrap { position: relative; }
.page-hero .kicker { font-family: var(--display); letter-spacing: 0.3em; font-size: 0.78rem; color: var(--red-light); text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
.page-hero p { max-width: 56ch; margin-top: 18px; color: rgba(255,255,255,0.78); font-size: 1.12rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 20px; }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.info-row svg { width: 26px; height: 26px; color: var(--red); flex: 0 0 auto; }
.info-row .lbl { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--muted); }
.info-row .val { font-weight: 600; font-size: 1.05rem; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 38px; box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.76rem; color: var(--ink-soft); margin-bottom: 8px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 3px;
  font-family: var(--body); font-size: 1rem; background: var(--paper); color: var(--ink); transition: border 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
/* Make an embedded GoHighLevel / CRMBasket form fill the card cleanly */
.form iframe { width: 100% !important; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand img { height: 50px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.95rem; max-width: 34ch; }
.footer-col h4 { color: var(--white); font-size: 1rem; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.94rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--red-light); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 0.85rem; flex-wrap: wrap; gap: 10px; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .cards, .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav__links {
    position: fixed; inset: 78px 0 auto 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform 0.3s ease;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin: 12px 0 0; }
  .nav__toggle { display: flex; }
  .solution { grid-template-columns: 60px 1fr; }
  .solution__ico { display: none; }
}
@media (max-width: 560px) {
  .cards, .stats__grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .stat .num { font-size: 2.4rem; }
}
