/* ==========================================================================
   HamanTech — main stylesheet
   ========================================================================== */

:root {
  /* Brand palette (from logo) */
  --navy-950: #0a0f1c;
  --navy-900: #0f172a;
  --navy-800: #16213b;
  --navy-700: #1e3a5f;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --sky-500: #38bdf8;
  --sky-400: #60a5fa;
  --orange-500: #f0900f;
  --orange-600: #d97a06;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #edf1f6;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-navy-grad: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.14);
  --container: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4 { color: var(--navy-900); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.section-tight { padding: 56px 0; }

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange-500);
  display: inline-block;
}
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--ink-500); }

.text-muted { color: var(--ink-500); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange-500);
  color: #fff;
  box-shadow: 0 4px 14px rgba(240, 144, 15, 0.32);
}
.btn-primary:hover { background: var(--orange-600); transform: translateY(-1px); }
.btn-secondary {
  background: #fff;
  color: var(--navy-900);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--navy-900); background: var(--bg-soft); }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy-900); flex-shrink: 0; }
.brand img { height: 42px; width: 42px; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand .brand-text strong { font-size: 17px; letter-spacing: -0.01em; }
.brand .brand-text span { font-size: 11px; color: var(--ink-500); letter-spacing: 0.04em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-700);
  transition: all .15s ease;
}
.main-nav a.nav-link:hover, .main-nav a.nav-link.active { color: var(--blue-600); background: var(--bg-soft); }
.main-nav li { position: relative; }

.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: -16px;
  width: 300px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .18s ease;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  gap: 2px;
}
.dropdown a:hover { background: var(--bg-soft); }
.dropdown a strong { font-size: 14px; color: var(--navy-900); }
.dropdown a small { font-size: 12px; color: var(--ink-500); }
.dropdown .dropdown-footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 6px;
  padding-top: 10px;
}
.dropdown .dropdown-footer a { color: var(--blue-600); font-weight: 700; font-size: 13px; flex-direction: row; gap: 6px; }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.lang-switch { display: flex; align-items: center; font-size: 12.5px; font-weight: 700; flex-shrink: 0; color: var(--line); }
.lang-switch a, .lang-switch span { padding: 5px 3px; border-radius: 5px; color: var(--ink-500); letter-spacing: 0.02em; }
.lang-switch a.active, .lang-switch span.active { color: var(--navy-900); font-weight: 800; }
.lang-switch a:hover { color: var(--blue-600); }
.header-phone { display: flex; flex-direction: column; text-align: right; font-size: 13px; }
.header-phone span { color: var(--ink-500); font-size: 11px; }
.header-phone strong { color: var(--navy-900); font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: all .2s ease; }

@media (max-width: 980px) {
  /* Hidden by default via display:none — not a transform/translate trick, so there's
     no risk of it staying partially visible or being clipped. Only .open reveals it. */
  .main-nav {
    display: none;
    position: fixed; top: 78px; left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 40px; overflow-y: auto; z-index: 480;
  }
  .main-nav.open { display: flex; }
  .main-nav > ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav li { border-bottom: 1px solid var(--line-soft); width: 100%; }
  .main-nav a.nav-link { width: 100%; padding: 14px 6px; font-size: 16px; }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; width: 100%; display: none; padding-left: 8px; }
  .has-dropdown.open .dropdown { display: flex; flex-direction: column; }
  .header-phone { display: none; }
  .header-actions .lang-switch,
  .header-actions > a.btn-primary.btn-sm { display: none; }
  body.nav-open .header-actions .lang-switch { display: flex; }
  body.nav-open .header-actions > a.btn-primary.btn-sm { display: inline-flex; }
  body.nav-open { overflow: hidden; }
  .nav-toggle { display: flex; z-index: 490; position: relative; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--bg-navy-grad);
  color: #fff;
  overflow: hidden;
  padding: 100px 0 110px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(56,189,248,0.28), transparent 42%),
    radial-gradient(circle at 15% 92%, rgba(240,144,15,0.18), transparent 45%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); color: #fff; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--sky-400); }
.hero p.lead { font-size: 18px; color: #cbd5e1; max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-meta { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-meta div strong { display: block; font-size: 26px; color: #fff; }
.hero-meta div span { font-size: 13px; color: #94a3b8; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.14);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.4; }
.hero-visual-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(15,23,42,0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-visual-badge .ico { width: 38px; height: 38px; border-radius: 8px; background: var(--orange-500); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-visual-badge .ico svg { width: 20px; height: 20px; color: #fff; }
.hero-visual-badge strong { display: block; font-size: 14px; color: #fff; }
.hero-visual-badge span { font-size: 12px; color: #94a3b8; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; }
}

/* Page (interior) header banner */
.page-hero {
  background: var(--bg-navy-grad);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(56,189,248,0.25), transparent 45%);
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #94a3b8; margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { opacity: .5; }
.breadcrumbs .current { color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 12px; }
.page-hero p { color: #cbd5e1; max-width: 620px; font-size: 16px; }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats-strip {
  background: var(--navy-900);
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stats-grid .stat {
  text-align: center;
  padding: 40px 16px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.stats-grid .stat:first-child { border-left: none; }
.stats-grid .stat strong { display: block; font-size: 34px; color: #fff; font-weight: 800; }
.stats-grid .stat strong span { color: var(--sky-400); }
.stats-grid .stat p { font-size: 13.5px; color: #94a3b8; margin-top: 6px; }
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat:nth-child(3) { border-left: none; }
}

/* ==========================================================================
   Cards / Products
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.product-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .22s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card .thumb { position: relative; aspect-ratio: 4/3.1; overflow: hidden; background: var(--bg-soft); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .thumb .cat-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(15,23,42,0.82); color: #fff; font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; letter-spacing: 0.03em; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.product-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card .model { font-size: 12px; font-weight: 700; color: var(--orange-600); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.product-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.product-card p { font-size: 14.5px; color: var(--ink-500); flex: 1; margin-bottom: 16px; }
.product-card .card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--blue-600); }
.product-card .card-link svg { width: 16px; height: 16px; transition: transform .18s ease; }

/* ---------- Product grid: loading skeleton / error state ---------- */
.product-skeleton {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-skeleton .thumb { aspect-ratio: 4/3.1; background: var(--bg-soft); }
.product-skeleton .body { padding: 20px 22px 24px; }
.product-skeleton .bar { height: 12px; border-radius: 999px; background: var(--bg-soft); margin-bottom: 10px; }
.product-skeleton .bar.w-60 { width: 60%; height: 16px; }
.product-skeleton .bar.w-40 { width: 40%; }
.product-skeleton .bar.w-90 { width: 90%; }
.product-skeleton .thumb, .product-skeleton .bar {
  background: linear-gradient(90deg, var(--bg-soft) 25%, #eef1f5 37%, var(--bg-soft) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}
@keyframes skeleton-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.product-grid-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--ink-500);
}
.product-grid-error p { margin-bottom: 16px; font-size: 15px; }
[data-live-count="products"].is-loading { opacity: .6; }
.product-card:hover .card-link svg { transform: translateX(3px); }

/* Category filter pills */
.anchor-offset { display: block; position: relative; top: -100px; visibility: hidden; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  background: #fff;
  transition: all .15s ease;
}
.filter-pill:hover { border-color: var(--blue-500); color: var(--blue-600); }
.filter-pill.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* Feature / icon list */
.icon-feature { display: flex; gap: 16px; }
.icon-feature .ico {
  width: 50px; height: 50px; flex-shrink: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
}
.icon-feature .ico svg { width: 24px; height: 24px; color: var(--sky-400); }
.icon-feature h4 { font-size: 16.5px; margin-bottom: 6px; }
.icon-feature p { font-size: 14.5px; color: var(--ink-500); }

/* ==========================================================================
   About teaser / split sections
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split-media img { width: 100%; aspect-ratio: 4/3.3; object-fit: cover; }
.check-list li { display: flex; gap: 12px; padding: 10px 0; font-size: 15px; color: var(--ink-700); align-items: flex-start; }
.check-list li svg { width: 20px; height: 20px; color: var(--orange-500); flex-shrink: 0; margin-top: 1px; }

.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--bg-navy-grad); color: #fff; }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy p { color: #cbd5e1; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--bg-navy-grad);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 90% 10%, rgba(56,189,248,0.3), transparent 50%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.cta-band p { color: #cbd5e1; font-size: 15.5px; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 768px) { .cta-band { padding: 36px 28px; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-950); color: #cbd5e1; padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 40px; width: 40px; }
.footer-brand strong { color: #fff; font-size: 17px; }
.site-footer p.desc { font-size: 14.5px; color: #94a3b8; max-width: 320px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center; transition: all .15s ease;
}
.footer-social a:hover { background: var(--blue-600); }
.footer-social svg { width: 17px; height: 17px; }
.site-footer h5 { color: #fff; font-size: 14.5px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 14.5px; color: #94a3b8; transition: color .15s ease; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; font-size: 14.5px; color: #94a3b8; margin-bottom: 14px; align-items: flex-start; }
.footer-contact li svg { width: 18px; height: 18px; color: var(--sky-400); flex-shrink: 0; margin-top: 2px; }
.footer-contact li a:hover { color: #fff; }
.footer-contact li strong { color: #e2e8f0; font-weight: 700; }
.footer-contact .tag { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.08); color: #94a3b8; vertical-align: middle; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 0; font-size: 13px; color: #64748b; flex-wrap: wrap;
}
.footer-bottom a:hover { color: #cbd5e1; }
.footer-bottom-links { display: flex; gap: 20px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13.5px; font-weight: 600; color: var(--navy-900); }
.form-group label .req { color: var(--orange-500); }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--ink-900);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--ink-500); margin-top: 12px; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; display: none; }
.form-status.show { display: block; }
.form-status.success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-status.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }
.human-check {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 16px; font-size: 13.5px; color: var(--ink-700); cursor: pointer;
}
.human-check input { width: auto; margin-top: 2px; flex-shrink: 0; }

.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: flex-start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* Contact info cards */
.contact-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 26px; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow-sm);
}
.contact-card .ico {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
}
.contact-card .ico svg { width: 22px; height: 22px; color: var(--blue-600); }
.contact-card h4 { font-size: 15.5px; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 14.5px; color: var(--ink-500); }
.contact-card a:hover { color: var(--blue-600); }

/* ---------- FAQ accordion (Contact page) ---------- */
.faq-accordion { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.faq-item { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-md); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; background: none; border: none; text-align: left; cursor: pointer;
  font-size: 15.5px; font-weight: 700; color: var(--navy-900);
}
.faq-chevron { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s ease; color: var(--ink-500); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer p { padding: 0 20px 18px; font-size: 14.5px; color: var(--ink-500); line-height: 1.6; }

/* ==========================================================================
   Product detail page
   ========================================================================== */
/* Stacked layout: gallery on top (centered, capped width), full-width info panel below —
   avoids the side-by-side grid leaving one column short and the page looking half-empty. */
.pd-layout { display: block; }
.pd-layout > div:first-child { max-width: 640px; margin: 0 auto 44px; }
.pd-info { max-width: 900px; margin: 0 auto; }
.pd-gallery-main { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); aspect-ratio: 4/3; background: var(--bg-soft); }
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd-thumbs button { padding: 0; border: 2px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; width: 84px; height: 64px; flex-shrink: 0; background: none; }
.pd-thumbs button.active { border-color: var(--blue-500); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-model-badge { display: inline-block; background: var(--bg-soft); color: var(--orange-600); font-weight: 700; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.pd-info h1 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.pd-info .tagline { font-size: 17px; color: var(--ink-500); margin-bottom: 26px; }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.spec-table tr { border-bottom: 1px solid var(--line-soft); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 13px 4px; font-size: 14.5px; }
.spec-table td:first-child { color: var(--ink-500); width: 46%; }
.spec-table td:last-child { color: var(--navy-900); font-weight: 600; text-align: right; }

.pd-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* Price widget (product detail) */
.price-box {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 22px;
}
.price-box-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price-box-value { font-size: 22px; font-weight: 800; color: var(--navy-900); }
.price-box-note { font-size: 12.5px; color: var(--ink-500); margin-top: 6px; }
.currency-select {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-900);
  background: #fff;
  flex-shrink: 0;
}

/* Price badge (product cards) */
.price-badge { font-size: 14px; font-weight: 700; color: var(--blue-600); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Stock pill */
.stock-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.stock-pill.in { background: #dcfce7; color: #166534; }
.stock-pill.out { background: #fee2e2; color: #991b1b; }
.price-box-stock { margin-top: 10px; }
.notify-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.notify-form input[type="email"] { flex: 1; min-width: 160px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; }
.notify-form .form-status { flex-basis: 100%; }

/* Product versions / sizes */
.pd-versions { margin: 26px 0; }
.pd-versions h3 { font-size: 16px; margin-bottom: 12px; }
.version-card { border: 1px solid var(--line-soft); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 12px; background: var(--bg-soft); }
.version-card h4 { font-size: 14.5px; margin-bottom: 8px; color: var(--navy-900); }
.version-card table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.version-card td { padding: 6px 4px; border-bottom: 1px solid var(--line-soft); }
.version-card tr:last-child td { border-bottom: none; }
.version-card td:first-child { color: var(--ink-500); width: 46%; }
.version-card td:last-child { color: var(--navy-900); font-weight: 600; }

/* PDF downloads */
.pd-downloads { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.pd-downloads a { display: inline-flex; align-items: center; gap: 8px; }
.pd-downloads svg { width: 18px; height: 18px; }

/* Big picture gallery + lightbox */
.big-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .big-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.big-gallery-grid button { padding: 0; border: none; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-soft); }
.big-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.big-gallery-grid button:hover img { transform: scale(1.05); }
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(10,15,28,0.92); z-index: 900;
  display: none; align-items: center; justify-content: center; padding: 40px 20px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 100%; max-height: 88vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 22px; right: 26px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; border: none; font-size: 22px; }

/* News gallery — compact cards with a small thumbnail + accordion-reveal description */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1100px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
a.news-card { cursor: pointer; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.news-card-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-navy-grad); flex-shrink: 0; }
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card-thumb img { transform: scale(1.06); }

.news-card-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(15,23,42,0.78); backdrop-filter: blur(4px);
  color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; z-index: 2;
}

.news-card-body { padding: 14px 16px 16px; }
.news-card-date { font-size: 11.5px; font-weight: 700; color: var(--orange-600); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.news-card-title { font-size: 15px; font-weight: 700; color: var(--navy-900); line-height: 1.35; }
.news-card-desc {
  font-size: 13px; color: var(--ink-500); margin-top: 0; line-height: 1.55;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .35s ease, opacity .3s ease, margin-top .35s ease;
}
.news-card:hover .news-card-desc,
.news-card.in-view .news-card-desc {
  max-height: 140px; opacity: 1; margin-top: 8px;
}
.news-card-link {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
  font-size: 12.5px; font-weight: 700; color: var(--blue-600);
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .3s ease;
}
.news-card-link svg { width: 13px; height: 13px; }
.news-card:hover .news-card-link,
.news-card.in-view .news-card-link { max-height: 22px; opacity: 1; }

/* QR codes (contact page) */
.qr-row { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
.qr-item { text-align: center; font-size: 12.5px; color: var(--ink-500); }
.qr-item img { width: 100px; height: 100px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-bottom: 6px; }
.products-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.products-toolbar .currency-select { padding: 10px 14px; }
@media (max-width: 560px) { .products-toolbar { flex-direction: column; align-items: stretch; } }

.feature-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.feature-tags span { background: var(--bg-soft); border: 1px solid var(--line-soft); color: var(--ink-700); font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; }

.process-strip { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-soft); }
.process-strip img { width: 100%; display: block; }

.two-col-text { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .two-col-text { grid-template-columns: 1fr; } }

/* Back to top */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-900); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .2s ease; z-index: 400; border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* WhatsApp floating button */
.float-whatsapp {
  position: fixed; left: 22px; bottom: 22px; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(37,211,102,0.45); z-index: 400;
}
.float-whatsapp svg { width: 26px; height: 26px; color: #fff; }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
