/* SouthPeak Systems — Global Styles */

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

:root {
  --navy: #0D1B2A;
  --navy-mid: #1B2B4B;
  --navy-light: #243659;
  --steel: #3E7CB1;
  --steel-light: #5A9FD4;
  --steel-pale: #A8CBE8;
  --accent: #1AABF0;
  --white: #FFFFFF;
  --off-white: #F4F7FB;
  --gray-light: #E8EDF4;
  --gray: #8A9AB4;
  --text: #1A2B40;
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(13,27,42,0.12);
  --shadow-lg: 0 8px 40px rgba(13,27,42,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--steel-light); }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-light);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--steel), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  color: var(--white);
  letter-spacing: -1px;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
}

.nav-logo-sub {
  font-size: 10px;
  color: var(--steel-pale);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: var(--steel-pale);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--navy-light);
}

.nav-links .nav-cta a {
  background: var(--steel);
  color: var(--white);
  padding: 8px 18px;
}

.nav-links .nav-cta a:hover {
  background: var(--steel-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 60%, #1a3a5c 100%);
  padding: 100px 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(26,171,240,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(62,124,177,0.2);
  border: 1px solid rgba(90,159,212,0.35);
  color: var(--steel-pale);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  max-width: 780px;
  margin: 0 auto 20px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--steel-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--steel-pale);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--steel), var(--accent));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26,171,240,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(26,171,240,0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-mid);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── SECTIONS ── */
.section {
  padding: 80px 5%;
}

.section-alt {
  background: var(--off-white);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 12px;
}

.section-dark .section-label {
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}

.section-dark .section-title { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.7;
}

.section-dark .section-sub { color: var(--steel-pale); }

.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--navy-mid);
  padding: 36px 5%;
}

.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid var(--navy-light);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--steel-pale);
  font-weight: 500;
}

/* ── HOW IT WORKS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--steel), var(--accent));
  opacity: 0.35;
}

.step-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--steel), var(--accent));
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(26,171,240,0.3);
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.65;
}

/* ── WHO IT'S FOR ── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.audience-card {
  background: var(--navy-mid);
  border: 1px solid var(--navy-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.audience-card:hover {
  border-color: var(--steel);
  transform: translateY(-4px);
}

.audience-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}

.audience-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.audience-card p {
  font-size: 0.9rem;
  color: var(--steel-pale);
  line-height: 1.65;
}

/* ── FEATURE GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.feature-card {
  display: flex;
  gap: 18px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(62,124,177,0.12), rgba(26,171,240,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid rgba(62,124,177,0.2);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #1a3a5c 100%);
  padding: 80px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(26,171,240,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--steel-pale);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
  margin-top: 50px;
}

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(62,124,177,0.1), rgba(26,171,240,0.1));
  border: 1px solid rgba(62,124,177,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.contact-detail-value {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
}

.contact-detail-value a {
  color: var(--steel);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 14px;
  padding: 40px;
  box-shadow: var(--shadow);
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(62,124,177,0.12);
}

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

.form-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--steel), var(--accent));
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  font-family: var(--font);
  letter-spacing: 0.3px;
}

.form-submit:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(26,171,240,0.35);
}

/* ── SMS OPT-IN ── */
.optin-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 60px 5%;
}

.optin-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 14px;
  padding: 44px;
  box-shadow: var(--shadow-lg);
}

.optin-card h1 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.optin-card .subtitle {
  color: var(--gray);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.checkbox-wrap {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  background: var(--off-white);
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  margin-bottom: 24px;
}

.checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--steel);
  cursor: pointer;
}

.checkbox-wrap label {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.55;
  cursor: pointer;
}

.checkbox-wrap label a {
  color: var(--steel);
  text-decoration: underline;
}

.optin-business-info {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 20px;
  margin-top: 32px;
}

.optin-business-info h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
}

.optin-business-info p {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
}

.optin-business-info p strong {
  color: var(--navy);
  min-width: 70px;
}

/* ── LEGAL PAGES ── */
.legal-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 5%;
}

.legal-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-light);
}

.legal-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.legal-header p {
  color: var(--gray);
  font-size: 0.9rem;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-light);
}

.legal-section p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-section ul {
  padding-left: 20px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-section li { margin-bottom: 6px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 64px 5%;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--steel-pale);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}

/* ── SERVICE DETAIL ── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }

.service-visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 16px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-message {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px 18px;
}

.mock-message .tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.mock-message p {
  color: var(--steel-pale);
  font-size: 0.88rem;
  line-height: 1.5;
}

.service-content ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.service-content li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--gray-light);
}

.service-content li:last-child { border-bottom: none; }

.check {
  color: var(--steel);
  font-weight: 700;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  color: var(--steel-pale);
  padding: 56px 5% 28px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--navy-light);
  margin-bottom: 28px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 14px;
  color: var(--gray);
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col li a {
  font-size: 0.88rem;
  color: var(--gray);
  transition: color 0.2s;
}

.footer-col li a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a { color: var(--gray); }
.footer-bottom a:hover { color: var(--steel-pale); }

/* ── SUCCESS/ERROR STATES ── */
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  background: rgba(62,124,177,0.06);
  border: 1px solid rgba(62,124,177,0.2);
  border-radius: var(--radius);
  margin-top: 20px;
}

.form-success .icon { font-size: 2.4rem; margin-bottom: 12px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .steps-grid,
  .audience-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail,
  .service-detail.reverse { grid-template-columns: 1fr; direction: ltr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--navy);
    padding: 16px 5%;
    border-top: 1px solid var(--navy-light);
    gap: 4px;
  }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--navy-light); }
  .stat-item:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .optin-card { padding: 28px 22px; }
}
