/* ============================================================
   APOSTAL · style.css
   Pure CSS — no frameworks
   ============================================================ */


/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --navy:         #1B3A6B;
  --gold:         #F5A823;
  --gold-dark:    #d99210;
  --white:        #FFFFFF;
  --text:         #1A1A2E;
  --text-sec:     #4A5568;
  --bg-grey:      #F7F8FA;
  --border:       #E2E8F0;
  --green:        #2F855A;
  --red:          #C53030;

  --shadow-card:       0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.12), 0 12px 32px rgba(0,0,0,0.08);
  --shadow-nav:        0 1px 0 rgba(0,0,0,0.08);

  --r-card: 12px;
  --r-btn:  8px;
  --r-pill: 100px;

  --ease: 0.15s ease;

  --max-w:  1200px;
  --sec-py: 96px;
}


/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img   { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a     { text-decoration: none; color: inherit; }
button { font-family: inherit; }


/* ── Layout utilities ──────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--sec-py) 0;
}

.section-grey  { background: var(--bg-grey); }
.section-navy  { background: var(--navy); }


/* ── Typography helpers ────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-heading {
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 16px;
}

.section-heading.text-left  { text-align: left; }
.section-heading.text-white { color: var(--white); }

.section-subheading {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.65;
}

.section-subheading.text-light { color: rgba(255,255,255,0.72); }

.body-text {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.65;
  margin-bottom: 18px;
}


/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--r-btn);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease),
              border-color var(--ease), box-shadow var(--ease);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-full { width: 100%; }


/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--white);
  box-shadow: var(--shadow-nav);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 36px; width: auto; }

/* ── Desktop nav links ─ */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sec);
  padding: 8px 12px;
  border-radius: 6px;
  transition: color var(--ease), background var(--ease);
}
.nav-link:hover { color: var(--navy); background: var(--bg-grey); }

.nav-cta { margin-left: 12px; }

/* ── Hamburger ─ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background var(--ease);
}
.nav-hamburger:hover { background: var(--bg-grey); }

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

/* Hamburger → X animation */
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  padding-top: calc(64px + var(--sec-py));
  padding-bottom: var(--sec-py);
  background: var(--white);
}

.hero-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  animation: heroFadeUp 0.65s ease both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: 56px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-subheadline {
  font-size: 18px;
  color: var(--text-sec);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* ── Stat pills ─ */
.hero-stats {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 24px;
  background: var(--bg-grey);
  border-radius: var(--r-pill);
}

.stat-number {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
}


/* ══════════════════════════════════════════════════════════════
   CARDS (shared)
══════════════════════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  gap: 24px;
}

.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--ease), transform var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

/* Problem cards: navy left border */
.card-accent { border-left: 4px solid var(--navy); }

.card-stat {
  font-size: 40px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.card-text {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.6;
}

/* Role cards: centered */
.card-role { text-align: center; }

.role-icon {
  font-size: 38px;
  margin-bottom: 16px;
  line-height: 1;
}


/* ══════════════════════════════════════════════════════════════
   SOLUTION SECTION
══════════════════════════════════════════════════════════════ */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Feature bullet list */
.feature-list {
  margin: 8px 0 24px;
}
.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.feature-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Tech pill badges */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pill-navy { background: var(--navy); color: var(--white); }


/* ── Workflow card ── */
.workflow-card {
  background: var(--navy);
  border-radius: var(--r-card);
  padding: 40px 36px;
  color: var(--white);
}

.workflow-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.workflow-steps {
  display: flex;
  flex-direction: column;
}

.workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 28px;
  position: relative;
}
.workflow-step:last-child { padding-bottom: 0; }

/* Connector line between steps */
.workflow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 37px;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.1);
}
.step-completed:not(:last-child)::after {
  background: rgba(245,168,35,0.35);
}

/* Step number circle */
.step-circle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.step-completed .step-circle {
  background: var(--gold);
  color: var(--navy);
}

.step-active .step-circle {
  background: var(--gold);
  color: var(--navy);
}

.step-pending .step-circle {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.35);
}

/* Pulsing ring on active step */
.step-pulse {
  animation: stepPulse 2.2s ease-in-out infinite;
}
@keyframes stepPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,168,35,0.5); }
  50%      { box-shadow: 0 0 0 10px rgba(245,168,35,0); }
}

/* Step text */
.step-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 7px;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}
.step-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.step-pending .step-title { color: rgba(255,255,255,0.35); }
.step-pending .step-desc  { color: rgba(255,255,255,0.2); }


/* ══════════════════════════════════════════════════════════════
   COMPARISON TABLE
══════════════════════════════════════════════════════════════ */
.comparison-wrapper {
  margin-top: 72px;
}

.comparison-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 28px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

/* Header row */
.comparison-table thead tr {
  background: var(--navy);
}
.comparison-table thead th {
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-align: left;
  white-space: nowrap;
}
.comparison-table thead th.col-apostal {
  border-left: 3px solid var(--gold);
}

/* Body rows */
.comparison-table tbody tr {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}
.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table tbody tr:hover { background: #f0f4fa; }

.comparison-table td {
  padding: 15px 24px;
  font-size: 15px;
  vertical-align: middle;
}

.row-label {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.col-apostal { border-left: 3px solid var(--gold); }

/* Good / Bad badges in table */
.badge-good {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--green);
}
.badge-good::before {
  content: '✅';
  font-size: 14px;
}

.badge-bad {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  color: var(--red);
}
.badge-bad::before {
  content: '✗';
  font-size: 15px;
  font-weight: 800;
}


/* ══════════════════════════════════════════════════════════════
   LIVE PROOF SECTION
══════════════════════════════════════════════════════════════ */
.proof-grid {
  display: flex;
  justify-content: center;
}

.proof-card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 52px 48px;
  max-width: 580px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: box-shadow var(--ease), transform var(--ease);
}
.proof-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.proof-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}

.proof-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.2;
}

.proof-card-text {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.65;
  margin-bottom: 28px;
}


/* ══════════════════════════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════════════════════════ */
.contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 40px;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row-2 { grid-template-columns: 1fr 1fr; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
/* Groups inside a row handle their own spacing via the row gap */
.form-row .form-group { margin-bottom: 0; }

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-input {
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,107,0.1);
}
.form-input::placeholder { color: #A0AEC0; }

.form-textarea {
  resize: vertical;
  min-height: 96px;
}

.contact-alt {
  text-align: center;
}

.contact-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  transition: color var(--ease);
}
.contact-link:hover { color: var(--white); }


/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 52px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand img {
  height: 28px;
  width: auto;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-sec);
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-copy {
  font-size: 13px;
  color: #A0AEC0;
}

.footer-nav-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #A0AEC0;
  margin-bottom: 16px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-sec);
  transition: color var(--ease);
}
.footer-link:hover {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}


/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE · 768px breakpoint
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --sec-py: 64px; }

  /* ── Navbar mobile ── */
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 24px;
    gap: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border);
    z-index: 199;
  }
  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-link {
    display: block;
    padding: 10px 12px;
    font-size: 16px;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  /* ── Hero ── */
  .hero {
    padding-top: calc(64px + var(--sec-py));
    padding-bottom: var(--sec-py);
  }

  .hero-headline { font-size: 36px; }
  .hero-subheadline { font-size: 16px; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .hero-stats { flex-direction: column; align-items: center; }

  /* ── Headings ── */
  .section-heading { font-size: 28px; }
  .section-header  { margin-bottom: 40px; }

  /* ── Cards ── */
  .cards-3 { grid-template-columns: 1fr; }

  /* ── Solution ── */
  .solution-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* ── Proof ── */
  .proof-card { padding: 36px 28px; }

  /* ── Contact form ── */
  .form-row-2   { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 24px; }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* ── Table ── */
  .comparison-table thead th,
  .comparison-table td {
    padding: 12px 16px;
    font-size: 14px;
  }
}
