/* ============================================
   EURO FACILITY — Design tokens & base styles
   ============================================ */

:root {
  --black: #1a1a1a;
  --black-soft: #252525;
  --orange: #FF6600;
  --orange-dark: #e05a00;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f3f3f3;
  --gray-300: #d8d8d8;
  --gray-500: #888888;
  --gray-700: #555555;
  --gray-900: #2a2a2a;

  --font-display: 'Archivo Black', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --container: 1140px;
  --radius: 0px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: #fcfcfb;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Focus visibility (accessibility) ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--gray-100);
  backdrop-filter: blur(6px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-logo img { height: 48px; transition: transform .4s ease; }
.nav-logo:hover img { transform: rotate(-4deg) scale(1.06); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.2px;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 20px;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.3px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--orange-dark); }

.lang-switch {
  position: relative;
  list-style: none;
}
.lang-switch summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  border: 1.5px solid var(--black);
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--black);
  margin-left: 2px;
}
.lang-switch[open] summary { background: var(--black); color: #fff; }
.lang-switch[open] summary::after { border-top-color: #fff; }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--black);
  min-width: 130px;
  z-index: 200;
}
.lang-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}
.lang-menu a:hover { background: var(--gray-50); color: var(--orange); }
.lang-menu a.active { color: var(--orange); }
@media (max-width: 860px) {
  .lang-switch-wrap { order: -1; }
  .lang-switch { margin: 14px 24px; align-self: flex-start; }
  .lang-menu { right: auto; left: 24px; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  display: block;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--gray-100);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 640px; overflow: visible; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 16px 24px; text-align: center; }
  .nav-toggle { display: flex; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--black);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  animation: btnShimmer 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btnShimmer { 0% { left: -60%; } 45%,100% { left: 130%; } }
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--black);
}
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}
.btn-outline-dark {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
  border-width: 2.5px;
}
.btn-outline-dark:hover {
  background: var(--black);
  color: var(--white);
}

/* ===== SCROLL REVEAL ===== */
/* Default: fully visible (no-JS / reduced-motion safe).
   JS adds .js-reveal to <html> and then handles the animation. */
.reveal {
  opacity: 1;
  transform: none;
}
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(.2,.8,.2,1), transform 0.6s cubic-bezier(.2,.8,.2,1);
}
html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PAGE LOAD TRANSITION
   ============================================ */
html.preload, html.preload body { overflow: hidden; }
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* Loader: EF monogram + barre orange */
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.loader-ef {
  font-family: var(--font-display);
  font-size: 52px;
  color: var(--white);
  letter-spacing: -2px;
  animation: loaderEFPop 0.5s cubic-bezier(.34,1.56,.64,1) both;
}
.loader-ef span { color: var(--orange); }
@keyframes loaderEFPop {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}
.loader-bar-wrap {
  width: 80px;
  height: 3px;
  background: #333;
  overflow: hidden;
  border-radius: 2px;
}
.loader-bar {
  height: 100%;
  background: var(--orange);
  border-radius: 2px;
  animation: loaderFill 0.9s cubic-bezier(.4,0,.2,1) 0.1s forwards;
  width: 0;
}
@keyframes loaderFill { to { width: 100%; } }

body.page-enter {
  animation: pageFadeIn 0.5s ease both;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader { display: none !important; }
}

/* ============================================
   BUTTON RIPPLE + PRESS EFFECT
   ============================================ */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn:active { transform: scale(0.97) !important; }
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
  z-index: 0;
}
.btn-outline .ripple,
.btn-outline-dark .ripple { background: rgba(255,102,0,0.35); }
@keyframes rippleAnim {
  to { transform: scale(2.8); opacity: 0; }
}

/* ============================================
   CARD TILT / LIFT ON HOVER (generic helper)
   ============================================ */
.lift-hover {
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease;
}
.lift-hover:hover {
  transform: translateY(-6px);
}

/* ============================================
   NAV SCROLL STATE
   ============================================ */
.nav {
  transition: box-shadow 0.3s ease;
}
.nav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ============================================
   NUMBER POP-IN (hero trust stats)
   ============================================ */
html.js-reveal .hero-trust strong {
  display: inline-block;
  animation: popIn 0.5s cubic-bezier(.34,1.56,.64,1) both;
  animation-delay: 0.3s;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}


/* ============================================
   SECTION LABEL (eyebrow)
   ============================================ */
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--orange);
  margin-right: 8px;
  vertical-align: middle;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid #333;
}
.footer-brand .logo-card { margin-bottom: 16px; }
.footer-brand .logo-card img { height: 46px; }
.footer-brand p {
  font-size: 14px;
  color: var(--gray-500);
  max-width: 280px;
  line-height: 1.6;
}
.footer-brand .footer-tagline {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: var(--white);
  max-width: 280px;
  line-height: 1.3;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--gray-300);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 12.5px;
  color: var(--gray-500);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--gray-300); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--orange); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
