/* ============================================
   ISCEER Design System
   Warm cream / teal palette -- Syne + DM Sans
   ============================================ */

:root {
  --nav-h: 68px;
  --max-w: 1200px;
  --pad-x: 48px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 100px;

  /* Colors -- warm palette */
  --bg:          #FAFAF7;
  --bg-warm:     #F2EEE5;
  --surface:     #EDE8DF;
  --surface2:    #E8E2D6;
  --border:      rgba(60,50,40,0.1);
  --border-md:   rgba(60,50,40,0.15);
  --text:        #1C1917;
  --text-md:     #3D3833;
  --muted:       #57534E;

  /* Accents -- teal/green */
  --accent:      #1A6B5A;
  --accent-light:#E8F5F0;
  --accent2:     #2A8F7A;
  --accent3:     #5B4FC4;
  --gold:        #B8860B;
  --warn:        #D97706;
  --danger:      #DC3545;

  /* Fonts */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 800; color: #fff;
  letter-spacing: -0.02em;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 auto;
}

.nav-center a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.nav-center a:hover {
  color: var(--text);
  background: rgba(60,50,40,0.05);
}

.nav-center a.active {
  color: var(--text);
  background: rgba(60,50,40,0.06);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.lang-toggle a {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: all 0.2s;
  text-decoration: none;
}

.lang-toggle a.active {
  background: var(--accent-light);
  color: var(--accent);
}

.lang-toggle a:hover:not(.active) { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  position: relative; z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) 100px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 400;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── EYEBROW ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── SECTION WRAPPER ── */
.section {
  position: relative; z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px var(--pad-x);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  font-weight: 400;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(26,107,90,0.2);
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--text-md);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ── TAGS ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(26,107,90,0.06);
  border: 1px solid rgba(26,107,90,0.15);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-weight: 400;
}

.tag.gold {
  background: rgba(184,134,11,0.06);
  border-color: rgba(184,134,11,0.2);
  color: var(--gold);
}

/* ── DIVIDER ── */
.divider {
  position: relative; z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-md), transparent);
}

/* ── CONTACT FORM ELEMENTS ── */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-md);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted); opacity: 0.6; }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(26,107,90,0.4);
}

.form-select {
  cursor: pointer;
  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='%2357534E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: var(--bg);
  padding-right: 36px;
}

.form-select option {
  background: #FAFAF7;
  color: var(--text);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

/* ── FADE-UP ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up   { animation: fadeUp 0.6s ease both; }
.fade-up-1 { animation: fadeUp 0.6s 0.10s ease both; }
.fade-up-2 { animation: fadeUp 0.6s 0.20s ease both; }
.fade-up-3 { animation: fadeUp 0.6s 0.30s ease both; }
.fade-up-4 { animation: fadeUp 0.6s 0.40s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --pad-x: 24px; }

  nav { padding: 0 24px; }

  .nav-center {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(250,250,247,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 20px 24px 32px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }

  .nav-center.open { display: flex; }
  .nav-center a { padding: 10px 14px; }
  .nav-toggle { display: flex; }

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px;
  }

  .footer-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}

/* ── FEATURED SERVICE CARD (Local Energy Communities) ── */
.svc-featured {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s;
  margin-bottom: 20px;
}
.svc-featured:hover { border-color: rgba(26,107,90,0.3); }

.svc-featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 900px) {
  .svc-featured-inner { grid-template-columns: 1fr; }
}

.svc-featured-text { display: flex; flex-direction: column; gap: 14px; }
.svc-featured-images { display: flex; gap: 12px; }
.svc-featured-images .proj-thumb { flex: 1; height: 180px; margin-bottom: 0; }

.svc-download {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px; padding: 10px 20px;
  background: var(--accent-light);
  border: 1px solid rgba(26,107,90,0.2);
  border-radius: var(--radius-sm);
  color: var(--accent); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: all 0.2s;
}
.svc-download:hover { background: rgba(26,107,90,0.12); color: var(--accent); }
.svc-download svg { flex-shrink: 0; }

/* ── BENTO LINKS (shared with AI LAB, used on project cards) ── */
.bento-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; text-decoration: none; transition: all 0.2s;
}
.bento-link.gold { background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.25); color: var(--gold); }
.bento-link.gold:hover { background: rgba(212,175,55,0.18); color: var(--gold); }
.bento-link.blue { background: rgba(0,200,255,0.1); border: 1px solid rgba(0,200,255,0.25); color: var(--accent); }
.bento-link.blue:hover { background: rgba(0,200,255,0.18); color: var(--accent); }

/* ── 3-COLUMN SMALL SERVICES ROW ── */
.services-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .services-row-3 { grid-template-columns: 1fr; } }

.svc-card-sm {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s; cursor: default;
}
.svc-card-sm:hover { border-color: rgba(26,107,90,0.3); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.svc-card-sm .svc-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; background: var(--accent-light); border: 1px solid rgba(26,107,90,0.15); }
.svc-card-sm .svc-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.svc-card-sm .svc-desc { font-size: 13px; color: var(--muted); line-height: 1.65; font-weight: 400; }

/* ── LIGHTBOX ── */
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(28,25,23,0.88); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center; justify-content: center;
  cursor: zoom-out; animation: lbFadeIn 0.2s ease;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 85vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); }
.lightbox-close { position: absolute; top: 24px; right: 32px; width: 40px; height: 40px; background: rgba(250,250,247,0.15); border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; cursor: pointer; transition: background 0.2s; }
.lightbox-close:hover { background: rgba(250,250,247,0.25); }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── PROJECT CARD THUMBNAILS ── */
.proj-thumb { width: 100%; height: 140px; border-radius: 10px; overflow: hidden; margin-bottom: 16px; cursor: zoom-in; border: 1px solid var(--border); transition: border-color 0.3s, transform 0.2s; }
.proj-thumb:hover { border-color: rgba(26,107,90,0.3); transform: scale(1.02); }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.3s; }
.proj-thumb:hover img { transform: scale(1.05); }

/* ── DEMO GATE MODAL ── */
.demo-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9998;
  background: rgba(28,25,23,0.88); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center; justify-content: center;
  animation: lbFadeIn 0.2s ease;
}
.demo-modal-overlay.active { display: flex; }
.demo-modal { background: var(--bg); border: 1px solid var(--border-md); border-radius: 20px; padding: 40px; max-width: 440px; width: 90%; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,0.2); }
.demo-modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; background: none; border: 1px solid var(--border-md); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 16px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.demo-modal-close:hover { border-color: var(--accent); color: var(--text); }
.demo-modal h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.demo-modal p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.demo-modal .form-input { margin-bottom: 14px; }
.demo-modal .btn-primary { width: 100%; justify-content: center; }
.demo-success { text-align: center; padding: 20px 0; }
.demo-success .check-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-light); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 24px; }
.demo-success h3 { color: var(--accent); margin-bottom: 10px; }
.demo-success p { margin-bottom: 24px; }
.demo-error { color: var(--danger); font-size: 12px; margin-top: -8px; margin-bottom: 12px; display: none; }
.demo-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── LAB INDICATOR BADGE (AI LAB nav) ── */
.lab-indicator {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(26,107,90,0.08);
  border: 1px solid rgba(26,107,90,0.2);
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.08em;
  color: #1A6B5A; text-transform: uppercase;
  white-space: nowrap;
}
.lab-indicator-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #1A6B5A;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
