:root {
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-muted: #f2f4f7;
  --text: #18212f;
  --muted: #546171;
  --border: #dce2ea;
  --accent: #1f6feb;
  --accent-hover: #195bc2;
  --success: #1f7a45;
  --shadow: 0 10px 30px rgba(24, 33, 47, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 3.5rem 0;
}

.section-muted {
  background: var(--surface-muted);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 248, 250, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(220, 226, 234, 0.7);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

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

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

/* Hero — edge-to-edge image with overlaid tagline */
.hero {
  padding: 0 0 2.5rem;
  position: relative;
  z-index: 0;
}

.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-image {
  display: block;
  width: 100%;
  height: min(62vh, 520px);
  min-height: 240px;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 1.5rem 0;
  background: linear-gradient(
    to bottom,
    rgba(24, 33, 47, 0.25),
    rgba(24, 33, 47, 0.55)
  );
}

.hero-logo-link {
  position: absolute;
  z-index: 2;
  left: max(1rem, calc((100% - min(100% - 2rem, var(--container))) / 2));
  top: 1.25rem;
  display: flex;
  align-items: center;
  line-height: 0;
}

.hero-logo-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.hero-logo {
  height: clamp(11rem, 56vw, 21rem);
  width: auto;
  max-width: min(92vw, 44rem);
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.22))
    drop-shadow(0 1px 2px rgba(255, 255, 255, 0.35));
}

.hero-copy {
  position: absolute;
  left: 66.666%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: min(36rem, calc(100% - 2rem));
}

.hero-copy h1 {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
  justify-content: center;
}

/* Satisfaction guarantee + headshot */
.section-guarantee .container {
  display: flex;
  justify-content: center;
}

.guarantee-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 52rem;
}

.guarantee-block {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 8px 20px rgba(24, 33, 47, 0.05);
  text-align: center;
}

.guarantee-heading {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.guarantee-text {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.5;
}

.guarantee-photo {
  width: 208px;
  height: 208px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(24, 33, 47, 0.12);
  border: 3px solid var(--surface);
}

@media (min-width: 600px) {
  .guarantee-layout {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.25rem 1.75rem;
  }

  .guarantee-block {
    flex: 1 1 0;
    min-width: 0;
    max-width: 28rem;
  }
}

/* Form */
.section-quote {
  scroll-margin-top: 88px;
}

.quote-form {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-group label {
  display: inline-block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(31, 111, 235, 0.15);
}

.form-group textarea {
  resize: vertical;
}

.error-text {
  min-height: 1.1rem;
  margin: 0.35rem 0 0;
  color: #b42318;
  font-size: 0.89rem;
}

.is-invalid {
  border-color: #b42318 !important;
}

.btn-submit {
  width: 100%;
  margin-top: 0.3rem;
}

.form-note {
  color: var(--muted);
  margin: 0.8rem 0 0;
}

.form-success {
  min-height: 1.3rem;
  margin: 0.6rem 0 0;
  color: var(--success);
  font-weight: 600;
}

.form-success.is-error {
  color: #b42318;
}

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

.thank-you-dialog {
  max-width: min(26rem, calc(100vw - 2rem));
  padding: 0;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
  color: var(--text);
}

.thank-you-dialog::backdrop {
  background: rgba(24, 33, 47, 0.45);
}

.thank-you-dialog-inner {
  padding: 1.5rem 1.35rem;
}

.thank-you-dialog-message {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.thank-you-dialog .thank-you-dialog-close {
  width: 100%;
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 6rem;
  background: #edf1f6;
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-brand {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.footer-contact p {
  margin-bottom: 0.4rem;
}

.footer-contact a {
  color: var(--accent);
}

/* Sticky mobile CTA */
.mobile-sticky-cta {
  position: fixed;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.7rem;
  z-index: 35;
  text-align: center;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  box-shadow: 0 12px 24px rgba(31, 111, 235, 0.28);
}

.mobile-sticky-cta:hover,
.mobile-sticky-cta:focus-visible {
  background: var(--accent-hover);
}

/* Desktop adjustments */
@media (min-width: 700px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero-image {
    height: min(58vh, 560px);
    min-height: 280px;
  }

  .hero-logo {
    height: clamp(13rem, 44vw, 23rem);
    max-width: min(88vw, 52rem);
  }

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

  .form-group-full {
    grid-column: 1 / -1;
  }

  .btn-submit {
    width: auto;
    min-width: 250px;
  }

  .site-footer {
    padding-bottom: 2.5rem;
  }

  .mobile-sticky-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
