/* Main CSS styles for domain financial audit website */

/* Global styles */
:root {
  --bg-color: #fef8f0;
  --text-color: #2c2c2c;
  --accent-blue: #0f4c81;
  --accent-gold: #ffd166;
  --accent-mint: #06d6a0;
  --white: #ffffff;
  --light-beige: #f9f3e8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: 'Arial', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

section[id] {
  scroll-margin-top: 40px;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 15px;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--accent-mint);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-mint);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--accent-mint);
  color: var(--text-color);
}

.accent-text {
  color: var(--accent-blue);
  font-weight: 600;
}

section {
  padding: 80px 0;
}

section:nth-child(even) {
  background-color: var(--white);
}

section:nth-child(odd) {
  background-color: var(--light-beige);
}

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.logo span {
  color: var(--accent-gold);
}

/* Mobile Menu Checkbox Hack */
.menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--accent-blue);
  transition: all 0.3s ease;
}

.navigation ul {
  display: flex;
  list-style: none;
}

.navigation ul li {
  margin-left: 20px;
}

.navigation ul li a {
  color: var(--text-color);
  font-weight: 500;
}

.navigation ul li a:hover {
  color: var(--accent-mint);
}

/* Hero Section */
.hero {
  background-image: url('../img/IlkSM.jpg');
  background-size: cover;
  background-position: center;
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text {
  margin-bottom: 20px;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.service-content {
  padding: 20px;
}

.service-card h3 {
  margin-top: 0;
}

/* Advantages Section */
.advantages-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.advantage-item {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.advantage-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

/* Form Section */
.form-section {
  position: relative;
  background-color: var(--white);
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #fff, #f8f8f8);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--accent-blue);
  outline: none;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%230f4c81' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 35px;
}

/* Style the background of options in the select element */
select.form-control option {
  background-color: var(--light-beige);
  color: var(--text-color);
}

.checkbox-group {
  margin-bottom: 20px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.checkbox-container input {
  margin-top: 5px;
  margin-right: 10px;
}

.checkbox-container label {
  font-size: 0.9rem;
}

.checkbox-container a {
  color: var(--accent-blue);
}

/* Reviews Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.review-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.review-card:before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent-gold);
  opacity: 0.2;
}

.review-text {
  position: relative;
  z-index: 1;
  font-style: italic;
}

.reviewer-name {
  font-weight: 600;
  margin-top: 15px;
  color: var(--accent-blue);
}

/* FAQ Section */
.faq-container {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  background-color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-left: 3px solid var(--accent-gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-checkbox {
  display: none;
}

.faq-arrow {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s;
}

.faq-arrow:before, .faq-arrow:after {
  content: '';
  position: absolute;
  background-color: var(--accent-blue);
  transition: all 0.3s ease;
}

.faq-arrow:before {
  width: 2px;
  height: 10px;
  top: 5px;
  left: 9px;
}

.faq-arrow:after {
  width: 10px;
  height: 2px;
  top: 9px;
  left: 5px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
  padding: 0 20px;
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
  padding: 20px;
}

.faq-checkbox:checked ~ .faq-question .faq-arrow:before {
  transform: rotate(90deg);
  opacity: 0;
}

/* Newsletter */
.newsletter {
  background-color: var(--accent-blue);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.newsletter h2 {
  color: white;
}

.newsletter h2:after {
  background: var(--accent-gold);
  left: 50%;
  transform: translateX(-50%);
}

.newsletter-form {
  max-width: 500px;
  margin: 30px auto 0;
  display: flex;
}

.newsletter-input {
  flex-grow: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 5px 0 0 5px;
}

.newsletter-button {
  background: var(--accent-gold);
  color: var(--text-color);
  border: none;
  padding: 0 20px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-weight: 600;
}

/* Footer */
footer {
  background-color: #222;
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column a {
  color: #ccc;
}

.footer-column a:hover {
  color: var(--accent-gold);
}

.contact-info {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-info img {
  margin-right: 10px;
  width: 20px;
  height: 20px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid #444;
  font-size: 0.9rem;
}

/* Thank you page */
.thank-you-container {
  max-width: 600px;
  margin: 5rem auto;
  padding: 40px;
  text-align: center;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Policy pages */
.policy-container {
  max-width: 800px;
  margin: 3rem auto;
  padding: 40px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.policy-container h1 {
  margin-bottom: 30px;
}

.policy-container h2 {
  margin-top: 30px;
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
}

.cookie-popup.show {
  display: block;
  animation: slideUp 0.5s ease forwards;
}

.cookie-popup p {
  margin-bottom: 15px;
}

.cookie-buttons {
  display: flex;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 8px 15px;
  margin-left: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.cookie-accept {
  background: var(--accent-blue);
  color: white;
}

.cookie-decline {
  background: #f1f1f1;
  color: #333;
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Media Queries */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .menu-btn {
    display: flex;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .navigation {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  .navigation ul {
    flex-direction: column;
    padding: 20px;
  }
  
  .navigation ul li {
    margin: 0 0 10px 0;
  }
  
  .menu-toggle:checked ~ .navigation {
    height: auto;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-input {
    border-radius: 5px;
    margin-bottom: 10px;
  }
  
  .newsletter-button {
    border-radius: 5px;
    padding: 12px;
  }
}