:root {
  --navy-950: #071724;
  --navy-900: #102a43;
  --navy-800: #173f5f;
  --blue-600: #147d92;
  --teal-500: #19a7a0;
  --teal-100: #dff7f4;
  --slate-900: #17212b;
  --slate-700: #465565;
  --slate-500: #718096;
  --slate-200: #dce4ec;
  --slate-100: #edf2f7;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(16, 42, 67, 0.1);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #f6f8fb;
  color: var(--slate-900);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
}

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

.site-shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid rgba(16, 42, 67, 0.08);
}

.header-row {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--teal-500), var(--blue-600));
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 24px rgba(20, 125, 146, 0.25);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--navy-900);
  font-size: 18px;
  line-height: 1.25;
}

.brand small {
  margin-top: 3px;
  color: var(--slate-500);
  font-size: 13px;
}

.header-phone {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  text-decoration: none;
}

.header-phone span {
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-phone strong {
  color: var(--navy-900);
  font-size: 20px;
}

.site-nav {
  background: var(--navy-950);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-row::-webkit-scrollbar {
  display: none;
}

.nav-row a {
  flex: 0 0 auto;
  padding: 13px 16px;
  border-bottom: 3px solid transparent;
  color: #cbd8e4;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-row a:hover,
.nav-row a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.06);
  border-bottom-color: var(--teal-500);
  color: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 88px;
  background:
    radial-gradient(circle at 85% 0%, rgba(25, 167, 160, 0.28), transparent 35%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -5% -160px 35%;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.7fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-500);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 700px;
  margin: 24px 0 0;
  color: #c8d8e6;
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: var(--teal-500);
  color: var(--navy-950);
  box-shadow: 0 14px 26px rgba(25, 167, 160, 0.24);
}

.button-primary:hover {
  background: #38c0b8;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.service-summary {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.hero-logo-card {
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.hero-logo-card img {
  width: min(100%, 390px);
  height: auto;
}

.service-summary span {
  position: relative;
  padding: 12px 14px 12px 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #e7f1f8;
  font-weight: 700;
}

.service-summary span::before {
  content: "✓";
  position: absolute;
  left: 14px;
  color: var(--teal-500);
  font-weight: 900;
}

.content-section {
  padding-block: 76px 96px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

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

.content-card {
  min-width: 0;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.content-card-wide {
  grid-column: 1 / -1;
}

.content-card > :first-child,
.content-card > div > :first-child {
  margin-top: 0;
}

.content-card > :last-child,
.content-card > div > :last-child {
  margin-bottom: 0;
}

.content-card h1,
.content-card h2,
.content-card h3,
.content-card h4 {
  color: var(--navy-900);
  line-height: 1.25;
}

.content-card h1,
.content-card h2 {
  margin: 32px 0 14px;
  font-size: clamp(24px, 3vw, 32px);
}

.content-card h3 {
  margin: 28px 0 10px;
  padding-top: 24px;
  border-top: 1px solid var(--slate-200);
  font-size: 21px;
}

.content-card article + article {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--slate-200);
}

.content-card article h2 {
  margin-top: 0;
}

.content-card article h3 {
  margin: -4px 0 18px;
  padding: 0;
  border: 0;
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 700;
}

.content-card p,
.content-card li {
  color: var(--slate-700);
}

.content-card p {
  margin: 0 0 18px;
}

.content-card ul,
.content-card ol {
  padding-left: 22px;
}

.content-card img {
  width: auto;
  max-width: 100%;
  margin: 24px auto;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(16, 42, 67, 0.14);
}

.archive-gallery-heading {
  margin-bottom: 24px;
}

.archive-gallery-heading h2 {
  margin: 0;
}

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

.archive-gallery figure,
.archive-photo {
  margin: 0;
}

.archive-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: none;
}

.archive-gallery figcaption,
.archive-photo figcaption {
  margin-top: 10px;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.45;
}

.archive-photo-card {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--white), var(--slate-100));
}

.archive-photo {
  text-align: center;
}

.archive-photo img {
  max-height: 260px;
  margin: 0 auto;
}

.inline-link {
  color: var(--blue-600);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.estimate-callout {
  padding: 26px;
  border: 1px solid #bde8e3;
  border-radius: 14px;
  background: var(--teal-100);
}

.estimate-callout .button {
  margin-top: 8px;
}

.lead-section {
  padding: 0 0 96px;
}

.lead-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 6vw, 76px);
  padding: clamp(30px, 5vw, 56px);
  border-radius: 24px;
  background: var(--navy-900);
  box-shadow: 0 26px 70px rgba(7, 23, 36, 0.2);
  color: var(--white);
}

.lead-intro h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lead-intro > p:not(.eyebrow) {
  color: #c8d8e6;
}

.lead-phone {
  color: var(--white);
  font-size: 23px;
  font-weight: 850;
  text-decoration: none;
}

.lead-form {
  position: relative;
  min-width: 0;
}

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

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

.form-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

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

.form-field span {
  color: #dce8f1;
  font-size: 13px;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.form-field input,
.form-field select {
  min-height: 50px;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 132px;
  padding: 12px 14px;
  resize: vertical;
}

.form-field select option {
  color: var(--slate-900);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9fb2c2;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--teal-500);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 0 3px rgba(25, 167, 160, 0.2);
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

.form-submit-row .button {
  border: 0;
  cursor: pointer;
}

.form-submit-row .button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.form-note {
  margin: 0;
  color: #9fb2c2;
  font-size: 13px;
}

.lead-status {
  min-height: 25px;
  margin: 14px 0 0;
  font-weight: 750;
}

.lead-status.is-success {
  color: #82e7d9;
}

.lead-status.is-error {
  color: #ffbbb7;
}

.lead-success-fallback {
  display: none;
}

.lead-success-fallback:target {
  display: block;
  color: #82e7d9;
}

.site-footer {
  padding: 44px 0;
  background: var(--navy-950);
  color: #c8d8e6;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 36px;
}

.footer-grid strong {
  color: var(--white);
  font-size: 18px;
}

.footer-grid p {
  margin: 7px 0 0;
}

.footer-grid > div:last-child {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}

.footer-grid span {
  color: var(--teal-500);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-grid a {
  color: var(--white);
  font-size: 22px;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 820px) {
  .hero {
    padding-block: 62px 68px;
  }

  .hero-grid,
  .content-grid,
  .lead-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
  }

  .content-card-wide {
    grid-column: auto;
  }

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

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 28px, 1160px);
  }

  .header-row {
    min-height: 78px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small,
  .header-phone span {
    display: none;
  }

  .header-phone strong {
    font-size: 15px;
  }

  .nav-row a {
    padding-inline: 13px;
  }

  .hero h1 {
    font-size: clamp(34px, 12vw, 50px);
  }

  .hero-actions,
  .footer-grid,
  .form-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .content-section {
    padding-block: 54px 68px;
  }

  .content-card {
    padding: 22px;
  }

  .footer-grid > div:last-child {
    align-items: flex-start;
  }

  .hero-logo-card {
    min-height: 0;
  }

  .archive-gallery {
    grid-template-columns: 1fr;
  }

  .lead-section {
    padding-bottom: 68px;
  }

  .lead-panel,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .lead-panel {
    padding: 26px 22px;
    border-radius: 18px;
  }

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