:root {
  --ink: #1b2430;
  --muted: #5b6472;
  --bg: #ffffff;
  --bg-tint: #f4f7fb;
  --border: #e2e6ec;
  --primary: #175fa8;
  --primary-dark: #0e3f70;
  --primary-tint: #e8f0fa;
  --cta: #e8590c;
  --cta-dark: #bd460a;
  --radius: 5px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(20, 30, 45, 0.06), 0 8px 24px rgba(20, 30, 45, 0.07);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }

p { margin: 0 0 1em; }

a {
  color: var(--primary);
}

ul {
  padding-left: 1.2em;
}

/* ---------- layout shells ---------- */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.page--wide {
  max-width: 1240px;
}

.section {
  padding: 3.5rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section--tint { background: var(--bg-tint); }
.section--primary {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(55% 60% at 88% 8%, rgba(255, 255, 255, 0.14) 0%, transparent 60%),
    radial-gradient(50% 50% at 6% 96%, rgba(232, 89, 12, 0.22) 0%, transparent 62%),
    var(--primary);
}
.section--primary h2, .section--primary .section-head p { color: #fff; }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h2, .section--dark .section-head p { color: #fff; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7em 1.4em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  line-height: 1.4;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--cta);
  color: #fff;
  border-color: var(--cta);
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  background: var(--cta-dark);
  border-color: var(--cta-dark);
  color: #fff;
}

.btn--secondary {
  background: var(--bg-tint);
  border-color: var(--border);
  color: var(--ink);
}

.btn--secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: var(--ink);
}

.btn--ghost {
  background: #ffffff;
  border-color: var(--border);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 30, 45, 0.04);
}

.btn--ghost:hover {
  background: var(--bg-tint);
  border-color: #cbd5e1;
  color: var(--primary);
}

/* On dark / primary / hero surfaces */
.hero .btn--ghost,
.cta-banner .btn--ghost,
.section--primary .btn--ghost,
.section--dark .btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(4px);
}

.hero .btn--ghost:hover,
.cta-banner .btn--ghost:hover,
.section--primary .btn--ghost:hover,
.section--dark .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
  color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cta-banner .btn-group {
  justify-content: center;
}
/* ---------- header ---------- */

#nav-toggle { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-desktop a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

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

.nav-desktop a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-phone {
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}

.header-cta {
  background: var(--cta);
  color: #fff !important;
  padding: 0.6em 1.1em;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--cta-dark);
}

.nav-burger {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}

.nav-burger:hover { color: var(--primary); }
.nav-burger .icon-close { display: none; }
#nav-toggle:checked ~ .site-header .nav-burger .icon-open { display: none; }
#nav-toggle:checked ~ .site-header .nav-burger .icon-close { display: block; }

/* Nav starts collapsed by default (safe, never overflows). JS in _layout.html
   removes .nav-collapsed once it confirms the expanded nav actually fits. */
.site-header.nav-collapsed .nav-desktop,
.site-header.nav-collapsed .header-phone,
.site-header.nav-collapsed .header-actions .header-cta {
  display: none;
}

.site-header.nav-collapsed .nav-burger {
  display: flex;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  position: sticky;
  top: 65px;
  z-index: 25;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 0.5rem 1.5rem 1.25rem;
}

.nav-mobile a {
  padding: 0.85rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a.active {
  color: var(--primary);
}

.nav-mobile .header-cta {
  margin-top: 1rem;
  padding: 0.65em 1.4em;
  text-align: center;
  align-self: flex-start;
  border-bottom: none;
}

#nav-toggle:checked ~ .nav-mobile { display: flex; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  color: #fff;
  min-height: clamp(480px, 68vh, 720px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 9vh, 6rem) 1.5rem;
  background: linear-gradient(180deg, rgba(14, 22, 34, 0.78), rgba(14, 22, 34, 0.6)), var(--hero-image, none) center/cover no-repeat;
  background-color: var(--primary-dark);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.3em;
}

.hero p {
  font-size: 1.15rem;
  max-width: 40em;
}

.badge-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0;
}

.badge-list li {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(2px);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45em 0.9em;
  border-radius: 999px;
}

.hero .btn { margin-top: 0.5rem; margin-right: 0.6rem; }

/* ---------- sections / cards ---------- */

.section-head {
  text-align: center;
  max-width: 40em;
  margin: 0 auto 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(20, 30, 45, 0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  box-shadow: 0 10px 28px rgba(20, 30, 45, 0.1);
  transform: translateY(-3px);
  border-color: #cbd5e1;
}

.service-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.05);
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem;
}

.service-card h3 {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.service-card:hover h3 {
  color: var(--primary);
}

.service-card p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}

.service-card:hover .service-card__link {
  color: var(--cta);
}
.service-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.service-page__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-page__body h1 {
  margin-bottom: 0.5rem;
}

@media (max-width: 760px) {
  .service-page {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.service-crumb {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
  padding: 1.5rem 1.75rem;
  margin-top: 3rem;
  background: var(--bg-tint);
  border-radius: var(--radius);
}

.service-crumb__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.4em;
}

.service-crumb__intro p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.service-crumb__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.service-crumb__list a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.service-crumb__list a:hover {
  color: var(--primary);
}

@media (max-width: 640px) {
  .service-crumb {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
}

/* ---------- reviews ---------- */

.review-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

@media (max-width: 960px) {
  .review-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .review-grid {
    column-count: 1;
  }
}

.review-grid .review-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  height: auto;
}

.review-track {
  position: relative;
}

.review-scroller {
  --visible: 1;
  --gap: 1.25rem;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1.25rem;
  padding: 0.25rem 1.25rem 0.5rem;
  margin: 0 -1.25rem;
  scrollbar-width: none;
}

.review-scroller::-webkit-scrollbar {
  display: none;
}

.review-scroller__item {
  display: flex;
  flex: 0 0 calc((100% - (var(--visible) - 1) * var(--gap)) / var(--visible));
  scroll-snap-align: start;
}

@media (min-width: 560px) {
  .review-scroller { --visible: 2; }
}

@media (min-width: 900px) {
  .review-scroller { --visible: 3; }
}

@media (min-width: 1240px) {
  .review-scroller { --visible: 4; }
}


.review-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 1px 3px rgba(20, 30, 45, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.review-card:hover {
  box-shadow: 0 4px 12px rgba(20, 30, 45, 0.08);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.review-card__author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.review-card__name {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  line-height: 1.25;
  color: var(--ink);
}

.review-card__date {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.2;
}

.review-card__stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
  line-height: 1;
}

.review-card__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-line;
  margin: 0;
}

.review-scroller .review-card {
  height: 100%;
}

.review-scroller .review-card__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.review-scroller .review-card__response {
  display: none;
}
.review-card__response {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  background: var(--bg-tint);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
}

.review-card__response-title {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary-dark);
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.review-card__response-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.section--primary .review-card,
.section--dark .review-card {
  color: var(--ink);
}

/* ---------- before/after galleries ---------- */

.page--gallery {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin: 2rem 0 3.5rem;
}

.before-after {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.before-after:hover {
  box-shadow: 0 8px 30px rgba(20, 30, 45, 0.09);
}

.before-after__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: #0f172a;
}

@media (max-width: 640px) {
  .before-after__images {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: #0f172a;
  cursor: pointer;
  overflow: hidden;
}

.gallery-item img {
  border-radius: 0;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 0.3em 0.85em;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 2;
}

.gallery-item--after .gallery-item__tag {
  background: var(--cta);
}

.before-after figcaption {
  margin-top: 1rem;
  padding: 0 0.25rem 0.25rem;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.15rem;
}

/* ---------- rich page components (about, careers, content) ---------- */

.split-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.split-layout--reversed {
  grid-template-columns: 0.85fr 1.15fr;
}

@media (max-width: 860px) {
  .split-layout,
  .split-layout--reversed {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.feature-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.feature-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-media__badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 3rem 0;
  padding: 1.75rem;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.25rem;
    gap: 1rem;
  }
}

.stat-item {
  text-align: center;
}

.stat-item__num {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-item__label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 3.5rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 1px 3px rgba(20, 30, 45, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 30, 45, 0.08);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.job-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(20, 30, 45, 0.04);
}

.job-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.job-card__header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.job-card__badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 99px;
}

.job-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--ink);
}

.job-card li {
  margin-bottom: 0.4rem;
}

.cta-banner {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3.5rem 0 1rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 60% at 90% 10%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(232, 89, 12, 0.22) 0%, transparent 60%),
    var(--primary);
}

.cta-banner h2 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 540px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}

.cta-banner .btn--primary {
  background: var(--cta);
  color: #fff;
}

.cta-banner .btn--primary:hover {
  background: var(--cta-dark);
}
/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] { display: none; }

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-media {
  max-width: min(90vw, 1100px);
  max-height: 78vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #000;
}

.lightbox-caption {
  margin-top: 1rem;
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.24); }

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

@media (max-width: 640px) {
  .lightbox { padding: 1rem; }
  .lightbox-prev { left: 0.35rem; }
  .lightbox-next { right: 0.35rem; }
  .lightbox-close { top: 0.5rem; right: 0.5rem; }
}

/* ---------- estimate page & form ---------- */

.estimate-wrapper {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .estimate-wrapper {
    padding: 1.5rem 1.25rem;
  }
}

.estimate-form {
  display: grid;
  gap: 1.15rem;
  width: 100%;
}

.estimate-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) {
  .estimate-form__row {
    grid-template-columns: 1fr;
  }
}

.estimate-form__group {
  display: flex;
  flex-direction: column;
}

.estimate-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35em;
  font-size: 0.88rem;
  color: var(--ink);
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  width: 100%;
  padding: 0.7em 0.85em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  background: #ffffff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

.estimate-form textarea {
  min-height: 5.5em;
  resize: vertical;
}

.estimate-form .btn {
  width: 100%;
  padding: 0.85em 1.5em;
  font-size: 1rem;
}
.form-success {
  border-radius: var(--radius);
  background: var(--primary-tint);
  padding: 1.75rem;
  border: 1px solid rgba(23, 95, 168, 0.2);
}

.form-error {
  color: var(--cta-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

/* ---------- 404 ---------- */

.not-found {
  text-align: center;
  padding: 4rem 1.5rem;
}

.not-found__code {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.15em 0.55em;
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  border-radius: var(--radius);
}

.not-found h1 {
  max-width: 24em;
  margin-left: auto;
  margin-right: auto;
}

.not-found p {
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

/* ---------- footer ---------- */

footer {
  background: var(--ink);
  color: #eef2f6;
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1.5rem;
}

footer a {
  color: #fff;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.5em;
}

footer p {
  margin: 0 0 0.4em;
  color: #c5cdd7;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  header {
    padding: 0.8rem 1rem;
  }
  .section {
    padding: 2.5rem 1rem;
  }
  .page {
    padding: 1.75rem 1rem 3rem;
  }
}
