:root {
  --bg: #0c1220;
  --bg-soft: #111b31;
  --card: rgba(255,255,255,0.08);
  --card-solid: #ffffff;
  --text: #f4f7fb;
  --text-dark: #162033;
  --muted: #b6c1d8;
  --line: rgba(255,255,255,0.12);
  --brand-blue: #1d4ed8;
  --brand-gold: #f59e0b;
  --shadow: 0 18px 60px rgba(0,0,0,.25);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #0b1324 0%, #101a2f 100%);
  color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1150px, calc(100% - 28px)); margin: 0 auto; }
.section { padding: 78px 0; }
.section-alt { background: rgba(255,255,255,0.03); }
.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(245,158,11,.14);
  color: #ffd58a;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head h2 { margin: 14px 0 0; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.1; }
.section-head-space { display: flex; justify-content: space-between; gap: 18px; align-items: end; flex-wrap: wrap; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(8,14,27,.76);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  min-height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo {
  width: 54px; height: 54px; object-fit: cover; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14); background: white;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: .96rem; }
.brand-text span { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desktop-nav { display: none; gap: 22px; color: var(--muted); }
.desktop-nav a:hover { color: white; }
.menu-toggle {
  width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 12px; cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; background: white; border-radius: 2px; }
.mobile-menu {
  display: none; border-top: 1px solid var(--line); background: rgba(8,14,27,.96); padding: 8px 14px 16px;
}
.mobile-menu.open { display: grid; }
.mobile-menu a { padding: 14px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
}
.hero::before,
.hero::after {
  content: ""; position: absolute; border-radius: 999px; filter: blur(40px); opacity: .38;
}
.hero::before { width: 280px; height: 280px; background: var(--brand-blue); top: -40px; right: -50px; }
.hero::after { width: 260px; height: 260px; background: var(--brand-gold); bottom: -40px; left: -40px; }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: 22px; align-items: stretch;
}
.hero-copy, .hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px; padding: 24px; box-shadow: var(--shadow);
}
.hero-copy h1 { font-size: clamp(2rem, 6vw, 4rem); line-height: 1.02; margin: 14px 0; }
.hero-text { color: var(--muted); font-size: 1.02rem; max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: 0 18px; border-radius: 16px; font-weight: 700; border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--brand-blue), #2563eb); color: white; }
.btn-secondary { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: white; }
.hero-badges { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-badges li {
  padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #dbe5f6;
  font-size: .9rem;
}
.hero-card { display: flex; flex-direction: column; justify-content: space-between; }
.hero-card-top span { color: #9ab0db; font-size: .82rem; text-transform: uppercase; font-weight: 700; }
.hero-card-top strong { display: block; font-size: 1.5rem; margin-top: 10px; }
.hero-card p { color: var(--muted); }
.hero-contact-box { display: grid; gap: 10px; margin-top: 18px; }
.hero-contact-box a {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 14px 16px; border-radius: 16px;
}

.services-grid {
  display: grid; gap: 16px;
}
.service-card {
  background: white; color: var(--text-dark); border-radius: var(--radius); padding: 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
}
.service-card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.service-card p { margin: 0; color: #51607e; line-height: 1.6; }

.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: white;
  padding: 12px 14px; border-radius: 999px; cursor: pointer;
}
.filter-btn.active { background: linear-gradient(135deg, var(--brand-gold), #fbbf24); color: #171717; border-color: transparent; }
.gallery-grid {
  columns: 1; column-gap: 14px;
}
.gallery-item {
  break-inside: avoid; margin-bottom: 14px; border-radius: 22px; overflow: hidden; position: relative;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05);
}
.gallery-item img { width: 100%; height: auto; display: block; }
.gallery-item .caption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(10,15,28,.72); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 10px 12px;
}
.gallery-item .caption strong { display: block; font-size: .95rem; }
.gallery-item .caption span { color: #c8d3ea; font-size: .82rem; }
.gallery-note { color: var(--muted); margin-top: 16px; }

.estimate-grid { display: grid; gap: 22px; }
.estimate-text { color: var(--muted); max-width: 560px; }
.contact-cards { display: grid; gap: 12px; margin-top: 22px; }
.contact-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 16px;
  display: grid; gap: 6px;
}
.contact-card span { color: #a8bad9; font-size: .88rem; }
.contact-card strong { font-size: 1.05rem; }
.estimate-form {
  background: white; color: var(--text-dark); border-radius: 28px; padding: 22px; box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 14px; }
.estimate-form label { display: grid; gap: 8px; font-weight: 600; }
.estimate-form input, .estimate-form select, .estimate-form textarea {
  width: 100%; border: 1px solid #d8dfeb; border-radius: 14px; padding: 14px 16px; background: #fff;
}
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.form-help { color: #5c6b87; margin: 12px 0 0; font-size: .92rem; }
.contact-footer {
  display: grid; gap: 20px;
}
.contact-links, .socials { display: flex; flex-direction: column; gap: 10px; }
.socials a { color: #d7e3fa; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px; color: var(--muted);
}
.footer-wrap { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.floating-contact {
  position: fixed; right: 18px; bottom: 18px; z-index: 1200; display: grid; gap: 10px; justify-items: end;
}
.floating-main, .floating-options a {
  border: none; cursor: pointer; border-radius: 999px; min-height: 54px; padding: 0 18px;
  box-shadow: 0 16px 34px rgba(0,0,0,.28); font-weight: 800;
}
.floating-main { background: linear-gradient(135deg, var(--brand-gold), #fbbf24); color: #1a1a1a; }
.floating-options { display: none; gap: 10px; }
.floating-options.open { display: grid; }
.floating-options a {
  display: inline-flex; align-items: center; background: white; color: #111827;
}

@media (min-width: 720px) {
  .hero-grid, .estimate-grid, .contact-footer, .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { columns: 2; }
}

@media (min-width: 980px) {
  .desktop-nav { display: flex; }
  .menu-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.3fr .7fr; }
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid { columns: 3; }
}


/* Focused fixes requested without changing gallery/image logic */
.brand-text strong {
  line-height: 1.08;
}

@media (max-width: 719px) {
  .nav-wrap {
    align-items: flex-start;
    padding: 12px 0;
  }

  .brand {
    align-items: flex-start;
    flex: 1;
    min-width: 0;
  }

  .brand-logo {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
  }

  .brand-text {
    min-width: 0;
    padding-top: 2px;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .brand-text span {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    line-height: 1.18;
    max-width: 180px;
  }

  .menu-toggle {
    flex: 0 0 48px;
    margin-top: 6px;
  }

  .hero {
    padding: 34px 0 42px;
  }

  .hero-copy,
  .hero-card {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
    line-height: .98;
    max-width: 11ch;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-badges li {
    width: 100%;
    text-align: center;
  }

  .hero-card {
    display: none;
  }
}

.floating-panel {
  display: none;
  width: min(320px, calc(100vw - 36px));
  background: rgba(10, 15, 28, 0.96);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(0,0,0,.32);
  padding: 16px;
  position: relative;
}

.floating-panel.open {
  display: block;
}

.floating-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: white;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.floating-title {
  margin: 0 40px 14px 0;
  font-weight: 800;
  color: white;
}

.floating-panel-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.floating-panel-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 700;
}

.floating-panel-actions a:first-child {
  background: white;
  color: #111827;
}

.floating-panel-actions a:last-child {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: white;
}

.floating-options {
  display: none !important;
}
