/*
Theme Name: Modle
Theme URI: https://modle.com
Description: Custom theme for Modle Indoor Wooden Playgrounds
Version: 2.0
Author: Modle
*/

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --bg-warm: #FFF9F2;
  --bg-cream: #FEF5E7;
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --accent-light: rgba(245, 158, 11, 0.10);
  --accent-glow: rgba(245, 158, 11, 0.30);
  --accent-soft: rgba(245, 158, 11, 0.06);
  --green: #10B981;
  --green-light: rgba(16, 185, 129, 0.08);
  --blue: #3B82F6;
  --blue-light: rgba(59, 130, 246, 0.08);
  --purple: #8B5CF6;
  --purple-light: rgba(139, 92, 246, 0.08);
  --rose: #F43F5E;
  --rose-light: rgba(244, 63, 94, 0.08);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: rgba(0,0,0,0.06);
  --card-bg: rgba(255,255,255,0.7);
  --card-border: rgba(0,0,0,0.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg); color: var(--text-primary); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== AMBIENT ===== */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ambient-blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; animation: blobDrift 20s ease-in-out infinite alternate; }
.ambient-blob--1 { width: 600px; height: 600px; background: rgba(245,158,11,0.08); top: -10%; right: -5%; }
.ambient-blob--2 { width: 500px; height: 500px; background: rgba(59,130,246,0.05); bottom: 10%; left: -10%; animation-delay: -7s; }
.ambient-blob--3 { width: 400px; height: 400px; background: rgba(139,92,246,0.04); top: 40%; left: 30%; animation-delay: -12s; }
@keyframes blobDrift { 0%{transform:translate(0,0) scale(1)} 33%{transform:translate(30px,-20px) scale(1.05)} 66%{transform:translate(-20px,15px) scale(0.95)} 100%{transform:translate(10px,-10px) scale(1.02)} }

/* ===== SCROLL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(60px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; } .delay-4 { transition-delay: 0.4s; } .delay-5 { transition-delay: 0.5s; }

/* ===== NAV ===== */
nav#mainNav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 100;
  display: flex; align-items: center; gap: 40px; padding: 14px 32px; border-radius: 80px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
}
nav#mainNav.scrolled { background: rgba(255,255,255,0.95); box-shadow: 0 4px 32px rgba(0,0,0,0.08); }
.nav-logo { font-family: 'Comfortaa', cursive; font-size: 22px; font-weight: 700; color: var(--text-primary); letter-spacing: 2px; white-space: nowrap; }
.nav-logo span { color: var(--accent); }
nav#mainNav .nav-links { display: flex; gap: 28px; list-style: none; }
nav#mainNav .nav-links a { font-family: 'Comfortaa', cursive; font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); text-decoration: none; transition: color 0.3s; }
nav#mainNav .nav-links a:hover { color: var(--accent); }
.nav-cta { font-family: 'Comfortaa', cursive; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--white); background: var(--accent); border: none; padding: 10px 24px; border-radius: 40px; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 16px var(--accent-glow); white-space: nowrap; }
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(245,158,11,0.4); }

/* Hamburger */
.nav-hamburger { display: none; width: 28px; height: 20px; flex-direction: column; justify-content: space-between; cursor: pointer; border: none; background: none; padding: 0; }
.nav-hamburger i { display: block; width: 100%; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s; }
.nav-hamburger.open i:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-hamburger.open i:nth-child(2) { opacity: 0; }
.nav-hamburger.open i:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===== SHARED ===== */
.section-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; display: inline-flex; align-items: center; gap: 12px; }
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--accent); border-radius: 1px; }
.section-title { font-family: 'Comfortaa', cursive; font-size: 52px; font-weight: 700; color: var(--text-primary); line-height: 1.12; margin-bottom: 20px; }
.section-title span { color: var(--accent); }
.section-desc { font-size: 17px; line-height: 1.7; color: var(--text-secondary); max-width: 520px; margin-bottom: 60px; }

/* ===== HERO ===== */
.hero-scroll-wrapper { height: 150vh; position: relative; z-index: 1; }

.hero {
  position: fixed; top: 0; left: 0; right: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  height: 100vh; text-align: center; overflow: hidden;
}

#three-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }

.hero-content { position: relative; max-width: 800px; width: 100%; z-index: 2; padding: 120px 6% 0; margin: 0 auto; text-align: center; }
.hero-title { font-family: 'Comfortaa', cursive; font-size: 56px; font-weight: 700; line-height: 1.1; color: var(--text-primary); margin-bottom: 16px; opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.2s forwards; text-align: center; }
.hero-title-accent { color: var(--accent); position: relative; display: inline-block; }
.hero-title-accent::after { display: none; }
.hero-description { font-size: 16px; line-height: 1.7; font-weight: 400; color: var(--text-secondary); max-width: 500px; margin: 0 auto 36px; opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.35s forwards; }
.hero-actions { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.45s forwards; }
.btn-hero-main { font-size: 17px !important; padding: 20px 48px !important; letter-spacing: 0.8px; }
.hero-actions-sub { text-align: center; margin-top: 12px; opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.6s forwards; }
.btn-customize { font-family: 'Comfortaa', cursive; font-size: 14px; font-weight: 600; color: var(--text-primary); background: var(--white); border: 2px solid rgba(0,0,0,0.08); padding: 14px 32px; border-radius: 60px; cursor: pointer; letter-spacing: 0.3px; transition: all 0.3s; box-shadow: var(--shadow-sm); }
.btn-customize:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Scroll indicator */
.scroll-indicator { position: absolute; bottom: 40px; left: 0; right: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.8s forwards; }
.scroll-indicator.hide { animation: none; opacity: 0 !important; visibility: hidden; }
.scroll-indicator span { font-family: 'Comfortaa', cursive; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.scroll-arrow { width: 2px; height: 24px; background: linear-gradient(to bottom, #fff, transparent); border-radius: 1px; animation: scrollBounce 2s ease-in-out infinite; }
@keyframes scrollBounce { 0%,100%{transform:translateY(0);opacity:0.6} 50%{transform:translateY(8px);opacity:1} }

.btn-primary { font-family: 'Comfortaa', cursive; font-size: 14px; font-weight: 600; color: var(--white); background: var(--accent); border: none; padding: 16px 36px; border-radius: 60px; cursor: pointer; transition: all 0.4s cubic-bezier(0.22,1,0.36,1); box-shadow: 0 4px 20px var(--accent-glow); letter-spacing: 0.5px; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 32px rgba(245,158,11,0.4); }
.btn-glass { font-family: 'Comfortaa', cursive; font-size: 14px; font-weight: 500; color: var(--text-primary); background: rgba(255,255,255,0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 2px solid rgba(0,0,0,0.08); padding: 14px 32px; border-radius: 60px; cursor: pointer; transition: all 0.3s; box-shadow: var(--shadow-sm); letter-spacing: 0.5px; }
.btn-glass:hover { background: var(--white); border-color: var(--accent); color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Hero loader */
.hero-loader { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; background: var(--bg); transition: opacity 0.6s ease, visibility 0.6s ease; }
.hero-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.hero-loader-inner { text-align: center; }
.hero-loader-spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-loader-text { font-family: 'Comfortaa', cursive; font-size: 13px; font-weight: 500; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 12px; }
.hero-loader-bar { width: 200px; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.hero-loader-bar-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 2px; transition: width 0.3s ease; }

/* Hero zoomed state (unused with fixed hero) */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }

/* ===== STATS ===== */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0 6%; margin-top: 0; position: relative; z-index: 5; background: rgba(255,255,255,0.65); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding-top: 48px; }
.hero-stat { text-align: center; padding: 36px 16px; background: var(--bg-warm); border: 1px solid var(--border); position: relative; overflow: hidden; }
.hero-stat::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 3px; background: var(--accent); border-radius: 0 0 2px 2px; }
.hero-stat:first-child { border-radius: 20px 0 0 20px; }
.hero-stat:last-child { border-radius: 0 20px 20px 0; }
.stat-number { font-family: 'Comfortaa', cursive; font-size: 36px; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-label { font-family: 'Comfortaa', cursive; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-top: 8px; }

/* ===== SAFETY ===== */
.safety { position: relative; z-index: 5; padding: 120px 6% 100px; background: rgba(255,255,255,0.65); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.safety-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.safety-card {
  padding: 32px 24px; border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  position: relative; overflow: hidden;
}
.safety-card::before { content:''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 20px 20px 0 0; transition: height 0.3s; }
.safety-card:nth-child(1)::before { background: var(--accent); }
.safety-card:nth-child(2)::before { background: var(--green); }
.safety-card:nth-child(3)::before { background: var(--purple); }
.safety-card:nth-child(4)::before { background: var(--blue); }
.safety-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.safety-card:hover::before { height: 4px; }

.safety-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; position: relative; z-index: 1; }
.safety-card:nth-child(1) .safety-icon { background: var(--accent-light); }
.safety-card:nth-child(2) .safety-icon { background: var(--green-light); }
.safety-card:nth-child(3) .safety-icon { background: var(--purple-light); }
.safety-card:nth-child(4) .safety-icon { background: var(--blue-light); }
.safety-icon svg { width: 26px; height: 26px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.safety-card:nth-child(1) .safety-icon svg { stroke: var(--accent); }
.safety-card:nth-child(2) .safety-icon svg { stroke: var(--green); }
.safety-card:nth-child(3) .safety-icon svg { stroke: var(--purple); }
.safety-card:nth-child(4) .safety-icon svg { stroke: var(--blue); }

.safety-card-title { font-family: 'Comfortaa', cursive; font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; position: relative; z-index: 1; }
.safety-card-text { font-size: 14px; line-height: 1.65; color: var(--text-secondary); position: relative; z-index: 1; }
.safety-card-badge { display: inline-flex; align-items: center; margin-top: 16px; padding: 5px 12px; border-radius: 20px; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; position: relative; z-index: 1; }
.safety-card:nth-child(1) .safety-card-badge { background: var(--accent-light); color: var(--accent); }
.safety-card:nth-child(2) .safety-card-badge { background: var(--green-light); color: var(--green); }
.safety-card:nth-child(3) .safety-card-badge { background: var(--purple-light); color: var(--purple); }
.safety-card:nth-child(4) .safety-card-badge { background: var(--blue-light); color: var(--blue); }

.cert-strip { margin-top: 48px; display: flex; align-items: center; gap: 32px; padding: 24px 32px; border-radius: 16px; background: var(--bg-warm); border: 1px solid var(--border); flex-wrap: wrap; }
.cert-item { display: flex; align-items: center; gap: 12px; }
.cert-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: white; font-family: 'Comfortaa', cursive; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.cert-text { font-family: 'Comfortaa', cursive; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.cert-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.cert-divider { width: 1px; height: 36px; background: var(--border); }

/* ===== PROCESS ===== */
.design { position: relative; z-index: 5; padding: 100px 6% 120px; background: rgba(255,249,242,0.65); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.design-header { text-align: center; max-width: 600px; margin: 0 auto 80px; }
.process-timeline { position: relative; max-width: 1000px; margin: 0 auto; }
.process-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, rgba(245,158,11,0.1), rgba(245,158,11,0.3), rgba(245,158,11,0.1)); transform: translateX(-50%); }
.process-line-progress { position: absolute; left: 0; top: 0; width: 100%; height: 0%; background: var(--accent); border-radius: 1px; transition: height 0.3s ease; }
.process-step { display: flex; align-items: center; gap: 60px; margin-bottom: 80px; position: relative; }
.process-step:nth-child(even) { flex-direction: row-reverse; }
.process-step-content { flex: 1; }
.process-step-visual { flex: 1; display: flex; justify-content: center; }
.process-step:nth-child(even) .process-step-content { text-align: right; }
.process-step:nth-child(even) .process-step-desc { margin-left: auto; }
.process-dot { position: absolute; left: 50%; transform: translateX(-50%); width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 2px solid rgba(245,158,11,0.3); display: flex; align-items: center; justify-content: center; z-index: 5; font-family: 'Comfortaa', cursive; font-size: 16px; font-weight: 700; color: var(--accent); transition: all 0.4s; box-shadow: var(--shadow-sm); }
.process-dot.active { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 0 0 6px rgba(245,158,11,0.15), var(--shadow-md); transform: translateX(-50%) scale(1.1); }
.process-step-number { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: 2px; color: var(--accent); margin-bottom: 8px; display: inline-block; background: var(--accent-light); border: 1.5px solid var(--accent); padding: 5px 16px; border-radius: 40px; }
.process-step-title { font-family: 'Comfortaa', cursive; font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.process-step-desc { font-size: 15px; line-height: 1.7; color: var(--text-secondary); max-width: 380px; }
.process-visual-card { width: 280px; height: 200px; border-radius: 20px; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.process-visual-card::after { content: attr(data-label); position: absolute; bottom: 14px; left: 18px; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); opacity: 0.6; }
.process-visual-card svg { width: 80px; height: 80px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.6; }

/* ===== ADVANTAGES ===== */
.advantages { position: relative; z-index: 5; padding: 100px 0 120px; background: rgba(255,255,255,0.65); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.advantages-header { padding: 0 6% 48px; }
.card-track { display: flex; gap: 24px; padding: 0 6%; overflow-x: auto; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
.card-track::-webkit-scrollbar { display: none; }
.adv-card { flex: 0 0 340px; border-radius: 24px; overflow: hidden; scroll-snap-align: start; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all 0.4s cubic-bezier(0.22,1,0.36,1); cursor: pointer; }
.adv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: rgba(245,158,11,0.2); }
.adv-card-image { height: 220px; position: relative; overflow: hidden; }
.adv-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.adv-card:hover .adv-card-image img { transform: scale(1.05); }
.adv-card-number { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.25); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; font-family: 'Comfortaa', cursive; font-size: 13px; font-weight: 700; color: var(--white); }
.adv-card-body { padding: 24px; }
.adv-card-title { font-family: 'Comfortaa', cursive; font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.adv-card-desc { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* ===== PROCESS CHECKMARK ANIMATION ===== */
.process-visual-card .check-pop {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0);
  width: 48px; height: 48px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 10;
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}
.process-visual-card .check-pop svg { width: 24px; height: 24px; stroke: white; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.process-visual-card.checked .check-pop { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.process-visual-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }

/* ===== CLIENT MAP ===== */
.client-map { position: relative; z-index: 5; padding: 100px 6%; background: rgba(255,255,255,0.65); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.map-embed { margin-top: 48px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.map-embed iframe { display: block; }

/* ===== FOOTER SECTION ===== */
.footer-section { position: relative; z-index: 5; padding: 100px 6%; text-align: center; background: rgba(255,249,242,0.65); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.footer-tagline { font-family: 'Comfortaa', cursive; font-size: 40px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.footer-tagline span { color: var(--accent); }
.footer-sub { font-size: 17px; color: var(--text-secondary); margin-bottom: 36px; }
.footer-bottom { display: grid; grid-template-columns: auto auto; gap: 48px; align-items: start; text-align: left; margin-bottom: 32px; max-width: 800px; margin-left: auto; margin-right: auto; margin-top: 96px; }
.footer-left { display: flex; flex-direction: column; gap: 24px; }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a { color: var(--text-muted); transition: color 0.3s, transform 0.3s; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 1px solid var(--border); }
.footer-socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer-address { text-align: left; }
.footer-address p { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; line-height: 1.8; color: var(--text-muted); margin: 0; }
.footer-address strong { color: var(--text-secondary); font-weight: 600; }
.footer-right { display: flex; align-items: flex-start; justify-content: flex-end; }
.footer-map { width: 100%; border-radius: 12px; overflow: hidden; }
.footer-copy { font-size: 12px; color: var(--text-muted); text-align: center; }

/* ===== PROJECTS PAGE ===== */
.projects-hero { padding: 140px 6% 60px; text-align: center; background: var(--bg); }
.projects-grid-section { padding: 0 6% 100px; background: var(--bg); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all 0.4s cubic-bezier(0.22,1,0.36,1); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card-image { height: 240px; overflow: hidden; }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.project-card:hover .project-card-image img { transform: scale(1.05); }
.project-card-body { padding: 20px 24px 24px; }
.project-card-title { font-family: 'Comfortaa', cursive; font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.project-card-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.project-venue { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; background: var(--accent-light); color: var(--accent); }
.project-location { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.project-location::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); }
.project-card-desc { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* ===== PRODUCTS PAGE ===== */
.products-section { padding: 80px 6%; max-width: 1400px; margin: 0 auto; }
.products-section--alt { background: var(--bg-warm); }
.products-section-header { text-align: center; margin-bottom: 48px; }
.products-note { text-align: center; margin-top: 40px; padding: 24px 40px; background: var(--accent-light); border-radius: 16px; }
.products-note p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* Module grid */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.module-card { border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all 0.4s cubic-bezier(0.22,1,0.36,1); }
.module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.module-card-image { position: relative; height: 220px; overflow: hidden; }
.module-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.module-card:hover .module-card-image img { transform: scale(1.05); }
.module-badge { position: absolute; top: 12px; right: 12px; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 6px 12px; border-radius: 20px; background: var(--accent); color: var(--white); }
.module-card-body { padding: 20px 24px 24px; }
.module-card-name { font-family: 'Comfortaa', cursive; font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.module-card-tagline { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.module-card-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.module-card-specs span { font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 20px; background: var(--bg-warm); color: var(--text-secondary); border: 1px solid var(--border); }
.module-card-footprint { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); margin-bottom: 16px; }
.btn-module-enquiry { font-family: 'Comfortaa', cursive; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-light); border: 1.5px solid var(--accent); padding: 10px 24px; border-radius: 60px; cursor: pointer; transition: all 0.3s; letter-spacing: 0.3px; }
.btn-module-enquiry:hover { background: var(--accent); color: var(--white); }

/* Theme grid */
.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.theme-card { background: var(--white); border-radius: 16px; padding: 28px 24px; text-align: center; border: 1px solid var(--border); transition: all 0.3s; }
.theme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.theme-colors { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.theme-colors span { width: 28px; height: 28px; border-radius: 50%; }
.theme-name { font-family: 'Comfortaa', cursive; font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.theme-desc { font-size: 13px; line-height: 1.6; color: var(--text-secondary); }

/* Component grid */
.component-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.component-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 24px 16px; text-align: center; transition: all 0.3s; cursor: default; }
.component-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.component-icon { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--accent); }
.component-icon svg { width: 100%; height: 100%; }
.component-name { font-family: 'Comfortaa', cursive; font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* Series showcase */
.series-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; max-width: 1100px; margin: 0 auto; }
.series-showcase--reverse { direction: rtl; }
.series-showcase--reverse > * { direction: ltr; }
.series-showcase-image { border-radius: 20px; overflow: hidden; }
.series-showcase-image img { width: 100%; height: auto; border-radius: 20px; }
.series-showcase-body h3 { font-family: 'Comfortaa', cursive; font-size: 24px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.series-showcase-body p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 16px; }
.series-showcase-body ul { list-style: none; padding: 0; margin-bottom: 24px; }
.series-showcase-body li { font-size: 14px; color: var(--text-secondary); padding: 6px 0; padding-left: 20px; position: relative; }
.series-showcase-body li::before { content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); }

/* Process CTA */
.process-cta { text-align: center; padding: 48px 6% 0; }
.btn-process-cta { font-family: 'Comfortaa', cursive; font-size: 16px; font-weight: 700; color: var(--white); background: var(--accent); border: none; padding: 18px 44px; border-radius: 60px; cursor: pointer; letter-spacing: 0.5px; transition: all 0.3s; box-shadow: 0 6px 28px var(--accent-glow); display: inline-block; text-decoration: none; }
.btn-process-cta:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 40px rgba(245,158,11,0.4); }

/* Enquiry form page */
.enquiry-page { padding: 140px 6% 60px; max-width: 780px; margin: 0 auto; }
.enquiry-header { margin-bottom: 40px; }
.enquiry-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: 'Comfortaa', cursive; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.form-group .req { color: var(--accent); }
.form-group input, .form-group select, .form-group textarea { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; padding: 14px 18px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--white); color: var(--text-primary); transition: border-color 0.2s, box-shadow 0.2s; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-submit { text-align: center; margin-top: 8px; }
.form-submit button:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status { text-align: center; margin-top: 12px; padding: 14px 20px; border-radius: 12px; font-size: 14px; line-height: 1.6; display: none; }
.form-status.success { display: block; background: var(--green-light); color: #065F46; border: 1px solid rgba(16,185,129,0.2); }
.form-status.error { display: block; background: var(--rose-light); color: #9F1239; border: 1px solid rgba(244,63,94,0.2); }

/* ===== PORTFOLIO ARCHIVE ===== */
.portfolio-grid-section { padding: 0 6% 100px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-card { display: block; border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all 0.4s cubic-bezier(0.22,1,0.36,1); text-decoration: none; }
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.portfolio-card-image { height: 260px; overflow: hidden; }
.portfolio-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.portfolio-card:hover .portfolio-card-image img { transform: scale(1.05); }
.portfolio-card-body { padding: 20px 24px 24px; }
.portfolio-card-title { font-family: 'Comfortaa', cursive; font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.portfolio-card-caption { font-size: 14px; line-height: 1.5; color: var(--text-secondary); margin-bottom: 10px; }
.portfolio-card-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.portfolio-location, .portfolio-date { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.5px; color: var(--text-muted); }
.portfolio-location::before { content: '📍 '; }
.portfolio-date::before { content: '📅 '; }

/* ===== PORTFOLIO SINGLE ===== */
.portfolio-single-hero { padding: 80px 0 0; }
.portfolio-hero-image { max-height: 560px; overflow: hidden; border-radius: 0 0 24px 24px; }
.portfolio-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-single-content { max-width: 900px; margin: 0 auto; padding: 48px 6% 80px; }
.portfolio-single-header { margin-bottom: 40px; }
.portfolio-single-caption { font-size: 17px; line-height: 1.7; color: var(--text-secondary); margin-top: 8px; }
.portfolio-single-meta { display: flex; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.portfolio-single-meta span { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); }
.portfolio-single-meta svg { color: var(--accent); flex-shrink: 0; }
.portfolio-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 48px; }
.portfolio-gallery-item { border-radius: 16px; overflow: hidden; }
.portfolio-gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.4s; }
.portfolio-gallery-item:hover img { transform: scale(1.03); }
.portfolio-single-cta { text-align: center; padding: 40px; background: var(--bg-warm); border-radius: 20px; border: 1px solid var(--border); }
.portfolio-single-cta p { font-size: 16px; color: var(--text-secondary); margin-bottom: 20px; }

/* Products download CTA */
.products-download { padding: 60px 6%; }
.products-download-inner { max-width: 600px; margin: 0 auto; text-align: center; background: var(--bg-warm); border-radius: 24px; padding: 48px 40px; border: 1px solid var(--border); }
.products-download-inner h3 { font-family: 'Comfortaa', cursive; font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.products-download-inner p { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }


/* ===== GENERIC PAGES (index.php fallback) ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .hero-title { font-size: 48px; }
  .section-title { font-size: 40px; }
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step { gap: 32px; }
  .process-visual-card { width: 220px; height: 160px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .component-grid { grid-template-columns: repeat(4, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  /* Nav: hamburger */
  nav#mainNav { padding: 12px 20px; gap: 0; justify-content: space-between; width: calc(100% - 32px); border-radius: 20px; }
  nav#mainNav .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 8px 0; overflow: hidden; }
  nav#mainNav .nav-links.open { display: flex; }
  nav#mainNav .nav-links li { border-bottom: 1px solid var(--border); }
  nav#mainNav .nav-links li:last-child { border-bottom: none; }
  nav#mainNav .nav-links a { display: block; padding: 16px 24px; font-size: 14px; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero-title { font-size: 28px; white-space: normal; }
  .hero-content { padding: 100px 5% 0; }
  .hero-description { font-size: 15px; margin-bottom: 28px; }
  .hero-actions { gap: 12px; }
  .btn-primary, .btn-glass { font-size: 13px; padding: 14px 28px; }

  /* Stats: 2x2 grid */
  .hero-stats { grid-template-columns: 1fr 1fr; margin-top: 0; }
  .hero-stat { padding: 24px 12px; }
  .hero-stat:first-child { border-radius: 16px 0 0 0; }
  .hero-stat:nth-child(2) { border-radius: 0 16px 0 0; }
  .hero-stat:nth-child(3) { border-radius: 0 0 0 16px; }
  .hero-stat:last-child { border-radius: 0 0 16px 0; }
  .stat-number { font-size: 28px; }
  .stat-label { font-size: 10px; }

  /* Safety: single column stack */
  .safety { padding: 80px 5% 60px; }
  .section-title { font-size: 32px; }
  .section-desc { font-size: 15px; margin-bottom: 40px; }
  .safety-grid { grid-template-columns: 1fr; gap: 16px; }
  .safety-card { padding: 28px 24px; }

  /* Cert strip: wrap into 2x2 */
  .cert-strip { gap: 20px; padding: 20px 20px; justify-content: center; }
  .cert-divider { display: none; }
  .cert-item { min-width: calc(50% - 20px); }

  /* Process: single column */
  .design { padding: 80px 5% 80px; }
  .design-header { margin-bottom: 48px; }
  .process-line { left: 24px; }
  .process-step, .process-step:nth-child(even) { flex-direction: column; align-items: flex-start; gap: 16px; padding-left: 60px; }
  .process-step-content, .process-step:nth-child(even) .process-step-content { text-align: left; }
  .process-step:nth-child(even) .process-step-desc { margin-left: 0; }
  .process-dot { left: 24px; width: 40px; height: 40px; font-size: 14px; }
  .process-dot.active { transform: translateX(-50%) scale(1.05); }
  .process-step-visual { display: none; }
  .process-step-title { font-size: 22px; }
  .process-step-desc { font-size: 14px; }
  .process-step { margin-bottom: 48px; }

  /* Advantages: stacked cards */
  .advantages { padding: 80px 0 80px; }
  .card-track { flex-direction: column; overflow-x: visible; scroll-snap-type: none; padding: 0 5%; }
  .adv-card { flex: none; width: 100%; }

  /* Enquiry form: stack fields */
  .enquiry-page { padding: 120px 5% 40px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }

  /* Projects & portfolio: single column */
  .projects-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-gallery { grid-template-columns: 1fr; }
  .portfolio-hero-image { max-height: 300px; }
  .projects-hero { padding: 120px 5% 40px; }

  /* Products: mobile */
  .products-section { padding: 60px 5%; }
  .module-grid { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: 1fr 1fr; }
  .component-grid { grid-template-columns: repeat(3, 1fr); }
  .component-card { padding: 20px 12px; }
  .component-icon { width: 44px; height: 44px; }
  .component-name { font-size: 11px; }
  .series-showcase, .series-showcase--reverse { grid-template-columns: 1fr; gap: 24px; }
  .series-showcase--reverse { direction: ltr; }
  .products-download-inner { padding: 32px 24px; }

  /* Map */
  .client-map { padding: 60px 5%; }
  .map-embed iframe { height: 300px; }

  /* Footer */
  .footer-section { padding: 60px 5%; }
  .footer-tagline { font-size: 28px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 32px; }
  .footer-right { justify-content: flex-start; }
  .footer-map iframe { height: 180px; }

}

/* ============================================================
   RESPONSIVE — SMALL MOBILE
   ============================================================ */
@media (max-width: 400px) {
  .hero-title { font-size: 24px; }
  .stat-number { font-size: 22px; }
  .section-title { font-size: 28px; }
  .process-step-title { font-size: 20px; }
  .footer-tagline { font-size: 24px; }
}
