/* 
  Main Stylesheet for ExpertCompta
  Color Palette:
  - Main background: #EAE2F8 (pastel lavender)
  - Secondary background: #5E60CE (deep indigo)
  - Accent colors: #FF9F1C (bright amber), #F15BB5 (cherry)
  - Text color: #2B2D42 (dark graphite)
  - Buttons: gradient from #5E60CE to #F15BB5
*/

/* ---------- Reset & Base Styles ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2B2D42;
  background-color: #EAE2F8;
}

/* Fix for header overlapping content on internal pages */
section:target {
  scroll-margin-top: 80px; /* Adjust based on your header height */
}

/* Add spacing to the top of legal pages */
.legal-page {
  padding-top: 120px !important;
}

.thank-you {
  padding-top: 120px !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #5E60CE;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #F15BB5;
}

ul, ol {
  list-style-position: inside;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
  color: #2B2D42;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background-color: #5E60CE;
  color: white;
}

.btn:hover {
  background-color: #4a4ca6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #5E60CE, #F15BB5);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4a4ca6, #d44b9e);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #5E60CE;
  color: #5E60CE;
}

.btn-outline:hover {
  background-color: #5E60CE;
  color: white;
}

/* ---------- Cookie Banner ---------- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(43, 45, 66, 0.95);
  padding: 1rem;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
}

#cookie-banner .cookie-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: white;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

#cookie-banner .cookie-buttons {
  display: flex;
  gap: 1rem;
}

#cookie-banner .btn {
  margin: 0;
}

#cookie-banner .btn-outline {
  color: white;
  border-color: white;
}

@media (min-width: 768px) {
  #cookie-banner .cookie-content {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}

/* ---------- Header ---------- */
.site-header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo a {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2B2D42;
}

.logo svg {
  margin-right: 0.5rem;
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: #2B2D42;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.contact-btn {
  background-color: #5E60CE;
  color: white;
  border-radius: 50px;
}

.contact-btn:hover {
  background-color: #F15BB5;
  color: white;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background-color: white;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
  }

  .nav-list.active {
    right: 0;
  }

  .nav-list li {
    margin-bottom: 1.5rem;
  }

  .nav-link {
    display: block;
    padding: 0.5rem 0;
  }
}

@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(135deg, rgba(94, 96, 206, 0.8) 0%, rgba(241, 91, 181, 0.8) 100%), url('img/HNd2tb.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0;
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}

/* ---------- About Section ---------- */
.about {
  padding: 4rem 0;
  background-color: white;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: center;
  }

  .about-text {
    flex: 1;
    padding-right: 2rem;
  }

  .about-image {
    flex: 1;
  }
}

/* ---------- Services Section ---------- */
.services {
  padding: 4rem 0;
  background-color: #EAE2F8;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  color: #5E60CE;
  margin-bottom: 1rem;
}

.service-card .price {
  font-weight: 700;
  color: #F15BB5;
  margin: 1rem 0;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Benefits Section ---------- */
.benefits {
  padding: 4rem 0;
  background-color: white;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-item {
  padding: 1.5rem;
}

.benefit-icon {
  margin: 0 auto 1.5rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #5E60CE, #F15BB5);
  color: white;
  font-size: 2rem;
}

@media (min-width: 576px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Animation Section ---------- */
.animation-section {
  padding: 4rem 0;
  background-color: #EAE2F8;
  text-align: center;
}

.animation-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
}

.animation-step {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  width: 100%;
  max-width: 250px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.animation-arrow {
  height: 40px;
  width: 40px;
  margin: 1rem 0;
  position: relative;
}

.animation-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid #F15BB5;
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: #5E60CE;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animation-step {
  opacity: 0;
  animation: fadeInUp 0.6s forwards;
}

.animation-step:nth-child(1) { animation-delay: 0.1s; }
.animation-step:nth-child(3) { animation-delay: 0.3s; }
.animation-step:nth-child(5) { animation-delay: 0.5s; }
.animation-step:nth-child(7) { animation-delay: 0.7s; }

@media (min-width: 768px) {
  .animation-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .animation-arrow {
    width: 60px;
    height: 20px;
    margin: 0 -10px;
  }

  .animation-arrow::before {
    transform: translate(-50%, -50%) rotate(-90deg);
  }
}

/* ---------- Testimonials Section ---------- */
.testimonials {
  padding: 4rem 0;
  background-color: white;
  text-align: center;
}

.testimonials-slider {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.testimonial {
  background-color: #EAE2F8;
  border-radius: 8px;
  padding: 2rem;
  max-width: 350px;
  text-align: left;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-content::before {
  content: """;
  font-size: 5rem;
  color: rgba(94, 96, 206, 0.2);
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  z-index: 0;
}

.testimonial-content p {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-style: italic;
  color: #5E60CE;
}

@media (min-width: 992px) {
  .testimonials-slider {
    flex-wrap: nowrap;
  }
}

/* ---------- Contact Form ---------- */
.contact {
  padding: 4rem 0;
  background-color: #EAE2F8;
}

.contact-form {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: 2rem auto 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #5E60CE;
  box-shadow: 0 0 0 3px rgba(94, 96, 206, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input {
  width: auto;
  margin-top: 0.4rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
}

.form-actions {
  text-align: center;
  margin-top: 2rem;
}

/* ---------- Thank You Page ---------- */
.thank-you {
  padding: 6rem 0;
  text-align: center;
}

.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  padding: 3rem 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #5E60CE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  color: white;
  font-size: 2rem;
}

.back-home {
  margin-top: 2rem;
}

/* ---------- Legal Pages ---------- */
.legal-page {
  padding: 4rem 0;
}

.legal-page h1 {
  text-align: center;
  margin-bottom: 3rem;
}

.legal-content {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.legal-content h2 {
  margin-top: 2rem;
  color: #5E60CE;
}

.legal-content h3 {
  margin-top: 1.5rem;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: #2B2D42;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo a {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-contact h3,
.footer-links h3,
.footer-legal h3 {
  color: white;
  margin-bottom: 1.5rem;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-info i {
  margin-right: 1rem;
  color: #F15BB5;
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
}

.footer-links ul li,
.footer-legal ul li {
  margin-bottom: 0.75rem;
}

.footer-links a,
.footer-legal a,
.contact-info a {
  color: #EAE2F8;
}

.footer-links a:hover,
.footer-legal a:hover,
.contact-info a:hover {
  color: #F15BB5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p:not(:last-child) {
  margin-bottom: 0.5rem;
}

@media (min-width: 576px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ---------- Icon Fonts ---------- */
.icon-expertise::before,
.icon-personalized::before,
.icon-technology::before,
.icon-support::before,
.icon-check::before,
.icon-location::before,
.icon-phone::before,
.icon-email::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.icon-expertise::before { content: "\f19c"; }
.icon-personalized::before { content: "\f4fe"; }
.icon-technology::before { content: "\f0ae"; }
.icon-support::before { content: "\f095"; }
.icon-check::before { content: "\f00c"; }
.icon-location::before { content: "\f3c5"; }
.icon-phone::before { content: "\f095"; }
.icon-email::before { content: "\f0e0"; }

/* ---------- Responsive Styles ---------- */
@media (max-width: 576px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }

  .animation-section .animation-container {
    padding: 0 1rem;
  }

  .service-card img {
    height: 180px;
  }
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.hero h1 {
  animation: slideInFromLeft 1s ease-out forwards;
}

.hero p {
  animation: slideInFromRight 1s ease-out 0.3s forwards;
  opacity: 0;
}

.hero .btn {
  animation: fadeIn 1s ease-out 0.6s forwards;
  opacity: 0;
}