/* ==========================================================================
   cFabe — Shared Design System
   Primary Navy:     #1B3564
   Navy Hover:       #2A4A7F
   Navy Deep:        #0F2240
   Gold Accent:      #C4A265
   Cream Background: #FAF9F6
   ========================================================================== */

:root {
  --navy: #1B3564;
  --navy-hover: #2A4A7F;
  --navy-deep: #0F2240;
  --navy-ghost: rgba(27,53,100,0.06);
  --gold: #C4A265;
  --gold-light: #D4B87A;
  --teal: #0E7C7B;
  --cream: #FAF9F6;
  --cream-dark: #F0EDE8;
  --white: #FFFFFF;
  --text: #2D2D2D;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E2DC;
  --shadow-sm: 0 1px 3px rgba(27,53,100,0.06);
  --shadow-md: 0 4px 20px rgba(27,53,100,0.08);
  --shadow-lg: 0 12px 40px rgba(27,53,100,0.12);
  --shadow-xl: 0 20px 60px rgba(27,53,100,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); color: var(--text); background: var(--cream); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; top: -100%; left: 16px; background: var(--navy); color: var(--white);
  padding: 12px 24px; border-radius: var(--radius); z-index: 10000; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 36px; border-radius: 60px; font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em; transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 4px 16px rgba(27,53,100,0.25); }
.btn-primary:hover { background: var(--navy-hover); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(27,53,100,0.3); }
.btn-secondary { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--white); box-shadow: 0 4px 16px rgba(196,162,101,0.3); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--navy); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.btn-white:hover { background: var(--cream); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.35); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: var(--white); box-shadow: 0 4px 16px rgba(14,124,123,0.25); }
.btn-teal:hover { background: #0a9695; transform: translateY(-2px); }
.btn-sm { padding: 10px 24px; font-size: 0.85rem; }
.btn-lg { padding: 20px 48px; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--navy-ghost);
  border-color: var(--navy);
  color: var(--navy);
}
.cta-banner-inner {
  position: relative;
  z-index: 1;
}
.cta-banner .section-title,
.cta-banner p {
  color: var(--white);
}
.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.7;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-accent {
  color: var(--gold);
  font-style: italic;
}
.hero-badge-teal {
  border-color: rgba(14, 124, 123, 0.25);
  color: #0fb5b4;
}

/* === NAVIGATION === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,249,246,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); transition: all var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 40px; width: auto; }
.footer-logo-img { height: 34px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--transition); position: relative;
  padding: 8px 20px; border-radius: 60px;
}
.nav-links a::after { display: none; }
.nav-links a:hover { color: var(--navy); background: var(--navy-ghost); }
.nav-links a.active {
  color: var(--navy); font-weight: 600; background: var(--navy-ghost);
}
.nav-utils { display: flex; align-items: center; gap: 8px; }
.nav-util-btn {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition); position: relative; cursor: pointer;
  background: transparent; border: none; font-family: var(--font-sans);
}
.nav-util-btn:hover { color: var(--navy); background: var(--navy-ghost); }
.nav-util-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.nav-util-btn .badge {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px;
  background: var(--gold); color: var(--white); font-size: 0.65rem; font-weight: 700;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.nav-lang-select {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 1.5px solid var(--border); border-radius: 60px;
  padding: 6px 28px 6px 12px; font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: all var(--transition);
  font-family: var(--font-sans);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.nav-lang-select:hover { border-color: var(--navy); color: var(--navy); }
.nav-util-divider {
  width: 1px; height: 24px; background: var(--border); margin: 0 4px;
}
/* === LANGUAGE SWITCHER === */
.lang-switch { display: flex; align-items: center; gap: 1px; margin-right: 4px; }
.lang-opt {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--text-light); padding: 5px 7px; border-radius: 6px;
  transition: all var(--transition);
}
.lang-opt:hover { color: var(--navy); background: var(--navy-ghost); }
.lang-opt.active { color: var(--navy); background: var(--navy-ghost); }
.lang-sep { color: var(--border); font-size: 0.7rem; }
@media (max-width: 600px) {
  .lang-opt { padding: 4px 5px; font-size: 0.66rem; }
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; padding: 4px 0; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--navy); border-radius: 2px; transition: all var(--transition); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--cream);
    padding: 16px 24px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); gap: 4px;
  }
  .nav-links.open a { padding: 12px 20px; width: 100%; }
  .nav-toggle { display: flex; }
  .nav-lang-select { display: none; }
  .nav-util-divider { display: none; }
}

/* === SECTION HEADERS === */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 16px;
}
.section-label::before, .section-label::after { content: ''; width: 24px; height: 1px; background: var(--gold); }
.section-title {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; color: var(--navy-deep); line-height: 1.2; margin-bottom: 16px;
}
.section-sub { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08);
  color: var(--gold); padding: 8px 20px; border-radius: 60px; font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(196,162,101,0.2);
}
.hero-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* === CTA BANNER === */
.cta-banner {
  padding: 80px 0; background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-hover) 100%);
  text-align: center; color: var(--white); position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2l4 3.5-4 3.5z'/%3E%3C/g%3E%3C/svg%3E") repeat;
}
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* === FOOTER === */
.footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 300px; margin-bottom: 20px; }
.footer-legal {
  font-size: 0.8rem; line-height: 1.75; color: rgba(255,255,255,0.55);
  max-width: 300px; margin-top: 16px;
}
.footer-legal a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.footer-legal a:hover { color: var(--gold); }
.footer-legal .footer-vat { color: rgba(255,255,255,0.4); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); }
.footer-social svg { width: 16px; height: 16px; fill: white; }
.footer-col h4 { font-family: var(--font-serif); font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.85rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.8rem;
}

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1/-1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* === ANIMATIONS === */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-d1 { transition-delay: 0.1s; }
.fade-in-d2 { transition-delay: 0.2s; }
.fade-in-d3 { transition-delay: 0.3s; }
.fade-in-d4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .fade-in, .process-step { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
