:root {
  --ink: #25211f;
  --muted: #6f6660;
  --line: #e5ddd5;
  --paper: #fffaf5;
  --cream: #f7efe7;
  --blush: #d9a8a0;
  --gold: #b08b57;
  --sage: #6d8275;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(50, 39, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(229, 221, 213, 0.82);
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: 0;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 15px;
}

.nav a:hover {
  color: var(--ink);
}

.mobile-nav {
  display: none;
}

.header-action,
.primary-link,
.search-panel button,
.pro-form button,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  padding: 0 20px;
  font-weight: 650;
  cursor: pointer;
}

.secondary-link {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.admin-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 74px));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(37, 33, 31, 0.76), rgba(37, 33, 31, 0.38) 42%, rgba(37, 33, 31, 0.04)),
    linear-gradient(0deg, rgba(255, 250, 245, 0.1), rgba(255, 250, 245, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  color: var(--white);
}

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

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 11vw, 122px);
  line-height: 0.92;
  font-weight: 400;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.primary-link {
  background: var(--white);
  color: var(--ink);
}

.search-section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  font-weight: 400;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) auto;
  gap: 14px;
  max-width: 1060px;
  margin: 0 auto 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-panel label {
  display: grid;
  gap: 8px;
}

.search-panel span,
.pro-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-panel input,
.search-panel select,
.pro-form input,
.pro-form select,
.pro-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fffdfb;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}

.pro-page {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.pro-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 58px);
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}

.pro-intro {
  padding-top: 20px;
}

.pro-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  font-weight: 400;
}

.pro-intro p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.pro-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.pro-form label {
  display: grid;
  gap: 8px;
}

.service-dropdown {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdfb;
}

.service-dropdown summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.service-dropdown[open] summary {
  border-bottom: 1px solid var(--line);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
}

.checkbox-group legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.pro-form textarea {
  min-height: 110px;
  padding-block: 12px;
  resize: vertical;
}

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

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.form-error {
  margin: 0;
  border: 1px solid #c66b61;
  border-radius: 6px;
  background: #fff2f0;
  color: #8a2f27;
  padding: 12px;
  line-height: 1.5;
}

.admin-page {
  padding: clamp(34px, 7vw, 78px) clamp(18px, 5vw, 72px);
}

.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto 24px;
}

.admin-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 400;
}

.admin-notice,
.admin-empty {
  max-width: 1120px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
  box-shadow: var(--shadow);
}

.admin-list {
  display: grid;
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
}

.admin-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
  box-shadow: var(--shadow);
}

.admin-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.admin-card p {
  margin: 5px 0;
  color: var(--muted);
  line-height: 1.45;
}

.danger-button {
  border: 1px solid #8a2f27;
  border-radius: 4px;
  background: #8a2f27;
  color: var(--white);
  padding: 10px 14px;
  font-weight: 750;
  cursor: pointer;
}

.message-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--paper);
}

.message-box {
  width: min(680px, 100%);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.message-box h1 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 400;
}

.message-box p {
  color: var(--muted);
  line-height: 1.6;
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.search-panel button {
  align-self: end;
  min-height: 46px;
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.results-list,
.map-wrap {
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-wrap {
  height: 560px;
}

.results-list {
  padding: 20px;
  overflow-y: auto;
}

.results-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.results-topline h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--sage);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.result-card {
  display: grid;
  gap: 9px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.result-card:first-child {
  border-top: 0;
}

.result-card h4 {
  margin: 0;
  font-size: 18px;
}

.result-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.pill {
  border: 1px solid rgba(176, 139, 87, 0.38);
  border-radius: 999px;
  color: var(--ink);
  background: #fff8ef;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 750;
}

.card-action {
  justify-self: start;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 750;
  cursor: pointer;
}

.card-action:hover,
.card-action.is-active {
  background: var(--ink);
  color: var(--white);
}

.profile-link {
  justify-self: start;
  color: var(--sage);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#mapFrame {
  width: 100%;
  height: 560px;
  min-height: 560px;
  border: 0;
  display: block;
}

.services-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.services-strip article {
  padding: clamp(26px, 5vw, 54px);
  background: var(--cream);
}

.services-strip h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.services-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px 18px;
  color: var(--muted);
  background: var(--paper);
  text-align: center;
}

.footer p {
  margin: 0;
}

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

  .nav {
    display: none;
  }

  .mobile-nav {
    position: relative;
    display: block;
    margin-left: auto;
  }

  .mobile-nav summary {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    padding: 0 14px;
    color: var(--ink);
    font-weight: 750;
    cursor: pointer;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav summary::after {
    content: "+";
    margin-left: 10px;
    color: var(--gold);
    font-weight: 800;
  }

  .mobile-nav[open] summary::after {
    content: "-";
  }

  .mobile-nav div {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    display: grid;
    min-width: 220px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .mobile-nav a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 650;
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }

  .search-panel,
  .results-layout,
  .services-strip,
  .pro-layout,
  .form-row,
  .checkbox-group,
  .admin-card,
  .admin-heading {
    grid-template-columns: 1fr;
  }

  .admin-card,
  .admin-heading {
    display: grid;
  }

  .results-list,
  .map-wrap,
  #mapFrame {
    height: 430px;
    min-height: 430px;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 66px;
    padding-inline: 14px;
  }

  .brand-name {
    font-size: 20px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 620px;
    align-items: flex-end;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(37, 33, 31, 0.84), rgba(37, 33, 31, 0.34) 72%, rgba(37, 33, 31, 0.08));
  }

  .search-section {
    padding-inline: 14px;
  }

  .search-panel,
  .results-list,
  .map-wrap {
    border-radius: 6px;
  }
}
