/* Style.css for domain - Accounting Company */

/* ---------- Global Styles ---------- */
:root {
  --indigo: #3a0ca3;
  --mandarin: #fb5607;
  --cream: #fdf0d5;
  --graphite: #2b2d42;
  --lime: #80ff72;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.6;
  color: var(--graphite);
  background-color: #fff;
  overflow-x: hidden;
}

section {
  padding: 4rem 1rem;
  scroll-margin-top: 40px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--indigo);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--mandarin);
  border-radius: 2px;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--indigo);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--mandarin);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--mandarin);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: bold;
  text-align: center;
}

button:hover,
.btn:hover {
  background-color: var(--indigo);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.section-title {
  margin-bottom: 3rem;
}

.text-center {
  text-align: center;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* ---------- Header Styles ---------- */
header {
  background-color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--indigo);
}

.logo:hover {
  color: var(--mandarin);
}

/* Hamburger Menu (CSS Only) */
.menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--indigo);
  transition: var(--transition);
  border-radius: 3px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  position: relative;
  font-weight: 500;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--mandarin);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

/* ---------- Hero Section ---------- */
.hero {
  height: 80vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("./img/xtuGZ.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  animation: fadeIn 1s ease;
}

.hero h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ---------- Services Section ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

.service-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
}

.service-card h3 {
  color: var(--indigo);
  margin-bottom: 1rem;
}

/* ---------- About Section ---------- */
.about {
  background-color: var(--cream);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-text h2 {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about-text h2::after {
  left: 0;
  transform: translateX(0);
}

/* ---------- Benefits Section ---------- */
.benefits {
  background-color: #f9f9f9;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.benefit-item {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  margin: 0 auto 1.5rem;
  width: 60px;
  height: 60px;
  background-color: var(--lime);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: var(--indigo);
}

/* ---------- Process Section ---------- */
.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  margin-bottom: 3rem;
}

.step-number {
  background-color: var(--mandarin);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.step-content {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  flex: 1;
}

/* ---------- Testimonials Section ---------- */
.testimonials {
  background-color: var(--cream);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.testimonial-text {
  position: relative;
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 2rem;
  color: var(--mandarin);
}

.testimonial-text::after {
  content: '"';
}

.testimonial-author {
  font-weight: bold;
  color: var(--indigo);
}

/* ---------- Contact Section ---------- */
.contact {
  background-color: #f9f9f9;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-info img {
  margin-right: 10px;
  width: 24px;
  height: 24px;
}

/* ---------- Form Section ---------- */
.form-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 2px rgba(58, 12, 163, 0.1);
}

select option {
  background-color: var(--cream);
  color: var(--graphite);
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-container input {
  width: auto;
  margin-top: 0.3rem;
}

.error {
  color: #ff3333;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* ---------- FAQ Section ---------- */
.faq {
  background-color: white;
}

.faq-item {
  margin-bottom: 1rem;
}

.faq-question {
  display: block;
  position: relative;
  padding: 1rem;
  background-color: var(--cream);
  color: var(--graphite);
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.faq-content {
  padding: 1rem;
}

.faq-checkbox {
  display: none;
}

.faq-checkbox:checked + .faq-question::after {
  content: "-";
}

.faq-checkbox:checked + .faq-question + .faq-answer {
  max-height: 500px;
}

/* ---------- Footer ---------- */
footer {
  background-color: var(--graphite);
  color: #fff;
  padding: 3rem 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--mandarin);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ddd;
}

.footer-links a:hover {
  color: var(--mandarin);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

/* ---------- Cookie Consent ---------- */
#cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-radius: 8px;
  z-index: 9999;
  max-width: 400px;
  width: 90%;
  text-align: center;
  display: none;
}

#cookie-consent h3 {
  margin-bottom: 0.5rem;
}

.cookie-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ---------- Thank You Page ---------- */
.thank-you {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 3rem;
  text-align: center;
  margin: 8rem auto 5rem;
  max-width: 600px;
}

/* ---------- Policy Pages ---------- */
.policy-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
}

.policy-container h1 {
  margin-bottom: 2rem;
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  font-size: 1.8rem;
  text-align: left;
  margin-bottom: 1rem;
}

.policy-section h2::after {
  left: 0;
  transform: translateX(0);
}

/* ---------- Responsive Styles ---------- */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3rem 1rem;
  }

  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  /* Hamburger menu */
  .menu-btn {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1000;
  }

  nav ul {
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    height: 100%;
  }

  nav ul li {
    margin: 1.5rem 0;
  }

  .menu-toggle:checked ~ nav {
    right: 0;
  }

  .menu-toggle:checked ~ .menu-btn span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle:checked ~ .menu-btn span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-btn span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .service-card,
  .benefit-item,
  .testimonial-card {
    margin-bottom: 1.5rem;
  }

  .form-container {
    padding: 1.5rem;
  }
}
