/* 
  AccountingPro - Canadian Accounting Services Website
  Color Palette:
  - Midnight Indigo: #2B2D42
  - Bright Coral: #FF6B6B
  - Soft Mint: #A8DADC
  - Vanilla Cream: #F1FAEE
  - Deep Ocean Blue: #1D3557
*/

/* ======= Base Styles ======= */
:root {
  --midnight-indigo: #2B2D42;
  --bright-coral: #FF6B6B;
  --soft-mint: #A8DADC;
  --vanilla-cream: #F1FAEE;
  --deep-ocean: #1D3557;
  --transition: all 0.3s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--deep-ocean);
  background-color: var(--midnight-indigo);
}

img, svg, iframe, video, object {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--bright-coral);
  transition: var(--transition);
}

a:hover {
  color: var(--deep-ocean);
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: clamp(3rem, 10vh, 6rem) 0;
  background-color: var(--vanilla-cream);
}

section:nth-child(even) {
  background-color: var(--soft-mint);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--deep-ocean);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--bright-coral);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1.5rem;
}

/* ======= Buttons ======= */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  background-color: var(--soft-mint);
  color: var(--deep-ocean);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: var(--deep-ocean);
}

.btn-primary {
  background-color: var(--bright-coral);
  color: white;
}

.btn-primary:hover {
  background-color: #ff5252;
  color: white;
}

/* ======= Header ======= */
.header {
  background-color: var(--midnight-indigo);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.header.hidden {
  transform: translateY(-100%);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vanilla-cream);
  display: flex;
  align-items: center;
}

.logo svg {
  margin-right: 10px;
  width: 40px;
  height: 40px;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  color: var(--vanilla-cream);
  font-weight: 500;
  position: relative;
}

.nav__link:hover {
  color: var(--bright-coral);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--bright-coral);
  transition: var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--vanilla-cream);
  transition: var(--transition);
}

/* ======= Hero Section ======= */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--midnight-indigo) 0%, var(--deep-ocean) 100%);
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/bt32rX.jpg') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--vanilla-cream);
  max-width: 700px;
  animation: fadeInUp 1s ease-out;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  color: var(--vanilla-cream);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 2.5rem;
}

.hero .btn {
  font-size: 1.1rem;
}

/* ======= About Section ======= */
.about {
  text-align: center;
}

.about p {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.advantage-card {
  background-color: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  animation: fadeIn 0.5s ease-out;
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
  margin-bottom: 1.5rem;
}

/* ======= Services Section ======= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.service-card {
  background-color: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  animation: fadeIn 0.5s ease-out;
  border-top: 3px solid var(--bright-coral);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ======= Why Choose Us Section ======= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.feature:hover {
  transform: scale(1.03);
}

.feature-icon {
  margin-bottom: 1.5rem;
}

/* ======= Testimonials Section ======= */
.testimonial-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.testimonial {
  background-color: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}

.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 3px solid var(--bright-coral);
}

.testimonial blockquote {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial cite {
  font-weight: 600;
  font-style: normal;
}

/* ======= Pricing Section ======= */
.pricing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.plan {
  background-color: white;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
  position: relative;
  animation: fadeIn 0.5s ease-out;
}

.plan:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.plan.featured {
  border: 2px solid var(--bright-coral);
  transform: translateY(-10px);
  z-index: 1;
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bright-coral);
  color: white;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1.5rem 0;
  color: var(--deep-ocean);
}

.price span {
  font-size: 1rem;
  font-weight: 400;
}

.features-list {
  margin-bottom: 2rem;
  text-align: left;
}

.features-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  padding-left: 1.5rem;
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--bright-coral);
}

.features-list .not-included {
  color: #aaa;
}

.features-list .not-included::before {
  content: "×";
  color: #ccc;
}

/* ======= Consultation Form Section ======= */
.consultation {
  background-color: var(--deep-ocean);
}

.consultation h2 {
  color: var(--vanilla-cream);
}

.consultation-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem;
  background-color: var(--vanilla-cream);
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.consultation-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.consultation-form input[type="text"],
.consultation-form input[type="tel"],
.consultation-form input[type="email"],
.consultation-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.consultation-form input:focus,
.consultation-form textarea:focus {
  outline: none;
  border-color: var(--bright-coral);
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  user-select: none;
}

.radio-label input,
.checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.radio-custom,
.checkbox-custom {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: white;
  border: 2px solid #e1e1e1;
  transition: var(--transition);
}

.radio-custom {
  border-radius: 50%;
}

.checkbox-custom {
  border-radius: 4px;
}

.radio-label:hover input ~ .radio-custom,
.checkbox-label:hover input ~ .checkbox-custom {
  border-color: var(--bright-coral);
}

.radio-label input:checked ~ .radio-custom,
.checkbox-label input:checked ~ .checkbox-custom {
  background-color: var(--bright-coral);
  border-color: var(--bright-coral);
}

.radio-custom:after,
.checkbox-custom:after {
  content: "";
  position: absolute;
  display: none;
}

.radio-label input:checked ~ .radio-custom:after,
.checkbox-label input:checked ~ .checkbox-custom:after {
  display: block;
}

.radio-label .radio-custom:after {
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.checkbox-label .checkbox-custom:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ======= Contact Section ======= */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item svg {
  flex-shrink: 0;
}

.map-container {
  height: 100%;
  min-height: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ======= Footer ======= */
.footer {
  background-color: var(--midnight-indigo);
  color: var(--vanilla-cream);
  padding: 3rem 0 1.5rem;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.footer__col h3 {
  color: var(--vanilla-cream);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer__link {
  color: var(--soft-mint);
  display: block;
  margin-bottom: 0.8rem;
}

.footer__link:hover {
  color: var(--bright-coral);
}

.footer__col p {
  color: #a8a8a8;
}

.footer__bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #a8a8a8;
}

/* ======= Cookie Popup ======= */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background-color: var(--vanilla-cream);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  animation: slideUp 0.5s forwards;
}

.cookie-popup__title {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.cookie-popup__text {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.cookie-popup__actions {
  display: flex;
  justify-content: flex-end;
}

/* ======= Thank You Page ======= */
.thank-you {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--midnight-indigo) 0%, var(--deep-ocean) 100%);
  color: var(--vanilla-cream);
}

.thank-you__content {
  max-width: 600px;
  padding: 3rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  animation: fadeIn 1s ease-out;
}

.thank-you h1 {
  color: var(--vanilla-cream);
  margin-bottom: 1.5rem;
}

.thank-you__icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  background-color: var(--bright-coral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ======= Legal Pages ======= */
.legal-page {
  padding: 7rem 0 3rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal-content h2 {
  text-align: left;
  margin-top: 2.5rem;
}

.legal-content h2::after {
  left: 0;
  transform: none;
}

.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  list-style-type: disc;
}

.legal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* ======= Animations ======= */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translate(-50%, 100px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* ======= Media Queries ======= */
@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .map-container {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0 15px;
    overflow-x: hidden;
  }
  
  .header__inner {
    padding: 0;
  }
  
  .advantage-card,
  .service-card,
  .feature,
  .testimonial,
  .plan,
  .consultation-form,
  .contact-content,
  .legal-content {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
  }
  
  /* Ensure the map container is responsive and doesn't overflow */
  .map-container iframe {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Fix any potential table overflow issues */
  table {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
  }
  
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--midnight-indigo);
    overflow: hidden;
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav.active {
    height: auto;
    padding: 2rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .header.scrolled {
    padding: 0.8rem 0;
  }
}

@media (max-width: 576px) {
  section {
    padding: 3rem 0;
  }
  
  .pricing-plans {
    grid-template-columns: 1fr;
  }
  
  .plan.featured {
    transform: none;
    margin: 2rem 0;
  }
  
  .radio-group {
    flex-direction: column;
    gap: 1rem;
  }
} 