/* ==========================================================================
   SPS · Schwarz Plastic Solutions — CI Theme
   Brand: Oswald + #29b7f4 (preserved) + deeper navy & accent for impact
   ========================================================================== */

:root {
  /* Brand — preserved from existing CI */
  --c-primary:        #29b7f4;
  --c-primary-active: #31c5f3;
  --c-primary-soft:   #60ccf7;
  /* Brand — added depth */
  --c-deep:           #0E2A40;
  --c-deep-2:         #103A56;
  --c-deep-3:         #1A567E;
  --c-deep-tint:      rgba(14, 42, 64, 0.06);
  --c-deep-tint-2:    rgba(14, 42, 64, 0.12);

  /* Accent for CTA — energetic, complements industrial blue */
  --c-accent:         #FF6B35;
  --c-accent-hover:   #E85318;
  --c-accent-tint:    rgba(255, 107, 53, 0.10);

  /* Neutral */
  --c-text:           #424242;
  --c-text-mid:       #4f4f4f;
  --c-text-muted:     #6b7280;
  --c-text-light:     #94a3b8;
  --c-bg:             #ffffff;
  --c-bg-soft:        #F4F8FB;
  --c-bg-blue:        #EAF4FB;
  --c-border:         #E2E8F0;
  --c-border-soft:    #EFF3F7;

  /* Signal */
  --c-success: #16A34A;
  --c-warning: #D97706;
  --c-danger:  #DC2626;

  /* Gradients */
  --grad-deep: linear-gradient(135deg, #0E2A40 0%, #1A567E 50%, #29b7f4 100%);
  --grad-soft: linear-gradient(135deg, rgba(41,183,244,0.06) 0%, rgba(14,42,64,0.06) 100%);
  --grad-mesh:
    radial-gradient(at 15% 25%, rgba(41,183,244,0.18) 0px, transparent 55%),
    radial-gradient(at 85% 10%, rgba(255,107,53,0.10) 0px, transparent 50%),
    radial-gradient(at 70% 90%, rgba(96,204,247,0.16) 0px, transparent 55%);

  /* Typography (Oswald preserved) */
  --ff-heading: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  --ff-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Type scale (more compact than current 24px) */
  --fs-xs:   0.75rem;     /* 12 */
  --fs-sm:   0.875rem;    /* 14 */
  --fs-base: 1rem;        /* 16 */
  --fs-md:   1.125rem;    /* 18 */
  --fs-lg:   1.25rem;     /* 20 */
  --fs-xl:   1.5rem;      /* 24 */
  --fs-2xl:  2rem;        /* 32 */
  --fs-3xl:  2.5rem;      /* 40 */
  --fs-4xl:  3.25rem;     /* 52 */
  --fs-5xl:  4rem;        /* 64 */

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(14,42,64,0.05);
  --sh-sm: 0 2px 6px rgba(14,42,64,0.07);
  --sh-md: 0 8px 24px rgba(14,42,64,0.08);
  --sh-lg: 0 16px 50px rgba(14,42,64,0.12);
  --sh-xl: 0 30px 80px rgba(14,42,64,0.18);
  --sh-glow: 0 8px 30px rgba(41,183,244,0.30);
  --sh-glow-accent: 0 8px 30px rgba(255,107,53,0.32);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms;
  --t: 280ms;
  --t-slow: 600ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-deep-3); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--c-primary); }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* Headings — Oswald preserved */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: 600;
  color: var(--c-deep);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, var(--fs-5xl)); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, var(--fs-3xl)); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 1.8vw, var(--fs-xl)); font-weight: 600; }
h4 { font-size: var(--fs-lg); font-weight: 500; }
h5 { font-size: var(--fs-md); font-weight: 500; }

p { margin: 0 0 1em; max-width: 72ch; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--c-primary); color: #fff; }

.skip-link {
  position: absolute; top: -40px; left: 8px; z-index: 200;
  background: var(--c-deep); color: #fff; padding: 8px 14px; border-radius: var(--r-md);
}
.skip-link:focus { top: 8px; outline: 2px solid var(--c-primary); }

.container {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 var(--gutter);
}

/* ===== BUTTONS ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: var(--r-md);
  font-family: var(--ff-heading); font-weight: 500; font-size: var(--fs-sm);
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: all var(--t) var(--ease);
  border: 2px solid transparent; cursor: pointer; line-height: 1.2;
  white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: var(--fs-xs); }
.btn--lg { padding: 16px 32px; font-size: var(--fs-base); border-radius: var(--r-md); }

.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: var(--c-accent-hover); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-glow-accent); }

.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-active); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-glow); }

.btn--deep { background: var(--c-deep); color: #fff; }
.btn--deep:hover { background: var(--c-deep-2); color: #fff; transform: translateY(-2px); }

.btn--outline { background: transparent; color: var(--c-deep); border-color: var(--c-deep); }
.btn--outline:hover { background: var(--c-deep); color: #fff; }

.btn--ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.25); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.4); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--ghost-light:hover { background: #fff; color: var(--c-deep); border-color: #fff; }

/* ===== TOPBAR ============================================================= */
.topbar {
  background: var(--c-deep);
  color: rgba(255,255,255,0.8);
  font-size: var(--fs-xs);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 36px; gap: 12px; flex-wrap: wrap;
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar__link {
  color: rgba(255,255,255,0.85);
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.02em;
}
.topbar__link:hover { color: var(--c-primary-soft); }
.topbar__sep { color: rgba(255,255,255,0.25); }
.topbar__meta { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .topbar__sep--md, .topbar__meta--md { display: none; }
  .topbar__right { display: none; }
}

/* ===== NAVBAR ============================================================= */
.navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-border-soft);
  position: sticky; top: 0; z-index: 50;
  transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.navbar.is-scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--sh-sm);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px;
}
.navbar__brand { display: flex; align-items: center; flex-shrink: 0; }
.navbar__logo { height: 56px; width: auto; transition: transform var(--t) var(--ease); }
.navbar__brand:hover .navbar__logo { transform: scale(1.04); }
.navbar__actions { display: flex; align-items: center; gap: 12px; }
.navbar__cta { box-shadow: var(--sh-glow-accent); }

.site-nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px;
  font-family: var(--ff-heading); font-weight: 500;
  font-size: var(--fs-sm); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--c-deep);
  border-radius: var(--r-md);
  transition: all var(--t-fast) var(--ease);
}
.nav__link:hover, .nav__link--active {
  color: var(--c-primary-active); background: var(--c-bg-blue);
}
.nav__chevron { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease); }
.nav__item:hover .nav__chevron { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 280px; padding: 8px;
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); border: 1px solid var(--c-border-soft);
  opacity: 0; visibility: hidden; transition: all var(--t) var(--ease);
  display: flex; flex-direction: column;
}
.nav__item:hover > .nav__dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__dropdown-link {
  padding: 10px 14px; border-radius: var(--r-md);
  font-family: var(--ff-heading); font-size: var(--fs-sm); font-weight: 500;
  color: var(--c-deep); display: flex; flex-direction: column; gap: 2px;
}
.nav__dropdown-link:hover { background: var(--c-bg-blue); color: var(--c-primary-active); }
.nav__dropdown-link span { font-size: var(--fs-xs); color: var(--c-text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

@media (max-width: 1080px) { .site-nav { display: none; } }

.burger { display: none; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--c-bg-soft); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--c-deep); border-radius: 2px; transition: all var(--t-fast) var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
@media (max-width: 1080px) { .burger { display: block; } }

.mobile-nav {
  position: fixed; inset: 130px 0 0 0; z-index: 49;
  background: #fff; padding: 20px; overflow-y: auto;
  transform: translateY(-20px); opacity: 0; transition: all var(--t) var(--ease);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open { transform: translateY(0); opacity: 1; }
.mobile-nav__list { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav__link {
  display: block; padding: 14px 16px; border-radius: var(--r-md);
  font-family: var(--ff-heading); font-weight: 500; color: var(--c-deep);
  font-size: var(--fs-md);
}
.mobile-nav__link:hover { background: var(--c-bg-blue); color: var(--c-primary-active); }
.mobile-nav__cta { margin-top: 20px; width: 100%; justify-content: center; }
