/* ==========================================================================
   TUNSAMAI — Household Electric Appliance
   Design tokens
   ========================================================================== */
:root {
  --blue-900: #0e2c4d;
  --blue-800: #123a63;
  --blue-700: #1a4f8c;
  --blue-600: #2563a8;
  --blue-500: #4d80b7;
  --blue-100: #eaf2fa;
  --blue-50: #f4f8fc;

  --red-700: #c8151d;
  --red-600: #ed1b24;
  --red-500: #f0454c;
  --red-50: #fdecec;

  --ink-900: #16202c;
  --ink-700: #3a4552;
  --ink-500: #64707c;
  --ink-300: #a3aebb;

  --neutral-100: #f6f8fa;
  --neutral-200: #eceff2;
  --neutral-300: #dfe4e9;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(14, 44, 77, 0.08);
  --shadow-md: 0 12px 32px rgba(14, 44, 77, 0.12);
  --shadow-lg: 0 24px 60px rgba(14, 44, 77, 0.18);

  --container: 1240px;
  --header-h: 82px;
  --wa-bar-h: 60px;

  --font-lao: "Noto Sans Lao", "Phetsarath OT", "Noto Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-lao);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--wa-bar-h);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; overflow-wrap: break-word; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
}
section { padding: clamp(56px, 9vw, 110px) 0; }
::selection { background: var(--red-600); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(12.5px, 1.4vw, 14px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red-600);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--red-600);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.28;
  color: var(--blue-900);
  max-width: 46ch;
}
.section-sub {
  font-size: 15px;
  color: var(--ink-500);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 4px;
  text-transform: uppercase;
}
.section-lead {
  font-size: clamp(15.5px, 1.6vw, 17.5px);
  color: var(--ink-700);
  max-width: 62ch;
  margin-top: 18px;
}
.section-head {
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-title,
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--red-600);
  color: #fff;
  box-shadow: 0 10px 24px rgba(237, 27, 36, 0.28);
}
.btn-primary:hover { background: var(--red-700); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(237, 27, 36, 0.34); }
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.btn-blue {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 10px 24px rgba(26, 79, 140, 0.28);
}
.btn-blue:hover { background: var(--blue-800); transform: translateY(-2px); }
.btn-ghost-dark {
  background: var(--neutral-100);
  color: var(--blue-900);
}
.btn-ghost-dark:hover { background: var(--neutral-200); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 500;
  border-bottom: 1px solid rgba(14, 44, 77, 0.06);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* Blur lives on a pseudo-element, not .site-header itself — backdrop-filter on the
   header would create a containing block that traps the fixed-position mobile nav
   (a #mainNav descendant) inside the header's own box instead of the viewport. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transition: background 0.3s var(--ease);
}
.site-header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.96);
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(14, 44, 77, 0.08);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 46px; width: auto; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15px; font-weight: 800; color: var(--blue-900); }
.brand-text span { font-size: 11.5px; color: var(--ink-500); font-weight: 600; letter-spacing: 0.02em; }

.main-nav { display: flex; }
.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-700);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--blue-700); background: var(--blue-100); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 11px 20px; font-size: 14.5px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--blue-800);
  white-space: nowrap;
}
.header-phone svg { width: 17px; height: 17px; color: var(--red-600); flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--neutral-300);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue-900);
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); background: var(--blue-900); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); background: var(--blue-900); }

@media (max-width: 980px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 10px 0 30px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); overflow-y: auto; }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 8px clamp(18px, 4vw, 40px) 0; }
  .main-nav a { padding: 16px 14px; font-size: 17px; border-radius: 12px; }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-phone span.phone-label { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 76px));
  padding-bottom: clamp(50px, 8vw, 90px);
  background: radial-gradient(1100px 640px at 82% -10%, var(--blue-100) 0%, transparent 60%),
              linear-gradient(180deg, #ffffff 0%, var(--blue-50) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, #ffb703, #ed1b24, #8e44ad, #1a4f8c, #16a3a3, #ffb703);
  opacity: 0.14;
  filter: blur(10px);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.28;
  color: var(--blue-900);
}
.hero-copy h1 .hl { color: var(--red-600); }
.hero-sub {
  margin-top: 18px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink-700);
  max-width: 56ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-actions .btn-outline { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }
.hero-actions .btn-outline:hover { background: var(--blue-800); }

.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #fff;
  border: 1px solid var(--neutral-300);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue-800);
  box-shadow: var(--shadow-sm);
}
.hero-tag svg { width: 15px; height: 15px; color: var(--red-600); }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-visual-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ffffff, var(--blue-50) 70%);
  border: 1px solid var(--neutral-300);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 40px);
}
.hero-visual-card img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 30px rgba(14, 44, 77, 0.22)); }
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -14px;
  background: var(--blue-900);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  min-width: 168px;
}
.hero-badge strong { display: block; font-size: 26px; font-weight: 800; color: #fff; }
.hero-badge span { display: block; font-size: 12.5px; color: rgba(255,255,255,0.78); font-weight: 600; margin-top: 2px; }
.hero-pill {
  position: absolute;
  top: 6%;
  right: -6px;
  background: #fff;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-800);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-pill svg { width: 16px; height: 16px; color: var(--red-600); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .hero-visual-card { max-width: 340px; }
  .hero-pill { right: 6px; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.about-media { position: relative; }
.about-media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.about-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-media .stat-card {
  position: absolute;
  right: -18px;
  bottom: -22px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--neutral-300);
}
.about-media .stat-card .num { font-size: 30px; font-weight: 800; color: var(--red-600); line-height: 1; }
.about-media .stat-card .lbl { font-size: 12.5px; font-weight: 700; color: var(--ink-500); max-width: 12ch; }

.about-copy .section-title { max-width: none; }
.about-list { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.about-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-700);
}
.about-list .ico {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-list .ico svg { width: 17px; height: 17px; }
.about-list strong { color: var(--blue-900); display: block; margin-bottom: 2px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .about-media .stat-card { right: 12px; bottom: -18px; padding: 14px 18px; }
}

/* ==========================================================================
   Products / Business categories
   ========================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-300);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat-media { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.06); }
.cat-media.icon-media { display: flex; align-items: center; justify-content: center; background: var(--blue-900); }
.cat-media.icon-media svg { width: 30%; height: 30%; color: rgba(255,255,255,0.9); }
.cat-body { padding: 22px 22px 26px; }
.cat-num { font-size: 13px; font-weight: 800; color: var(--red-600); letter-spacing: 0.06em; }
.cat-title { margin-top: 8px; font-size: 18px; font-weight: 800; color: var(--blue-900); line-height: 1.35; }
.cat-desc { margin-top: 8px; font-size: 14px; color: var(--ink-500); line-height: 1.65; }

@media (max-width: 1080px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   150+ network banner
   ========================================================================== */
.network {
  position: relative;
  padding: clamp(70px, 11vw, 130px) 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(14,28,49,0.86), rgba(14,28,49,0.92)), url('../images/logistics-truck-1.jpg') center/cover no-repeat;
  overflow: hidden;
}
.network::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(237,27,36,0.16), transparent 55%);
  pointer-events: none;
}
.network-grid { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 70px); align-items: center; }
.network-number { display: flex; align-items: baseline; gap: 6px; }
.network-number .big { font-size: clamp(64px, 11vw, 128px); font-weight: 800; line-height: 0.9; letter-spacing: -0.02em; }
.network-number .plus { font-size: clamp(30px, 5vw, 56px); font-weight: 800; color: var(--red-500); }
.network-copy .section-sub { color: rgba(255,255,255,0.7); }
.network-copy h3 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin-top: 6px; max-width: 26ch; }
.network-copy p { margin-top: 16px; font-size: 15.5px; color: rgba(255,255,255,0.82); max-width: 60ch; }
.network-note { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.62); font-weight: 600; }
.network-note svg { width: 15px; height: 15px; flex-shrink: 0; }

@media (max-width: 760px) {
  .network-grid { grid-template-columns: 1fr; text-align: left; }
}

/* ==========================================================================
   Lucky Flame
   ========================================================================== */
.luckyflame { background: linear-gradient(180deg, #fff 0%, var(--red-50) 100%); }
.lf-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.lf-copy .badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lf-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--neutral-300); border-radius: 999px;
  padding: 9px 15px; font-size: 13px; font-weight: 700; color: var(--blue-800); box-shadow: var(--shadow-sm);
}
.lf-badge svg { width: 15px; height: 15px; color: var(--red-600); }
.lf-media { position: relative; }
.lf-banner { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.lf-banner img { width: 100%; height: 100%; object-fit: cover; }
.lf-product-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.lf-product-strip .p {
  aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden;
  background: #fff; border: 1px solid var(--neutral-300); box-shadow: var(--shadow-sm);
}
.lf-product-strip .p img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

@media (max-width: 900px) {
  .lf-grid { grid-template-columns: 1fr; }
  .lf-media { order: -1; }
}
@media (max-width: 460px) { .lf-product-strip { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Gas delivery / Gas piping — split rows
   ========================================================================== */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.split-row.reverse .split-media { order: 2; }
.split-media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5 / 4;
}
.split-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.split-copy .feature-mini { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.feature-mini li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-700); }
.feature-mini .ico { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; background: var(--red-50); color: var(--red-600); display: flex; align-items: center; justify-content: center; }
.feature-mini .ico svg { width: 15px; height: 15px; }
.split-copy .btn { margin-top: 28px; }

.gas-piping { background: var(--neutral-100); }

@media (max-width: 900px) {
  .split-row, .split-row.reverse { grid-template-columns: 1fr; }
  .split-row.reverse .split-media { order: -1; }
}

/* ==========================================================================
   Why Tunsamai
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  cursor: pointer;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.why-card .ico {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--blue-900); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.why-card .ico svg { width: 24px; height: 24px; }
.why-card h4 { font-size: 16.5px; font-weight: 800; color: var(--blue-900); line-height: 1.4; }
.why-card p { margin-top: 8px; font-size: 14px; color: var(--ink-500); line-height: 1.65; }

@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.gf-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--neutral-300);
  background: #fff;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-700);
  transition: all 0.2s;
}
.gf-btn:hover { border-color: var(--blue-500); color: var(--blue-700); }
.gf-btn.active { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-300);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14,28,49,0.7));
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover::before { opacity: 1; }
.gallery-tag {
  position: absolute; left: 10px; bottom: 10px;
  font-size: 11.5px; font-weight: 700; color: #fff;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover .gallery-tag { opacity: 1; transform: translateY(0); }
.gallery-item.hidden-cat { display: none; }

@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(10, 18, 30, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 86vh; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--blue-900); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 60px); align-items: stretch; }
.contact .section-title { color: #fff; }
.contact .eyebrow { color: var(--red-500); }
.contact-lead { margin-top: 16px; font-size: 15.5px; color: rgba(255,255,255,0.75); max-width: 50ch; }

.contact-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.contact-action {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  transition: background 0.25s, transform 0.25s;
}
.contact-action:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.contact-action svg { width: 22px; height: 22px; color: var(--red-500); margin-bottom: 10px; }
.contact-action span { display: block; font-size: 13px; font-weight: 700; }

.contact-details { margin-top: 34px; display: flex; flex-direction: column; gap: 18px; }
.contact-details .row { display: flex; gap: 14px; align-items: flex-start; }
.contact-details .ico { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.contact-details .ico svg { width: 17px; height: 17px; color: var(--red-500); }
.contact-details .txt strong { display: block; font-size: 13px; color: rgba(255,255,255,0.55); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.contact-details .txt p, .contact-details .txt a { font-size: 15.5px; font-weight: 600; color: #fff; }
.contact-details .txt a:hover { color: var(--red-500); }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); min-height: 340px; border: 1px solid rgba(255,255,255,0.14); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .contact-actions { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #0a1e37; color: rgba(255,255,255,0.7); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 42px; border-radius: 6px; }
.footer-brand strong { display: block; color: #fff; font-size: 15.5px; font-weight: 800; }
.footer-brand span { display: block; font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-desc { font-size: 14px; line-height: 1.75; max-width: 42ch; color: rgba(255,255,255,0.6); }
.footer-col h5 { color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col p { font-size: 14px; color: rgba(255,255,255,0.62); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.45);
}

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ==========================================================================
   Reveal-on-scroll animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Item detail popup (product / service / why-card modals)
   ========================================================================== */
.item-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(10, 18, 30, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.item-modal.is-open { opacity: 1; visibility: visible; }
.modal-box {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 880px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.item-modal.is-open .modal-box { transform: translateY(0) scale(1); }
.modal-media {
  background: var(--neutral-100);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.modal-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.modal-media-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); }
.modal-body { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.modal-body .eyebrow { margin-bottom: 10px; }
.modal-body h3 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; color: var(--blue-900); line-height: 1.4; }
.modal-body p { margin-top: 14px; font-size: 15px; color: var(--ink-700); line-height: 1.8; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 33, 0.55);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(15, 23, 33, 0.75); }

@media (max-width: 760px) {
  .modal-box { grid-template-columns: 1fr; max-height: 90vh; }
  .modal-media { min-height: 180px; }
}

/* Keyboard focus affordance for newly-interactive cards/controls */
.cat-card:focus-visible,
.why-card:focus-visible,
.modal-close:focus-visible,
.wa-bar:focus-visible,
.gallery-item:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
}

/* ==========================================================================
   Fixed inquiry / WhatsApp bar
   ========================================================================== */
.wa-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--wa-bar-h);
  padding: 0 20px;
  padding-bottom: env(safe-area-inset-bottom);
  background: linear-gradient(90deg, var(--blue-900), var(--blue-800));
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  box-shadow: 0 -10px 28px rgba(14, 44, 77, 0.22);
  transition: filter 0.2s;
}
.wa-bar:hover { filter: brightness(1.08); }
.wa-bar-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-bar-icon svg { width: 15px; height: 15px; color: #fff; }

@media (max-width: 560px) {
  :root { --wa-bar-h: 66px; }
  .wa-bar { font-size: 15px; gap: 8px; }
}

/* ==========================================================================
   Utility
   ========================================================================== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
