/* Page-specific layouts. */

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 104px);
  background:
    radial-gradient(1100px 600px at 85% 10%, var(--blue-100), transparent 60%),
    linear-gradient(180deg, #fff, var(--blue-50));
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 64px); }
.hero h1 { margin-bottom: .4em; }
.hero h1 .text-accent { display: block; }
.hero .lead { max-width: 34em; margin-bottom: 28px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: clamp(20px, 4vw, 40px);
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--blue-900); }
.hero-stats span { font-size: .875rem; color: var(--muted); }

.hero-art { position: relative; }
.hero-blob {
  position: absolute;
  inset: 8% 4% 6% 6%;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: linear-gradient(145deg, var(--blue-100), var(--blue-200));
}
.hero-art img { position: relative; width: 100%; }

.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: .8125rem;
  line-height: 1.3;
  color: var(--muted);
  animation: float 6s ease-in-out infinite;
}
.hero-float strong { display: block; font-family: var(--font-head); font-size: .9375rem; color: var(--blue-900); }
.hero-float .float-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--blue-100); color: var(--blue-700); }
.hero-float .float-icon .icon { width: 20px; height: 20px; }
.hero-float--a { left: 0; bottom: 10%; }
.hero-float--b { top: 4%; right: 0; animation-delay: -3s; }
.hero-float--b .float-icon { background: var(--accent-100); color: var(--accent-600); }
a.hero-float:hover { color: var(--muted); }

@keyframes float { 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: 100%; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-float { font-size: .75rem; }
  .hero-float strong { font-size: .8125rem; }
  .hero-float--a { left: -4px; bottom: 2%; }
  .hero-float--b { right: -4px; top: 0; }
}

/* ---------- Services page ---------- */
.service-rows { display: grid; gap: clamp(56px, 8vw, 96px); }
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.service-row:nth-child(even) .service-media { order: 2; }
.service-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--blue-100), var(--blue-200));
}
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-row:hover .service-media img { transform: scale(1.03); }
.service-media .num {
  position: absolute;
  top: 20px;
  left: 24px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--blue-700);
}
.service-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.service-body .check-list { margin: 20px 0 28px; }
@media (max-width: 860px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-media { order: 0; }
}

.van-figure { overflow: hidden; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.van-figure img { width: 100%; }


/* ---------- Pricing page ---------- */
.nearby { max-width: 720px; margin-inline: auto; }

.package-note { margin: 24px 0 0; font-size: .875rem; text-align: center; color: var(--muted); }

.estimator {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow);
}
.estimator-form { display: grid; gap: 20px; align-content: start; padding: clamp(24px, 4vw, 40px); }
.est-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 520px) { .est-grid-2 { grid-template-columns: 1fr; } }

.estimator-result {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(160deg, var(--blue-800), var(--blue-950));
  color: var(--on-dark);
}
.estimator-result h3 { display: flex; align-items: center; gap: 10px; color: #fff; }
.estimator-result h3 .icon { color: var(--accent); }
.est-lines { display: grid; gap: 10px; margin: 16px 0 20px; font-size: .9375rem; }
.est-line, .est-row { display: flex; justify-content: space-between; gap: 16px; }
.est-line span:last-child, .est-row span:last-child { white-space: nowrap; font-weight: 600; color: #fff; }
.est-totals { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9375rem; }
.est-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.est-total strong { font-family: var(--font-head); font-size: 2.25rem; letter-spacing: -.02em; color: #fff; white-space: nowrap; }
.est-disclaimer { margin: 16px 0 24px; font-size: .8125rem; color: var(--on-dark-muted); }
.estimator-result .btn { margin-top: auto; }
@media (max-width: 900px) { .estimator { grid-template-columns: 1fr; } }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.form-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.5rem; }
.form-actions { display: grid; gap: 16px; margin-top: 8px; }

.info-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--blue-900);
  color: var(--on-dark);
}
.info-card h2 { font-size: 1.5rem; color: #fff; }
.info-list { display: grid; gap: 18px; margin: 24px 0 28px; }
.info-list li { display: flex; align-items: center; gap: 14px; }
.info-list .icon-tile { width: 44px; height: 44px; background: rgba(255, 255, 255, .08); color: #fff; }
.info-list .icon-tile .icon { width: 20px; height: 20px; }
.info-list small { display: block; font-size: .8125rem; color: var(--on-dark-muted); }
.info-list a, .info-list strong { font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.info-list a:hover { color: var(--accent); }

.map-card {
  position: relative;
  display: block;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #EEF3FA;
  color: inherit;
  transition: box-shadow .25s, transform .25s var(--ease);
}
.map-card:hover { color: inherit; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.map-card img { width: 100%; }
.map-card-info {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow);
}
.map-card-text { display: grid; font-size: .8125rem; line-height: 1.35; color: var(--blue-700); font-weight: 600; }
.map-card-text strong { font-size: .875rem; color: var(--blue-900); }
.map-card-arrow { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-700); color: #fff; transition: transform .2s var(--ease); }
.map-card-arrow .icon { width: 18px; height: 18px; }
.map-card:hover .map-card-arrow { transform: translateX(3px); }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .info-card { position: static; }
}

/* ---------- Legal pages ---------- */
.page-hero--compact { text-align: left; }
.page-hero--compact h1, .page-hero--compact .lead { margin-inline: 0; }
.page-hero--compact .btn-row { justify-content: flex-start; }
.legal-updated { margin: 0; font-size: .875rem; font-weight: 600; color: var(--blue-700); }

.legal-section { padding-top: clamp(40px, 5vw, 64px); }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.legal-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-toc h2 {
  margin-bottom: 12px;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-toc ol { display: grid; gap: 2px; border-left: 2px solid var(--line); }
.legal-toc a {
  display: block;
  margin-left: -2px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--muted);
}
.legal-toc a:hover { border-color: var(--blue-500); color: var(--blue-700); }

.prose { max-width: 760px; }
.prose section { padding-block: 8px 24px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose section + section { border-top: 1px solid var(--line); padding-top: 28px; }
.prose h2 { margin-bottom: 14px; font-size: clamp(1.25rem, 2vw, 1.5rem); }
.prose p { color: var(--text); }
.prose ul { display: grid; gap: 8px; margin: 0 0 1em; padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before {
  content: "";
  position: absolute;
  top: .65em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
}
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose .table-card { margin: 8px 0 20px; }

.table-scroll { overflow-x: auto; }
.data-table--legal { min-width: 520px; font-size: .9375rem; }
.data-table--legal td, .data-table--legal th, .data-table--legal th:last-child, .data-table--legal td:last-child {
  text-align: left;
  vertical-align: top;
}
.data-table--legal td:last-child { font-weight: 400; color: var(--text); }
.data-table--legal td:first-child { font-weight: 600; color: var(--blue-900); }

.legal-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}
.legal-contact h2 { margin: 0 0 2px; font-size: 1.125rem; }
.legal-contact p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-aside { position: static; }
  .legal-toc ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .legal-toc ol { grid-template-columns: 1fr; } }

/* ---------- Thank-you page ---------- */
.thanks {
  padding-block: clamp(40px, 6vw, 88px);
  background:
    radial-gradient(1000px 520px at 85% 10%, var(--blue-100), transparent 60%),
    linear-gradient(180deg, #fff, var(--blue-50));
}
.thanks-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 5vw, 64px); }
.thanks-check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 10px var(--success-bg);
  color: #fff;
  animation: pop .5s var(--ease) both;
}
.thanks-check .icon { width: 32px; height: 32px; stroke-width: 2.5; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.thanks h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.thanks .lead { max-width: 34em; }
.thanks-next { margin: 32px 0 16px; font-size: 1.125rem; }
.thanks-steps { display: grid; gap: 14px; margin-bottom: 28px; }
.thanks-steps li { display: flex; gap: 14px; align-items: flex-start; }
.thanks-steps strong { display: block; font-family: var(--font-head); color: var(--blue-900); }
.thanks-steps p { margin: 0; font-size: .9375rem; color: var(--muted); }
.thanks-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-100);
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--blue-700);
}
.thanks-urgent {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  background: #fff;
}
.thanks-urgent strong { display: block; color: var(--blue-900); }
.thanks-urgent a { font-weight: 700; }
.thanks-art { position: relative; }
.thanks-art img { position: relative; width: 100%; }
@media (max-width: 900px) {
  .thanks-grid { grid-template-columns: 1fr; }
  .thanks-art { display: none; }
}
