:root {
  /* Cool slate base — “tech shop” / clean lab aesthetic with teal brand accents */
  --bg: #eef2f6;
  --bg-surface: #f8fafc;
  --bg-elevated: #ffffff;
  --text: #142028;
  --text-muted: #5a6d7d;
  --accent: #3b82f6;
  --accent-dim: #1d4ed8;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --border: rgba(20, 32, 40, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 7px rgba(20, 32, 40, 0.035);
  --shadow-md: 0 7px 24px rgba(20, 32, 40, 0.06);
  --shadow-lg: 0 16px 40px rgba(20, 32, 40, 0.085);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 112px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 70% at 50% -15%, rgba(59, 130, 246, 0.07), transparent 52%),
    radial-gradient(ellipse 55% 42% at 100% 25%, rgba(59, 130, 246, 0.05), transparent),
    radial-gradient(ellipse 50% 38% at 0% 75%, rgba(100, 116, 139, 0.06), transparent),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(37, 99, 235, 0.22);
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

h2.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
}

#services .section-title,
#gallery .section-title,
#process .section-title,
#contact .section-title,
.testimonials-section .section-title {
  position: relative;
  display: inline-block;
  color: #1e3a8a;
}

#services .section-title::after,
#gallery .section-title::after,
#process .section-title::after,
#contact .section-title::after,
.testimonials-section .section-title::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 4px;
  margin-top: 0.65rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #1d4ed8, rgba(59, 130, 246, 0.25));
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-dim);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

/* Logo image (cm_logo.png): keep aspect ratio; cap height for header */
.logo-image {
  display: block;
  flex-shrink: 0;
  width: auto;
  max-width: min(520px, 92vw);
  height: auto;
  max-height: clamp(4.45rem, 13.6vh, 6.45rem);
  object-fit: contain;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease-out);
  position: relative;
}

.site-nav a:hover {
  color: var(--accent-dim);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
  opacity: 0.85;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .site-nav a::after {
    display: none;
  }
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

@media (max-width: 768px) {
  :root {
    --header-h: 96px;
  }

  .logo-image {
    max-width: min(440px, 86vw);
    max-height: clamp(3.6rem, 10vh, 5.1rem);
  }

  .header-cta,
  .hero-actions .btn-primary {
    padding: 0.5rem 0.9rem;
    font-size: 0.84rem;
  }

  /* Mobile: show nav as its own “tab row” under logo */
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.35rem 0 0.6rem;
  }

  .logo {
    order: 1;
  }

  .header-cta {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    inset: auto;
    background: transparent;
    border: 0;
    padding: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    transition: none;
    width: 100%;
    order: 3;
    margin-left: 0;
  }

  .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem 0.6rem;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    padding: 0.2rem 0 0.35rem;
    scrollbar-width: none;
  }

  .site-nav ul::-webkit-scrollbar {
    display: none;
    height: 0;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.06);
  }
}

@media (max-width: 520px) {
  :root {
    --header-h: 88px;
  }

  .logo-image {
    max-width: min(420px, 84vw);
    max-height: clamp(3.25rem, 9.2vh, 4.75rem);
  }

  .site-nav a {
    padding: 0.42rem 0.62rem;
    font-size: 0.92rem;
  }
}

@media (min-width: 769px) {
  .header-cta {
    display: inline-flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.56rem 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    color 0.22s var(--ease-out),
    transform 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}

/* Keep header and hero primary actions visually identical */
.header-cta,
.hero-actions .btn-primary {
  padding: 0.56rem 1.05rem;
  font-size: 0.88rem;
  border-radius: 999px;
  min-width: 10rem;
  text-align: center;
}

.btn-primary {
  color: #eaf2ff;
  background: linear-gradient(145deg, #1e3a8a 0%, #1d4ed8 100%);
  border-color: rgba(147, 197, 253, 0.32);
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 -1px 0 rgba(15, 23, 42, 0.25) inset,
    0 6px 16px rgba(30, 64, 175, 0.32);
}

.btn-primary:hover {
  background: linear-gradient(145deg, #1e40af 0%, #2563eb 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 -1px 0 rgba(15, 23, 42, 0.25) inset,
    0 12px 26px rgba(30, 58, 138, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: linear-gradient(145deg, #f8fbff 0%, #e6f0ff 100%);
  border-color: rgba(59, 130, 246, 0.24);
  color: #1e3a8a;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 3px 12px rgba(59, 130, 246, 0.18);
}

.btn-ghost:hover {
  border-color: rgba(59, 130, 246, 0.32);
  color: #1e3a8a;
  background: linear-gradient(145deg, #ffffff 0%, #e8f1ff 60%, #cfe3ff 100%);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 24px rgba(30, 58, 138, 0.24);
}

.btn-block {
  width: 100%;
}

.hero {
  padding: 3.75rem 0 4.5rem;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  background:
    radial-gradient(ellipse 90% 65% at 75% 15%, rgba(59, 130, 246, 0.12), transparent 58%),
    radial-gradient(ellipse 52% 48% at 8% 85%, rgba(59, 130, 246, 0.045), transparent),
    linear-gradient(180deg, var(--bg-surface) 0%, var(--bg) 48%, #e2e8f0 100%);
}

@media (max-width: 520px) {
  .hero {
    padding: 2.1rem 0 3.2rem;
  }

  .hero-grid {
    align-items: start;
    gap: 2.1rem;
  }

  .hero-copy {
    overflow: visible;
  }

  .eyebrow {
    margin-bottom: 0.85rem;
  }

  .hero-copy h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 7.2vw, 2.65rem);
  }

  .lead {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
  }

  .hero-actions {
    margin: 1.05rem 0;
    gap: 0.6rem;
  }

  .trust-row {
    margin-top: 0.25rem;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  letter-spacing: -0.035em;
  color: #1e3a8a;
}

.hero-headline-accent {
  color: #1e3a8a;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr minmax(320px, 540px);
  }
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

@media (max-width: 899px) {
  /* When hero-grid stacks (mobile), add spacing so the photo-strip arrows
     don't visually overlap the highlight bullets above. */
  .hero-aside {
    margin-top: 1.25rem;
  }
}

.hero-gallery-head {
  margin: 0;
}

.hero-gallery-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.35rem;
  color: var(--text);
}

.hero-gallery-lead {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero-photo-strip {
  position: relative;
  overflow: visible;
}

.photo-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition:
    transform 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    opacity 0.2s var(--ease-out);
}

.photo-scroll-btn:hover {
  transform: translateY(-50%) scale(1.03);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: var(--shadow-md);
}

.photo-scroll-btn:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: var(--shadow-sm);
}

.photo-scroll-btn span {
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 800;
}

.photo-scroll-btn--left {
  left: calc(0.25rem + env(safe-area-inset-left, 0px));
}

.photo-scroll-btn--right {
  right: calc(0.25rem + env(safe-area-inset-right, 0px));
}

.hero-photo-strip .hero-photo-scroll {
  padding-left: 2.9rem;
  padding-right: 2.9rem;
}

@media (max-width: 520px) {
  .hero-photo-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.55rem 0.75rem;
    align-items: center;
  }

  .photo-scroll-btn {
    position: static;
    width: 40px;
    height: 40px;
    transform: none;
    justify-self: center;
  }

  .photo-scroll-btn span {
    font-size: 1.35rem;
  }

  .photo-scroll-btn--left {
    grid-column: 1;
    grid-row: 2;
    left: auto;
    right: auto;
  }

  .photo-scroll-btn--right {
    grid-column: 2;
    grid-row: 2;
    left: auto;
    right: auto;
  }

  .hero-photo-strip .hero-photo-scroll {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0.6rem;
  }

  /* If arrows are hard on some mobiles, show a thin scrollbar too */
  .hero-photo-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 99, 235, 0.38) transparent;
  }

  .hero-photo-scroll::-webkit-scrollbar {
    display: block;
    height: 8px;
  }

  .hero-photo-scroll::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.32);
    border-radius: 999px;
  }
}

.hero-photo-scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding-bottom: 0.6rem;
  margin: 0 -0.15rem;
  outline: none;
  scrollbar-color: transparent transparent;
  scrollbar-width: none;
}

.hero-photo-scroll:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  border-radius: var(--radius);
}

.hero-photo-scroll::-webkit-scrollbar {
  display: none;
  height: 0;
}

.hero-photo-scroll::-webkit-scrollbar-thumb {
  background: rgba(20, 32, 40, 0.22);
  border-radius: 999px;
}

.hero-photo-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 0.15rem 2px 2px;
}

.hero-photo-slide {
  flex: 0 0 auto;
  width: min(22rem, 92vw);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.hero-photo-slide:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.photo-card.hero-photo-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 20rem;
  object-fit: cover;
  object-position: center;
  display: block;
}

.eyebrow {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem 0.4rem;
  max-width: 100%;
  margin: 0 0 1.15rem;
  padding: 0;
  font-family: var(--font-display);
  line-height: 1.2;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.eyebrow-chip {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: inline-block;
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #eaf2ff;
  border-radius: 999px;
  background: linear-gradient(145deg, #1e3a8a 0%, #1d4ed8 100%);
  border: 2px solid rgba(147, 197, 253, 0.32);
  text-shadow: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 -1px 0 rgba(15, 23, 42, 0.25) inset,
    0 6px 16px rgba(30, 64, 175, 0.32);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), filter 0.22s var(--ease-out);
}

.eyebrow-chip {
  text-decoration: none;
}

.eyebrow-chip::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.eyebrow-chip:visited {
  color: #eaf2ff;
  text-decoration: none;
}

.eyebrow-chip:active {
  color: #eaf2ff;
  text-decoration: none;
  transform: translateY(0);
  filter: brightness(0.98) saturate(0.98);
}

.eyebrow-chip:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(248, 250, 252, 0.9),
    0 0 0 4px rgba(30, 58, 138, 0.35);
}

@media (hover: hover) {
  .eyebrow-chip:hover {
    transform: translateY(-2px);
    filter: brightness(1.08) saturate(1.08);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.3) inset,
      0 -1px 0 rgba(15, 23, 42, 0.25) inset,
      0 12px 26px rgba(30, 58, 138, 0.35);
  }
}

.trust-strip-highlight {
  display: inline-block;
  padding: 0.05rem 0 0.18rem;
  margin-right: 0;
  border-radius: 0;
  background: transparent;
  border-left: 0;
  color: #0b3b8b;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.015em;
  font-size: 1rem;
  text-shadow: none;
  text-transform: none;
  box-shadow: none;
  border-bottom: 2px solid rgba(59, 130, 246, 0.35);
}

@media (max-width: 520px) {
  .eyebrow {
    padding: 0.5rem 0.55rem;
    gap: 0.3rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .eyebrow::-webkit-scrollbar {
    height: 6px;
  }

  .eyebrow-chip {
    padding: 0.44rem 0.76rem;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
  }

}

@media (max-width: 380px) {
  .eyebrow-chip {
    padding: 0.38rem 0.64rem;
    font-size: 0.72rem;
  }
}

.lead {
  font-size: 1.14rem;
  color: #1f2937;
  font-weight: 500;
  max-width: 36rem;
  line-height: 1.72;
  letter-spacing: 0.002em;
}

.lead-strong {
  color: #0f2f73;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(30, 58, 138, 0.4);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.trust-row {
  list-style: none;
  margin: 0.95rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem 0.7rem;
  align-items: start;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 100%;
}

.trust-row li {
  position: relative;
  padding: 0.1rem 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #1e3a8a;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
}

.trust-row li::before {
  content: "✓";
  position: static;
  transform: none;
  color: #2563eb;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1;
  flex-shrink: 0;
}

.trust-row li:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .trust-row li:hover {
    transform: none;
  }
}

@media (max-width: 520px) {
  .trust-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    font-size: 0.86rem;
    max-width: 100%;
  }

  .trust-row li {
    padding: 0.1rem 0;
    display: flex;
    width: 100%;
    white-space: normal;
  }
}

.hero-stat-block {
  margin-top: 1.5rem;
  max-width: 36rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset,
    0 10px 40px rgba(37, 99, 235, 0.06);
  padding: 0.85rem 1.05rem;
  overflow: visible;
}

.hero-stat-block-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

@media (max-width: 520px) {
  .hero-stat-block {
    padding: 0.85rem 1rem;
  }

  .hero-stat-block-inner {
    align-items: flex-start;
    gap: 0.5rem 0.9rem;
  }

  .hero-stat-block .hero-stat {
    font-size: clamp(1.9rem, 9vw, 2.45rem);
    line-height: 1.05;
  }

  .hero-stat-block .hero-stat-label {
    font-size: 0.88rem;
  }
}

.hero-stat {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, #0b3b8b 0%, #1d4ed8 42%, #60a5fa 98%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .hero-stat {
    color: #1d4ed8;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
  }
}

.hero-stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 12rem;
  margin: 0.75rem auto 0;
  display: block;
}

.hero-stat-block .hero-stat {
  font-size: clamp(1.95rem, 4.2vw, 2.7rem);
  flex-shrink: 0;
}

.hero-stat-block .hero-stat-label {
  margin: 0;
  max-width: none;
  text-align: left;
  flex: 1 1 14rem;
  line-height: 1.4;
  font-size: 0.92rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-elevated) 32%, #f1f5f9 100%);
  border-block: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.section-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 40rem;
}

.photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.photo-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.photo-card.hero-photo-slide {
  box-shadow: var(--shadow-md);
}

.photo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 800;
  object-fit: cover;
  object-position: center;
  display: block;
}

.photo-caption {
  padding: 0.75rem 1rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin: 0;
}

.service-block:not(:first-of-type) {
  margin-top: 2.75rem;
}

.service-block .subsection-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 0.56rem 1.05rem;
  border-radius: 999px;
  margin: 0 0 1.25rem;
  color: #eaf2ff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  background: linear-gradient(145deg, #1e3a8a 0%, #1d4ed8 100%);
  border: 1px solid rgba(147, 197, 253, 0.32);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 -1px 0 rgba(15, 23, 42, 0.25) inset,
    0 4px 12px rgba(30, 64, 175, 0.24);
}

.service-block .subsection-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(226, 232, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(191, 219, 254, 0.3);
}

.subsection-title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

@media (max-width: 520px) {
  .service-block .subsection-title {
    padding: 0.5rem 0.85rem;
    gap: 0.45rem;
    line-height: 1.25;
  }

  .service-block .subsection-title::before {
    width: 7px;
    height: 7px;
  }

  .subsection-title {
    font-size: 1.02rem;
  }
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: var(--shadow-md);
}

.card h3 {
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 640px;
}

.steps > li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: var(--accent-dim);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.steps p {
  color: var(--text-muted);
  margin: 0;
}

.contact-section {
  padding-bottom: 5rem;
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.address-block {
  font-style: normal;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.hours {
  display: inline-block;
  color: #0f2f73;
  font-weight: 800;
  background: linear-gradient(145deg, #f8fbff 0%, #e8f1ff 100%);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-left: 4px solid #1d4ed8;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 18px rgba(30, 58, 138, 0.12);
}

.link-tel,
.link-mail,
.link-maps {
  color: #0f2f73;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.link-tel:hover,
.link-mail:hover,
.link-maps:hover {
  color: #1d4ed8;
}

.prep-card {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.prep-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: #1e3a8a;
}

.prep-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.prep-card li {
  margin-bottom: 0.3rem;
}

.prep-card li:last-child {
  margin-bottom: 0;
}

.contact-card {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-md);
}

.contact-card h3 {
  margin-bottom: 0.5rem;
}

.hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.form-status {
  font-size: 0.9rem;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  line-height: 1.45;
}

.form-status--ok {
  color: var(--accent-dim);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.form-status--error {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.6);
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.testimonials-section .section-intro {
  margin-bottom: 1.4rem;
}

.testimonials-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1rem 0.9rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-quote {
  margin: 0 0 0.75rem;
  color: var(--text);
}

.testimonial-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, var(--bg) 100%);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #1e3a8a;
}

.footer-brand {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover,
  .btn-ghost:hover,
  .card:hover,
  .hero-photo-slide:hover,
  .eyebrow-chip:hover {
    transform: none;
  }
}
