:root {
  --navy: #071224;
  --navy-2: #12315b;
  --blue: #0b5bd3;
  --green: #20c67a;
  --white: #ffffff;
  --soft: #f4f7fb;
  --muted: #5d6470;
  --text: #171f2d;
  --border: rgba(16, 32, 51, 0.12);
  --shadow: 0 18px 45px rgba(11, 31, 58, 0.14);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Make the hero container full-bleed while keeping a centered content container elsewhere */
.container.hero-shell {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  border-radius: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
}

.topbar {
  background: #111318;
  color: var(--white);
  font-size: 0.92rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  flex-wrap: wrap;
}

.topbar strong {
  color: #9de5bf;
}

.topbar-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--white);
  opacity: 0.92;
}

header {
  position: sticky;
  top: 0;
  z-index: 250;
  background: var(--white);
  border-bottom: 1px solid rgba(16, 32, 51, 0.08);
  box-shadow: 0 6px 24px rgba(16, 32, 51, 0.04);
}

/* Restore sticky behavior to the header's container/nav */
header > .container.nav {
  position: sticky;
  top: 0;
  z-index: 101;
  background: var(--white);
  max-height: 96px;
  overflow: hidden;
  padding: 0;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 96px;
  padding: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0 auto;
  min-width: 0;
}

.brand img {
  max-width: clamp(180px, 30vw, 360px);
  width: auto;
  height: auto;
  max-height: 84px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-left: auto;
  position: static;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  background: transparent;
  overflow: visible;
}

.nav-links a {
  color: #20324c;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  transform: scaleX(1);
}

.nav-links a[aria-current="page"] {
  color: var(--blue);
}

.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-links.open {
  display: flex;
  flex-direction: column;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--blue);
  font-size: 1.6rem;
  padding: 0 0.25rem;
  box-shadow: none;
  width: auto;
  height: auto;
  border-radius: 0;
}

.menu-toggle {
  display: inline-flex;
  width: 54px;
  height: 54px;
  border: none;
  background: transparent;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  color: var(--blue);
}

.menu-toggle span {
  width: 30px;
  height: 4px;
  background: var(--blue);
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-shell {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: 100svh;
  background:
    linear-gradient(135deg, rgba(8, 18, 30, 0.34), rgba(8, 18, 30, 0.66)),
    url('assets/images/heroimage1.jpg') center/cover no-repeat;
  box-shadow: none;
  isolation: isolate;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0 83%, rgba(0, 0, 0, 0.18) 83% 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: start;
  min-height: inherit;
  padding: clamp(4rem, 18vh, 9rem) 0 0;
}

.hero-controls {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 220; /* ensure above quickbar (z:180) */
}

.hero-btn {
  background: rgba(0, 0, 0, 0.54);
  color: var(--white);
  border: 0;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 16px;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(3, 8, 20, 0.6);
  display: grid;
  place-items: center;
  line-height: 1; /* ensure icon centering */
}

.hero-btn:focus {
  outline: 3px solid rgba(255, 255, 255, 0.14);
}

/* SVG icons inside hero buttons: use thin white strokes */
.hero-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

.hero-btn svg path,
.hero-btn svg line,
.hero-btn svg rect {
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  width: min(100% - 1.4rem, 1100px);
  margin: 0 auto;
}

.hero-copy {
  max-width: 720px;
  padding-top: 0.25rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

/* Hero copy: left accent removed */
.hero-copy.reveal {
  position: relative;
  padding-left: 0; /* removed accent spacing */
}

/* Add a thin blue line to the left of the hero title and paragraph */
.hero-text {
  border-left: 8px solid var(--blue);
  padding-left: 1.1rem;
  display: inline-block;
}

.hero-quickbar {
  position: absolute;
  left: 50%;
  bottom: 0; /* align bottom to hero-content bottom */
  transform: translateX(-50%);
  /* Match the hero grid width so the quickbar lines up with hero content */
  width: min(100% - 1.4rem, 1100px);
  background: rgba(255, 255, 255, 1);
  border-radius: 999px;
  padding: 0.6rem 2.5rem;
  display: flex;
  justify-content: center; /* center the quick items horizontally */
  align-items: center;
  gap: 2.25rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  z-index: 180; /* bring to front (above nav) */
}

.quick-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), #0a57ca);
  border: 8px solid #ffffff;
  box-shadow: 0 16px 36px rgba(11, 91, 211, 0.22);
  margin: 0; /* reset any margins so gap is consistent */
}

/* Hide hero action buttons on small screens (mobile-only) */
@media (max-width: 767px) {
  .hero-actions {
    display: none !important;
  }

  /* Tidy up the quickbar spacing for narrow viewports */
  .hero-quickbar {
    justify-content: space-evenly;
    gap: 0.75rem;
    padding: 0.55rem 1.15rem;
  }
}

/* make icons inside quick-item center and slightly larger */
.quick-item svg, .quick-item img { width: 26px; height: 26px; display:block; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.12);
  color: #e9f2ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0.6rem 0 1rem;
  font-size: clamp(2.6rem, 8.6vw, 5.6rem);
  line-height: 0.95;
  color: var(--white);
  letter-spacing: -0.05em;
  max-width: 28ch;
  white-space: normal;
  word-break: normal;
}

.hero h1 .h1-line {
  display: block;
  line-height: 1.05;
  margin: 0;
  padding: 0;
}

.hero h1 .h1-line + .h1-line {
  margin-top: 0.32rem;
}

.hero p {
  margin: 0;
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  color: rgba(255, 255, 255, 0.95);
  max-width: 32ch;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), #1cb66e);
  color: #0b1f3a;
  box-shadow: 0 16px 30px rgba(32, 198, 122, 0.26);
}

.form-submit {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.form-submit:hover,
.form-submit:focus {
  background: #111111;
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-trust {
  display: none;
}

.trust-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 18px 40px rgba(7, 18, 36, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
}

.trust-card strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: var(--navy);
}

.trust-grid {
  display: none;
}

.trust-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #eff6ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  text-align: center;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

section {
  padding: 4.5rem 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
  text-align: center;
}

/* Block Paving / service detail styles */
.service-detail { background: #f8fbff; }
.block-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: center; }
.block-grid .info-card { padding: 1.25rem; }
.service-detail .gallery-frame { border-radius: 10px; overflow: hidden; }
.service-detail .gallery-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) {
  .block-grid { grid-template-columns: 1fr 1fr; }
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.about-snapshot {
  background: #ffffff;
  padding-top: 1.5rem;
}

.about-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.small-divider {
  width: 180px;
  max-width: 32vw;
  height: 2px;
  background: rgba(16, 32, 51, 0.85);
  display: inline-block;
}

.section-kicker {
  color: var(--blue);
  font-weight: 800;
  font-size: 1.1rem;
}

.about-title {
  text-align: center;
  margin: 0 auto;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: #121826;
  max-width: 10ch;
}

.about-copy {
  max-width: 760px;
  margin: 1.6rem auto 0;
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  color: #212938;
  text-align: left;
}

/* Blue left border removed for the about snapshot section */
.about-snapshot .about-copy {
  padding-left: 0; /* flush with container, no left accent */
  padding-top: 0.25rem;
}

.about-copy p {
  margin: 0 0 1.2rem;
}

/* No left accent for about copy (removed per request) */

.nav-overlay-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 9998;
}

.nav-links {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9999;
  padding: 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  overflow-y: auto;
  min-height: 100vh;
  height: 100vh;
  width: 100vw;
  overscroll-behavior: contain;
}

.nav-links.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-panel {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 83%, #f8f9fb 100%);
}

.nav-panel-top {
  position: relative;
  padding: 0.75rem 1rem 0.6rem 0;
  min-height: 96px;
  border-bottom: 1px solid rgba(16, 32, 51, 0.08);
}

.nav-panel-top::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, var(--blue) 0 88%, transparent 88% 100%);
}

.nav-panel-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  color: var(--blue);
  font-size: 3rem;
  line-height: 0.8;
  cursor: pointer;
}

/* mobile link list inside the slide-down menu */
.nav-panel-linklist {
  display: grid;
  grid-auto-rows: minmax(56px, auto);
  padding: 0.25rem 1rem 1rem 0;
}
.nav-panel-linklist a {
  display: block;
  font-weight: 700;
  color: #0e1b2f;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid rgba(16, 32, 51, 0.08);
}

.nav-panel-footer {
  padding: 1rem 1rem 1rem 0;
}
.menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: var(--blue);
  color: #fff;
  border-radius: 14px;
  padding: 1.05rem 1.2rem;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(11, 91, 211, 0.22);
}
.menu-cta-icon { font-size: 1.25rem; }

@media (min-width: 821px) {
  .menu-toggle {
    display: none;
  }

  .brand {
    margin: 0;
  }

  .nav-cta {
    margin-left: 100px;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: static;
    inset: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .nav-panel {
    display: contents;
  }

  .nav-panel-top,
  .nav-panel-footer,
  .nav-panel-close {
    display: none;
  }

  .nav-panel-linklist {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0;
  }

  .nav-links a {
    color: #20324c;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.35rem 0;
    border: 0;
    min-height: auto;
  }

  .nav-links a:first-child {
    color: var(--blue);
  }

  .nav-links a:hover {
    background: transparent;
  }
}

/* Gallery / services image styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  --ring-a: rgba(92, 205, 255, 0.92);
  --ring-b: rgba(74, 232, 170, 0.84);
  cursor: pointer;
  outline: none;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 28px;
  text-align: left;
  isolation: isolate;
  transform: translateY(0) scale(1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

@media (max-width: 820px) {
  header > .container.nav {
    overflow: visible;
    max-height: none;
  }

  .nav {
    min-height: 130px;
  }

  .menu-toggle,
  .nav-cta {
    position: relative;
    z-index: 2;
  }

  .brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 1;
  }

  .brand img {
    width: auto;
    height: 110px;
    max-width: min(90vw, 420px);
    max-height: none;
  }

  .nav-links {
    display: block;
    align-items: initial;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    overflow: hidden;
  }

  .nav-links.open {
    display: block;
    min-height: 100vh;
    height: 100vh;
  }

  .nav-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    overflow-y: auto;
  }

  .nav-panel-top {
    padding-left: 0;
    min-height: 72px;
  }

  .nav-panel-linklist {
    padding-left: 0;
    padding-bottom: 0;
  }

  .nav-panel-footer {
    padding-left: 0;
    padding-bottom: 0;
  }
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.28), transparent 58%),
    linear-gradient(135deg, var(--ring-a), var(--ring-b));
  filter: blur(22px);
  opacity: 0.45;
  z-index: -1;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.04) 36%, rgba(74, 232, 170, 0.4) 72%, rgba(92, 205, 255, 0.55));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.88;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.3s ease;
}

.gallery-frame {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(8, 12, 18, 0.94);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  padding: 0;
  box-shadow:
    0 18px 45px rgba(7, 12, 20, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateZ(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
  border-radius: 24px;
  transform: scale(1);
  transition: transform 0.38s cubic-bezier(0.2, 0.9, 0.22, 1), filter 0.3s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-8px) scale(1.015);
}

.gallery-item:hover::before,
.gallery-item:focus-visible::before {
  opacity: 0.72;
  filter: blur(28px);
  transform: scale(1.02);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-item:hover .gallery-frame,
.gallery-item:focus-visible .gallery-frame {
  transform: perspective(1000px) rotateX(3deg) translateY(-2px);
  box-shadow:
    0 24px 60px rgba(7, 12, 20, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.gallery-item:hover .gallery-photo,
.gallery-item:focus-visible .gallery-photo {
  transform: scale(1.1);
  filter: saturate(1.08) contrast(1.04) brightness(1.02);
}

.gallery-item:active {
  transform: translateY(-2px) scale(0.985);
}

/* Title sits centered below frame (white text), as in the screenshots */
.gallery-title {
  margin-top: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

/* remove the old dark card wrapper look so the glow becomes the visual focus */
.gallery-item { background: transparent; }
.gallery-item .gallery-frame { border-radius: 24px; }

/* small screens: tighter grid */
@media (max-width: 420px) {
  .gallery-frame {
    aspect-ratio: 4 / 5;
  }

  .gallery-item {
    border-radius: 24px;
  }
}

@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .container { padding-left: 0.85rem; padding-right: 0.85rem; }
  .hero-quickbar { width: calc(100% - 2rem); left: 50%; transform: translateX(-50%); }
  .gallery-title { color: #ffffff; font-size: 1.15rem; }
}

/* dark background sections for services and gallery like screenshots */
#services { background: #1f2228; }
#services .section-heading h2,
#services .section-heading p { color: #eef2f8; }

/* Services grid and card styling */
#services .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: start;
}

#services .service-card {
  position: relative;
  background: linear-gradient(180deg, #50545c 0%, #40444a 100%);
  border-radius: 0;
  padding: 1rem 1rem 1.1rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(7, 12, 20, 0.28);
}

#services .service-card figure {
  margin: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

#services .gallery-item {
  background: transparent;
  box-shadow: none;
  transform: none;
}

#services .gallery-item::before {
  content: none;
}

#services .gallery-item::after {
  content: none;
}

#services .gallery-item:hover,
#services .gallery-item:focus-visible {
  transform: translateY(-5px) scale(1.01);
}

#services .gallery-item:hover .gallery-frame,
#services .gallery-item:focus-visible .gallery-frame {
  transform: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    0 10px 24px rgba(7, 12, 20, 0.18);
}

#services .gallery-item:hover .gallery-photo,
#services .gallery-item:focus-visible .gallery-photo {
  transform: none;
  filter: none;
}

#services .gallery-frame {
  aspect-ratio: 1 / 1;
  padding: 0.8rem;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(12, 18, 28, 0.22), rgba(12, 18, 28, 0.14)),
    var(--img) center / cover no-repeat;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    0 10px 24px rgba(7, 12, 20, 0.18);
}

#services .gallery-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-image: var(--img);
  background-position: center;
  background-size: cover;
  filter: blur(16px) saturate(1.1) brightness(0.82);
  transform: scale(1.08);
  opacity: 0.88;
  z-index: 0;
  pointer-events: none;
}

#services .gallery-photo {
  border-radius: 0;
  border: 5px solid rgba(255, 255, 255, 0.96);
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

#services .service-card figcaption {
  padding: 0.1rem 0.15rem 0;
  color: #ffffff;
  text-align: center;
}

#services .service-card figcaption h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.01em;
}

#services .service-card figcaption p {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
}

#gallery { background: #24272e; }
#gallery .section-heading h2,
#gallery .section-heading p { color: #eef2f8; }

body.gallery-page {
  background:
    radial-gradient(circle at top left, rgba(11, 91, 211, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(32, 198, 122, 0.16), transparent 28%),
    linear-gradient(180deg, #08111d 0, #08111d 28rem, #f4f7fb 28rem, #f4f7fb 100%);
}

.gallery-page-main {
  position: relative;
}

.gallery-hero {
  padding: clamp(2.25rem, 5vw, 4.5rem) 0 2rem;
  color: #eef2f8;
}

.page-hero-card,
.gallery-cta-card {
  background:
    linear-gradient(135deg, rgba(8, 18, 36, 0.92), rgba(13, 28, 52, 0.82)),
    rgba(8, 18, 36, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.28);
}

.page-hero-card {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  max-width: 760px;
}

.page-hero-card h1 {
  margin: 0.35rem 0 0.8rem;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.page-hero-card p {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
}

.page-hero-card .hero-actions,
.gallery-cta-card .hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.beforeafter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
  align-items: start;
}

.beforeafter-card {
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #313740 0%, #232930 100%);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(7, 12, 20, 0.28);
}

.beforeafter-card-head h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
  color: #ffffff;
}

.beforeafter-card-head p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.beforeafter-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.beforeafter-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.shot-label {
  display: inline-flex;
  width: fit-content;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shot-label.before {
  background: rgba(255, 99, 99, 0.16);
  border: 1px solid rgba(255, 99, 99, 0.24);
  color: #ffcbcb;
}

.shot-label.after {
  background: rgba(32, 198, 122, 0.16);
  border: 1px solid rgba(32, 198, 122, 0.24);
  color: #c7f6dd;
}

.beforeafter-card .gallery-item {
  border-radius: 20px;
}

.beforeafter-card .gallery-frame {
  aspect-ratio: 4 / 5;
}

.beforeafter-card .gallery-photo {
  border-radius: 20px;
}

.gallery-cta {
  padding: 2rem 0 4rem;
}

.gallery-cta-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.gallery-cta-card h2 {
  margin: 0.35rem 0 0.6rem;
  color: #ffffff;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.1;
}

.gallery-cta-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 720px) {
  .beforeafter-pair {
    grid-template-columns: 1fr;
  }

  .page-hero-card,
  .beforeafter-card,
  .gallery-cta-card {
    border-radius: 20px;
  }
}

/* The rest of the stylesheet continues unchanged (omitted here for brevity) */

/* ----- Why / Contact / Reviews styles ----- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 820px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}

.info-card {
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  color: var(--navy);
}

.bullet-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.bullet-list li { display: flex; align-items: flex-start; gap: 0.8rem; font-weight: 700; color: #102033; }
.bullet-list .tick { color: var(--green); font-weight: 900; min-width: 20px; display: inline-block; }

.contact-points { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1rem; }
.contact-chip { display: flex; gap: 0.8rem; align-items: center; background: #f4f7fb; border-radius: 12px; padding: 0.6rem; border: 1px solid var(--border); }
.chip-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff; font-weight: 800; }
.contact-chip a { display: inline-block; color: #0b2b40; font-weight: 800; margin-top: 2px; }

/* Reviews: show 5 cards at a time on wide screens and fade between sets */
.reviews-wrap { opacity: 1; transition: opacity 0.36s ease; }
.reviews-wrap.fade-out { opacity: 0; }
.reviews-wrap.fade-in { opacity: 1; }

.review-grid { display: grid; gap: 1rem; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .review-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1300px) { .review-grid { grid-template-columns: repeat(5, 1fr); } }

.review-card { background: #ffffff; border-radius: 12px; padding: 1rem; box-shadow: 0 10px 28px rgba(16,32,51,0.06); border: 1px solid var(--border); }
.review-card .stars { color: #f5b700; font-size: 1.05rem; margin-bottom: 0.5rem; font-weight: 800; }
.review-meta { margin-top: 0.6rem; color: var(--muted); font-weight: 700; }

/* legacy reviews-scroll kept for compatibility */
.reviews-scroll { max-height: 520px; overflow: hidden; position: relative; }

/* Contact / Form layout */
.contact-wrap { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .contact-wrap {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
  }
}
.form-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 14px 36px rgba(11,31,58,0.06);
  width: 100%;
}
@media (min-width: 900px) {
  .form-card {
    padding: 1.35rem;
    border-radius: 18px;
  }
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-grid .field { display: flex; flex-direction: column; }
.form-grid .field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; margin-bottom: 0.35rem; color: #0f2434; }
input, select, textarea {
  border: 1px solid rgba(16,32,51,0.08);
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  width: 100%;
  min-width: 0;
}
textarea { min-height: 120px; resize: vertical; }
.form-actions { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.8rem; flex-wrap: wrap; }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 0.65rem; }
.form-status { margin-top: 0.6rem; font-weight: 700; color: var(--green); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(2,6,23,0.7); z-index: 9999; }
.lightbox[aria-hidden="false"] { display: flex; }
.lightbox [role="document"] {
  position: relative;
  width: min(96vw, 980px);
  max-height: 90vh;
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(220px, 0.8fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.32);
  overflow: auto;
}
.lightbox [role="document"] > div:first-child {
  min-width: 0;
  min-height: 280px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 16px;
  background: #0b1220;
  overflow: hidden;
}
.lightbox-media {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.lightbox-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem 0.5rem 0.5rem;
  color: var(--navy);
}
.lightbox-copy p {
  margin: 0;
  color: #314058;
  font-size: 0.98rem;
  line-height: 1.6;
}
.lightbox [role="document"] > div:first-child img { max-width: 100%; max-height: 80vh; object-fit: contain; display: block; }
.close-lightbox { position: absolute; top: 16px; right: 16px; border: none; background: rgba(0,0,0,0.6); color: #fff; width: 40px; height: 40px; border-radius: 10px; font-size: 1.3rem; cursor: pointer; z-index: 2; }

@media (max-width: 720px) {
  .lightbox [role="document"] {
    grid-template-columns: 1fr;
    width: min(94vw, 620px);
    padding: 0.8rem;
  }

  .lightbox-media {
    min-height: 220px;
  }

  .lightbox-copy {
    padding: 0.25rem 0.1rem 0.2rem;
  }
}

/* Footer tweaks */
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer-bottom { display: flex; gap: 1rem; justify-content: space-between; padding-top: 1rem; border-top: 1px solid rgba(16,32,51,0.04); color: var(--muted); font-size: 0.95rem; flex-wrap: wrap; }

/* Responsive tweaks for info-card to prevent overflow on small viewports */
.info-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .info-card {
    padding: 1rem; /* slightly reduce padding */
    border-radius: 12px;
  }

  .info-card h3 { font-size: 1.05rem; line-height: 1.2; }

  .bullet-list li { font-size: 0.95rem; }

  .contact-points { gap: 0.6rem; }
  .contact-chip { padding: 0.5rem; }
  .chip-icon { width: 40px; height: 40px; }
}

@media (max-width: 420px) {
  .info-card { padding: 0.85rem; }
  .bullet-list li { font-size: 0.92rem; }
}

/* Responsive tweaks for contact form to ensure it fits on small screens */
@media (max-width: 900px) {
  .form-card {
    width: 100%;
    padding: 0.9rem;
    box-sizing: border-box;
    border-radius: 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .form-grid .field.full { grid-column: auto; }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .form-actions .btn {
    width: 100%;
  }
}

@media (min-width: 901px) {
  .form-grid {
    gap: 1rem 1.1rem;
  }
}

