/* Cotton Carpentry — blue-forward, minimal chrome */

:root {
  --blue-950: #0a1628;
  --blue-900: #0f2240;
  --blue-800: #15325e;
  --blue-700: #1e4a7a;
  --blue-600: #2a6cb0;
  --blue-500: #3b82c4;
  --blue-400: #5ba3e0;
  --blue-100: #e8f2fc;
  --blue-50: #f4f9ff;
  --white: #fafbff;
  --muted: #8aa3c0;
  --text: #d8e6f5;
  --text-dark: #1a2d44;
  --accent: #7cc4ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 48px rgba(5, 15, 35, 0.45);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--blue-950);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--blue-950);
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(124, 196, 255, 0.35);
  border-radius: 999px;
  background: rgba(15, 34, 64, 0.92);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(5, 15, 35, 0.45);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(124, 196, 255, 0.55);
  background: rgba(21, 50, 94, 0.95);
  outline: none;
}

.back-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

@media (max-width: 380px) {
  .header-call-label {
    display: none;
  }
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 40, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(91, 163, 224, 0.12);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.header-top {
  border-bottom: 1px solid rgba(91, 163, 224, 0.1);
}

.header-inner--top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0 0.45rem;
  min-height: 3.25rem;
}

.header-call-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.header-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.header-inner--top .header-top-actions .header-call-wrap {
  flex: 0 1 auto;
  justify-content: flex-end;
}

.site-header--simple .header-call-wrap {
  flex: 1;
}

.header-nav-row {
  padding: 0.35rem 0 0.55rem;
}

.header-inner--nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  position: relative;
  z-index: 1;
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 0.75rem;
  min-width: 0;
}

.header-call {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  margin-left: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-call-icon {
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--white);
  opacity: 0.98;
}

@media (min-width: 900px) {
  .header-call-icon {
    width: 1.3rem;
    height: 1.3rem;
  }
}

.header-call-label {
  margin-right: 0.35rem;
}

.header-call-num {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08em;
}

.header-call-num:hover,
.header-call-num:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--white);
  line-height: 0;
}

.logo-img {
  display: block;
  height: clamp(36px, 8.44vw, 49px);
  width: auto;
  max-width: min(206px, 49vw);
  object-fit: contain;
  object-position: left center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(91, 163, 224, 0.12);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.85rem;
}

@media (min-width: 1100px) {
  .site-nav > ul {
    gap: 0.35rem 1.1rem;
  }
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.35;
  padding: 0.3rem 0;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

/* Match Services button: plain <a> was inline (baseline strut) vs inline-flex button — a few px off */
.site-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
}

/* Services submenu (click-to-toggle, all viewports) */
.nav-item--services {
  position: relative;
}

.nav-services-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.3rem 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-services-toggle:hover,
.nav-services-toggle:focus-visible {
  color: var(--white);
}

.nav-services-toggle:focus-visible {
  outline: 2px solid rgba(124, 196, 255, 0.65);
  outline-offset: 3px;
}

.nav-services-toggle[aria-expanded="true"] {
  color: var(--white);
}

.nav-services-chevron {
  flex-shrink: 0;
  display: block;
  width: 0.45em;
  height: 0.45em;
  margin: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: 50% 50%;
  transition: transform 0.2s ease;
}

.nav-services-toggle[aria-expanded="true"] .nav-services-chevron {
  transform: rotate(-135deg);
}

.nav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
}

.nav-sub[hidden] {
  display: none !important;
}

@media (min-width: 769px) {
  .nav-sub:not([hidden]) {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 15.5rem;
    padding: 0.45rem 0;
    background: rgba(10, 22, 40, 0.98);
    border: 1px solid rgba(91, 163, 224, 0.22);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 70;
  }

  .nav-sub:not([hidden]) a {
    display: block;
    padding: 0.45rem 1.15rem;
    border-bottom: none;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .nav-sub:not([hidden]) a:hover,
  .nav-sub:not([hidden]) a:focus-visible {
    background: rgba(91, 163, 224, 0.1);
  }
}

.nav-cta {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: var(--white) !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(43, 120, 200, 0.35);
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  filter: brightness(1.08);
}

.header-inner--top .nav-cta {
  padding: 0.38rem 0.85rem !important;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 2px 14px rgba(43, 120, 200, 0.28);
}

.header-inner--top .nav-cta:hover,
.header-inner--top .nav-cta:focus-visible {
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .header-call {
    font-size: 0.9375rem;
    margin-left: 0;
    gap: 0.35rem;
  }

  .header-call-icon {
    width: 1.05rem;
    height: 1.05rem;
  }

  .header-inner--nav {
    justify-content: flex-end;
  }

  .header-nav-wrap {
    flex: 0 0 auto;
    justify-content: flex-end;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 60;
    margin-top: 0;
    background: rgba(10, 22, 40, 0.97);
    border-bottom: 1px solid rgba(91, 163, 224, 0.15);
    padding: 1rem 1.25rem 1.25rem;
    transform: translateY(-0.5rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.25rem;
    justify-content: flex-start;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(91, 163, 224, 0.08);
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .site-nav > ul > li > a {
    display: block;
  }

  .nav-item--services {
    border-bottom: 1px solid rgba(91, 163, 224, 0.08);
  }

  .nav-services-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    line-height: 1.35;
    text-align: left;
  }

  .nav-sub:not([hidden]) {
    padding: 0 0 0.35rem 0.65rem;
    border-bottom: 1px solid rgba(91, 163, 224, 0.06);
  }

  .nav-sub:not([hidden]) a {
    display: block;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(91, 163, 224, 0.06);
    font-size: 0.92rem;
  }

  .nav-sub:not([hidden]) li:last-child a {
    border-bottom: none;
  }

  .header-inner--top .nav-cta {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.78rem;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }
}

@media (min-width: 769px) {
  .site-nav {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 0;
  }
}

/* Hero */

.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.hero-stack {
  position: relative;
  width: 100%;
}

.hero-banner {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: min(70vh, 640px);
  min-height: clamp(320px, 52vw, 420px);
  overflow: hidden;
  border-bottom: 1px solid rgba(91, 163, 224, 0.22);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

.hero-banner-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      rgba(10, 22, 40, 0.92) 0%,
      rgba(10, 22, 40, 0.72) 38%,
      rgba(10, 22, 40, 0.35) 58%,
      rgba(10, 22, 40, 0.25) 100%
    ),
    linear-gradient(to top, rgba(10, 22, 40, 0.82) 0%, transparent 52%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  padding-inline: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 38rem;
  padding-inline: 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 2px 28px rgba(10, 22, 40, 0.55), 0 1px 0 rgba(10, 22, 40, 0.2);
}

.hero .eyebrow {
  text-shadow: 0 1px 14px rgba(10, 22, 40, 0.55);
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero .lead {
  color: rgba(232, 242, 252, 0.93);
  text-shadow: 0 1px 3px rgba(10, 22, 40, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  color: var(--blue-950);
  box-shadow: 0 8px 28px rgba(91, 163, 224, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(91, 163, 224, 0.45);
}

.btn-ghost {
  border-color: rgba(124, 196, 255, 0.35);
  color: var(--white);
  background: rgba(21, 50, 94, 0.35);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(30, 74, 122, 0.5);
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(10, 22, 40, 0.38);
  backdrop-filter: blur(10px);
}

.hero .btn-ghost:hover {
  border-color: rgba(124, 196, 255, 0.65);
  background: rgba(15, 34, 64, 0.55);
}

.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

/* Stats strip */

.strip {
  border-block: 1px solid rgba(91, 163, 224, 0.12);
  background: rgba(15, 34, 64, 0.6);
}

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

.stat {
  text-align: center;
  padding: 0.5rem;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
}

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

/* How we work */

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.process-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 0;
  padding: 1.25rem 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(91, 163, 224, 0.18);
  background: rgba(15, 34, 64, 0.45);
}

.process-step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--blue-950);
  background: linear-gradient(145deg, var(--accent), var(--blue-400));
}

.process-step-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}

.process-step-body p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Sections */

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(15, 34, 64, 0.5) 0%, rgba(10, 22, 40, 0.3) 100%);
}

.section-divider {
  margin: 0;
  padding: 0;
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 196, 255, 0.22),
    rgba(91, 163, 224, 0.35),
    rgba(124, 196, 255, 0.22),
    transparent
  );
  max-width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section-work-bg {
  background-color: var(--blue-950);
  background-image: linear-gradient(
      180deg,
      rgba(10, 22, 40, 0.92) 0%,
      rgba(10, 22, 40, 0.85) 50%,
      rgba(10, 22, 40, 0.94) 100%
    ),
    url("../assets/flatroof.jpg");
  background-size: cover;
  background-position: center center;
}

.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.75rem;
}

.section-head-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 36rem;
}

.section-head h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-head .large {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
}

.section-head .large strong {
  color: var(--accent);
  font-weight: 600;
}

.section-testimonials {
  background: linear-gradient(180deg, rgba(15, 40, 71, 0.28), rgba(15, 40, 71, 0));
}

.testimonials-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 980px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(21, 50, 94, 0.32);
  border: 1px solid rgba(91, 163, 224, 0.18);
}

.testimonial-quote {
  margin: 0;
}

.testimonial-quote p {
  margin: 0;
  color: var(--blue-50);
  line-height: 1.65;
}

.testimonial-meta {
  margin: 0.9rem 0 0;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* FAQ */

.faq-list {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid rgba(91, 163, 224, 0.14);
  background: rgba(21, 50, 94, 0.28);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(124, 196, 255, 0.22);
  background: rgba(21, 50, 94, 0.38);
}

.faq-summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  padding-right: 2.5rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--white);
  position: relative;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-summary::after {
  transform: translateY(-25%) rotate(225deg);
}

.faq-summary:hover {
  color: var(--accent);
}

.faq-summary:focus {
  outline: none;
}

.faq-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.faq-answer {
  padding: 0 1.15rem 1.1rem;
  margin-top: -0.15rem;
}

.faq-answer p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}

.faq-answer p + p {
  margin-top: 0.65rem;
}

.faq-answer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.faq-answer a:hover,
.faq-answer a:focus-visible {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .faq-summary::after {
    transition: none;
  }
}

.service-back {
  margin-top: 1.75rem;
  font-size: 0.98rem;
  color: var(--muted);
}

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

.service-back a:hover {
  text-decoration: underline;
}

.service-detail .wrap > p:not(.service-back) {
  margin: 0 0 1rem;
  max-width: 42rem;
  color: var(--text);
  line-height: 1.65;
}

/* Service pages — hero + long-form content */

.service-page {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4rem);
}

.service-hero {
  position: relative;
  margin: 0 auto 2.75rem;
  width: min(100% - 2rem, var(--max));
  border-radius: clamp(16px, 2.5vw, 22px);
  overflow: hidden;
  border: 1px solid rgba(91, 163, 224, 0.2);
  box-shadow:
    0 4px 0 rgba(91, 163, 224, 0.06),
    0 32px 64px rgba(5, 15, 35, 0.55);
}

.service-hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 160px;
  max-height: min(32vh, 320px);
  background: var(--blue-900);
}

.service-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.service-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.2) 0%,
    rgba(10, 22, 40, 0.55) 45%,
    rgba(10, 22, 40, 0.92) 100%
  );
  pointer-events: none;
}

.service-hero__text {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100% - 2rem, var(--max));
  padding: 1.5rem 0 1.65rem;
}

.service-hero__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(124, 196, 255, 0.95);
}

.service-hero__text h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(5, 15, 35, 0.45);
}

.service-hero__lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(232, 242, 252, 0.94);
}

@media (max-width: 720px) {
  .service-hero__media {
    aspect-ratio: 21 / 9;
    min-height: 120px;
    max-height: min(26vh, 220px);
  }

  .service-hero__text {
    padding: 0.85rem 0 1rem;
  }

  .service-hero__lead {
    font-size: 0.95rem;
  }
}

.service-content {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.service-content--panel {
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2rem) clamp(1.75rem, 3vw, 2.5rem);
  border-radius: clamp(16px, 2.2vw, 22px);
  background: linear-gradient(
    165deg,
    rgba(21, 50, 94, 0.22) 0%,
    rgba(10, 22, 40, 0.08) 45%,
    rgba(10, 22, 40, 0.12) 100%
  );
  border: 1px solid rgba(91, 163, 224, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 48px rgba(5, 15, 35, 0.35);
}

.service-intro {
  font-size: 1.125rem;
  line-height: 1.72;
  color: var(--text);
  margin: 0 0 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(91, 163, 224, 0.1);
}

.service-image-row {
  margin: 0 0 2.5rem;
}

.service-image-row__head {
  margin-bottom: 1rem;
}

.service-image-row__label {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}

.service-image-row__sub {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.service-image-row__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.service-image-row__cell {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(91, 163, 224, 0.18);
  background: rgba(10, 22, 40, 0.65);
  box-shadow:
    0 0 0 1px rgba(124, 196, 255, 0.06),
    0 14px 36px rgba(5, 15, 35, 0.42);
}

.service-image-row__cell img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 120px;
  max-height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .service-image-row__cell:hover img {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-image-row__cell img {
    transition: none;
  }

  .service-image-row__cell:hover img {
    transform: none;
  }
}

@media (max-width: 640px) {
  .service-image-row__grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .service-image-row__cell img {
    aspect-ratio: 16 / 10;
    max-height: 240px;
  }

  .service-content--panel {
    padding: 1.25rem 1rem 1.5rem;
  }
}

.service-prose {
  padding-top: 0.25rem;
}

.service-prose h2 {
  margin: 2.35rem 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.25;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(91, 163, 224, 0.1);
}

.service-prose h2:first-child {
  margin-top: 0;
}

.service-prose p {
  margin: 0 0 1.05rem;
  color: var(--text);
  line-height: 1.72;
}

.service-prose p:last-child {
  margin-bottom: 0;
}

.service-highlights {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.service-highlights li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.service-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  box-shadow: 0 0 0 3px rgba(91, 163, 224, 0.18);
}

.service-panel {
  margin-top: 2.5rem;
  padding: 1.45rem 1.55rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(30, 74, 122, 0.35), rgba(15, 34, 64, 0.55));
  border: 1px solid rgba(124, 196, 255, 0.14);
  box-shadow: 0 12px 40px rgba(5, 15, 35, 0.4);
}

.service-panel p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--muted);
}

.service-panel strong {
  color: var(--accent);
  font-weight: 600;
}

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

.service-panel a:hover,
.service-panel a:focus-visible {
  text-decoration: underline;
}

.service-page .service-back {
  margin-top: 2.5rem;
}

/* Areas we cover — Google Map embed */
.areas-map-block {
  margin: 2.25rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(91, 163, 224, 0.1);
}

.areas-map-block h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}

.areas-map-lead {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.areas-map-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(91, 163, 224, 0.18);
  aspect-ratio: 16 / 10;
  min-height: 220px;
  max-height: min(52vh, 520px);
  background: var(--blue-900);
  box-shadow: 0 12px 40px rgba(5, 15, 35, 0.35);
}

.areas-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.areas-map-foot {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.areas-map-foot a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.areas-map-foot a:hover,
.areas-map-foot a:focus-visible {
  text-decoration: underline;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

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

.card {
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: rgba(21, 50, 94, 0.35);
  border: 1px solid rgba(91, 163, 224, 0.14);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card--media {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-media {
  position: relative;
  width: 100%;
  height: clamp(118px, 22vw, 158px);
  max-height: 158px;
  overflow: hidden;
  background: rgba(10, 22, 40, 0.6);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 22, 40, 0.45) 100%);
  pointer-events: none;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-content {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: rgba(124, 196, 255, 0.28);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
}

.card-title-link {
  color: inherit;
  text-decoration: none;
}

.card-title-link:hover,
.card-title-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.card p.card-more {
  margin-top: 1rem;
  margin-bottom: 0;
}

.card-more .btn {
  width: fit-content;
}

/* Split / panel */

.split {
  display: grid;
  grid-template-columns: 1fr min(340px, 100%);
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.ticks {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue-500);
  box-shadow: 0 0 0 2px rgba(91, 163, 224, 0.25);
}

.panel {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--blue-800), var(--blue-900));
  border: 1px solid rgba(124, 196, 255, 0.2);
}

.about-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.about-profile {
  margin: 0;
  width: min(220px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(124, 196, 255, 0.6);
  box-shadow: 0 14px 28px rgba(7, 16, 33, 0.45);
}

.about-profile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-me-grid {
  display: grid;
  grid-template-columns: min(320px, 100%) 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1.25rem;
}

.about-profile--feature {
  width: min(240px, 100%);
  border-width: 4px;
}

.about-me-copy p {
  margin: 0 0 0.9rem;
}

.about-me-copy p:last-child {
  margin-bottom: 0;
}

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

  .about-profile--feature {
    margin-inline: auto;
  }
}

.panel blockquote {
  margin: 0;
}

.panel blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--blue-50);
}

.panel-note {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.about-panel-social {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Steps */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  max-width: 720px;
  margin-inline: auto;
}

.steps > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(21, 50, 94, 0.28);
  border: 1px solid rgba(91, 163, 224, 0.12);
}

.step-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--white);
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Gallery */

.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-home-more {
  margin: 1.75rem 0 0;
  text-align: center;
}

.gallery-item {
  margin: 0;
}

.gallery-card {
  position: relative;
  margin: 0;
  height: 100%;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(21, 50, 94, 0.45);
  border: 1px solid rgba(91, 163, 224, 0.16);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

button.gallery-card {
  display: block;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: zoom-in;
  -webkit-appearance: none;
  appearance: none;
}

.gallery-card:hover {
  border-color: rgba(124, 196, 255, 0.3);
  box-shadow: 0 28px 56px rgba(5, 15, 35, 0.55);
}

.gallery-card:focus-within {
  border-color: rgba(124, 196, 255, 0.45);
  outline: none;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .gallery-card img {
    transition: none;
  }

  .gallery-card:hover img {
    transform: none;
  }
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 2.25rem 1rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(250, 251, 255, 0.96);
  background: linear-gradient(to top, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.45) 55%, transparent 100%);
  pointer-events: none;
}

.gallery-caption-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(216, 230, 245, 0.85);
}

/* CTA */

.cta-band {
  position: relative;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  background-color: var(--blue-950);
  background-image: url("../assets/flat.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: 1px solid rgba(124, 196, 255, 0.15);
}

/* Separate overlay avoids subpixel gaps between stacked background layers at the top edge */
.cta-band::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -3px;
  right: -3px;
  top: -3px;
  bottom: -3px;
  background-image:
    linear-gradient(
      135deg,
      rgba(10, 22, 40, 0.92) 0%,
      rgba(15, 34, 64, 0.88) 45%,
      rgba(10, 22, 40, 0.93) 100%
    ),
    radial-gradient(ellipse 90% 100% at 80% 40%, rgba(91, 163, 224, 0.12), transparent 55%);
  background-size: 100% 100%, 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.cta-band > .wrap {
  position: relative;
  z-index: 1;
}

.cta-inner {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.cta-inner h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2rem);
  color: var(--white);
}

.cta-response-time {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(216, 230, 245, 0.88);
}

.cta-response-time strong {
  color: var(--accent);
  font-weight: 600;
}

.quote-form {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.quote-form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.quote-form-grid {
  display: grid;
  gap: 1rem 1rem;
}

@media (min-width: 520px) {
  .quote-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quote-field-full {
    grid-column: 1 / -1;
  }
}

.quote-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(232, 242, 252, 0.95);
}

.quote-field .req {
  color: var(--accent);
  font-weight: 700;
}

.quote-field .optional {
  font-weight: 500;
  color: rgba(138, 163, 192, 0.9);
}

.quote-field input,
.quote-field select,
.quote-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--white);
  background: rgba(10, 22, 40, 0.65);
  border: 1px solid rgba(124, 196, 255, 0.28);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quote-field input::placeholder,
.quote-field textarea::placeholder {
  color: rgba(138, 163, 192, 0.65);
}

.quote-field input:focus-visible,
.quote-field select:focus-visible,
.quote-field textarea:focus-visible {
  outline: none;
  border-color: rgba(124, 196, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(91, 163, 224, 0.25);
}

.quote-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%238aa3c0'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  padding-right: 2.25rem;
}

.quote-field textarea {
  resize: vertical;
  min-height: 7rem;
}

.quote-form-actions {
  margin-top: 1.25rem;
}

.quote-form-actions .btn {
  width: 100%;
}

.quote-form-status {
  margin: 1rem 0 0;
  min-height: 1.35em;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(216, 230, 245, 0.9);
}

.quote-form-status--ok {
  color: rgba(180, 230, 200, 0.95);
}

.quote-form-status--error {
  color: #ffb4b4;
}

.quote-form-status--info {
  color: rgba(216, 230, 245, 0.88);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.cta-band .btn-primary {
  color: var(--blue-950);
}

.cta-band .btn-ghost {
  background: rgba(10, 22, 40, 0.35);
}

.cta-sub {
  margin: 1.25rem auto 0;
  font-size: 0.9375rem;
  color: rgba(216, 230, 245, 0.75);
  max-width: 28rem;
}

.cta-contact-lead {
  margin: 0 auto 1.5rem;
  max-width: 26rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.cta-contact-lead a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.cta-contact-lead a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(91, 163, 224, 0.1);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

/* Simple footer line on pages without full contact block (e.g. job.html) */
.footer-meta {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-contact {
  margin: 0 auto 1.5rem;
  max-width: min(72rem, 100%);
}

.footer-contact-title {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-contact-list {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.1rem;
  max-width: 22rem;
}

.footer-contact-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  gap: 0.75rem;
  width: 100%;
}

.footer-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  background: rgba(91, 163, 224, 0.12);
  color: var(--accent);
}

.footer-contact-icon svg {
  display: block;
}

.footer-contact-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
}

.footer-contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(216, 230, 245, 0.65);
}

.footer-contact-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  word-break: break-word;
}

a.footer-contact-value:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-contact-value--static {
  font-weight: 500;
  line-height: 1.4;
  color: rgba(250, 251, 255, 0.88);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin: 0 0 1.1rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(91, 163, 224, 0.1);
  border: 1px solid rgba(91, 163, 224, 0.22);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: var(--white);
  background: rgba(91, 163, 224, 0.22);
  border-color: rgba(124, 196, 255, 0.4);
  transform: translateY(-1px);
  outline: none;
}

.footer-social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer-social-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(138, 163, 192, 0.7);
}

.footer-meta a {
  color: var(--accent);
  text-decoration: none;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  text-decoration: underline;
}

/* Gallery links (home) */

.gallery-card-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: inherit;
}

.gallery-card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.gallery-placeholder {
  grid-column: 1 / -1;
}

.gallery-placeholder-text,
.gallery-message-text {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.gallery-message-text code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(10, 22, 40, 0.6);
  color: var(--accent);
}

/* Gallery lightbox (folder gallery on home + gallery page) */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 2rem);
  box-sizing: border-box;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  background: rgba(5, 10, 22, 0.88);
  cursor: pointer;
}

.gallery-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1680px);
  max-height: 92vh;
  margin: 0;
}

.gallery-lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(124, 196, 255, 0.35);
  border-radius: 50%;
  background: rgba(15, 28, 52, 0.95);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transform: translate(25%, -25%);
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible {
  background: rgba(91, 163, 224, 0.35);
  border-color: rgba(124, 196, 255, 0.55);
  outline: none;
}

.gallery-lightbox__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gallery-lightbox__close-x {
  display: block;
  margin-top: -0.1em;
}

.gallery-lightbox__img {
  display: block;
  max-width: min(96vw, 1680px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

@media (max-width: 600px) {
  .gallery-lightbox__close {
    top: 0.35rem;
    right: 0.35rem;
    transform: none;
  }
}

/* Job detail page */

.job-hero {
  padding-top: clamp(2rem, 5vw, 3rem);
}

.job-back {
  margin: 0 0 1rem;
}

.job-back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.job-back-link:hover,
.job-back-link:focus-visible {
  text-decoration: underline;
}

.job-back-sep {
  color: var(--muted);
  user-select: none;
}

.job-head h1 {
  margin-bottom: 0.35rem;
}

.job-summary {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1rem;
}

.job-status {
  margin: 0 0 1rem;
  color: var(--muted);
}

.job-gallery {
  margin-top: 0.5rem;
}

.job-photo-card {
  cursor: default;
}

/* Admin */

.admin-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header-inner--admin {
  justify-content: space-between;
  align-items: center;
}
.admin-header .header-inner--admin {
  flex-wrap: wrap;
  row-gap: 0.5rem;
}

.admin-header-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.admin-hub-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 22, 40, 0.35);
  backdrop-filter: blur(8px);
}

.admin-hub-nav[hidden] {
  display: none !important;
}

.admin-hub-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.65rem clamp(1rem, 4vw, 1.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.admin-hub-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
}

@media (min-width: 640px) {
  .admin-hub-label {
    width: auto;
    margin-right: 0.25rem;
  }
}

.admin-hub-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.admin-hub-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.admin-hub-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.admin-hub-link--current {
  color: var(--accent);
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
}

.admin-main {
  flex: 1;
  padding: clamp(2rem, 5vw, 3rem) 0 3rem;
}

.admin-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--white);
  margin: 0 0 0.5rem;
}

.admin-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.6;
}

.admin-code {
  font-size: 0.9em;
  padding: 0.15em 0.45em;
  border-radius: 6px;
  background: rgba(10, 22, 40, 0.75);
  color: var(--accent);
}

.admin-panel {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(91, 163, 224, 0.15);
  background: rgba(15, 34, 64, 0.45);
}

.admin-h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--white);
}

.admin-h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.admin-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.admin-field {
  margin-bottom: 1rem;
}

.admin-input,
.admin-textarea {
  width: 100%;
  max-width: 32rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(91, 163, 224, 0.25);
  background: rgba(10, 22, 40, 0.65);
  color: var(--text);
  font: inherit;
}

.admin-input:focus-visible,
.admin-textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.admin-textarea {
  resize: vertical;
  min-height: 3rem;
}

.admin-hint {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-jobs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-job {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(91, 163, 224, 0.12);
}

.admin-job:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.admin-job-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--white);
}

.admin-job-slug {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  word-break: break-all;
}

.admin-edit {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-edit .admin-label {
  margin-bottom: 0;
}

.admin-upload,
.admin-url-form {
  margin: 0.75rem 0;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 22, 40, 0.4);
  border: 1px dashed rgba(91, 163, 224, 0.2);
}

.admin-or {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.admin-file {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.admin-image-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.admin-image-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(91, 163, 224, 0.08);
}

.admin-image-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(10, 22, 40, 0.6);
}

.admin-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-image-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.admin-image-url {
  font-size: 0.75rem;
  color: rgba(216, 230, 245, 0.75);
  word-break: break-all;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.admin-footer .footer-copy {
  margin: 0;
}

.admin-footer .footer-copy a {
  color: var(--accent);
  text-decoration: none;
}

.admin-footer .footer-copy a:hover,
.admin-footer .footer-copy a:focus-visible {
  text-decoration: underline;
}

.admin-file-warning {
  max-width: 40rem;
  line-height: 1.6;
}

.admin-advanced {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(91, 163, 224, 0.12);
}

.admin-advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.admin-advanced summary:hover {
  color: var(--white);
}

.admin-login-error {
  color: #f0a8a8;
  margin-top: 0.75rem;
}

.admin-job-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-job-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(91, 163, 224, 0.12);
}

.admin-job-row:last-child {
  border-bottom: none;
}

.admin-job-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  min-width: 0;
  flex: 1;
}

.admin-job-row-title {
  font-weight: 600;
  color: var(--white);
}

.admin-job-row-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.admin-job-row-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-job-danger {
  border-color: rgba(220, 100, 100, 0.35);
}

.crm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.crm-tab-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(91, 163, 224, 0.35);
  background: rgba(10, 22, 40, 0.5);
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.crm-tab-btn:hover,
.crm-tab-btn:focus-visible {
  color: var(--text);
  border-color: rgba(91, 163, 224, 0.55);
}

.crm-tab-active {
  color: var(--white);
  background: rgba(91, 163, 224, 0.2);
  border-color: var(--accent);
}

.crm-panel {
  margin-bottom: 2rem;
}

.crm-subh {
  margin: 1.25rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.crm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.crm-select {
  min-width: 14rem;
  max-width: 100%;
}

.crm-line-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.9rem;
}

.crm-line-table th,
.crm-line-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid rgba(91, 163, 224, 0.12);
  vertical-align: middle;
}

.crm-line-table th:nth-child(1),
.crm-line-table td:nth-child(1) {
  min-width: 0;
}

.crm-line-table th:nth-child(2),
.crm-line-table td:nth-child(2) {
  width: 4.75rem;
}

.crm-line-table th:nth-child(3),
.crm-line-table td:nth-child(3) {
  width: 6.5rem;
}

.crm-line-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
}

.crm-line-table .admin-input {
  max-width: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
}

.crm-line-table td:last-child {
  width: 3rem;
  text-align: center;
}

.crm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.crm-client-alpha {
  margin-bottom: 0.5rem;
}

.crm-client-alpha[hidden] {
  display: none !important;
}

.crm-client-alpha-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.4rem 0.15rem 0.75rem;
  margin: 0 -0.15rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 163, 224, 0.35) transparent;
}

.crm-client-alpha-inner::-webkit-scrollbar {
  height: 6px;
}

.crm-client-alpha-inner::-webkit-scrollbar-thumb {
  background: rgba(91, 163, 224, 0.35);
  border-radius: 999px;
}

.crm-client-alpha-btn {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 2.1rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted);
  background: rgba(10, 22, 40, 0.45);
  border: 1px solid rgba(91, 163, 224, 0.2);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.crm-client-alpha-btn:hover:not(:disabled) {
  color: var(--white);
  border-color: rgba(124, 196, 255, 0.4);
  background: rgba(21, 50, 94, 0.5);
}

.crm-client-alpha-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.crm-client-alpha-btn--active {
  color: var(--accent);
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.12);
}

.crm-client-alpha-btn--empty {
  opacity: 0.35;
  cursor: not-allowed;
}

.crm-client-alpha-btn--hash {
  min-width: 2.35rem;
  font-size: 0.9rem;
}

.crm-clients-header {
  margin-bottom: 1.25rem;
}

.crm-clients-title {
  margin-bottom: 0.35rem;
}

.crm-clients-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.crm-clients-empty {
  margin-bottom: 1.75rem;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(91, 163, 224, 0.28);
  background: rgba(10, 22, 40, 0.25);
  text-align: center;
}

.crm-clients-empty-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.crm-clients-empty-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.crm-client-cards {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: 1rem;
}

.crm-client-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid rgba(91, 163, 224, 0.18);
  background: linear-gradient(145deg, rgba(21, 50, 94, 0.42) 0%, rgba(10, 22, 40, 0.45) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.crm-client-card:hover {
  border-color: rgba(124, 196, 255, 0.32);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.crm-client-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.crm-client-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

.crm-client-card-title {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.crm-client-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  word-wrap: break-word;
}

.crm-client-company {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.35;
}

.crm-client-contact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.crm-client-field {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  gap: 0.5rem 0.65rem;
  align-items: baseline;
  font-size: 0.88rem;
}

.crm-client-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(180, 200, 220, 0.65);
}

.crm-client-value {
  color: var(--muted);
  word-break: break-word;
}

a.crm-client-link {
  color: rgba(160, 210, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 196, 255, 0.25);
  transition: color 0.15s ease, border-color 0.15s ease;
}

a.crm-client-link:hover {
  color: var(--white);
  border-bottom-color: rgba(212, 175, 55, 0.55);
}

.crm-client-address {
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(91, 163, 224, 0.12);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.crm-client-address .crm-client-label {
  display: block;
  margin-bottom: 0.35rem;
}

.crm-client-address-text {
  display: block;
  color: rgba(220, 228, 240, 0.88);
}

.crm-client-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(91, 163, 224, 0.12);
}

.crm-client-actions .btn {
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 7.25rem;
  justify-content: center;
}

@media (max-width: 360px) {
  .crm-client-actions .btn {
    flex: 1 1 100%;
  }
}

.crm-muted {
  font-size: 0.85rem;
  color: var(--muted);
}

.crm-clients-wrap {
  margin-bottom: 1.5rem;
}

.crm-client-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
