/* ===================================
   GrimeGhost Exteriors
   Daylight Minimal — clean, light, airy
   =================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  color-scheme: light;

  /* Canvas & ink */
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --bg-softer: #eef3f7;
  --ink: #0f1c24;
  --ink-2: #3a4a54;
  --muted: #6b7b85;
  --line: #e6edf1;
  --line-strong: #d6e0e6;

  /* Single accent */
  --accent: #0a84c4;
  --accent-600: #0a6c9f;
  --accent-700: #0a587f;
  --accent-soft: #e8f3fb;

  /* Dark (footer / contrast block) */
  --dark: #0d1a23;
  --dark-2: #13242f;
  --on-dark: #e7eef2;
  --on-dark-muted: #93a4ae;

  --white: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.8);
  --header-scrolled-bg: rgba(255, 255, 255, 0.92);
  --nav-panel-bg: #ffffff;
  --overlay-bg: rgba(15, 28, 36, 0.35);
  --back-to-top-bg: #ffffff;
  --placeholder: #aab7bf;
  --slider-label-bg: rgba(255, 255, 255, 0.92);

  /* Legacy aliases (kept so inline SVGs / shared rules still resolve) */
  --cyan-400: var(--accent);
  --cyan-500: var(--accent-600);
  --slate-300: var(--ink-2);
  --slate-400: var(--muted);
  --slate-500: var(--muted);
  --navy-950: var(--dark);

  /* Radii */
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  /* Soft shadows (used sparingly) */
  --shadow-sm: 0 1px 2px rgba(15, 28, 36, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 28, 36, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 28, 36, 0.12);

  /* Transitions */
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-2);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-700);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-600);
}

ul {
  list-style: none;
}

/* Accessible focus ring */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.faq__question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section headings ---------- */
.section__eyebrow {
  display: block;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(1.9rem, 1.35rem + 2.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  text-align: center;
  margin-bottom: 16px;
}

.section__subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 52px;
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-family: inherit;
  letter-spacing: 0;
  min-height: 48px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-600));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(10, 132, 196, 0.18);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--accent-600), var(--accent-700));
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 132, 196, 0.26);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--outline:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  margin-top: 24px;
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ===================================
   HEADER
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition), background var(--transition);
}

.header--scrolled {
  background: var(--header-scrolled-bg);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
  transition: height var(--transition);
}

.header--scrolled .header__inner {
  height: 64px;
}

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

.logo__img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  transition: height var(--transition);
}

.header--scrolled .logo__img {
  height: 44px;
  width: 44px;
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav__link:hover {
  color: var(--ink);
}

.nav__link:hover::after {
  width: 100%;
}

/* Header phone */
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 9px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  transition: all var(--transition-fast);
}

.header__phone:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.header__phone .icon {
  flex-shrink: 0;
}

.header__cta {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.86rem;
}

.nav__mobile-cta,
.nav__mobile-phone {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--transition-fast);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   HERO
   =================================== */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 136px 0 88px;
  background:
    radial-gradient(900px 480px at 88% -12%, var(--accent-soft), transparent 65%),
    radial-gradient(720px 420px at -8% 112%, var(--accent-soft), transparent 60%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 76px;
  align-items: center;
}

.hero__content {
  max-width: 610px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-700);
  letter-spacing: 0.2px;
  margin-bottom: 26px;
}

.hero__badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.hero__title {
  font-size: clamp(2.65rem, 1.65rem + 3.65vw, 4.35rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero__highlight {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero__underline {
  display: none;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 34px;
  line-height: 1.65;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Compact proof line */
.hero__proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero__proof-text {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
}

.hero__proof-text strong {
  color: var(--ink);
  font-weight: 700;
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 500px;
  justify-self: end;
}

.hero__visual .slider-wrapper {
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.hero__visual .slider-image img {
  aspect-ratio: 5 / 6;
}

/* ===================================
   TRUST BANNER
   =================================== */
.trust-banner {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.trust-banner__inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-banner__item {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.trust-banner__item svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  flex-shrink: 0;
}

/* ===================================
   SERVICES
   =================================== */
.services {
  padding: 96px 0 104px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: 0 1px 0 rgba(15, 28, 36, 0.02);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* Accent hairline sweeps in on hover */
.service-card:hover {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  box-shadow: var(--shadow-sm);
}

.service-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card__icon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  /* tint the black source icon to the accent blue */
  filter: brightness(0) saturate(100%) invert(34%) sepia(86%) saturate(1190%) hue-rotate(173deg) brightness(92%) contrast(96%);
}

.service-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}

.service-card__text {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.service-card__list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.92rem;
  color: var(--ink-2);
  font-weight: 500;
}

/* Clean line-art check */
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ===================================
   BEFORE / AFTER GALLERY
   =================================== */
.gallery {
  padding: 96px 0 104px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Segmented-control style tabs */
.gallery__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 44px;
  gap: 4px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.gallery__tab {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 9px 20px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-fast), background-color var(--transition-fast),
    box-shadow var(--transition-fast), transform var(--transition-fast);
}

.gallery__tab:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.gallery__tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transform: none;
}

.gallery__container {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.slider-wrapper {
  --slide-percent: 50%;
  display: none;
  opacity: 0;
  width: 100%;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  cursor: col-resize;
  touch-action: pan-y;
  isolation: isolate;
}

.slider-wrapper.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.slider-image {
  width: 100%;
  height: auto;
  user-select: none;
}

.slider-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.slider-wrapper--landscape .slider-image img {
  aspect-ratio: 4 / 3;
}

.slider-image.before {
  position: relative;
  z-index: 1;
  background: var(--bg-softer);
}

.slider-image.after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  clip-path: inset(0 0 0 var(--slide-percent));
  will-change: clip-path;
}

.slider-wrapper:not(.is-dragging) .slider-image.after {
  transition: clip-path 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--slide-percent);
  width: 2px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(15, 28, 36, 0.15), 0 0 18px rgba(15, 28, 36, 0.18);
  z-index: 3;
  pointer-events: none;
  transform: translateX(-50%);
  will-change: left;
}

.slider-wrapper:not(.is-dragging) .slider-bar {
  transition: left 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: grab;
  pointer-events: auto;
  font: inherit;
  transition: transform var(--transition-fast), border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.slider-button::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.slider-wrapper:hover .slider-button,
.slider-button:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line-strong));
  box-shadow: 0 10px 28px rgba(15, 28, 36, 0.18);
}

.slider-wrapper:hover .slider-button::before,
.slider-button:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.slider-wrapper.is-dragging .slider-button {
  transform: translate(-50%, -50%) scale(0.96);
  cursor: grabbing;
  box-shadow: 0 6px 18px rgba(15, 28, 36, 0.2);
}

.slider-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.slider-button__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.slider-label {
  position: absolute;
  bottom: 18px;
  padding: 6px 14px;
  background: var(--slider-label-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink);
  border: 1px solid var(--line);
  z-index: 4;
  pointer-events: none;
}

.slider-label--before {
  left: 18px;
}

.slider-label--after {
  right: 18px;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Drag-to-compare hint chip (hero slider) */
.slider-hint {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: var(--slider-label-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink);
  z-index: 4;
  pointer-events: none;
  white-space: nowrap;
}

/* ===================================
   WHY CHOOSE US
   =================================== */
.why-us {
  padding: 96px 0;
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
  row-gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.why-us__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  text-align: left;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.why-us__item:hover {
  border-color: var(--accent);
}

.why-us__icon {
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--accent);
}

.why-us__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.why-us__item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1px 0 6px;
  letter-spacing: -0.01em;
}

.why-us__item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ===================================
   HOW IT WORKS (PROCESS)
   =================================== */
.process {
  padding: 96px 0 104px;
  background: var(--dark);
  color: var(--on-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.process .section__title {
  color: #fff;
}

.process .section__subtitle {
  color: var(--on-dark-muted);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  margin-top: 16px;
}

/* Dashed connector visible in the gaps between step cards */
.process__grid::before {
  display: none;
}

.step-card {
  position: relative;
  text-align: left;
  padding: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.step-card:hover {
  border-color: rgba(59, 184, 242, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.step-card__number {
  position: static;
  transform: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-600));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(10, 132, 196, 0.28);
  margin-bottom: 22px;
}

.step-card__icon {
  display: none;
}

.step-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--on-dark-muted);
  line-height: 1.55;
}

/* ===================================
   ESTIMATE / FORM
   =================================== */
.estimate {
  padding: 96px 0 104px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.form {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg);
  padding: 38px 40px 34px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.form__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.form__intro strong {
  color: var(--ink);
  font-size: 1rem;
}

.form__intro span {
  color: var(--muted);
  font-size: 0.78rem;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.form__grid .form__group {
  margin-bottom: 0;
}

.form__group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form__group:last-child {
  margin-bottom: 0;
}

.form__group--full {
  grid-column: 1 / -1;
}

.form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.form__input {
  min-height: 48px;
  padding: 12px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form__input:hover:not(:focus) {
  border-color: var(--muted);
}

.form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form__input::placeholder {
  color: var(--placeholder);
}

.form__select {
  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='none' stroke='%230a84c4' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 46px;
  cursor: pointer;
}

.form__textarea {
  resize: vertical;
  min-height: 104px;
}

.form__secure-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.form__status {
  margin-top: 22px;
  padding: 13px 15px;
  border: 1px solid #efb8b8;
  border-radius: var(--radius);
  background: #fff4f4;
  color: #8f2525;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.form__status[hidden] {
  display: none;
}

.form__lock-icon {
  stroke: var(--muted);
  flex-shrink: 0;
}

/* ===================================
   FAQ
   =================================== */
.faq {
  padding: 96px 0;
}

.faq__grid {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq__item:hover {
  border-color: var(--line-strong);
}

.faq__question {
  width: 100%;
  padding: 20px 22px;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq__icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.faq__answer-inner {
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq__item.active {
  border-color: var(--line-strong);
  box-shadow: inset 3px 0 0 var(--accent), var(--shadow-sm);
}

.faq__item.active .faq__question {
  color: var(--accent);
}

.faq__item.active .faq__icon {
  transform: rotate(180deg);
}

/* ===================================
   CONTACT
   =================================== */
.contact {
  padding: 88px 0 96px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.contact__info-item:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.contact__info-item .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 10px;
  background: var(--accent-soft);
  stroke: var(--accent);
}

.contact__info-item div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.contact__info-item strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  font-weight: 700;
}

.contact__info-item span {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
  line-height: 1.4;
}

/* Keep the business email tidy in the three-column contact grid. */
.contact__info-item[href^="mailto:"] span {
  font-size: clamp(0.8rem, 1.1vw, 0.86rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
  word-break: normal;
}

.contact__info-item[href^="mailto:"] div {
  min-width: max-content;
}

@media (max-width: 360px) {
  .contact__info-item[href^="mailto:"] span {
    letter-spacing: normal;
    white-space: normal;
    word-break: break-word;
  }

  .contact__info-item[href^="mailto:"] div {
    min-width: 0;
  }
}

/* ===================================
   FOOTER (dark contrast block)
   =================================== */
.footer {
  background: var(--dark);
  color: var(--on-dark-muted);
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
  height: 64px;
  width: 64px;
  object-fit: contain;
}

/* Skip layout and paint work for off-screen sections until they approach the viewport. */
.services,
.gallery,
.why-us,
.process,
.estimate,
.faq,
.contact,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

.footer__tagline {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 320px;
  color: var(--on-dark-muted);
}

.footer__links h4,
.footer__contact h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: var(--on-dark-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: #fff;
}

.footer__contact p {
  font-size: 0.9rem;
  margin-bottom: 9px;
  font-weight: 500;
}

.footer__contact a {
  color: var(--on-dark-muted);
  transition: color var(--transition-fast);
}

.footer__contact a:hover {
  color: #fff;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark-muted);
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer__bottom {
  padding: 22px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===================================
   THANK YOU MODAL
   =================================== */
.thankyou-modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  background: transparent;
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  box-shadow: none;
  margin: auto;
}

.thankyou-modal::backdrop {
  background: rgba(15, 28, 36, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.thankyou-modal__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
  box-sizing: border-box;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.thankyou-modal__card::-webkit-scrollbar {
  width: 8px;
}

.thankyou-modal__card::-webkit-scrollbar-track {
  background: transparent;
}

.thankyou-modal__card::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 2px solid var(--bg);
  border-radius: 999px;
}

.thankyou-modal__close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  margin: -38px -30px 0 0;
  background: var(--bg);
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.thankyou-modal__close:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.thankyou__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
}

.thankyou__icon svg {
  width: 40px;
  height: 40px;
}

.thankyou__title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}

.thankyou__message {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.thankyou__reference {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin: -14px auto 24px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 0.86rem;
}

.thankyou__reference[hidden] {
  display: none;
}

.thankyou__reference strong {
  color: var(--ink);
  letter-spacing: 0.04em;
}

.thankyou__details {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 32px;
  text-align: left;
}

.thankyou__details p {
  font-size: 0.95rem;
  color: var(--ink-2);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.thankyou__details p strong {
  color: var(--accent);
  font-weight: 700;
}

.thankyou__details p a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.thankyou__details p a:hover {
  color: var(--accent);
}

.thankyou__details .detail-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.thankyou__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.thankyou__actions .btn {
  width: 100%;
}

/* Animations for open modal dialog */
.thankyou-modal[open] {
  animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.thankyou-modal[open] .thankyou__icon {
  animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.thankyou-modal[open] .thankyou__title {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.thankyou-modal[open] .thankyou__message {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.thankyou-modal[open] .thankyou__details {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.thankyou-modal[open] .thankyou__actions {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .thankyou-modal {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }

  .thankyou-modal__card {
    max-height: calc(100dvh - 20px);
    padding: 30px 20px 24px;
    border-radius: 14px;
  }

  .thankyou-modal__close {
    margin: -20px -10px 0 0;
  }

  .thankyou__icon {
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
  }

  .thankyou__icon svg {
    width: 31px;
    height: 31px;
  }

  .thankyou__title {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  .thankyou__message {
    font-size: 0.96rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .thankyou__reference {
    margin: -6px auto 18px;
  }

  .thankyou__details {
    padding: 16px;
    margin-bottom: 20px;
  }

  .thankyou__details p {
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .thankyou__details .detail-icon {
    width: 19px;
    height: 19px;
    margin-top: 1px;
  }

  .thankyou__actions {
    gap: 10px;
  }

}

/* ===================================
   MOBILE NAV OVERLAY
   =================================== */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-bg);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===================================
   BACK TO TOP
   =================================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--back-to-top-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 900;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ===================================
   SCROLL ANIMATIONS
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__subtitle {
    max-width: 540px;
  }

  .hero__actions,
  .hero__proof {
    justify-content: center;
  }

  .hero__visual {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

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

  .services__grid .service-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    justify-self: center;
  }

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

@media (max-width: 900px) {
  .nav__list,
  .header__phone {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(84vw, 320px);
    height: 100dvh;
    background: var(--nav-panel-bg);
    padding: 100px 32px 32px;
    box-shadow: -12px 0 40px rgba(15, 28, 36, 0.12);
    transition: right var(--transition);
    z-index: 999;
    border-left: 1px solid var(--line);
  }

  .nav.open {
    right: 0;
  }

  .nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav__link {
    display: block;
    padding: 11px 0;
    font-size: 1.05rem;
  }

  .nav__mobile-phone,
  .nav__mobile-cta {
    display: block;
  }

  .nav__mobile-phone {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .nav__mobile-cta .btn {
    margin-top: 8px;
    padding: 12px 18px;
    color: #fff;
  }

  .nav__mobile-cta .btn::after {
    display: none;
  }

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

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 118px 0 72px;
  }

  .services,
  .gallery,
  .why-us,
  .process,
  .estimate,
  .faq,
  .contact {
    padding: 72px 0;
  }

  .process__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process__grid::before {
    display: none;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .services__grid .service-card:last-child {
    max-width: 100%;
  }

  .why-us__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .form {
    padding: 30px 22px 26px;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  .form__input {
    font-size: 16px;
  }

  .form__intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .slider-image img {
    aspect-ratio: 1 / 1;
  }

  .slider-wrapper--landscape .slider-image img {
    aspect-ratio: 4 / 3;
  }

  .slider-button {
    width: 44px;
    height: 44px;
  }

  .slider-label {
    padding: 5px 12px;
    font-size: 0.68rem;
    bottom: 14px;
  }

  .slider-label--before { left: 14px; }
  .slider-label--after { right: 14px; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .service-card,
  .why-us__item {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }

  .header__inner {
    gap: 10px;
  }

  .header__cta {
    display: none;
  }

  .hero__badge {
    font-size: 0.73rem;
    padding: 7px 12px;
  }

  .hero__title {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .hero__subtitle {
    font-size: 1.02rem;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 180px;
  }

  .trust-banner__inner {
    align-items: flex-start;
    flex-direction: column;
    width: fit-content;
  }

  .contact__info-item {
    min-height: 72px;
  }

  .gallery__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
  }

  .gallery__tab {
    width: 100%;
    padding: 10px 12px;
  }

  .faq__question {
    min-height: 58px;
    padding: 17px 16px;
    gap: 14px;
  }

  .faq__answer-inner {
    padding: 0 16px 18px;
  }

  .form {
    padding: 26px 18px 22px;
  }

  .form__secure-note {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 400px) {
  .hero__actions .btn {
    width: 100%;
  }

}

@media (max-height: 560px) and (orientation: landscape) {
  .thankyou-modal,
  .thankyou-modal__card {
    max-height: calc(100dvh - 12px);
  }

  .thankyou-modal {
    width: min(680px, calc(100% - 20px));
  }

  .thankyou-modal__card {
    padding: 22px 24px 18px;
  }

  .thankyou__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
  }

  .thankyou__title {
    font-size: 1.55rem;
  }
}

/* ===================================
   REDUCED MOTION
   =================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
