/* ============================================================
   global.css — Reset, typography, header, footer, utilities
   smsactivate1.us.com
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #2d3748;
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --color-navy:     #0d1b2a;
  --color-teal:     #17b3c8;
  --color-teal-dark:#0e8fa1;
  --color-teal-light: #e3f6fb;
  --color-amber:    #f0b429;
  --color-amber-light: #fef9ec;
  --color-white:    #ffffff;
  --color-body:     #2d3748;
  --color-muted:    #718096;
  --color-border:   #e2e8f0;
  --color-bg-alt:   #f7fafc;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 50px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  --max-width: 1200px;
  --section-py: 5rem;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #1a202c;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.125rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); font-weight: 600; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

/* ── Layout Utilities ────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section-pad {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section-pad--sm {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.bg-alt   { background: var(--color-bg-alt); }
.bg-navy  { background: var(--color-navy); }
.bg-teal  { background: var(--color-teal); }
.text-white { color: #fff; }
.text-muted { color: var(--color-muted); }

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ── CTA Button ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-teal);
  color: #fff;
  border-color: var(--color-teal);
}
.btn-primary:hover {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
  box-shadow: 0 4px 16px rgba(23,179,200,0.35);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-teal);
  border-color: var(--color-teal);
}
.btn-outline:hover {
  background: var(--color-teal);
  color: #fff;
}

/* ── CTA Strip ───────────────────────────────────────────── */
.cta-strip {
  background: var(--color-navy);
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.cta-strip .btn {
  font-size: 1.0625rem;
}

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 480px;
}

thead {
  background: var(--color-navy);
  color: #fff;
}

thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

tbody tr:nth-child(even) {
  background: var(--color-bg-alt);
}

tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

.check { color: #38a169; font-weight: 700; }
.cross { color: #e53e3e; font-weight: 700; }
.partial { color: var(--color-amber); font-weight: 700; }

/* ── FAQ Accordion ───────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  padding: 1.125rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 54px;
  background: #fff;
  color: #1a202c;
  transition: background 0.15s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.375rem;
  font-weight: 400;
  flex-shrink: 0;
  color: var(--color-teal);
  transition: transform 0.2s;
}

.faq-item[open] summary {
  background: var(--color-teal-light);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.25rem 1.125rem;
  font-size: 0.9375rem;
  color: var(--color-body);
  line-height: 1.7;
  background: #fff;
}

.faq-item[open] .faq-answer {
  background: var(--color-teal-light);
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  min-height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 1.1875rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.site-logo span { color: var(--color-teal); }

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Mobile menu — CSS-only checkbox hack */
.menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 767px) {
  .menu-btn { display: flex; }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-navy);
    padding: 0.75rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    gap: 0.25rem;
  }

  .menu-toggle:checked ~ .header-inner .site-nav {
    display: flex;
  }

  .menu-toggle:checked ~ .header-inner .menu-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle:checked ~ .header-inner .menu-btn span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .menu-toggle:checked ~ .header-inner .menu-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* ── Footer ──────────────────────────────────────────────── */
.footer-cta-banner {
  background: var(--color-navy);
  padding: 4rem 1.25rem;
  text-align: center;
  border-top: 3px solid var(--color-teal);
}

.footer-cta-banner h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.footer-cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 1.0625rem;
  margin-bottom: 1.75rem;
}

.site-footer {
  background: #07111c;
  padding-top: 3.5rem;
  padding-bottom: 0;
  color: rgba(255,255,255,0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: #fff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  transition: color 0.15s;
  display: inline-block;
  min-height: 28px;
  line-height: 28px;
}

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

.footer-bottom {
  padding: 1.25rem 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  :root { --section-py: 3.5rem; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 479px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
