/* 
 * Main stylesheet for domain.com
 * Financial audit services website
 * Created: 2023
 */

/* Base styles and reset */
:root {
  --background: #FAFAF1;
  --primary: #231942;
  --secondary: #EF798A;
  --accent: #F9C80E;
  --text: #1D1E2C;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary);
}

p {
  margin-bottom: 1.5rem;
}

button, .button {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

button:hover, .button:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

/* Header styles */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.logo span {
  color: var(--secondary);
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 600;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100%;
  background-color: white;
  z-index: 2000;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  display: none;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.close-mobile-menu {
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav ul {
  list-style: none;
  padding: 20px;
}

.mobile-nav ul li {
  margin-bottom: 15px;
}

.mobile-nav ul li a {
  display: block;
  padding: 10px 0;
  font-weight: 600;
}

/* Hero Section */
.hero {
  padding: 150px 0 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: white;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  animation: fadeInUp 1.2s ease;
}

.hero-cta {
  animation: fadeInUp 1.4s ease;
}

.hero-cta .button {
  background-color: var(--accent);
  color: var(--primary);
  font-size: 1.1rem;
  padding: 15px 30px;
}

.hero-cta .button:hover {
  background-color: white;
}

/* Sections general */
section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
}

section h2:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* About Section */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.about-text {
  flex: 0 0 calc(60% - 30px);
}

.about-image {
  flex: 0 0 calc(40% - 30px);
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Benefits Section */
.benefits {
  background-color: var(--primary);
  color: white;
}

.benefits h2, .benefits h3 {
  color: white;
}

.benefits h2:after {
  background: var(--accent);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-item {
  text-align: center;
  padding: 20px;
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.pricing-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.pricing-header {
  background: var(--primary);
  color: white;
  padding: 20px;
  text-align: center;
}

.pricing-header h3 {
  color: white;
  margin-bottom: 0;
}

.pricing-content {
  padding: 30px;
  text-align: center;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 30px;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* Testimonials Section */
.testimonials {
  background-color: white;
  overflow: hidden;
}

.testimonial-carousel {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-slide {
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
}

.testimonial-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-author {
  font-weight: 700;
  margin-top: 20px;
  color: var(--primary);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  background: white;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: #f8f8f8;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
}

.faq-answer {
  background: #f8f8f8;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: "-";
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 500px;
}

/* Contact Section */
.contact {
  background-color: var(--background);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.contact-info {
  margin-bottom: 30px;
  order: 2;
}

.contact-form {
  order: 1;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-info-icon {
  margin-right: 15px;
  font-size: 1.5rem;
  color: var(--secondary);
}

.contact-map {
  width: 100%;
  height: 300px;
  margin-top: 30px;
}

.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.alert ul {
  margin: 0;
  padding-left: 20px;
}

.contact-form {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  appearance: none;
  background: url('data:image/svg+xml;utf8,<svg fill="%231D1E2C" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat;
  background-position: calc(100% - 15px) center;
  background-size: 15px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-input {
  margin-right: 10px;
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  z-index: 9999;
  display: none;
  max-width: 90%;
  width: 400px;
}

.cookie-popup.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.cookie-popup p {
  margin-bottom: 15px;
}

.cookie-buttons {
  display: flex;
  justify-content: flex-end;
}

.cookie-buttons button {
  margin-left: 10px;
}

.btn-cookie-accept {
  background: var(--secondary);
}

.btn-cookie-decline {
  background: #ddd;
  color: var(--text);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Remove animation */

/* Policy Pages */
.policy-page {
  padding: 150px 0 80px;
}

.policy-container {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.policy-container h2 {
  text-align: left;
  margin-top: 40px;
}

.policy-container h2:after {
  margin: 15px 0 0;
}

.policy-container h3 {
  margin-top: 30px;
}

.policy-container ul, .policy-container ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

/* Thank You Page */
.thank-you {
  text-align: center;
  padding: 150px 0 80px;
}

.thank-you-container {
  background: white;
  padding: 60px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 0 auto;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 991px) {
  nav ul {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .about-text, .about-image {
    flex: 0 0 100%;
  }
  
  .about-image {
    margin-top: 30px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    order: 2;
  }
  
  .contact-form {
    order: 1;
  }
}

@media (max-width: 767px) {
  section {
    padding: 60px 0;
  }
  
  section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  .hero {
    padding: 120px 0 80px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-cta .button {
    font-size: 0.9rem;
    padding: 12px 20px;
    white-space: normal;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .pricing-grid, .services-grid, .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-cta .button {
    font-size: 0.85rem;
    padding: 10px 15px;
    max-width: 90%;
    margin: 0 auto;
    display: block;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
}