/* ============================================================
   NESSY LLC — Industrial supply, B2B vitrine
   Design system / global stylesheet
   ============================================================ */

:root {
  /* Palette ------------------------------------------------ */
  --steel-900: #0c1b2a;   /* deep industrial blue (oil/steel) */
  --steel-800: #102a40;
  --steel-700: #163a57;
  --steel-600: #1f4e74;
  --steel-500: #2c6593;
  --metal-700: #3a4654;   /* metal gray secondary */
  --metal-500: #5d6b7a;
  --metal-300: #9aa6b2;
  --metal-100: #e6eaee;
  --ink: #14202b;
  --paper: #ffffff;
  --paper-2: #f5f7f9;     /* light section background */
  --paper-3: #eef2f5;
  --accent: #ff6a13;      /* safety orange */
  --accent-600: #e85d08;
  --accent-100: #ffe6d6;
  --line: #dde3e9;
  --ok: #1f9d6b;

  /* Typography -------------------------------------------- */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --h1: clamp(2rem, 4.4vw, 3.25rem);
  --h2: clamp(1.6rem, 3vw, 2.25rem);
  --h3: 1.25rem;

  /* Layout ------------------------------------------------- */
  --maxw: 1200px;
  --gap: 24px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(12,27,42,.06), 0 8px 24px rgba(12,27,42,.07);
  --shadow-lg: 0 12px 40px rgba(12,27,42,.14);
  --ring: 0 0 0 3px rgba(255,106,19,.35);
  --t: 180ms cubic-bezier(.2,.6,.2,1);
}

/* Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--steel-600); text-decoration: none; }
a:hover { color: var(--accent-600); }
h1, h2, h3, h4 { line-height: 1.15; color: var(--steel-900); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: var(--h1); margin: 0 0 .5em; }
h2 { font-size: var(--h2); margin: 0 0 .6em; }
h3 { font-size: var(--h3); margin: 0 0 .4em; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* Layout helpers ---------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--steel-900); color: #cdd7e0; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-600); margin-bottom: .5rem;
}
.section--dark .eyebrow { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--metal-500); max-width: 60ch; }
.section--dark .lead { color: #aeb9c4; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 22px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--t), background var(--t), box-shadow var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--steel-700); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--steel-600); color: var(--steel-700); background: var(--paper-2); }
.btn--light { background: #fff; color: var(--steel-800); }
.btn--light:hover { color: var(--steel-900); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* ============================================================
   Header / navigation
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--steel-900); letter-spacing: .02em; }
.brand:hover { color: var(--steel-900); }
.brand .logo-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-name { font-size: 1.25rem; }
.brand .brand-sub { font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--metal-500); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .96rem; color: var(--steel-800);
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav-links a:hover, .nav-links .nav-trigger:hover { background: var(--paper-2); color: var(--steel-900); }
.nav-links a[aria-current="page"] { color: var(--accent-600); }
.nav-trigger svg { width: 14px; height: 14px; transition: transform var(--t); }
.has-dropdown[aria-expanded="true"] .nav-trigger svg { transform: rotate(180deg); }

/* Dropdown ---------------------------------------------- */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 320px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.has-dropdown[aria-expanded="true"] .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px;
  border-radius: var(--radius-sm); width: 100%;
}
.dropdown a:hover { background: var(--paper-2); }
.dropdown .d-ico { width: 34px; height: 34px; flex: 0 0 auto; color: var(--steel-600); }
.dropdown .d-title { font-weight: 700; color: var(--steel-900); font-size: .95rem; }
.dropdown .d-desc { font-size: .82rem; color: var(--metal-500); font-weight: 400; line-height: 1.4; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Language switch --------------------------------------- */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.lang-switch button {
  border: none; background: #fff; cursor: pointer; font-family: inherit;
  font-weight: 700; font-size: .8rem; padding: 7px 11px; color: var(--metal-500);
}
.lang-switch button[aria-pressed="true"] { background: var(--steel-900); color: #fff; }

/* Mobile nav -------------------------------------------- */
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--steel-800); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px;
    box-shadow: var(--shadow-lg); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { position: static; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; min-width: 0; padding: 0 0 0 8px; display: none;
  }
  .has-dropdown[aria-expanded="true"] .dropdown { display: block; }
  .nav-actions { gap: 8px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(8,18,28,.92) 0%, rgba(16,42,64,.82) 55%, rgba(31,78,116,.7) 100%),
    var(--steel-800);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 80% at 80% 10%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; padding: 96px 0 104px; max-width: 760px; }
.hero h1 { color: #fff; }
.hero .lead { color: #cdd9e4; font-size: 1.3rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px; }
.hero-stats .stat strong { display: block; font-size: 2rem; color: #fff; line-height: 1; }
.hero-stats .stat span { font-size: .85rem; color: #9fb1c0; letter-spacing: .04em; }
.page-hero { background: var(--steel-900); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .1;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(100% 100% at 90% 0, #000 20%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { color: #aebcc8; }
.breadcrumb { font-size: .85rem; color: #8fa0ae; margin-bottom: 18px; }
.breadcrumb a { color: #b9c6d1; }
.breadcrumb a:hover { color: #fff; }

/* ============================================================
   Cards / grids
   ============================================================ */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cfd8e0; }

/* Division card */
.div-card { position: relative; overflow: hidden; }
.div-card .div-num {
  position: absolute; top: 18px; right: 22px; font-size: 3.2rem; font-weight: 800;
  color: var(--paper-3); line-height: 1; z-index: 0;
}
.div-card .ico {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--steel-900); color: #fff; margin-bottom: 18px; position: relative; z-index: 1;
}
.div-card .ico svg { width: 28px; height: 28px; }
.div-card h3 { position: relative; z-index: 1; }
.div-card p { color: var(--metal-500); font-size: .96rem; position: relative; z-index: 1; }
.div-card .card-link {
  margin-top: auto; font-weight: 700; color: var(--accent-600); display: inline-flex; align-items: center; gap: 6px;
  position: relative; z-index: 1;
}
.div-card .card-link svg { width: 16px; height: 16px; transition: transform var(--t); }
.div-card:hover .card-link svg { transform: translateX(4px); }

/* Feature / why card */
.feature .ico { width: 46px; height: 46px; color: var(--accent-600); margin-bottom: 14px; }
.feature .ico svg { width: 46px; height: 46px; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--metal-500); font-size: .95rem; margin: 0; }

/* Sector strip */
.sector-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 900px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
.sector {
  text-align: center; padding: 26px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; transition: transform var(--t), box-shadow var(--t);
}
.sector:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sector .ico { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--steel-600); }
.sector .ico svg { width: 40px; height: 40px; }
.sector strong { display: block; font-size: .95rem; color: var(--steel-900); }

/* Product/category list inside division pages */
.cat-block { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cat-block + .cat-block { margin-top: 20px; }
.cat-block .cat-head {
  display: flex; align-items: center; gap: 14px; padding: 20px 24px;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.cat-block .cat-head .ico { width: 36px; height: 36px; color: var(--steel-600); flex: 0 0 auto; }
.cat-block .cat-head .ico svg { width: 36px; height: 36px; }
.cat-block .cat-head h3 { margin: 0; }
.cat-block .cat-body { padding: 22px 24px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tag-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-size: .9rem; color: var(--steel-800); font-weight: 500;
}
.spec-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
@media (max-width: 640px) { .spec-list { columns: 1; } }
.spec-list li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid var(--paper-3); break-inside: avoid; }
.spec-list li::before {
  content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px;
  background: var(--accent); border-radius: 2px;
}

/* Partner / brand */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .brand-grid { grid-template-columns: repeat(2,1fr); } }
.brand-tile {
  display: grid; place-items: center; height: 96px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--metal-500); font-weight: 700; letter-spacing: .04em;
  transition: box-shadow var(--t);
}
.brand-tile:hover { box-shadow: var(--shadow); }
.partner-hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px;
}
@media (max-width: 800px) { .partner-hero { grid-template-columns: 1fr; } }

/* Split / media row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.media-ph {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative;
  background:
    linear-gradient(135deg, var(--steel-700), var(--steel-900));
  border: 1px solid var(--line); display: grid; place-items: center; color: rgba(255,255,255,.5);
}
.media-ph::after {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 28px 28px;
}
.media-ph .ph-label { position: relative; z-index: 1; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--steel-900), var(--steel-700));
  border-radius: var(--radius); padding: 48px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,106,19,.25), transparent 70%);
}
.cta-banner h2 { color: #fff; margin: 0 0 .3em; }
.cta-banner p { color: #b8c5d1; margin: 0; max-width: 48ch; }
.cta-banner .cta-text { position: relative; z-index: 1; }
.cta-banner .cta-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   Forms
   ============================================================ */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--steel-800); }
.field label .req { color: var(--accent-600); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--paper-2); color: var(--ink); transition: border-color var(--t), background var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--steel-600); background: #fff; box-shadow: var(--ring);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--metal-500); }
.form-success {
  display: none; background: #ecf8f2; border: 1px solid #bfe6d3; color: #14663f;
  padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 500;
}
.form-success.show { display: block; }

/* Contact info blocks */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: none; }
.info-list .ico { width: 22px; height: 22px; color: var(--accent-600); flex: 0 0 auto; margin-top: 3px; }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list .k { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--metal-500); }
.info-list .v { font-weight: 600; color: var(--steel-900); }
.info-list a.v { color: var(--steel-700); }
.map-ph {
  width: 100%; min-height: 280px; border-radius: var(--radius); border: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 14px, var(--paper-3) 14px, var(--paper-3) 28px);
  display: grid; place-items: center; color: var(--metal-500); font-weight: 600;
}

/* Misc content ------------------------------------------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.value-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.value-list li { display: flex; gap: 12px; align-items: flex-start; }
.value-list .ico { width: 24px; height: 24px; color: var(--ok); flex: 0 0 auto; margin-top: 2px; }
.value-list .ico svg { width: 24px; height: 24px; }
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
@media (max-width: 640px){ .stat-row { grid-template-columns: repeat(2,1fr);} }
.stat-row .n { font-size: 2.4rem; font-weight: 800; color: var(--steel-900); line-height: 1; }
.stat-row .l { color: var(--metal-500); font-size: .92rem; margin-top: 6px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--steel-900); color: #9fb1c0; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #9fb1c0; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand .brand-name { color: #fff; }
.footer-brand .brand .brand-sub { color: var(--metal-300); }
.footer-brand p { font-size: .92rem; max-width: 34ch; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #7e8e9c;
}
.footer-bottom a { color: #9fb1c0; }

/* Real imagery ------------------------------------------ */
.logo-img { height: 42px; width: auto; display: block; }
.footer-brand .logo-img {
  height: 30px; background: #fff; padding: 8px 12px; border-radius: 8px;
}
/* Photo thumbnail used on division & sector cards */
.thumb {
  width: 100%; height: 168px; object-fit: cover; border-radius: 8px;
  margin-bottom: 18px; display: block; background: var(--paper-3);
}
.div-card .thumb { margin-top: -4px; }
.thumb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.thumb-row .thumb { height: 150px; margin-bottom: 0; }
/* Replaces the .media-ph placeholder blocks */
.media-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); display: block;
}
.partner-hero .media-img { aspect-ratio: 16 / 10; }
/* Hero / page-hero with photographic background (set inline per page) */
.hero.has-bg::after { opacity: .07; }
.page-hero.has-bg { background-size: cover; background-position: center; }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--metal-500); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }
