:root {
  --primary: #59444F;
  --primary-dark: #3D2F37;
  --primary-light: #7A5F6C;
  --accent: #C9A87C;
  --accent-light: #E8D5BC;
  --bg-cream: #F5F0EB;
  --bg-light: #FAF7F4;
  --bg-dark: #2E2329;
  --text-dark: #1F181C;
  --text-light: #F5F0EB;
  --text-muted: #5C4F55;
  --border: #D9CEC8;
  --shadow: 0 8px 32px rgba(89, 68, 79, 0.12);
  --radius: 8px;
  --transition: 0.3s ease;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-light);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  z-index: 10000;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 240, 235, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img,
.logo-link svg {
  height: 40px;
  width: auto;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary);
}

.menu-toggle i {
  font-size: 1.75rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dark) center/cover no-repeat;
  margin-top: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 35, 41, 0.82) 0%, rgba(89, 68, 79, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--header-height) + 2rem) 1.25rem 3rem;
  max-width: 800px;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.hero p {
  color: var(--accent-light);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-dark);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-outline:hover {
  background: var(--text-light);
  color: var(--primary-dark);
}

.btn-dark {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

.btn-dark:hover {
  background: var(--primary-dark);
}

.disclaimer-bar {
  background: var(--primary-dark);
  color: var(--accent-light);
  font-size: 0.8125rem;
  padding: 0.65rem 0;
  text-align: center;
  line-height: 1.5;
}

.disclaimer-bar p {
  margin: 0;
}

section {
  padding: 4.5rem 0;
}

.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section-cream {
  background: var(--bg-cream);
  color: var(--text-dark);
}

.section-primary {
  background: var(--primary);
  color: var(--text-light);
}

.section-primary h2,
.section-primary h3 {
  color: var(--text-light);
}

.section-primary p,
.section-primary li {
  color: var(--accent-light);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section-dark h2,
.section-dark h3 {
  color: var(--text-light);
}

.section-dark p,
.section-dark li {
  color: #D4C8CE;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section-primary .section-header p {
  color: var(--accent-light);
}

.icon-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.icon-heading i {
  font-size: 1.75rem;
  color: var(--accent);
  flex-shrink: 0;
}

.section-primary .icon-heading i {
  color: var(--accent-light);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: 100%;
}

.section-dark .card,
.section-primary .card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
}

.section-dark .card h3,
.section-primary .card h3 {
  color: var(--text-light);
}

.card-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.section-primary .card-icon {
  color: var(--accent-light);
}

.image-block {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-block img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  min-width: 120px;
}

.stat-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}

.section-light .stat-item strong {
  color: var(--primary);
}

.stat-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-primary .stat-item span {
  color: var(--accent-light);
}

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 3px solid var(--accent);
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.45rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg-cream);
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.5rem 0;
}

.check-list i {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.section-primary .check-list i,
.section-dark .check-list i {
  color: var(--accent);
}

.numbered-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.numbered-steps li {
  counter-increment: step;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.section-dark .numbered-steps li,
.section-primary .numbered-steps li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

.numbered-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.section-dark .faq-list details,
.section-primary .faq-list details {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.faq-list summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
}

.section-dark .faq-list summary,
.section-primary .faq-list summary {
  color: var(--text-light);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list details[open] summary {
  border-bottom: 1px solid var(--border);
  color: var(--primary);
}

.faq-answer {
  padding: 1rem 1.25rem 1.25rem;
  color: var(--text-muted);
}

.section-dark .faq-answer {
  color: #D4C8CE;
}

.events-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.events-table th,
.events-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.events-table th {
  background: var(--primary);
  color: var(--text-light);
  font-weight: 600;
}

.events-table tr:last-child td {
  border-bottom: none;
}

.events-table tr:nth-child(even) td {
  background: var(--bg-cream);
}

.section-primary .events-table,
.section-dark .events-table {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.section-primary .events-table td,
.section-dark .events-table td {
  color: var(--text-light);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.section-primary .events-table th,
.section-dark .events-table th {
  background: var(--primary-dark);
  color: var(--text-light);
}

.section-primary .events-table tr:nth-child(even) td,
.section-dark .events-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.12);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.tag-list li {
  background: var(--primary);
  color: var(--text-light);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin: 0;
}

.quote-block {
  border-left: 4px solid var(--accent);
  padding: 1.5rem 1.75rem;
  background: rgba(201, 168, 124, 0.15);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  margin: 1.5rem 0;
}

.split-feature {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  color: var(--text-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.checkbox-field input {
  width: auto;
  margin-top: 0.35rem;
}

.checkbox-field label {
  font-weight: 400;
  font-size: 0.9rem;
}

.contact-info-card {
  background: var(--primary);
  color: var(--text-light);
  padding: 2rem;
  border-radius: var(--radius);
}

.contact-info-card h3 {
  color: var(--text-light);
}

.contact-info-card a {
  color: var(--accent-light);
}

.contact-info-card a:hover {
  color: #fff;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.contact-info-item i {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2rem;
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

.page-hero {
  padding: calc(var(--header-height) + 3rem) 0 3rem;
  background: var(--primary);
  color: var(--text-light);
  text-align: center;
}

.page-hero h1 {
  color: var(--text-light);
}

.page-hero p {
  color: var(--accent-light);
  max-width: 640px;
  margin: 0 auto;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.policy-content h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.success-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 2rem) 1.25rem 3rem;
}

.success-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.site-footer {
  background: var(--bg-dark);
  color: #C4B8BE;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: #C4B8BE;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 3px solid var(--primary);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 1.25rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.cookie-banner p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-settings {
  display: none;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.cookie-settings.open {
  display: block;
}

.cookie-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.cookie-toggle label {
  font-weight: 600;
  color: var(--text-dark);
}

.cookie-toggle small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 26px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.cookie-banner .btn-outline {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}

.cookie-banner .btn-outline:hover {
  background: var(--primary);
  color: var(--text-light);
}

.section-primary a:not(.btn) {
  color: var(--accent-light);
  text-decoration: underline;
}

.section-dark a:not(.btn) {
  color: var(--accent);
}

@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split-feature { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-cream);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid var(--border);
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
  }

  .grid-2,
  .grid-3,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  section { padding: 3rem 0; }

  .events-table {
    font-size: 0.9rem;
  }

  .events-table th,
  .events-table td {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .hero-content {
    padding-top: calc(var(--header-height) + 1.5rem);
  }

  .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-actions .btn {
    width: 100%;
  }

  .image-block img {
    height: 200px;
  }

  .numbered-steps li {
    padding-left: 3.5rem;
  }
}

@media (max-width: 320px) {
  html { font-size: 93.75%; }

  .container {
    padding: 0 0.75rem;
  }

  .header-inner {
    gap: 0.5rem;
  }

  .logo-link img,
  .logo-link svg {
    height: 32px;
  }
}
