/* ====== Design Tokens ====================================================== */
:root {
  --color-primary: #1E3A8A;  /* deep blue */
  --color-accent:  #F97316;  /* warm orange */
  --color-hover:   #3B82F6;  /* brighter blue */
  --color-bg:      #F8FAFC;  /* light neutral */
  --color-text:    #0F172A;  /* slate-900 */
  --color-card-bg: #FFFFFF;

  --radius-lg: 16px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);

  --container-w: 1200px;
}

/* ====== Base =============================================================== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-hover); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.container { width: 90%; max-width: var(--container-w); margin: 0 auto; padding: 2rem 0; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: -9999px;
}
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 9999; background:#fff; padding:.5rem .75rem; border-radius:8px; box-shadow: var(--shadow-sm);
}

/* ====== Header ============================================================= */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; position: sticky; top: 0; z-index: 100;
  background: var(--color-card-bg); box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.logo-wrap img { height: 40px; }
.site-nav a { margin-left: 1.25rem; font-weight: 600; }

/* ====== Hero =============================================================== */
.hero { text-align: center; padding: 3rem 0 2rem; background: #fff; }
.hero-img { width: 100%; height: auto; border-radius: var(--radius-lg); margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.hero h1 { font-size: clamp(1.75rem, 2.5vw, 2.5rem); color: var(--color-primary); margin: .5rem 0; }
.subhead { max-width: 720px; margin: 0 auto 1rem; }

.cta-buttons { display: inline-flex; gap: .5rem; margin-top: .75rem; }
.cta-buttons .tab-btn {
  background: var(--color-primary); color: #fff; border: none; cursor: pointer;
  padding: .85rem 1.25rem; border-radius: 12px; font-weight: 600; transition: background .25s ease;
}
.cta-buttons .tab-btn:hover { background: var(--color-hover); }
.cta-buttons .tab-btn.active { background: var(--color-accent); }

/* ====== Tabs & Cards ======================================================= */
.tab-section { margin-top: 2rem; }
.tab-content { display: none; margin-top: 1rem; }
.tab-content.active { display: block; }

.section-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin: 1rem 0 1.5rem; }

.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem; align-items: stretch;
}
.card {
  background: var(--color-card-bg); border-radius: var(--radius-lg);
  padding: 1.25rem; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.card img { width: 64px; height: 64px; margin-bottom: .75rem; }
.card h3 { margin: .25rem 0 .5rem; color: var(--color-primary); font-size: 1.1rem; }
.card.animate { opacity: 1; transform: translateY(0); }

.cta-inline { text-align: center; margin-top: 1rem; }
.cta-button {
  background: var(--color-accent); color: #fff; padding: .9rem 1.25rem; border-radius: 12px; display: inline-block; font-weight: 700;
}
.cta-button:hover { background: var(--color-primary); }

/* ====== How it works ======================================================= */
.how-section { padding-top: .5rem; }
.how-section h2 { color: var(--color-primary); }
.steps {
  list-style: none; counter-reset: step; padding: 0; margin: 1rem 0 0;
}
.steps li {
  counter-increment: step; background: #fff; border-radius: 12px; padding: 1rem;
  margin-bottom: .75rem; box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-primary); color: #fff; font-weight: 700; margin-right: .5rem;
}

/* ====== Lead form ========================================================== */
.lead-form { background: #fff; padding: 2rem; border-radius: var(--radius-lg); margin-top: 2rem; box-shadow: var(--shadow-md); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; padding: .8rem .9rem; margin: .4rem 0; border-radius: 10px; border: 1px solid #CBD5E1; font: inherit;
}
/* Error state for form fields */
.lead-form input.error, .lead-form select.error, .lead-form textarea.error {
  border-color: #e53e3e;
  background: #fff5f5;
}

/* Spacing for reCAPTCHA widget */
.g-recaptcha {
  margin: 1rem 0;
}
.lead-form button {
  background: var(--color-accent); color: #fff; padding: .95rem 1.25rem;
  border: 0; border-radius: 12px; cursor: pointer; font-weight: 700;
}
.lead-form button:hover { background: var(--color-primary); }
.form-msg { margin-top: .75rem; }

/* ====== Footer ============================================================= */
footer { text-align: center; padding: 2rem 0; background: var(--color-card-bg); margin-top: 2rem; }
footer a:hover { color: var(--color-accent); }

/* ====== Responsive ========================================================= */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-header { flex-direction: column; gap: .75rem; }
  .site-nav a { margin-left: .75rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}

/* ====== Reduced Motion ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; transform: none; opacity: 1; }
}
