/* Import Poppins Font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

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

/* Variables - Exact colors from original site */
:root {
  --primary: #005f8e;
  --secondary: #6ba9bb;
  --accent: #d9472b;
  --dark: #333;
  --gray: #7a7a7a;
  --light-bg: #f4f8fa;
  --white: #fff;
}

/* Base */
body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--dark);
  overflow-x: hidden;
  transition: background-color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

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

.logo img {
  height: 50px;
  width: auto;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-list a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--primary);
  text-shadow: 0 2px 8px rgba(0, 95, 142, 0.2);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 10px 0;
  min-width: 180px;
}

.dropdown-menu {
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

.dropdown-menu li {
  padding: 10px 20px;
  transition: background-color 0.2s ease;
}

.dropdown-menu li:hover {
  background-color: var(--light-bg);
}

.dropdown-menu a {
  font-size: 13px;
  text-transform: none;
  transition: color 0.3s ease;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 20px;
  cursor: pointer;
  transition:
    all 0.3s ease,
    transform 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: var(--secondary);
  transform: scale(1.05);
}

.mobile-menu-toggle:active {
  transform: scale(0.98);
}

/* Hero */
.hero {
  position: relative;
  height: 600px;
  background: url("https://taxreviews.ca/wp-content/uploads/2022/02/banner_image.png")
    center center/cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 95, 142, 0.85) 0%,
    rgba(74, 144, 164, 0.6) 50%,
    rgba(107, 169, 187, 0.3) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 550px;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 50px;
  left: 50px;
  width: 350px;
  height: 180px;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 2.5px,
    transparent 2.5px
  );
  background-size: 18px 18px;
  z-index: 1;
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 30px;
  line-height: 1.1;
  letter-spacing: -1px;
  opacity: 0;
  animation: slideInDown 0.8s 0.2s forwards;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  opacity: 0;
  animation: slideInUp 0.8s 0.3s forwards;
}

.btn:hover {
  background: #c23524;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(217, 71, 43, 0.5);
}

.btn:active {
  transform: translateY(-1px);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Info Section */
.info-section {
  padding: 60px 0;
  background: var(--light-bg);
}

.info-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  text-align: center;
}

.info-item {
  transition: all 0.5s ease;
  opacity: 0;
}

.info-item.fade-in {
  opacity: 1;
}

.info-item:hover {
  transform: translateY(-5px);
}

.info-item h2 {
  color: var(--gray);
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.info-item:hover h2 {
  color: var(--primary);
}

.info-item p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 15px;
  transition: color 0.3s ease;
}

/* CTA Section */
.cta-section {
  padding: 60px 0;
  background: var(--white);
  text-align: center;
}

.cta-section h2 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 25px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.cta-section h2:hover {
  color: var(--secondary);
  transform: translateY(-3px);
}

/* Process Section */
.process-section {
  padding: 60px 0;
  background: var(--light-bg);
}

.process-section h2 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 600;
}

.process-section p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 15px;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Features Section */
.features-section {
  padding: 60px 0;
  background: var(--secondary);
}

.features-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.features-text {
  color: var(--white);
}

.features-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 600;
}

.features-text p {
  line-height: 1.8;
  margin-bottom: 20px;
}

.features-list {
  list-style: none;
  margin-top: 25px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  opacity: 0;
  animation: slideInLeft 0.6s ease-out forwards;
  animation-delay: calc(var(--index, 0) * 0.1s);
}

.features-list li:hover {
  transform: translateX(10px);
}

.features-list i {
  color: var(--accent);
  font-size: 18px;
  transition: all 0.3s ease;
}

.features-list li:hover i {
  transform: scale(1.2) rotate(-15deg);
}

.features-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.features-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Guarantee Section */
.guarantee-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
  overflow: hidden;
}

.guarantee-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-10deg);
}

.guarantee-content {
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.guarantee-badge img {
  width: 180px;
  height: auto;
}

.guarantee-text h2 {
  font-size: 32px;
  color: var(--white);
  margin-bottom: 15px;
  font-weight: 700;
}

.guarantee-text p {
  color: var(--white);
  font-size: 16px;
  line-height: 1.8;
}

/* Info Cards Section */
.info-cards-section {
  padding: 60px 0;
  background: var(--white);
  text-align: center;
}

.info-cards-section h2 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 30px;
  font-weight: 700;
}

.info-cards-section .highlight {
  color: var(--accent);
}

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.info-card {
  background: var(--light-bg);
  padding: 30px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  opacity: 0;
}

.info-card.fade-in {
  opacity: 1;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  background: var(--white);
}

.info-card h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.info-card p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 14px;
}

/* Testimonials Section */
.testimonials-section {
  padding: 60px 0;
  background: var(--secondary);
}

.testimonials-section h2 {
  color: var(--white);
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  font-weight: 700;
}

.testimonials-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin: 15px auto 0;
  animation: expandWidth 0.6s ease-out;
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 80px;
  }
}

.testimonial-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: none;
  transition: all 0.5s ease;
}

.testimonial-card.active {
  display: block;
  animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote-icon {
  font-size: 40px;
  color: var(--secondary);
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 20px;
}

.testimonial-author {
  font-size: 17px;
  color: var(--primary);
  font-weight: 600;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.testimonial-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dots span:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.3);
}

.testimonial-dots span.active {
  background: var(--white);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Contact Section */
.contact-section {
  padding: 60px 0;
  background: var(--light-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-map iframe:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-info {
  background: var(--primary);
  color: var(--white);
  padding: 40px 30px;
  border-radius: 10px;
}

.contact-info h2 {
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: 700;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-item i {
  font-size: 20px;
  width: 30px;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.contact-item:hover i {
  color: var(--accent);
  transform: rotate(10deg) scale(1.1);
}

.contact-item p {
  margin: 0;
  line-height: 1.6;
  font-size: 15px;
  transition: color 0.3s ease;
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 30px 0;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--white);
  color: var(--primary);
  border-radius: 50%;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 15px rgba(217, 71, 43, 0.4);
}

.footer-text {
  font-size: 13px;
}

.footer-text a {
  color: var(--white);
  text-decoration: underline;
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.footer-text a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(217, 71, 43, 0.4);
}

/* Page Hero */
.page-hero {
  height: 300px;
  background:
    linear-gradient(rgba(0, 95, 142, 0.8), rgba(0, 95, 142, 0.8)),
    url("https://taxreviews.ca/wp-content/uploads/2021/03/about_banner.jpg")
      center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInDown 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: 48px;
  color: var(--white);
  font-weight: 700;
  animation: slideInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Content Section */
.content-section {
  padding: 60px 0;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-section h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

.content-section h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.content-section p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 15px;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

.content-section ul {
  list-style: none;
  margin: 20px 0;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

.content-section li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: var(--gray);
  font-size: 15px;
  transition: all 0.3s ease;
}

.content-section li:hover {
  padding-left: 35px;
  color: var(--primary);
  text-shadow: 0 2px 8px rgba(0, 95, 142, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    z-index: 1002;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    padding: 80px 20px 20px;
    overflow-y: auto;
    z-index: 1001;
  }

  .nav.active {
    right: 0;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid var(--light-bg);
  }

  .nav-list a {
    display: block;
    padding: 15px 10px;
    transition: all 0.3s ease;
  }

  .nav-list a:hover {
    background-color: var(--light-bg);
    padding-left: 20px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 20px;
    background: var(--light-bg);
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown.active .dropdown-menu {
    max-height: 500px;
  }

  .hero {
    height: 450px;
  }

  .hero::before {
    background: linear-gradient(
      90deg,
      rgba(0, 95, 142, 0.9) 0%,
      rgba(74, 144, 164, 0.7) 100%
    );
  }

  .hero::after {
    bottom: 30px;
    left: 30px;
    width: 250px;
    height: 120px;
    background-size: 15px 15px;
  }

  .hero-title {
    font-size: 40px;
  }

  .info-grid-3 {
    grid-template-columns: 1fr;
  }

  .features-content {
    grid-template-columns: 1fr;
  }

  .features-image {
    order: -1;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .info-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  .cta-section h2,
  .info-cards-section h2,
  .page-hero h1 {
    font-size: 28px;
  }
  .btn {
    padding: 12px 25px;
    font-size: 14px;
  }
}
