/* ============================================================
   Atlanta Services Group — Cumming Community News
   style.css  |  v2.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Manrope:wght@700;800&display=swap');

/* ── TOKENS ── */
:root {
  --ink:    #0f1e33;
  --muted:  #5e6f84;
  --blue:   #2060e8;
  --blue2:  #113a99;
  --cyan:   #30c8e8;
  --bg:     #f4f7fc;
  --white:  #ffffff;
  --line:   #e3e9f2;
  --shadow: 0 24px 70px rgba(12, 32, 68, .14);
  --radius: 20px;
  --transition: .18s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  {
  margin: 0;
  font-family: "DM Sans", system-ui, Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img   { display: block; max-width: 100%; }
a     { color: inherit; }

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

/* ── TOPBAR ── */
.topbar {
  height: 72px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
  flex-shrink: 0;
  height: 72px;        /* match topbar height */
  overflow: hidden;    /* prevent logo escaping the bar */
}

/* Logo is a square 1254×1254 image — constrain both dimensions
   so it never exceeds the navbar regardless of browser zoom. */
.brand-logo {
  height: 54px;
  max-height: 100%;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.nav nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #4a5b72;
  transition: color var(--transition);
}

.nav nav a:hover,
.nav nav a:focus-visible {
  color: var(--blue);
}


/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #0d2046 0%, #1a3f88 55%, #1468a0 100%);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(48, 200, 232, .26), transparent 38%),
    radial-gradient(ellipse at 14% 82%, rgba(32, 96, 232, .38), transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
  padding: 84px 0 96px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #b8ebf8;
  margin-bottom: 16px;
}

.eyebrow.dark {
  color: var(--blue);
  letter-spacing: .12em;
}

.hero h1 {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 70px);
  line-height: 1.04;
  margin: 0 0 22px;
  letter-spacing: -.04em;
}

.hero h1 span { color: #5adff0; }

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: #cfe0f5;
  max-width: 580px;
  margin: 0 0 28px;
}

.hero-points {
  display: grid;
  gap: 11px;
  margin-bottom: 34px;
}

.hero-points div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #e8f2ff;
}

.hero-points span {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(90, 223, 240, .18);
  color: #6eeaf5;
  font-size: 11px;
  font-weight: 700;
}


/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  line-height: 1;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-light {
  background: #fff;
  color: #10306a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

.btn-light:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, .18);
}

.btn-primary {
  background: linear-gradient(135deg, #2060e8, #3490f5);
  color: #fff;
  box-shadow: 0 10px 28px rgba(32, 96, 232, .3);
  width: 100%;
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(32, 96, 232, .42);
}


/* ── SIGNUP CARD ── */
.signup-card {
  background: #fff;
  color: var(--ink);
  border-radius: 26px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #e6f1ff;
  color: var(--blue);
  font-size: 20px;
  margin-bottom: 14px;
}

.signup-card h2 {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 27px;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}

.card-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.55;
}

.signup-card form { display: grid; gap: 8px; }

.signup-card label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
  color: #2a3a50;
}

.signup-card label > .req { color: #d93454; }

.signup-card label em {
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  color: #8a97aa;
  margin-left: 5px;
}

.signup-card input[type="text"],
.signup-card input[type="email"],
.signup-card input[type="tel"],
.admin-login input {
  width: 100%;
  border: 1.5px solid #d8e2ee;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  background: #f9fbfd;
  margin-bottom: 4px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.signup-card input:focus,
.admin-login input:focus {
  border-color: #5296ee;
  box-shadow: 0 0 0 4px rgba(32, 96, 232, .1);
  background: #fff;
}

.check {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  font-weight: 500 !important;
  font-size: 13px !important;
  color: #536174;
  line-height: 1.5;
  cursor: pointer;
}

.check input {
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--blue);
}

.fine {
  font-size: 11px;
  color: #8a97aa;
  text-align: center;
  margin: 5px 0 0;
}

.fine a {
  color: #4470b8;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition);
}

.fine a:hover { text-decoration-color: currentColor; }

/* honeypot */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13px;
  margin-bottom: 10px;
}

.alert.error {
  background: #fff0f2;
  color: #a02035;
  border: 1px solid #ffd0d8;
}


/* ── TRUST STRIP ── */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px 0;
  gap: 24px;
}

.trust-grid > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-grid strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 2px;
}

.trust-grid span {
  font-size: 13px;
  color: #627084;
  line-height: 1.45;
}


/* ── FEATURES SECTION ── */
.section { padding: 90px 0; }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -.03em;
  color: var(--ink);
}

.section-head p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 8px 32px rgba(16, 40, 80, .05);
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature:hover {
  box-shadow: 0 16px 48px rgba(16, 40, 80, .1);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 26px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eaf3ff;
  margin-bottom: 18px;
}

.feature h3 {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 20px;
  margin: 0 0 9px;
  letter-spacing: -.02em;
}

.feature p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}


/* ── CTA BAND ── */
.cta {
  background: linear-gradient(138deg, #0f2e62, #166898);
  color: #fff;
  padding: 58px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta h2 {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 34px;
  margin: 0;
  letter-spacing: -.025em;
}

.cta .eyebrow {
  color: #a8d8f0;
  margin-bottom: 10px;
}


/* ── FOOTER ── */
footer {
  background: #0c1a2e;
  color: #d4e0f0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  font-size: 12px;
}

.footer-inner > div { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer-inner strong { font-size: 13px; color: #e8f0fb; }
.footer-inner a { color: #7ab4f5; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }


/* ── THANK-YOU PAGE ── */
.thank-page { background: linear-gradient(140deg, #ecf3ff, #f5f9ff); }

.thank-wrap {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.success-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 26px;
  padding: 48px;
  max-width: 620px;
  width: 100%;
  text-align: center;
}

.success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6f9f0;
  color: #14824c;
  font-size: 30px;
  font-weight: 800;
  margin: 0 auto 22px;
}

.success-card h1 {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 36px;
  margin: 0 0 12px;
  letter-spacing: -.03em;
}

.success-card p { color: var(--muted); margin: 0 0 26px; }
.success-card .btn { width: auto; }


/* ── ADMIN LOGIN ── */
.admin-login { text-align: left; }
.admin-login h1 { margin-bottom: 24px; }


/* ── LEGAL / PRIVACY ── */
.legal { padding: 64px 0; }

.legal-card {
  max-width: 840px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: 0 12px 44px rgba(16, 40, 80, .06);
}

.legal-card h1 {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 40px;
  margin: 0 0 24px;
  letter-spacing: -.03em;
}

.legal-card h2 {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 8px;
}

.legal-card p { color: #556070; line-height: 1.7; }

.small-note {
  font-size: 12px;
  background: #f4f6fa;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--muted);
}


/* ── ADMIN TABLE ── */
.admin-wrap { padding: 56px 0; }

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 26px;
}

.admin-head h1 {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 34px;
  margin: 0;
  letter-spacing: -.02em;
}

.admin-head p { color: var(--muted); margin: 5px 0 0; }
.admin-head .btn { width: auto; flex-shrink: 0; }

.table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: auto;
  box-shadow: 0 12px 44px rgba(16, 40, 80, .06);
}

table { width: 100%; border-collapse: collapse; min-width: 800px; }

th, td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

th {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7e96;
  background: #f7f9fc;
  font-weight: 700;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafcff; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px;
}


/* ── FOCUS STYLES (accessibility) ── */
:focus-visible {
  outline: 3px solid rgba(32, 96, 232, .5);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ── RESPONSIVE — tablet ── */
@media (max-width: 860px) {
  .brand-logo { height: 44px; max-width: 180px; }

  .nav nav { display: none; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 0 68px;
  }

  .hero h1 { font-size: 46px; }

  .trust-grid,
  .feature-grid { grid-template-columns: 1fr; }

  .trust-grid { gap: 16px; }

  .section { padding: 66px 0; }

  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta h2 { font-size: 28px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .signup-card { padding: 26px; }

  .admin-head { flex-direction: column; align-items: flex-start; }
  .admin-head .btn { width: 100%; }
}

/* ── RESPONSIVE — mobile ── */
@media (max-width: 480px) {
  .wrap { width: calc(100% - 28px); }
  .hero h1 { font-size: 38px; }
  .lead { font-size: 16px; }
  .btn { width: 100%; }
  .success-card,
  .legal-card { padding: 28px; }
  .success-card h1,
  .legal-card h1 { font-size: 30px; }
  .section-head h2 { font-size: 30px; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .feature { transition: none; }
}