/* Kunplast — static site stylesheet (light theme by default, with a dark mode toggle) */
:root {
  /* fixed brand colors — same in both themes (used for dark bands: hero/topbar/footer/page-hero) */
  --navy: #14274a;
  --navy-light: #1f3864;
  --orange: #f0631f;
  --orange-dark: #d6501a;

  /* theme-flippable surface + text tokens (light defaults) */
  --surface: #ffffff;
  --surface-alt: #f4f6f9;
  --card: #ffffff;
  --border: #e2e6ec;
  --heading: #14274a;
  --text: #2b2f38;
  --text-light: #6b7280;
  --icon-bg: #fdece2;

  --radius: 10px;
  --shadow: 0 4px 18px rgba(20, 39, 74, 0.08);
  --font: 'Poppins', Arial, Helvetica, sans-serif;
}

[data-theme="dark"] {
  --surface: #0b1220;
  --surface-alt: #101a2e;
  --card: #121b30;
  --border: #253251;
  --heading: #eef2fb;
  --text: #c7d0e6;
  --text-light: #8a95b3;
  --icon-bg: rgba(240, 99, 31, 0.18);
  --shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  transition: background .2s ease, color .2s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding-left: 1.2rem; }
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #cdd7ea;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cdd7ea; }
.topbar a:hover { color: var(--orange); }
.topbar .contact-line { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar .contact-line span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header / nav ---------- */
header.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .2s ease, border-color .2s ease;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 14px;
}
.logo img { height: 46px; }
nav.main-nav { display: flex; align-items: center; gap: 6px; }
nav.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
nav.main-nav > ul > li { position: relative; }
nav.main-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--heading);
  border-radius: 6px;
}
nav.main-nav > ul > li > a:hover,
nav.main-nav > ul > li.active > a { color: var(--orange); }
.cta-btn {
  background: var(--orange);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 30px;
  font-weight: 600;
}
.cta-btn:hover { background: var(--orange-dark); }

/* theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  cursor: pointer;
  color: var(--heading);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* dropdown mega menu */
li.has-dropdown > a::after { content: " \25BE"; font-size: 0.7em; }
.dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 20px;
  width: min(96vw, 980px);
  border: 1px solid var(--border);
}
li.has-dropdown:hover .dropdown-panel,
li.has-dropdown.open .dropdown-panel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.dropdown-panel .col h4 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--orange);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  line-height: 1.3;
}
.dropdown-panel .col-links {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
}
.dropdown-panel .col-links::-webkit-scrollbar { width: 5px; }
.dropdown-panel .col-links::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.dropdown-panel .col a {
  display: block;
  padding: 4px 0;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.35;
}
.dropdown-panel .col a:hover { color: var(--orange); padding-left: 3px; }

.mobile-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--heading); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 70px 0;
}
.hero .container { display: grid; grid-template-columns: 0.95fr 1.15fr; gap: 40px; align-items: stretch; }
.hero .eyebrow { color: var(--orange); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; }
.hero h1 { font-size: 2.5rem; line-height: 1.2; margin: 12px 0 18px; }
.hero p { color: #cdd7ea; font-size: 1.05rem; margin-bottom: 26px; max-width: 540px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border: 1.5px solid #ffffff88; color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.hero-stats { display: flex; justify-content: flex-start; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div {
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px 20px;
  min-width: 108px;
}
.hero-stats div strong { display: block; font-size: 1.5rem; color: var(--orange); line-height: 1.2; }
.hero-stats div span { font-size: 0.78rem; color: #cdd7ea; }
.hero-image { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; background: #0e1630; }
.hero-image video, .hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* generic page hero (about/contact/products) */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 42px 0;
}
.page-hero h1 { margin: 6px 0 4px; font-size: 2rem; }
.breadcrumb { font-size: 0.85rem; color: #cdd7ea; }
.breadcrumb a { color: #cdd7ea; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span.sep { margin: 0 6px; color: #6f81a4; }

/* ---------- Sections ---------- */
section { padding: 60px 0; }
section.alt { background: var(--surface-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .eyebrow { color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; }
.section-head h2 { font-size: 1.9rem; margin: 8px 0 10px; color: var(--heading); }
.section-head p { color: var(--text-light); }

/* video / factory tour section */
.video-feature { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.video-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: #000; }
.video-frame video { width: 100%; display: block; }
.video-feature h2 { color: var(--heading); font-size: 1.7rem; margin: 8px 0 14px; }
.video-feature p { color: var(--text-light); }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: var(--text); font-size: 0.94rem; }
.check-list li::before { content: "\2713"; color: var(--orange); font-weight: 700; flex-shrink: 0; }

/* category grid on homepage */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0,0,0,0.14); }
.cat-card h3 { margin: 0 0 4px; color: var(--heading); font-size: 1.15rem; }
.cat-card .count { color: var(--orange); font-size: 0.8rem; font-weight: 600; margin-bottom: 14px; display: block; }
.cat-card ul { list-style: none; padding: 0; margin: 0; }
.cat-card ul li { border-top: 1px dashed var(--border); }
.cat-card ul li:first-child { border-top: none; }
.cat-card ul li a { display: block; padding: 8px 2px; font-size: 0.92rem; color: var(--text); }
.cat-card ul li a:hover { color: var(--orange); padding-left: 4px; }

/* product card grid (related products / listing) */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0,0,0,0.14); }
.product-card .thumb { aspect-ratio: 1 / 1; overflow: hidden; background: #ffffff; display: flex; align-items: center; justify-content: center; padding: 14px; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-card .body { padding: 14px 16px 18px; }
.product-card .cat-tag { font-size: 0.7rem; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.product-card h3 { font-size: 1rem; margin: 6px 0 10px; color: var(--heading); min-height: 44px; }
.product-card .view-link { font-size: 0.85rem; font-weight: 600; color: var(--heading); }
.product-card .view-link:hover { color: var(--orange); }

/* why choose us */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card { text-align: center; padding: 10px; border-radius: var(--radius); transition: transform .25s ease, background .25s ease; }
.why-card:hover { transform: translateY(-6px); background: var(--card); box-shadow: var(--shadow); }
.why-card .icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--icon-bg); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 14px; font-weight: 700;
}
.why-card h4 { margin: 0 0 6px; color: var(--heading); font-size: 1.02rem; }
.why-card p { font-size: 0.88rem; color: var(--text-light); margin: 0; }

/* clients (moved directly under the hero) */
.client-section { padding: 40px 0; }
.client-label { text-align: center; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-light); margin: 0 0 26px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.client-strip { display: flex; align-items: center; gap: 64px; width: max-content; animation: client-scroll 22s linear infinite; }
.marquee:hover .client-strip { animation-play-state: paused; }
.client-strip img { height: 58px; width: auto; flex-shrink: 0; filter: grayscale(100%); opacity: 0.8; background: #fff; border-radius: 6px; padding: 4px 8px; }
.client-strip img:hover { filter: none; opacity: 1; }
@keyframes client-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 720px) {
  .client-strip img { height: 44px; }
  .client-strip { gap: 40px; animation-duration: 16s; }
}

/* CTA banner */
.cta-banner {
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.cta-banner h3 { margin: 0 0 6px; font-size: 1.4rem; }
.cta-banner p { margin: 0; color: #fff5ee; }
.cta-banner .btn-outline { border-color: #ffffffaa; }

/* ---------- Product detail page ---------- */
.product-detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: flex-start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); aspect-ratio: 1/1; background: #fff; display: flex; align-items: center; justify-content: center; padding: 20px; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs img { width: 74px; height: 74px; object-fit: contain; padding: 6px; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; background: #fff; box-sizing: border-box; }
.gallery-thumbs img.active { border-color: var(--orange); }
.product-info .cat-tag { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; color: var(--orange); letter-spacing: 0.04em; }
.product-info h1 { color: var(--heading); font-size: 1.9rem; margin: 8px 0 6px; }
.product-info .sku { color: var(--text-light); font-size: 0.85rem; margin-bottom: 16px; }
.quote-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 18px 0 26px;
}
.quote-box p { margin: 0 0 12px; font-size: 0.92rem; color: var(--text); }
.quote-box .btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-solid { background: var(--navy); color: #fff; padding: 11px 22px; border-radius: 30px; font-weight: 600; font-size: 0.9rem; }
.btn-solid:hover { background: var(--navy-light); }
.btn-whatsapp { background: #25D366; color: #fff; padding: 11px 22px; border-radius: 30px; font-weight: 600; font-size: 0.9rem; }
.btn-whatsapp:hover { opacity: 0.9; }
.product-desc h2, .product-desc h3 { color: var(--heading); }
.product-desc { font-size: 0.97rem; color: var(--text); }
.keyword-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.keyword-tags span { background: var(--surface-alt); border: 1px solid var(--border); color: var(--text-light); font-size: 0.75rem; padding: 5px 12px; border-radius: 20px; }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; margin-top: 10px; }
.stats-row div strong { display: block; font-size: 2rem; color: var(--orange); }
.stats-row div span { font-size: 0.85rem; color: var(--text-light); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.mv-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0,0,0,0.14); }
.mv-card h3 { color: var(--heading); margin-top: 0; }
.mv-card p { color: var(--text); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-card { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.info-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,0.12); }
.info-card .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--icon-bg); color: var(--orange); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.info-card h4 { margin: 0 0 4px; color: var(--heading); }
.info-card p, .info-card a { margin: 0; font-size: 0.92rem; color: var(--text-light); }
form.contact-form { display: grid; gap: 14px; }
form.contact-form input, form.contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font); font-size: 0.92rem;
  background: var(--surface); color: var(--text);
}
form.contact-form textarea { min-height: 120px; resize: vertical; }
form.contact-form button {
  justify-self: start; background: var(--orange); color: #fff; border: none; padding: 13px 28px; border-radius: 30px; font-weight: 600; cursor: pointer; font-size: 0.95rem;
}
form.contact-form button:hover { background: var(--orange-dark); }
.form-status { font-size: 0.85rem; font-weight: 600; margin: 10px 0 0; min-height: 1.2em; }
.form-note { font-size: 0.78rem; color: var(--text-light); margin-top: 6px; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-top: 26px; }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }
[data-theme="dark"] .map-frame iframe { filter: grayscale(35%) invert(92%) contrast(90%); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy); color: #cdd7ea; padding: 56px 0 0; margin-top: 40px;}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 34px; padding-bottom: 40px; border-bottom: 1px solid #26365e; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin: 0 0 16px; }
.footer-grid p { font-size: 0.88rem; color: #a9b6d2; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 9px; font-size: 0.88rem; }
.footer-grid ul li a:hover { color: var(--orange); }
.footer-logo { display: inline-block; background: #fff; padding: 10px 16px; border-radius: 10px; margin-bottom: 14px; }
.footer-logo img { height: 32px; display: block; }
.footer-map { padding: 4px 0 32px; }
.footer-map .map-frame { margin-top: 0; border-color: #26365e; }
.footer-map .map-frame iframe { height: 260px; }
.footer-bottom { text-align: center; padding: 18px 0; font-size: 0.82rem; color: #7f8db3; border-top: 1px solid #26365e; }
.footer-bottom a { color: #a9b6d2; }

/* ---------- Leadership team ---------- */
.team-section { text-align: center; }
.team-intro { max-width: 620px; margin: 0 auto 40px; }
.team-intro .eyebrow { display: block; margin-bottom: 8px; }
.team-intro h2 { color: var(--heading); margin: 0 0 10px; }
.team-intro p { color: var(--text-light); margin: 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 820px; margin: 0 auto; }
.team-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 16px 24px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0,0,0,0.14); }
.team-photo { width: 100%; aspect-ratio: 1/1; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; max-width: 160px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.team-card h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--heading); }
.team-card span { font-size: 0.85rem; color: var(--orange); font-weight: 600; }

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .hero .container, .about-grid, .contact-grid, .product-detail, .video-feature { grid-template-columns: 1fr; }
  .cat-grid, .product-grid, .why-grid, .footer-grid, .stats-row, .mv-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .topbar .contact-line { display: none; }
  .mobile-toggle { display: block; }
  nav.main-nav {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
    background: var(--card); flex-direction: column; align-items: flex-start;
    padding: 70px 20px; box-shadow: -6px 0 24px rgba(0,0,0,0.15);
    transition: right .25s ease; overflow-y: auto;
  }
  nav.main-nav.open { right: 0; }
  nav.main-nav ul { flex-direction: column; align-items: flex-start; width: 100%; }
  nav.main-nav > ul > li { width: 100%; }
  .dropdown-panel { position: static; min-width: 0; width: auto; transform: none; box-shadow: none; border: none; display: none; padding: 4px 0 4px 14px; background: transparent; }
  li.has-dropdown:hover .dropdown-panel { display: none; } /* no hover-open on touch; tap-to-open only */
  li.has-dropdown.open .dropdown-panel { display: block; grid-template-columns: none; gap: 0; }
  /* each category is its own collapsed accordion row — tap a category to reveal its products */
  .dropdown-panel .col { margin-bottom: 2px; }
  .dropdown-panel .col h4 {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    cursor: pointer; margin: 0; padding: 11px 4px; border-bottom: 1px solid var(--border);
  }
  .dropdown-panel .col h4::after { content: "\25BE"; font-size: 0.7em; flex-shrink: 0; transition: transform .2s ease; }
  .dropdown-panel .col.open h4::after { transform: rotate(180deg); }
  .dropdown-panel .col-links { max-height: none; overflow: visible; display: none; padding: 6px 0 10px 8px; }
  .dropdown-panel .col.open .col-links { display: block; }
  .cat-grid, .product-grid, .why-grid, .footer-grid, .stats-row, .mv-grid, .team-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .hero-image { min-height: 220px; }
  .cta-banner { flex-direction: column; text-align: center; }
}

/* Product page hero title (kept as a div — the real <h1> lives in .product-info) */
.page-hero .hero-title { margin: 6px 0 4px; font-size: 2rem; font-weight: 600; }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 250;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6); }
.whatsapp-float svg { width: 30px; height: 30px; position: relative; z-index: 2; }
.whatsapp-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.55;
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (max-width: 720px) {
  .whatsapp-float { width: 52px; height: 52px; left: 16px; bottom: 16px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* ---------- Preloader ---------- */
#page-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .7s ease, opacity .5s ease .2s;
}
.preloader-mark {
  width: 84px;
  height: auto;
  animation: preloaderPulse 1.1s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%, 100% { transform: scale(0.86); opacity: 0.5; }
  50% { transform: scale(1); opacity: 1; }
}
body.loaded #page-preloader {
  transform: translate3d(0, -100%, 0);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .preloader-mark { animation: none; }
  #page-preloader { transition: opacity .3s ease; }
  body.loaded #page-preloader { transform: none; }
}

/* ---------- Scroll-reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }
/* stagger cards within the same grid row so they don't all pop at once */
.product-grid .reveal:nth-child(2), .cat-grid .reveal:nth-child(2), .why-grid .reveal:nth-child(2), .team-grid .reveal:nth-child(2) { transition-delay: .08s; }
.product-grid .reveal:nth-child(3), .cat-grid .reveal:nth-child(3), .why-grid .reveal:nth-child(3), .team-grid .reveal:nth-child(3) { transition-delay: .16s; }
.product-grid .reveal:nth-child(4), .why-grid .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Hero entrance animation ---------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: none; }
}
.hero .eyebrow { animation: heroFadeUp .7s ease both; }
.hero h1 { animation: heroFadeUp .7s ease .1s both; }
.hero p { animation: heroFadeUp .7s ease .2s both; }
.hero-buttons { animation: heroFadeUp .7s ease .3s both; }
.hero-stats { animation: heroFadeUp .7s ease .4s both; }
.hero-image { animation: heroFadeIn .9s ease .2s both; }

/* respect users who've asked for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero .eyebrow, .hero h1, .hero p, .hero-buttons, .hero-stats, .hero-image {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
