/* ── VoteUpp Landing Site Styles ── */
:root {
  --primary: #0d47a1;
  --primary-dark: #0a3680;
  --accent: #ffc107;
  --accent-dark: #e5ac00;
  --text: #212121;
  --text-light: #555;
  --bg: #ffffff;
  --bg-light: #f5f7fa;
  --border: #e0e0e0;
  --max-width: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Header / Nav ── */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-header .logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.site-header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.site-header nav a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.site-header nav a:hover {
  opacity: 1;
  text-decoration: none;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: #fff;
  padding: 80px 20px 60px;
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero h1 span {
  color: var(--accent);
}
.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0.9;
}
.hero .badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .badges a img {
  height: 50px;
}
.hero .badges a {
  transition: transform 0.2s;
}
.hero .badges a:hover {
  transform: scale(1.05);
}

/* ── Features ── */
.features {
  padding: 60px 20px;
  background: var(--bg-light);
}
.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.feature-card .icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ── About ── */
.about {
  padding: 60px 20px;
}
.about .container {
  max-width: var(--max-width);
}
.about h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--primary);
}
.about p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--accent);
  color: var(--text);
  padding: 48px 20px;
  text-align: center;
}
.cta-banner h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition:
    background 0.2s,
    transform 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* ── Footer ── */
.site-footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 40px 20px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto 32px;
}
.footer-col h4 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}
.footer-col p {
  font-size: 0.9rem;
  color: #aaa;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #777;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Legal Pages (Privacy / Terms) ── */
.legal-content {
  padding: 40px 20px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.legal-content h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.legal-content .updated {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.legal-content h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 20px;
  margin-bottom: 8px;
}
.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.9rem;
}
.legal-content th {
  background: var(--bg-light);
  font-weight: 600;
}

/* ── Support / Contact Page ── */
.support-content {
  padding: 40px 20px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.support-content h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 24px;
}
.support-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.support-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
}
.support-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}
.contact-form {
  margin-top: 32px;
}
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form .btn {
  margin-top: 16px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .site-header nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 16px 20px;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  .site-header nav.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
}
