/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --primary-color: #005A9E; /* Trustworthy Blue */
  --secondary-color: #007BFF; /* Brighter Blue */
  --accent-color: #FFC107; /* Vibrant Yellow/Orange for CTAs */
  --text-color: #333;
  --light-gray: #f4f4f4;
  --white-color: #fff;
  --success-color: #28a745; /* Calming Green */
  --header-height: 4.5rem;
}

/* --- Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white-color);
}

a {
  text-decoration: none;
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

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

.container {
  max-width: 1100px;
  margin: auto;
  overflow: hidden;
  padding: 0 2rem;
}

/* --- Shared Header & Navigation --- */
.header {
  width: 100%;
  background: var(--white-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.nav__logo svg {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.nav__toggle {
  font-size: 1.5rem;
  cursor: pointer;
  display: none; /* Hidden on desktop */
}

.nav__menu {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav__link:hover, .nav__link.active {
  color: var(--primary-color);
}

/* --- Shared Footer --- */
.footer {
  background: var(--primary-color);
  color: var(--white-color);
  padding: 3rem 1rem;
  text-align: center;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: left;
}

.footer-col h4 {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-col p, .footer-col ul li {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--light-gray);
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--secondary-color);
  font-size: 0.8rem;
  opacity: 0.8;
}

/* --- General Components --- */
.main-content {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 3rem;
  min-height: 80vh;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--text-color);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

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

/* --- Home Page: Hero Section --- */
.hero {
  background: linear-gradient(rgba(0, 90, 158, 0.1), rgba(0, 90, 158, 0.1)), var(--light-gray);
  height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: var(--header-height);
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* --- Home Page: Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white-color);
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-card .icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: var(--secondary-color);
}

/* --- Affiliate Page Specific Styles --- */
.affiliate-hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  text-align: center;
  padding: 0 2rem;
  padding-top: var(--header-height);
}

.affiliate-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.pexels.com/photos/7681283/pexels-photo-7681283.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
  filter: brightness(0.4);
  z-index: -1;
}

.affiliate-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.affiliate-hero-content p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 1rem auto 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.affiliate-hero .btn-primary {
    padding: 20px 45px;
    font-size: 1.5rem;
    font-weight: 700;
}

.disclaimer-bar {
  background-color: var(--light-gray);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
  border-bottom: 1px solid #ddd;
}

/* --- Affiliate Page: Reviews --- */
.reviews-section {
    padding: 4rem 0;
}

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

.review-card {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--success-color);
}

.review-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.review-card .author {
    font-weight: 600;
    color: var(--primary-color);
}

.stars {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* --- Generic Content Page (About, Privacy, Terms, Contact) --- */
.content-page {
  max-width: 800px;
  margin: auto;
}

.content-page h1 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.content-page h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.content-page p, .content-page ul li {
  margin-bottom: 1rem;
}

.contact-form {
    margin-top: 2rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 500;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: .8rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: 'Poppins', sans-serif;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    padding: 2rem;
    background: var(--white-color);
    flex-direction: column;
    transition: right 0.4s ease-in-out;
  }
  
  .nav__list {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  .nav__link {
    font-size: 1.2rem;
  }
  
  .nav__toggle {
    display: block; /* Show hamburger icon */
  }
  
  .show-menu {
    right: 0;
  }

  .hero h1, .affiliate-hero-content h1 {
    font-size: 2.5rem;
  }

  .hero p, .affiliate-hero-content p {
    font-size: 1rem;
  }
  
  .section-title {
      font-size: 1.8rem;
  }

  .affiliate-hero .btn-primary {
      padding: 15px 35px;
      font-size: 1.2rem;
  }
}