/* ===== ERLUS — custom styles on top of Tailwind ===== */

/* Self-hosted Inter so the site never depends on the Google Fonts stylesheet loading */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZg.ttf) format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuI6fMZg.ttf) format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuGKYMZg.ttf) format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuFuYMZg.ttf) format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuDyYMZg.ttf) format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 900; font-display: swap; src: url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuBWYMZg.ttf) format("truetype"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 800; font-display: swap; src: url(https://fonts.gstatic.com/s/inter/v20/UcCM3FwrK3iLTcvneQg7Ca725JhhKnNqk4j1ebLhAm8SrXTcWdxhjQ.ttf) format("truetype"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 900; font-display: swap; src: url(https://fonts.gstatic.com/s/inter/v20/UcCM3FwrK3iLTcvneQg7Ca725JhhKnNqk4j1ebLhAm8SrXTccNxhjQ.ttf) format("truetype"); }

:root {
  --brand: #e5322a;          /* ERLUS red */
  --brand-dark: #c62822;
  --brand-orange: #f26b2b;   /* gradient accent */
  --terra: #d1452f;
  --clay: #b23a1e;
  --sand: #f1f2f4;           /* cool light grey */
  --cream: #ffffff;          /* clean white page */
  --cream-2: #f5f6f8;
  --ink: #17181a;            /* near-black */
  --ink-soft: #4a4d52;
  --line: #e6e7ea;
}

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
/* on the products page an extra sticky sub-nav sits under the header */
.has-subnav [id] { scroll-margin-top: 128px; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.font-serif-display { font-family: "Inter", system-ui, sans-serif; font-weight: 800; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--muted { color: var(--clay); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 10px;
  font-weight: 700; font-size: .98rem; line-height: 1;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer; border: 1px solid transparent;
}
.btn svg { transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 12px 30px -12px rgba(229,50,42,.6);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(229,50,42,.7); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -18px rgba(0,0,0,.4); }
/* translucent dark button used over hero imagery */
.btn-hero-dark {
  background: rgba(23,24,26,.38); color: #fff;
  border-color: rgba(255,255,255,.4); backdrop-filter: blur(8px);
}
.btn-hero-dark:hover { background: rgba(23,24,26,.55); transform: translateY(-2px); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  transition: box-shadow .3s ease;
}
.site-header.scrolled {
  box-shadow: 0 6px 22px -12px rgba(0,0,0,.22);
}
.nav-link {
  position: relative; font-weight: 500; font-size: .96rem; color: var(--ink-soft);
  padding: .35rem 0; transition: color .2s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--brand); transition: width .28s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--brand); }
.nav-link.active::after { width: 100%; }

/* Desktop dropdown menus */
.nav-item { position: relative; }
.nav-parent { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }
.nav-parent .caret { width: 11px; height: 11px; transition: transform .2s ease; }
.nav-item:hover .caret,
.nav-item:focus-within .caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 232px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 26px 55px -22px rgba(0,0,0,.28);
  padding: .5rem; z-index: 70;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.nav-dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(6px);
}
.nav-dropdown a {
  display: block; padding: .6rem .85rem; border-radius: 9px;
  font-size: .92rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-dropdown a:hover { background: var(--cream-2); color: var(--brand); }

/* Mobile menu */
.mobile-menu { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.mobile-menu.open { max-height: 88vh; overflow-y: auto; }
.mnav-top { padding: .8rem 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.mnav-sub {
  padding: .55rem 0 .55rem 1rem; font-size: .92rem; color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.mnav-group-label {
  padding: .8rem 0 .3rem; font-weight: 700; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
}

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  will-change: transform;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,.14) 0%, rgba(10,10,12,0) 26%),
    linear-gradient(0deg, rgba(10,10,12,.42) 0%, rgba(10,10,12,.1) 46%, rgba(10,10,12,0) 68%);
}
.hero__content { position: relative; z-index: 2; padding-bottom: 4.5rem; padding-top: 5rem; }

/* Two-tone heavy hero headline */
.hero-title {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 900; font-style: normal;
  letter-spacing: -0.03em; line-height: .95;
  text-transform: none;
}
.accent-grad {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-orange) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Frosted glass sub box over hero */
.hero-sub-box {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.32);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 1.1rem 1.35rem;
}

/* Hero carousel */
.hero-swiper { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-swiper .swiper-slide { position: relative; }
.hero-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-swiper .swiper-pagination { bottom: 1.6rem !important; }
.hero .swiper-pagination-bullet { background: #fff; opacity: .45; }
.hero .swiper-pagination-bullet-active { background: #fff; opacity: 1; width: 26px; border-radius: 5px; }

/* Model card */
.model-num {
  font-family: "Inter", sans-serif; font-weight: 800; font-size: .8rem;
  letter-spacing: .12em; color: var(--brand);
}

/* ---- Section eyebrow line ---- */
.rule { height: 1px; background: var(--line); border: 0; }

/* ---- Cards ---- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -32px rgba(60,30,15,.4); }
.card__media { overflow: hidden; }
.card__media img { transition: transform .7s cubic-bezier(.2,.7,.2,1); width: 100%; height: 100%; object-fit: cover; }
.card:hover .card__media img { transform: scale(1.06); }

/* Feature tile with overlay text */
.tile { position: relative; border-radius: 22px; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.05); }
.tile__grad { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,12,8,.82) 0%, rgba(20,12,8,.15) 55%, rgba(20,12,8,0) 100%); }
.tile__body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem; }

/* ---- Stat ---- */
.stat-num { font-family: "Inter", sans-serif; font-weight: 900; font-style: italic; color: var(--brand); line-height: 1; letter-spacing: -.02em; }

/* ---- Reveal animations (fallback visible) ---- */
.reveal { opacity: 0; transform: translateY(28px); }
.gsap-ready .reveal { opacity: 0; }
/* If JS/GSAP unavailable, ensure content shows */
html:not(.gsap-ready) .reveal { opacity: 1; transform: none; }

/* ---- Marquee ---- */
.marquee { display: flex; gap: 3.5rem; white-space: nowrap; animation: marquee 26s linear infinite; }
.marquee span { font-family: "Inter", sans-serif; font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--clay); opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Swiper tweaks ---- */
.swiper { overflow: visible; }
.swiper-slide { height: auto; }
.gallery-swiper .swiper-slide { border-radius: 20px; overflow: hidden; }
.swiper-pagination-bullet { background: var(--clay); opacity: .35; }
.swiper-pagination-bullet-active { background: var(--brand); opacity: 1; }

/* ---- Forms ---- */
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; margin-top: .4rem; padding: .85rem 1rem; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(229,50,42,.14);
}
.form-success {
  display: none; align-items: center; gap: .75rem;
  background: #eef7ee; border: 1px solid #cfe6cf; color: #256a2b;
  padding: 1rem 1.2rem; border-radius: 14px; font-weight: 500;
}
.form-success.show { display: flex; }

/* ---- Footer ---- */
.site-footer a { transition: color .2s ease; }
.site-footer a:hover { color: var(--brand); }

/* ---- Accent underline for headings ---- */
.uline { position: relative; display: inline-block; }
.uline::after {
  content: ""; position: absolute; left: 0; bottom: .06em; height: .28em; width: 100%;
  background: rgba(229,50,42,.20); z-index: -1; border-radius: 2px;
}

/* ---- Textured section ---- */
.bg-sand { background: var(--sand); }
.bg-cream2 { background: var(--cream-2); }
.section { padding-top: clamp(4rem, 8vw, 7.5rem); padding-bottom: clamp(4rem, 8vw, 7.5rem); }

/* Small helper */
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--brand); }
.link-arrow svg { transition: transform .25s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- Language switcher ---- */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  font-weight: 600; font-size: .9rem; color: var(--ink-soft);
  padding: .4rem .55rem; border-radius: 9px; border: 1px solid var(--line);
  cursor: pointer; transition: border-color .2s ease, color .2s ease;
}
.lang-btn:hover { color: var(--ink); border-color: var(--ink-soft); }
.lang-btn .caret { width: 11px; height: 11px; transition: transform .2s ease; }
.lang-switch:hover .caret, .lang-switch:focus-within .caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: 100%; right: 0; transform: translateY(10px);
  min-width: 150px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 26px 55px -22px rgba(0,0,0,.28);
  padding: .4rem; z-index: 70;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.lang-switch:hover .lang-menu, .lang-switch:focus-within .lang-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(6px);
}
.lang-menu a {
  display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem;
  border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  transition: background .15s ease, color .15s ease;
}
.lang-menu a:hover { background: var(--cream-2); color: var(--brand); }
.lang-menu a.active { color: var(--brand); font-weight: 700; }
.lang-menu a .flag { font-size: .72rem; font-weight: 800; letter-spacing: .06em; opacity: .55; }

.lang-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; padding: .5rem .7rem; border-radius: 9px;
  border: 1px solid var(--line); font-weight: 700; font-size: .82rem;
  color: var(--ink-soft);
}
.lang-pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---- News / press cards ---- */
.news-date {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
}
.news-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft);
  background: var(--sand); border-radius: 999px; padding: .28rem .7rem;
}

/* ---- Contact form tabs ---- */
.tabbar { display: inline-flex; gap: .35rem; background: var(--sand); padding: .35rem; border-radius: 14px; }
.tab-btn {
  border: 0; background: transparent; cursor: pointer;
  padding: .7rem 1.2rem; border-radius: 10px; font-weight: 700; font-size: .95rem;
  color: var(--ink-soft); transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.tab-btn.active { background: #fff; color: var(--brand); box-shadow: 0 8px 20px -12px rgba(0,0,0,.25); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Spec / technical data table ---- */
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table caption { text-align: left; font-weight: 800; font-size: 1.05rem; padding: 0 0 .6rem; color: var(--ink); }
.spec-table th, .spec-table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.spec-table thead th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.spec-table tbody th { font-weight: 600; color: var(--ink); }
.spec-table tbody tr:hover { background: var(--cream-2); }
.spec-table td { color: var(--ink-soft); }

/* ---- Legal / accessibility prose ---- */
.prose-legal { max-width: 800px; }
.prose-legal h2 { font-size: 1.5rem; margin-top: 2.6rem; }
.prose-legal h3 { font-size: 1.15rem; margin-top: 1.8rem; }
.prose-legal p, .prose-legal li { color: var(--ink-soft); line-height: 1.7; margin-top: .9rem; }
.prose-legal ul { list-style: disc; padding-left: 1.4rem; }
.prose-legal a { color: var(--brand); text-decoration: underline; }
.prose-legal strong { color: var(--ink); }

/* ---- Inner page hero (shared) ---- */
.page-hero { position: relative; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,12,8,.82), rgba(20,12,8,.35)); }
.page-hero__body { position: relative; z-index: 10; }

@media (max-width: 640px) {
  .hero { min-height: 88vh; }
}
