/* 
 * Domain Accounting Services - Main Stylesheet
 * 
 * Color Palette:
 * - Frosted Pearl (#F9F7F7) - Main background
 * - Ocean Violet (#5E60CE) - Primary color
 * - Neon Tangerine (#FF6D28) - Accent color
 * - Emerald Lake (#028090) - Secondary color
 * - Deep Graphite (#1F1F1F) - Text color
 * - Ghost Blue (#D6E6F2) - Block backgrounds
 */

/* ======= CSS Reset and Base Styles ======= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 10px for easier rem calculations */
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #1F1F1F;
  background-color: #F9F7F7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: #5E60CE;
  transition: all 0.3s ease;
}

a:hover {
  color: #FF6D28;
}

ul, ol {
  list-style-position: inside;
}

/* ======= Layout & Container ======= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

.main-content {
  flex: 1;
}

section {
  padding: 8rem 0;
}

.section-title {
  font-size: 3.2rem;
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
  color: #5E60CE;
}

.section-title::after {
  content: '';
  display: block;
  width: 8rem;
  height: 0.4rem;
  background-color: #FF6D28;
  margin: 1rem auto 0;
}

/* ======= Typography ======= */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: 2rem;
  font-weight: 700;
}

h1 {
  font-size: 4.2rem;
}

h2 {
  font-size: 3.6rem;
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 2rem;
}

p {
  margin-bottom: 1.6rem;
}

.text-center {
  text-align: center;
}

/* ======= Buttons ======= */
.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border-radius: 0.4rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: #5E60CE;
  color: #fff;
}

.btn-primary:hover {
  background-color: #4a4bb9;
  color: #fff;
}

.btn-secondary {
  background-color: #028090;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #026974;
  color: #fff;
}

.btn-accent {
  background-color: #FF6D28;
  color: #fff;
}

.btn-accent:hover {
  background-color: #e65818;
  color: #fff;
}

/* ======= Header & Navigation ======= */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.logo-text {
  font-size: 3.2rem;
  font-weight: 700;
  color: #5E60CE;
  text-transform: lowercase;
  letter-spacing: -1px;
}

.main-navigation {
  display: flex;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0 1.5rem;
}

.nav-menu a {
  color: #1F1F1F;
  font-weight: 600;
  font-size: 1.6rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -0.2rem;
  left: 0;
  width: 0;
  height: 0.2rem;
  background-color: #5E60CE;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu li.active a::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
}

.menu-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 3rem;
  height: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-bar {
  display: block;
  width: 100%;
  height: 0.3rem;
  background-color: #1F1F1F;
  transition: all 0.3s ease;
}

/* ======= Hero Section ======= */
.hero-section {
  background: linear-gradient(135deg, rgba(94, 96, 206, 0.1), rgba(2, 128, 144, 0.1));
  padding: 12rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 70rem;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-size: 4.8rem;
  margin-bottom: 2rem;
  color: #5E60CE;
}

.hero-content p {
  font-size: 2rem;
  margin-bottom: 3rem;
}

/* ======= About Section ======= */
.about-section {
  background-color: #fff;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.values-list {
  list-style: none;
  margin-top: 2rem;
}

.values-list li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 3rem;
}

.values-list li::before {
  content: "✓";
  color: #5E60CE;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.values-list span {
  font-weight: bold;
  color: #028090;
}

.about-image img {
  border-radius: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ======= Services Section ======= */
.services-section {
  background-color: #D6E6F2;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.service-card {
  background-color: #fff;
  padding: 3rem;
  border-radius: 0.8rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  margin-bottom: 2rem;
}

.service-icon img {
  height: 6rem;
  margin: 0 auto;
}

.service-card h3 {
  color: #5E60CE;
  margin-bottom: 1.5rem;
}

.service-card p {
  margin-bottom: 2.5rem;
}

/* ======= Benefits Section ======= */
.benefits-section {
  background-color: #fff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.benefit-item {
  text-align: center;
  padding: 2.5rem;
  border-radius: 0.8rem;
  background-color: #F9F7F7;
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  margin-bottom: 1.5rem;
}

.benefit-icon img {
  height: 5rem;
  margin: 0 auto;
}

.benefit-item h3 {
  color: #028090;
  margin-bottom: 1rem;
  font-size: 2rem;
}

/* ======= Pricing Section ======= */
.pricing-section {
  background-color: #D6E6F2;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.pricing-card {
  background-color: #fff;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
  border: 2px solid #FF6D28;
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: translateY(-10px) scale(1.05);
}

.pricing-header {
  background-color: #5E60CE;
  color: #fff;
  padding: 2rem;
  text-align: center;
}

.pricing-card.featured .pricing-header {
  background-color: #FF6D28;
}

.pricing-header h3 {
  margin-bottom: 1rem;
  color: #fff;
}

.price {
  font-size: 3.6rem;
  font-weight: 700;
}

.price span {
  font-size: 1.6rem;
  font-weight: 400;
}

.pricing-features {
  padding: 3rem 2rem;
}

.pricing-features ul {
  list-style: none;
  margin-bottom: 3rem;
}

.pricing-features li {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 3rem;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #5E60CE;
  font-weight: bold;
}

.pricing-features li.not-included {
  color: #aaa;
}

.pricing-features li.not-included::before {
  content: "✕";
  color: #ccc;
}

.pricing-card .btn {
  display: block;
  margin: 0 2rem 2rem;
}

/* ======= Testimonials Section ======= */
.testimonials-section {
  background-color: #fff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.testimonial-card {
  background-color: #F9F7F7;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-image img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
}

.testimonial-content {
  padding: 2rem;
}

.testimonial-text {
  position: relative;
  padding: 2rem 0;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 5rem;
  color: #D6E6F2;
  position: absolute;
  line-height: 1;
}

.testimonial-text::before {
  top: 0;
  left: 0;
}

.testimonial-text::after {
  bottom: 0;
  right: 0;
}

.testimonial-author h4 {
  color: #5E60CE;
  margin-bottom: 0.5rem;
}

.testimonial-author p {
  font-style: italic;
  margin-bottom: 0;
}

/* ======= FAQ Section ======= */
.faq-section {
  background-color: #D6E6F2;
}

.faq-container {
  max-width: 80rem;
  margin: 0 auto;
}

.faq-item {
  background-color: #fff;
  border-radius: 0.8rem;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  cursor: pointer;
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.8rem;
}

.faq-toggle {
  min-width: 3rem;
  text-align: right;
}

.faq-toggle-btn {
  background: none;
  border: none;
  color: #5E60CE;
  font-size: 2.4rem;
  cursor: pointer;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-answer {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  padding: 0 2rem 2rem;
  max-height: 50rem;
}

/* ======= Contact Section ======= */
.contact-section {
  background-color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
}

.contact-icon {
  width: 5rem;
  height: 5rem;
  background-color: #D6E6F2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
}

.contact-icon img {
  height: 2.5rem;
  margin: 0 auto;
}

.contact-detail h3 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  color: #5E60CE;
}

.contact-map {
  margin-top: 3rem;
  border-radius: 0.8rem;
  overflow: hidden;
}

.contact-map img {
  width: 100%;
}

.contact-form-container {
  background-color: #F9F7F7;
  padding: 3rem;
  border-radius: 0.8rem;
}

.contact-form-container h3 {
  margin-bottom: 2rem;
  color: #5E60CE;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid #D6E6F2;
  border-radius: 0.4rem;
  font-size: 1.6rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #5E60CE;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input {
  width: auto;
  margin-right: 1rem;
}

.checkbox-group label {
  margin-bottom: 0;
}

.contact-form .btn {
  width: 100%;
}

.form-errors {
  background-color: #fff0f0;
  border-left: 4px solid #ff6d6d;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0.4rem;
}

.error-message {
  color: #d32f2f;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.error-message:last-child {
  margin-bottom: 0;
}

/* ======= Policy Pages ======= */
.policy-section {
  padding: 8rem 0;
}

.policy-content {
  max-width: 80rem;
  margin: 0 auto;
  background-color: #fff;
  padding: 4rem;
  border-radius: 0.8rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-content h1 {
  color: #5E60CE;
  margin-bottom: 3rem;
  text-align: center;
}

.policy-box {
  margin-bottom: 4rem;
  border-bottom: 1px solid #D6E6F2;
  padding-bottom: 3rem;
}

.policy-box:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.policy-box h2 {
  color: #028090;
  font-size: 2.4rem;
  margin-bottom: 2rem;
}

.policy-box h3 {
  color: #5E60CE;
  font-size: 2rem;
  margin: 2rem 0 1rem;
}

.policy-box ul, .policy-box ol {
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.policy-box li {
  margin-bottom: 0.8rem;
}

/* ======= Footer ======= */
.site-footer {
  background-color: #1F1F1F;
  color: #fff;
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo-text {
  display: block;
  font-size: 3.6rem;
  font-weight: 700;
  color: #fff;
  text-transform: lowercase;
  letter-spacing: -1px;
  margin-bottom: 2rem;
}

.footer-links h3,
.footer-contact h3,
.footer-legal h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  position: relative;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-legal h3::after {
  content: '';
  display: block;
  width: 5rem;
  height: 0.2rem;
  background-color: #FF6D28;
  margin-top: 1rem;
}

.footer-links ul,
.footer-contact ul,
.footer-legal ul {
  list-style: none;
}

.footer-links li,
.footer-legal li {
  margin-bottom: 1rem;
}

.footer-links a,
.footer-legal a {
  color: #D6E6F2;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #FF6D28;
}

.footer-contact li {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-icon {
  height: 1.8rem;
  margin-right: 1rem;
}

.footer-contact a {
  color: #D6E6F2;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ======= Thank You Page ======= */
.thank-you-section {
  padding: 12rem 0;
  text-align: center;
}

.thank-you-content {
  max-width: 60rem;
  margin: 0 auto;
  background-color: #fff;
  padding: 5rem;
  border-radius: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.thank-you-icon {
  height: 10rem;
  margin: 0 auto 3rem;
}

.thank-you-content h1 {
  color: #5E60CE;
  margin-bottom: 2rem;
}

.thank-you-content p {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.thank-you-content .btn {
  margin-top: 2rem;
}

/* ======= Cookie Popup ======= */
.cookie-popup {
  position: fixed;
  bottom: 3rem;
  left: 3rem;
  right: 3rem;
  max-width: 40rem;
  background-color: #fff;
  border-radius: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  z-index: 9999;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.cookie-popup.hidden {
  transform: translateY(20rem);
  opacity: 0;
  visibility: hidden;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cookie-content p {
  margin-bottom: 1.5rem;
}

.cookie-content .btn {
  align-self: flex-end;
}

/* ======= Responsive Styles ======= */
@media (max-width: 1024px) {
  html {
    font-size: 60%;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 4rem;
  }
  
  img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 58%;
  }
  
  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  
  main, section, div {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  section {
    padding: 6rem 0;
  }
  
  .services-grid,
  .benefits-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    grid-row: 1;
    margin-bottom: 3rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
    width: 100%;
  }
  
  .main-navigation.active {
    max-height: 50rem;
  }
  
  .nav-menu {
    flex-direction: column;
    padding: 2rem;
    width: 100%;
  }
  
  .nav-menu li {
    margin: 1rem 0;
    width: 100%;
  }
  
  .header-cta {
    display: none;
  }
  
  /* Prevent horizontal overflow */
  .testimonial-card, 
  .service-card, 
  .pricing-card, 
  .benefit-item {
    width: 100%;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 55%;
  }
  
  h1 {
    font-size: 3.6rem;
  }
  
  .hero-content h1 {
    font-size: 3.8rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .policy-content {
    padding: 3rem 2rem;
  }
  
  .cookie-popup {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
