/* --- 1. Global Styles and Typography (No change) --- */
:root {
  --primary-red: #d71a28; /* Tim Hortons Red */
  --dark-grey: #1a1a1a;
  --light-grey: #f5f5f5;
  --white: #ffffff;
  --font-primary: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease-in-out; /* Smooth transitions for hover effects */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--dark-grey);
  line-height: 1.6;
  background-color: var(--white);
}

section {
  padding: 100px 5%;
  text-align: center;
}

h2 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 50px;
  color: var(--dark-grey);
}

/* --- Utility Classes (No change) --- */
.dark-bg {
  background-color: var(--dark-grey);
  color: var(--white);
}

.dark-bg h2 {
  color: var(--primary-red);
}

.light-bg {
  background-color: var(--light-grey);
}

/* --- Buttons (No change to existing, just a new class added) --- */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  margin-top: 20px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary, .btn-primary-nav {
  background-color: var(--primary-red);
  color: var(--white);
}

.btn-primary:hover, .btn-primary-nav:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(215, 26, 40, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--dark-grey);
  border: 2px solid var(--dark-grey);
}

.btn-secondary:hover {
  background-color: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}

.btn-primary-nav {
  padding: 8px 20px;
}

/* --- 2. Navbar & Header (UPDATED) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9); /* Slightly translucent */
  backdrop-filter: blur(10px); /* Modern blur effect */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--dark-grey);
}

.logo-icon {
  width: 50px; /* Adjust size of logo image */
  height: 30px;
  margin-right: 8px;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0;
  color: var(--primary-red);
}

.nav-links {
  flex-grow: 1; /* Allows nav links to take up center space */
  text-align: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-grey);
  margin: 0 15px; /* Reduced margin to make space */
  font-weight: 700;
  position: relative;
  display: inline-block; /* Essential for positioning */
}

.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover:after {
  width: 100%;
}

/* NEW: Navigation Actions (Login/Sign Up) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-login {
  text-decoration: none;
  color: var(--dark-grey);
  padding: 8px 15px;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: 50px;
}

.btn-login:hover {
  color: var(--primary-red);
  border-color: var(--primary-red);
}

.hamburger {
  display: none; /* Hide on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--dark-grey);
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-grey);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.4s ease-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu nav a {
  display: block;
  color: var(--white);
  font-size: 2rem;
  padding: 15px;
  text-decoration: none;
  text-align: center;
}

.mobile-menu .btn-primary, .mobile-menu .btn-secondary {
  margin: 15px 0;
  width: 80%;
  text-align: center;
}

/* --- 3. Hero Section (No change) --- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark video overlay for contrast */
}

.hero-text {
  position: relative;
  z-index: 10;
  color: var(--white);
  text-align: center;
  max-width: 800px;
}

.hero-text h2 {
  font-size: 5rem;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-text p {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

/* --- 4. How It Works Section (No change) --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.step-card {
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  position: relative;
  padding-bottom: 30px;
}

.step-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.step-card:hover img {
  transform: scale(1.05);
}

.step-number {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary-red);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 900;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.step-card h3 {
  padding: 20px 25px 5px;
  font-size: 1.5rem;
  color: var(--primary-red);
}

.step-card p {
  padding: 0 25px;
  color: var(--dark-grey);
}

/* --- 5. Benefits & Feature Sections (No change) --- */
.benefits-grid, .feature-cards-grid, .pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card, .feature-card {
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 40px 20px;
  text-align: center;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.benefit-card h3, .feature-card h3 {
  color: var(--dark-grey);
  margin-top: 15px;
  font-size: 1.4rem;
}

.benefit-card p, .feature-card p {
  color: #666;
  margin-top: 10px;
  flex-grow: 1; /* Ensures cards are same height */
}

.card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(215, 26, 40, 0.2);
}

/* Specific Feature Card Styling (Images) */
.feature-card {
  padding: 0;
  text-align: left;
}

.feature-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}

.feature-card .card-content {
  padding: 25px;
}

/* --- 6. Pricing Section (No change) --- */
.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.pricing-card {
  background-color: var(--white);
  color: var(--dark-grey);
  border-radius: 15px;
  padding: 40px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  text-align: center;
}

.pricing-card .plan-header h3 {
  font-size: 2rem;
  color: var(--primary-red);
}

.price-tag {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 10px 0;
}

.price-tag span {
  font-size: 1.2rem;
  font-weight: 700;
  color: #666;
}

.plan-desc {
  margin-bottom: 25px;
  font-style: italic;
  color: #666;
}

.features {
  list-style: none;
  text-align: left;
  margin-bottom: 30px;
  padding: 0 20px;
}

.features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--light-grey);
  font-weight: 700;
  transition: background-color 0.3s;
}

.features li:last-child {
  border-bottom: none;
}

.features li.faded {
  color: #aaa;
  font-weight: 400;
}

.highlighted {
  background-color: var(--primary-red);
  color: var(--white);
  transform: scale(1.05); /* Stand out */
  box-shadow: 0 15px 40px rgba(215, 26, 40, 0.5);
  z-index: 5;
}

.highlighted .plan-header h3 {
  color: var(--white);
}

.highlighted .price-tag {
  color: var(--white);
}

.highlighted .price-tag span, .highlighted .plan-desc, .highlighted .features li {
  color: var(--light-grey);
}

.highlighted .features li.faded {
  color: #888;
}

.highlighted .btn-primary {
  background-color: var(--dark-grey);
  color: var(--white);
}

.highlighted .btn-primary:hover {
  background-color: var(--white);
  color: var(--dark-grey);
}

.ribbon {
  position: absolute;
  top: 15px;
  right: -15px;
  background-color: var(--dark-grey);
  color: var(--white);
  padding: 5px 25px;
  font-weight: 700;
  transform: rotate(45deg);
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* --- 7. FAQ Section (No change) --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  background-color: var(--white);
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-grey);
  position: relative;
  background-color: var(--light-grey);
  user-select: none;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 1.5rem;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: '-';
  transform: rotate(0deg);
  color: var(--primary-red);
}

.faq-answer {
  max-height: 0;
  padding: 0 20px;
  overflow: hidden;
  background-color: var(--white);
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Sufficient height for most answers */
  padding: 15px 20px 20px;
}

/* --- 8. Contact Section (No change) --- */
.contact-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form input, .contact-form textarea {
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #333;
  color: var(--white);
  font-size: 1rem;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: #999;
}

.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--primary-red);
  outline: none;
  box-shadow: 0 0 10px rgba(215, 26, 40, 0.5);
}

.contact-form .btn-primary {
  margin-top: 0;
}

.form-message {
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: 700;
  text-align: center;
}

.form-message.success {
  background-color: #4caf50;
  color: var(--white);
  border: 1px solid #45a049;
}

.form-message.error {
  background-color: #f44336;
  color: var(--white);
  border: 1px solid #da190b;
}

.footer-note {
  font-size: 0.9rem !important;
  margin-top: 50px !important;
}

.heart-pulse {
  animation: pulse 1s infinite;
  display: inline-block;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}


/* --- 9. Scroll Animation Initial States (No change) --- */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate].animate {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-up"] {
  transition-delay: 0.1s;
}

[data-animate="slide-right"] {
  transform: translateX(-50px);
}

[data-animate="slide-right"].animate {
  transform: translateX(0);
}

[data-animate="slide-left"] {
  transform: translateX(50px);
}

[data-animate="slide-left"].animate {
  transform: translateX(0);
}

/* Delay for staggered animation */
.steps-grid > *, .benefits-grid > *, .feature-cards-grid > *, .pricing-grid > *, .faq-container > * {
  transition-delay: calc(var(--delay) * 0.1s);
}

/* --- 10. Responsive Design (Mobile) --- */
@media (max-width: 992px) {
  .nav-links, .nav-actions {
      display: none; /* Hide main links and action buttons on mobile */
  }
  .hamburger {
      display: block;
  }
  
  .hero-text h2 {
      font-size: 3rem;
  }

  .hero-text p {
      font-size: 1.2rem;
  }

  h2 {
      font-size: 2.5rem;
  }
  
  .steps-grid, .benefits-grid, .feature-cards-grid, .pricing-grid {
      grid-template-columns: 1fr;
  }

  .pricing-card.highlighted {
      transform: scale(1.0);
  }

  .ribbon {
      top: 0;
      right: 0;
      border-radius: 0 15px 0 0;
      transform: none;
      padding: 10px 15px;
  }

  .contact-content-grid {
      grid-template-columns: 1fr;
  }
}

.pricing-grid {
  /* Adjusted for 4 columns on desktop */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
  max-width: 1250px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Base Price Tag Styling */
.price-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 2.8rem; /* Smaller to fit promotion text */
  font-weight: 900;
  margin: 10px 0 20px;
}

.original-price {
  font-size: 1.8rem; 
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
  margin-right: -5px; 
  white-space: nowrap;
}

.discount-badge {
  display: block;
  background-color: var(--primary-red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  transform: translateY(-5px);
}

.highlighted .discount-badge {
  background-color: var(--white);
  color: var(--dark-grey);
}

/* Styling for the NEW FREE Tier */
.free-tier {
  background-color: #2e7d32; /* Green color for 'Free' */
  color: var(--white);
  border: 3px solid #66bb6a;
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(46, 125, 50, 0.5);
  z-index: 6;
}

.free-tier .plan-header h3 {
  color: var(--white);
  font-size: 2.2rem;
}

.free-tier .price-tag span {
  color: var(--white) !important;
}

.free-tier .btn-primary {
  background-color: var(--white);
  color: #2e7d32;
}
.free-tier .btn-primary:hover {
  background-color: var(--light-grey);
  color: #2e7d32;
}

/* Responsive adjustment for 4 columns */
@media (max-width: 1200px) {
  .pricing-grid {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}
@media (max-width: 768px) {
  .pricing-grid {
      grid-template-columns: 1fr;
  }
  .free-tier, .highlighted {
      transform: scale(1.0);
  }
  .price-tag {
      flex-direction: column;
  }
  .discount-badge {
      transform: none;
  }
}