/* Main Styles for Domain Financial Audit Website */

/* Base Styles */
:root {
  --primary-bg: #f5efe6;
  --primary-accent: #2a4d69;
  --secondary-accent: #ff9248;
  --text-color: #333333;
  --button-gradient-start: #ff9248;
  --button-gradient-end: #ffb347;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: "Roboto", "Arial", sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 40px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-accent);
  margin-bottom: 1rem;
  font-weight: 700;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--secondary-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-accent);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-accent);
  margin: 1rem auto;
  border-radius: 2px;
}

section {
  padding: 5rem 0;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(
    to right,
    var(--button-gradient-start),
    var(--button-gradient-end)
  );
  color: var(--white);
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(255, 146, 72, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 146, 72, 0.4);
  color: var(--white);
}

/* Header & Navigation */
header {
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-accent);
  text-transform: lowercase;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 2rem;
}

.burger-menu {
  display: none;
  cursor: pointer;
}

/* Checkbox Hack for Mobile Menu */
#menu-toggle {
  display: none;
}

/* Hero Section */
.hero {
  background-image: url("./img/3gDkC.jpg");
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--white);
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 77, 105, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* About Section */
.about {
  background-color: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-content {
  padding: 1.5rem;
}

/* Why Us Section */
.why-us {
  background-color: var(--light-gray);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--secondary-accent);
  margin-bottom: 1rem;
}

/* Steps Section */
.steps-container {
  position: relative;
}

.steps-list {
  list-style: none;
  counter-reset: steps-counter;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.step-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3rem;
}

.step-item:before {
  counter-increment: steps-counter;
  content: counter(steps-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: var(--primary-accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light-gray);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-accent);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--white);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.faq-question {
  padding: 1.2rem;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white);
}

.faq-toggle {
  display: none;
}

.faq-toggle + label {
  display: block;
  position: relative;
  cursor: pointer;
}

.faq-toggle + label:after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  font-size: 1.5rem;
  color: var(--primary-accent);
}

.faq-toggle:checked + label:after {
  content: "-";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 1.2rem;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 0 1.2rem 1.2rem;
}

/* Form Section */
.form-section {
  background-color: var(--white);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--light-gray);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--medium-gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--secondary-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 146, 72, 0.2);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232A4D69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 45px;
}

select.form-control option {
  background-color: white;
  color: var(--text-color);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 5px;
}

/* Thank You Page */
.thank-you-container {
  text-align: center;
  margin: 8rem auto 3rem;
  max-width: 700px;
  padding: 3rem;
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.thank-you-container h2 {
  color: var(--secondary-accent);
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--primary-accent);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-logo {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.footer-contact li i {
  margin-right: 10px;
  margin-top: 5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--white);
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Policy Pages */
.policy-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2.5rem;
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.policy-container h1 {
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--secondary-accent);
  padding-bottom: 1rem;
}

.policy-container h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-accent);
}

.policy-container p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.policy-container ul,
.policy-container ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.policy-container li {
  margin-bottom: 0.5rem;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: var(--primary-accent);
  color: var(--white);
  padding: 1.5rem;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: bottom 0.5s ease-in-out;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-consent.show {
  bottom: 0;
}

.cookie-text {
  flex: 1;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.accept-cookies {
  background: var(--secondary-accent);
  color: var(--white);
  border: none;
}

.decline-cookies {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 1.5rem 0;
  }

  .burger-menu {
    display: block;
  }

  /* Checkbox Hack for Mobile Menu */
  #menu-toggle:checked ~ .nav-menu {
    left: 0;
  }

  .burger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-accent);
    margin: 5px 0;
    transition: var(--transition);
  }

  #menu-toggle:checked ~ .burger-menu .burger-icon:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  #menu-toggle:checked ~ .burger-menu .burger-icon:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked ~ .burger-menu .burger-icon:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

@media screen and (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}
