:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-soft: #f1efe7;
  --ink: #1f2528;
  --muted: #667176;
  --line: #d9d4c8;
  --green: #1f6b57;
  --green-dark: #144638;
  --blue: #234c7b;
  --rust: #a74f2b;
  --gold: #d39b2a;
  --shadow: 0 18px 50px rgba(31, 37, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0;
}

.main-nav a,
.nav-action {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

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

.nav-action {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.profile-hero {
  background: #e9e5d9;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 42px;
}

.profile-heading {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.logo-box {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--green);
  font-size: 32px;
  font-weight: 850;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
}

.verified {
  background: rgba(31, 107, 87, 0.12);
  color: var(--green-dark);
}

.premium {
  background: rgba(211, 155, 42, 0.18);
  color: #6f4a07;
}

.location {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.profile-heading p {
  max-width: 760px;
  margin-bottom: 0;
  color: #394448;
  font-size: 18px;
}

.hero-metrics {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: 10px;
}

.hero-metrics div {
  min-width: 118px;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero-metrics strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--blue);
}

.breadcrumbs a:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
}

.breadcrumb-separator {
  width: 6px;
  height: 6px;
  border-top: 1.5px solid #a9a197;
  border-right: 1.5px solid #a9a197;
  transform: rotate(45deg);
}

.quick-actions {
  position: sticky;
  top: 72px;
  z-index: 9;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 760;
}

.button.primary {
  background: var(--green);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  background: var(--blue);
  color: #ffffff;
}

.button.ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.button.is-selected {
  border-color: var(--green);
  color: var(--green-dark);
}

.page-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  margin: 32px auto 72px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel,
.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 22px;
}

.panel h2,
.section h2 {
  margin-bottom: 16px;
  font-size: 22px;
  line-height: 1.2;
}

dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  font-weight: 650;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.revealed-contact {
  display: none;
}

.contact-line.is-visible .masked-contact {
  display: none;
}

.contact-line.is-visible .revealed-contact {
  display: inline;
}

.pill-button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(31, 107, 87, 0.28);
  border-radius: 999px;
  background: rgba(31, 107, 87, 0.1);
  color: var(--green-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.pill-button:hover {
  background: rgba(31, 107, 87, 0.16);
}

.social-links {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.social-links > span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.social-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-links a {
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(35, 76, 123, 0.1);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.social-links a:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-preview {
  display: grid;
  place-items: center;
  min-height: 142px;
  margin-top: 18px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(31, 107, 87, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(31, 107, 87, 0.14) 1px, transparent 1px), #ede8da;
  background-size: 26px 26px;
  border: 1px solid var(--line);
  color: var(--green-dark);
  font-weight: 800;
}

.check-list,
.compact-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.compact-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before,
.compact-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.content {
  display: grid;
  gap: 22px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  gap: 26px;
  align-items: start;
}

.about-section h2 {
  margin-bottom: 12px;
}

.about-section p {
  margin-bottom: 14px;
  color: #414b4f;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.profile-facts {
  display: grid;
  gap: 16px;
}

.fact-group h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.2;
}

.fact-grid {
  display: grid;
  gap: 10px;
}

.fact-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.fact-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.fact-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--green-dark);
  font-size: 19px;
  line-height: 1.15;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-auto-rows: 150px;
  gap: 10px;
}

.photo-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 150px;
  padding: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 107, 87, 0.75), rgba(35, 76, 123, 0.55)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    #dcd6c8;
  background-size: auto, 24px 24px, auto;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
}

.photo-tile.large {
  grid-row: span 2;
}

.photo-tile span {
  position: relative;
  z-index: 1;
  font-weight: 850;
}

.photo-tile::after {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(transparent, rgba(31, 37, 40, 0.58));
  content: "";
}

.photo-tile:hover {
  transform: translateY(-1px);
}

.section {
  padding: 26px;
}

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

.section-header h2 {
  margin-bottom: 0;
}

.section-header a {
  color: var(--blue);
  font-weight: 760;
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.tab {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 760;
}

.tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 5px 18px rgba(31, 37, 40, 0.08);
}

.service-list {
  display: none;
}

.service-list.is-active {
  display: grid;
  gap: 12px;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.service-row h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.service-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-row strong {
  color: var(--rust);
  white-space: nowrap;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
}

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

.tag-cloud a {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(35, 76, 123, 0.1);
  color: var(--blue);
  font-weight: 700;
}

.tag-cloud a.featured-tag {
  background: rgba(31, 107, 87, 0.14);
  color: var(--green-dark);
}

.tag-cloud a:hover,
.compact-list a:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.compact-list a {
  color: var(--blue);
  font-weight: 700;
}

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

.review {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.review-top span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(211, 155, 42, 0.16);
  color: #6f4a07;
  font-weight: 850;
}

.review p {
  margin-bottom: 0;
  color: #414b4f;
}

.contact-form-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.contact-form-section p {
  color: var(--muted);
}

.lead-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #3e484c;
  font-size: 14px;
  font-weight: 760;
}

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

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(35, 76, 123, 0.28);
  outline-offset: 2px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 760;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero-inner,
  .page-layout,
  .about-section,
  .contact-form-section {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sidebar {
    order: 2;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 0 16px;
  }

  .nav-action {
    display: none;
  }

  .hero-inner,
  .page-layout {
    width: min(100% - 28px, 1180px);
  }

  .hero-inner {
    padding: 34px 0 28px;
  }

  .profile-heading {
    grid-template-columns: 1fr;
  }

  .logo-box {
    width: 74px;
    height: 74px;
    font-size: 24px;
  }

  h1 {
    font-size: 38px;
  }

  .profile-heading p {
    font-size: 16px;
  }

  .quick-actions {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .reviews,
  .photo-grid,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-auto-rows: 140px;
  }

  .photo-tile.large {
    grid-row: span 1;
  }

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

  .tabs {
    width: 100%;
    overflow-x: auto;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .service-row strong {
    white-space: normal;
  }
}
