/* =============================================================
   OSTEONEKS — Full Black Theme (AMD-style)
   §3 colour tokens are primary; §4 shared tokens below.
   ============================================================= */
:root {
  /* ── colour ── */
  --bg-primary:    #000000;
  --bg-surface:    #0E0E0F;
  --bg-surface-2:  #161616;
  --accent:        #ED1C24;
  --accent-hover:  #C8141B;
  --accent-glow:   rgba(237,28,36,.45);
  --text-primary:  #FFFFFF;
  --text-muted:    #9A9A9A;
  --border:        rgba(255,255,255,.08);

  /* ── spacing ── */
  --pad-h:   24px;
  --pad-mob: 16px;
  --sec-v:   100px;
  --sec-mob: 56px;
  --gap:     32px;
  --gap-mob: 16px;

  /* ── radius ── */
  --r-card: 12px;
  --r-btn:  4px;
  --r-pill: 999px;

  /* ── letter-spacing ── */
  --ls-tight:   -0.02em;
  --ls-eyebrow: .14em;

  /* ── shadows ── */
  --shadow-line:    0 1px 0 rgba(255,255,255,.06);
  --shadow-elevate: 0 8px 20px rgba(0,0,0,.5);
  --shadow-glow:    0 0 0 1px var(--accent), 0 0 24px var(--accent-glow);
}

/* =============================================================
   BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { margin: 0; padding: 0; list-style: none; }
p    { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

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

/* type scale */
h1 {
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: var(--ls-tight);
}
h2, .section-h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
}
h3 { font-size: 22px; font-weight: 700; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--accent);
}
.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-top: 12px;
  margin-bottom: 48px;
}
.center { text-align: center; }

/* skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff;
  padding: 10px 18px; font-weight: 700; z-index: 9999;
}
.skip-link:focus { left: 0; }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  min-height: 44px;
  border-radius: var(--r-btn);
  font-size: 15px;
  font-weight: 700;
  transition: background-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-hover);
  box-shadow: var(--shadow-glow);
  outline: none;
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 14px 0;
}
.btn-ghost .arrow,
.newsroom-link .arrow,
.subscribe-link .arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn-ghost:hover .arrow,
.newsroom-link:hover .arrow,
.subscribe-link:hover .arrow { transform: translateX(5px); }

.center-cta { text-align: center; margin-top: 40px; }

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 88px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  transition: height .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-header.shrink {
  height: 64px;
  border-color: transparent;
  box-shadow: var(--shadow-elevate);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* logo: invert black logo → pure white on dark header */
.logo-img {
  filter: brightness(0) invert(1);
  height: 30px;
  width: auto;
}
.site-header.shrink .logo-img { height: 26px; }

/* primary nav */
.primary-nav { flex: 1; }
.primary-nav > ul { display: flex; gap: 4px; }
.nav-item { position: relative; }
/* Mega-menu nav items must be position:static so the full-width
   panel anchors to .site-header (the sticky positioned ancestor),
   not to the individual <li>. Small dropdowns in .header-actions
   keep position:relative for their own local anchoring. */
.primary-nav .nav-item { position: static; }
.header-actions .nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--r-btn);
  transition: color .2s;
}
.nav-link i { width: 16px; height: 16px; transition: transform .25s ease; flex-shrink: 0; }
.nav-item.open > .nav-link { color: var(--accent); }
.nav-item.open > .nav-link i { transform: rotate(180deg); }
.nav-link:hover { color: var(--accent); }

/* header actions */
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
  transition: background-color .2s, color .2s;
}
.icon-btn i { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--bg-surface-2); color: #fff; }

.lang-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px; font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,.8);
  border-radius: var(--r-btn);
  transition: color .2s;
}
.lang-btn i { width: 14px; height: 14px; }
.lang-btn:hover { color: #fff; }

/* inline search expand */
.search-inline {
  max-width: 0; overflow: hidden;
  transition: max-width .25s ease-out, opacity .25s;
  opacity: 0;
}
.search-inline.open { max-width: 260px; opacity: 1; margin-right: 4px; }
.search-inline input {
  width: 240px;
  padding: 9px 14px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.search-inline input::placeholder { color: var(--text-muted); }
.search-inline input:focus { border-color: rgba(255,255,255,.25); }

/* dropdowns (account / lang) */
.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-elevate);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s ease-out, transform .25s ease-out, visibility .25s;
  z-index: 1100;
}
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: 6px;
  font-size: 14px; color: var(--text-primary);
}
.dropdown a:hover { background: var(--bg-surface-2); color: var(--accent); }
.dropdown a.muted { color: var(--text-muted); pointer-events: none; }
.dropdown .soon {
  font-size: 11px; background: var(--bg-surface-2);
  padding: 2px 6px; border-radius: var(--r-pill); color: var(--text-muted);
}

.hamburger {
  display: none;
  width: 40px; height: 40px; border-radius: 50%;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
}
.hamburger i { width: 24px; height: 24px; }
.hamburger:hover { background: var(--bg-surface-2); color: #fff; }

/* =============================================================
   MEGA MENU
   ============================================================= */
.mega-menu {
  position: absolute;
  /* Anchors to .site-header because primary nav-items are position:static.
     left:0/right:0 spans the full header width; inner content is
     capped at 1320px via .mega-menu-inner padding. */
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  opacity: 0; visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .25s ease-out, transform .25s ease-out, visibility .25s;
  z-index: 999;
}
.nav-item.open .mega-menu {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.mega-menu-inner {
  display: flex;
  min-height: 280px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* tab rail */
.mega-tabs {
  display: flex; flex-direction: column;
  width: 260px; flex-shrink: 0;
  padding: 24px 0;
  border-right: 1px solid var(--border);
}
.mega-tab {
  text-align: left;
  padding: 12px 28px;
  font-size: 15px; font-weight: 500;
  color: var(--text-muted);
  border-left: 3px solid transparent;
  transition: color .2s, background-color .2s;
}
.mega-tab:hover { color: var(--text-primary); background: var(--bg-surface-2); }
.mega-tab.active {
  border-left-color: var(--accent);
  color: var(--text-primary);
  font-weight: 700;
  background: var(--bg-surface-2);
}

/* content panels */
.mega-panels { flex: 1; padding: 32px 48px; }
.mega-panel { display: none; gap: 56px; }
.mega-panel.active { display: flex; }
.mega-group { min-width: 200px; }
.mega-group h6 {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--ls-eyebrow);
  color: var(--text-muted);
  margin-bottom: 18px;
}
.mega-group a {
  display: block; padding: 8px 0;
  font-size: 15px; color: var(--text-primary);
  transition: color .15s;
}
.mega-group a:hover { color: var(--accent); }

/* =============================================================
   MOBILE DRAWER
   ============================================================= */
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(380px, 90vw);
  background: var(--bg-primary);
  border-left: 1px solid var(--border);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 1900;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

/* mobile accordion */
.mob-accordion { padding: 8px 0; }
.mob-trigger, .mob-subtrigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; font-size: 15px; font-weight: 600; text-align: left;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.mob-subtrigger { padding-left: 36px; font-weight: 500; font-size: 14px; border-bottom: none; }
.mob-trigger i, .mob-subtrigger i {
  width: 18px; height: 18px; flex-shrink: 0;
  transition: transform .25s ease;
}
.mob-trigger[aria-expanded="true"] i,
.mob-subtrigger[aria-expanded="true"] i { transform: rotate(180deg); }
.mob-panel, .mob-subpanel {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease-out;
  background: var(--bg-surface);
}
.mob-panel > a, .mob-subpanel > a {
  display: block; padding: 14px 36px;
  font-size: 14px; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.mob-subpanel > a { padding-left: 52px; }
.mob-panel > a:hover, .mob-subpanel > a:hover { color: var(--accent); }

/* =============================================================
   HERO CAROUSEL
   ============================================================= */
.hero { position: relative; overflow: hidden; background: #000; }
.hero-slides { position: relative; height: 660px; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease;
  /* §5 image treatment */
  filter: contrast(1.08) saturate(1.05);
}
.hero-slide.active { opacity: 1; visibility: visible; }

/* bottom-to-top legibility gradient §5 */
.hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 55%),
              linear-gradient(135deg, rgba(0,0,0,.6) 0%, transparent 60%);
  filter: none; /* don't double-apply image filter */
}

.hero-content {
  position: absolute; bottom: 72px; left: 0; right: 0;
  z-index: 2; max-width: 720px;
  /* container padding already applied via .container */
}
/* cancel filter on text layer */
.hero-content { filter: none; }
.hero-content .eyebrow { margin-bottom: 14px; }
.hero-content h1,
.hero-content h2 {
  color: var(--text-primary);
  margin-bottom: 18px;
}
.hero-copy {
  font-size: 18px; color: rgba(255,255,255,.85);
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-arrow {
  position: absolute; top: 45%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  backdrop-filter: blur(4px);
  transition: background-color .2s, box-shadow .2s;
}
.hero-arrow i { width: 22px; height: 22px; }
.hero-arrow:hover { background: rgba(255,255,255,.25); box-shadow: var(--shadow-glow); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

.hero-dots {
  position: absolute; bottom: 28px; right: 32px;
  display: flex; gap: 10px; z-index: 3;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.35);
  transition: background-color .3s, transform .3s;
}
.dot.active { background: var(--accent); transform: scale(1.2); }

/* preview tiles row */
.hero-previews {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.hero-previews-inner {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; /* hairline dividers between tiles */
  background: var(--border); /* gap becomes a border line */
}
.preview-tile {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px 28px;
  background: var(--bg-surface);
  transition: background-color .2s;
}
.preview-tile:hover { background: var(--bg-surface-2); }
.preview-tile img {
  width: 100px; height: 66px;
  object-fit: cover; border-radius: 6px; flex-shrink: 0;
  filter: contrast(1.08) saturate(1.05);
}
.preview-text h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.preview-text p  { font-size: 13px; color: var(--text-muted); }
.preview-tile:hover .preview-text h3 { color: var(--accent); }

/* =============================================================
   SHARED SECTION STRUCTURE
   ============================================================= */
.section {
  position: relative;
  padding: var(--sec-v) 0;
  overflow: hidden;
}

/* glow background — pure CSS radial per §5 */
.glow-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 25% 20%, rgba(237,28,36,.18), transparent 65%);
  z-index: 0;
}
.glow-right {
  background: radial-gradient(ellipse 60% 50% at 75% 80%, rgba(237,28,36,.14), transparent 65%);
}
.section > .container { position: relative; z-index: 1; }

/* =============================================================
   WHY OSTEONEKS
   ============================================================= */
.why-section { background: var(--bg-primary); }
.why-section .section-h2 { margin-bottom: 52px; }

.why-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: var(--gap); margin-bottom: 8px;
}
.why-card {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.why-card h3 {
  font-size: 20px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 14px;
}
.why-card h3::after {
  content: '';
  display: block; width: 32px; height: 3px;
  background: var(--accent); margin-top: 12px;
}
.why-card p { color: var(--text-muted); font-size: 15px; }

/* =============================================================
   LOGO WALL
   ============================================================= */
.logo-wall-section { background: var(--bg-primary); }
.logo-wall-section .section-h2 { margin-bottom: 44px; }

.logo-row {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 20px 40px;
}
.logo-badge {
  padding: 12px 24px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 14px; font-weight: 600;
  /* mimic white logo treatment §5 */
  color: rgba(255,255,255,.55);
  transition: color .2s, border-color .2s;
}
.logo-badge:hover { color: #fff; border-color: rgba(255,255,255,.5); }

/* =============================================================
   PORTFOLIO CARDS
   ============================================================= */
.portfolio-section { background: var(--bg-primary); }
.portfolio-section .section-h2 { margin-bottom: 0; }

.card-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: var(--gap);
}
.card {
  background: var(--bg-surface);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border);
  border-top: 1px solid var(--border);        /* overridden on hover */
  transition: transform .3s ease, box-shadow .3s ease, border-top-color .3s ease;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevate);
  border-top-color: var(--accent);
}
.card-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-surface-2);
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  /* §5 image treatment */
  filter: contrast(1.08) saturate(1.05);
  transition: transform .4s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.04); }

.card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.card-body p  { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; flex: 1; }
.card-links {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card-links a { font-size: 14px; font-weight: 600; color: var(--accent); }
.card-links a:hover { color: var(--accent-hover); text-decoration: underline; }

/* =============================================================
   CTA BANNER
   ============================================================= */
.cta-banner-section {
  background: var(--bg-primary);
  padding: 0;
}
.cta-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(237,28,36,.22), transparent 70%);
}
.cta-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: contrast(1.08) saturate(1.05);
}
.cta-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.78);
}
.cta-inner {
  position: relative; z-index: 2;
  max-width: 640px; margin: 0 auto; text-align: center;
  padding: 140px var(--pad-h);
}
.cta-inner h2  { margin-bottom: 16px; }
.cta-inner p   { font-size: 17px; color: rgba(255,255,255,.8); margin-bottom: 36px; }

/* =============================================================
   NEWS
   ============================================================= */
.news-section { background: var(--bg-primary); }
.news-hdr {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 40px; flex-wrap: wrap; gap: 12px;
}
.newsroom-link { font-size: 15px; font-weight: 600; color: var(--accent); }
.newsroom-link:hover { color: var(--accent-hover); }

.news-row {
  display: flex; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-surface-2) transparent;
}
.news-row::-webkit-scrollbar { height: 4px; }
.news-row::-webkit-scrollbar-track { background: transparent; }
.news-row::-webkit-scrollbar-thumb { background: var(--bg-surface-2); border-radius: 2px; }

.news-card {
  flex: 0 0 280px; scroll-snap-align: start;
  transition: transform .3s ease;
}
.news-card:hover { transform: translateY(-4px); }

.news-img-wrap {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  border-radius: var(--r-card); margin-bottom: 16px;
  background: var(--bg-surface);
}
.news-img-wrap::after {
  /* §5 bottom-to-top gradient on news cards too */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent 50%);
}
.news-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.08) saturate(1.05);
  transition: transform .4s ease;
}
.news-card:hover .news-img-wrap img { transform: scale(1.05); }

.news-card h3 {
  font-size: 17px; font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 8px;
}
.news-date { font-size: 13px; color: var(--text-muted); }
.subscribe-link { font-size: 15px; font-weight: 600; color: var(--accent); }
.subscribe-link:hover { color: var(--accent-hover); }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 64px 0 36px;
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 52px; flex-wrap: wrap; gap: 16px;
}
.footer-social { display: flex; gap: 12px; }
.soc-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
  transition: color .2s, border-color .2s, background-color .2s;
}
.soc-btn i { width: 16px; height: 16px; }
.soc-btn:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.footer-sub-link { font-size: 15px; font-weight: 700; color: var(--accent); }
.footer-sub-link:hover { color: var(--accent-hover); }

.footer-grid {
  display: grid; grid-template-columns: repeat(5,1fr);
  gap: var(--gap); margin-bottom: 44px;
}
.footer-col h6 {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: var(--ls-eyebrow);
  color: #fff; margin-bottom: 20px;
}
.footer-col a {
  display: block; padding: 6px 0;
  font-size: 14px; color: var(--text-muted);
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-rule {
  border: none; border-top: 1px solid var(--border);
  margin: 0 0 28px;
}
.legal-bar {
  display: flex; flex-wrap: wrap; gap: 12px 20px;
  margin-bottom: 20px;
}
.legal-bar a { font-size: 12px; color: rgba(255,255,255,.4); }
.legal-bar a:hover { color: rgba(255,255,255,.8); }
.copyright { font-size: 12px; color: rgba(255,255,255,.35); }

/* =============================================================
   RESPONSIVE — TABLET  640–1023px
   ============================================================= */
@media (min-width:640px) and (max-width:1023px) {
  .why-grid     { grid-template-columns: repeat(2,1fr); }
  .card-grid    { grid-template-columns: repeat(2,1fr); }
  .footer-grid  { grid-template-columns: repeat(2,1fr); }
  .hero-previews-inner { grid-template-columns: repeat(3,1fr); }
}

/* =============================================================
   RESPONSIVE — MOBILE  < 640px
   ============================================================= */
@media (max-width:639px) {
  :root { --sec-v: var(--sec-mob); --gap: var(--gap-mob); }

  .site-header { height: 72px; }
  .logo-img { height: 24px; }

  .primary-nav,
  .search-inline,
  #account-btn,
  .lang-btn { display: none !important; }
  .hamburger { display: flex; }

  .hero-slides { height: 560px; }
  .hero-content { bottom: 44px; }
  .hero-copy { font-size: 16px; }
  .hero-arrow { width: 38px; height: 38px; }
  .hero-arrow i { width: 18px; height: 18px; }

  .hero-previews-inner { grid-template-columns: 1fr; }
  .preview-tile { padding: 16px var(--pad-mob); }

  .why-grid  { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .news-card { flex: 0 0 240px; }

  .cta-inner { padding: 80px var(--pad-mob); }
}

/* =============================================================
   RESPONSIVE — hide mega on mobile (handle via drawer instead)
   ============================================================= */
@media (max-width:1023px) {
  .primary-nav { display: none; }
  .hamburger   { display: flex; }
  #search-toggle,
  #account-btn,
  .lang-btn { display: none; }
}

/* =============================================================
   INNER PAGES — shared layout components
   ============================================================= */

/* ── Page hero banner (replaces carousel on inner pages) ─── */
.inner-hero {
  position: relative;
  padding: 100px 0 72px;
  background: var(--bg-primary);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.inner-hero .glow-bg {
  background: radial-gradient(ellipse 55% 60% at 15% 50%, rgba(237,28,36,.18), transparent 65%);
}
.inner-hero-eyebrow {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--ls-eyebrow);
  color: var(--accent); margin-bottom: 14px;
}
.inner-hero h1 {
  margin-bottom: 18px;
  max-width: 820px;
}
.inner-hero-sub {
  font-size: 19px; color: var(--text-muted);
  max-width: 680px; margin-bottom: 32px;
}
.inner-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,.35); font-size: 11px; }

/* ── Page body wrapper ──────────────────────────────────────── */
.page-body { padding: 72px 0 100px; }
.page-body-tight { padding: 56px 0 80px; }

/* ── Two-column content layout ─────────────────────────────── */
.content-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.content-grid.three { grid-template-columns: repeat(3,1fr); gap: 40px; }
.content-grid img {
  width: 100%; border-radius: var(--r-card);
  filter: contrast(1.08) saturate(1.05);
  border: 1px solid var(--border);
}
.content-text h2 { margin-bottom: 18px; }
.content-text p  { color: var(--text-muted); margin-bottom: 16px; }
.content-text ul {
  padding-left: 20px; color: var(--text-muted);
}
.content-text ul li { margin-bottom: 10px; }

/* ── Section label ─────────────────────────────────────────── */
.section-label {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--ls-eyebrow);
  color: var(--accent); margin-bottom: 12px;
}

/* ── Feature list ──────────────────────────────────────────── */
.feature-list { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.feature-item {
  padding: 24px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-card) var(--r-card) 0;
}
.feature-item h3 { font-size: 17px; margin-bottom: 8px; }
.feature-item p  { color: var(--text-muted); font-size: 15px; }

/* ── Specs table ───────────────────────────────────────────── */
.specs-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; margin-top: 24px;
}
.specs-table th {
  text-align: left; padding: 12px 16px;
  background: var(--bg-surface-2);
  color: var(--text-muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 1px solid var(--border);
}
.specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.specs-table tr:hover td { background: var(--bg-surface); }

/* ── Product sub-links grid ────────────────────────────────── */
.product-links-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: var(--gap); margin-top: 48px;
}
.product-link-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--r-card);
  padding: 28px;
  transition: border-top-color .25s, transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.product-link-card:hover {
  border-top-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevate);
}
.product-link-card h3 { font-size: 18px; margin-bottom: 10px; }
.product-link-card p  { color: var(--text-muted); font-size: 14px; flex:1; margin-bottom: 20px; }
.product-link-card a.more {
  font-size: 14px; font-weight: 700; color: var(--accent);
}
.product-link-card a.more:hover { color: var(--accent-hover); }

/* ── Category image-card grid (products hub) ───────────────── */
.cat-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap);
}
.cat-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-card);
  aspect-ratio: 4/3;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-elevate); }
.cat-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.08) saturate(1.05);
  transition: transform .4s;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 24px 24px;
  background: linear-gradient(to top, rgba(0,0,0,.92), transparent);
}
.cat-card-body h3 { font-size: 20px; margin-bottom: 6px; }
.cat-card-body p  { font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 12px; }
.cat-card-body a  { font-size: 14px; font-weight: 700; color: var(--accent); }

/* ── News/blog grid ────────────────────────────────────────── */
.news-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap);
}
.news-grid-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-top-color .3s;
  border-top: 1px solid var(--border);
}
.news-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevate);
  border-top-color: var(--accent);
}
.news-grid-card .news-img-wrap { border-radius: 0; margin-bottom: 0; }
.news-grid-card-body { padding: 22px; }
.news-grid-card-body .tag {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); margin-bottom: 10px;
}
.news-grid-card-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.news-grid-card-body .news-date { font-size: 13px; color: var(--text-muted); }

/* ── Download / resource cards ─────────────────────────────── */
.download-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 20px;
  margin-top: 32px;
}
.download-card {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  transition: border-color .2s, background-color .2s;
}
.download-card:hover { border-color: rgba(255,255,255,.25); background: var(--bg-surface-2); }
.download-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(237,28,36,.12);
  border: 1px solid rgba(237,28,36,.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.download-icon i { color: var(--accent); width: 20px; height: 20px; }
.download-card-text h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.download-card-text p  { font-size: 13px; color: var(--text-muted); }

/* ── Form ──────────────────────────────────────────────────── */
.form-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 48px;
  max-width: 720px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  color: var(--text-primary);
  font-family: inherit; font-size: 15px;
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group select option { background: var(--bg-surface); }

/* ── Team grid ─────────────────────────────────────────────── */
.team-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
}
.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  text-align: center;
}
.team-card-img {
  aspect-ratio: 1/1; background: var(--bg-surface-2);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
}
.team-card-img i { width: 48px; height: 48px; color: var(--text-muted); }
.team-card-body { padding: 20px; }
.team-card-body h3 { font-size: 17px; margin-bottom: 6px; }
.team-card-body p  { font-size: 14px; color: var(--text-muted); }
.team-card-body .role { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }

/* ── Stat row ───────────────────────────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); margin: 64px 0; }
.stat-item { text-align: center; }
.stat-item .num {
  font-size: clamp(32px,4vw,52px); font-weight: 900;
  letter-spacing: var(--ls-tight); color: var(--accent);
  line-height: 1; margin-bottom: 8px;
}
.stat-item p { font-size: 14px; color: var(--text-muted); }

/* ── Job listing ───────────────────────────────────────────── */
.job-list { display: flex; flex-direction: column; gap: 16px; }
.job-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  transition: border-color .2s, background-color .2s;
  gap: 24px;
}
.job-card:hover { border-color: rgba(255,255,255,.2); background: var(--bg-surface-2); }
.job-info h3 { font-size: 18px; margin-bottom: 6px; }
.job-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.job-tag {
  font-size: 12px; padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.08);
  color: var(--text-muted);
}

/* ── Contact info blocks ────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap);
  margin-bottom: 64px;
}
.contact-block {
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.contact-block .icon-wrap {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(237,28,36,.12);
  border: 1px solid rgba(237,28,36,.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.contact-block .icon-wrap i { color: var(--accent); width: 20px; height: 20px; }
.contact-block h3 { font-size: 17px; margin-bottom: 8px; }
.contact-block p  { font-size: 14px; color: var(--text-muted); }
.contact-block a  { color: var(--accent); font-weight: 600; }

/* ── Legal content ─────────────────────────────────────────── */
.legal-content {
  max-width: 820px;
  color: var(--text-muted);
  font-size: 15px; line-height: 1.75;
}
.legal-content h2 { color: var(--text-primary); font-size: 26px; margin: 48px 0 16px; }
.legal-content h3 { color: var(--text-primary); font-size: 19px; margin: 32px 0 12px; }
.legal-content p  { margin-bottom: 16px; }
.legal-content ul { padding-left: 24px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a  { color: var(--accent); }

/* ── In-page section divider ────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 72px 0; }

/* ── Comparison table ──────────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th {
  background: var(--bg-surface-2); color: var(--text-muted);
  padding: 14px 18px; text-align: left;
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.compare-table .highlight { color: var(--accent); font-weight: 700; }
.compare-table tr:hover td { background: var(--bg-surface); }

/* ── CTA inner strip ────────────────────────────────────────── */
.inner-cta-strip {
  position: relative; overflow: hidden;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0; text-align: center;
  margin-top: 80px;
}
.inner-cta-strip .glow-bg {
  background: radial-gradient(ellipse 50% 80% at 50% 50%, rgba(237,28,36,.15), transparent 65%);
}
.inner-cta-strip h2 { margin-bottom: 14px; }
.inner-cta-strip p  { color: var(--text-muted); margin-bottom: 32px; font-size: 17px; }
.inner-cta-strip .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =============================================================
   INNER PAGE RESPONSIVE
   ============================================================= */
@media (max-width:1023px) {
  .content-grid, .content-grid.three { grid-template-columns: 1fr; gap: 40px; }
  .product-links-grid { grid-template-columns: repeat(2,1fr); }
  .cat-grid  { grid-template-columns: repeat(2,1fr); }
  .news-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .stat-row  { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
}
@media (max-width:639px) {
  .inner-hero { padding: 72px 0 48px; }
  .product-links-grid { grid-template-columns: 1fr; }
  .cat-grid  { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stat-row  { grid-template-columns: repeat(2,1fr); }
  .form-wrap { padding: 28px 20px; }
  .form-row  { grid-template-columns: 1fr; }
  .job-card  { flex-direction: column; align-items: flex-start; }
}
