/* ============================================================
   shared.css – OLE Technologies design system
   ============================================================ */

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

:root {
  --ink:    #0D0F14;
  --canvas: #F5F3EE;
  --paper:  #FFFFFF;
  --volt:   #C6FF00;
  --slate:  #3A3F4B;
  --muted:  #8A8F99;
  --border: #E2DFD8;
  --f-display: 'DM Serif Display', serif;
  --f-body:    'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--f-body); background: var(--canvas); color: var(--ink); font-size: 16px; line-height: 1.6; padding-top: 68px; }

/* ── TYPOGRAPHY ── */
h1 { font-family: var(--f-display); font-size: clamp(2.4rem,5vw,3.8rem); line-height: 1.1; color: var(--ink); }
h1 em { color: var(--slate); font-style: italic; }
h2 { font-family: var(--f-display); font-size: clamp(1.8rem,3.5vw,2.8rem); line-height: 1.15; color: var(--ink); }
h2 span { color: var(--slate); font-style: italic; }
h3 { font-size: 1.1rem; font-weight: 600; }

.eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 16px; margin-top: 14px; max-width: 520px; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 8px; font-family: var(--f-body); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: .2s; letter-spacing: .02em; }
.btn-primary { background: var(--ink); color: var(--volt); }
.btn-primary:hover { background: var(--slate); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--ink); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 68px;
  background: rgba(245,243,238,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.logo-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 38px; height: 38px; background: var(--ink); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon svg { width: 22px; height: 22px; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--f-body); font-weight: 700; font-size: 15px; letter-spacing: .03em; color: var(--ink); }
.logo-tag  { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links > li { position: relative; }
.nav-links a { text-decoration: none; color: var(--slate); font-size: 14px; font-weight: 500; letter-spacing: .02em; transition: color .2s; display: flex; align-items: center; gap: 4px; }
.nav-links a:hover, .nav-links a.nav-active { color: var(--ink); }
.nav-cta { background: var(--ink) !important; color: var(--volt) !important; padding: 8px 20px; border-radius: 6px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--slate) !important; }

/* Dropdown */
.nav-has-dd { position: relative; }
.dd-arrow { font-size: 10px; transition: transform .2s; display: inline-block; }
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 14px); left: -16px;
  background: var(--paper); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  list-style: none; min-width: 280px; padding: 8px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.nav-has-dd:hover .nav-dropdown,
.nav-has-dd:focus-within .nav-dropdown {
  display: block; opacity: 1; transform: translateY(0); pointer-events: all;
}
.nav-has-dd:hover .dd-arrow { transform: rotate(180deg); }
.nav-dropdown li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; font-size: 13.5px; color: var(--slate);
  transition: background .15s, color .15s; white-space: nowrap;
}
.nav-dropdown li a:hover { background: var(--canvas); color: var(--ink); }
.dd-icon { font-size: 16px; width: 28px; text-align: center; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ── FOOTER ── */
footer { background: var(--ink); color: #aaa; padding: 60px 5vw 32px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; max-width: 1200px; margin: 0 auto 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand p { font-size: 14px; color: #666; line-height: 1.7; margin-top: 16px; max-width: 260px; }
.footer-col h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #fff; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: #666; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--volt); }
.footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: #444; }
.footer-volt { color: var(--volt); }

/* ── FADE ANIMATION ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.fade-up.visible { opacity: 1; transform: none; }

/* ── SECTION HELPERS ── */
.section-wrap { max-width: 1200px; margin: 0 auto; }
.section-pad { padding: 90px 5vw; }
.section-pad-dark { padding: 90px 5vw; background: var(--ink); color: #fff; }
.section-pad-white { padding: 90px 5vw; background: var(--paper); }

/* ── INNER PAGE HERO ── */
.page-hero { padding: 80px 5vw 72px; background: var(--ink); color: #fff; }
.page-hero .eyebrow { color: var(--volt); }
.page-hero h1 { color: #fff; margin-top: 12px; }
.page-hero h1 em { color: #aaa; }
.page-hero-sub { font-size: 18px; color: #aaa; max-width: 580px; margin-top: 18px; line-height: 1.7; }

/* ── CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 32px 28px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.08); transform: translateY(-3px); }
.card-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--ink); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 22px; flex-shrink: 0; }
.card h3 { font-size: 17px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--slate); line-height: 1.65; }

/* ── STAT ROW ── */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 24px; margin-top: 48px; }
.stat { border-top: 2px solid var(--volt); padding-top: 16px; }
.stat-num { font-family: var(--f-display); font-size: 2.4rem; color: var(--ink); line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: .04em; }

/* ── CONTACT FORM ── */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: 15px;
  background: var(--canvas); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 12px 14px; color: var(--ink);
  outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13,15,20,.06);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12px; color: var(--muted); }
.btn-submit { background: var(--ink); color: var(--volt); padding: 14px 32px; border-radius: 8px; font-family: var(--f-body); font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: background .2s; width: fit-content; }
.btn-submit:hover { background: var(--slate); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column; position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--canvas); padding: 32px 5vw; gap: 0;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { border-bottom: 1px solid var(--border); }
  .nav-links > li > a { padding: 14px 0; }
  .hamburger { display: flex; }
  .nav-dropdown { display: none; position: static; box-shadow: none; border: none; background: transparent; opacity: 1; transform: none; padding: 0 0 8px 16px; pointer-events: all; transition: none; }
  .nav-has-dd.dd-open .nav-dropdown { display: block; }
  .nav-dropdown li a { padding: 8px 4px; font-size: 13px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-hero { padding: 60px 5vw 52px; }
}
