/* =============================================
   ElektroRotterdam — Global Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --color-bg:        #080B10;
  --color-surface:   #0E1420;
  --color-surface2:  #141C2B;
  --color-border:    #1E2A3D;
  --color-yellow:    #F5C518;
  --color-yellow-dim:#C9960E;
  --color-amber:     #F59E0B;
  --color-text:      #F0F4FF;
  --color-muted:     #7A8BA6;
  --color-white:     #FFFFFF;

  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 200ms ease;
  --shadow-glow: 0 0 24px rgba(245, 197, 24, 0.25);
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-white);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p  { color: var(--color-muted); font-size: 1rem; }

/* ---------- Layout Helpers ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.text-yellow { color: var(--color-yellow); }

/* ---------- Section Label ---------- */
.label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-yellow);
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid rgba(245, 197, 24, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--color-yellow);
  color: #080B10;
}
.btn-primary:hover {
  background: var(--color-amber);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--color-yellow);
  border: 1.5px solid var(--color-yellow);
}
.btn-outline:hover {
  background: rgba(245, 197, 24, 0.08);
  transform: translateY(-2px);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8, 11, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-white);
}
.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--color-yellow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #080B10;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--color-yellow);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--color-white);
}
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
}
.nav-cta { margin-left: 12px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 20px 24px;
  gap: 16px;
}
.nav-mobile a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.nav-mobile a:last-child { border: none; }
.nav-mobile.open { display: flex; }

/* ---------- Hero (shared) ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(245, 197, 24, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(245, 159, 11, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,197,24,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,197,24,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.3);
  color: var(--color-yellow);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-yellow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title span { color: var(--color-yellow); }
.hero-desc { font-size: 1.15rem; max-width: 520px; margin: 20px 0 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 48px;
}
.hero-stat-item {
  text-align: left;
  padding-right: 32px;
  border-right: 1px solid var(--color-border);
}
.hero-stat-item:last-child { border: none; }
.hero-stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-yellow);
}
.hero-stat-item span { font-size: 0.85rem; color: var(--color-muted); }

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover {
  border-color: rgba(245,197,24,0.4);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-yellow);
}

/* ---------- Section Header ---------- */
.section-header { margin-bottom: 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 560px; font-size: 1.05rem; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.testimonial-stars { color: var(--color-yellow); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial blockquote { font-size: 0.95rem; color: var(--color-text); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface2);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-yellow);
  font-size: 0.9rem;
}
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--color-white); }
.testimonial-author span { font-size: 0.8rem; color: var(--color-muted); }

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: 0;
}

/* ---------- Tag ---------- */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(245,197,24,0.1);
  color: var(--color-yellow);
  border: 1px solid rgba(245,197,24,0.2);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 16px;
}
.footer-desc { font-size: 0.9rem; color: var(--color-muted); max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 0.9rem; color: var(--color-muted); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--color-yellow); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 120%, rgba(245,197,24,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- Badge strip ---------- */
.badge-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.badge-item svg { color: var(--color-yellow); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--color-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--color-yellow); }
.breadcrumb-sep { color: var(--color-border); }

/* ---------- Contact Form ---------- */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}
.form-group label span { color: var(--color-yellow); }
.form-control {
  width: 100%;
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control::placeholder { color: var(--color-muted); }
.form-control:focus {
  border-color: var(--color-yellow);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.15);
}
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control { appearance: none; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- Project Card ---------- */
.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.project-card:hover {
  border-color: rgba(245,197,24,0.4);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.project-img {
  height: 220px;
  background: var(--color-surface2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.project-body { padding: 24px; }
.project-body h3 { margin-bottom: 8px; }
.project-body p { font-size: 0.9rem; }
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-yellow-dim); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stat { flex-wrap: wrap; gap: 20px; }
  .hero-stat-item { border: none; padding: 0; }
}
@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }

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

/* ---------- Lightning bolt decoration ---------- */
.bolt-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
}

/* ---------- Number highlight ---------- */
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--color-yellow);
  line-height: 1;
}

/* ---------- Highlight band ---------- */
.highlight-band {
  background: linear-gradient(135deg, rgba(245,197,24,0.08) 0%, rgba(245,159,11,0.04) 100%);
  border: 1px solid rgba(245,197,24,0.15);
  border-radius: var(--radius-lg);
  padding: 48px;
}

/* ---------- Icon SVGs (inline helper) ---------- */
svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
