:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e3e3e8;
  --accent: #0071e3;
  --accent-hover: #0062c2;
  --radius: 22px;
  --max-width: 1120px;
  --header-offset: 110px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top center, #ffffff 0, var(--bg) 55%);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.24);
  outline-offset: 3px;
}

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

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 253, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow: visible;
}

.nav {
  height: 78px;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.96rem;
}

.brand img {
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 160ms ease, transform 160ms ease, color 160ms ease;
}

.social-link:hover {
  border-color: #9ab3cc;
  color: #27527a;
  transform: translateY(-1px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-phone {
  font-size: 1rem;
  padding: 11px 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

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

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: #b0b0b5;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.hero {
  text-align: center;
  padding: 88px 0 86px;
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
  text-align: left;
}

.hero-home .lead,
.hero-home .eyebrow {
  margin-left: 0;
}

.hero-home .contact-priority {
  justify-content: flex-start;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.lead {
  margin: 20px auto 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.hero-ctas {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section {
  padding: 44px 0;
}

.landing-section {
  padding-top: 24px;
}

section[id] {
  scroll-margin-top: var(--header-offset);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}

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

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

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

.gallery-group {
  margin-top: 24px;
}

.gallery-jump-nav {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.87rem;
  color: var(--muted);
  background: #fff;
}

.chip-link:hover {
  border-color: #b8c2ce;
  color: var(--text);
}

.gallery-group h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.ba-slider {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
}

.ba-slides {
  position: relative;
}

.ba-slide {
  display: none;
}

.ba-slide.is-active {
  display: block;
}

.ba-slide h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.ba-controls {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ba-btn {
  min-width: 102px;
}

.ba-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ba-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #b7c5d6;
  padding: 0;
  cursor: pointer;
}

.ba-dot.is-active {
  background: var(--accent);
}

.before-after-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.photo-card h4 {
  margin: 0 0 12px;
  font-size: 0.98rem;
}

.photo-pair {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-frame {
  margin: 0;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  border: 1px dashed #bcc8d6;
  border-radius: 12px;
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 12px;
  color: #5e6f84;
  font-size: 0.9rem;
  text-align: center;
  background: linear-gradient(140deg, #f7faff 0%, #edf4fd 100%);
}

.photo-frame figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.list li {
  margin-bottom: 10px;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.1fr 0.9fr;
}

.contact-split {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.contact-card-compact {
  padding: 20px;
  align-self: start;
}

.trust-grid {
  margin-top: 14px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.essentials-grid {
  margin-top: 14px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-cta {
  margin-top: 22px;
}

.testimonial-panel {
  background: #fff;
}

.review-summary-card {
  margin-top: 14px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 24px 20px;
}

.review-summary-card-inline {
  max-width: 360px;
  margin: 8px auto 0;
}

.review-stars-lg {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  letter-spacing: 0.12em;
  font-weight: 700;
}

.review-count {
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
}

.testimonial-grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.review-rating {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
}

.review-quote {
  margin: 0;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.5;
}

.review-meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.kicker {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 10px;
}

.meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-bar {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-priority {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-priority .btn {
  min-width: 220px;
}

.phone-primary {
  font-size: 1.05rem;
  padding: 13px 20px;
}

.micro-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-copy {
  max-width: 640px;
}

.hero-visual {
  padding: 16px;
  background: linear-gradient(155deg, #ffffff 0%, #f1f6fb 100%);
}

.hero-photo-frame {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e9eef5;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-proof {
  margin-top: 16px;
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.proof-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.proof-item strong,
.gallery-card strong,
.before-after-detail strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.proof-item span,
.gallery-card span,
.before-after-detail span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.trust-strip {
  padding-top: 18px;
  padding-bottom: 18px;
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trust-strip-grid p {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.review-summary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 16px auto 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #27527a;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(20, 54, 88, 0.07);
}

.review-summary-link:hover {
  border-color: #9ab3cc;
}

.hero-review-link {
  margin-top: 18px;
  margin-left: 0;
}

.services-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  background: #fff;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}

.gallery-card {
  grid-column: span 1;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 26px rgba(20, 54, 88, 0.06);
}

.gallery-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #edf2f8;
  padding: 8px;
}

.gallery-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gallery-body h3,
.before-after-slide h3 {
  margin: 0;
  font-size: 1.08rem;
}

.gallery-body p,
.before-after-slide p {
  margin: 0;
  color: var(--muted);
}

.before-after-section {
  background: #fff;
}

.before-after-slider {
  max-width: 860px;
  margin: 6px auto 0;
}

.partnership-note {
  max-width: 860px;
  margin: 0 auto 12px;
  text-align: center;
}

.partnership-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.partnership-note p + p {
  margin-top: 6px;
}

.before-after-slide {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  background: #fff;
  max-width: 860px;
  margin: 0 auto;
}

.before-after-row-copy {
  margin-bottom: 10px;
}

.before-after-compare {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  background: #fff;
}

.before-after-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.before-after-media {
  margin: 0;
  padding: 6px;
  border-radius: 18px;
  background: #eef4f9;
  transition: opacity 220ms ease, transform 220ms ease;
  height: 100%;
}

.before-after-viewport .before-after-media {
  display: none;
}

.before-after-viewport .before-after-media.is-active {
  display: block;
}

.before-after-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  background: #edf2f8;
}

.before-after-image.is-rotated-270 {
  transform: rotate(270deg);
  width: auto;
  height: calc(100% - 54px);
  margin: 0 auto;
  object-fit: contain;
}

.before-after-label {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  margin-top: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  color: #234a72;
  box-shadow: 0 8px 18px rgba(20, 54, 88, 0.08);
}

.before-after-toolbar {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.before-after-toggle {
  min-width: 144px;
}

.before-after-toggle:hover {
  border-color: #9ab3cc;
  background: #f8fbff;
}

.gallery-media img,
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-frame img {
  object-fit: cover;
}

.gallery-card.orientation-portrait .gallery-media img,
.gallery-card.shape-tall .gallery-media img,
.before-after-media.orientation-portrait .before-after-image,
.before-after-media.shape-tall .before-after-image {
  object-fit: contain;
}

.before-after-media.orientation-landscape .before-after-image,
.before-after-media.shape-wide .before-after-image,
.before-after-media.shape-balanced .before-after-image,
.before-after-media.orientation-square .before-after-image {
  object-position: center;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.emp-promo-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.emp-promo-actions {
  margin-top: 0;
}

.footer-row-compact {
  justify-content: center;
}

.form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  color: var(--text);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(0, 113, 227, 0.24);
  border-color: rgba(0, 113, 227, 0.55);
}

.footer {
  margin-top: 56px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 26px 0 38px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-row > span,
.footer-row > div {
  display: inline-flex;
  align-items: center;
}

.social-links-footer {
  justify-content: flex-end;
}

body.js-enhanced .reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(4px);
  transition: opacity 720ms ease, transform 720ms ease, filter 720ms ease;
  will-change: opacity, transform, filter;
}

body.js-enhanced .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

body.js-enhanced .reveal[data-delay="1"] {
  transition-delay: 90ms;
}

body.js-enhanced .reveal[data-delay="2"] {
  transition-delay: 180ms;
}

@media (prefers-reduced-motion: reduce) {
  body.js-enhanced .reveal,
  body.js-enhanced .reveal.is-visible {
    transition: none;
    transform: none;
    filter: none;
    opacity: 1;
  }
}

@media (max-width: 940px) {
  :root {
    --header-offset: 156px;
  }

  .hero-home,
  .split,
  .grid-2,
  .essentials-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .trust-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    flex-wrap: wrap;
    padding: 10px 0 14px;
    height: auto;
    min-height: 88px;
  }

  .nav-links {
    width: 100%;
    order: 3;
    gap: 14px;
    flex-wrap: wrap;
  }

  .nav-actions {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-phone {
    font-size: 0.94rem;
    padding: 10px 14px;
  }

  .section-heading,
  .final-cta {
    align-items: start;
    flex-direction: column;
  }

  .before-after-toolbar {
    justify-content: stretch;
  }

  .before-after-toggle {
    width: 100%;
  }

  .trust-strip-grid,
  .project-gallery-grid,
  .before-after-grid,
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card {
    grid-column: span 1;
  }

  .photo-pair {
    grid-template-columns: 1fr;
  }

  .ba-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 680px) {
  :root {
    --header-offset: 148px;
  }

  .grid-3,
  .trust-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 68px 0 84px;
  }

  .hero-review-link {
    margin-top: 16px;
  }

  .hero-proof-grid,
  .trust-strip-grid,
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    width: 100%;
  }

  .before-after-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .before-after-toggle {
    justify-content: center;
    width: 100%;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
  }

  .nav-actions .social-links {
    margin-left: auto;
  }

  .nav {
    min-height: 78px;
    padding: 10px 0;
  }

  .brand img {
    width: 104px;
    height: 104px;
  }

  .contact-priority .btn {
    width: 100%;
    min-width: 0;
  }

  .footer {
    padding-bottom: 38px;
  }
}
