/* 
==================================
General Styles
================================== 
*/

:root {
  --bg-color: #fdf6e3;
  --accent-coral: #ff3c38;
  --accent-indigo: #2f4b7c;
  --accent-yellow: #ffd166;
  --text-dark: #333;
  --text-light: #fff;
  --border-radius: 5px;
  --box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
}

section,
.section {
  padding: 60px 0;
  scroll-margin-top: 80px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: var(--accent-indigo);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-coral);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 20px;
  line-height: 1.2;
}

p {
  margin-bottom: 15px;
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--accent-coral);
  color: var(--text-light);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--accent-indigo);
  color: var(--text-light);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--accent-coral);
  margin: 15px auto;
}

/* 
==================================
Header & Navigation
================================== 
*/

.main-header {
  background-color: #fff;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.logo a {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-indigo);
  text-transform: lowercase;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav ul li {
  margin-left: 25px;
}

.main-nav ul li a {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.main-nav ul li a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--accent-coral);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.main-nav ul li a:hover:after {
  width: 100%;
}

.menu-toggle,
.menu-button {
  display: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-button {
    display: block;
    cursor: pointer;
    z-index: 1001;
  }

  .menu-button .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 60px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px;
  }

  .main-nav ul li {
    margin: 15px 0;
  }

  .menu-toggle:checked ~ .main-nav {
    right: 0;
  }

  .menu-toggle:checked ~ .menu-button .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle:checked ~ .menu-button .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-button .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  }
}

/* 
==================================
Hero Section
================================== 
*/

.hero {
  background-image: url("./img/TwYJc.jpg");
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* 
==================================
Card Grid System
================================== 
*/

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.card {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.card-content {
  padding: 20px;
}

.card h3 {
  margin-bottom: 15px;
  color: var(--accent-indigo);
}

/* 
==================================
About Section
================================== 
*/

.about {
  background-color: #fff;
}

/* 
==================================
Services Section
================================== 
*/

.services .card-image.audit1 {
  background-image: url("./img/65Gre.jpg");
}

.services .card-image.audit2 {
  background-image: url("./img/8ZWvu.jpg");
}

.services .card-image.audit3 {
  background-image: url("./img/tUHc6.jpg");
}

/* 
==================================
Benefits Section
================================== 
*/

.benefits {
  background-color: #fff;
}

.benefit-card {
  padding: 20px;
  text-align: center;
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: var(--accent-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 
==================================
Contact Form
================================== 
*/

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-indigo);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 3px;
}

.required:after {
  content: "*";
  color: var(--accent-coral);
  margin-left: 3px;
}

.error-text {
  color: var(--accent-coral);
  font-size: 14px;
  margin-top: 5px;
}

/* Custom select styling */
.form-control.select {
  position: relative;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%232f4b7c' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

.form-control.select option {
  background-color: #fff;
  color: var(--text-dark);
}

/* 
==================================
FAQ Section
================================== 
*/

.faq-item {
  margin-bottom: 15px;
}

.faq-question {
  background-color: #fff;
  padding: 15px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  box-shadow: var(--box-shadow);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 15px;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.faq-answer {
  background-color: #fff;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  margin-top: -5px;
}

/* Checkbox hack for accordion */
.faq-toggle {
  display: none;
}

.faq-toggle:checked ~ .faq-question::after {
  transform: rotate(45deg);
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 15px 20px;
}

/* 
==================================
Footer
================================== 
*/

.main-footer {
  background-color: var(--accent-indigo);
  color: var(--text-light);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-grid h3 {
  color: var(--accent-yellow);
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: var(--text-light);
}

.footer-grid a:hover {
  color: var(--accent-yellow);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
}

/* 
==================================
Cookie Consent
================================== 
*/

.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: var(--accent-indigo);
  color: var(--text-light);
  padding: 15px;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  transition: bottom 0.5s ease;
}

.cookie-consent.show {
  bottom: 0;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.cookie-content p {
  margin: 0;
}

.cookie-content a {
  color: var(--accent-yellow);
}

#accept-cookies {
  padding: 8px 16px;
  background-color: var(--accent-yellow);
  color: var(--text-dark);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

#accept-cookies:hover {
  background-color: var(--accent-coral);
  color: var(--text-light);
}

/* 
==================================
Legal Pages Styling
================================== 
*/

.legal-page {
  max-width: 800px;
  margin: 40px auto;
  background-color: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.legal-page h1 {
  color: var(--accent-indigo);
  margin-bottom: 20px;
}

.legal-page h2 {
  margin-top: 30px;
  color: var(--accent-coral);
}

/* 
==================================
Thank You Page
================================== 
*/

.thank-you {
  max-width: 600px;
  margin: 60px auto;
  background-color: #fff;
  padding: 40px;
  text-align: center;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.thank-you h1 {
  color: var(--accent-indigo);
}

/* 
==================================
Responsive Adjustments
================================== 
*/

@media (max-width: 992px) {
  section,
  .section {
    padding: 40px 0;
  }

  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .card-content {
    padding: 15px;
  }

  .contact-form {
    padding: 20px;
  }

  .thank-you {
    padding: 30px;
    margin: 40px auto;
  }
}
