/* ============ FONTS ============ */
@font-face {
  font-family: 'Hikasami';
  src: url('/fonts/Hikasami/Hikasami.woff2') format('woff2'),
       url('/fonts/Hikasami/Hikasami.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hikasami';
  src: url('/fonts/Hikasami/Hikasami-Medium.woff2') format('woff2'),
       url('/fonts/Hikasami/Hikasami-Medium.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hikasami';
  src: url('/fonts/Hikasami/Hikasami-SemiBold.woff2') format('woff2'),
       url('/fonts/Hikasami/Hikasami-SemiBold.woff') format('woff');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hikasami';
  src: url('/fonts/Hikasami/Hikasami-Bold.woff2') format('woff2'),
       url('/fonts/Hikasami/Hikasami-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ============ CSS VARIABLES (LIGHT THEME — nec.eu.com) ============ */
:root {
  --primary: #213F8E;
  --primary-dark: #1a3270;
  --primary-light: #1e5a85;
  --accent: #138BC1;
  --accent-light: #138BC1;
  --accent-dark: #0f6f9c;
  --green: #25C35E;
  --green-dark: #1FA94F;
  --orange: #f67e57;
  --gold: #e8b445;
  /* Dark navy zones — heroes, footer, CTA */
  --navy: #161829;
  --navy-2: #213F8E;
  /* Light surfaces */
  --bg-dark: #FFFFFF;
  --bg-darker: #F6FBFD;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F6FBFD;
  --bg-surface: #F6FBFD;
  /* Text */
  --text-primary: #161829;
  --text-secondary: #5c5f6e;
  --text-muted: #8b8e9c;
  /* Borders */
  --border: #E2E6EC;
  --border-light: #D2D8E0;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow: 0 4px 22px rgba(22,24,41,0.06);
  --shadow-lg: 0 18px 48px rgba(22,24,41,0.13);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Hikasami', 'Montserrat', sans-serif;
  --container: 1280px;
  --gutter: 24px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { font-family: var(--font-body); background: var(--bg-dark); color: var(--text-primary); line-height: 1.7; overflow-x: hidden; font-size: 1rem; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ============ CONTAINER ============ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.section-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.75rem; }
.section-label::before { content: ''; width: 40px; height: 4px; background: var(--accent); }
.section-header { margin-bottom: 3rem; }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; max-width: 700px; margin-top: 1rem; }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.75rem; border-radius: 6px; font-weight: 600; font-size: 0.9rem; transition: var(--transition); position: relative; overflow: hidden; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 16px rgba(19,139,193,0.25); }
.btn-primary:hover { background: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(19,139,193,0.3); color: #fff; }
.btn-outline { border: 1.5px solid var(--border-light); color: var(--text-primary); background: #fff; }
.btn-outline:hover { border-color: var(--accent); background: rgba(19,139,193,0.05); color: var(--accent); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.8rem; }
.btn-lg { padding: 1.05rem 2.4rem; font-size: 1rem; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 4px 16px rgba(37,195,94,0.25); }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,195,94,0.3); color: #fff; }

/* ============ HEADER ============ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1001; }
.header-top { background: var(--bg-darker); border-bottom: 1px solid var(--border); padding: 0.5rem 0; font-size: 0.8rem; }
.header-top-inner { display: flex; justify-content: center; align-items: center; position: relative; }
.header-top-email { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.header-top-center { display: flex; gap: 1.1rem; align-items: center; }
.header-top-right { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.header-link { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); }
.header-link:hover { color: var(--accent); }
.header-social { display: flex; gap: 0.75rem; }
.header-social a { color: var(--text-muted); transition: var(--transition); }
.header-social a:hover { color: var(--accent); }
.header-link-whatsapp { color: #1faa52 !important; }
.header-link-whatsapp:hover { color: #178a42 !important; }
.header-top-cs { color: var(--text-primary); font-weight: 600; }
.header-link-strong { color: var(--accent); font-weight: 700; }
.header-link-strong:hover { color: var(--accent-dark); }

/* ============ FLOATING CALL / WHATSAPP BUTTONS (desktop) ============ */
.floating-actions {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 990; display: flex; flex-direction: column; gap: 16px;
}
.floating-action { display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; }
.floating-action-icon {
  width: 54px; height: 54px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 10px 24px rgba(22,24,41,0.20);
  transition: transform 0.25s, box-shadow 0.25s;
}
.floating-action:hover .floating-action-icon { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 30px rgba(22,24,41,0.28); }
.floating-action-call .floating-action-icon { background: linear-gradient(135deg, #f7964f, #f57e3f); }
.floating-action-wa .floating-action-icon { background: linear-gradient(135deg, #2dd36c, #20b956); }
.floating-action-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
.floating-action-call .floating-action-label { color: #e8763f; }
.floating-action-wa .floating-action-label { color: #1FA94F; }
@media (max-width: 768px) { .floating-actions { display: none; } } /* mobile uses the bottom CTA bar */

.header-nav { position: relative; z-index: 1000; background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); transition: background 0.4s, padding 0.4s, box-shadow 0.4s; padding: 1rem 0; }
.header-nav.scrolled { background: rgba(255,255,255,0.98); padding: 0.65rem 0; box-shadow: 0 2px 24px rgba(22,24,41,0.08); }
.header-nav.hidden { transform: translateY(-100%); }
.header-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.9rem; }

.header-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.header-logo-img { height: 44px; width: auto; display: block; transition: opacity 0.25s; }
.header-logo:hover .header-logo-img { opacity: 0.85; }
.header-nav.scrolled .header-logo-img { height: 38px; }
.footer-logo-img { height: 48px; width: auto; display: block; margin-bottom: 1rem; }
@media (max-width: 768px) {
  .header-logo-img { height: 36px; }
  .header-nav.scrolled .header-logo-img { height: 32px; }
}

.header-logos { display: flex; align-items: center; gap: 1.25rem; }
.header-brand-logos { display: flex; align-items: center; gap: 1rem; padding-left: 0.6rem; padding-right: 0.2rem; border-left: 1px solid var(--border); flex-shrink: 0; }
.header-brand-link { display: inline-flex; align-items: center; }
.header-brand-logo { height: 40px; width: auto; opacity: 0.92; transition: opacity 0.3s, transform 0.3s; }
.header-brand-logo-fuji { height: 34px; }
.header-brand-link:hover .header-brand-logo { opacity: 1; transform: translateY(-1px); }
/* Hide brand logos on narrower desktops/tablets where the nav gets crowded */
@media (max-width: 1220px) { .header-brand-logos { display: none; } }

.nav-menu { display: flex; align-items: center; gap: 0.15rem; flex-shrink: 0; }
.nav-link { padding: 0.55rem 0.42rem; color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; border-radius: 6px; transition: var(--transition); display: flex; align-items: center; gap: 0.26rem; white-space: nowrap; }
.nav-link:hover { color: var(--accent); background: rgba(19,139,193,0.07); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu { position: absolute; top: calc(100% + 0.5rem); left: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem; min-width: 240px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: var(--transition); box-shadow: var(--shadow-lg); z-index: 100; }
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-mega { min-width: 300px; display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; }
.nav-dropdown-item { display: block; padding: 0.625rem 0.875rem; color: var(--text-primary); font-size: 0.825rem; font-weight: 600; border-radius: 6px; transition: var(--transition); }
.nav-dropdown-item:hover { background: rgba(19,139,193,0.08); color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.header-actions .btn { flex-shrink: 0; white-space: nowrap; }
.header-actions .lang-dropdown { flex-shrink: 0; }
.mobile-toggle { display: none; width: 28px; height: 20px; position: relative; }
.mobile-toggle span { display: block; width: 100%; height: 2px; background: var(--text-primary); position: absolute; left: 0; transition: var(--transition); border-radius: 2px; }
.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 9px; }
.mobile-toggle span:nth-child(3) { bottom: 0; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg); bottom: 9px; }

/* ============ HERO (dark navy zone) ============ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 8rem 0 4rem; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); opacity: 0.5; object-fit: cover; }
.hero-fallback-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; position: absolute; top: 0; left: 0; }
.hero-bg img:only-child { opacity: 0.6; }
.hero-bg video + img { display: none; }
/* Hero image slider (2 slides, crossfade) */
.hero-slider { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.5s ease-in-out; will-change: opacity; }
.hero-slide.active { opacity: 0.55; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(22,24,41,0.82) 0%, rgba(22,24,41,0.55) 55%, rgba(22,24,41,0.4) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.25rem; background: rgba(19,139,193,0.2); border: 1px solid rgba(19,139,193,0.4); border-radius: 50px; font-size: 0.9rem; color: #6fd0f5; margin-bottom: 1.5rem; font-weight: 500; }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.hero-title { margin-bottom: 1.5rem; color: #fff; }
.hero-title .gradient-text { background: linear-gradient(135deg, #4cc3ee, var(--green), #4cc3ee); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.25rem; color: rgba(255,255,255,0.82); max-width: 700px; margin-bottom: 2.5rem; line-height: 1.8; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 3rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.15); }
.hero-stat { text-align: left; }
.hero-stat-value { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: #4cc3ee; }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

/* Decorative elements */
.hero-decor { position: absolute; right: -5%; top: 50%; transform: translateY(-50%); z-index: 0; }
.hero-glow { width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(19,139,193,0.25) 0%, transparent 70%); filter: blur(60px); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ============ SECTIONS ============ */
section { padding: 6rem 0; position: relative; }
.section-dark { background: var(--navy); color: rgba(255,255,255,0.85); }
.section-dark .section-header h1, .section-dark .section-header h2, .section-dark .section-header h3, .section-dark .section-header h4,
.section-dark > .container > h1, .section-dark > .container > h2, .section-dark > .container > h3 { color: #fff; }
.section-dark .section-header p { color: rgba(255,255,255,0.78); }
.section-gradient { background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%); }

/* ============ PRODUCT CARDS ============ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 1.5rem; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
.product-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(22,24,41,0.12); }
.product-card-image { position: relative; height: 240px; overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.product-card:hover .product-card-image img { transform: scale(1.08); }
.product-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,24,41,0.55) 0%, transparent 60%); }
.product-card-body { padding: 1.5rem; }
.product-card-body h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.product-card-body p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }
.product-card-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--accent); font-weight: 600; font-size: 0.85rem; margin-top: 1rem; }
.product-card-link svg { transition: transform 0.3s; }
.product-card-link:hover svg { transform: translateX(4px); }

/* ============ PRODUCTS BENTO (immersive overlay tiles) ============ */
.products-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 252px;
  gap: 1.35rem;
}
/* Bento composition (tuned for the 7 product categories) */
.product-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.product-tile:nth-child(6) { grid-column: span 2; }
.product-tile:nth-child(7) { grid-column: span 2; }

.product-tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy); text-decoration: none;
  box-shadow: 0 10px 30px rgba(22,24,41,0.10);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s;
}
.product-tile:hover { transform: translateY(-5px); box-shadow: 0 26px 58px rgba(19,139,193,0.22); }
.product-tile-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.product-tile:hover .product-tile-img { transform: scale(1.07); }
.product-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,15,26,0.92) 0%, rgba(11,15,26,0.42) 42%, rgba(11,15,26,0.04) 78%);
  transition: background 0.45s;
}
.product-tile:hover .product-tile-overlay {
  background: linear-gradient(to top, rgba(11,15,26,0.95) 0%, rgba(19,139,193,0.34) 58%, rgba(11,15,26,0.12) 100%);
}
.product-tile-arrow {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; color: #fff;
  opacity: 0; transform: translateY(-6px) scale(0.85);
  transition: opacity 0.4s, transform 0.4s;
}
.product-tile:hover .product-tile-arrow { opacity: 1; transform: translateY(0) scale(1); }
.product-tile-content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.5rem 1.6rem;
}
.product-tile-content::before {
  content: ''; position: absolute; left: 1.6rem; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 2px; transition: width 0.45s;
}
.product-tile:hover .product-tile-content::before { width: 48px; }
.product-tile-content h3 {
  color: #fff; font-size: 1.5rem; margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45); letter-spacing: -0.01em;
  transform-origin: left center; transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.product-tile:hover .product-tile-content h3 { transform: scale(1.07); }
.product-tile:nth-child(1) .product-tile-content h3 { font-size: 2.3rem; }
.product-tile-desc {
  color: rgba(255,255,255,0.94); font-size: 1.02rem; line-height: 1.62;
  margin: 0; max-width: 46ch;
  max-height: 0; opacity: 0; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  transition: max-height 0.45s ease, opacity 0.35s, margin 0.45s;
}
.product-tile:nth-child(1) .product-tile-desc { -webkit-line-clamp: 7; font-size: 1.05rem; }
.product-tile:nth-child(1):hover .product-tile-desc { max-height: 250px; }
.product-tile:hover .product-tile-desc { max-height: 140px; opacity: 1; margin-top: 0.55rem; }
.product-tile-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: #7ad4f7; font-weight: 700; font-size: 0.9rem;
  max-height: 0; opacity: 0; overflow: hidden; margin-top: 0;
  transition: max-height 0.4s, opacity 0.35s, margin 0.4s;
}
.product-tile:hover .product-tile-link { max-height: 28px; opacity: 1; margin-top: 0.9rem; }
.product-tile-link svg { transition: transform 0.3s; }
.product-tile:hover .product-tile-link svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .products-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .product-tile:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .product-tile:nth-child(1) .product-tile-content h3 { font-size: 1.7rem; }
  .product-tile:nth-child(6), .product-tile:nth-child(7) { grid-column: span 1; }
}
@media (max-width: 560px) {
  .products-bento { grid-template-columns: 1fr; grid-auto-rows: 262px; }
  .product-tile:nth-child(1) { grid-column: span 1; }
}
/* Touch devices: no hover — always reveal description + link */
@media (hover: none) {
  .product-tile-desc { max-height: 140px; opacity: 1; margin-top: 0.55rem; }
  .product-tile:nth-child(1) .product-tile-desc { max-height: 250px; }
  .product-tile-link { max-height: 28px; opacity: 1; margin-top: 0.9rem; }
  .product-tile-content::before { width: 48px; }
}

/* ============ SERVICE CARDS ============ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 1.25rem; }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: all 0.4s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--green)); transform: scaleX(0); transition: transform 0.4s; transform-origin: left; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { border-color: var(--accent); background: var(--bg-card-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.service-card-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(19,139,193,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; color: var(--accent); font-size: 1.3rem; }
.service-card h4 { margin-bottom: 0.5rem; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* ============ SERVICE ROWS — editorial zig-zag (home) ============ */
.service-rows { display: flex; flex-direction: column; }
.service-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.25rem) 0;
  border-top: 1px solid var(--border);
}
.service-row:first-child { border-top: none; padding-top: 0.5rem; }
.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }

.service-row-media {
  position: relative; display: block;
  align-self: stretch; min-height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(22,24,41,0.12);
  transition: box-shadow 0.4s;
}
.service-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.4,0,0.2,1); }
.service-row:hover .service-row-media img { transform: scale(1.05); }
.service-row-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22,24,41,0.22), transparent 45%);
  opacity: 0.8; transition: opacity 0.4s;
}
.service-row:hover .service-row-media { box-shadow: 0 26px 60px rgba(19,139,193,0.20); }

.service-row-content { position: relative; }
.service-row-num {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 0.9;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.5rem;
}
.service-row-eyebrow {
  display: block;
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 0.55rem;
}
.service-row-content h3 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); color: var(--navy); margin-bottom: 0.85rem; letter-spacing: -0.01em; }
.service-row-content p { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.8; max-width: 46ch; margin-bottom: 1.6rem; }
.service-row-link {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--green-dark); font-weight: 700; font-size: 0.92rem;
  position: relative; padding-bottom: 2px;
}
.service-row-link::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--green)); transition: width 0.35s;
}
.service-row:hover .service-row-link::after { width: 100%; }
.service-row-link svg { transition: transform 0.3s; }
.service-row:hover .service-row-link svg, .service-row-link:hover svg { transform: translateX(5px); }

@media (max-width: 860px) {
  .service-row, .service-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: 1.25rem; padding: 2rem 0; }
  .service-row:first-child { padding-top: 0; }
  .service-row-content p { max-width: none; }
  .service-row-num { font-size: 2.2rem; }
}

/* ============ PROJECT CARDS ============ */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(480px, 100%), 1fr)); gap: 1.75rem; }
.project-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/11; cursor: pointer; min-height: 360px; max-width: 100%; }
.project-card-image { position: absolute; inset: 0; }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.project-card:hover .project-card-image img { transform: scale(1.1); }
.project-card-content { position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,24,41,0.95) 0%, rgba(22,24,41,0.3) 50%, transparent 100%); padding: 2rem; display: flex; flex-direction: column; justify-content: flex-end; transition: var(--transition); }
.project-card:hover .project-card-content { background: linear-gradient(to top, rgba(22,24,41,0.98) 0%, rgba(22,24,41,0.5) 60%, rgba(22,24,41,0.2) 100%); }
.project-card-location { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #4cc3ee; margin-bottom: 0.5rem; }
.project-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: #fff; }
.project-card p { color: rgba(255,255,255,0.8); font-size: 1rem; line-height: 1.7; max-height: 0; overflow: hidden; transition: max-height 0.5s; }
.project-card:hover p { max-height: 120px; }

/* ============ BLOG CARDS ============ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr)); gap: 1.5rem; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.blog-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card-image { height: 200px; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { padding: 1.5rem; }
.blog-card-date { font-size: 0.75rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.blog-card-body h3 { font-size: 1.1rem; line-height: 1.4; margin-bottom: 0.75rem; }
.blog-card-body h3 a { color: var(--text-primary); }
.blog-card-body h3 a:hover { color: var(--accent); }
.blog-card-excerpt { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* ============ PAGE HERO (dark navy zone) ============ */
.page-hero { padding: 10rem 0 4rem; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(19,139,193,0.18) 0%, transparent 70%); }
.page-hero-title { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1rem; color: #fff; }
.page-hero-subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.8); max-width: 800px; line-height: 1.8; }
.breadcrumb { display: flex; gap: 0.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 2rem; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.6); }

/* ============ CONTENT SECTIONS ============ */
.content-section { padding: 4rem 0; }
.section-tinted { background: var(--bg-darker); }
.section-tinted h1, .section-tinted h2, .section-tinted h3, .section-tinted h4 { color: var(--text-primary); }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }
.content-text h3 { margin-bottom: 1rem; }
.content-text p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.8; font-size: 1.05rem; }
.content-image { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.content-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
/* Main section image fills its column (no small floating image with whitespace) */
.content-grid > .content-image { align-self: stretch; min-height: 300px; }

/* Feature list */
.feature-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(19,139,193,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); }
.feature-item h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.feature-item p { color: var(--text-secondary); font-size: 0.95rem; }

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: 0.875rem 1rem; font-size: 0.95rem; }
.specs-table td:first-child { color: var(--text-muted); font-weight: 500; width: 40%; }
.specs-table td:last-child { color: var(--text-primary); }

/* Values grid */
.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 1.5rem; margin-top: 2rem; }
.value-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; text-align: center; transition: var(--transition); }
.value-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.value-card h4 { color: var(--accent); margin-bottom: 0.5rem; }
.value-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* Partners section */
.partners-section { padding: 3rem 0; }
.partners-track { display: flex; gap: 3rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.partners-track img { height: 40px; opacity: 0.65; transition: var(--transition); }
.partners-track img:hover { opacity: 1; }
.partner-logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--text-muted); transition: var(--transition); }
.partner-logo-text:hover { color: var(--text-primary); }

/* ============ CONTACT PAGE ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; display: flex; gap: 1rem; align-items: flex-start; transition: var(--transition); }
.contact-info-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.contact-info-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(19,139,193,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); }
.contact-info-card h4 { font-size: 0.9rem; margin-bottom: 0.25rem; }
.contact-info-card p, .contact-info-card a { color: var(--text-secondary); font-size: 0.875rem; }

/* Full-width contact map */
.contact-map {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  line-height: 0;
}
.contact-map iframe {
  width: 100%;
  height: 440px;
  border: 0;
  display: block;
  filter: grayscale(0.18) contrast(1.04);
  transition: filter 0.45s;
}
.contact-map:hover iframe { filter: none; }
@media (max-width: 768px) { .contact-map iframe { height: 320px; } }

/* Form */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.5rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-control { width: 100%; padding: 0.875rem 1rem; background: var(--bg-surface); border: 1.5px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-size: 0.9rem; transition: var(--transition); font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(19,139,193,0.12); }
.form-control::placeholder { color: var(--text-muted); }
.form-control-invalid { border-color: var(--orange) !important; }
textarea.form-control { min-height: 140px; resize: vertical; }
select.form-control {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8e9c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}
.form-err {
  font-size: 0.75rem;
  color: var(--orange);
  margin-top: 0.35rem;
  min-height: 1em;
}
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-submit-error, .form-submit-success {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.form-submit-error { background: rgba(246,126,87,0.1); border: 1px solid rgba(246,126,87,0.3); color: #d8512a; }
.form-submit-success { background: rgba(37,195,94,0.1); border: 1px solid rgba(37,195,94,0.3); color: var(--green-dark); }

/* ============ CONFIGURATOR ============ */
.configurator-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 3rem; box-shadow: var(--shadow); }
.config-step { margin-bottom: 2rem; }
.config-step-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.config-step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
.config-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 1rem; }
.config-option { background: var(--bg-surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 1rem; cursor: pointer; text-align: center; transition: var(--transition); font-size: 0.875rem; }
.config-option:hover, .config-option.active { border-color: var(--accent); background: rgba(19,139,193,0.08); color: var(--accent); }

/* ============ BLOG POST ============ */
.blog-post-content { max-width: 800px; margin: 0 auto; padding: 3rem 0; }
.blog-post-content h3 { margin: 2rem 0 1rem; }
.blog-post-content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.25rem; font-size: 1.05rem; }
.blog-post-content ul { margin: 1rem 0; padding-left: 1.5rem; }
.blog-post-content li { color: var(--text-secondary); margin-bottom: 0.75rem; line-height: 1.7; list-style: disc; }
.blog-post-content strong { color: var(--text-primary); }
.blog-post-hero { text-align: center; padding: 10rem 0 3rem; }
.blog-post-hero h1, .blog-post-hero .breadcrumb, .blog-post-hero .breadcrumb a, .blog-post-hero .breadcrumb span { color: #fff; }
.blog-post-hero img { max-width: 800px; margin: 2rem auto 0; border-radius: var(--radius-lg); }

/* Mobile: tighten the hero and make the feature image a clean full-bleed banner
   flush to the content, instead of a cramped card floating in the navy. */
@media (max-width: 768px) {
  .blog-post-hero { padding: 5.5rem 0 0; }
  .blog-post-hero .breadcrumb { margin-bottom: 0.85rem !important; font-size: 0.72rem; flex-wrap: wrap; }
  .blog-post-hero .blog-card-date { margin-bottom: 0.55rem !important; }
  .blog-post-hero h1 { font-size: 1.45rem; line-height: 1.32; padding: 0 0.25rem; }
  .blog-post-hero img {
    max-width: none;
    width: 100vw;
    margin: 1.4rem 0 0 calc(50% - 50vw);
    border-radius: 0;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
  }
  .blog-post-content { padding: 2rem 0; }
  .blog-post-content p { font-size: 1rem; }
}

/* ============ 404 ============ */
.page-404 { min-height: 80vh; min-height: 80dvh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 0; }
.page-404 h1 { font-size: 8rem; background: linear-gradient(135deg, var(--accent), var(--green)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-404 p { color: var(--text-secondary); margin: 1rem 0 2rem; }

/* ============ CTA SECTION (dark navy zone) ============ */
.cta-section { padding: 6rem 0; text-align: center; background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 100%); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; height: 400px; border-radius: 50%; background: radial-gradient(ellipse, rgba(19,139,193,0.2) 0%, transparent 70%); }
.cta-section h2 { margin-bottom: 1rem; position: relative; color: #fff; }
.cta-section p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 2rem; font-size: 1.05rem; position: relative; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-section .btn-outline { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-section .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }

/* ============ HORIZONTAL SCROLL ============ */
.horizontal-scroll-section { overflow: hidden; }
.horizontal-scroll-container { display: flex; gap: 1.5rem; width: max-content; padding: 2rem 0; }
.horizontal-scroll-container .product-card { width: 380px; flex-shrink: 0; }

/* ============ SAFETY / AI SECTION ============ */
.ai-card { background: linear-gradient(135deg, rgba(19,139,193,0.07), rgba(37,195,94,0.05)); border: 1px solid rgba(19,139,193,0.2); border-radius: var(--radius-lg); padding: 2.5rem; margin-top: 2rem; }
.ai-card h3 { color: var(--accent); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.ai-card p { color: var(--text-secondary); line-height: 1.8; }

/* Parking systems */
.system-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: var(--transition); }
.system-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.system-card h4 { margin-bottom: 0.5rem; }
.system-card p { color: var(--text-secondary); font-size: 0.875rem; }

/* Accessibility types */
.type-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: var(--transition); }
.type-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.type-card h4 { color: var(--accent); margin-bottom: 0.75rem; }
.type-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.5rem; }
.type-card .applications { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

/* Stair products */
.stair-product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.stair-product-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.stair-product-image { height: 250px; overflow: hidden; background: var(--bg-surface); display: flex; align-items: center; justify-content: center; }
.stair-product-image img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; transition: transform 0.5s; padding: 1rem; }
.stair-product-card:hover .stair-product-image img { transform: scale(1.05); }
.stair-product-body { padding: 1.5rem; }
.stair-product-body .model { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.5rem; }
.stair-product-body h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.stair-product-body p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }

/* ============ FOOTER (dark navy zone) ============ */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.96); }
.footer-main { padding: 4rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; }
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo .logo-mark { font-size: 2rem; }
.footer-desc { color: rgba(255,255,255,0.96); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-certs { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.cert-badge { padding: 0.4rem 0.875rem; background: rgba(19,139,193,0.18); border: 1px solid rgba(19,139,193,0.35); border-radius: 50px; font-size: 0.75rem; font-weight: 600; color: #6fd0f5; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: #fff; transition: var(--transition); }
.footer-social a:hover { background: rgba(19,139,193,0.25); color: #fff; }
.footer-heading { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #fff; font-size: 0.85rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contacts li { display: flex; gap: 0.75rem; margin-bottom: 1rem; color: #fff; font-size: 0.85rem; }
.footer-contacts svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.footer-contacts a { color: #fff; }
.footer-contacts a:hover { color: #fff; }
.footer-fuji-bar {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
}
.footer-fuji-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.footer-fuji-logo { height: 28px; width: auto; }
.footer-fuji-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
}
@media (max-width: 768px) {
  .footer-fuji-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-fuji-text { font-size: 0.75rem; }
}

.footer-bottom { padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.92); gap: 1.5rem; flex-wrap: wrap; }
.footer-partners-mini { display: flex; gap: 0.5rem; align-items: center; }
.footer-legal-links { display: flex; gap: 1rem; }
.footer-legal-links a { color: rgba(255,255,255,0.92); transition: var(--transition); }
.footer-legal-links a:hover { color: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .content-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }
  section { padding: 4rem 0; }
  .header-top { display: none; }
  /* backdrop-filter makes .header-nav the containing block for its fixed child
     .nav-menu, which would trap the menu inside the ~108px header. Drop it on
     mobile (header bg is already 92% opaque) so the menu fills the viewport. */
  .header-nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-menu { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-dark); flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0.15rem; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; padding: calc(4.75rem + env(safe-area-inset-top)) 1.25rem calc(2rem + env(safe-area-inset-bottom)); z-index: 999; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .nav-menu.open { opacity: 1; visibility: visible; }
  /* keep logo + language switch tappable above the open menu panel */
  .header-logo, .lang-dropdown { position: relative; z-index: 1001; }
  .mobile-toggle { display: block; z-index: 1001; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
  .nav-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: none; box-shadow: none; min-width: unset; padding: 0.1rem 0 0.5rem 1rem; display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-mega { grid-template-columns: 1fr; }
  .nav-dropdown-item { padding: 0.7rem 0.875rem; font-size: 0.9rem; }
  .nav-link { font-size: 1rem; padding: 0.85rem 1rem; min-height: 48px; }
  .products-grid, .services-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero { min-height: auto; padding: 8rem 0 4rem; }
  /* On phones the video isn't downloaded — show the lightweight poster image as LCP */
  .hero-bg video.hero-video { display: none; }
  .hero-bg .hero-fallback-img { display: block; opacity: 0.6; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .header-actions .btn { display: none; }
  /* iOS Safari auto-zooms when a focused input is <16px — force 16px on phones */
  .form-control, textarea.form-control, select.form-control, .newsletter-input { font-size: 16px; }
}

/* ============ PARTNERS SLIDER ============ */
.partners-slider-section {
  padding: 4rem 0;
  overflow: hidden;
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners-slider-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.partners-slider-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}
.partners-slider-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.partners-slider-track {
  display: flex;
  gap: 4rem;
  align-items: center;
  width: max-content;
  animation: partnerScroll 30s linear infinite;
}
.partners-slider-track:hover {
  animation-play-state: paused;
}
.partner-slide {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
}
.partner-slide img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.75;
  transition: all 0.4s;
}
.partner-slide:hover img {
  opacity: 1;
  transform: scale(1.08);
}
.partner-slide a {
  display: flex;
  align-items: center;
}

@keyframes partnerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .partners-slider-track { gap: 2.5rem; animation-duration: 20s; }
  .partner-slide img { height: 28px; max-width: 100px; }
}

/* ============ NEWSLETTER ============ */
.newsletter-section { padding: 4rem 0; }
.newsletter-card {
  background: linear-gradient(135deg, rgba(19,139,193,0.07), rgba(37,195,94,0.05));
  border: 1px solid rgba(19,139,193,0.2);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.newsletter-content h3 { font-size: 1.3rem; margin-top: 0.5rem; }
.newsletter-form { flex-shrink: 0; min-width: 400px; }
.newsletter-input-wrap { display: flex; gap: 0.5rem; }
.newsletter-input {
  flex: 1; padding: 0.875rem 1.25rem; background: #fff;
  border: 1.5px solid var(--border); border-radius: 6px;
  color: var(--text-primary); font-size: 0.95rem; outline: none;
  font-family: inherit;
}
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-input::placeholder { color: var(--text-muted); }
.newsletter-btn { flex-shrink: 0; }
.newsletter-msg { font-size: 0.85rem; margin-top: 0.75rem; padding-left: 1.25rem; min-height: 1.5em; }
@media (max-width: 768px) {
  .newsletter-card { flex-direction: column; text-align: center; padding: 2rem; }
  .newsletter-form { min-width: unset; width: 100%; }
  .newsletter-input-wrap { flex-direction: column; }
}

/* ============ LANGUAGE DROPDOWN ============ */
.lang-dropdown { position: relative; }
.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}
.lang-dropdown-toggle:hover { border-color: var(--border-light); background: var(--bg-darker); color: var(--text-primary); }
.lang-dropdown-toggle .lang-flag-emoji { font-size: 1.25rem; line-height: 1; }
.lang-current-name { font-size: 0.8rem; }
.lang-dropdown-toggle svg { color: var(--text-muted); transition: transform 0.25s; }
.lang-dropdown.open .lang-dropdown-toggle svg { transform: rotate(180deg); }
.lang-dropdown.open .lang-dropdown-toggle { border-color: var(--accent); background: rgba(19,139,193,0.06); }

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem;
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s;
  z-index: 200;
}
.lang-dropdown.open .lang-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.875rem;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}
.lang-dropdown-item:hover { background: rgba(19,139,193,0.07); color: var(--text-primary); }
.lang-dropdown-item.active { background: rgba(19,139,193,0.1); color: var(--accent); }
.lang-dropdown-item .lang-flag-emoji { font-size: 1.3rem; line-height: 1; }

@media (max-width: 768px) {
  .lang-current-name { display: none; }
  .lang-dropdown-toggle { padding: 0.55rem 0.65rem; min-height: 44px; }
}

/* ============ MOBILE CTA BAR ============ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 998;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px;
  gap: 4px;
  box-shadow: 0 10px 36px rgba(22,24,41,0.18);
  justify-content: space-between;
  align-items: stretch;
}
.mobile-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 40px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  min-height: 44px;
  white-space: nowrap;
}
.mobile-cta-call { background: rgba(19,139,193,0.12); color: var(--accent); }
.mobile-cta-call:hover { background: var(--accent); color: #fff; }
.mobile-cta-whatsapp { background: rgba(37,195,94,0.12); color: var(--green-dark); }
.mobile-cta-whatsapp:hover { background: var(--green); color: #fff; }
.mobile-cta-quote { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(19,139,193,0.3); }
.mobile-cta-quote:hover { background: var(--primary); transform: translateY(-1px); color: #fff; }
body.menu-open .mobile-cta-bar { display: none !important; }
body.menu-open .chat-widget { display: none !important; }

@media (max-width: 768px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  /* Lift the AI chat bubble above the sticky CTA bar (correct selector: .chat-widget) */
  .chat-widget { bottom: calc(88px + env(safe-area-inset-bottom)) !important; right: 16px !important; }
}
@media (max-width: 380px) {
  .mobile-cta-btn span { display: none; }
  .mobile-cta-btn { padding: 10px; min-width: 44px; }
}

/* ============ COOKIE CONSENT ============ */
.cookie-consent {
  position: fixed;
  left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 999;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 60px rgba(22,24,41,0.2);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 820px;
  margin: 0 auto;
  transform: translateY(150%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-consent.visible { transform: translateY(0); }
.cookie-consent-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.cookie-consent-text a { color: var(--accent); }
.cookie-consent-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.25s;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.cookie-btn-accept { background: var(--accent); color: #fff; }
.cookie-btn-accept:hover { background: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(19,139,193,0.3); }
.cookie-btn-decline { background: transparent; border-color: var(--border-light); color: var(--text-secondary); }
.cookie-btn-decline:hover { border-color: var(--text-muted); color: var(--text-primary); }
@media (max-width: 640px) {
  .cookie-consent { flex-direction: column; align-items: stretch; text-align: center; bottom: calc(88px + env(safe-area-inset-bottom)); }
  .cookie-consent-actions { justify-content: center; }
}

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-grid { display: grid; gap: 1.5rem; }
.two-col { grid-template-columns: 1fr 1fr; }
.three-col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .two-col, .three-col { grid-template-columns: 1fr; } }

/* ============ PROFESSIONAL MOBILE QA FIXES ============ */
/* Touch devices (any orientation): 16px form inputs to stop iOS focus-zoom, and never
   load the 20MB hero video on phones/tablets (the width media-query missed landscape). */
@media (hover: none) and (pointer: coarse) {
  .form-control, textarea.form-control, select.form-control, .newsletter-input { font-size: 16px; }
  .hero-bg video.hero-video { display: none; }
  .hero-bg .hero-fallback-img { display: block; opacity: 0.6; }
}
/* Cookie buttons clear the 44px tap-target floor everywhere */
.cookie-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
/* ≥44px tap targets + chat clearance on phones */
@media (max-width: 768px) {
  .mobile-toggle::before { content: ''; position: absolute; top: -12px; bottom: -12px; left: -10px; right: -10px; }
  .footer-social a { width: 44px; height: 44px; }
  .footer-links a { display: flex; align-items: center; min-height: 44px; }
  .footer-contacts a { display: inline-flex; align-items: center; min-height: 36px; }
  .lang-dropdown-item { min-height: 44px; }
  .footer-bottom { padding-bottom: 4.5rem; } /* keep the partners line clear of the floating chat bubble */
}
/* Compact cookie banner on phones so it doesn't bury the hero CTAs */
@media (max-width: 640px) {
  .cookie-consent { padding: 0.85rem 1rem; gap: 0.65rem; }
  .cookie-consent-text { font-size: 0.8rem; line-height: 1.45; }
}
/* Short viewports (landscape phones): cap banner height so it never crosses the headline */
@media (max-height: 480px) {
  .cookie-consent { max-height: 78vh; max-height: 78dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
}
