/* ==========================================================================
   EELS — Design tokens
   ========================================================================== */
:root {
  --ink-900: #0b1220;
  --ink-800: #121a2b;
  --ink-700: #1e2a44;

  --amber-500: #f5a623;
  --amber-600: #db8e12;
  --amber-100: #fff4df;

  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1b2233;
  --text-muted: #5b6472;
  --border: #e4e7ec;

  --container: 1140px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 18, 32, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 18, 32, 0.20);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;

  --nav-height: 76px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section { padding: var(--space-6) 0; }
.section--dark { background: var(--ink-900); color: #fff; }
.section--tight { padding: var(--space-5) 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: var(--space-2);
}
.section--dark .section-eyebrow { color: var(--amber-500); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 62ch;
}
.section--dark .section-lead { color: #aab3c5; }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-5);
}
.section-header .section-lead { margin: 0 auto; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--amber-500);
  color: var(--ink-900);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--amber-600); }
.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--dark {
  background: var(--ink-900);
  color: #fff;
}
.btn--dark:hover { background: var(--ink-700); }
.btn--sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, height 0.25s ease;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.15;
}
.nav-brand .fa-lightbulb { color: var(--amber-500); font-size: 1.3rem; }
.nav-brand small { display: block; font-weight: 500; font-size: 0.7rem; color: #aab3c5; letter-spacing: 0.04em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-links a {
  color: #e7eaf1;
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--amber-500);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: #fff; }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  padding: 0.4rem;
}

.nav.is-scrolled,
body.no-hero .nav {
  background: var(--ink-900);
  box-shadow: var(--shadow-sm);
  height: 64px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  padding-top: var(--nav-height);
  isolation: isolate;
}
.hero--sm { min-height: 46vh; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.78) 0%, rgba(11, 18, 32, 0.62) 45%, rgba(11, 18, 32, 0.88) 100%);
  z-index: -1;
}
.hero-content { max-width: 760px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--amber-500);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: var(--space-3);
}
.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-3);
}
.hero-title span { color: var(--amber-500); }
.hero-subtitle {
  font-size: 1.15rem;
  color: #d6dbe6;
  max-width: 56ch;
  margin-bottom: var(--space-4);
}
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid {
  display: grid;
  gap: var(--space-4);
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--gallery { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.icon-card { text-align: left; }
.icon-badge {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--amber-100);
  color: var(--amber-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--space-3);
}
.icon-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-1); }
.icon-card p { color: var(--text-muted); font-size: 0.95rem; }

/* benefit list (about page) */
.benefit-list { display: flex; flex-direction: column; gap: var(--space-3); }
.benefit-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
}
.benefit-item .icon-badge { flex: none; margin-bottom: 0; }
.benefit-item p { color: var(--text); font-weight: 600; }

/* stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.stat-strip .stat-number {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--ink-900);
}
.stat-strip .stat-number span { color: var(--amber-600); }
.stat-strip .stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* ==========================================================================
   Gallery / lightbox
   ========================================================================== */
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  background: var(--ink-800);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "\f00e";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  background: rgba(11, 18, 32, 0);
  opacity: 0;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}
.gallery-item:hover::after {
  opacity: 1;
  background: rgba(11, 18, 32, 0.45);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 20, 0.92);
  padding: var(--space-4);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background-color 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-close { top: var(--space-4); right: var(--space-4); }
.lightbox-prev { left: var(--space-4); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-4); top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Completed projects list
   ========================================================================== */
.project-search {
  max-width: 480px;
  margin: 0 auto var(--space-5);
  position: relative;
}
.project-search input {
  width: 100%;
  padding: 0.9rem 1.25rem 0.9rem 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.project-search input:focus { outline: 2px solid var(--amber-500); outline-offset: 2px; }
.project-search i {
  position: absolute;
  left: 1.1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.project-count { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: var(--space-4); }

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.project-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.project-item > i { color: var(--amber-600); flex: none; margin-top: 0.2rem; }
.project-item .project-name { font-weight: 700; font-size: 0.95rem; }
.project-item .project-city { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.1rem; }
.project-item .project-phone { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.15rem; }
.project-item .project-phone i { color: var(--text-muted); font-size: 0.8em; margin-right: 0.3rem; }
.project-item a.project-name { text-decoration: none; }
.project-item a.project-name:hover { color: var(--amber-600); text-decoration: underline; }
.project-empty {
  display: none;
  text-align: center;
  color: var(--text-muted);
  padding: var(--space-5) 0;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-5);
  align-items: start;
}
.contact-card {
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.contact-card h3 { font-size: 1.1rem; margin-bottom: var(--space-3); }
.contact-card .contact-row { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: var(--space-3); }
.contact-card .contact-row i { color: var(--amber-500); width: 18px; margin-top: 0.2rem; }
.contact-card .contact-row strong { display: block; font-size: 0.95rem; }
.contact-card .contact-row span { color: #aab3c5; font-size: 0.9rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.form-group { margin-bottom: var(--space-3); }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}
.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.98rem;
}
.form-control:focus { outline: 2px solid var(--amber-500); outline-offset: 1px; }
textarea.form-control { min-height: 140px; resize: vertical; }

.form-status {
  margin-top: var(--space-3);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e9f9ee; color: #1a7a3c; }
.form-status.is-error { background: #fdecec; color: #b02a2a; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--ink-900);
  color: #aab3c5;
  padding: var(--space-6) 0 var(--space-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand { color: #fff; font-weight: 800; font-size: 1.05rem; display: flex; gap: 0.5rem; align-items: center; margin-bottom: var(--space-2); }
.footer-brand .fa-lightbulb { color: var(--amber-500); }
.footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-3); }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 0.6rem; margin-bottom: 0.6rem; font-size: 0.9rem; }
.footer-contact i { color: var(--amber-500); width: 16px; margin-top: 0.2rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: var(--space-4);
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--ink-900);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-3) var(--space-4) var(--space-5);
    gap: var(--space-3);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .nav.is-scrolled, body.no-hero .nav { height: var(--nav-height); }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 0.95rem; }
}
