/* =============================================
   Logo Quiz – Guess Brand Trivia (Marketing site)
   Author: April 21 Studio – 2025
   Pure CSS (no frameworks) – responsive (≤35 KB)
   ============================================= */

/* ---------- CSS Variables & Global Reset ---------- */
:root {
  /* Colours */
  --clr-primary: #2078ff;
  --clr-primary-dark: #0053ff;
  --clr-primary-light: #4ca3ff;
  --clr-bg: #ffffff;
  --clr-bg-light: #f8faff;
  --clr-text: #111111;
  --clr-text-light: #4d5665;
  --clr-border: rgba(0,0,0,0.08);
  --clr-shadow: rgba(0,0,0,0.07);
  /* Radius & Shadows */
  --radius: 12px;
  --shadow-sm: 0 2px 4px var(--clr-shadow);
  --shadow-md: 0 4px 12px var(--clr-shadow);
  /* Layout */
  --section-gap: clamp(4rem, 8vw, 6rem);
  --max-width: 1200px;
  /* Typography scale via clamp */
  --step-0: clamp(0.9rem, 0.25vw + 0.85rem, 1rem);
  --step-1: clamp(1rem, 0.35vw + 0.95rem, 1.25rem);
  --step-2: clamp(1.3rem, 0.5vw + 1.1rem, 1.5rem);
  --step-3: clamp(1.6rem, 0.8vw + 1.2rem, 2rem);
  --step-4: clamp(2.2rem, 1.2vw + 1.8rem, 3rem);
  --step-5: clamp(3rem, 2vw + 2rem, 4rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: var(--step-0);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Utility */
.container {
  width: min(90vw, var(--max-width));
  margin-inline: auto;
}

/* Hide mobile close on desktop */
.nav-close {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.25s ease;
  text-decoration: none;
}

.btn.primary {
  background: var(--clr-primary);
  color: #fff;
}
.btn.primary:hover {
  background: var(--clr-primary-dark);
}

.btn.outline {
  background: transparent;
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
}
.btn.outline:hover {
  background: var(--clr-primary-light);
  color: #fff;
}

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

section {
  padding-block: var(--section-gap);
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--clr-border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.logo {
  font-weight: 700;
  font-size: var(--step-2);
  color: var(--clr-primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--clr-text);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--clr-primary);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  transition: transform 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='1200' height='800' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M60 0H0V60' fill='none' stroke='%23ffffff33' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='1200' height='800' fill='url(%23grid)'/%3E%3C/svg%3E");
  opacity: 0.35;
}

.hero-content {
  position: relative;
  padding-block: var(--section-gap) calc(var(--section-gap) * 1.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero h1 {
  font-size: var(--step-5);
  line-height: 1.1;
  max-width: 16ch;
}

.hero p {
  font-size: var(--step-2);
  max-width: 40ch;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  gap: 2rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.feature:nth-child(even) .feature-img {
  order: 2;
}

.feature-img {
  flex: 0 0 300px;
  max-width: 300px;
}

.feature-content h3 {
  font-size: var(--step-3);
  margin-bottom: 0.5rem;
}

/* ---------- Why Section ---------- */
.bullet-grid {
  display: grid;
  gap: 1rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--clr-bg-light);
}

.quote {
  background: var(--clr-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.quote p {
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
footer {
  background: var(--clr-bg-light);
  padding-block: 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

footer h4 {
  font-size: var(--step-1);
  margin-bottom: 0.75rem;
}

footer ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

footer a {
  text-decoration: none;
  color: var(--clr-text-light);
  font-size: var(--step-0);
}

footer a:hover {
  color: var(--clr-primary);
}

.copy {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--clr-text-light);
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
  box-shadow: 0 -2px 6px var(--clr-shadow);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 9999;
  transition: transform 0.4s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--clr-bg);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.25rem;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-row input[type="checkbox"] {
  accent-color: var(--clr-primary);
}

/* ---------- Media Queries ---------- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--clr-bg);
    flex-direction: column;
    padding: 6rem 2rem 4rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100vw;
    height: 100vh;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-toggle {
     display: flex;
  }

  .nav-links li {
    margin-bottom: 2rem;
    font-size: var(--step-3);
  }

  /* Close button inside menu */
  .nav-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 2.25rem;
    background: transparent;
    border: none;
    color: var(--clr-text);
    cursor: pointer;
  }

  .feature {
    flex-direction: column;
    text-align: center;
  }

  .feature:nth-child(even) .feature-img {
    order: 0;
  }

  .nav-close {
    display: block;
  }
}

@media (min-width: 1024px) {
  .features {
    gap: 3rem;
  }

  .feature-content h3 {
    font-size: var(--step-4);
  }
} 

/* ---------- Bullet Grid Enhancements ---------- */
.bullet-grid li {
  background: var(--clr-bg-light);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: start;
  gap: 0.75rem;
  font-weight: 500;
}

.bullet-grid li::before {
  content: "✓";
  color: var(--clr-primary);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

/* ---------- Hero Fix ---------- */
.hero::after {
  pointer-events: none;
}

/* CTA buttons container */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (max-width: 480px) {
  .bullet-grid {
    grid-template-columns: 1fr;
  }
} 

/* When menu open, disable body scroll */
body.menu-open {
  overflow: hidden;
} 