/* Main stylesheet for Domain accounting services website */

/* CSS Variables for color palette */
:root {
  --deep-lilac: #7B6CA1;
  --champagne-mist: #FDEDD5;
  --aquamarine-smoke: #A0EEC0;
  --ember-rust: #D36842;
  --midnight-ash: #1D1B2C;
  --white: #FFFFFF;
  --light-gray: #F8F8F8;
  --text-color: #333333;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Roboto', sans-serif;
  color: var(--text-color);
  background-color: var(--white);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--midnight-ash);
}

.text-center {
  text-align: center;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--deep-lilac);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--ember-rust);
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--deep-lilac);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--ember-rust);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: transparent;
  color: var(--deep-lilac);
  border: 2px solid var(--deep-lilac);
}

.btn-secondary:hover {
  color: var(--white);
}

/* Header styles */
header {
  background-color: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--deep-lilac);
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--ember-rust);
}

/* Navigation */
.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  font-weight: 600;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--ember-rust);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Mobile menu */
.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--midnight-ash);
  transition: all 0.3s ease;
}

/* Mobile navigation */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    gap: 0;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 16px 0;
  }
}

/* Hero section */
.hero {
  background-color: var(--champagne-mist);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-image {
  position: relative;
  z-index: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  transform: scale(1.05);
}

.hero h1 {
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  animation: fadeInUp 1s ease-out 0.4s;
  animation-fill-mode: both;
}

/* About section */
.about {
  padding: 80px 0;
  background-color: var(--white);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Services section */
.services {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.services-title {
  text-align: center;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

/* Benefits section */
.benefits {
  padding: 80px 0;
  background-color: var(--white);
}

.benefits-title {
  text-align: center;
  margin-bottom: 50px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-card {
  text-align: center;
  padding: 20px;
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background-color: var(--champagne-mist);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--ember-rust);
  font-size: 24px;
  transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  transform: rotateY(180deg);
}

/* Testimonials section */
.testimonials {
  padding: 80px 0;
  background-color: var(--deep-lilac);
  color: var(--white);
}

.testimonials-title {
  text-align: center;
  margin-bottom: 50px;
  color: var(--white);
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial-slide:nth-child(1) {
  animation: testimonialSlide 15s infinite;
}

.testimonial-slide:nth-child(2) {
  animation: testimonialSlide 15s infinite 5s;
}

.testimonial-slide:nth-child(3) {
  animation: testimonialSlide 15s infinite 10s;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.testimonial-author {
  font-weight: 600;
}

/* Stats section */
.stats {
  padding: 80px 0;
  background-color: var(--midnight-ash);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--aquamarine-smoke);
  display: inline-block;
  position: relative;
  animation: countUp 3s ease-out forwards;
}

.stat-text {
  font-size: 1.1rem;
}

/* Form section */
.order-form {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.form-title {
  text-align: center;
  margin-bottom: 50px;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.form-checkbox input {
  margin-top: 5px;
  margin-right: 10px;
}

.form-submit {
  width: 100%;
  padding: 15px;
  background-color: var(--deep-lilac);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-submit:hover {
  background-color: var(--ember-rust);
}

/* FAQ section */
.faq {
  padding: 80px 0;
  background-color: var(--white);
}

.faq-title {
  text-align: center;
  margin-bottom: 50px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}

.faq-question {
  background-color: var(--champagne-mist);
  padding: 20px;
  cursor: pointer;
  position: relative;
  font-weight: 600;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  background-color: var(--white);
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
}

/* Footer */
footer {
  background-color: var(--midnight-ash);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info,
.footer-links,
.footer-contact {
  padding: 0 20px;
}

.footer-title {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-description {
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--champagne-mist);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--aquamarine-smoke);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-icon {
  margin-right: 10px;
  color: var(--aquamarine-smoke);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--white);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  max-width: 400px;
  display: none;
}

.cookie-popup.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.cookie-popup p {
  margin-bottom: 15px;
}

.cookie-buttons {
  display: flex;
  justify-content: flex-end;
}

/* Policy pages */
.policy-container {
  max-width: 900px;
  margin: 120px auto 60px;
  padding: 40px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.policy-title {
  margin-bottom: 30px;
  text-align: center;
}

.policy-section {
  margin-bottom: 30px;
}

.policy-section h3 {
  margin-bottom: 15px;
  color: var(--deep-lilac);
}

/* Thank you page */
.thank-you {
  padding: 160px 0 80px;
  text-align: center;
  background-color: var(--champagne-mist);
}

.thank-you-container {
  max-width: 600px;
  margin: 0 auto;
}

.thank-you-box {
  background-color: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--aquamarine-smoke);
  animation: fadeInUp 0.8s ease-out;
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.thank-you-icon {
  width: 100px;
  height: 100px;
  background-color: var(--aquamarine-smoke);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  color: var(--midnight-ash);
  font-size: 50px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes testimonialSlide {
  0%, 33%, 100% {
    opacity: 0;
  }
  3%, 30% {
    opacity: 1;
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }
  
  .hero {
    padding: 140px 0 60px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero {
    padding: 120px 0 50px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .service-card,
  .benefit-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .hero {
    padding: 100px 0 40px;
  }
  
  .form-container {
    padding: 20px;
  }
}