/* Main CSS file for domain accounting services website
   Using the color palette:
   - Main background: ultramarine-violet (#6C63FF)
   - Accents: mint (#3ED7B9), coral (#FF6B6B), deep graphite (#2D2D34)
   - Text: light gray (#F5F5F5), black (#121212)
*/

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #6C63FF;
  --color-primary-dark: #5952d4;
  --color-secondary: #3ED7B9;
  --color-accent: #FF6B6B;
  --color-dark: #2D2D34;
  --color-light: #F5F5F5;
  --color-text: #121212;
  --color-gray: #7a7a7a;
  --color-light-gray: #e0e0e0;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  
  --transition: all 0.3s ease;
  --radius: 8px;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-secondary);
  margin-top: 15px;
  transition: var(--transition);
}

h2:hover::after {
  width: 100px;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-light);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-dark);
}

.btn-secondary:hover {
  background-color: #36c0a5;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: var(--color-light);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* --- HEADER --- */
.site-header {
  background-color: var(--color-light);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--color-primary);
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  align-items: center;
}

.main-nav .nav-list li {
  margin-left: 30px;
  display: flex;
  align-items: center;
}

.main-nav .nav-list a {
  color: var(--color-dark);
  font-weight: 500;
  position: relative;
}

.main-nav .nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

.main-nav .nav-list a:hover {
  color: var(--color-primary);
}

.main-nav .nav-list a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #8980ff 100%);
  color: var(--color-light);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/pattern.svg');
  background-size: cover;
  opacity: 0.1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  color: var(--color-light);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
  text-align: center;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s 0.3s ease both;
  text-align: center;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hero .btn {
  animation: fadeInUp 1s 0.6s ease both;
}

/* --- ABOUT SECTION --- */
.about {
  background-color: var(--color-light);
}

.about .section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 15px;
}

.about .section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 3px;
  background-color: var(--color-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  align-items: center;
  margin-top: 30px;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  margin-top: 30px;
}

.about-image img {
  display: block;
  width: 100%;
  height: auto;
}

.about-image:hover {
  transform: scale(1.03);
}

.about-content {
  padding-right: 15px;
}

/* --- SERVICES SECTION --- */
.services {
  background-color: var(--color-light);
  position: relative;
  z-index: 1;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-color: var(--color-primary);
  opacity: 0.05;
  border-radius: 50%;
  z-index: -1;
}

.services-intro {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0 0 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-card h3 {
  color: var(--color-primary);
  margin: 20px 30px 15px;
  text-align: center;
}

.service-card p, 
.service-card ul {
  padding: 0 30px;
}

.service-card .btn {
  margin: 20px 30px 0;
  align-self: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card h3 {
  color: var(--color-primary);
  margin-bottom: 15px;
}

.service-icon {
  margin-bottom: 20px;
  font-size: 2.5rem;
  color: var(--color-primary);
}

/* --- BENEFITS SECTION --- */
.benefits {
  background-color: var(--color-dark);
  color: var(--color-light);
}

.benefits h2 {
  color: var(--color-light);
  text-align: center;
  margin-bottom: 60px;
}

.benefits h2::after {
  margin-left: auto;
  margin-right: auto;
  background-color: var(--color-accent);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-item {
  text-align: center;
  padding: 30px 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.benefit-item h3 {
  color: var(--color-light);
  margin-bottom: 15px;
}

/* --- TRUST SECTION --- */
.trust {
  background-color: var(--color-light);
}

.trust h2 {
  text-align: center;
  margin-bottom: 60px;
}

.trust-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.trust-certifications {
  border-radius: var(--radius);
  padding: 30px;
  background-color: white;
  box-shadow: var(--shadow-sm);
}

.trust-partners {
  border-radius: var(--radius);
  padding: 30px;
  background-color: white;
  box-shadow: var(--shadow-sm);
}

.certification-list {
  list-style: none;
}

.certification-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--color-light-gray);
  display: flex;
  align-items: center;
}

.certification-list li:last-child {
  border-bottom: none;
}

.certification-list li::before {
  content: '✓';
  margin-right: 15px;
  color: var(--color-secondary);
  font-weight: bold;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.partner-logo {
  background-color: var(--color-light-gray);
  border-radius: var(--radius);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.partner-logo:hover {
  transform: scale(1.05);
}

/* --- CONTACT FORM --- */
.contact {
  background-color: var(--color-light);
}

.contact h2 {
  text-align: center;
  margin-bottom: 60px;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 50px;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-dark);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232D2D34' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.form-checkbox input {
  margin-top: 5px;
  margin-right: 10px;
}

.form-errors {
  background-color: rgba(255, 107, 107, 0.1);
  border-left: 4px solid var(--color-accent);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: var(--radius);
}

.form-errors ul {
  list-style: none;
  margin: 0;
}

.form-errors li {
  color: var(--color-accent);
}

/* --- TESTIMONIALS --- */
.testimonials {
  background-color: var(--color-primary);
  color: var(--color-light);
  position: relative;
  overflow: hidden;
}

.testimonials::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.testimonials h2 {
  color: var(--color-light);
  text-align: center;
  margin-bottom: 60px;
}

.testimonials h2::after {
  background-color: var(--color-light);
  margin-left: auto;
  margin-right: auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  line-height: 1;
  font-family: serif;
  color: rgba(255, 255, 255, 0.2);
}

.testimonial-content {
  position: relative;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  background-color: rgba(255, 255, 255, 0.2);
  font-size: 28px;
}

.testimonial-author-name {
  font-weight: 600;
}

.testimonial-author-title {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* --- FAQ --- */
.faq {
  background-color: var(--color-light);
}

.faq h2 {
  text-align: center;
  margin-bottom: 60px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: var(--radius);
  background-color: white;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  padding: 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question-link {
  padding: 20px;
  display: block;
  width: 100%;
  color: var(--color-dark);
  position: relative;
}

.faq-question-link:hover {
  color: var(--color-primary);
}

.faq-question-link::after {
  content: '+';
  font-size: 1.5rem;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
}

.faq-item.active .faq-question-link {
  color: var(--color-primary);
}

.faq-item.active .faq-question-link::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 1000px;
}

/* --- FOOTER --- */
.site-footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 2rem;
  margin-bottom: 15px;
}

.footer-description {
  opacity: 0.8;
}

.footer-contact h3,
.footer-links h3 {
  color: var(--color-light);
  position: relative;
  padding-bottom: 15px;
}

.footer-contact h3::after,
.footer-links h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-secondary);
}

.footer-contact address {
  color: var(--color-light);
}

.footer-contact address p,
.footer-contact address a {
  color: var(--color-light);
}

.footer-contact address a:hover {
  color: var(--color-secondary);
}

.footer-links ul {
  list-style: none;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--color-light);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-secondary);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.7;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background-color: var(--color-dark);
  color: var(--color-light);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  display: none;
}

.cookie-popup.show {
  transform: translateY(0);
  opacity: 1;
  display: block;
}

.cookie-content {
  display: flex;
  flex-direction: column;
}

.cookie-content p {
  margin-bottom: 15px;
  font-size: 0.875rem;
}

.cookie-content a {
  color: var(--color-secondary);
}

.cookie-content button {
  align-self: flex-end;
}

/* --- POLICY PAGES --- */
.policy-page {
  padding: 150px 0 80px;
}

.policy-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 50px;
  border: 1px solid var(--color-light-gray);
}

.policy-container h1 {
  color: var(--color-primary);
  margin-bottom: 30px;
}

.policy-container h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.policy-container h3 {
  margin-top: 30px;
}

.policy-container ul,
.policy-container ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.policy-container li {
  margin-bottom: 10px;
}

/* --- THANK YOU PAGE --- */
.thank-you {
  padding: 150px 0 80px;
  text-align: center;
}

.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 50px;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--color-secondary);
  margin-bottom: 30px;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    margin: 0 auto;
    max-width: 600px;
  }

  .about-content {
    padding-right: 0;
  }
  
  .trust-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: relative;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .menu-icon {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 102;
  }
  
  .menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-dark);
    position: absolute;
    transition: var(--transition);
  }
  
  .menu-icon span:nth-child(1) {
    top: 0;
  }
  
  .menu-icon span:nth-child(2) {
    top: 9px;
  }
  
  .menu-icon span:nth-child(3) {
    top: 18px;
  }
  
  .menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-light);
    flex-direction: column;
    justify-content: center;
    padding: 50px 30px;
    transition: var(--transition);
    z-index: 101;
    box-shadow: var(--shadow-lg);
  }
  
  .menu-toggle:checked ~ .nav-list {
    right: 0;
  }
  
  .nav-list li {
    margin: 15px 0;
  }
  
  .hero {
    padding: 140px 0 80px;
  }
  
  .contact-container,
  .policy-container {
    padding: 30px;
  }
  
  .services-grid,
  .benefits-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  section {
    padding: 50px 0;
  }
  
  .partners-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-popup {
    left: 10px;
    right: 10px;
  }
} 

.services-intro h2,
.trust h2,
.contact h2,
.faq h2 {
  position: relative;
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 15px;
}

.services-intro h2::after,
.trust h2::after,
.contact h2::after,
.faq h2::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 3px;
  background-color: var(--color-secondary);
  margin-top: 0;
  margin-left: 0;
} 