:root {
  --background: #f8f9fb;
  --foreground: #202a3a;
  --card: #ffffff;
  --primary: #2a426c;
  --primary-hover: #213657;
  --primary-foreground: #f8f9fb;
  --secondary: #edf0f4;
  --muted: #f1f3f6;
  --muted-foreground: #687182;
  --accent: #e8a337;
  --accent-foreground: #202a3a;
  --destructive: #b42318;
  --border: #dfe3e9;
  --surface-deep: #263755;
  --radius: 0.5rem;
  --shadow-card: 0 1px 2px rgb(32 42 58 / 6%), 0 12px 32px -18px rgb(32 42 58 / 35%);
  --max-width: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--foreground);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgb(232 163 55 / 70%);
  outline-offset: 3px;
}

.svg-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.icon,
.service-icon,
.star {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgb(223 227 233 / 90%);
  background: rgb(248 249 251 / 92%);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand {
  text-decoration: none;
}

.brand-name,
.brand-subtitle {
  display: block;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  margin-top: 0.05rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.header-actions,
.hero-actions,
.pill-row,
.form-actions {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 0.5rem;
}

.button {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.button-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

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

.button-outline {
  border-color: var(--border);
  background: var(--background);
}

.button-outline:hover {
  background: var(--secondary);
}

.button-light {
  background: var(--primary-foreground);
  color: var(--primary);
}

.button-light:hover {
  background: #ffffff;
}

.button-hero-outline {
  border-color: rgb(248 249 251 / 55%);
  background: transparent;
  color: var(--primary-foreground);
}

.button-hero-outline:hover {
  background: rgb(255 255 255 / 10%);
}

.button-large {
  min-height: 2.75rem;
  padding-inline: 1.25rem;
  font-size: 1rem;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 37rem;
  overflow: hidden;
}

.hero-slides,
.hero-overlay,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slides {
  z-index: -2;
  background: #34445d;
}

.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgb(24 35 58 / 95%) 0%,
    rgb(36 54 87 / 84%) 45%,
    rgb(43 64 104 / 47%) 100%
  );
}

.hero-inner {
  display: flex;
  min-height: 37rem;
  align-items: center;
  padding-block: 5.5rem;
}

.hero-content {
  max-width: 42rem;
  color: var(--primary-foreground);
}

.pill-row {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.pill-accent {
  background: var(--accent);
  color: var(--accent-foreground);
}

.pill-ghost {
  border: 1px solid rgb(248 249 251 / 32%);
}

.pill-bordered {
  border: 1px solid var(--border);
  background: transparent;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  max-width: 40rem;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 6vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 4vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1rem;
}

.hero-content .pill-row {
  margin-bottom: 1.5rem;
}

.hero-copy {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  color: rgb(248 249 251 / 90%);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.review-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: rgb(248 249 251 / 90%);
  font-size: 0.875rem;
  text-decoration: none;
}

.review-summary:hover {
  text-decoration: underline;
}

.stars {
  display: flex;
  gap: 0.1rem;
}

.star {
  width: 1rem;
  height: 1rem;
  fill: var(--accent);
  stroke: var(--accent);
}

.contact-strip {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 1.5rem;
  padding-block: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.contact-item .icon {
  color: var(--muted-foreground);
}

.contact-item a {
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.section {
  padding-block: 5rem;
}

.section-intro {
  max-width: 38rem;
  margin: 0.5rem 0 0;
  color: var(--muted-foreground);
}

.service-grid,
.review-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

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

.card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.service-card {
  padding: 1.5rem;
}

.service-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.service-card h3 {
  margin: 1rem 0 0.5rem;
}

.service-card p,
.reviewer span {
  color: var(--muted-foreground);
}

.service-card p {
  margin-bottom: 0;
  font-size: 0.875rem;
}

.owner {
  background: var(--secondary);
}

.owner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.owner-photo-wrap,
.owner-copy {
  padding: 2.5rem;
}

.owner-photo-wrap {
  min-width: 0;
}

.owner-photo-frame {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
}

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

.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
}

.owner-copy > p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.owner-pills {
  margin-top: 1.5rem;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.text-link {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

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

.review-card {
  display: block;
  padding: 1.5rem;
  color: var(--foreground);
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.review-card:hover {
  transform: scale(1.02);
  box-shadow: 0 3px 8px rgb(32 42 58 / 8%), 0 18px 38px -18px rgb(32 42 58 / 40%);
}

.review-card blockquote {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.reviewer {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  font-weight: 650;
}

#quote {
  scroll-margin-top: 4.5rem;
}

.quote-container {
  max-width: 48rem;
}

.form-card {
  margin-top: 2rem;
  padding: 2rem;
}

#quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--foreground);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-field input {
  height: 2.5rem;
  padding: 0.45rem 0.75rem;
}

.form-field textarea {
  min-height: 7.5rem;
  resize: vertical;
  padding: 0.65rem 0.75rem;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9097a4;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(42 66 108 / 16%);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--destructive);
}

.field-error {
  display: block;
  min-height: 1rem;
  margin-top: 0.25rem;
  color: var(--destructive);
  font-size: 0.75rem;
}

.form-actions {
  align-items: center;
  gap: 0.75rem;
}

.form-actions p {
  margin-bottom: 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.form-status {
  display: none;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.875rem;
}

.form-status:not(:empty) {
  display: block;
}

.form-status.success {
  background: #ecf7ef;
  color: #176638;
}

.form-status.error {
  background: #fff0ee;
  color: #8e2017;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  background: var(--surface-deep);
  color: var(--primary-foreground);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2.5rem;
  font-size: 0.875rem;
}

.footer-inner p {
  margin-bottom: 0;
  color: rgb(248 249 251 / 80%);
}

.footer-inner .footer-name {
  color: var(--primary-foreground);
  font-weight: 650;
}

.footer-inner a {
  color: rgb(248 249 251 / 90%);
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-photo-wrap,
  .owner-copy {
    padding: 2rem 1.25rem;
  }

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

@media (max-width: 700px) {
  .quote-link {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 36rem;
  }

  .hero-inner {
    padding-block: 4.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section {
    padding-block: 4rem;
  }

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

  .owner-photo-wrap {
    padding: 1.25rem 0.25rem 0;
  }

  .owner-copy {
    padding: 2rem 0.25rem 4rem;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  #quote-form {
    grid-template-columns: 1fr;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .form-card {
    padding: 1.25rem;
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .container {
    width: min(100% - 2rem, var(--max-width));
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.68rem;
  }

  .header-actions .button {
    padding-inline: 0.8rem;
  }

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

  .hero-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
