/* ===========================
   HANSOL DENTAL LABORATORY
   main.css — complete styles
   =========================== */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === TOKENS === */
:root {
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --header-h: 110px;
  --radius: 14px;
  --radius-sm: 9px;
  --accent: #3b82f6;
  --accent-h: #2563eb;
  --accent-dim: rgba(59,130,246,0.12);
  --accent-glow: rgba(59,130,246,0.25);
}

/* === DARK THEME (default) === */
[data-theme="dark"] {
  --bg:           #07080c;
  --bg2:          #0c0e15;
  --surface:      #111318;
  --surface2:     #181b25;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --text:         #e2e8f0;
  --text-muted:   #64748b;
  --text-dim:     #374151;
  --header-bg:    rgba(7,8,12,0.85);
  --shadow:       0 8px 40px rgba(0,0,0,0.5);
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.4);
  --card-bg:      #111318;
  color-scheme: dark;
}

/* === LIGHT THEME === */
[data-theme="light"] {
  --bg:           #f0f4f8;
  --bg2:          #e8eef4;
  --surface:      #ffffff;
  --surface2:     #f0f4f8;
  --border:       rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.16);
  --text:         #0f172a;
  --text-muted:   #475569;
  --text-dim:     #94a3b8;
  --header-bg:    rgba(240,244,248,0.90);
  --shadow:       0 8px 40px rgba(0,0,0,0.10);
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.07);
  --card-bg:      #ffffff;
  color-scheme: light;
}

/* === BASE === */
html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* === HEADER === */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 36px;
}

/* Logo */
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo img {
  height: 95px;
  width: auto;
  object-fit: contain;
}
.logo-fallback {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: flex;
  align-items: center;
}

/* Nav */
.nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--text);
  background: var(--surface2);
}
.nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* Header right */
.header-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === LANGUAGE POPUP === */
.lang-wrap {
  position: relative;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.lang-trigger:hover,
.lang-trigger[aria-expanded="true"] {
  color: var(--text);
  border-color: var(--accent);
  background: var(--surface2);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.lang-globe {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  opacity: 0.7;
}
.lang-caret {
  width: 9px;
  height: 9px;
  stroke: currentColor;
  transition: transform 0.22s;
}
.lang-trigger[aria-expanded="true"] .lang-caret {
  transform: rotate(180deg);
}

.lang-popup {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.2s cubic-bezier(0.22,1,0.36,1),
              transform 0.2s cubic-bezier(0.22,1,0.36,1),
              visibility 0.2s;
  z-index: 200;
}
.lang-popup.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.lang-option:hover {
  background: var(--surface2);
}
.lang-option.active {
  background: var(--accent-dim);
}
.lang-option.active .lang-code {
  color: var(--accent);
}

.lang-code {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text);
  min-width: 22px;
}
.lang-name {
  font-size: 13px;
  color: var(--text-muted);
}

/* === THEME BUTTON === */
.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}
.theme-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--surface2);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.theme-btn svg {
  width: 17px;
  height: 17px;
}
[data-theme="dark"]  .icon-sun  { display: none; }
[data-theme="dark"]  .icon-moon { display: block; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: block; }

/* === HAMBURGER === */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 998;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.mobile-overlay.open { display: block; }

/* Mobile nav (full-height panel, lives outside header) */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--bg);
  flex-direction: column;
  align-items: stretch;
  overflow-y: auto;
  padding: 16px 0;
}
@media (max-width: 1060px) {
  .mobile-nav.open { display: flex; }
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.mobile-nav-link:hover {
  color: var(--text);
  background: var(--surface2);
}
.mobile-nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* === MAIN === */
.main {
  min-height: 100vh;
  padding-top: var(--header-h);
  background-color: var(--bg);
}

/* === PAGE TRANSITIONS === */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pageExit {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-14px); }
}

.page-enter { animation: pageEnter 0.45s cubic-bezier(0.22,1,0.36,1) forwards; }
.page-exit  { animation: pageExit  0.24s ease forwards; pointer-events: none; }

/* ===========================
   HOME PAGE
   =========================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background-color: #07080c;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Pull hero behind header */
  margin-top: calc(-1 * var(--header-h));
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video-wrap video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.28) contrast(1.1) saturate(0.5);
}
[data-theme="light"] .hero-video-wrap video {
  filter: brightness(0.70) contrast(1.05) saturate(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7,8,12,0.25) 0%,
    rgba(7,8,12,0.10) 40%,
    rgba(7,8,12,0.65) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 28px;
  max-width: 820px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 100px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.35);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 1.03;
  color: #ffffff;
  margin-bottom: 22px;
  letter-spacing: -0.025em;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255,255,255,0.6);
  margin-bottom: 44px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.hero-scroll svg { width: 22px; height: 22px; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* Home cards */
.home-cards {
  background-color: var(--bg);
  padding: 88px 28px;
}
.home-cards-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 42px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.home-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(59,130,246,0.12);
}

.home-card-num {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.home-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}
.home-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.home-card-arrow {
  font-size: 18px;
  color: var(--accent);
  margin-top: 8px;
  transition: transform 0.2s;
  align-self: flex-start;
}
.home-card:hover .home-card-arrow { transform: translateX(5px); }

/* ===========================
   INNER PAGES
   =========================== */
.page-hero {
  position: relative;
  height: 38vh;
  min-height: 260px;
  max-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #060810 0%, #0e1628 50%, #0a1040 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 48px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}
.breadcrumb button {
  color: rgba(255,255,255,0.45);
  font-size: 12.5px;
  transition: color 0.2s;
}
.breadcrumb button:hover { color: rgba(255,255,255,0.8); }
.breadcrumb .sep { color: rgba(255,255,255,0.25); }

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Section */
.section {
  padding: 80px 0;
}
.section + .section {
  border-top: 1px solid var(--border);
}

.section-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-sub {
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: all 0.22s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59,130,246,0.4);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-2px);
}

/* ===========================
   ABOUT PAGE
   =========================== */

/* Background image section (8.jpg) */
.about-bg-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background-color: #050810; /* dark fallback if image not loaded */
}
.about-bg-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/8.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.22) saturate(0.5);
  z-index: 0;
}
.about-bg-section .container {
  position: relative;
  z-index: 1;
}
/* Text always white inside this dark-bg section */
.about-bg-section .section-title { color: #fff; }
.about-bg-section .section-sub   { color: rgba(255,255,255,0.70); }
.about-bg-section .about-text p  { color: rgba(255,255,255,0.75); }

/* Background image section (7.jpg) */
.about-7-bg-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background-color: #050810;
}
.about-7-bg-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/7.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.25) saturate(0.5);
  z-index: 0;
}
.about-7-bg-section .container {
  position: relative;
  z-index: 1;
}
/* Glass-style value cards on dark image */
.about-7-bg-section .values-grid { margin-top: 0; }
.about-7-bg-section .value-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.about-7-bg-section .value-card:hover {
  border-color: rgba(59,130,246,0.6);
}
.about-7-bg-section .value-num { color: rgba(255,255,255,0.15); }
.about-7-bg-section .value-card h3 { color: #fff; }
.about-7-bg-section .value-card p  { color: rgba(255,255,255,0.60); }

/* Video showcase section */
.about-video-section {
  background-color: var(--bg2);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.about-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
}
.about-video-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}
.about-video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.9);
}
.about-video-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
}

@media (max-width: 640px) {
  .about-video-grid { grid-template-columns: 1fr; }
}

/* Arum logo overlay */
.about-arum-section { position: relative; }
.about-arum-logo {
  position: absolute;
  bottom: 28px;
  right: 32px;
  height: 96px;
  width: auto;
  opacity: 0.85;
  pointer-events: none;
}

/* Tech badge */
.tech-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

/* Profeta section */
.about-profeta-section {
  background-color: var(--bg);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

/* Static image inside video-item (Profeta.jpg) */
.about-video-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-top: 52px;
}
.about-text p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 18px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.2s;
}
.stat-item:hover { border-color: var(--accent); }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: border-color 0.25s, transform 0.25s;
}
.value-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.value-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--border);
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}
.value-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.value-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===========================
   DIRECTOR PAGE
   =========================== */
.director-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 52px;
}
.director-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.director-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.director-nameplate {
  padding: 22px 24px;
  background: var(--accent);
}
.director-nameplate h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.director-nameplate span {
  display: block;
  font-size: 12.5px;
  color: rgba(255,255,255,0.75);
  margin-top: 3px;
}

.director-bio h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.director-bio p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 18px;
}

.cred-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  margin-top: 36px;
  display: block;
}
.cred-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 15px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.cred-year {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  min-width: 38px;
  flex-shrink: 0;
  margin-top: 1px;
}
.cred-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* ===========================
   PRODUCTS PAGE
   =========================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
.product-thumb {
  aspect-ratio: 4/3;
  background: var(--surface2);
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-body { padding: 24px; }
.product-tag {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.product-body h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.product-body p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===========================
   GALLERY PAGE
   =========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 52px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-hover {
  position: absolute;
  inset: 0;
  background: rgba(59,130,246,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-hover { opacity: 1; }
.gallery-hover svg {
  width: 36px; height: 36px;
  color: #fff;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ===========================
   FAQ PAGE
   =========================== */
.faq-list {
  max-width: 780px;
  margin: 52px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--accent); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.faq-item.open .faq-q { color: var(--accent); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  stroke: var(--text-muted);
  transition: transform 0.3s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a-inner {
  padding: 0 26px 22px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 52px;
  margin-top: 52px;
}
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-icon {
  width: 46px; height: 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.contact-text h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-text p,
.contact-text a {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}
.contact-text a:hover { color: var(--accent); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--surface);
}
.map-wrap iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 0;
  transition: background-color 0.3s;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 28px 52px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 52px;
}
.footer-logo {
  height: 85px;
  width: auto;
  margin-bottom: 14px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}
.footer-col a,
.footer-col p {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.55;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-col-group {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 16px;
  margin-bottom: 2px;
}
.footer-col a.footer-sub {
  padding-left: 10px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* ===========================
   CONTACT FORM (cf-*)
   =========================== */
.cf-section { border-top: 1px solid var(--border); }

.cf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 720px;
}

.cf-card-header { margin-bottom: 36px; }
.cf-tag {
  display: inline-block;
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.cf-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; letter-spacing: -0.025em;
  color: var(--text); margin-bottom: 10px;
}
.cf-desc { font-size: 14px; color: var(--text-muted); }

/* Row / field */
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.cf-row .cf-field { margin-bottom: 0; }

.cf-label {
  font-size: 12.5px; font-weight: 600;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 3px;
}
.cf-req { color: var(--accent); font-size: 13px; }

.cf-input {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}
.cf-input::placeholder { color: var(--text-dim); }
.cf-input:hover { border-color: var(--border-hover); }
.cf-input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.cf-textarea { resize: vertical; min-height: 140px; line-height: 1.65; }

/* Footer row */
.cf-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cf-error {
  font-size: 13px; color: #ef4444;
  flex: 1; min-height: 18px;
}

/* Submit button */
.cf-submit {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.cf-submit:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}
.cf-submit:disabled {
  opacity: 0.55; pointer-events: none;
}
.cf-submit-icon { font-size: 16px; transition: transform 0.2s; }
.cf-submit:hover .cf-submit-icon { transform: translateX(4px); }

/* Spinner inside button */
.cf-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cfSpin 0.65s linear infinite;
}
.cf-submit.loading .cf-submit-text { opacity: 0.5; }
.cf-submit.loading .cf-submit-icon { display: none; }
.cf-submit.loading .cf-spinner { display: block; }
@keyframes cfSpin { to { transform: rotate(360deg); } }

/* Success state */
.cf-success {
  text-align: center;
  padding: 56px 24px;
}
.cf-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(34,197,94,0.12);
  border: 2px solid rgba(34,197,94,0.4);
  color: #22c55e;
  font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.cf-success h3 {
  font-size: 16px; font-weight: 600;
  color: var(--text); margin-bottom: 24px;
}
.cf-again {
  padding: 10px 24px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}
.cf-again:hover { color: var(--text); border-color: var(--border-hover); }

@media (max-width: 640px) {
  .cf-card { padding: 28px 20px; }
  .cf-row  { grid-template-columns: 1fr; }
}

/* ===========================
   GALLERY DYNAMIC LOADING
   =========================== */
.gallery-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
  color: var(--text-muted);
}
.gallery-loading svg {
  animation: spin 1.2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ===========================
   SPONSORS BANNER
   =========================== */
.sponsors-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  overflow: hidden;
}
.sponsors-label {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.sponsors-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.sponsors-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: sponsorScroll 24s linear infinite;
}
.sponsors-track-wrap:hover .sponsors-track {
  animation-play-state: paused;
}
.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 44px;
  flex-shrink: 0;
}
.sponsor-logo {
  height: 46px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.35s;
  display: block;
}
.sponsor-item a { display: block; }
.sponsor-item:hover .sponsor-logo,
.sponsor-item a:hover .sponsor-logo {
  opacity: 0.75;
}
@keyframes sponsorScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===========================
   SCROLL REVEAL
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1060px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .about-intro { grid-template-columns: 1fr; gap: 48px; }
  .director-wrap { grid-template-columns: 1fr; }
  .director-card { max-width: 360px; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .home-cards-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 18px; gap: 12px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .values-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .page-hero-content { padding: 32px 20px; }
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
}

/* ===========================
   NAV DROPDOWN
   =========================== */
.nav-group {
  position: relative;
}
.nav-group-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
}
.nav-group-trigger:hover,
.nav-group:hover .nav-group-trigger {
  color: var(--text);
  background: var(--surface2);
}
.nav-group-trigger.active {
  color: var(--accent);
  background: var(--accent-dim);
}
.nav-caret {
  width: 10px; height: 6px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.nav-group:hover .nav-caret { transform: rotate(180deg); }

.nav-group-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  transition-delay: 0.12s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  z-index: 200;
}
.nav-group:hover .nav-group-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.nav-group-item {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-group-item:hover { color: var(--text); background: var(--surface2); }
.nav-group-item.active { color: var(--accent); background: var(--accent-dim); }

/* ===========================
   MOBILE NAV — ACCORDION
   =========================== */
.mobile-nav-section-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
}
.mobile-nav-section-trigger:hover { color: var(--text); background: var(--surface2); }
.mobile-nav-section-trigger.active { color: var(--accent); }

.mobile-nav-caret {
  width: 12px; height: 7px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.mobile-nav-section.open .mobile-nav-caret { transform: rotate(180deg); }

.mobile-nav-sub {
  display: none;
  background: var(--surface);
}
.mobile-nav-section.open .mobile-nav-sub { display: block; }

.mobile-nav-sub-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 28px 12px 44px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}
.mobile-nav-sub-link:last-child { border-bottom: none; }
.mobile-nav-sub-link:hover { color: var(--text); background: var(--surface2); }
.mobile-nav-sub-link.active { color: var(--accent); }
