/* Main Styles for domain Financial Audit Website */

:root {
  --color-primary: #192734; /* Dark blue */
  --color-accent: #ff715b; /* Coral */
  --color-bg: #f3f5f9; /* Light background */
  --color-secondary: #3ec1d3; /* Aquamarine */
  --color-text: #1f1f1f; /* Text color */
  --container-width: 1200px;
  --border-radius: 8px;
  --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;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

section[id] {
  scroll-margin-top: 40px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 20px;
}

h1 {
  font-size: 1.9rem;
}

h2 {
  font-size: 1.7rem;
  position: relative;
  padding-bottom: 10px;
}

h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
}

p {
  margin-bottom: 20px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-secondary);
}

section {
  padding: 60px 0;
}

.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: white;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-secondary);
}

/* Header Styles */
header {
  background-color: var(--color-primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

/* Navigation Styles */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  color: white;
  position: relative;
}

nav ul li a:hover {
  color: var(--color-accent);
}

nav ul li a:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

nav ul li a:hover:after {
  width: 100%;
}

/* Mobile Menu */
.hamburger {
  display: none;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 80px);
  background-image: url("./img/fh55B.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 39, 52, 0.6);
}

.hero-content {
  position: relative;
  color: white;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* About Section */
.about {
  background-color: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Benefits Section */
.benefits {
  background-color: var(--color-bg);
}

.benefits h2 {
  text-align: center;
  margin-bottom: 50px;
}

.benefits h2:after {
  left: 50%;
  transform: translateX(-50%);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.benefit-item {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-item h3 {
  margin: 20px 0;
}

/* Services Section */
.services {
  background-color: white;
}

.services h2 {
  text-align: center;
  margin-bottom: 50px;
}

.services h2:after {
  left: 50%;
  transform: translateX(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--color-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 20px;
}

/* Process Section */
.process {
  background-color: var(--color-bg);
}

.process h2 {
  text-align: center;
  margin-bottom: 50px;
}

.process h2:after {
  left: 50%;
  transform: translateX(-50%);
}

.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 40px 0;
}

.process-steps:before {
  content: "";
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-secondary);
  z-index: 1;
}

.step {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 20%;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  font-weight: 700;
  font-size: 1.2rem;
  position: relative;
  transition: var(--transition);
}

.step:hover .step-number {
  background-color: var(--color-accent);
  transform: scale(1.1);
}

/* Testimonials Section */
.testimonials {
  background-color: white;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 50px;
}

.testimonials h2:after {
  left: 50%;
  transform: translateX(-50%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial {
  background-color: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial:before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 4rem;
  color: var(--color-accent);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  margin-top: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

/* Form Section */
.contact {
  background-color: var(--color-bg);
}

.contact h2 {
  text-align: center;
  margin-bottom: 50px;
}

.contact h2:after {
  left: 50%;
  transform: translateX(-50%);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--color-secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(62, 193, 211, 0.1);
}

select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23192734' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px;
  padding-right: 40px;
}

select.form-control option {
  background-color: var(--color-bg);
}

.checkbox-group {
  margin-bottom: 20px;
}

.checkbox-item {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.checkbox-item input {
  margin-right: 10px;
}

.error-message {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 5px;
}

.success-message {
  color: #28a745;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* FAQ Section */
.faq {
  background-color: white;
}

.faq h2 {
  text-align: center;
  margin-bottom: 50px;
}

.faq h2:after {
  left: 50%;
  transform: translateX(-50%);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  background-color: var(--color-bg);
  padding: 15px 20px;
  position: relative;
  cursor: pointer;
  font-weight: 600;
}

.faq-question:after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: white;
}

.faq-content-inner {
  padding: 20px;
}

/* CSS-only FAQ accordion */
.faq-item input[type="checkbox"] {
  display: none;
}

.faq-item input[type="checkbox"] + label {
  display: block;
  cursor: pointer;
  background-color: var(--color-bg);
  padding: 15px 20px;
  position: relative;
  font-weight: 600;
}

.faq-item input[type="checkbox"] + label:after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-item input[type="checkbox"]:checked + label:after {
  content: "−";
}

.faq-item input[type="checkbox"] ~ .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item input[type="checkbox"]:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-answer {
  padding: 0 20px;
  background-color: white;
}

.faq-answer-content {
  padding: 15px 0;
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: white;
  padding: 60px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ccc;
}

.footer-column ul li a:hover {
  color: var(--color-accent);
}

.footer-contact {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
}

.footer-contact span {
  margin-right: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-primary);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: none;
}

.cookie-text {
  flex: 1;
  padding-right: 20px;
}

.cookie-button {
  background-color: var(--color-accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.cookie-button:hover {
  background-color: var(--color-secondary);
}

/* Thank You Page */
.thank-you {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.thank-you-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.thank-you h1 {
  color: var(--color-accent);
}

/* Legal Pages */
.legal-page {
  padding: 60px 0;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal-container h1 {
  margin-bottom: 30px;
}

.legal-container h2 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.legal-container p {
  margin-bottom: 15px;
}

.legal-container ul {
  margin-bottom: 15px;
  margin-left: 20px;
}

/* Mobile Responsive Design */
@media (max-width: 992px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    flex-wrap: wrap;
  }

  .step {
    width: 50%;
    margin-bottom: 30px;
  }

  .process-steps:before {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Mobile Navigation */
  .hamburger {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 2;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    position: absolute;
    left: 0;
    transition: var(--transition);
  }

  .hamburger span:nth-child(1) {
    top: 0;
  }

  .hamburger span:nth-child(2) {
    top: 9px;
  }

  .hamburger span:nth-child(3) {
    top: 18px;
  }

  #menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
  }

  #menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
  }

  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--color-primary);
    padding: 80px 20px 20px;
    transition: var(--transition);
    z-index: 1;
  }

  #menu-toggle:checked ~ nav {
    left: 0;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 0 0 15px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* Animation Classes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease forwards;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}
