/* =====================================================================
   Chef Style Kitchen Equipment — Global Stylesheet
   Architecture: Design tokens → Base → Layout → Components → Utilities
   Methodology : BEM-ish naming, CSS custom properties, mobile-first
   Themes      : Light (default) + Dark via [data-theme="dark"]
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
   Palette is derived from the brand logo (royal blue) + an electric
   cyan accent for a premium, futuristic SaaS feel.
--------------------------------------------------------------------- */
:root {
  /* Tell the UA the page is designed for a light surface. This keeps Safari
     (macOS) from applying dark-mode styling to native form controls,
     scrollbars and the default canvas when the OS is in Dark Mode. */
  color-scheme: light;

  /* Brand */
  --brand-500: #1b5faa;      /* logo blue            */
  --brand-600: #14508f;
  --brand-700: #0f3d70;
  --brand-800: #0a2c52;
  --brand-400: #3f83c9;
  --accent-500: #38bdf8;     /* electric cyan accent */
  --accent-600: #0ea5e9;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #14508f 0%, #1b5faa 45%, #2b8ad6 100%);
  --grad-accent: linear-gradient(120deg, #1b5faa 0%, #38bdf8 100%);
  --grad-glow: radial-gradient(60% 60% at 50% 0%, rgba(56,189,248,.18) 0%, rgba(56,189,248,0) 70%);

  /* Neutrals (light theme) */
  --bg: #ffffff;
  --bg-subtle: #f5f8fc;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --border: #e3e9f2;
  --text: #0d1b2a;
  --text-muted: #4a5a6e;
  --text-faint: #7688a0;
  --on-brand: #ffffff;

  /* Feedback */
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;

  /* Typography */
  --font-sans: "Inter", "Geist", "Satoshi", system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-xs: .8125rem;   /* 13px */
  --fs-sm: .9375rem;   /* 15px */
  --fs-base: 1rem;     /* 16px */
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: clamp(2.4rem, 5vw, 3.75rem);
  --lh-tight: 1.15;
  --lh-normal: 1.6;

  /* Spacing scale (4px base) */
  --sp-1: .25rem;  --sp-2: .5rem;  --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;   --sp-7: 3rem;   --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  /* Radius */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(13,27,42,.06), 0 1px 3px rgba(13,27,42,.08);
  --shadow: 0 8px 24px rgba(13,27,42,.08);
  --shadow-lg: 0 22px 55px rgba(13,27,42,.14);
  --shadow-brand: 0 18px 40px rgba(27,95,170,.28);

  /* Layout */
  --container: 1200px;
  --container-wide: 1360px;
  --header-h: 100px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .35s;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070c15;
  --bg-subtle: #0c1524;
  --bg-elevated: #101c2e;
  --surface: #0e1929;
  --border: #1e2f47;
  --text: #eef4fb;
  --text-muted: #a9bbd2;
  --text-faint: #7185a1;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 10px 30px rgba(0,0,0,.5);
  --shadow-lg: 0 26px 60px rgba(0,0,0,.6);
  --grad-glow: radial-gradient(60% 60% at 50% 0%, rgba(56,189,248,.14) 0%, rgba(56,189,248,0) 70%);
}

/* ---------------------------------------------------------------------
   2. BASE / RESET
--------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul[role="list"] { list-style: none; padding: 0; }

h1, h2, h3, h4 { line-height: var(--lh-tight); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
p  { color: var(--text-muted); }

:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brand-500); color: #fff; }

/* Skip link for keyboard/screen-reader users */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--brand-600); color: #fff; padding: .75rem 1.25rem;
  border-radius: var(--radius-sm); transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
--------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.container--wide { max-width: var(--container-wide); }

.section { padding-block: var(--sp-9); position: relative; }
.section--tight { padding-block: var(--sp-8); }
.section--subtle { background: var(--bg-subtle); }

.section__head { max-width: 720px; margin: 0 auto var(--sp-7); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-500);
  background: color-mix(in srgb, var(--brand-500) 12%, transparent);
  padding: .4rem .9rem; border-radius: var(--radius-pill); margin-bottom: var(--sp-4);
}
[data-theme="dark"] .eyebrow { color: var(--accent-500); }
.section__title { margin-bottom: var(--sp-3); }
.section__lead { font-size: var(--fs-md); color: var(--text-muted); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------------------------------------------------------------
   4. BUTTONS
--------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem; font-size: var(--fs-sm); font-weight: 600;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad-accent); box-shadow: var(--shadow-brand); }
.btn--ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-500); box-shadow: none; }
.btn--light { background: #fff; color: var(--brand-700); }
.btn--lg { padding: 1rem 2rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------------
   5. HEADER / NAV / MEGA MENU
--------------------------------------------------------------------- */
/* Top bar (contact strip above the header) */
.topbar {
  background: var(--grad-brand);
  color: #fff;
  font-size: var(--fs-xs);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3) var(--sp-5); min-height: 42px; flex-wrap: wrap; padding-block: .35rem;
}
.topbar__tag { color: rgba(255,255,255,.82); letter-spacing: .04em; }
.topbar__contact { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.topbar__link {
  display: inline-flex; align-items: center; gap: .45rem;
  color: #fff; font-weight: 500;
}
.topbar__link:hover { color: var(--accent-500); }
.topbar__link svg { width: 15px; height: 15px; opacity: .9; }

.header {
  position: sticky; top: 0; z-index: 1000;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease); padding:15px;
}
.header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex; align-items: center; gap: var(--sp-5);
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; margin-right: auto; }
.brand__logo { height: 84px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.brand__tag { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-500); font-weight: 600; }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem .9rem; font-size: var(--fs-sm); font-weight: 500;
  color: var(--text-muted); border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--brand-500); }
.nav__link[aria-current="page"] { font-weight: 600; }
.nav__link .caret { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav__item.has-mega:hover .caret,
.nav__item.has-mega:focus-within .caret { transform: rotate(180deg); }

/* Mega menu */
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(680px, 90vw);
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: var(--sp-5); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5);
}
.nav__item.has-mega:hover .mega,
.nav__item.has-mega:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.mega__col h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: var(--sp-3); }
.mega__link {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .6rem .7rem; border-radius: var(--radius-sm);
  transition: background .2s var(--ease);
}
.mega__link:hover { background: var(--bg-subtle); }
.mega__ico {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; color: #fff; background: var(--grad-brand);
}
.mega__ico svg { width: 20px; height: 20px; }
.mega__link strong { display: block; font-size: var(--fs-sm); color: var(--text); }
.mega__link span { font-size: var(--fs-xs); color: var(--text-faint); }

.header__actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }

/* Phone shown in the main header row */
.header__phone {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--text); line-height: 1.15;
}
.header__phone svg { width: 26px; height: 26px; color: var(--brand-500); flex-shrink: 0; }
.header__phone .header__phone-label { display: block; font-size: var(--fs-xs); color: var(--text-faint); font-weight: 500; }
.header__phone .header__phone-num { display: block; font-size: var(--fs-md); font-weight: 800; letter-spacing: -.01em; }
.header__phone:hover .header__phone-num { color: var(--brand-500); }

/* Hamburger */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border);
  background: var(--surface); border-radius: var(--radius-sm); position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px; transform: translate(-50%,-50%);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle span::before, .nav-toggle span::after { top: auto; }
.nav-toggle span::before { transform: translate(-50%, -8px); }
.nav-toggle span::after  { transform: translate(-50%, 8px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%,0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translate(-50%,0) rotate(-45deg); }

/* ---------------------------------------------------------------------
   6. HERO
--------------------------------------------------------------------- */
.hero { position: relative; padding-block: var(--sp-9) var(--sp-8); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; background: var(--grad-glow); z-index: -1;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: var(--sp-7);
}
.hero__title { margin-bottom: var(--sp-4); }
.hero__title .grad {
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: var(--fs-md); max-width: 52ch; margin-bottom: var(--sp-5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.hero__stats { display: flex; flex-wrap: wrap; gap: var(--sp-6); }
.stat__num { font-size: var(--fs-xl); font-weight: 800; color: var(--text); }
.stat__label { font-size: var(--fs-xs); color: var(--text-faint); }

.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__badge {
  position: absolute; padding: .75rem 1rem; border-radius: var(--radius);
  background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: .6rem; font-size: var(--fs-xs); font-weight: 600;
}
.hero__badge--tl { top: 18px; left: -18px; animation: float 6s var(--ease) infinite; }
.hero__badge--br { bottom: 24px; right: -14px; animation: float 6s var(--ease) infinite .8s; }
.hero__badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 22%, transparent); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Trust bar / client logo marquee */
.trustbar { border-block: 1px solid var(--border); padding-block: var(--sp-7); background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--surface) 100%); }
.trustbar__title { max-width: 780px; margin-inline: auto; }
.marquee { overflow: hidden; padding-block: var(--sp-3); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee__track { display: flex; align-items: center; gap: var(--sp-5); width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img {
  height: 72px; width: auto; box-sizing: content-box; flex: none;
  padding: 20px 30px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); object-fit: contain;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.marquee img:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--brand-500) 45%, var(--border));
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 600px) {
  .marquee img { height: 52px; padding: 15px 22px; }
  .marquee__track { gap: var(--sp-4); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------------------------------------------------------------------
   7. FEATURE / WHY-CHOOSE CARDS
--------------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--sp-6);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card__ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; background: var(--grad-brand); margin-bottom: var(--sp-4); box-shadow: var(--shadow-brand);
}
.card__ico svg { width: 26px; height: 26px; }
.card__title { margin-bottom: var(--sp-2); font-size: var(--fs-md); }
.card p { font-size: var(--fs-sm); }

/* ---------------------------------------------------------------------
   8. PRODUCT / SERVICE CARDS
--------------------------------------------------------------------- */
.product {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-subtle); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .product__media img { transform: scale(1.07); }
.product__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.product__title { font-size: var(--fs-md); }
.product__body p { font-size: var(--fs-sm); flex: 1; }
.product__link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: var(--fs-sm); color: var(--brand-500); }
.product__link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.product__link:hover svg { transform: translateX(4px); }
.badge-chip { align-self: flex-start; font-size: var(--fs-xs); font-weight: 600; padding: .25rem .7rem; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--brand-500) 12%, transparent); color: var(--brand-500); }

/* ---------------------------------------------------------------------
   9. SPLIT / ABOUT
--------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.checklist { list-style: none; padding: 0; margin: var(--sp-5) 0 0; display: grid; gap: var(--sp-3); }
.checklist li { display: flex; align-items: flex-start; gap: .7rem; font-size: var(--fs-sm); color: var(--text-muted); }
.checklist svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--success); margin-top: 1px; }

/* ---------------------------------------------------------------------
   10. TESTIMONIALS
--------------------------------------------------------------------- */
.quote {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); height: 100%;
}
.quote__stars { color: #f5a623; display: flex; gap: 2px; }
.quote__stars svg { width: 18px; height: 18px; }
.quote__text { font-size: var(--fs-sm); color: var(--text); }
.quote__person { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.quote__person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote__name { font-weight: 700; font-size: var(--fs-sm); }
.quote__role { font-size: var(--fs-xs); color: var(--text-faint); }

/* ---------------------------------------------------------------------
   11. STATS / COUNTERS BAND
--------------------------------------------------------------------- */
.stats-band { background: var(--grad-brand); color: #fff; border-radius: var(--radius-lg); padding: var(--sp-7); }
.stats-band .grid { text-align: center; }
.counter__num { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.03em; }
.counter__label { font-size: var(--fs-sm); opacity: .85; }

/* ---------------------------------------------------------------------
   12. FAQ ACCORDION
--------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: var(--sp-3); }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.35rem; font-weight: 600; font-size: var(--fs-base); color: var(--text); background: transparent;
}
.faq__q .plus { flex-shrink: 0; width: 22px; height: 22px; position: relative; transition: transform .3s var(--ease); }
.faq__q .plus::before, .faq__q .plus::after { content: ""; position: absolute; inset: 50% 0 auto 0; height: 2px; background: var(--brand-500); transform: translateY(-50%); }
.faq__q .plus::after { transform: translateY(-50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq__item.is-open .plus::after { transform: translateY(-50%) rotate(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a p { padding: 0 1.35rem 1.25rem; font-size: var(--fs-sm); }

/* ---------------------------------------------------------------------
   13. GALLERY
--------------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-subtle); cursor: pointer; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(7,12,21,.82)); color: #fff; font-size: var(--fs-sm); font-weight: 600;
  transform: translateY(6px); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.gallery__item:hover figcaption { transform: translateY(0); opacity: 1; }
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-bottom: var(--sp-6); }
.filter-btn { padding: .55rem 1.2rem; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); transition: all .2s var(--ease); }
.filter-btn.is-active, .filter-btn:hover { background: var(--brand-600); color: #fff; border-color: transparent; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 3000; display: none; place-items: center; padding: 4vw; background: rgba(7,12,21,.9); backdrop-filter: blur(6px); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 20px; right: 24px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.5rem; }

/* ---------------------------------------------------------------------
   14. BLOG
--------------------------------------------------------------------- */
.post {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post__media { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-subtle); }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.post__meta { display: flex; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--text-faint); }
.post__title { font-size: var(--fs-md); }
.post__body p { font-size: var(--fs-sm); flex: 1; }

/* ---------------------------------------------------------------------
   15. CTA BAND
--------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--grad-brand); color: #fff; padding: var(--sp-8); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--grad-glow); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: var(--sp-3); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 60ch; margin-inline: auto; margin-bottom: var(--sp-5); }
.cta-band .hero__cta { justify-content: center; margin-bottom: 0; }

/* ---------------------------------------------------------------------
   16. FORMS
--------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; font: inherit; font-size: var(--fs-sm);
  color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 18%, transparent);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field__error { font-size: var(--fs-xs); color: var(--danger); display: none; }
.field.is-invalid .field__error { display: block; }
.form__note { font-size: var(--fs-xs); color: var(--text-faint); }
.form-alert { display: none; padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 600; }
.form-alert.is-visible { display: block; }
.form-alert--success { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.form-alert--error { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); display: flex; gap: var(--sp-4); align-items: flex-start; }
.info-card__ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad-brand); }
.info-card__ico svg { width: 22px; height: 22px; }
.info-card h4 { font-size: var(--fs-sm); margin-bottom: .25rem; }
.info-card a, .info-card p { font-size: var(--fs-sm); color: var(--text-muted); }
.info-card a:hover { color: var(--brand-500); }

/* Spec table (product detail pages) */
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th, .spec-table td { text-align: left; padding: .85rem .5rem; vertical-align: top; }
.spec-table th { color: var(--text-faint); font-weight: 600; width: 40%; }
.spec-table td { color: var(--text); font-weight: 500; }

/* ---------------------------------------------------------------------
   17. PAGE HEADER (interior pages)
--------------------------------------------------------------------- */
.page-hero { position: relative; padding-block: var(--sp-8) var(--sp-7); text-align: center; overflow: hidden; background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--grad-glow); }
.page-hero > * { position: relative; }
.page-hero h1 { font-size: var(--fs-3xl); margin-bottom: var(--sp-3); }
.page-hero p { max-width: 56ch; margin-inline: auto; font-size: var(--fs-md); }
.breadcrumb { display: flex; justify-content: center; gap: .5rem; margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--text-faint); list-style: none; padding: 0; flex-wrap: wrap; }
.breadcrumb li::after { content: "/"; margin-left: .5rem; color: var(--text-faint); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a:hover { color: var(--brand-500); }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------------
   18. FOOTER
--------------------------------------------------------------------- */
.footer { background: var(--bg-subtle); border-top: 1px solid var(--border); padding-block: var(--sp-8) var(--sp-5); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-6); }
.footer__brand p { font-size: var(--fs-sm); margin: var(--sp-4) 0; max-width: 34ch; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); transition: all .2s var(--ease); }
.footer__social a:hover { background: var(--brand-600); color: #fff; border-color: transparent; transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__col h4 { font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: .7rem; }
.footer__col a, .footer__col li { font-size: var(--fs-sm); color: var(--text-muted); }
.footer__col a:hover { color: var(--brand-500); }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer__contact svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--brand-500); margin-top: 2px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--text-faint); }
.footer__bottom a:hover { color: var(--brand-500); }

/* ---------------------------------------------------------------------
   19. FLOATING ELEMENTS
--------------------------------------------------------------------- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--brand-600); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-brand); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease); z-index: 900; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-700); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }

.wa-float { position: fixed; left: 22px; bottom: 22px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37,211,102,.4); z-index: 900; transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* Preloader */
.preloader { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; background: var(--bg); transition: opacity .5s var(--ease), visibility .5s; }
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__spinner { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--brand-500); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------
   20. SCROLL-REVEAL ANIMATIONS
--------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }
[data-reveal-delay="5"] { transition-delay: .5s; }

/* ---------------------------------------------------------------------
   21. RESPONSIVE  (mobile-first breakpoints)
--------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 560px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg-elevated);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform .35s var(--ease); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; padding: var(--sp-4); gap: var(--sp-1); }
  .nav__link { padding: .9rem 1rem; font-size: var(--fs-base); border-radius: var(--radius-sm); }
  .nav__link:hover { background: var(--bg-subtle); }
  .mega { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: 0; border-left: 2px solid var(--border); border-radius: 0;
    grid-template-columns: 1fr; padding: var(--sp-2) 0 var(--sp-2) var(--sp-4); margin-left: var(--sp-4);
    width: auto; display: none; }
  .nav__item.has-mega.is-open .mega { display: grid; }
  .nav__item.has-mega .caret { margin-left: auto; }
  .nav-toggle { display: block; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
}

@media (max-width: 1024px) {
  .header__phone { display: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .header { padding: 8px 0; }
  .brand__logo { height: 48px; }
  .topbar { font-size: 12px; }
  .topbar__tag { display: none; }
  .topbar__inner { justify-content: center; gap: .3rem 1.1rem; padding-block: .4rem; min-height: 0; }
  .topbar__link { gap: .35rem; }
  .topbar__link svg { width: 14px; height: 14px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: var(--sp-8); }
  .form__row { grid-template-columns: 1fr; }
  .stats-band .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  /* Compact, uncluttered phone header: [logo] .......... [Quote] [menu] */
  .header__actions { gap: var(--sp-2); }
  .header__actions .btn--primary { padding: .55rem .9rem; font-size: var(--fs-sm); }
  .topbar__contact { flex-direction: column; gap: .1rem; }
  .topbar__inner { padding-block: .45rem; }
}

@media (max-width: 560px) {
  .container { padding-inline: var(--sp-4); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .hero__stats { gap: var(--sp-4); }
  .brand__text { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__badge { display: none; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
}

/* ===================== BLOG ARTICLE / PROSE ===================== */
.container--narrow { max-width: 820px; }
.post-article__media { margin-bottom: var(--sp-6); }
.post-article__media img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); display: block; }
.prose { color: var(--text); font-size: 1.05rem; line-height: 1.8; }
.prose > p { margin: 0 0 1.15rem; }
.prose > h2 { font-size: 1.4rem; line-height: 1.3; margin: 2.2rem 0 .85rem; color: var(--text); font-weight: 700; }
.prose > ul { margin: 0 0 1.3rem; padding-left: 1.25rem; display: grid; gap: .5rem; }
.prose > ul.checklist--plain { list-style: disc; }
.prose > ul.checklist--plain li { padding: 0; }
.prose a { color: var(--brand-600); text-decoration: underline; }

/* E-Brochure QR download card */
.qr-brochure { display: flex; flex-direction: column; align-items: center; gap: var(--sp-5); }
.qr-brochure__card {
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
  padding: 1.75rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.qr-brochure__card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad-accent);
}
.qr-brochure__img { width: 224px; height: 224px; border-radius: var(--radius-sm); }
.qr-brochure__hint {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted);
}
.qr-brochure__hint svg { width: 18px; height: 18px; color: var(--brand-500); }
@media (max-width: 520px) { .qr-brochure__img { width: 180px; height: 180px; } }

/* Footer brochure QR card */
.footer__qr {
  display: inline-flex; align-items: center; gap: .85rem; margin-top: var(--sp-5);
  padding: .7rem .9rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.footer__qr:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand-500) 40%, var(--border)); }
.footer__qr img { width: 68px; height: 68px; flex: none; border-radius: 8px; }
.footer__qr-text { display: flex; flex-direction: column; line-height: 1.35; }
.footer__qr-text strong { color: var(--text); font-size: var(--fs-sm); font-weight: 700; }
.footer__qr-text span { color: var(--text-faint); font-size: var(--fs-xs); }

/* ISO certificate gallery */
.iso-certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); max-width: 920px; margin-inline: auto; }
.iso-cert {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--sp-4); box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.iso-cert:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand-500) 40%, var(--border)); }
.iso-cert img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.iso-cert__label { display: block; margin-top: .85rem; font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); }
@media (max-width: 640px) { .iso-certs { grid-template-columns: 1fr; } }
