/* Main styles for domain - Spanish Accounting Services Website */

/* Base styles and variables */
:root {
  --main-bg-color: #fff3ec;
  --accent-color-1: #4e4ec8;
  --accent-color-2: #f05252;
  --accent-color-3: #3fc1c9;
  --text-color: #2e2e2e;
  --transition-speed: 0.3s;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background-color: var(--main-bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent-color-2),
    var(--accent-color-1)
  );
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-color-1);
  text-decoration: none;
  transition: all var(--transition-speed);
}

a:hover {
  color: var(--accent-color-2);
}

section {
  padding: 5rem 0;
}

/* Header */
header {
  background-color: white;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-color-1);
  letter-spacing: -1px;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  font-weight: 500;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent-color-2),
    var(--accent-color-1)
  );
  transition: width var(--transition-speed);
}

nav ul li a:hover::after {
  width: 100%;
}

/* Mobile menu (checkbox hack) */
.menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
  cursor: pointer;

  padding: 10px;
}

.menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--accent-color-1);
  transition: all var(--transition-speed);
}

/* Hero section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: white;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--accent-color-2),
    var(--accent-color-1)
  );
  color: white;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  color: white;
}

/* About section */
.about {
  background-color: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.about-img {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-speed);
}

.about-img:hover img {
  transform: scale(1.03);
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
}

/* Benefits section */
.benefits {
  background-color: white;
}

.benefits-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.benefit-icon {
  background: linear-gradient(
    90deg,
    var(--accent-color-2),
    var(--accent-color-1)
  );
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.benefit-icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

/* Testimonials section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
}

.testimonial-text {
  font-style: italic;
  position: relative;
  padding: 0 1rem;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 2rem;
  color: var(--accent-color-3);
  position: absolute;
}

.testimonial-text::before {
  left: -10px;
  top: -10px;
}

.testimonial-text::after {
  right: -10px;
  bottom: -30px;
}

.testimonial-author {
  margin-top: 1rem;
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 1rem;
}

/* FAQ section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  background-color: white;
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  border-radius: var(--border-radius);
  display: block;
  width: 100%;
  text-align: left;
  transition: all var(--transition-speed);
}

.faq-question:after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.faq-checkbox {
  display: none;
}

.faq-answer {
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed);
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

.faq-answer-content {
  padding: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-checkbox:checked ~ .faq-question:after {
  content: "−";
}

/* Form section */
.form-section {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  max-width: 600px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  gap: 20px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border var(--transition-speed);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color-1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232e2e2e' 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;
  padding-right: 40px;
}

select.form-control option {
  background-color: var(--main-bg-color);
  padding: 12px;
}

.checkbox-group {
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}

.checkbox-input {
  margin-right: 10px;
  margin-top: 5px;
}

/* Footer */
footer {
  background-color: white;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-info h3 {
  margin-bottom: 1.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-contact-icon {
  margin-right: 10px;
  display: flex;
  align-items: center;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background-color: white;
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  z-index: 1050;
  display: none;
}

.cookie-popup.show {
  display: block;
  animation: slide-up 0.3s ease;
}

.cookie-popup p {
  margin-bottom: 1rem;
}

.cookie-popup-actions {
  display: flex;
  gap: 10px;
}

/* Policy pages */
.policy-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.policy-container h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.policy-content {
  margin-bottom: 2rem;
}

.policy-content h2 {
  margin-top: 2rem;
}

/* Thank you page */
.thank-you-container {
  margin: 8rem auto 5rem;
  max-width: 600px;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--accent-color-3);
  margin-bottom: 1rem;
}

/* Animations */
@keyframes slide-up {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  section {
    padding: 4rem 0;
  }

  .about-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 3rem 0;
  }

  /* Mobile menu styles */
  nav ul {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    height: 0;
    overflow: hidden;
    transition: height var(--transition-speed);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .menu-btn {
    display: block;
    order: 2;
  }

  .menu-toggle:checked ~ nav ul {
    height: auto;
    padding: 1rem 0;
  }

  .menu-toggle:checked ~ .menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle:checked ~ .menu-btn span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  }

  nav ul li {
    margin: 0;
    text-align: center;
    padding: 0.8rem 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  section {
    padding: 2.5rem 0;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-content {
    text-align: center;
  }

  .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}
