/* 
* Main Stylesheet for elunovarquest.com
* Spanish Accounting Services Website
*/

:root {
  /* Color Palette */
  --ink-blue: #213b50; /* Primary background */
  --golden-tangerine: #f7b733; /* Accent highlight */
  --mint-mist: #a2d5c6; /* Secondary background/containers */
  --soft-ivory: #fff9e6; /* Text areas */
  --plum-blush: #c06c84; /* Buttons and CTAs */

  /* Font sizes */
  --font-sm: 0.875rem;
  --font-md: 1rem;
  --font-lg: 1.25rem;
  --font-xl: 1.5rem;
  --font-xxl: 2rem;
  --font-xxxl: 2.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 50%;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--ink-blue);
  background-color: var(--soft-ivory);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--ink-blue);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--golden-tangerine);
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Anchor positioning - offset for fixed header */
#services,
#faq,
#contact-form,
#advantages,
#how-it-works,
#testimonials {
  scroll-margin-top: 100px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: var(--space-md);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: var(--font-xxxl);
}

h2 {
  font-size: var(--font-xxl);
}

h3 {
  font-size: var(--font-xl);
}

p {
  margin-bottom: var(--space-md);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--plum-blush);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--ink-blue);
  color: var(--soft-ivory);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: var(--golden-tangerine);
}

.btn-secondary:hover {
  background-color: var(--ink-blue);
}

/* Header */
.header {
  background-color: var(--ink-blue);
  color: var(--soft-ivory);
  padding: var(--space-md) 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: var(--font-xl);
  font-weight: 800;
  color: var(--soft-ivory);
}

.logo span {
  color: var(--golden-tangerine);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: var(--space-lg);
}

.nav-link {
  color: var(--soft-ivory);
  font-weight: 600;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--golden-tangerine);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--soft-ivory);
  font-size: var(--font-xl);
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  background-color: var(--ink-blue);
  color: var(--soft-ivory);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background-image: url("../img/DshGEv.jpg");
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--ink-blue), rgba(33, 59, 80, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  color: white;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1s ease;
}

.hero-text {
  font-size: var(--font-lg);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 1.2s ease;
}

.hero-cta {
  animation: fadeInUp 1.4s ease;
}

/* Introduction Section */
.intro {
  padding: var(--space-xxl) 0;
  background-color: var(--soft-ivory);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xxl);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--golden-tangerine);
}

.intro-content {
  display: flex;
  align-items: center;
  gap: var(--space-xxl);
}

.intro-text {
  flex: 1;
}

.intro-image {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
}

.intro-image:hover {
  transform: scale(1.02);
}

/* Services Section */
.services {
  padding: var(--space-xxl) 0;
  background-color: var(--mint-mist);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  background-color: var(--soft-ivory);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-content {
  padding: var(--space-lg);
}

.service-icon {
  font-size: 3rem;
  color: var(--golden-tangerine);
  margin-bottom: var(--space-md);
}

.service-title {
  margin-bottom: var(--space-sm);
}

/* Advantages Section */
.advantages {
  padding: var(--space-xxl) 0;
  background-color: var(--soft-ivory);
  background-image: url("../img/DuqzPA.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.advantages::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 249, 230, 0.9);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  position: relative;
  z-index: 2;
}

.advantages .section-title {
  position: relative;
  z-index: 2;
}

.advantage-box {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  border-bottom: 3px solid transparent;
}

.advantage-box:hover {
  border-bottom: 3px solid var(--golden-tangerine);
  transform: translateY(-5px);
}

.advantage-icon {
  font-size: 2.5rem;
  color: var(--plum-blush);
  margin-bottom: var(--space-md);
}

/* How It Works Section */
.how-it-works {
  padding: var(--space-xxl) 0;
  background-color: var(--mint-mist);
  background-image: url("../img/dtQnzV.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.how-it-works::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(162, 213, 198, 0.9); /* mint-mist with opacity */
}

.steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.how-it-works .section-title {
  position: relative;
  z-index: 2;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 2;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--golden-tangerine);
  color: var(--soft-ivory);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-xl);
  font-weight: 700;
  margin: 0 auto var(--space-lg);
}

.steps::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--ink-blue);
  z-index: 1;
}

/* Testimonials Section */
.testimonials {
  padding: var(--space-xxl) 0;
  background-color: var(--soft-ivory);
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.testimonial {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 5rem;
  color: var(--golden-tangerine);
  opacity: 0.3;
  font-family: serif;
  line-height: 1;
}

.testimonial-text {
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-name {
  font-weight: 600;
  color: var(--ink-blue);
}

.testimonial-position {
  font-size: var(--font-sm);
  color: var(--plum-blush);
}

/* FAQ Section */
.faq {
  padding: var(--space-xxl) 0;
  background-color: var(--mint-mist);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: var(--space-md);
  background-color: var(--soft-ivory);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: var(--golden-tangerine);
  color: white;
}

.faq-answer {
  padding: var(--space-md);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Form Section */
.form-section {
  padding: var(--space-xxl) 0;
  background-color: var(--ink-blue);
  color: var(--soft-ivory);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.form-input,
.form-select {
  width: 100%;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  background-color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--golden-tangerine);
  box-shadow: 0 0 0 3px rgba(247, 183, 51, 0.3);
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
}

.checkbox-input {
  margin-right: var(--space-sm);
}

.checkbox-label {
  font-size: var(--font-sm);
}

.checkbox-label a {
  color: var(--golden-tangerine);
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  padding: var(--space-md) 0;
  background-color: var(--golden-tangerine);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background-color: var(--plum-blush);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background-color: var(--ink-blue);
  background-image: url("../img/DshGEv.jpg");
  background-size: cover;
  background-position: center bottom;
  position: relative;
  color: var(--soft-ivory);
  padding: var(--space-xxl) 0 var(--space-md);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(33, 59, 80, 0.9); /* Dark overlay */
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xxl);
  position: relative;
  z-index: 2;
}

.footer-col h4 {
  color: var(--golden-tangerine);
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: var(--space-sm);
}

.footer-link a {
  color: var(--soft-ivory);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-link a:hover {
  opacity: 1;
  color: var(--golden-tangerine);
}

.footer-contact {
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: var(--space-sm);
  color: var(--golden-tangerine);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 320px;
  padding: var(--space-lg);
  background-color: var(--ink-blue);
  color: var(--soft-ivory);
  border-radius: var(--radius-md);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none; /* Initially hidden, shown by JS */
}

.cookie-consent.show {
  display: block;
  animation: slideIn 0.5s forwards;
}

.cookie-text {
  margin-bottom: var(--space-md);
  font-size: var(--font-sm);
}

.cookie-btns {
  display: flex;
  gap: var(--space-sm);
}

/* Policy Pages */
.policy-frame {
  max-width: 900px;
  margin: 100px auto var(--space-xxl);
  padding: var(--space-xl);
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.policy-title {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--golden-tangerine);
}

.policy-section {
  margin-bottom: var(--space-lg);
}

.policy-section h3 {
  color: var(--ink-blue);
  margin-bottom: var(--space-sm);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Media Queries */
@media (max-width: 992px) {
  .intro-content {
    flex-direction: column;
  }

  .steps {
    flex-direction: column;
  }

  .step {
    margin-bottom: var(--space-xl);
  }

  .steps::after {
    display: none;
  }

  .step-number {
    margin: 0 auto var(--space-md);
  }
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--ink-blue);
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg) 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-list.active {
    transform: translateY(0);
  }

  .nav-item {
    margin: var(--space-sm) 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  :root {
    --space-xxl: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: var(--font-xl);
  }
}
