/* 
   Main stylesheet for domain - Accounting services in Spain 
*/

/* General Styles */
:root {
  --background: #faf8f2;
  --primary: #542e91;
  --accent-yellow: #ffc857;
  --accent-green: #6fb98f;
  --text-dark: #222222;
  --text-light: #666666;
  --white: #ffffff;
  --max-width: 1200px;
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
  font-size: 16px;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

body {
  font-family: "Arial", sans-serif;
  background-color: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-yellow);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 12px 25px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-weight: bold;
  text-align: center;
}

.btn:hover {
  background-color: var(--accent-yellow);
  color: var(--text-dark);
  transform: translateY(-2px);
}

/* Header Styles */
header {
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
}

/* Burger Menu - CSS Only Implementation */
.burger-menu {
  display: none;
}

.menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  order: 2;
}

.menu-btn span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary);
  border-radius: 3px;
  left: 0;
  transform: rotate(0deg);
  transition: var(--transition);
}

.menu-btn span:nth-child(1) {
  top: 0px;
}

.menu-btn span:nth-child(2),
.menu-btn span:nth-child(3) {
  top: 10px;
}

.menu-btn span:nth-child(4) {
  top: 20px;
}

.menu-toggle:checked ~ .menu-btn span:nth-child(1) {
  top: 10px;
  width: 0%;
  left: 50%;
}

.menu-toggle:checked ~ .menu-btn span:nth-child(2) {
  transform: rotate(45deg);
}

.menu-toggle:checked ~ .menu-btn span:nth-child(3) {
  transform: rotate(-45deg);
}

.menu-toggle:checked ~ .menu-btn span:nth-child(4) {
  top: 10px;
  width: 0%;
  left: 50%;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
}

nav ul li a:hover {
  color: var(--primary);
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  width: 100%;
  padding: 0 20px;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
}

.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--accent-yellow);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.about-text {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Services Section */
.services {
  padding: 80px 0;
  background-color: var(--background);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card-image {
  height: 200px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-content {
  padding: 20px;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

/* Advantages Section */
.advantages {
  padding: 80px 0;
  background-color: var(--white);
}

.advantages-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.advantage-item {
  text-align: center;
  padding: 20px;
}

.advantage-icon {
  font-size: 2.5rem;
  color: var(--accent-yellow);
  margin-bottom: 15px;
}

.advantage-item h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  background-color: var(--background);
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent-yellow);
  opacity: 0.2;
}

.testimonial-text {
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-info {
  margin-left: 15px;
}

.testimonial-author-info h4 {
  color: var(--primary);
}

.testimonial-author-info p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* How We Work Section */
.how-we-work {
  padding: 80px 0;
  background-color: var(--white);
}

.work-steps {
  margin-top: 40px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.work-step {
  display: flex;
  margin-bottom: 40px;
  position: relative;
}

.work-step-number {
  min-width: 60px;
  height: 60px;
  background-color: var(--accent-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white);
  margin-right: 20px;
}

.work-step-content h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* FAQ Section - CSS Checkbox Implementation */
.faq {
  padding: 80px 0;
  background-color: var(--background);
}

.faq-container {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  background-color: var(--white);
  padding: 15px 20px;
  cursor: pointer;
  position: relative;
  box-shadow: var(--box-shadow);
}

.faq-checkbox {
  display: none;
}

.faq-question label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  width: 100%;
  font-weight: 500;
}

.faq-question label::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-checkbox:checked ~ .faq-question label::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: var(--white);
  transition: max-height 0.3s ease;
}

.faq-answer-content {
  padding: 0 20px 20px;
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
}

/* Form Section */
.contact {
  padding: 80px 0;
  background-color: var(--white);
}

.form-container {
  max-width: 600px;
  margin: 40px auto 0;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(84, 46, 145, 0.2);
}

.form-control::placeholder {
  color: #aaa;
}

select.form-control {
  cursor: pointer;
  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='%23666' 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 10px center;
}

/* Custom select styling for option backgrounds */
select.form-control option {
  background-color: var(--white);
  color: var(--text-dark);
  padding: 10px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input {
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  font-size: 0.9rem;
  line-height: 1.4;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-yellow);
}

.footer-contact-info {
  list-style: none;
}

.footer-contact-info li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.footer-contact-info li i {
  margin-right: 10px;
  color: var(--accent-yellow);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--white);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-yellow);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Gracias and Policy Pages */
.page-container {
  max-width: 800px;
  margin: 8rem auto 5rem;
  padding: 40px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.page-title {
  color: var(--primary);
  margin-bottom: 30px;
  text-align: center;
}

.policy-content {
  line-height: 1.8;
}

.policy-content h2 {
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 20px;
}

.policy-content p {
  margin-bottom: 20px;
}

.policy-content ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

/* Cookie Consent Popup */
.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: var(--white);
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: bottom 0.5s ease-in-out;
}

.cookie-consent.show {
  bottom: 0;
}

.cookie-text {
  flex: 1;
  padding-right: 20px;
}

.cookie-buttons {
  display: flex;
}

.cookie-buttons .btn {
  margin-left: 10px;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  nav ul {
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    background-color: var(--white);
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
  }

  nav ul li {
    margin: 0;
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .menu-toggle:checked ~ nav ul {
    height: auto;
    opacity: 1;
    box-shadow: var(--box-shadow);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .cookie-consent {
    flex-direction: column;
    text-align: center;
  }

  .cookie-text {
    padding-right: 0;
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .page-container {
    padding: 20px;
    margin: 5rem auto 3rem;
  }
}
