@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --clr-bg: #F9F6F0;
  --clr-surface: #FFFFFF;
  --clr-surface-alt: #EBE3D5;
  --clr-text: #2C1A0E;
  --clr-text-light: #5A4A40;
  --clr-accent: #C4622D;
  --clr-accent-hover: #A85020;
  --clr-border: #DCD3C6;
  --clr-dark: #1E120A;
  --font-body: 'Mulish', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --radius: 4px;
  --shadow-sm: 0 2px 8px rgba(44, 26, 14, 0.05);
  --shadow-md: 0 8px 24px rgba(44, 26, 14, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--clr-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; margin-bottom: 2rem; }
}

p {
  margin-bottom: 1rem;
  color: var(--clr-text-light);
}

a {
  color: var(--clr-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--clr-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 0;
  }
}

.bg-light { background-color: var(--clr-surface); }
.section-dark { background-color: var(--clr-dark); color: var(--clr-bg); }
.section-dark h2, .section-dark h3 { color: var(--clr-bg); }
.section-dark p { color: #AFA59C; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: #FFF;
  background-color: var(--clr-accent);
  border: 1px solid var(--clr-accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--clr-accent-hover);
  border-color: var(--clr-accent-hover);
  color: #FFF;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-outline {
  background-color: transparent;
  color: var(--clr-text);
  border-color: var(--clr-border);
}

.btn-outline:hover {
  background-color: var(--clr-surface-alt);
  color: var(--clr-text);
  border-color: var(--clr-text-light);
}

.btn-block {
  display: flex;
  width: 100%;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--clr-bg);
  z-index: 100;
  transition: var(--transition);
}

.header.scrolled {
  background-color: rgba(249, 246, 240, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--clr-dark);
}

.logo:hover {
  color: var(--clr-accent);
}

.desktop-nav {
  display: none;
  gap: 2rem;
}

.nav-link {
  color: var(--clr-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--clr-accent);
}

.hidden-mobile {
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--clr-dark);
  transition: var(--transition);
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--clr-bg);
  padding-top: calc(var(--header-height) + 2rem);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99;
  visibility: hidden;
}

.mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
}

.mobile-link {
  font-size: 1.5rem;
  font-family: var(--font-heading);
}

@media (min-width: 768px) {
  .desktop-nav { display: flex; }
  .hidden-mobile { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(249, 246, 240, 0.95) 0%, rgba(249, 246, 240, 0.8) 50%, rgba(249, 246, 240, 0.2) 100%);
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 1;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  color: var(--clr-text);
  max-width: 500px;
}

@media (max-width: 767px) {
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(249, 246, 240, 0.9) 0%, rgba(249, 246, 240, 0.95) 100%);
  }
  .hero-content p {
    font-size: 1rem;
  }
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .split-layout {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
  .split-layout.reverse .split-text {
    order: 2;
  }
  .split-layout.reverse .split-image {
    order: 1;
  }
}

.split-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
}

.lead {
  font-size: 1.25rem;
  color: var(--clr-text);
  margin-bottom: 2rem;
  font-weight: 500;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 2rem;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--clr-accent);
}

.feature-list strong {
  display: block;
  font-size: 1.125rem;
  color: var(--clr-dark);
  margin-bottom: 0.25rem;
}

.feature-list span {
  display: block;
  font-size: 0.95rem;
}

.timeline {
  margin-top: 4rem;
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 1px;
  background-color: rgba(255,255,255,0.15);
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--clr-dark);
  border: 1px solid var(--clr-accent);
  color: var(--clr-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  z-index: 1;
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.format-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .format-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.format-card h4 {
  color: var(--clr-dark);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.image-grid .img-tall {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  height: 100%;
  object-fit: cover;
}

.image-grid .img-wide {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  height: 100%;
  object-fit: cover;
  align-self: end;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info strong {
  display: block;
  color: var(--clr-dark);
  font-size: 1.125rem;
}

.author-info span {
  font-size: 0.875rem;
}

.section-header {
  margin-bottom: 3rem;
  max-width: 600px;
}

.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--clr-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--clr-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--clr-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--clr-accent);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding-bottom: 1.5rem;
}

.section-cta {
  background-color: var(--clr-surface-alt);
}

.cta-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1000px;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.lead-form {
  background-color: var(--clr-surface);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--clr-dark);
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(196, 98, 45, 0.1);
}

.error-msg {
  display: none;
  color: #d32f2f;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  position: absolute;
}

.form-group.error input {
  border-color: #d32f2f;
}

.form-group.error .error-msg {
  display: block;
}

.form-legal {
  margin-top: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  position: relative;
}

.checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  min-width: 20px;
  height: 20px;
  background-color: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 3px;
  margin-right: 10px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.checkbox-label input:checked ~ .checkbox-custom {
  background-color: var(--clr-accent);
  border-color: var(--clr-accent);
}

.checkbox-label input:checked ~ .checkbox-custom::after {
  content: '';
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.checkbox-text {
  font-size: 0.85rem;
  color: var(--clr-text-light);
}

.footer {
  background-color: var(--clr-dark);
  color: var(--clr-surface-alt);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand .logo {
  color: var(--clr-bg);
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  color: #AFA59C;
}

.footer-links h4 {
  color: var(--clr-bg);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #AFA59C;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--clr-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.legal-info p {
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  color: #AFA59C;
}

.copyright {
  font-size: 0.85rem;
  color: #AFA59C;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--clr-surface);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
  z-index: 1000;
  padding: 1rem 0;
  border-top: 1px solid var(--clr-border);
}

.cookie-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.cookie-banner p {
  margin-bottom: 0;
  font-size: 0.85rem;
  text-align: center;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .cookie-container {
    flex-direction: row;
    justify-content: space-between;
  }
  .cookie-banner p {
    text-align: left;
    max-width: 70%;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-page-header {
  padding: 10rem 0 4rem;
  background-color: var(--clr-surface-alt);
  text-align: center;
}

.legal-content {
  padding: 4rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--clr-text-light);
}

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-content {
  background-color: var(--clr-surface);
  padding: 4rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 600px;
  width: 100%;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(196, 98, 45, 0.1);
  color: var(--clr-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
}

.success-content h1 {
  margin-bottom: 1rem;
}

.success-content p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
}
