/* Global theme and resets */
:root {
  color-scheme: dark;
  --bg: #090f1d;
  --surface: #111a2c;
  --surface-soft: #16213a;
  --surface-elevated: #1d2a44;
  --border: rgba(255,255,255,0.08);
  --text: #f4f7ff;
  --muted: #a4b9d9;
  --accent: #4e8fff;
  --accent-soft: rgba(78, 143, 255, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(78,143,255,.16), transparent 35%),
              linear-gradient(180deg, #090f1d 0%, #0b1224 100%);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
  border-radius: 20px;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-flex;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: .78rem;
  margin-bottom: 1rem;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -.03em;
}

h1 {
  font-size: clamp(2.6rem, 3.5vw, 4.4rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 2.3vw, 3rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  line-height: 1.75;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,.12);
  color: var(--text);
}

.btn-large {
  padding: 1.2rem 2.1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(9, 15, 29, .85);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
}

.logo span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--muted);
  transition: color .25s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: #fff;
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  gap: .35rem;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(78,143,255,.18), transparent 30%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 760px;
  text-align: center;
  z-index: 1;
}

.hero-copy {
  margin: 1.2rem auto 2rem;
  font-size: 1.05rem;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.services-preview .service-cards,
.feature-grid,
.testimonial-grid,
.about-features,
.contact-grid .form-grid,
.lead-grid,
.service-area-grid,
.values-grid {
  display: grid;
  gap: 1.5rem;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-cards article,
.feature-card,
.testimonial,
.service-card,
.contact-details,
.contact-form,
.about-copy,
.about-features article,
.values-list > div,
.service-area-list {
  background: rgba(18, 28, 47, .88);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.card-glow {
  background: linear-gradient(180deg, rgba(19, 34, 62, .92), rgba(9, 15, 29, .95));
  border-color: rgba(78,143,255,.2);
}

.card {
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}

.testimonial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonial p {
  color: var(--text);
}

.testimonial footer {
  margin-top: 1.4rem;
  color: var(--muted);
}

.split-block .split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 1fr);
  gap: 2rem;
  align-items: center;
}

.before-after-cards {
  display: grid;
  gap: 1.5rem;
}

.before-after-showcase .before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.before-after-pair {
  display: grid;
  gap: 1rem;
}

.pair-caption {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.image-card {
  position: relative;
  overflow: hidden;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.image-card:hover img {
  transform: scale(1.03);
}

.image-card span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: .55rem 1rem;
  border-radius: 999px;
  font-size: .9rem;
}

.feature-card h3,
.service-card h2,
.values-list h3 {
  margin-bottom: .9rem;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  min-height: 220px;
}

.bg-glow {
  background: linear-gradient(180deg, rgba(6,15,31,.92), rgba(9,15,29,.95));
  border: 1px solid rgba(78,143,255,.18);
  box-shadow: 0 25px 60px rgba(0,0,0,.22);
}

.service-area-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.service-area-list span {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 700;
}

.service-area-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-area-list li {
  margin-bottom: .75rem;
}

.lead-gen {
  background: linear-gradient(135deg, rgba(14, 26, 47,.95), rgba(9, 15, 29,.98));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 32px;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1.2fr auto;
  align-items: center;
  gap: 2rem;
}

.dark-bg {
  background: rgba(9, 15, 29, .96);
}

.page-hero {
  padding: 6rem 0 4rem;
}

.page-hero-services, .page-hero-gallery, .page-hero-about, .page-hero-contact {
  background: radial-gradient(circle at top right, rgba(78,143,255,.16), transparent 36%),
              linear-gradient(180deg, rgba(9,15,29,.96), rgba(13,22,41,.98));
}

.page-hero .container {
  text-align: center;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  margin-bottom: 2rem;
}

.filter-btn {
  border: 1px solid rgba(255,255,255,.08);
  padding: .8rem 1.2rem;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: var(--text);
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: rgba(78,143,255,.18);
  border-color: rgba(78,143,255,.34);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 280px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item img.rotate-right {
  transform: rotate(90deg);
  transform-origin: center center;
}

.gallery-item:hover img.rotate-right {
  transform: rotate(90deg) scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity .3s ease;
}

.service-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.sticky-cta {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.6rem;
  border-radius: 24px;
  background: rgba(7, 15, 29, 0.94);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateY(120%);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}

.sticky-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-copy {
  display: grid;
  gap: .35rem;
}

.sticky-label {
  margin: 0;
  color: var(--accent);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .75rem;
}

.sticky-cta h2 {
  margin: 0;
  font-size: 1.15rem;
}

.values-grid {
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.values-list {
  display: grid;
  gap: 1rem;
}

.values-list h3 {
  margin-bottom: .6rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: .65rem;
  color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(15, 24, 42, .92);
  color: #fff;
  padding: 1rem 1.1rem;
}

.map-section .map-frame {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-brand {
  font-size: 1.15rem;
  letter-spacing: .08em;
  color: #fff;
  margin-bottom: .75rem;
}

.footer-links {
  display: grid;
  gap: .75rem;
}

.footer-contact a {
  color: var(--accent);
}

@media (max-width: 960px) {
  .grid-4,
  .service-cards,
  .feature-grid,
  .testimonial-grid,
  .about-features,
  .contact-grid,
  .lead-grid,
  .service-area-grid,
  .values-grid,
  .gallery-grid,
  .about-grid,
  .before-after-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .split-block .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-grid {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    background: rgba(9, 15, 29, .98);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 1rem;
    flex-direction: column;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }

  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-end;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-content,
  .page-hero .container {
    text-align: left;
  }

  .gallery-filters {
    justify-content: flex-start;
  }

  .gallery-item {
    min-height: 260px;
  }
}
