/* global.css — Shared base styles for smsactivate1.biz */

/* ===================================================
   CSS Variables
=================================================== */
:root {
  --color-bg:         #0D1B2A;
  --color-surface:    #162435;
  --color-surface-2:  #1E2F42;
  --color-accent:     #00E676;
  --color-accent-dk:  #00C853;
  --color-text:       #E8EDF2;
  --color-muted:      #8899AA;
  --color-border:     #243447;
  --color-warn-bg:    #1A1200;
  --color-warn:       #FFB300;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --max-w: 1200px;
  --t: 0.2s ease;
}

/* ===================================================
   Reset / Normalize
=================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; color: var(--color-text); }
ul, ol { list-style: none; }
strong { font-weight: 700; }

/* ===================================================
   Layout Utilities
=================================================== */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ===================================================
   Announcement Bar
=================================================== */
.ann-bar {
  background: var(--color-warn-bg);
  border-bottom: 1px solid rgba(255,179,0,0.4);
  padding: 9px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--color-warn);
  line-height: 1.4;
}
.ann-bar a {
  color: var(--color-warn);
  font-weight: 600;
  text-decoration: underline;
}
.ann-bar a:hover { opacity: 0.8; }

/* ===================================================
   Site Header
=================================================== */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 14px 24px;
  gap: 16px;
  position: relative;
}

/* Logo */
.logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--color-text);
  flex-shrink: 0;
  text-decoration: none;
}
.logo em { font-style: normal; color: var(--color-accent); }
.logo:hover { text-decoration: none; opacity: 0.9; }

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 13px;
  border-radius: var(--radius-md);
  transition: color var(--t), background var(--t);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover { color: var(--color-text); background: var(--color-surface-2); text-decoration: none; }

/* ===================================================
   CTA Buttons
=================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
  min-height: 44px;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--color-accent);
  color: #0D1B2A;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dk);
  border-color: var(--color-accent-dk);
  color: #0D1B2A;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: #0D1B2A;
  text-decoration: none;
}
.btn-lg { padding: 15px 30px; font-size: 16px; min-height: 52px; }
.btn-sm { padding: 8px 16px; font-size: 13px; min-height: 38px; }

/* ===================================================
   Mobile Menu (CSS-only checkbox hack)
=================================================== */
#nav-toggle { display: none; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  min-height: 44px;
  min-width: 44px;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  transition: background var(--t);
}
.menu-toggle:hover { background: var(--color-surface-2); }
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

/* ===================================================
   Tables
=================================================== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  background: var(--color-surface-2);
  color: var(--color-text);
  font-weight: 700;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.check-yes { color: var(--color-accent); font-weight: 700; }
.check-no  { color: #FF5252; }

/* ===================================================
   FAQ Accordion
=================================================== */
.faq-list { display: flex; flex-direction: column; gap: 6px; }

details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--t);
}
details:hover { border-color: rgba(0,230,118,0.3); }
details[open] { border-color: rgba(0,230,118,0.4); }

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  list-style: none;
  min-height: 56px;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--color-accent);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--t);
}
details[open] > summary::after { content: '−'; }
details[open] > summary { border-bottom: 1px solid var(--color-border); }

.faq-answer {
  padding: 18px 20px;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ===================================================
   Section Utilities
=================================================== */
.section { padding: 72px 0; }
.section-alt { background: var(--color-surface); }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 10px;
}
.section-sub {
  font-size: 16px;
  color: var(--color-muted);
  margin-bottom: 44px;
  max-width: 580px;
  line-height: 1.6;
}

/* ===================================================
   Site Footer
=================================================== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-top: 60px;
}

.footer-cta {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
  margin-bottom: 52px;
}
.footer-cta h2 { font-size: clamp(18px, 2.5vw, 26px); margin-bottom: 14px; }
.footer-cta p { color: var(--color-muted); font-size: 15px; margin-bottom: 24px; max-width: 480px; margin-inline: auto; }
.footer-cta .btn-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px 40px;
  padding-bottom: 44px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-muted);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 9px;
  transition: color var(--t);
  text-decoration: none;
}
.footer-col a:hover { color: var(--color-text); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--color-muted);
}
.footer-disclaimer {
  font-size: 11px;
  color: rgba(136,153,170,0.65);
  text-align: center;
  padding-bottom: 16px;
}

/* ===================================================
   Responsive Breakpoints
=================================================== */
@media (max-width: 1024px) {
  .section { padding: 56px 0; }
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    gap: 2px;
    z-index: 100;
  }
  .site-nav a { justify-content: flex-start; }
  .site-nav .btn { width: 100%; justify-content: center; margin-top: 8px; }

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

  .section { padding: 44px 0; }
  .footer-cta { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-sub { margin-bottom: 32px; }
}
