/* ============================================================
   OREO STUDIOS — INDUSTRIAL THEME
   Fonts: Bebas Neue (display) + Barlow (ui) + IBM Plex Mono
   Colors: black / orange (#ff4400) / off-white
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,700&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg:       #0b0b0b;
  --surface:  #141414;
  --surface2: #1b1b1b;
  --accent:   #ff4400;
  --fg:       #ede9e3;
  --muted:    #6e6e6e;
  --border:   #242424;
  --r:        4px;
  --nav-h:    58px;
  --sidebar-w:240px;

  --font-disp: 'Bebas Neue', 'Arial Black', Impact, sans-serif;
  --font-ui:   'Barlow', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --shadow: 0 4px 24px rgba(0,0,0,.55), 0 1px 6px rgba(0,0,0,.4);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font-ui);
  overflow-x: hidden;
  background-image: radial-gradient(ellipse 80% 40% at 50% 0%, #1a0800 0%, transparent 55%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0 0 .6rem; line-height: 1.1; }
ul { margin: 0; padding: 0; list-style: none; }

/* ===== UTIL ===== */
.muted        { color: var(--muted); }
.small        { font-size: .88rem; }
.center       { text-align: center; }
.mono         { font-family: var(--font-mono); }
.accent-text  { color: var(--accent); }

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.show { opacity: 1; transform: none; }

/* anchor offset */
.section, .hero { scroll-margin-top: 70px; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  padding: 0 24px;
  background: rgba(11,11,11,.97);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-text {
  font-family: var(--font-mono); font-weight: 700;
  font-size: .82rem; letter-spacing: .04em;
}
.brand-text .accent { color: var(--accent); }

.logo {
  width: 32px; height: 32px;
  object-fit: contain; border-radius: var(--r);
}

.nav nav { display: flex; gap: 0; align-items: center; flex: 1; justify-content: center; }
.nav nav a {
  font-family: var(--font-ui); font-size: .78rem; font-weight: 500;
  color: var(--muted); padding: 6px 11px;
  letter-spacing: .02em;
  transition: color .14s;
}
.nav nav a:hover { color: var(--fg); }
.nav nav a[aria-current="page"] { color: var(--fg); font-weight: 700; }

.nav .btn {
  font-family: var(--font-ui); font-size: .78rem; font-weight: 600;
  padding: 8px 16px; border-radius: var(--r);
  border: 1px solid var(--border);
  background: transparent; color: var(--fg);
  transition: border-color .14s, background .14s;
}
.nav .btn:hover { border-color: #404040; background: var(--surface); }
.nav .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav .btn.primary:hover { background: #ff5a18; }

/* LANG SWITCH */
.lang-switch {
  display: flex; gap: 1px;
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
}
.lang-opt {
  background: none; border: none;
  font-family: var(--font-mono); font-size: .65rem; font-weight: 700;
  letter-spacing: .1em; color: var(--muted);
  padding: 5px 9px; cursor: pointer;
  transition: background .14s, color .14s;
}
.lang-opt:hover { color: var(--fg); }
.lang-opt.active { background: var(--accent); color: #fff; }

/* HAMBURGER */
#menu {
  display: none; background: none;
  border: 1px solid var(--border); color: var(--fg);
  font-size: 18px; cursor: pointer;
  padding: 6px 10px; border-radius: var(--r);
  min-width: 40px; min-height: 40px;
  align-items: center; justify-content: center;
}
body.no-scroll { overflow: hidden; }
.menu-overlay { display: none; }

/* MOBILE DRAWER */
@media(max-width: 1199px) {
  body.with-sidebar { padding-left: 0 !important; }
  .nav { position: fixed !important; top: 0; left: 0; right: 0; z-index: 1100; }
  #menu { display: inline-flex !important; }

  .nav nav {
    display: none !important;
    position: fixed; top: var(--nav-h); left: 0; bottom: 0;
    width: min(82vw, 400px);
    padding: 16px;
    flex-direction: column; gap: 4px;
    background: #0e0e0e;
    border-right: 1px solid var(--border);
    z-index: 1101; overflow-y: auto;
  }
  .nav.open nav {
    display: flex !important;
    height: calc(100dvh - var(--nav-h));
    -webkit-overflow-scrolling: touch;
  }
  .nav.open nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    font-size: .88rem; width: 100%;
  }
  .nav.open .menu-overlay {
    display: block !important;
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.55); z-index: 1100;
  }
}

@media(min-width: 1200px) {
  #menu { display: none !important; }
  .nav nav { display: flex !important; }
  .nav { padding: 0 24px; }
}

/* ===== LAYOUT ===== */
main { padding-top: 24px; }
@media(max-width: 1199px) { main { padding-top: calc(var(--nav-h) + 16px); } }

/* ===== HERO ===== */
.hero {
  padding: 60px 24px;
  max-width: 1200px; margin: 0 auto;
}
.hero h1 {
  font-family: var(--font-disp);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: .92; letter-spacing: .01em;
  color: var(--fg); margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent); }
.hero .lead {
  max-width: 520px; font-size: 1rem; color: var(--muted);
  line-height: 1.7; margin-bottom: 28px;
}
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 12px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: var(--r);
  font-family: var(--font-ui); font-size: .8rem; font-weight: 600;
  letter-spacing: .03em; cursor: pointer;
  transition: all .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--accent); border: 1px solid var(--accent); color: #fff;
  box-shadow: 0 4px 16px rgba(255,68,0,.25);
}
.btn.primary:hover { background: #ff5a18; box-shadow: 0 6px 24px rgba(255,68,0,.4); }
.btn.ghost {
  background: transparent; border: 1px solid var(--border); color: var(--fg);
}
.btn.ghost:hover { border-color: #404040; background: var(--surface); }

/* ===== SECTION ===== */
.section {
  max-width: 1200px; margin: 0 auto; padding: 60px 24px;
}
.section h2 {
  font-family: var(--font-disp);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  letter-spacing: .01em; color: var(--fg);
  margin-bottom: 20px;
}
.section h2 .accent { color: var(--accent); }

/* S-LABEL (section label) */
.s-label {
  font-family: var(--font-mono); font-size: .65rem; font-weight: 700;
  color: var(--accent); letter-spacing: .22em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.s-label::before { content: ''; width: 18px; height: 2px; background: var(--accent); }

/* S-TITLE */
.s-title {
  font-family: var(--font-disp);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: .93; letter-spacing: .01em; color: var(--fg); margin-bottom: 14px;
}
.s-title .hl { color: var(--accent); }

/* S-SUB */
.s-sub {
  font-size: .93rem; color: var(--muted);
  max-width: 460px; line-height: 1.75; margin-bottom: 40px;
}

/* ===== GRID ===== */
.grid3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ===== CARD ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  padding: 24px; border-radius: var(--r);
  transition: border-left-color .2s, background .2s, transform .2s;
  position: relative;
}
.card:hover {
  border-left-color: var(--accent);
  background: var(--surface2);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

/* ===== GALLERY ===== */
.gallery .ph {
  height: 160px; border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
@keyframes shine { 0%{transform:translateX(-120%) rotate(20deg)} 100%{transform:translateX(120%) rotate(20deg)} }
.gallery .ph::after {
  content: ''; position: absolute; inset: -40% -20% auto auto;
  height: 200%; width: 40%; transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: shine 4s ease-in-out infinite;
}

/* ===== FACTS (stats) ===== */
.facts {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0;
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
  margin-top: 14px;
}
.facts div {
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 28px 20px; text-align: left;
  transition: background .2s;
}
.facts div:last-child { border-right: none; }
.facts div:hover { background: var(--surface2); }
.facts strong {
  font-family: var(--font-disp); font-size: 3rem;
  display: block; color: var(--accent);
  line-height: .9; margin-bottom: 10px;
}
.facts span {
  font-family: var(--font-mono); font-size: .68rem;
  color: var(--muted); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}

/* ===== CONTACT ===== */
.contact { text-align: left; }
.contact-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }

/* ===== FOOTER ===== */
.footer {
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: .7rem; color: #333;
}
.footer .acc { color: var(--accent); }

/* ===== GALLERY MEDIA ===== */
.imgcard .media {
  aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  position: relative;
}
.imgcard .thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgcard .media::after {
  content: ''; position: absolute; inset: -40% -20% auto auto;
  height: 200%; width: 40%;
  transform: rotate(20deg) translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  transition: transform .8s ease;
}
.imgcard:hover .media::after { transform: rotate(20deg) translateX(120%); }
.imgcard figcaption { margin-top: 10px; color: var(--fg); opacity: .8; font-size: .85rem; }

/* ===== TOOL CARD ===== */
.tool-card { display: flex; flex-direction: column; text-decoration: none; }
.tool-badge {
  margin-top: auto; display: inline-flex;
  font-family: var(--font-mono); font-size: .6rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(255,68,0,.3);
  padding: 3px 8px; border-radius: 2px; width: fit-content;
}
.tool-badge.new { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== NAV ACTIVE ===== */
.nav nav a[aria-current="page"] { color: var(--fg) !important; font-weight: 700; }

/* ===== PAGE FADE IN ===== */
@keyframes oe-fade-in { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
main { animation: oe-fade-in .45s ease both; }

/* ===== RESPONSIVE ===== */
@media(max-width: 720px) {
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: none; border-bottom: 1px solid var(--border); }
  .facts div:last-child { border-bottom: none; }
  .hero { padding-top: 40px; }
}

@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
