/* ============================================
   ERENSAN — Heavy Vehicle Bodywork & Paint
   Global styles
   ============================================ */

:root {
  --blue-900: #0E2A3F;
  --blue-800: #14416B;
  --blue-700: #1B4F72;
  --blue-600: #1B6CA8;
  --blue-500: #2E86C1;
  --blue-400: #5DADE2;
  --blue-300: #85C1E9;
  --blue-100: #D4E6F1;
  --slate-900: #1C2833;
  --slate-700: #2C3E50;
  --slate-500: #566573;
  --slate-300: #AEB6BD;
  --gray-100: #F4F6F8;
  --gray-50:  #FAFBFC;
  --white: #FFFFFF;

  --radius-sm: 4px;
  --radius:    8px;
  --shadow-sm: 0 1px 2px rgba(15,42,63,.06), 0 2px 6px rgba(15,42,63,.04);
  --shadow:    0 4px 14px rgba(15,42,63,.08), 0 12px 30px rgba(15,42,63,.06);
  --shadow-lg: 0 20px 50px rgba(15,42,63,.18);

  --container: 1240px;
  --nav-h: 78px;

  --ease: cubic-bezier(.2,.7,.2,1);

  /* hexagon-corner clip (industrial accent) */
  --clip-hex: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  --clip-cut: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -.01em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.02em; }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p  { margin: 0; text-wrap: pretty; }

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

/* ---- Eyebrow / kicker ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--blue-500);
}
.eyebrow.on-dark { color: var(--blue-300); }
.eyebrow.on-dark::before { background: var(--blue-400); }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(15,42,63,.08);
  transition: box-shadow .25s var(--ease);
}
.nav.scrolled { box-shadow: 0 8px 24px rgba(15,42,63,.06); }
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark { width: 38px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .14em;
  color: var(--slate-900);
}
.brand-sub {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-top: 4px;
}

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--slate-700);
  border-radius: 4px;
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--blue-600);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s var(--ease);
}
.nav-link:hover { color: var(--blue-600); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--blue-700); }
.nav-link.active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--blue-600);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  clip-path: var(--clip-hex);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover { background: var(--blue-700); transform: translateY(-1px); }
.nav-cta .arrow { transition: transform .2s var(--ease); }
.nav-cta:hover .arrow { transform: translateX(3px); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 22px; height: 2px;
  background: var(--slate-900);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px; height: 2px;
  background: var(--slate-900);
  transition: transform .25s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 18px;
    gap: 4px;
    border-bottom: 1px solid rgba(15,42,63,.08);
    box-shadow: 0 20px 30px rgba(15,42,63,.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-link { padding: 14px 16px; font-size: 1rem; }
  .nav-link::after { left: 16px; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-lang { display: block; margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(15,42,63,.06); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: 'Manrope', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  clip-path: var(--clip-hex);
}
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(27,108,168,.35); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
  padding: 12px 24px;
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline {
  background: transparent;
  color: var(--blue-700);
  border: 2px solid var(--blue-600);
  padding: 12px 24px;
}
.btn-outline:hover { background: var(--blue-600); color: var(--white); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================
   SECTIONS
   ============================================ */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--slate-500);
}

.bg-gray { background: var(--gray-100); }
.bg-dark {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  color: var(--white);
}
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--white); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.7);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}
.footer .brand-name { color: var(--white); }
.footer .brand-sub { color: var(--blue-300); }
.footer-desc {
  margin-top: 20px;
  font-size: .92rem;
  color: rgba(255,255,255,.55);
  max-width: 320px;
}
.footer h3 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a {
  color: rgba(255,255,255,.65);
  font-size: .92rem;
  transition: color .2s var(--ease);
}
.footer a:hover { color: var(--blue-300); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PLACEHOLDER IMAGES (striped industrial)
   ============================================ */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(27,108,168,.08) 0,
      rgba(27,108,168,.08) 12px,
      rgba(27,108,168,.14) 12px,
      rgba(27,108,168,.14) 13px),
    linear-gradient(135deg, var(--blue-100), #E8F1F8);
  border: 1px solid rgba(27,108,168,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  overflow: hidden;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(27,108,168,.28);
}
.ph .ph-label {
  position: relative;
  z-index: 1;
  padding: 6px 12px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(27,108,168,.2);
  border-radius: 2px;
}
.ph.dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,.04) 0,
      rgba(255,255,255,.04) 12px,
      rgba(255,255,255,.08) 12px,
      rgba(255,255,255,.08) 13px),
    linear-gradient(135deg, var(--blue-800), var(--blue-900));
  border-color: rgba(255,255,255,.1);
  color: var(--blue-300);
}
.ph.dark::after { border-color: rgba(255,255,255,.14); }
.ph.dark .ph-label { background: rgba(14,42,63,.6); border-color: rgba(255,255,255,.18); color: var(--blue-300); }

/* ============================================
   REVEAL ON SCROLL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================
   PAGE HEADER (sub-pages)
   ============================================ */
.page-head {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px);
  background:
    linear-gradient(135deg, rgba(14,42,63,.92) 0%, rgba(27,108,168,.85) 100%),
    repeating-linear-gradient(135deg,
      rgba(255,255,255,.03) 0,
      rgba(255,255,255,.03) 14px,
      rgba(255,255,255,.06) 14px,
      rgba(255,255,255,.06) 15px);
  background-color: var(--blue-800);
  color: var(--white);
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(93,173,226,.25) 0%, transparent 70%);
  pointer-events: none;
}
.page-head .crumbs {
  font-family: 'Manrope', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 18px;
}
.page-head .crumbs a { color: rgba(255,255,255,.6); }
.page-head h1 { color: var(--white); max-width: 900px; }
.page-head p {
  margin-top: 22px;
  max-width: 640px;
  font-size: 1.12rem;
  color: rgba(255,255,255,.78);
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
  color: var(--white);
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(93,173,226,.25) 0%, transparent 70%);
}
.cta-band-inner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
}
.cta-band h2 { color: var(--white); }
.cta-band p { margin-top: 14px; color: rgba(255,255,255,.75); max-width: 560px; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 800px) {
  .cta-band-inner { grid-template-columns: 1fr; }
}

/* utility */
.flex { display: flex; }
.flex-gap-12 { gap: 12px; }
.flex-gap-16 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
