:root {
  color-scheme: light;
  --ink: #08243a;
  --muted: #557083;
  --line: #d9e8ee;
  --soft: #eef9fb;
  --aqua: #00a8c8;
  --aqua-dark: #007f9b;
  --navy: #062033;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(8, 36, 58, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(217, 232, 238, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.brand span {
  color: var(--aqua-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.header-cta {
  padding: 0 18px;
  color: var(--white);
  background: var(--navy);
}

.button {
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.button-primary {
  color: var(--white);
  background: var(--aqua-dark);
  box-shadow: 0 12px 30px rgba(0, 127, 155, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #006f86;
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: #a8c9d5;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  gap: 54px;
  width: min(var(--max), calc(100% - 48px));
  min-height: calc(100vh - 84px);
  margin: 0 auto;
  padding: 72px 0 56px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 690px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(48px, 6.4vw, 82px);
  font-weight: 850;
  line-height: 0.95;
}

.hero-copy p {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

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

.service-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 12px;
  max-width: 600px;
  margin-top: 44px;
}

.service-icons div {
  min-height: 104px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.service-icons svg {
  color: var(--aqua-dark);
}

.service-icons span {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.hero-media {
  position: relative;
  min-height: 680px;
}

.hero-media > img {
  width: 100%;
  height: 680px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote-card {
  position: absolute;
  right: 26px;
  bottom: 26px;
  display: grid;
  gap: 13px;
  width: min(380px, calc(100% - 52px));
  padding: 24px;
  border: 1px solid rgba(217, 232, 238, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 46px rgba(8, 36, 58, 0.18);
}

.quote-card h2 {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.12;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  height: 45px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
  font: 600 14px/1.2 inherit;
}

input::placeholder {
  color: #8ca2ae;
}

input:focus,
select:focus {
  border-color: var(--aqua);
  outline: 3px solid rgba(0, 168, 200, 0.16);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.quote-card .button {
  width: 100%;
  margin-top: 2px;
}

.form-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.form-status[data-state="success"] {
  color: #007f55;
}

.form-status[data-state="error"] {
  color: #b42318;
}

.trust-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) 1fr;
  gap: 30px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
}

.trust-band h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: stretch;
}

.trust-items span {
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: #d8f6fb;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 0;
}

.section > h2 {
  max-width: 660px;
  margin: 0 0 28px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
}

.cards {
  display: grid;
  gap: 18px;
}

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

.card,
.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(8, 36, 58, 0.07);
}

.card {
  padding: 30px;
}

.card svg {
  width: 32px;
  height: 32px;
  color: var(--aqua-dark);
}

.card h3 {
  margin: 28px 0 12px;
  font-size: 25px;
}

.card h3 a:hover,
.card h3 a:focus-visible {
  color: var(--aqua-dark);
}

.card p,
.review-card p,
.final-cta p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.review-card {
  padding: 28px;
}

.stars {
  color: var(--aqua-dark);
  font-size: 15px;
  letter-spacing: 0;
}

.review-card p {
  margin: 22px 0 22px;
}

.review-card strong,
.review-card span {
  display: block;
}

.review-card strong {
  font-size: 15px;
}

.review-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.areas {
  padding-bottom: 10px;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.area-grid span,
.area-grid a {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.area-grid a:hover,
.area-grid a:focus-visible {
  border-color: #a8c9d5;
  color: var(--aqua-dark);
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: min(var(--max), calc(100% - 48px));
  margin: 96px auto 56px;
  padding: 44px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(238, 249, 251, 0.96), rgba(255, 255, 255, 0.96)),
    url("assets/hero-pool.png") center 58% / cover;
  border: 1px solid var(--line);
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.05;
}

.final-cta p {
  max-width: 560px;
  margin: 14px 0 14px;
}

.final-cta a:not(.button) {
  color: var(--aqua-dark);
  font-weight: 900;
}

.admin-shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0;
}

.admin-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 46px rgba(8, 36, 58, 0.08);
}

.login-card {
  width: min(440px, 100%);
  padding: 32px;
}

.login-card h1,
.admin-toolbar h1 {
  margin: 28px 0 10px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
}

.login-card p,
.admin-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.admin-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.admin-alert {
  margin-top: 20px;
  padding: 12px;
  border: 1px solid #f3b6ae;
  border-radius: var(--radius);
  background: #fff4f2;
  color: #9f2418;
  font-size: 14px;
  font-weight: 800;
}

.admin-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lead-table-wrap {
  overflow-x: auto;
}

.lead-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.lead-table th,
.lead-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.lead-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-table td {
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.lead-table a {
  color: var(--aqua-dark);
}

.delete-lead-form {
  margin: 0;
}

.text-danger-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #f2b8af;
  border-radius: 8px;
  background: #fff6f4;
  color: #a82618;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.text-danger-button:hover {
  border-color: #de6f61;
  background: #ffe9e5;
}

.empty-leads {
  padding: 44px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.seo-page {
  background:
    linear-gradient(180deg, rgba(238, 249, 251, 0.74), rgba(255, 255, 255, 0) 440px),
    var(--white);
}

.seo-hero,
.seo-section,
.seo-final {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 54px;
  align-items: start;
  padding: 72px 0 52px;
}

.seo-hero-copy {
  padding-top: 18px;
}

.seo-hero-copy h1 {
  max-width: 780px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(46px, 6.6vw, 78px);
  font-weight: 900;
  line-height: 0.95;
}

.seo-hero-copy p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.55;
}

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.seo-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
  max-width: 720px;
}

.seo-proof span {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.seo-conversion-panel {
  position: sticky;
  top: 94px;
}

.seo-conversion-panel > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 18px 50px rgba(8, 36, 58, 0.14);
}

.seo-quote-card {
  position: static;
  width: 100%;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 18px 50px rgba(8, 36, 58, 0.14);
}

.seo-quote-card p {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.seo-section {
  padding: 72px 0 0;
}

.seo-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  line-height: 1;
}

.seo-section p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.65;
}

.seo-split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1fr);
  gap: 46px;
  align-items: start;
}

.seo-list {
  display: grid;
  gap: 12px;
}

.seo-list div,
.seo-cards article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(8, 36, 58, 0.06);
}

.seo-list div {
  padding: 18px 20px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.4;
}

.seo-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.seo-cards article {
  padding: 24px;
}

.seo-cards p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.seo-service-area {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(360px, 1fr);
  gap: 36px;
  align-items: start;
}

.area-grid.compact {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-faqs {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.seo-faqs details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(8, 36, 58, 0.05);
}

.seo-faqs summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.seo-faqs details[open] summary {
  border-bottom: 1px solid var(--line);
}

.seo-faqs p {
  margin: 0;
  padding: 18px 22px 20px;
}

.seo-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.seo-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--aqua-dark);
  background: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.seo-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
}

.article-body {
  display: grid;
  gap: 26px;
}

.article-body section {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.seo-article aside {
  position: sticky;
  top: 94px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.seo-article aside h2 {
  font-size: 24px;
}

.seo-article aside .button {
  margin-top: 20px;
  width: 100%;
}

.seo-final {
  margin-top: 82px;
  margin-bottom: 92px;
}

@media (max-width: 1020px) {
  .site-header {
    gap: 16px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .hero-media,
  .hero-media > img {
    min-height: 620px;
    height: 620px;
  }

  .trust-band,
  .trust-items {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .seo-hero,
  .seo-split,
  .seo-service-area,
  .seo-article {
    grid-template-columns: 1fr;
  }

  .seo-conversion-panel,
  .seo-article aside {
    position: static;
  }

  .seo-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand {
    font-size: 18px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero,
  .section,
  .trust-band,
  .final-cta {
    width: min(100% - 32px, var(--max));
  }

  .hero {
    gap: 34px;
    min-height: auto;
    padding: 44px 0 38px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-copy p {
    font-size: 17px;
  }

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

  .service-icons {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-media {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hero-media > img {
    height: 340px;
    min-height: 340px;
  }

  .quote-card {
    position: static;
    width: 100%;
    margin-top: 16px;
    padding: 20px;
  }

  .trust-band,
  .trust-items,
  .area-grid {
    grid-template-columns: 1fr;
  }

  .trust-band {
    padding: 28px;
  }

  .trust-band h2 {
    font-size: 24px;
  }

  .trust-items span {
    min-height: 56px;
  }

  .section {
    padding-top: 72px;
  }

  .card,
  .review-card {
    padding: 24px;
  }

  .final-cta {
    display: grid;
    margin-top: 72px;
    padding: 30px;
  }

  .final-cta .button {
    width: 100%;
  }

  .admin-shell {
    width: min(100% - 28px, var(--max));
    padding: 24px 0;
  }

  .login-card {
    padding: 24px;
  }

  .login-card h1,
  .admin-toolbar h1 {
    margin-top: 22px;
    font-size: 34px;
  }

  .admin-card {
    border-radius: 10px;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 18px;
  }

  .admin-actions,
  .admin-actions .button,
  .admin-actions form {
    width: 100%;
  }

  .lead-table-wrap {
    overflow: visible;
  }

  .lead-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .lead-table thead {
    display: none;
  }

  .lead-table,
  .lead-table tbody,
  .lead-table tr,
  .lead-table td {
    display: block;
    width: 100%;
  }

  .lead-table tr {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .lead-table tr:last-child {
    border-bottom: 0;
  }

  .lead-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 0;
    overflow-wrap: anywhere;
  }

  .lead-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .text-danger-button {
    min-height: 40px;
    padding: 0 14px;
  }

  .seo-hero,
  .seo-section,
  .seo-final {
    width: min(100% - 32px, var(--max));
  }

  .seo-hero {
    gap: 28px;
    padding: 44px 0 30px;
  }

  .seo-hero-copy {
    padding-top: 0;
  }

  .seo-hero-copy h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .seo-hero-copy p {
    font-size: 17px;
  }

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

  .seo-proof,
  .area-grid.compact {
    grid-template-columns: 1fr;
  }

  .seo-section {
    padding-top: 58px;
  }

  .seo-list div,
  .seo-cards article,
  .seo-article aside {
    padding: 20px;
  }
}
