:root {
  --ink: #14213d;
  --muted: #5f6f7d;
  --line: #d9e2e7;
  --paper: #f7faf9;
  --white: #ffffff;
  --green: #188b67;
  --green-dark: #0d614a;
  --blue: #1464a5;
  --gold: #f5b942;
  --danger: #a94732;
  --shadow: 0 18px 45px rgba(17, 32, 45, 0.10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a { color: inherit; }

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

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 249, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0;
}

.brand span span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a, .btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
}

nav a {
  color: var(--muted);
}

nav a:hover,
nav a.active {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

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

.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.hero {
  padding: 58px 0 44px;
  background:
    linear-gradient(90deg, rgba(8, 21, 31, 0.84) 0%, rgba(8, 21, 31, 0.64) 44%, rgba(8, 21, 31, 0.34) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(8, 21, 31, 0.18)),
    url("ahi-van-jacaranda-hero.jpg");
  background-position: center 73%;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 32px;
  align-items: center;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 18px;
}

.eyebrow {
  color: #dff6ed;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.85rem;
}

.lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.trust-strip, .stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trust-item {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  min-height: 94px;
}

.trust-item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.side-card, .panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.badge-preview {
  width: min(230px, 72vw);
  aspect-ratio: 1;
  display: block;
  margin: 0 auto 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--white);
}

.side-card ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
}

.side-card .star-list {
  list-style: none;
  padding-left: 0;
}

.star-list li {
  position: relative;
  padding-left: 26px;
}

.star-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-size: 1.05rem;
  line-height: 1.45;
  text-shadow: 0 1px 0 rgba(20, 33, 61, 0.16);
}

.side-card li + li {
  margin-top: 8px;
}

.side-card h3 {
  margin: 22px 0 8px;
}

section {
  padding: 46px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-title h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.1;
  margin-bottom: 0;
  letter-spacing: 0;
}

.section-title p {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 0;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 12px;
  margin-bottom: 18px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #cbd8dd;
  background: var(--white);
  border-radius: 8px;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

label {
  display: block;
  color: #344b59;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 7px;
}

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

.contractor {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  min-height: 272px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 28px rgba(17, 32, 45, 0.06);
}

.contractor-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--green-dark);
  background: #e2f3ec;
  font-weight: 800;
  font-size: 0.78rem;
}

.contractor h3 {
  margin: 0 0 3px;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.contractor p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  color: #405665;
  background: #fbfdfd;
}

.contractor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.contractor-actions .btn {
  width: 100%;
  font-size: 0.88rem;
}

.btn-disabled {
  background: #eef3f5;
  color: #627383;
  border-color: var(--line);
  cursor: default;
}

.hidden {
  display: none !important;
}

.band {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 26px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: #344b59;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 8px 0;
}

.check input {
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.pricing, .card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.price, .info-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfdfd;
}

.price strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin: 6px 0 8px;
  color: var(--green-dark);
}

.simple-list {
  margin: 0;
  padding-left: 20px;
  color: #344b59;
}

.simple-list li + li {
  margin-top: 8px;
}

.notice {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff7e5;
  color: #694d0a;
  border: 1px solid #f1d99b;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: 26px;
  align-items: start;
}

.why-grid img, .story-card img {
  width: 100%;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(17, 32, 45, 0.08);
}

.story-stack {
  display: grid;
  gap: 18px;
}

.story-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(17, 32, 45, 0.06);
}

.story-card img {
  height: 150px;
}

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

.guarantee-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  padding: 18px;
  font-weight: 700;
  color: #344b59;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(13, 28, 39, 0.68);
}

.modal.open { display: flex; }

.modal-dialog {
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 22px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

footer {
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .hero-grid, .split, .why-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 34px;
  }

  .trust-strip, .stat-strip, .directory, .pricing, .card-grid, .form-grid, .guarantee-list {
    grid-template-columns: 1fr;
  }

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

  .contractor-actions {
    grid-template-columns: 1fr;
  }

  .story-card {
    grid-template-columns: 1fr;
  }

  .story-card img {
    height: auto;
  }

  .btn, nav a {
    white-space: normal;
  }
}
