:root {
  --ink: #10232b;
  --muted: #5f727a;
  --line: #d9e5e8;
  --paper: #f7fbfb;
  --white: #ffffff;
  --teal: #0f8f93;
  --blue: #245a86;
  --gold: #c49435;
  --danger: #b83b36;
  --shadow: 0 20px 50px rgba(16, 35, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 8px;
  font-weight: 800;
}

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

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a,
.icon-button,
.phone-link {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.main-nav a:hover,
.icon-button:hover {
  border-color: var(--line);
  background: var(--paper);
}

.phone-link {
  color: var(--white);
  background: var(--ink);
  white-space: nowrap;
}

.hero-band {
  min-height: calc(100vh - 75px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(28px, 5vw, 72px) clamp(16px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(16, 35, 43, 0.88), rgba(16, 35, 43, 0.42)),
    url("https://media.base44.com/images/public/6a15f5d201eb2b471029d892/cb5838bd6_generated_5edb24ee.png") center / cover;
  color: var(--white);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
}

.hero-actions,
.card-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.primary-action,
.secondary-action,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  text-decoration: none;
  cursor: pointer;
}

.primary-action,
.submit-button {
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.quote-panel,
.contact-card,
.admin-dialog {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quote-panel {
  padding: clamp(18px, 3vw, 28px);
}

.form-header h2 {
  margin-bottom: 18px;
  font-size: 1.6rem;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(15, 143, 147, 0.3);
  outline-offset: 2px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--teal);
  font-weight: 700;
}

.location-strip,
#locationOptions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.location-strip {
  padding: 16px clamp(16px, 5vw, 64px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

#locationOptions {
  grid-column: 1 / -1;
}

.location-option {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.location-option span {
  color: var(--muted);
}

.location-option.active {
  border-color: var(--teal);
  background: #e9f7f7;
}

.section {
  padding: clamp(42px, 6vw, 82px) clamp(16px, 5vw, 64px);
}

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

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

.service-card,
.review-card,
.quote-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.service-card div,
.review-card,
.quote-card {
  padding: 18px;
}

.service-card p,
.review-card p,
.contact-section p,
.quote-meta {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--blue);
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 700;
}

.trust-section,
.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  background: var(--white);
}

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

.metric-grid article {
  min-height: 128px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-grid strong {
  font-size: 2rem;
  color: var(--teal);
}

.review-card .stars {
  color: var(--gold);
  font-weight: 900;
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.contact-card a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--blue);
  background: var(--paper);
  text-decoration: none;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-dialog {
  width: min(1000px, calc(100vw - 26px));
  max-height: min(840px, calc(100vh - 26px));
  padding: 0;
}

.admin-dialog::backdrop {
  background: rgba(16, 35, 43, 0.62);
}

.dialog-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.dialog-top h2 {
  margin: 0;
  font-size: 1.6rem;
}

.login-form,
.admin-board {
  padding: 18px;
}

.admin-board.hidden,
.login-form.hidden {
  display: none;
}

.admin-actions {
  justify-content: flex-end;
  margin-bottom: 14px;
}

.import-label {
  position: relative;
  overflow: hidden;
}

.import-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.button-reset {
  border-color: var(--line);
  color: var(--ink);
  background: var(--paper);
}

.button-reset.danger,
.delete-quote {
  color: var(--danger);
}

.quote-list {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.quote-card {
  display: grid;
  gap: 14px;
}

.quote-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.status-select {
  width: auto;
  min-width: 140px;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 12px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.photo-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.photo-row img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .hero-band,
  .trust-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-band {
    min-height: 0;
  }

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

@media (max-width: 640px) {
  .field-grid,
  .location-strip,
  #locationOptions {
    grid-template-columns: 1fr;
  }

  .quote-card-top {
    display: grid;
  }

  .status-select {
    width: 100%;
  }
}
