/* Ironbo Inc. — Design System (Architectural Blueprint, retinted) */

/* ─── HTMX Transitions ─── */
body.htmx-settling { opacity: 0; }
body {
  transition: opacity 0.25s ease;
  background: var(--surface);
  color: var(--on-surface);
}

/* ─── CSS Variables ─── */
:root {
  --surface:            #fafafa;
  --surface-low:        #f3f4f6;
  --surface-lowest:     #ffffff;
  --surface-container:  #eceef1;
  --surface-high:       #e4e6ea;
  --surface-highest:    #dddfe4;
  --surface-bright:     rgba(250, 250, 250, 0.82);

  --primary:            #243551;
  --primary-container:  #2f4568;
  --primary-dark:       #1a2740;
  --secondary:          #4a6a8a;
  --tertiary:           #243551;

  --on-surface:         #1b1b21;
  --on-surface-variant: #46464f;
  --on-surface-muted:   #76757e;
  --on-primary:         #ffffff;
  --outline-variant:    rgba(198, 197, 212, 0.22);

  --shadow-sm: 0px 12px 32px rgba(27, 27, 33, 0.06);
  --shadow-md: 0px 12px 32px rgba(27, 27, 33, 0.11);
}

/* ─── Navigation ─── */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-bright);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-link {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-link:hover,
.nav-link.active { color: var(--primary); }

/* ─── Buttons ─── */

/* Nav / secondary action button — blue gradient */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  color: var(--on-primary);
  font-weight: 700;
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  border-radius: 0.375rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary) 0%, #2f4568 100%);
  box-shadow: 0 4px 24px rgba(74, 106, 138, 0.28);
  transform: translateY(-1px);
}

/* Conversion CTA — tertiary red ("Request Service" only) */
.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--tertiary) 0%, #1a2740 100%);
  color: var(--on-primary);
  font-weight: 700;
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  border-radius: 0.375rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-cta:hover {
  background: linear-gradient(135deg, var(--secondary) 0%, #2f4568 100%);
  box-shadow: 0 4px 24px rgba(74, 106, 138, 0.28);
  transform: translateY(-1px);
}

/* Ghost — for dark backgrounds */
.btn-ghost {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.32);
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  border-radius: 0.375rem;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.65);
  transform: translateY(-1px);
}

/* Outline — for light backgrounds */
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  border-radius: 0.375rem;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline:hover {
  background: rgba(74, 106, 138, 0.06);
  transform: translateY(-1px);
}

/* ─── Labels ─── */
.overline-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.85rem;
}

.overline-label-light {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  margin-bottom: 0.85rem;
}

/* Shared type scale — keep sizes out of inline styles */
.h-page {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
}
.h-section {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--on-surface);
  line-height: 1.1;
}
.h-cta {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
}
.stat-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ─── Hero (full height, dark blue) ─── */
.hero-section {
  position: relative;
  background: var(--primary);
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-inner { padding-top: 7rem; padding-bottom: 7rem; }
.hero-copy { max-width: min(52%, 680px); }
.hero-logo {
  height: clamp(4rem, 7vw, 5.5rem);
  width: auto;
  filter: drop-shadow(0 6px 28px rgba(0,0,0,0.35));
  margin-bottom: 1.25rem;
  display: block;
}
.hero-slogan {
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  color: #ffffff;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2.75rem;
}
.hero-lead {
  color: rgba(255,255,255,0.62);
  font-size: 1.125rem;
  max-width: 32rem;
  margin-bottom: 2.5rem;
  line-height: 1.625;
}
.hero-actions .btn-cta,
.hero-actions .btn-ghost {
  font-size: 0.85rem;
  padding: 0.875rem 2rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3.5rem;
}
.hero-stat-num {
  font-size: 2.75rem;
  color: #ffffff;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
  color: rgba(255,255,255,0.42);
}

/* Blueprint grid overlay */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 85% 90% at 20% 50%, black 10%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 90% at 20% 50%, black 10%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -8%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at 65% 40%, rgba(74, 106, 138, 0.38) 0%, transparent 68%);
  pointer-events: none;
}

/* Right-side hero media panel */
.hero-img-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48%;
  overflow: hidden;
  /* Fade left edge into hero background */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 28%);
  mask-image: linear-gradient(to right, transparent 0%, black 28%);
  z-index: 1;
}
.hero-video,
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}
.hero-logo-plate {
  display: inline-block;
  background: #ffffff;
  padding: 0.7rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.hero-logo-plate img {
  height: clamp(2.4rem, 4.5vw, 3.4rem);
  width: auto;
  display: block;
}
.hero-img-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Primary blue tint to unify media with hero palette */
  background: linear-gradient(to right,
    rgba(36, 53, 81,0.05) 0%,
    rgba(36, 53, 81,0.40) 60%,
    rgba(36, 53, 81,0.55) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Blue-on-Blue stat chip (primary-container on primary background) */
.hero-stat {
  background: rgba(255,255,255,0.07);
  border-radius: 0.375rem;
  padding: 1rem 1.5rem;
}

@media (max-width: 1023px) {
  /* Video fills the hero and reads through the navy — not a separate strip */
  .hero-section {
    height: auto;
    min-height: 0;
    max-height: none;
    align-items: stretch;
  }
  .hero-glow {
    display: none;
  }
  .hero-img-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    -webkit-mask-image: none;
    mask-image: none;
    z-index: 0;
  }
  .hero-video,
  .hero-img {
    opacity: 0.42;
  }
  .hero-img-panel::after {
    background: linear-gradient(
      180deg,
      rgba(36, 53, 81, 0.76) 0%,
      rgba(36, 53, 81, 0.68) 45%,
      rgba(36, 53, 81, 0.80) 100%
    );
  }
  .hero-inner {
    padding-top: 2.25rem;
    padding-bottom: 2.5rem;
  }
  .hero-copy { max-width: none; }
  .hero-slogan,
  .hero-lead {
    text-shadow: 0 1px 16px rgba(36, 53, 81, 0.85);
  }
  .hero-lead {
    color: rgba(255, 255, 255, 0.82);
  }
  .hero-actions .btn-ghost {
    background: rgba(255, 255, 255, 0.16);
    border: 2px solid rgba(255, 255, 255, 0.88);
    color: #ffffff;
    font-weight: 700;
  }
  .hero-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: #ffffff;
  }
  .hero-stat {
    background: rgba(255, 255, 255, 0.16);
    outline: 1px solid rgba(255, 255, 255, 0.28);
    outline-offset: -1px;
  }
  .hero-stat-label {
    color: rgba(255, 255, 255, 0.72);
  }
}

@media (max-width: 640px) {
  .hero-inner {
    padding-top: 1.75rem;
    padding-bottom: 2rem;
  }
  .hero-logo { height: 2.5rem; margin-bottom: 0.625rem; }
  .hero-slogan {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.625rem;
  }
  .hero-lead {
    font-size: 0.875rem;
    margin-bottom: 0.875rem;
    line-height: 1.45;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .hero-actions .btn-cta,
  .hero-actions .btn-ghost {
    text-align: center;
    padding: 0.75rem 1.1rem;
  }
  .cta-section .btn-cta {
    padding: 0.75rem 1.1rem;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    margin-top: 0.875rem;
  }
  .hero-stat {
    padding: 0.625rem 0.75rem;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
  }
  .hero-stat-num { font-size: 1.375rem; }
  .hero-stat-label {
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
    margin-top: 0;
  }
}

/* ─── Interior Page Hero ─── */
.page-hero {
  background: var(--primary);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 65% 80% at 22% 50%, black, transparent);
  mask-image: radial-gradient(ellipse 65% 80% at 22% 50%, black, transparent);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ─── Service Cards (home grid) ─── */
.service-card {
  background: var(--surface-lowest);
  border-radius: 0.375rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid transparent;
  transition: border-top-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.service-card:hover {
  border-top-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px) scale(1.02);
}

.service-icon {
  color: var(--primary);
  width: 46px;
  height: 46px;
  background: rgba(36, 53, 81, 0.07);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ─── Why stat cards ─── */
.why-stat-card {
  background: var(--surface-lowest);
  border-radius: 0.375rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ─── Google reviews ─── */
.reviews-section {
  background: var(--surface-low);
}

.reviews-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
}

.reviews-nav {
  display: flex;
  gap: 0.5rem;
}

.reviews-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(36, 53, 81, 0.18);
  background: var(--surface-lowest);
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.reviews-nav-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.reviews-nav-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: rgba(36, 53, 81, 0.04);
}

.reviews-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-bottom: 2rem;
}

.reviews-score {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.reviews-score-num {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1;
}

.reviews-stars {
  display: inline-flex;
  gap: 0.15rem;
  color: var(--secondary);
}

.reviews-stars svg {
  width: 1.1rem;
  height: 1.1rem;
}

.reviews-meta {
  font-size: 0.85rem;
  color: var(--on-surface-muted);
}

.reviews-meta strong {
  color: var(--on-surface-variant);
  font-weight: 600;
}

.reviews-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
}

.reviews-viewport::-webkit-scrollbar {
  display: none;
}

.reviews-viewport:focus-visible {
  box-shadow: 0 0 0 2px var(--surface-low), 0 0 0 4px var(--secondary);
  border-radius: 0.375rem;
}

.reviews-track {
  display: flex;
  gap: 1.25rem;
  padding: 0.25rem 0.15rem 0.75rem;
}

.review-card {
  background: var(--surface-lowest);
  border-radius: 0.375rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
  flex: 0 0 calc((100% - 2.5rem) / 3);
  min-width: 0;
  scroll-snap-align: start;
  min-height: 17.5rem;
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.reviews-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-top: 0.5rem;
}

.reviews-page {
  margin: 0;
  font-size: 0.8rem;
  color: var(--on-surface-muted);
}

.reviews-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.reviews-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.125rem;
  border: none;
  padding: 0;
  background: rgba(36, 53, 81, 0.18);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.reviews-dot.is-active {
  background: var(--primary);
  transform: scale(1.15);
}

.reviews-dot:hover {
  background: var(--secondary);
}

.review-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.review-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  background: rgba(36, 53, 81, 0.08);
  color: var(--primary);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.review-author {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.review-source {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  margin-top: 0.15rem;
}

.review-source time {
  letter-spacing: 0.04em;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}

.review-quote {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--on-surface-variant);
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  overflow: hidden;
}

.review-card-stars {
  display: inline-flex;
  gap: 0.12rem;
  color: var(--secondary);
}

.review-card-stars svg {
  width: 0.9rem;
  height: 0.9rem;
}

@media (max-width: 900px) {
  .review-card {
    flex-basis: 100%;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .review-card {
    flex-basis: calc((100% - 1.25rem) / 2);
  }
}

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

  .review-card:hover {
    transform: none;
  }
}

/* ─── CTA Strip ─── */
.cta-section {
  background: var(--primary);
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.cta-section .btn-cta {
  font-size: 0.85rem;
  padding: 0.9rem 2.5rem;
}

/* ─── Footer ─── */
.footer-bar {
  background: var(--primary-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}
.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: rgba(255,255,255,0.9); }

.cta-legal {
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  font-size: 0.8rem;
}

.cta-legal a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.cta-legal a:hover {
  color: rgba(255,255,255,0.9);
}

.cta-legal span {
  color: rgba(255,255,255,0.28);
}

/* ─── Legal document pages ─── */
.legal-doc {
  color: var(--on-surface-variant);
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal-doc .legal-updated {
  font-size: 0.85rem;
  color: var(--on-surface-muted);
  margin-bottom: 1.5rem;
}

.legal-doc h2 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin: 2.5rem 0 0.85rem;
}

.legal-doc h3 {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--on-surface);
  margin: 1.75rem 0 0.65rem;
}

.legal-doc p,
.legal-doc ul {
  margin: 0 0 1rem;
}

.legal-doc ul {
  padding-left: 1.25rem;
}

.legal-doc li {
  margin-bottom: 0.45rem;
}

.legal-doc a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc a:hover {
  color: var(--primary);
}

.legal-doc .legal-short {
  color: var(--on-surface-muted);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border-radius: 0.375rem;
  box-shadow: var(--shadow-sm);
  background: var(--surface-lowest);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--surface-high);
}

.legal-table th {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  color: var(--primary);
  background: var(--surface-low);
}

.legal-table td:last-child {
  white-space: nowrap;
  font-weight: 600;
  color: var(--on-surface);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.48);
  transition: color 0.2s;
}
.footer-social:hover { color: rgba(255,255,255,0.9); }
.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

/* ─── Divider rule ─── */
.section-rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--secondary);
  margin-bottom: 1.5rem;
}

/* ─── Services Page Rows ─── */
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
}
.svc-row + .svc-row {
  border-top: 1px solid var(--outline-variant);
}
@media (max-width: 767px) {
  .svc-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }
  .svc-row.reverse .svc-text  { order: unset; }
  .svc-row.reverse .svc-visual { order: unset; }
}
.svc-row.reverse .svc-text  { order: 1; }
.svc-row.reverse .svc-visual { order: 2; }

.svc-visual {
  position: relative;
  isolation: isolate;
  background: var(--primary);
  border-radius: 0.375rem;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.svc-visual img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) contrast(1.1) brightness(0.96);
  transform: scale(1.02);
  transition: filter 0.5s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(165deg,
      rgba(36, 53, 81, 0.40) 0%,
      rgba(74, 106, 138, 0.26) 46%,
      rgba(36, 53, 81, 0.48) 100%
    );
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.svc-visual:hover img {
  filter: saturate(0.7) contrast(1.1) brightness(1);
  transform: scale(1.05);
}
.svc-visual:hover::after {
  opacity: 0.55;
}

.svc-number {
  font-family: 'Manrope', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(36, 53, 81, 0.05);
  margin-bottom: -0.75rem;
}

/* ─── About Page ─── */
.stat-block { text-align: center; }

.cred-card {
  background: var(--surface-lowest);
  border-top: 2px solid var(--secondary);
  border-radius: 0.375rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.value-card {
  background: var(--surface-lowest);
  border-left: 3px solid var(--secondary);
  border-radius: 0 0.375rem 0.375rem 0;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.value-card.navy { border-left-color: var(--primary); }

/* License register — blueprint spec sheet, no sectioning borders */
.license-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .license-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 1.75rem;
  }
}

.license-panel {
  background: var(--primary);
  border-radius: 0.375rem;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow-md);
}

.license-row {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0;
}
.license-row + .license-row {
  background-image: linear-gradient(to right, rgba(255,255,255,0.12), rgba(255,255,255,0.04) 60%, transparent);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: top;
}

.license-id {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.license-name {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.35;
}

.license-states {
  background: var(--surface-lowest);
  border-radius: 0.375rem;
  padding: 2rem 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.license-state-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 1.75rem;
}
@media (min-width: 640px) {
  .license-state-grid { grid-template-columns: 1fr 1fr; }
}

.license-state h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.45rem;
}
.license-state p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--on-surface-variant);
  margin: 0;
}

.partner-badge {
  margin-top: 1.5rem;
  background: var(--surface-lowest);
  border-radius: 0.375rem;
  padding: 1.15rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  .partner-badge {
    grid-template-columns: minmax(12rem, 18.7rem) minmax(0, 1fr);
  }
}
.partner-badge-mark {
  display: flex;
  justify-content: center;
  align-items: center;
}
.partner-badge img {
  width: 100%;
  max-width: 18.7rem;
  height: auto;
}

/* ─── Instagram LightWidget ─── */
.instagram-feed {
  width: 100%;
  min-height: 12rem;
  overflow: hidden;
}
.instagram-feed .lightwidget-widget {
  display: block;
  width: 100%;
  min-height: 28rem;
  border: 0;
}
.instagram-feed-pending {
  background: var(--surface-low);
  border-radius: 0.375rem;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.55;
}
.instagram-feed-pending code {
  font-size: 0.85em;
  color: var(--primary);
}

/* ─── Entrance (load) ─── */
/* ponytail: animates on load, not scroll; IO if below-fold misses matter */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(1.1rem); }
  to   { opacity: 1; transform: none; }
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .page-hero-inner > *,
  body > section:not(.hero-section):not(.page-hero):not(.feed-section),
  .service-card,
  .svc-row,
  .cred-card,
  .value-card,
  .license-panel,
  .license-states,
  .partner-badge,
  .why-stat-card,
  .review-card,
  .stat-block {
    animation: reveal-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.22s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.3s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.38s; }

  .page-hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
  .page-hero-inner > *:nth-child(2) { animation-delay: 0.14s; }
  .page-hero-inner > *:nth-child(3) { animation-delay: 0.22s; }
  .page-hero-inner > *:nth-child(4) { animation-delay: 0.3s; }

  body > section:not(.hero-section):not(.page-hero) { animation-delay: 0.16s; }

  .service-card:nth-child(1) { animation-delay: 0.18s; }
  .service-card:nth-child(2) { animation-delay: 0.24s; }
  .service-card:nth-child(3) { animation-delay: 0.3s; }
  .service-card:nth-child(4) { animation-delay: 0.36s; }
  .service-card:nth-child(5) { animation-delay: 0.42s; }
  .service-card:nth-child(6) { animation-delay: 0.48s; }

  .review-card:nth-child(1) { animation-delay: 0.18s; }
  .review-card:nth-child(2) { animation-delay: 0.26s; }
  .review-card:nth-child(3) { animation-delay: 0.34s; }

  .svc-row:nth-child(1) { animation-delay: 0.16s; }
  .svc-row:nth-child(2) { animation-delay: 0.24s; }
  .svc-row:nth-child(3) { animation-delay: 0.32s; }
  .svc-row:nth-child(4) { animation-delay: 0.4s; }
  .svc-row:nth-child(5) { animation-delay: 0.48s; }
  .svc-row:nth-child(6) { animation-delay: 0.56s; }
}

/* ─── Contact form ─── */
.form-card {
  background: var(--surface-lowest);
  border-radius: 0.375rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.form-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  display: block;
  margin-bottom: 0.45rem;
}
.form-input,
.form-textarea {
  width: 100%;
  background: var(--surface-highest);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0.375rem 0.375rem 0 0;
  padding: 0.85rem 1rem;
  font-family: Inter, sans-serif;
  font-size: 0.95rem;
  color: var(--on-surface);
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-bottom-color: var(--secondary);
}
.form-textarea { min-height: 8.5rem; resize: vertical; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  line-height: 1.4;
}
.form-check input {
  margin-top: 0.2rem;
  accent-color: var(--primary);
}
.form-banner {
  background: rgba(36, 53, 81, 0.07);
  color: var(--on-surface-variant);
  padding: 0.85rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--primary);
  line-height: 1.5;
}
.contact-panel {
  background: var(--primary);
  border-radius: 0.375rem;
  padding: 2rem 1.75rem;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.contact-panel a { color: #fff; text-underline-offset: 2px; }
.contact-panel dl { margin: 0; }
.contact-panel dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 1.25rem;
}
.contact-panel dt:first-child { margin-top: 0; }
.contact-panel dd {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
}

/* ─── Markets masonry ─── */
.masonry {
  columns: 1;
  column-gap: 1rem;
}
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 0.25rem;
  overflow: hidden;
  background: var(--primary);
}
.masonry-item img {
  width: 100%;
  display: block;
  filter: saturate(0.7) contrast(1.05);
  transition: filter 0.4s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.masonry-item:hover img {
  filter: saturate(0.9) contrast(1.08);
  transform: scale(1.03);
}

.footer-logo-plate {
  display: inline-block;
  background: #ffffff;
  padding: 0.45rem 0.7rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}
.footer-logo-plate img {
  height: 2.25rem;
  width: auto;
  display: block;
}
