/* SEO-led content and accessibility additions — preserves the existing design. */
.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10000;
  padding: .8rem 1rem;
  border-radius: 12px;
  background: #fff;
  color: #07152b;
  box-shadow: 0 12px 30px rgba(7, 21, 43, .2);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #188ad5;
  outline-offset: 3px;
}

/* Keep above-the-fold content immediately paintable for visitors and LCP.
   Reveal animation remains available for lower sections. */
.hero.reveal,
.page-hero.reveal,
main > section:first-child.reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.optional {
  color: #5b6b7c;
  font-size: .86em;
  font-weight: 750;
}

#quote-form {
  scroll-margin-top: 8rem;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 1.4rem;
  align-items: start;
}

.guide-article {
  display: grid;
  gap: 1rem;
}

.guide-section,
.guide-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: var(--shadow2);
}

.guide-section h2,
.guide-aside h2 { margin: 0 0 .6rem; }

.guide-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.guide-aside {
  position: sticky;
  top: 8rem;
  background: linear-gradient(145deg, #07152b, #123466);
  color: #fff;
}

.guide-aside h2,
.guide-aside .check-list li { color: #fff; }

[id] { scroll-margin-top: 8rem; }

.seo-intro {
  max-width: 860px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.seo-card-grid,
.process-grid,
.project-proof-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.seo-card,
.process-step,
.project-proof-card,
.faq-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow2);
  overflow: hidden;
}

.seo-card,
.process-step,
.faq-card { padding: 1.35rem; }

.seo-card h3,
.process-step h3,
.faq-card h3 {
  margin: 0 0 .55rem;
  line-height: 1.15;
}

.seo-card p,
.process-step p,
.faq-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.process-number {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: .8rem;
  border-radius: 999px;
  background: #e9f6ff;
  color: #075c9c;
  font-weight: 950;
}

.project-proof-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eef6fb;
}

.project-proof-card .copy { padding: 1.25rem; }
.project-proof-card h3 { margin: 0 0 .45rem; }
.project-proof-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.project-proof-card .link-more { margin-top: .8rem; }

.local-context {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 1.25rem;
  align-items: stretch;
}

.local-context-copy,
.nearby-links {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: var(--shadow2);
}

.local-context-copy p,
.nearby-links p { color: var(--muted); line-height: 1.7; }

.nearby-links .areas { margin-top: .8rem; }

.proof-band {
  background: linear-gradient(135deg, #07152b, #123466 70%, #0b77c6);
  color: #fff;
}

.proof-band .section-head p,
.proof-band .seo-intro { color: rgba(255, 255, 255, .84); }

.proof-band .kicker { color: #90d5ff; }

.project-gallery-wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-gallery-wide figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow2);
}

.project-gallery-wide img {
  display: block;
  width: 100%;
  height: auto;
}

.project-gallery-wide figcaption {
  padding: 1rem 1.1rem;
  color: var(--muted);
  line-height: 1.5;
}

.project-gallery-wide figcaption strong {
  display: block;
  color: var(--ink);
  margin-bottom: .2rem;
}

.form-expectation {
  margin: 0;
  padding: .85rem 1rem;
  border: 1px solid #b9ddf5;
  border-radius: 16px;
  background: #eef8ff;
  color: #17445f;
  line-height: 1.55;
}

.homepage-credentials {
  padding: clamp(2.6rem, 5vw, 4.4rem) 0;
  background: linear-gradient(180deg, #f4f8fc, #fff);
  border-bottom: 1px solid var(--line);
}

.homepage-credentials .trust-item {
  height: 100%;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.2rem;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 900px) {
  .seo-card-grid,
  .process-grid,
  .project-proof-grid,
  .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local-context { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-aside { position: static; }
}

@media (max-width: 640px) {
  .seo-card-grid,
  .process-grid,
  .project-proof-grid,
  .faq-grid,
  .project-gallery-wide { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
