:root {
  --midnight-navy: #0E1A2B;
  --warm-ivory: #F6F1E8;
  --warm-ivory-rgb: 246, 241, 232;
  --sand: #D8C3A5;
  --charcoal: #2B2B2B;
  --muted-slate: #6E7681;
  --soft-gold: #C6A86A;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--warm-ivory);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-weight: 400;
}

/* Accessibility Focus States */
:focus { outline: none; }
:focus-visible { 
  outline: 2px solid var(--soft-gold); 
  outline-offset: 4px;
  border-radius: 2px;
}

::selection {
  background: var(--soft-gold);
  color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--midnight-navy);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a {
  color: var(--midnight-navy);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4vw;
}

/* Scroll Reveal base */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; transform: none; opacity: 1; }
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* SVG Logo Animation */
.logo-svg {
  width: auto;
  height: 24px;
  fill: var(--midnight-navy);
}

.logo-path {
  opacity: 0;
  animation: logoFadeIn 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-path:nth-child(1) { animation-delay: 0.1s; }
.logo-path:nth-child(2) { animation-delay: 0.2s; }
.logo-path:nth-child(3) { animation-delay: 0.3s; }
.logo-path:nth-child(4) { animation-delay: 0.4s; }
.logo-path:nth-child(5) { animation-delay: 0.5s; }

@keyframes logoFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-path { opacity: 1; animation: none; }
}

/* Header */
header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
  z-index: 100; background-color: rgba(var(--warm-ivory-rgb), 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14, 26, 43, 0.04);
  display: flex; align-items: center;
}

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

.logo a { display: flex; align-items: center; }

nav { display: flex; align-items: center; gap: 3rem; }
.nav-links { display: flex; gap: 2.5rem; }

.nav-links a {
  font-size: 0.85rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted-slate); position: relative; padding: 0.5rem 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background-color: var(--soft-gold); transition: var(--transition-smooth);
}
.nav-links a:hover, .nav-links a:active { color: var(--midnight-navy); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--midnight-navy); }

.lang-switcher button {
  background: none; border: 1px solid transparent; font-family: inherit;
  font-size: 0.75rem; font-weight: 600; color: var(--muted-slate);
  cursor: pointer; padding: 0.4rem 0.6rem; border-radius: 4px;
  transition: var(--transition-smooth);
}
.lang-switcher button.active {
  color: var(--warm-ivory); background-color: var(--midnight-navy);
}
.lang-switcher button:hover:not(.active) { color: var(--charcoal); border-color: rgba(14,26,43,0.1); }
.lang-switcher span { color: var(--sand); margin: 0 0.2rem; }

main { padding-top: var(--header-height); min-height: 80vh; }

/* Hero */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 4vw; padding: 4rem 0;
}

.label {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  color: var(--soft-gold); text-transform: uppercase; letter-spacing: 0.15em;
  margin-bottom: 2rem; position: relative; padding-left: 2.5rem;
}
.label::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 1.5rem; height: 1px;
  background-color: var(--soft-gold);
}

.hero-content h1 { font-size: clamp(2.8rem, 4.5vw, 5rem); margin-bottom: 2rem; line-height: 1.05; }
.hero-content p {
  font-size: clamp(1.1rem, 1.3vw, 1.25rem); color: var(--muted-slate);
  margin-bottom: 3.5rem; max-width: 520px; line-height: 1.6;
}

/* Button Component */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background-color: transparent; color: var(--midnight-navy);
  padding: 1.25rem 2.5rem; font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  border: 1px solid var(--midnight-navy); cursor: pointer;
  position: relative; overflow: hidden;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

.btn:hover, .btn:active {
  background-color: var(--midnight-navy);
  color: var(--warm-ivory);
}

.btn-secondary {
  border-color: rgba(14,26,43,0.2);
  color: var(--muted-slate);
}
.btn-secondary:hover {
  border-color: var(--midnight-navy);
  color: var(--midnight-navy);
  background-color: transparent;
}

/* Form Styles */
.form-group { margin-bottom: 2.5rem; position: relative; }
label {
  display: block; margin-bottom: 0.75rem; font-weight: 600;
  color: var(--midnight-navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em;
}
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 1rem 0; border: none; border-bottom: 1px solid rgba(14, 26, 43, 0.2);
  background-color: transparent; font-family: inherit; font-size: 1.15rem;
  color: var(--charcoal); transition: var(--transition-smooth); border-radius: 0;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--soft-gold); }
textarea { min-height: 140px; resize: vertical; }

.checkbox-group {
  display: flex; align-items: flex-start; gap: 1rem; margin: 3rem 0;
}
.checkbox-group input { margin-top: 0.35rem; width: 1.2rem; height: 1.2rem; accent-color: var(--midnight-navy); }
.checkbox-group label {
  font-weight: 400; color: var(--muted-slate); text-transform: none; letter-spacing: 0; font-size: 1.05rem;
}

/* Image Component (WebP Responsive) */
.hero-visual { width: 100%; height: 100%; min-height: 60vh; position: relative; }
.img-frame { position: relative; display: block; width: 100%; height: 100%; }
.img-frame picture, .img-frame img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 4px; display: block;
}
.img-frame::after {
  content: ''; position: absolute; top: 2rem; right: -2rem; bottom: -2rem; left: 2rem;
  border: 1px solid var(--sand); z-index: -1; transition: var(--transition-smooth);
}
.img-frame:hover::after { transform: translate(0.5rem, 0.5rem); border-color: var(--soft-gold); }

/* Copy Button / Obfuscated Email */
.email-reconstructed { font-weight: 500; font-size: 1.25rem; }
.copy-btn {
  margin-left: 1rem; font-size: 0.75rem; text-transform: uppercase;
  padding: 0.3rem 0.6rem; border: 1px solid rgba(14,26,43,0.2);
  background: transparent; cursor: pointer; border-radius: 3px;
  color: var(--muted-slate); transition: var(--transition-smooth);
}
.copy-btn:hover { border-color: var(--midnight-navy); color: var(--midnight-navy); }
.copy-btn.copied { background: #e0f2e9; color: #1e7046; border-color: #1e7046; }

/* Cookie Banner */
.cookie-banner {
  position: fixed; bottom: 2rem; left: 2rem; right: 2rem; max-width: 600px;
  background: #fff; padding: 2rem; box-shadow: 0 16px 48px rgba(14,26,43,0.1);
  border: 1px solid rgba(14,26,43,0.05); z-index: 9999; border-radius: 6px;
  opacity: 1; transition: opacity 0.4s ease;
}
.cookie-content h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.cookie-content p { font-size: 0.95rem; color: var(--muted-slate); margin-bottom: 2rem; }
.cookie-actions { display: flex; gap: 1rem; }

/* Sections */
.section { padding: 8rem 0; }
.section-alt { background-color: #fff; }

.section-header { margin-bottom: 5rem; }
.section-header h2 { font-size: clamp(2rem, 3vw, 3.5rem); max-width: 800px; }

.section-text { font-size: 1.15rem; color: var(--muted-slate); max-width: 800px; line-height: 1.7; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3vw; }

.card {
  padding: 3.5rem 3rem; background-color: #fff;
  border: 1px solid rgba(14, 26, 43, 0.08); height: 100%;
  transition: var(--transition-smooth); position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(14, 26, 43, 0.05); border-color: rgba(14, 26, 43, 0.15); }
.card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.card p { color: var(--muted-slate); font-size: 1.05rem; margin-bottom: 1.5rem; flex-grow: 1; line-height: 1.6; }
.card-link { margin-top: auto; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--midnight-navy); padding-bottom: 0.2rem; border-bottom: 1px solid currentcolor; }

/* FAQ Styles */
.faq-grid { display: grid; gap: 2rem; max-width: 900px; }
.faq-item { padding-bottom: 2rem; border-bottom: 1px solid rgba(14,26,43,0.1); }
.faq-item h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.faq-item p { color: var(--muted-slate); font-size: 1.1rem; line-height: 1.6; }

/* Footer */
footer { background-color: var(--midnight-navy); color: var(--warm-ivory); padding: 6rem 0 3rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4vw; margin-bottom: 5rem; }
.footer-brand h2 { font-size: 2rem; color: var(--warm-ivory); margin-bottom: 1.5rem; letter-spacing: 0.1em; }
.footer-brand p { color: rgba(246, 241, 232, 0.7); max-width: 350px; font-size: 1.05rem; }

.footer-links { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-links strong { color: var(--soft-gold); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.footer-links a { color: rgba(246, 241, 232, 0.8); font-size: 1rem; padding: 0.2rem 0; width: max-content; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--soft-gold); }

.footer-bottom {
  border-top: 1px solid rgba(246, 241, 232, 0.1); padding-top: 2rem;
  display: flex; justify-content: space-between; font-size: 0.85rem;
  color: rgba(246, 241, 232, 0.5); flex-wrap: wrap; gap: 2rem;
}
.footer-legal-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-legal-links a { color: rgba(246, 241, 232, 0.6); }
.footer-legal-links a:hover, .footer-legal-links a:focus-visible { color: var(--warm-ivory); }

/* General Pages */
.page-header { padding: 6rem 0 5rem; border-bottom: 1px solid rgba(14, 26, 43, 0.05); }
.page-header h1 { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 2rem; }
.page-header p { font-size: clamp(1.15rem, 1.5vw, 1.35rem); color: var(--muted-slate); max-width: 800px; line-height: 1.6; }

.content-body { max-width: 900px; margin: 0 auto; }
.content-body h2 { font-size: 2.2rem; margin: 4rem 0 1.5rem; }
.content-body p { margin-bottom: 1.5rem; font-size: 1.15rem; line-height: 1.7; color: var(--charcoal); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 6rem; }
.contact-info-block { margin-bottom: 3rem; }
.contact-info-block h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--soft-gold); margin-bottom: 0.5rem; }
.contact-info-block p { font-size: 1.15rem; color: var(--charcoal); }

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hero, .contact-grid, .grid-2 { grid-template-columns: 1fr; gap: 4rem; }
  .img-frame::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner { bottom: 1rem; left: 1rem; right: 1rem; padding: 1.5rem; }
}

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; gap: 3rem; }
  nav .nav-links { display: none; } /* Mobile menu implementation recommended if scope allows */
}
