@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@300;400;600;700&family=Barlow:wght@300;400;500&display=swap');

:root {
  --red: #CC0000;
  --red-dark: #990000;
  --red-glow: rgba(204,0,0,0.18);
  --black: #080808;
  --black-surface: #111111;
  --black-card: #181818;
  --black-border: #2a2a2a;
  --white: #f0ece4;
  --white-dim: #a09a90;
  --white-muted: #5a5550;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  cursor: default;
}

/* ─── NOISE TEXTURE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  padding-top: env(safe-area-inset-top, 0px);
  min-height: calc(70px + env(safe-area-inset-top, 0px));
  background: #080808;
  border-bottom: 1px solid var(--black-border);
}

nav .nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

nav .nav-logo img {
  height: 36px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

nav ul a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

nav ul a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.25s;
}

nav ul a:hover { color: var(--white); }
nav ul a:hover::after { width: 100%; }
nav ul a.active { color: var(--red); }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.4rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--red);
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: transparent !important;
  color: var(--red) !important;
}

.nav-cta::after { display: none !important; }

/* ─── HAMBURGER ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2.2rem;
  border: 1px solid;
  transition: all 0.25s;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--red);
}

.btn-outline {
  background: transparent;
  border-color: var(--white-muted);
  color: var(--white-dim);
}

.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}

.btn-ghost:hover {
  background: var(--red);
  color: var(--white);
}

/* ─── SECTION HEADINGS ─── */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: var(--white);
}

.section-title span { color: var(--red); }

/* ─── DIVIDER ─── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--red);
  margin: 1.5rem 0;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--black-border);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

footer .footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

footer .footer-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-muted);
  text-decoration: none;
  transition: color 0.2s;
}

footer .footer-links a:hover { color: var(--red); }

footer .footer-copy {
  font-size: 0.75rem;
  color: var(--white-muted);
  width: 100%;
  text-align: center;
  border-top: 1px solid var(--black-border);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

/* ─── SOCIAL ICONS ─── */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--black-border);
  color: var(--white-muted);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s;
}

.social-links a:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ─── PAGE HEADER (inner pages) ─── */
.page-header {
  padding-top: calc(70px + env(safe-area-inset-top, 0));
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  background: var(--black-surface);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/bg-hero.jpg') center/cover no-repeat;
  opacity: 0.12;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--black) 0%, transparent 100%);
}

.page-header-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.page-header-desc {
  font-size: 1rem;
  color: var(--white);
  margin-top: 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.08em;
}

/* ─── LANG TOGGLE ─── */
.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid var(--black-border);
  overflow: hidden;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--white-muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.lang-btn:first-child {
  border-right: 1px solid var(--black-border);
}

.lang-btn:hover { color: var(--white); }

.lang-btn.lang-active {
  background: var(--red);
  color: var(--white);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav {
    padding: 0 1.5rem;
    padding-top: env(safe-area-inset-top, 0px);
    background: #080808;
  }

  .nav-toggle { display: flex; }

  nav ul {
    list-style: none;
    position: fixed;
    top: calc(70px + env(safe-area-inset-top, 0px));
    left: 0; right: 0;
    background: #080808;
    flex-direction: column;
    padding: 0 2rem;
    gap: 0;
    border-bottom: 1px solid var(--black-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s ease;
  }

  nav ul.open {
    max-height: 500px;
    padding: 1.5rem 2rem 2rem;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid var(--black-border);
    padding: 0.9rem 0;
  }

  nav ul li:last-child {
    border-bottom: none;
    padding-top: 1.2rem;
  }

  nav ul a {
    font-size: 1.1rem;
    display: block;
    width: 100%;
  }

  nav ul .lang-toggle {
    display: inline-flex;
  }

  footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    text-align: center;
  }

  footer .footer-links { flex-wrap: wrap; justify-content: center; }
}
