/* ===========================
   SURGEPILOT — style.css
   Pure CSS, no framework
   =========================== */

/* Google Fonts loaded in HTML */

:root {
  --primary:        hsl(159, 75%, 18%);
  --primary-dark:   hsl(159, 75%, 13%);
  --primary-light:  hsl(159, 50%, 92%);
  --secondary:      hsl(34, 89%, 54%);
  --secondary-dark: hsl(34, 89%, 44%);
  --bg:             hsl(42, 33%, 98%);
  --fg:             hsl(160, 30%, 15%);
  --muted:          hsl(160, 20%, 93%);
  --muted-fg:       hsl(160, 15%, 45%);
  --border:         hsl(160, 20%, 85%);
  --card:           #ffffff;
  --accent:         hsl(142, 71%, 45%);
  --radius:         0.75rem;
  --radius-lg:      1.25rem;
  --radius-xl:      1.75rem;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:         0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Outfit', system-ui, sans-serif; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p  { font-size: 1rem; color: var(--muted-fg); }

/* ── Layout ── */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 5rem 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 9999px;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 1rem;
  transition: all .2s; cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 16px hsla(159,75%,18%,.25);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 24px hsla(159,75%,18%,.35); }
.btn-outline {
  background: #fff; color: var(--fg);
  border: 2px solid var(--border);
}
.btn-outline:hover { background: var(--muted); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; height: 3.5rem; }

/* ── Section label ── */
.section-label {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--primary); background: var(--primary-light);
  padding: .35rem .9rem; border-radius: 9999px; margin-bottom: 1rem;
}

/* ── Card ── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ── Icon box ── */
.icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius);
  background: var(--primary-light); color: var(--primary);
  font-size: 1.25rem; flex-shrink: 0;
}
.icon-box-lg {
  width: 3.5rem; height: 3.5rem; font-size: 1.5rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,251,247,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 5rem;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 4.5rem; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .95rem; font-weight: 500; color: var(--muted-fg);
  transition: color .15s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--fg); border-radius: 2px; transition: all .25s; }
.mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 1.5rem; flex-direction: column; gap: 1rem;
  box-shadow: var(--shadow);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.1rem; font-weight: 500; padding: .5rem 0; border-bottom: 1px solid var(--muted); }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: .5rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  text-align: center; padding: 6rem 0 5rem;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, hsla(159,75%,18%,.08), transparent);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--muted); border: 1px solid var(--border);
  border-radius: 9999px; padding: .4rem 1rem; font-size: .85rem; font-weight: 500;
  color: var(--muted-fg); margin-bottom: 1.75rem;
}
.hero h1 { margin-bottom: 1.25rem; max-width: 820px; margin-left: auto; margin-right: auto; }
.hero h1 em { font-style: normal; color: var(--primary); text-decoration: underline; text-decoration-color: var(--secondary); text-underline-offset: 6px; }
.hero-subtitle {
  font-size: 1.15rem; color: var(--muted-fg); max-width: 600px;
  margin: 0 auto 2.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 3rem; }
.hero-trust { font-size: .85rem; color: var(--muted-fg); font-weight: 500; }
.trust-logos {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center;
  margin-top: .75rem;
}
.trust-logo {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .4rem 1rem; font-size: .85rem; font-weight: 600; color: var(--muted-fg);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   PROBLEM INSIGHT
   ============================================================ */
.problem { background: var(--primary); color: #fff; }
.problem h2 { color: #fff; max-width: 680px; }
.problem p { color: hsla(0,0%,100%,.75); max-width: 640px; margin-top: 1rem; font-size: 1.05rem; }
.problem-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.problem-card {
  background: hsla(0,0%,100%,.08); border: 1px solid hsla(0,0%,100%,.15);
  border-radius: var(--radius-lg); padding: 1.5rem; color: #fff;
}
.problem-card .icon-box { background: hsla(0,0%,100%,.15); color: #fff; }
.problem-card h3 { color: #fff; margin: 1rem 0 .5rem; }
.problem-card p { color: hsla(0,0%,100%,.7); }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries-header { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.tab-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.25rem; border-radius: 9999px;
  border: 2px solid var(--border); background: var(--card);
  font-weight: 600; font-size: .95rem; color: var(--muted-fg);
  transition: all .2s;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.industry-left {}
.industry-left h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.feature-list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.75rem; }
.feature-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; color: var(--muted-fg); }
.feature-list li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: .05rem; }
.whatsapp-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #e7f8ee; border: 1px solid #a3e6ba; border-radius: 9999px;
  padding: .5rem 1rem; font-size: .85rem; font-weight: 600; color: #1a7a3c;
}
.whatsapp-icon { font-size: 1rem; }
.industry-right { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.capability-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s;
}
.capability-card:hover { box-shadow: var(--shadow); }
.capability-card h4 { font-size: .95rem; margin: .75rem 0 .35rem; }
.capability-card p { font-size: .85rem; }

/* gradient headers per industry */
.grad-healthcare { background: linear-gradient(135deg, #3B82F6, #2DD4BF); }
.grad-retail     { background: linear-gradient(135deg, #A855F7, #EC4899); }
.grad-restaurant { background: linear-gradient(135deg, #F97316, #FBBF24); }
.grad-insurance  { background: linear-gradient(135deg, #22C55E, #34D399); }
.industry-icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: var(--radius);
  margin-bottom: .75rem; color: #fff; font-size: 1.3rem;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-header { text-align: center; max-width: 560px; margin: 0 auto 3.5rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; position: relative; }
.step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.5rem;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.step:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.step-num {
  font-family: 'Outfit', sans-serif; font-size: 2.5rem; font-weight: 800;
  color: var(--primary-light); line-height: 1; margin-bottom: .75rem;
  -webkit-text-stroke: 1px var(--primary);
}
.step .icon-box { margin: 0 auto .75rem; }
.step-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-fg); margin-bottom: .35rem; }
.step h3 { margin-bottom: .5rem; }
.step p { font-size: .9rem; }

/* ============================================================
   FEATURES
   ============================================================ */
.features { background: var(--muted); }
.features-header { text-align: center; max-width: 560px; margin: 0 auto 3rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-card h3 { margin: 1rem 0 .5rem; }
.feature-card p { font-size: .9rem; }

/* ============================================================
   OUTCOMES
   ============================================================ */
.outcomes-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.outcomes-left h2 { margin-bottom: 1rem; }
.outcomes-left p { margin-bottom: 2rem; font-size: 1.05rem; }
.outcomes-list { display: flex; flex-direction: column; gap: .75rem; }
.outcomes-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; font-weight: 500; }
.outcomes-list li i { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; margin-top: .15rem; }
.outcomes-right { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem 1.25rem;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card:first-child { border-color: var(--primary); background: var(--primary); color: #fff; }
.stat-card:first-child .stat-num, .stat-card:first-child .stat-desc { color: #fff; }
.stat-num {
  font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800;
  color: var(--primary); margin-bottom: .35rem;
}
.stat-desc { font-size: .85rem; color: var(--muted-fg); }

/* ============================================================
   MISSION & VISION
   ============================================================ */
.mission-vision { background: var(--muted); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.mv-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.mv-card .icon-box { background: var(--primary); color: #fff; margin-bottom: 1.25rem; }
.mv-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.mv-card blockquote {
  font-size: 1.05rem; line-height: 1.7; color: var(--muted-fg);
  border-left: 3px solid var(--primary); padding-left: 1rem;
  font-style: italic;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, hsla(159,75%,18%,.07), transparent);
}
.final-cta .icon-box { margin: 0 auto 1.25rem; background: var(--primary-light); color: var(--primary); }
.final-cta h2 { margin-bottom: 1rem; }
.final-cta .subtitle { max-width: 640px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.cta-links { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: center; }
.cta-links a { font-size: .95rem; color: var(--primary); font-weight: 600; }
.cta-links a:hover { text-decoration: underline; }
.cta-sep { color: var(--muted-fg); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--fg); color: #fff; padding: 2.5rem 0;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.25rem;
}
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-brand i { font-size: 1.2rem; }
.footer-brand-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.05rem; }
.footer-tagline { font-size: .8rem; color: hsla(0,0%,100%,.55); }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { font-size: .875rem; color: hsla(0,0%,100%,.65); transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .8rem; color: hsla(0,0%,100%,.45); width: 100%; text-align: center; margin-top: .75rem; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-xl);
  width: 100%; max-width: 480px; padding: 2.5rem;
  box-shadow: var(--shadow-lg); position: relative;
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2rem; height: 2rem; border-radius: 9999px;
  background: var(--muted); color: var(--muted-fg);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: background .15s;
}
.modal-close:hover { background: var(--border); }
.modal h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.modal-desc { font-size: .95rem; color: var(--muted-fg); margin-bottom: 1.75rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-field label { font-size: .875rem; font-weight: 600; }
.form-field label span { color: #e53e3e; }
.form-field input {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: .75rem 1rem; font-size: .95rem; font-family: inherit;
  background: var(--muted); color: var(--fg); transition: border-color .15s;
  outline: none;
}
.form-field input:focus { border-color: var(--primary); background: #fff; }
.form-field input::placeholder { color: var(--muted-fg); }
.form-error {
  display: flex; align-items: flex-start; gap: .5rem;
  background: #fff5f5; border: 1px solid #fed7d7; border-radius: var(--radius);
  padding: .75rem 1rem; font-size: .875rem; color: #c53030; margin-bottom: 1rem;
}
.form-success { text-align: center; padding: 1.5rem 0; }
.form-success .success-icon {
  width: 4rem; height: 4rem; border-radius: 9999px;
  background: #f0fff4; color: #22c55e;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 1rem;
}
.form-success h3 { font-size: 1.4rem; margin-bottom: .75rem; }
.form-success p { font-size: .95rem; color: var(--muted-fg); margin-bottom: 1.5rem; }
.submit-btn {
  width: 100%; height: 3rem; border-radius: 9999px; font-size: 1rem;
  font-weight: 600; background: var(--primary); color: #fff;
  box-shadow: 0 4px 16px hsla(159,75%,18%,.25);
  transition: all .2s; cursor: pointer; border: none;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: .75rem;
}
.submit-btn:hover:not(:disabled) { background: var(--primary-dark); box-shadow: 0 6px 24px hsla(159,75%,18%,.35); }
.submit-btn:disabled { opacity: .65; cursor: not-allowed; }
.spinner {
  width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .outcomes-inner { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .tab-panel.active { grid-template-columns: 1fr; }
  .industry-right { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .navbar { position: relative; }
  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .outcomes-right { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .industry-right { grid-template-columns: 1fr; }
  .outcomes-right { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .modal { padding: 1.75rem 1.25rem; }
}
