/* Custom Canadian-themed color palette */
:root {
  --primary: #c00000;       /* Canadian red */
  --secondary: #000000;     /* Black */
  --accent: #3d85c6;        /* Blue accent */
  --light: #f8f9fa;         /* Light background */
  --dark: #212529;          /* Dark text */
  --white: #ffffff;         /* White */
  --gradient-red: linear-gradient(45deg, #c00000, #8b0000);
}

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

body {
  font-family: 'Open Sans', 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
}

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

.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

p {
  margin-bottom: 1rem;
}

/* Header styling */
header {
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

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

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

nav a:hover::after {
  width: 100%;
}

/* Mobile navigation */
.menu-toggle {
  display: none;
  cursor: pointer;
}

.hamburger {
  width: 24px;
  height: 3px;
  background: var(--dark);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 3px;
  background: var(--dark);
  transition: all 0.3s ease;
}

.hamburger::before {
  transform: translateY(-8px);
}

.hamburger::after {
  transform: translateY(8px);
}

/* Hero Section */
.hero {
  background: var(--gradient-red);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4rem;
  background: var(--light);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

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

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

.btn-secondary:hover {
  background-color: #3275b2;
  color: var(--white);
}

/* Features Section */
.section {
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* How It Works Section */
.steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  position: relative;
}

.step-number {
  background: var(--primary);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 1.5rem;
}

.step h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 2rem auto 0;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.faq-question {
  padding: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.2rem;
}

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

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 1.2rem 1.2rem;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo svg {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
}

.footer-links a {
  color: var(--white);
  opacity: 0.8;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .menu-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1.5rem;
  }
  
  nav {
    width: 100%;
    margin-top: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  nav.active {
    max-height: 300px;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  nav a {
    display: block;
    padding: 0.5rem 0;
  }
  
  .menu-toggle.active .hamburger {
    background: transparent;
  }
  
  .menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
  }
  
  .menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .features-grid,
  .steps-container {
    grid-template-columns: 1fr;
  }
  
  .step {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .feature-card,
  .step,
  .faq-item {
    padding: 1.5rem;
  }
}
