/* ============================================
   Speedy Campaign Websites — Styles
   Navy & Red brand, Oswald + Inter
   ============================================ */

:root {
  --color-primary: #1B3A5C;
  --color-primary-dark: #0F2440;
  --color-primary-light: #2A5A8C;
  --color-secondary: #C42032;
  --color-secondary-dark: #9E1A28;
  --color-text: #1a1a2e;
  --color-text-light: #555555;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f8;
  --color-white: #ffffff;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: 70px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-primary);
}

.nav-brand svg {
  flex-shrink: 0;
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-secondary);
  text-decoration: none;
}

.nav-cta {
  background: var(--color-secondary) !important;
  color: var(--color-white) !important;
  padding: 8px 20px;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--color-secondary-dark) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */
.hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 140px 0 80px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 3rem;
  max-width: 800px;
  margin: 0 auto 20px;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 36px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Page Hero (pricing, etc.) ---- */
.page-hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 130px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-secondary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-secondary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ---- Sections ---- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

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

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
  color: var(--color-primary);
}

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

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-navy .section-subtitle {
  color: rgba(255,255,255,0.8);
}

/* ---- Features Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 32px 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 8px 24px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---- Template Cards ---- */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.template-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.template-screenshot {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.template-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--color-primary-dark);
  border-bottom: 3px solid var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.template-placeholder-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}

.template-placeholder-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-white);
}

.template-card-body {
  padding: 20px;
}

.template-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.template-card-body p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 14px;
  line-height: 1.5;
}

.template-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.template-chip {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border-radius: 3px;
}

.template-card-body .btn {
  width: 100%;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ---- Portfolio ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ---- Contact Section ---- */
.contact-section {
  text-align: center;
  padding: 80px 0;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-section p {
  margin-bottom: 32px;
  opacity: 0.9;
}

/* ---- Pricing Cards ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 40px 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  position: relative;
  border-top: 4px solid transparent;
}

.pricing-card.highlighted {
  border-top-color: var(--color-secondary);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 18px;
  border-radius: 20px;
}

.pricing-card h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.pricing-price .suffix {
  font-size: 1.2rem;
  font-weight: 500;
}

.pricing-billing {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.pricing-description {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-list {
  list-style: none;
  margin-bottom: 12px;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.pricing-list .check {
  color: #16a34a;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-list .x-mark {
  color: #aaa;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-list .x-mark + span {
  color: var(--color-text-light);
}

.pricing-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 16px 0;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
  margin-top: 24px;
}

/* ---- Disclaimer ---- */
.disclaimer-box {
  max-width: 800px;
  margin: 48px auto 0;
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  padding: 24px 28px;
  border-radius: 0 8px 8px 0;
}

.disclaimer-box h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.disclaimer-box p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---- FAQ Accordion ---- */
.faq-section {
  max-width: 800px;
  margin: 64px auto 0;
}

.faq-section h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 32px;
  color: var(--color-primary);
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question:hover {
  color: var(--color-secondary);
}

.faq-icon {
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.3s;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 0 20px;
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-white);
}

.footer-tagline {
  font-size: 0.88rem;
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  font-size: 0.8rem;
}

.footer-legal {
  max-width: 600px;
  line-height: 1.5;
  opacity: 0.6;
}

/* ---- Fade Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive: 992px ---- */
@media (max-width: 992px) {
  .features-grid,
  .templates-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 { font-size: 2.4rem; }
  .page-hero h1 { font-size: 2rem; }
}

/* ---- Responsive: 768px ---- */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }

  .nav-links.open { display: flex; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .pricing-card.highlighted {
    transform: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2rem; }
}

/* ---- Responsive: 480px ---- */
@media (max-width: 480px) {
  .features-grid,
  .templates-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 { font-size: 1.6rem; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.6rem; }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn { width: 100%; max-width: 280px; text-align: center; }
}
