:root {
    --primary: #F51B1B;
    --secondary: #F75D25;
    --accent: #3DB349;
    --dark: #1A1F29;
    --light: #F5F7FA;
    --gray: #6B7280;
}

html,
body {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 20px; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: darken(var(--primary), 10%);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: darken(var(--accent), 10%);
}

/* Header */
/* Make header fixed/sticky */
header {
    position: fixed;                /* Stays at top even when scrolling */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;                  /* Stays above other content */
    background: white;              /* Solid background so content doesn't show through */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle shadow for depth */
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Optional: slight transparency or color change when scrolled (modern effect) */
header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);    /* Glassmorphism feel */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Mobile menu adjustments (if it opens, make sure it doesn't get stuck) */
.nav-links.active,
.header-cta.active {
    top: 100%;                      
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;                /* Reduced padding for slimmer look when fixed */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

/* .header-cta {
    display: flex;
    gap: 15px;
} */

.header-cta {
  display: none;
}

.header-cta.active {
  display: flex;
}


.mobile-menu-btn {
    display: none;
}

/* Mobile toggle input – hidden */
/* .mobile-toggle-input {
    display: none;
} */

/* Hamburger button */
.mobile-menu-btn {
    display: none; /* hidden on desktop */
    cursor: pointer;
    font-size: 28px;
    background: none;
    border: none;
    color: var(--dark);
    padding: 10px;
}

/* Close icon hidden by default */
.mobile-menu-btn .fa-times {
    display: none;
}

/* When checkbox is checked: show close icon, hide bars */
.mobile-toggle-input:checked + .mobile-menu-btn .fa-bars {
    display: none;
}

.mobile-toggle-input:checked + .mobile-menu-btn .fa-times {
    display: inline-block;
}

/* Nav menu on mobile */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu {
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.mobile-toggle-input:checked ~ .nav-menu {
    opacity: 1;
}


/* Desktop: show nav normally */
@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .nav-links,
    .header-cta {
        display: flex !important;
    }
    
    .nav-menu {
        flex: 1;
        justify-content: flex-end;
        gap: 30px;
    }
}

/* Mobile: hide nav by default */
@media (max-width: 767px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links,
    .header-cta {
        display: none; /* hidden by default on mobile */
    }

    .nav-links.active,
    .header-cta.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;                     /* below header height - adjust if needed */
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        z-index: 999;
        text-align: center;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.3rem;
        padding: 10px;
        display: block;
    }

    .header-cta {
        margin-top: 30px;
    }

    .header-cta .btn {
        width: 80%;
        margin: 10px auto;
        font-size: 1.1rem;
    }
}


/* Terms of Service Page */
.terms-page {
    padding: 100px 0 80px;
    background: white;
    line-height: 1.75;
}

.terms-page h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 0.5rem;
}

.last-updated {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 40px;
}

.terms-page h2 {
    font-size: 2rem;
    margin: 48px 0 16px;
    color: var(--dark);
}

.terms-page h2:first-of-type {
    margin-top: 20px;
}

.terms-page p,
.terms-page ul {
    font-size: 1.08rem;
    color: var(--gray);
    margin-bottom: 1.4rem;
}

.terms-page ul {
    padding-left: 24px;
}

.terms-page li {
    margin-bottom: 0.9rem;
}

/* Footer */
/* Base Footer Styling */
.site-footer {
  background: #0d1b2a; /* deep navy for modern feel */
  color: #e0e1dd;
  padding: 3rem 1.5rem;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.site-footer a {
  color: #e0e1dd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #00aaff; /* accent hover */
}

/* Footer Container */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Top Section */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

/* Brand Section */
.footer-brand {
  flex: 1 1 300px;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--light);
}

.footer-brand .logo img {
  width: 80px;
  height: auto;
  border-radius: 6px;
}

.footer-brand .logo-text {
  font-size: 2rem;
  font-weight: 700;
}

.footer-brand .logo-text span {
  color: var(--primary);
}

.footer-brand p {
  margin-top: 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Links Grid */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  flex: 2 1 600px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #f5f5f5;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.9rem;
}

/* Store Badges */
.store-badges {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.store-badges img {
  height: 40px;
  object-fit: contain;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icons a {
  background: #1b263b;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons a:hover {
  background: #00aaff;
  color: #fff;
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid #1b263b;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom .footer-legal {
  display: flex;
  gap: 1rem;
}

.footer-bottom .tagline {
  flex-basis: 100%;
  margin-top: 0.75rem;
  font-style: italic;
  color: #a9a9a9;
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
  }
}