/*
Theme Name: Fortomo Lighting
Theme URI: https://ledlighting-th.com
Author: FORTOMO Dev Team
Author URI: https://ledlighting-th.com
Description: Custom bilingual (EN/TH) corporate showcase theme for FORTOMO LED Lighting. Built for the ledlighting-th.com delivery, referencing rablighting.com structure: product catalog, solutions, certifications and lead capture.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: fortomo
Tags: custom-colors, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --navy-950: #07111f;
  --navy-900: #0b1d33;
  --navy-800: #10263f;
  --navy-700: #16334f;
  --blue-500: #365d8e;
  --blue-600: #2b4d75;
  --blue-400: #4f7fae;
  --amber-500: #f5a623;
  --amber-400: #ffb84d;
  --amber-600: #d98c0f;
  --white: #ffffff;
  --bg-soft: #f4f6f9;
  --bg-card: #ffffff;
  --text: #1a2733;
  --muted: #5a6b7c;
  --line: #e3e8ee;
  --green: #2e9e6b;
  --shadow-sm: 0 2px 8px rgba(11, 29, 51, .08);
  --shadow-md: 0 10px 30px rgba(11, 29, 51, .12);
  --shadow-lg: 0 20px 50px rgba(11, 29, 51, .18);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-800); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-500); }
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  line-height: 1.25;
  color: var(--navy-900);
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--amber-500); color: var(--navy-950);
  padding: 10px 18px; font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: #dbe4ee; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head .eyebrow {
  display: inline-block; color: var(--blue-500); font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin-bottom: 10px;
}
.section--dark .eyebrow { color: var(--amber-400); }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section--dark .section-head p { color: #a9bacb; }
.section-head--left p { margin-bottom: 0; }

.grid { display: grid; gap: 24px; }
.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 {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue-500); color: var(--white); box-shadow: 0 6px 18px rgba(54, 93, 142, .35); }
.btn--primary:hover { background: var(--blue-600); color: var(--white); box-shadow: 0 8px 24px rgba(54, 93, 142, .45); }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.btn--dark { background: var(--navy-900); color: var(--white); }
.btn--dark:hover { background: var(--navy-700); color: var(--white); }
.btn--outline { border-color: var(--blue-500); color: var(--blue-500); background: transparent; }
.btn--outline:hover { background: var(--blue-500); color: var(--white); }
.btn--sm { padding: 10px 20px; font-size: .85rem; }

/* ==========================================================================
   5. Top bar
   ========================================================================== */
.topbar {
  background: var(--navy-950); color: #9fb2c6; font-size: .8rem;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar a { color: #cfdcea; }
.topbar a:hover { color: var(--amber-400); }
.topbar__contacts { display: flex; gap: 20px; align-items: center; }
.topbar__contacts span { display: inline-flex; align-items: center; gap: 6px; }
.lang-switcher, .topbar__lang ul, .topbar__lang {
  display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,.08);
  border-radius: 999px; padding: 3px; margin: 0; list-style: none;
}
.lang-switcher .lang-item, .topbar__lang .lang-item, .topbar__lang > li {
  padding: 3px 12px; border-radius: 999px; font-weight: 700; letter-spacing: .04em; color: #cfdcea;
  list-style: none; font-size: .8rem;
}
.lang-switcher .lang-item:hover, .topbar__lang .lang-item:hover { color: var(--white); text-decoration: none; }
.lang-switcher .lang-item.current-lang, .topbar__lang .lang-item.current-lang, .topbar__lang > li.current-lang {
  background: var(--blue-500); color: var(--white);
}
.lang-switcher .lang-item a, .topbar__lang .lang-item a, .topbar__lang > li a { color: inherit; }

/* ==========================================================================
   6. Header & navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  box-shadow: 0 1px 0 var(--line); transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 42px; width: auto; }
.brand .custom-logo { height: 42px; width: auto; }
.brand__logos-extra { display: inline-flex; align-items: center; }
.brand__logos-extra img { height: 34px; width: auto; }
.brand__logos-extra img + img { border-left: 1px solid var(--line); margin-left: 16px; padding-left: 16px; }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name strong { font-size: 1.25rem; color: var(--navy-900); letter-spacing: .02em; }
.brand__name span { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .18em; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 12px 16px; font-weight: 600; font-size: .95rem;
  color: var(--navy-900); border-radius: 8px;
}
.main-nav a:hover { color: var(--amber-600); background: var(--bg-soft); }
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 250px; padding: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); display: none; flex-direction: column; gap: 0; z-index: 50;
}
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { padding: 9px 12px; font-size: .9rem; font-weight: 500; }
.main-nav .menu-item--cta a { background: var(--blue-500); color: var(--white); border-radius: 999px; margin-left: 10px; }
.main-nav .menu-item--cta a:hover { background: var(--blue-600); color: var(--white); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-close { display: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   7. Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(245, 166, 35, .22), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(46, 158, 107, .14), transparent 60%),
    linear-gradient(155deg, var(--navy-950) 20%, var(--navy-800) 85%);
}
.hero::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.5px);
  background-size: 26px 26px;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 84px 0 72px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(245,166,35,.15);
  border: 1px solid rgba(245,166,35,.4); color: var(--amber-400);
  padding: 7px 16px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--amber-400); }
.hero__sub { color: #b7c6d6; font-size: 1.08rem; max-width: 56ch; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__art { position: relative; z-index: 1; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }

.stats-band { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.stats-band__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 12px; text-align: center; border-left: 1px solid rgba(255,255,255,.08); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 1.9rem; color: var(--amber-400); line-height: 1.1; }
.stat span { color: #9fb2c6; font-size: .85rem; letter-spacing: .04em; }

/* ==========================================================================
   8. Category cards
   ========================================================================== */
.cat-card {
  display: flex; flex-direction: column; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.cat-card__media { background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); padding: 8px; }
.cat-card__media svg { width: 100%; height: 150px; }
.cat-card__body { padding: 20px 22px 22px; }
.cat-card__body h3 { margin-bottom: 6px; font-size: 1.05rem; }
.cat-card__body p { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.cat-card__link { font-weight: 700; font-size: .88rem; color: var(--blue-500); }
.cat-card:hover .cat-card__link { color: var(--blue-600); }

/* ==========================================================================
   9. Product cards
   ========================================================================== */
.product-card {
  display: flex; flex-direction: column; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card__media { position: relative; background: #fff; }
.product-card__media img, .product-card__media svg { width: 100%; height: 190px; object-fit: contain; padding: 18px; }
.product-card__flag {
  position: absolute; top: 12px; left: 12px; background: var(--blue-500); color: var(--white);
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.product-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-500); }
.product-card__body h3 { font-size: 1.02rem; margin: 0; }
.product-card__body h3 a { color: inherit; }
.product-card__body h3 a:hover { color: var(--amber-600); }
.product-card__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.spec-chip {
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--navy-800);
  font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}

/* ==========================================================================
   10. Value props
   ========================================================================== */
.value-card { text-align: center; padding: 34px 26px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); }
.value-card svg { width: 52px; height: 52px; margin: 0 auto 16px; }
.value-card h3 { font-size: 1.05rem; }
.value-card p { color: #a9bacb; font-size: .9rem; margin: 0; }

/* ==========================================================================
   11. Solutions
   ========================================================================== */
.solution-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 250px;
  display: flex; align-items: flex-end; color: var(--white); isolation: isolate;
}
.solution-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-950));
}
.solution-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.2) 1px, transparent 1.5px);
  background-size: 22px 22px;
}
.solution-card__body { padding: 26px; }
.solution-card__body h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 6px; }
.solution-card__body p { color: #b7c6d6; font-size: .88rem; margin: 0 0 12px; }
.solution-card__body a { color: var(--amber-400); font-weight: 700; font-size: .88rem; }

/* ==========================================================================
   12. Certification band
   ========================================================================== */
.cert-band { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cert-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-width: 190px; padding: 18px 22px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
}
.cert-badge svg { width: 44px; height: 44px; }
.cert-badge span { color: #cfdcea; font-size: 1.56rem; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }

/* ==========================================================================
   13. News cards
   ========================================================================== */
.news-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card__media { height: 160px; background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); display: flex; align-items: center; justify-content: center; }
.news-card__media svg { width: 60px; height: 60px; opacity: .9; }
.news-card__body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.news-card__date { font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.news-card__body h3 { font-size: 1.02rem; }
.news-card__body h3 a { color: inherit; }
.news-card__body h3 a:hover { color: var(--amber-600); }
.news-card__body p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }

/* ==========================================================================
   14. CTA band
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); color: var(--white); padding: 52px 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(245,166,35,.25), transparent 60%),
    linear-gradient(140deg, var(--navy-800), var(--navy-950));
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: #b7c6d6; margin: 0; }

/* ==========================================================================
   15. Breadcrumbs & page hero
   ========================================================================== */
.page-hero { background: linear-gradient(150deg, var(--navy-950), var(--navy-800)); color: var(--white); padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: .4; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.5px); background-size: 26px 26px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: #b7c6d6; max-width: 62ch; margin: 0; font-size: 1.05rem; }
.breadcrumbs { font-size: .82rem; color: #8fa2b5; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs a { color: #cfdcea; }
.breadcrumbs a:hover { color: var(--amber-400); }
.breadcrumbs .sep { opacity: .5; }
.site-main .breadcrumbs--light { color: var(--muted); }
.site-main .breadcrumbs--light a { color: var(--navy-800); }
.site-main .breadcrumbs--light a:hover { color: var(--amber-600); }

/* ==========================================================================
   16. Product single
   ========================================================================== */
.product-single { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; padding: 56px 0; }
.product-gallery { position: sticky; top: 110px; align-self: start; }
.product-gallery__main {
  background: linear-gradient(150deg, var(--bg-soft), #e9eef4);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.product-gallery__main svg, .product-gallery__main img { width: 100%; height: auto; }
.product-summary h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 8px; }
.product-summary .product-single__cat { color: var(--amber-600); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.product-summary .lead { color: var(--muted); font-size: 1.02rem; }
.product-highlights { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.product-highlights li { display: flex; gap: 10px; align-items: flex-start; }
.product-highlights svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }

.spec-table { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 0; }
.spec-table tr:nth-child(odd) { background: var(--bg-soft); }
.spec-table th, .spec-table td { padding: 12px 18px; text-align: left; font-size: .92rem; }
.spec-table th { width: 220px; color: var(--navy-900); font-weight: 700; }
.spec-table td { color: var(--muted); }

.product-sections { border-top: 1px solid var(--line); padding: 40px 0 56px; display: grid; gap: 36px; }
.product-sections h2 { font-size: 1.4rem; }
.product-sections .prose img { border-radius: var(--radius); }
.prose { color: #3d4d5c; }
.prose h2, .prose h3 { color: var(--navy-900); }
.prose a { color: var(--amber-600); font-weight: 600; }

.related h2 { margin-bottom: 24px; }

/* ==========================================================================
   17. Category / archive grids & filter chips
   ========================================================================== */
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-chip {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 600; font-size: .88rem; color: var(--navy-800); background: var(--white);
}
.filter-chip:hover { border-color: var(--blue-500); color: var(--blue-500); }
.filter-chip.is-active { background: var(--blue-500); border-color: var(--blue-500); color: var(--white); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--navy-800); background: var(--white);
}
.pagination .page-numbers.current { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--blue-500); color: var(--blue-500); }

/* ==========================================================================
   18. About / Solutions pages
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-art { background: linear-gradient(150deg, var(--bg-soft), #e9eef4); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.timeline { display: grid; gap: 0; margin-top: 20px; border-left: 2px solid var(--line); padding-left: 28px; }
.timeline__item { position: relative; padding-bottom: 28px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -37px; top: 5px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--blue-500); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--blue-500);
}
.timeline__item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.timeline__item p { color: var(--muted); font-size: .92rem; margin: 0; }
.timeline__year { font-weight: 800; color: var(--blue-500); font-size: .85rem; letter-spacing: .06em; }

/* ==========================================================================
   19. Contact page & forms
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; padding: 56px 0; }
.info-card { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-card:last-child { border-bottom: 0; }
.info-card svg { flex: 0 0 auto; width: 40px; height: 40px; }
.info-card h3 { font-size: .95rem; margin-bottom: 4px; }
.info-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.info-card a { color: var(--navy-800); font-weight: 600; }
.info-card a:hover { color: var(--amber-600); }

.form-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 1.3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: .85rem; color: var(--navy-900); }
.form-field label .req { color: #d64541; }
.form-field input, .form-field textarea, .form-field select {
  font-family: var(--font); font-size: .95rem; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease; width: 100%;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(54, 93, 142, .18);
}
.form-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.form-status { padding: 14px 18px; border-radius: 10px; font-weight: 600; font-size: .92rem; margin-bottom: 18px; }
.form-status--ok { background: rgba(46, 158, 107, .12); color: var(--green); border: 1px solid rgba(46, 158, 107, .3); }
.form-status--err { background: rgba(214, 69, 65, .1); color: #d64541; border: 1px solid rgba(214, 69, 65, .3); }
.lt-hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ==========================================================================
   20. Content pages / news single / prose
   ========================================================================== */
.entry-content { max-width: 820px; margin: 0 auto; padding: 56px 24px; }
.entry-content .prose > *:first-child { margin-top: 0; }
.entry-meta { color: var(--muted); font-size: .85rem; margin-bottom: 10px; }

/* ==========================================================================
   21. Footer
   ========================================================================== */
.site-footer { background: var(--navy-950); color: #9fb2c6; margin-top: 0; }
.footer-main { padding: 64px 0 48px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-main h4 { color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer-main ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-main a { color: #9fb2c6; font-size: .92rem; }
.footer-main a:hover { color: var(--amber-400); }
.footer-about p { font-size: .92rem; max-width: 34ch; }
.footer-brand { display: inline-flex; align-items: center; background: var(--white); padding: 12px 18px; border-radius: 12px; margin-bottom: 16px; }
.footer-brand svg, .footer-brand img { height: 40px; width: auto; display: block; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.footer-contact svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.footer-bottom a { color: #9fb2c6; }
.footer-bottom a:hover { color: var(--amber-400); }

/* Back to top */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 46px; height: 46px;
  border-radius: 50%; border: 0; background: var(--navy-900); color: var(--white);
  cursor: pointer; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; display: flex; align-items: center; justify-content: center;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--blue-500); color: var(--white); transform: translateY(-3px); }

/* ==========================================================================
   22. Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   23. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .hero__inner { grid-template-columns: 1fr; padding: 64px 0 56px; }
  .hero__art { max-width: 420px; }
  .product-single { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: static; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 52px 0; }
  .topbar__contacts span--phone { display: none; }
  .topbar__contacts span:last-child { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats-band__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.08); }
  .stat:nth-child(-n+2) { border-top: 0; }

  .nav-toggle { display: block; }
  .brand__logos-extra { display: none; }
  .nav-close { display: block; position: absolute; top: 22px; right: 24px; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--navy-900); }
  .main-nav {
    position: fixed; inset: 0; top: 0; background: var(--white); z-index: 200;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; padding: 90px 28px 40px;
  }
  .main-nav.is-open { transform: none; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 14px 10px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 18px; }
  .main-nav .menu-item--cta a { display: inline-block; margin: 18px 0 0; }

  .cta-band { padding: 36px 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
}

/* ==========================================================================
   24. WordPress core alignment (belt & braces)
   ========================================================================== */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .82rem; color: var(--muted); text-align: center; }
.sticky { display: block; }

/* ==========================================================================
   25. Hero slider (immersive)
   ========================================================================== */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility .9s ease; pointer-events: none;
}
.hero-slide.is-active { position: relative; opacity: 1; visibility: visible; pointer-events: auto; }
.hero-slide__scene {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(245, 166, 35, .22), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(79, 127, 174, .22), transparent 60%),
    linear-gradient(155deg, var(--navy-950) 20%, var(--navy-800) 85%);
}
.hero-slide--b .hero-slide__scene {
  background:
    radial-gradient(900px 480px at 15% 0%, rgba(245, 166, 35, .28), transparent 55%),
    radial-gradient(900px 500px at 110% 100%, rgba(22, 51, 79, .9), transparent 65%),
    linear-gradient(200deg, var(--navy-950) 10%, #142f4d 90%);
}
.hero-slide--c .hero-slide__scene {
  background:
    radial-gradient(1000px 520px at 90% 10%, rgba(79, 127, 174, .3), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, rgba(245, 166, 35, .16), transparent 60%),
    linear-gradient(140deg, #081426 0%, var(--navy-800) 100%);
}
.hero-slide__scene::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.5px);
  background-size: 26px 26px;
}
.hero-slide__inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 48px; align-items: center; padding: 76px 0 64px;
}
.hero-slide__art { position: relative; z-index: 1; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
.hero-slide.is-active .hero-slide__art { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(.94) translateY(10px); }
  to   { transform: scale(1.02) translateY(0); }
}
.hero-slide__copy h1 { color: var(--white); margin-bottom: 18px; }
.hero-slide.is-active .hero__badge { animation: slideUp .7s ease .15s backwards; }
.hero-slide.is-active .hero-slide__copy h1 { animation: slideUp .7s ease .3s backwards; }
.hero-slide.is-active .hero-slide__copy .hero__sub { animation: slideUp .7s ease .45s backwards; }
.hero-slide.is-active .hero-slide__copy .hero__actions { animation: slideUp .7s ease .6s backwards; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero-dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 5; display: flex; justify-content: center; gap: 10px; }
.hero-dot {
  width: 34px; height: 4px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.25); transition: background .3s ease, width .3s ease; padding: 0;
}
.hero-dot.is-active { background: var(--amber-500); width: 52px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
  transition: background .25s ease, border-color .25s ease, transform .2s ease;
}
.hero-arrow:hover { background: var(--amber-500); border-color: var(--amber-500); color: var(--navy-950); }
.hero-arrow--prev { left: 22px; }
.hero-arrow--next { right: 22px; }

/* ==========================================================================
   26. Mega menu (Products)
   ========================================================================== */
.main-nav .menu-item--products { position: static; }
.main-nav .menu-item--products > a::after {
  content: ""; display: inline-block; width: 0; height: 0; margin-left: 6px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; vertical-align: 2px; transition: transform .25s ease;
}
.main-nav .menu-item--products:hover > a::after { transform: rotate(180deg); }
.mega-panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  border-top: 2px solid var(--amber-500);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.main-nav .menu-item--products:hover .mega-panel,
.main-nav .menu-item--products:focus-within .mega-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 20px; padding: 30px 24px 26px; }
.mega-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  transition: background .2s ease, transform .2s ease;
}
.mega-item:hover { background: rgba(255,255,255,.07); transform: translateX(4px); }
.mega-item__icon { flex: 0 0 auto; width: 52px; height: 40px; }
.mega-item__icon svg { width: 100%; height: 100%; }
.mega-item__name { color: #e8eff6; font-size: .88rem; font-weight: 700; line-height: 1.3; }
.mega-item:hover .mega-item__name { color: var(--amber-400); }
.mega-foot {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12);
  padding: 16px 12px 2px; margin-top: 12px;
}
.mega-foot p { color: #9fb2c6; font-size: .85rem; margin: 0; }
.mega-foot a { color: var(--amber-400); font-weight: 700; font-size: .88rem; }
.mega-foot a:hover { color: var(--white); }

/* Nav underline animation */
.main-nav > ul > li > a { position: relative; }
.main-nav > ul > li > a::before {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
  background: var(--amber-500); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.main-nav > ul > li > a:hover::before,
.main-nav > ul > li.current-menu-item > a::before { transform: scaleX(1); }

/* Header compact on scroll */
.header__inner { transition: min-height .3s ease; }
.site-header.is-compact .header__inner { min-height: 60px; }
.site-header.is-compact .brand__logo { height: 36px; }
.site-header.is-compact .brand__logos-extra img { height: 28px; }

/* ==========================================================================
   27. Category tiles (immersive)
   ========================================================================== */
.cat-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: linear-gradient(155deg, var(--navy-800), var(--navy-950));
  transition: transform .25s ease, box-shadow .25s ease;
}
.cat-tile::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.5px);
  background-size: 24px 24px; opacity: .5; pointer-events: none;
}
.cat-tile__art {
  position: absolute; left: 18px; right: 18px; top: 18px; bottom: 34%;
  display: flex; align-items: center; z-index: 1;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.cat-tile__art svg { width: 100%; height: 100%; }
.cat-tile__art img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 10px; box-shadow: 0 10px 30px rgba(3, 10, 20, .45);
}
.cat-tile:hover .cat-tile__art { transform: scale(1.08) translateY(-6px); }
.cat-tile__body {
  position: relative; z-index: 2; padding: 60px 22px 20px; color: var(--white);
  background: linear-gradient(transparent, rgba(7,17,31,.88) 45%);
}
.cat-tile__body h3 { color: var(--white); font-size: 1.08rem; margin-bottom: 4px; }
.cat-tile__count { color: #9fb2c6; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.cat-tile__go {
  position: absolute; right: 18px; bottom: 18px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; background: var(--amber-500); color: var(--navy-950);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
  transform: translateX(-6px); opacity: 0; transition: opacity .3s ease, transform .3s ease;
}
.cat-tile:hover .cat-tile__go { opacity: 1; transform: none; }
.cat-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* ==========================================================================
   28. Product card hover effects
   ========================================================================== */
.product-card { position: relative; }
.product-card__media { display: block; overflow: hidden; }
.product-card__media svg, .product-card__media img {
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.product-card:hover .product-card__media svg,
.product-card:hover .product-card__media img { transform: scale(1.07); }
.product-card:hover { border-color: rgba(245, 166, 35, .45); }

/* ==========================================================================
   29. Featured products carousel
   ========================================================================== */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.carousel-head .section-head { margin-bottom: 0; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--navy-900);
  background: transparent; color: var(--navy-900); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.carousel-btn:hover { background: var(--navy-900); color: var(--white); }
.carousel-btn:active { transform: scale(.94); }
.product-carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scrollbar-width: none;
}
.product-carousel::-webkit-scrollbar { display: none; }
.product-carousel .product-card { scroll-snap-align: start; }

/* ==========================================================================
   30. Counters & marquee
   ========================================================================== */
.stat b { font-variant-numeric: tabular-nums; }
.cert-marquee { overflow: hidden; position: relative; }
.cert-marquee::before, .cert-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.cert-marquee::before { left: 0; background: linear-gradient(90deg, var(--navy-950), transparent); }
.cert-marquee::after { right: 0; background: linear-gradient(-90deg, var(--navy-950), transparent); }
.cert-marquee__track {
  display: flex; gap: 14px; width: max-content;
  animation: marquee 28s linear infinite;
}
.cert-marquee:hover .cert-marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cert-marquee .cert-badge { min-width: 210px; }

/* ==========================================================================
   31. Resources strip
   ========================================================================== */
.res-card {
  display: flex; flex-direction: column; gap: 12px; padding: 28px 26px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.res-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(54,93,142,.4); }
.res-card svg { width: 44px; height: 44px; }
.res-card h3 { font-size: 1.02rem; margin: 0; }
.res-card p { color: var(--muted); font-size: .88rem; margin: 0; flex: 1; }
.res-card span { color: var(--blue-500); font-weight: 700; font-size: .88rem; }
.res-card:hover span { color: var(--blue-600); }

/* ==========================================================================
   32. Product filter bar
   ========================================================================== */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 26px; }
.filter-bar label { font-weight: 700; font-size: .85rem; color: var(--navy-900); }
.filter-bar select {
  font-family: var(--font); font-size: .9rem; color: var(--navy-900);
  padding: 9px 38px 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23365d8e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease;
}
.filter-bar select:hover { border-color: var(--blue-400); }
.filter-bar select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(54,93,142,.15); }
.filter-result { font-size: .85rem; color: var(--muted); margin-left: auto; }
.product-card.is-hidden { display: none; }

/* ==========================================================================
   33. Applications chips & product CTA band
   ========================================================================== */
.app-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.app-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--navy-800); font-size: .82rem; font-weight: 600;
}
.app-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber-500); }

/* ==========================================================================
   34. Button sheen
   ========================================================================== */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .55s ease;
}
.btn--primary:hover::after { left: 130%; }

/* Reveal stagger */
.reveal { transition-delay: var(--rd, 0ms); }

@media (max-width: 1024px) {
  .product-carousel { grid-auto-columns: calc((100% - 48px) / 3); }
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .hero-slide__inner { grid-template-columns: 1fr; padding: 54px 0 64px; }
  .hero-slide__art { max-width: 340px; }
  .hero-arrow { display: none; }
  .product-carousel { grid-auto-columns: 86%; }
  .mega-panel { display: none; }
  .carousel-head { flex-direction: column; align-items: flex-start; }
  .filter-result { margin-left: 0; width: 100%; }
}

/* ==========================================================================
   35. Premium layer — scroll progress, preloader, cursor light, grain
   ========================================================================== */
:root { --ease-out-soft: cubic-bezier(.22, .61, .36, 1); }

h1, h2 { text-wrap: balance; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300;
  background: linear-gradient(90deg, var(--amber-600), var(--amber-400));
  box-shadow: 0 0 12px rgba(245, 166, 35, .55);
  pointer-events: none;
}

/* Preloader */
.has-preloader body { overflow: hidden; }
.ftm-preloader {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 500;
  display: none; flex-direction: column; gap: 26px; align-items: center; justify-content: center;
  background:
    radial-gradient(700px 380px at 50% 38%, rgba(245, 166, 35, .14), transparent 62%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
}
html.has-preloader .ftm-preloader { display: flex; }
.ftm-preloader.is-done { opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility .55s ease; }
.ftm-preloader > svg, .ftm-preloader > img { height: 60px; width: auto; animation: preloaderGlow 1.1s ease-in-out infinite alternate; }
@keyframes preloaderGlow {
  from { filter: drop-shadow(0 0 0 rgba(245, 166, 35, 0)); transform: scale(.985); }
  to   { filter: drop-shadow(0 0 22px rgba(245, 166, 35, .6)); transform: scale(1); }
}
.ftm-preloader__bar { width: 190px; height: 2px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ftm-preloader__bar i {
  display: block; height: 100%; width: 42%;
  background: linear-gradient(90deg, transparent, var(--amber-500), transparent);
  animation: loaderSlide 1.05s ease-in-out infinite;
}
@keyframes loaderSlide { from { transform: translateX(-110%); } to { transform: translateX(340%); } }
/* Safety: even if JS never runs, the loader hides itself. */
.ftm-preloader { animation: forceHide 0s 3.2s forwards; }
@keyframes forceHide { to { opacity: 0; visibility: hidden; } }

/* Cursor light — "light follows the hand" (fine pointers only) */
#cursor-glow {
  position: fixed; top: 0; left: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border-radius: 50%; pointer-events: none; z-index: 299; opacity: 0;
  background: radial-gradient(circle, rgba(245, 166, 35, .11), rgba(245, 166, 35, .045) 38%, transparent 68%);
  mix-blend-mode: screen; will-change: transform; transition: opacity .5s ease;
}
#cursor-glow.is-on { opacity: 1; }
@media (pointer: coarse) { #cursor-glow { display: none; } }

/* Film grain */
.ftm-grain {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 298;
  pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ==========================================================================
   36. Hero ambience: aurora, LED strip title, breathing light, glass stats
   ========================================================================== */
.hero-slide__scene::before {
  content: ""; position: absolute; width: 62vw; height: 62vw; right: -16vw; top: -32vw; z-index: 0;
  background:
    radial-gradient(circle at 32% 32%, rgba(245, 166, 35, .17), transparent 58%),
    radial-gradient(circle at 72% 72%, rgba(79, 127, 174, .2), transparent 58%);
  filter: blur(46px);
  animation: aurora 16s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes aurora {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-7vw, 5vw, 0) scale(1.18); }
}

.hero-slide__copy h1 { position: relative; padding-bottom: 16px; }
.hero-slide__copy h1::after {
  content: ""; position: absolute; left: 2px; bottom: 0; height: 3px; width: 130px; border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-500), rgba(245, 166, 35, 0));
  box-shadow: 0 0 16px rgba(245, 166, 35, .75);
}
.hero-slide.is-active .hero-slide__copy h1::after { animation: stripIn .8s var(--ease-out-soft) .8s backwards; }
@keyframes stripIn { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

.hero-slide.is-active .hero-slide__art { animation: kenburns 7s ease-out forwards, breathe 4.5s ease-in-out 1.2s infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .88; } }

.hero__badge { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.stats-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, .16);
}

/* ==========================================================================
   37. 3D tilt cards + glare (driven by JS setting --gx/--gy)
   ========================================================================== */
.tilt-able { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease-out-soft); will-change: transform; }
.tilt-glare {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3; pointer-events: none;
  opacity: 0; transition: opacity .35s ease; border-radius: inherit;
  background: radial-gradient(460px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .15), transparent 46%);
}
.product-card, .cat-tile { position: relative; }
.product-card:hover .tilt-glare, .cat-tile:hover .tilt-glare { opacity: 1; }

/* Light sweep across category tiles */
.cat-tile::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 46%; z-index: 2;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: skewX(-18deg); transition: left .75s ease; pointer-events: none;
}
.cat-tile:hover::before { left: 135%; }

/* ==========================================================================
   38. To-top progress ring, scrollbar, selection, footer hairline
   ========================================================================== */
.to-top { overflow: visible; }
.to-top .tt-ring { position: absolute; top: -3px; left: -3px; width: 52px; height: 52px; transform: rotate(-90deg); }
.to-top .tt-ring circle { fill: none; stroke-width: 2.5; }
.to-top .tt-ring .tt-ring__track { stroke: rgba(255, 255, 255, .18); }
.to-top .tt-ring .tt-ring__bar {
  stroke: var(--amber-500); stroke-linecap: round;
  stroke-dasharray: 131.95; stroke-dashoffset: 131.95;
}

::selection { background: var(--amber-500); color: var(--navy-950); }
html { scrollbar-color: var(--navy-800) var(--bg-soft); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--navy-800); border-radius: 8px; border: 3px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--blue-500); }

.site-footer { position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 12%, rgba(245, 166, 35, .75), transparent 88%);
}

/* Section eyebrow soft glow */
.section-head .eyebrow { text-shadow: 0 0 18px rgba(54, 93, 142, .25); }
.section--dark .section-head .eyebrow { text-shadow: 0 0 18px rgba(245, 166, 35, .35); }

/* ==========================================================================
   39. Reduced motion — switch the premium layer off gracefully
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ftm-preloader > svg, .ftm-preloader > img, .ftm-preloader__bar i { animation: none; }
  .hero-slide__scene::before { animation: none; }
  .hero-slide.is-active .hero-slide__art { animation: none; }
  .cert-marquee__track { animation-duration: 60s; }
}

/* ==========================================================================
   40. Mobile refinements — compact topbar, hero first screen, to-top
   ========================================================================== */
.news-card__media { height: 170px; }
.news-card__media svg { width: 100%; height: 100%; }

@media (max-width: 768px) {
  /* Topbar: language switcher only, centered, no wrapping. */
  .topbar__inner { justify-content: center; }
  .topbar__contacts { display: none; }
  .topbar__lang ul, .lang-switcher { flex-wrap: nowrap; }
  .lang-switcher .lang-item, .topbar__lang > li { padding: 4px 14px; white-space: nowrap; font-size: .78rem; }

  /* Hero first screen: tighter copy, art peeking above the fold. */
  .hero-slide__inner { padding: 38px 0 54px; gap: 24px; }
  .hero__badge { font-size: .7rem; padding: 6px 13px; }
  .hero__sub {
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
    overflow: hidden; font-size: .95rem;
  }
  .hero-slide__art { max-width: 290px; margin: -4px auto 0; }
  .hero__actions .btn { flex: 1 1 45%; padding-left: 10px; padding-right: 10px; }
  .stats-band .stat b { font-size: 1.5rem; }

  /* To-top: plain solid button, no progress ring, safe-area aware. */
  .to-top { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; }
  .to-top .tt-ring { display: none; }
}

/* ==========================================================================
   41. Generated photography integration
   ========================================================================== */
.hero-slide__art img {
  width: 100%; max-width: 460px; border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08);
}
.hero-slide.is-active .hero-slide__art img { animation: kenburns 8s ease-out forwards; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__media img { mix-blend-mode: multiply; }

/* About page check-list (client 2026-10-29): ✅ items, no default bullets */
.check-list { list-style: none; margin-left: 0; padding-left: 0; }
.check-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.check-list li:last-child { border-bottom: 0; }

/* ==========================================================================
   34. About "Our History" — ascending arrow timeline (client layout 2026-10-29)
   ========================================================================== */
.journey-arrow { position: relative; height: 480px; margin-top: 26px; }
.journey-arrow__beam { position: absolute; inset: 0; width: 100%; height: 100%; }
.journey-node { position: absolute; transform: translate(-50%, -50%); width: 64px; z-index: 2; }
.journey-node__year {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: #eef3f9; color: var(--navy-950);
  font-weight: 800; font-size: .92rem; letter-spacing: .02em;
  box-shadow: 0 10px 26px rgba(3, 10, 20, .55);
}
.journey-node p {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 180px; margin: 0; text-align: center;
  font-size: .8rem; line-height: 1.55; color: #a9bacd;
}
.journey-node--above p { bottom: calc(100% + 16px); }
.journey-node--below p { top: calc(100% + 16px); }
@media (max-width: 1200px) {
  .journey-node p { width: 150px; font-size: .76rem; }
}
@media (max-width: 1023px) {
  .journey-arrow { height: auto; }
  .journey-arrow__beam { display: none; }
  .journey-node,
  .journey-node--above,
  .journey-node--below { position: relative; left: auto !important; top: auto !important; transform: none; display: flex; align-items: center; gap: 16px; width: auto; text-align: left; margin: 0 0 20px; }
  .journey-node__year { flex: 0 0 auto; }
  .journey-node p,
  .journey-node--above p,
  .journey-node--below p { position: static; transform: none; width: auto; margin: 0; text-align: left; }
}
