/* AtoZ Research and Consulting — shared stylesheet
   Zero external dependencies (system font stack) so the site stays up with no babysitting. */

:root {
  --navy: #0f2540;
  --navy-2: #16335a;
  --ink: #1a2331;
  --slate: #4a5568;
  --slate-light: #718096;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --gold: #c8a24a;
  --ok: #15803d;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 37, 64, .08), 0 8px 24px rgba(15, 37, 64, .06);
  --shadow-lg: 0 12px 40px rgba(15, 37, 64, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 1.05rem; letter-spacing: -.01em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--slate); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--navy); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
  font-family: var(--font);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(37, 99, 235, .14), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 96px 0 104px;
}
.hero .eyebrow { color: #a9c2ef; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; max-width: 18ch; }
.hero p { color: #cdd9ee; font-size: 1.15rem; margin: 22px 0 34px; max-width: 56ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.25); }
.hero .btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 52px; }
.section-head .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--navy); letter-spacing: -.02em; margin: 12px 0 14px; }
.section-head p { color: var(--slate); font-size: 1.08rem; }
.bg-soft { background: var(--bg-soft); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .ic {
  width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(37, 99, 235, .1); color: var(--accent); font-size: 1.3rem; margin-bottom: 18px;
}
.card h3 { color: var(--navy); font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: .98rem; }

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 460px; margin: 0 auto; text-align: center;
  border: 1px solid var(--line); border-radius: 16px; padding: 44px 36px;
  box-shadow: var(--shadow-lg); background: #fff;
}
.pricing-card .price { font-size: 3.4rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.pricing-card .price span { font-size: 1.1rem; color: var(--slate-light); font-weight: 500; }
.pricing-card ul { list-style: none; text-align: left; margin: 26px 0 30px; }
.pricing-card li { padding: 9px 0; color: var(--slate); display: flex; gap: 10px; align-items: flex-start; }
.pricing-card li::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 820px; margin: 0 auto; }
.contact-item { text-align: center; padding: 28px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-item .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-light); font-weight: 600; margin-bottom: 8px; }
.contact-item .val { color: var(--navy); font-weight: 600; font-size: 1.02rem; word-break: break-word; }

/* ---------- Checkout ---------- */
.checkout-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 34px; box-shadow: var(--shadow); }
.panel h2 { color: var(--navy); font-size: 1.4rem; margin-bottom: 6px; }
.panel .sub { color: var(--slate); margin-bottom: 28px; }

.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font); font-size: 1rem; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

.stepper { display: flex; align-items: center; gap: 0; width: fit-content; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button { width: 48px; height: 48px; border: none; background: var(--bg-soft); font-size: 1.4rem; color: var(--navy); cursor: pointer; }
.stepper button:hover { background: #eef2f8; }
.stepper input { width: 72px; height: 48px; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 1.1rem; font-weight: 600; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.summary { position: sticky; top: 92px; }
.summary .row { display: flex; justify-content: space-between; padding: 12px 0; color: var(--slate); border-bottom: 1px solid var(--line); }
.summary .row.total { border-bottom: none; padding-top: 18px; color: var(--navy); font-weight: 800; font-size: 1.35rem; }
.summary .row .muted { color: var(--slate-light); font-size: .92rem; }

.notice { background: rgba(200, 162, 74, .1); border: 1px solid rgba(200, 162, 74, .35); color: #7a5c10; padding: 14px 16px; border-radius: 10px; font-size: .9rem; margin-top: 18px; }

/* Pay placeholder modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 37, 64, .5); display: none; place-items: center; z-index: 100; padding: 24px; }
.modal-overlay.open { display: grid; }
.modal { background: #fff; border-radius: 16px; max-width: 460px; width: 100%; padding: 38px 34px; text-align: center; box-shadow: var(--shadow-lg); }
.modal .ic { width: 60px; height: 60px; border-radius: 50%; background: rgba(37,99,235,.1); color: var(--accent); display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 20px; }
.modal h3 { color: var(--navy); font-size: 1.35rem; margin-bottom: 12px; }
.modal p { color: var(--slate); margin-bottom: 8px; }
.modal .order-total { color: var(--navy); font-weight: 800; font-size: 1.4rem; margin: 16px 0 24px; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 80px; }
.legal .container { max-width: 800px; }
.legal h1 { color: var(--navy); font-size: 2.2rem; letter-spacing: -.02em; margin-bottom: 8px; }
.legal .updated { color: var(--slate-light); font-size: .92rem; margin-bottom: 36px; }
.legal h2 { color: var(--navy); font-size: 1.3rem; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--slate); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c2d0e6; padding: 56px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { color: #9fb3d1; font-size: .95rem; max-width: 40ch; }
.footer-col h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col a, .footer-col .fitem { display: block; color: #9fb3d1; padding: 6px 0; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; text-align: center; color: #7e93b5; font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .checkout-wrap { grid-template-columns: 1fr; }
  .summary { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
  section { padding: 60px 0; }
  .hero { padding: 70px 0 76px; }
}
