/* 
   Domain - Financial Audit Services in Spain
   Main Stylesheet
*/

/* ===== GLOBAL STYLES ===== */
:root {
  /* Color palette */
  --primary-color: #00303f; /* Dark sea */
  --secondary-color: #f2a541; /* Amber */
  --accent-color: #7bc950; /* Lime */
  --background-color: #fafafa; /* Light gray */
  --text-color: #1c1c1c; /* Near black */

  /* Font families */
  --font-primary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  /* Sizes */
  --container-width: 1200px;
  --header-height: 80px;
  --section-padding: 80px;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}
footer a {
  color: var(--secondary-color);
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style-position: inside;
  margin-bottom: 15px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-full {
  width: 100%;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 48, 63, 0.95);
  color: white;
  padding: 15px 0;
  z-index: 9999;
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.cookie-content p {
  margin: 0;
  flex-grow: 1;
}

.cookie-content a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.cookie-content button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cookie-content button:hover {
  background-color: #e09030;
}

/* ===== HEADER STYLES ===== */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo:hover {
  color: var(--secondary-color);
}

/* Burger Menu */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
}

.main-nav a {
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.main-nav a:not(.btn):hover::after {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: calc(100vh - var(--header-height));
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  color: white;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.hero-content .btn {
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ABOUT SECTION ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.feature {
  text-align: center;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature svg {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.feature h4 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* ===== SERVICES SECTION ===== */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.service-content p {
  margin-bottom: 15px;
}

.service-content ul {
  margin-bottom: 20px;
}

/* ===== PROCESS SECTION ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.step {
  text-align: center;
  padding: 30px 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.step h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
  margin-bottom: 20px;
}

.testimonial-quote svg {
  color: var(--secondary-color);
  margin-bottom: 10px;
  opacity: 0.6;
}

.testimonial-author h4 {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.testimonial-author p {
  font-size: 0.9rem;
  color: #666;
}

/* ===== FAQ SECTION ===== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-toggle {
  display: none;
}

.faq-question {
  display: block;
  padding: 20px;
  background-color: white;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-toggle:checked + .faq-question {
  background-color: var(--primary-color);
  color: white;
}

.faq-toggle:checked + .faq-question::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: white;
  transition: all 0.3s ease;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 20px;
}

/* ===== CONTACT SECTION ===== */
.contact-form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input {
  width: auto;
  margin-top: 5px;
}

.required {
  color: #e74c3c;
}

/* Style for select options */
select option {
  background-color: white;
  color: var(--text-color);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.info-item svg {
  margin-top: 3px;
  color: var(--secondary-color);
}

.contact-map {
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.contact-map iframe {
  display: block;
}

.error-messages {
  background-color: #feeeed;
  border-left: 4px solid #e74c3c;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.error {
  color: #e74c3c;
  margin-bottom: 5px;
}

/* ===== GALLERY SECTION ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ===== FOOTER STYLES ===== */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  margin-bottom: 40px;
}

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.footer-contact h4,
.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.footer-contact ul,
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li,
.footer-links li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact svg {
  margin-top: 5px;
}

.footer-links a {
  color: white;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== THANK YOU PAGE ===== */
.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 2px solid var(--secondary-color);
}

.thank-you-icon {
  color: var(--accent-color);
  margin-bottom: 20px;
}

.thank-you-content h1 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.thank-you-content p {
  margin-bottom: 15px;
}

.thank-you-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* ===== POLICY PAGES ===== */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #ddd;
}

.policy-content h1 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.policy-section {
  margin-bottom: 30px;
}

.policy-section h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.policy-section p {
  margin-bottom: 15px;
}

.policy-date {
  text-align: right;
  color: #666;
  font-size: 0.9rem;
  margin-top: 40px;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 991px) {
  .section-padding {
    padding: 60px 0;
  }

  .about-content,
  .contact-form-container {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: flex;
  }

  .menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .menu-toggle:checked ~ .main-nav {
    max-height: 500px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 10px;
  }

  .main-nav a.btn {
    display: inline-block;
    margin-top: 10px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .feature,
  .step,
  .testimonial-card {
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .service-img {
    height: 150px;
  }

  .thank-you-links {
    flex-direction: column;
  }

  .policy-content {
    padding: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
