/* Борса Имоти — начална страница */

:root {
  --home-orange-dark: oklch(0.54 0.15 55);
  --home-ink: oklch(0.235 0.025 178);
  --home-ink-soft: oklch(0.82 0.01 175);
  --home-cream: oklch(0.985 0.006 95);
}

.home-page {
  --home-header-height: 101px;
  background: var(--background);
}

.home-page .site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: oklch(1 0 0 / 92%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease;
}

.home-page .site-header.is-scrolled {
  box-shadow: 0 14px 34px oklch(0.2 0.01 175 / 9%);
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 18px;
  z-index: 250;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--foreground);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 18px;
}

/* Header dropdown */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.desktop-nav .nav-trigger {
  gap: 5px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% - 18px);
  left: -18px;
  z-index: 120;
  width: 246px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 22px 48px oklch(0.2 0.01 175 / 14%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.desktop-nav .nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav .nav-dropdown a:hover {
  background: var(--accent);
  color: var(--home-orange-dark);
}

.nav-dropdown svg {
  width: 14px;
  height: 14px;
  color: var(--muted-foreground);
}

/* Buttons */
.btn-lg {
  height: 49px;
  padding: 0 23px;
  font-size: 15px;
  border-radius: 7px;
}

.btn-light {
  background: oklch(1 0 0 / 96%);
  border-color: transparent;
  color: var(--foreground);
}

.btn-light:hover {
  background: var(--primary-soft);
}

.btn-dark {
  background: var(--home-ink);
  border-color: var(--home-ink);
  color: oklch(0.985 0.003 100);
}

.btn-dark:hover {
  background: oklch(0.2 0.025 178);
}

.btn-cta-outline {
  border-color: oklch(0.27 0.03 60 / 38%);
  background: transparent;
  color: var(--foreground);
}

.btn-cta-outline:hover {
  background: oklch(1 0 0 / 18%);
}

/* Hero */
.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--home-header-height));
  min-height: calc(100svh - var(--home-header-height));
  min-height: calc(100dvh - var(--home-header-height));
  overflow: hidden;
  padding: 54px 0 30px;
  background: var(--home-ink);
  color: oklch(0.985 0.004 100);
}

.home-hero > .hero-grid {
  flex: 1;
  width: 100%;
}

.hero-search-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 30px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-media {
  z-index: 0;
  overflow: hidden;
  background: var(--home-ink);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 44%;
  filter: saturate(0.92) contrast(1.02);
  transform: scale(1.01);
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      oklch(0.14 0.02 175 / 86%) 0%,
      oklch(0.14 0.02 175 / 72%) 34%,
      oklch(0.14 0.02 175 / 42%) 68%,
      oklch(0.14 0.02 175 / 26%) 100%
    ),
    linear-gradient(
      180deg,
      oklch(0.14 0.02 175 / 30%) 0%,
      transparent 32%,
      oklch(0.14 0.02 175 / 50%) 100%
    );
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy {
  width: 100%;
  max-width: 760px;
  padding-top: 8px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: oklch(0.95 0.008 95 / 78%);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.hero-eyebrow-line {
  display: inline-block;
  width: 38px;
  height: 2px;
  background: var(--primary);
}

.hero-copy h1 {
  margin: 18px 0 20px;
  color: oklch(0.99 0.003 100);
  font-size: clamp(47px, 5.2vw, 72px);
  font-weight: 600;
  letter-spacing: -2.5px;
  line-height: 1.04;
}

.hero-accent {
  color: oklch(0.86 0.11 78);
  font-style: italic;
  font-weight: 500;
}

.hero-lead {
  max-width: 610px;
  margin: 0 0 24px;
  color: oklch(0.95 0.005 100 / 82%);
  font-size: 17px;
  line-height: 1.72;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid oklch(1 0 0 / 30%);
  border-radius: 999px;
  background: oklch(1 0 0 / 92%);
  color: var(--foreground);
  font-size: 13px;
  font-weight: 700;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-chip svg {
  width: 13px;
  height: 13px;
  opacity: 0.6;
}

.hero-chip:hover {
  background: oklch(1 0 0);
  color: var(--home-orange-dark);
  transform: translateY(-1px);
}

.hero-chip:focus-visible {
  outline: 2px solid oklch(1 0 0);
  outline-offset: 3px;
}

.hero-stats {
  display: flex;
  max-width: 620px;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid oklch(1 0 0 / 18%);
}

.hero-stats > div {
  flex: 1;
  min-width: 0;
  padding: 0 22px;
  border-left: 1px solid oklch(1 0 0 / 14%);
}

.hero-stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stats dt {
  color: oklch(0.99 0.003 100);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 500;
  line-height: 1.05;
  white-space: nowrap;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: oklch(0.95 0.005 100 / 68%);
  font-size: 12px;
  line-height: 1.4;
}

/* Hero search */
.home-search {
  position: relative;
  z-index: 5;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-search-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 5px;
  border: 1px solid oklch(1 0 0 / 20%);
  border-radius: 999px;
  background: oklch(0.13 0.018 175 / 55%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.home-search-tabs {
  display: flex;
  gap: 2px;
}

.home-search-tab {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  color: oklch(0.97 0.004 100 / 68%);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease;
}

.home-search-tab:hover {
  background: oklch(1 0 0 / 8%);
  color: oklch(1 0 0);
}

.home-search-tab.is-active {
  background: oklch(1 0 0 / 96%);
  color: var(--foreground);
  box-shadow: 0 2px 10px oklch(0.1 0.02 175 / 16%);
}

.home-search-tab.is-active::after {
  display: none;
}

.home-search-advanced {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px 0 3px;
  color: oklch(0.97 0.004 100 / 78%);
  font-size: 12px;
  font-weight: 700;
}

.home-search-advanced svg {
  width: 15px;
  height: 15px;
}

.home-search-advanced:hover {
  color: oklch(1 0 0);
}

.home-search-head a:focus-visible {
  outline: 2px solid oklch(1 0 0);
  outline-offset: 2px;
}

.home-search-fields {
  display: grid;
  grid-template-columns: 1.02fr 1.16fr 1.3fr auto;
  align-items: stretch;
  padding: 6px;
  border: 1px solid oklch(1 0 0 / 48%);
  border-radius: 28px;
  background: oklch(1 0 0 / 97%);
  box-shadow: 0 24px 60px oklch(0.08 0.02 175 / 34%);
}

.home-search-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 20px;
  border-left: 1px solid oklch(0.2 0.02 175 / 10%);
}

.home-search-field:first-child {
  border-left: 0;
}

.home-search-field > span {
  color: var(--muted-foreground);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.home-search-field select,
.home-search-field input {
  width: 100%;
  height: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 700;
}

.home-search-field select:focus-visible,
.home-search-field input:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--home-orange-dark);
  outline-offset: 3px;
}

.home-search-field input::placeholder {
  color: var(--muted-foreground);
  font-weight: 500;
}

.home-search-submit {
  height: 58px;
  margin: 0 0 0 4px;
  padding: 0 24px;
  border-radius: 22px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  white-space: nowrap;
}

.home-search-submit:hover {
  background: oklch(0.67 0.16 58);
}

.home-search-submit:focus-visible {
  outline: 3px solid var(--home-ink);
  outline-offset: 3px;
  box-shadow: none;
}

/* Section headings */
.home-section {
  padding: 86px 0;
}

.home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 38px;
}

.home-section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(31px, 3.1vw, 44px);
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.13;
}

.home-section-heading > p {
  justify-self: end;
  max-width: 520px;
  margin: 0 0 4px;
  color: var(--muted-foreground);
  font-size: 16px;
  line-height: 1.75;
}

.home-section-heading--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.home-section-heading--row h2 {
  margin-bottom: 0;
}

/* Categories */
.home-categories {
  padding-top: 80px;
}

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

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 188px;
  padding: 25px 22px 23px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: oklch(0.72 0.171 61 / 45%);
  box-shadow: 0 20px 42px oklch(0.2 0.015 175 / 10%);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 47px;
  margin-bottom: 9px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--home-orange-dark);
}

.category-icon svg {
  width: 23px;
  height: 23px;
}

.category-name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.category-desc {
  padding-right: 16px;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.55;
}

.category-arrow {
  position: absolute;
  right: 18px;
  bottom: 19px;
  width: 17px;
  height: 17px;
  color: var(--muted-foreground);
  transition: color 0.2s ease, transform 0.2s ease;
}

.category-card:hover .category-arrow {
  color: var(--home-orange-dark);
  transform: translate(2px, -2px);
}

/* Featured listings */
.home-featured {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

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

.home-listing-grid .result-info {
  padding: 23px 24px 24px;
}

.home-listing-grid .result-title h3 {
  margin: 10px 0 9px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.home-listing-grid .result-title:hover h3 {
  color: var(--home-orange-dark);
}

.home-listing-desc {
  margin: 0 0 16px;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.7;
}

.home-listing-grid .result-bottom {
  padding-top: 18px;
}

/* About */
.home-about {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: var(--home-ink);
  color: oklch(0.97 0.004 100);
}

.about-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, oklch(0.72 0.171 61 / 16%), transparent 42%),
    linear-gradient(to right, oklch(1 0 0 / 4%) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 4%) 1px, transparent 1px);
  background-size: auto, 84px 84px, 84px 84px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, oklch(0 0 0 / 35%) 100%);
  mask-image: linear-gradient(90deg, #000 0%, oklch(0 0 0 / 35%) 100%);
  pointer-events: none;
}

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media figure {
  aspect-ratio: 4 / 5;
  max-height: 570px;
  margin: 0;
  overflow: hidden;
  border-radius: 230px 230px 16px 16px;
  box-shadow: 0 36px 70px oklch(0.12 0.02 178 / 35%);
}

.about-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 38%;
}

.about-badge {
  position: absolute;
  right: -24px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--foreground);
  box-shadow: 0 18px 38px oklch(0.12 0.02 178 / 26%);
}

.about-badge strong {
  font-size: 39px;
  font-weight: 800;
  line-height: 1;
}

.about-badge span {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.section-eyebrow--light {
  color: oklch(0.73 0.05 75);
}

.section-eyebrow--dark {
  color: oklch(0.27 0.03 60 / 82%);
}

.about-copy h2 {
  margin: 14px 0 22px;
  color: oklch(0.985 0.003 100);
  font-size: clamp(34px, 3.5vw, 49px);
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1.1;
}

.about-copy > p {
  max-width: 580px;
  margin: 0 0 27px;
  color: var(--home-ink-soft);
  font-size: 16px;
  line-height: 1.82;
}

.about-points {
  display: grid;
  gap: 13px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: oklch(0.9 0.005 100);
  font-size: 14px;
  line-height: 1.65;
}

.about-points svg {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: oklch(0.72 0.171 61 / 18%);
  color: var(--primary);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 286px;
  padding: 29px 26px 26px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: oklch(0.72 0.171 61 / 40%);
  box-shadow: 0 20px 42px oklch(0.2 0.015 175 / 9%);
}

.service-number {
  position: absolute;
  top: 25px;
  right: 24px;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--home-orange-dark);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin: 0 0 9px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.35;
}

.service-card p {
  margin: 0 0 19px;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.72;
}

.service-card > a {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  font-size: 12px;
  font-weight: 800;
  color: var(--foreground);
}

.service-card > a svg {
  width: 14px;
  height: 14px;
}

.service-card > a:hover {
  color: var(--home-orange-dark);
}

/* Process */
.home-process {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.process-heading {
  margin-bottom: 40px;
  text-align: center;
}

.process-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 3vw, 41px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-grid li {
  position: relative;
  padding: 0 30px;
  border-left: 1px solid var(--border);
}

.process-grid li:first-child {
  padding-left: 0;
  border-left: 0;
}

.process-grid li:last-child {
  padding-right: 0;
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid oklch(0.72 0.171 61 / 55%);
  border-radius: 50%;
  background: var(--card);
  color: var(--home-orange-dark);
  font-size: 12px;
  font-weight: 800;
}

.process-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.process-grid p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.72;
}

/* CTA */
.home-cta {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  background: var(--primary);
  color: var(--foreground);
}

.cta-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, oklch(1 0 0 / 18%), transparent 36%),
    repeating-linear-gradient(125deg, oklch(0.27 0.03 60 / 5%) 0 1px, transparent 1px 26px);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
}

.cta-inner h2 {
  margin: 11px 0 14px;
  font-size: clamp(31px, 3.4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.cta-inner p {
  max-width: 610px;
  margin: 0;
  color: oklch(0.27 0.03 60 / 88%);
  font-size: 15px;
  line-height: 1.72;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 10px;
  min-width: 230px;
}

.cta-actions .btn {
  width: 100%;
}

/* Offices */
.home-offices {
  padding-top: 86px;
}

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

.office-card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 25px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.office-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px oklch(0.2 0.015 175 / 9%);
}

.office-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.office-city {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--home-orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.office-card-head > svg {
  width: 22px;
  height: 22px;
  color: var(--muted-foreground);
}

.office-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.35;
}

.office-address {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 17px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.55;
}

.office-address svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--primary);
}

.office-address:hover {
  color: var(--home-orange-dark);
}

.office-contacts {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}

.office-contacts a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--foreground);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.office-contacts svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--muted-foreground);
}

.office-contacts a:hover {
  color: var(--home-orange-dark);
}

.office-map {
  align-self: flex-start;
  margin-top: auto;
}

.offices-hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.offices-hours svg {
  width: 16px;
  height: 16px;
}

/* Footer */
.home-footer {
  padding-top: 68px;
  border-top: 3px solid var(--primary);
  background: oklch(0.215 0.025 178);
  color: var(--home-ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.7fr minmax(0, 2.4fr);
  gap: 48px;
  padding-bottom: 52px;
}

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

.footer-logo {
  display: inline-flex;
  padding: 11px 16px;
  border-radius: 9px;
  background: oklch(1 0 0 / 97%);
}

.footer-logo img {
  display: block;
  width: 118px;
  height: auto;
}

.footer-brand p {
  max-width: 330px;
  margin: 18px 0 20px;
  color: var(--home-ink-soft);
  font-size: 13px;
  line-height: 1.78;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid oklch(1 0 0 / 17%);
  border-radius: 6px;
  color: oklch(0.97 0.003 100);
  font-size: 12px;
  font-weight: 700;
}

.footer-social:hover {
  background: oklch(1 0 0 / 9%);
}

.footer-social svg {
  width: 15px;
  height: 15px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-nav h3,
.footer-contact h3 {
  margin: 0 0 8px;
  color: oklch(0.97 0.003 100);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.footer-nav a {
  color: var(--home-ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

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

.footer-contact p {
  margin: 0 0 14px;
  color: var(--home-ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.footer-contact a,
.footer-hours {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--home-ink-soft);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.footer-contact a:hover {
  color: var(--primary);
}

.footer-contact svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid oklch(1 0 0 / 11%);
}

.footer-bottom > span {
  color: oklch(0.7 0.01 175);
  font-size: 11px;
}

.footer-bottom > a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: oklch(0.97 0.003 100);
  font-size: 11px;
  font-weight: 700;
}

.footer-bottom > a:hover {
  color: var(--primary);
}

.footer-bottom svg {
  width: 14px;
  height: 14px;
}

/* Dialog */
.dialog-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--home-orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.dialog-offices {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.5;
}

.dialog-offices strong {
  margin-right: 4px;
  color: var(--foreground);
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: hero-rise 0.7s cubic-bezier(0.22, 0.7, 0.25, 1) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 0.06s;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 0.12s;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 0.18s;
  }

  .hero-copy > :nth-child(5) {
    animation-delay: 0.24s;
  }

  .hero-media img {
    animation: hero-zoom 1.4s cubic-bezier(0.22, 0.7, 0.25, 1) both;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1.01);
  }
}

/* Responsive */
@media (max-width: 850px) {
  .home-page {
    --home-header-height: 86px;
  }
}

@media (max-width: 700px) {
  .home-page {
    --home-header-height: 79px;
  }
}

@media (max-width: 1250px) {
  .hero-copy h1 {
    font-size: clamp(44px, 4.9vw, 64px);
    letter-spacing: -2.2px;
  }

  .about-grid {
    gap: 54px;
  }

  .footer-grid {
    gap: 38px;
  }
}

@media (max-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-card {
    min-height: 172px;
  }

  .home-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-listing-grid .result-card:last-child {
    display: none;
  }

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

  .service-card {
    min-height: 250px;
  }

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

  .office-card:last-child {
    grid-column: span 2;
  }

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

  .footer-offices {
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px solid oklch(1 0 0 / 11%);
  }
}

@media (max-width: 980px) {
  .home-hero {
    padding: 34px 0 22px;
  }

  .hero-search-wrap {
    padding-top: 22px;
  }

  .hero-shade {
    background:
      linear-gradient(
        180deg,
        oklch(0.14 0.02 175 / 62%) 0%,
        oklch(0.14 0.02 175 / 56%) 38%,
        oklch(0.14 0.02 175 / 76%) 100%
      ),
      linear-gradient(
        90deg,
        oklch(0.14 0.02 175 / 46%) 0%,
        oklch(0.14 0.02 175 / 16%) 100%
      );
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    align-items: stretch;
  }

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

  .hero-copy h1 {
    margin: 14px 0 16px;
    font-size: clamp(40px, 7vw, 56px);
    letter-spacing: -1.8px;
  }

  .hero-lead {
    max-width: 620px;
    margin-bottom: 18px;
    font-size: 15.5px;
    line-height: 1.65;
  }

  .hero-chips {
    gap: 7px;
  }

  .hero-chip {
    height: 34px;
    padding: 0 13px;
    font-size: 12.5px;
  }

  .hero-stats {
    max-width: 600px;
    margin-top: 20px;
    padding-top: 14px;
  }

  .hero-stats > div {
    padding: 0 18px;
  }

  .hero-stats dt {
    font-size: 20px;
  }

  .hero-stats dd {
    margin-top: 4px;
    font-size: 11px;
  }

  .home-search-head {
    margin-bottom: 10px;
  }

  .home-search-tab {
    padding: 7px 16px;
    font-size: 12.5px;
  }

  .home-search-advanced {
    display: none;
  }

  .home-search-fields {
    grid-template-columns: 1fr 1fr auto;
    padding: 5px;
    border-radius: 24px;
  }

  .home-search-field {
    padding: 9px 16px;
    border-left: 1px solid oklch(0.2 0.02 175 / 10%);
  }

  .home-search-field:first-child {
    border-left: 0;
  }

  .home-search-field:nth-child(2) {
    padding-left: 16px;
  }

  .home-search-field:nth-child(3) {
    display: none;
  }

  .home-search-submit {
    min-height: 52px;
    height: 52px;
    margin-left: 4px;
    padding: 0 20px;
    border-radius: 19px;
    font-size: 13px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .about-media {
    width: min(100%, 460px);
    margin: 0 auto;
  }

  .about-badge {
    right: -12px;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 0;
  }

  .process-grid li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .cta-inner {
    display: block;
  }

  .cta-actions {
    margin-top: 28px;
  }

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

  .footer-offices {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .home-page .page-container {
    padding-right: 20px;
    padding-left: 20px;
  }

  .home-page .header-inner {
    height: 78px;
  }

  .home-page .brand {
    width: 108px;
  }

  .home-page .brand img {
    height: 64px;
  }

  .home-page .home-mobile-nav:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 6px 20px 18px;
    border-top: 1px solid var(--border);
    background: var(--card);
  }

  .home-page .home-mobile-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: 600;
  }

  .home-page .home-mobile-nav a[aria-current="page"] {
    color: var(--home-orange-dark);
  }

  .home-page .home-mobile-nav .mobile-nav-cta {
    width: 100%;
    height: 44px;
    margin-top: 15px;
    border-bottom: 0;
  }

  .home-hero {
    padding: 28px 0 18px;
  }

  .hero-search-wrap {
    padding-top: 18px;
  }

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

  .hero-eyebrow {
    gap: 10px;
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .hero-eyebrow-line {
    width: 30px;
  }

  .hero-copy h1 {
    margin: 13px 0 15px;
    font-size: clamp(36px, 10vw, 46px);
    letter-spacing: -1.6px;
  }

  .hero-lead {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.62;
  }

  .hero-chips {
    flex-wrap: wrap;
    gap: 7px;
    margin-right: 0;
    padding-right: 0;
    overflow: visible;
  }

  .hero-chip {
    flex: 0 0 auto;
    height: 33px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero-stats {
    margin-top: 18px;
    padding-top: 12px;
  }

  .hero-stats > div {
    padding: 0 10px;
  }

  .hero-stats dt {
    font-size: 16px;
  }

  .hero-stats dd {
    margin-top: 3px;
    font-size: 9.5px;
  }

  .home-search-head {
    margin-bottom: 9px;
    padding: 4px;
  }

  .home-search-tab {
    padding: 7px 14px;
    font-size: 12px;
  }

  .home-search-fields {
    grid-template-columns: 1fr 1fr;
    padding: 5px;
    border-radius: 22px;
  }

  .home-search-field {
    padding: 8px 12px;
  }

  .home-search-field:nth-child(2) {
    padding-left: 12px;
  }

  .home-search-field > span {
    font-size: 9px;
  }

  .home-search-field select,
  .home-search-field input {
    height: 23px;
    font-size: 13px;
  }

  .home-search-submit {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 46px;
    height: 46px;
    margin: 5px 0 0;
    padding: 0 16px;
    border-radius: 17px;
    font-size: 13px;
  }

  .home-section {
    padding: 62px 0;
  }

  .home-section-heading {
    display: block;
    margin-bottom: 30px;
  }

  .home-section-heading > p {
    margin-top: 14px;
    font-size: 14px;
  }

  .home-section-heading--row {
    display: flex;
    align-items: flex-end;
  }

  .home-section-heading--row .btn {
    flex-shrink: 0;
    height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .home-categories {
    padding-top: 58px;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .category-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas: "icon name arrow" "icon desc arrow";
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    min-height: 0;
    padding: 12px 14px;
  }

  .category-card:last-child {
    grid-column: auto;
    min-height: 0;
  }

  .category-icon {
    grid-area: icon;
    width: 44px;
    height: 44px;
    margin-bottom: 0;
  }

  .category-name {
    grid-area: name;
    align-self: end;
    font-size: 16px;
  }

  .category-desc {
    grid-area: desc;
    align-self: start;
    padding-right: 0;
    font-size: 12px;
  }

  .category-arrow {
    grid-area: arrow;
    position: static;
  }

  .home-listing-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .home-listing-grid .result-card:last-child {
    display: flex;
  }

  .home-listing-grid .result-title h3 {
    font-size: 21px;
  }

  .home-about {
    padding: 64px 0;
  }

  .about-media figure {
    max-height: 440px;
  }

  .about-badge {
    right: 4px;
    bottom: 18px;
    width: 108px;
    height: 108px;
  }

  .about-badge strong {
    font-size: 34px;
  }

  .about-copy h2 {
    font-size: 35px;
    letter-spacing: -1.2px;
  }

  .about-copy > p {
    font-size: 15px;
  }

  .about-points li {
    font-size: 14px;
  }

  .about-copy .btn {
    width: 100%;
  }

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

  .service-card {
    min-height: 0;
    padding: 24px 22px;
  }

  .service-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 18px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .process-grid li,
  .process-grid li:nth-child(3) {
    padding: 0 0 0 70px;
    border-left: 0;
  }

  .process-grid li:not(:last-child) {
    padding-bottom: 26px;
    border-bottom: 1px solid var(--border);
  }

  .process-number {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
  }

  .process-grid li:first-child {
    padding-left: 70px;
  }

  .home-cta {
    padding: 48px 0 54px;
  }

  .cta-inner h2 {
    font-size: 34px;
    letter-spacing: -1.2px;
  }

  .cta-inner p {
    font-size: 14px;
  }

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

  .cta-actions .btn {
    width: 100%;
  }

  .home-offices {
    padding-top: 62px;
    padding-bottom: 74px;
  }

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

  .office-card:last-child {
    grid-column: auto;
  }

  .offices-hours {
    align-items: flex-start;
    text-align: left;
  }

  .offices-hours-time {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 34px;
  }

  .footer-offices {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 0;
    border-top: 0;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .home-page .page-container {
    padding-right: 14px;
    padding-left: 14px;
  }

  .home-page .header-inner {
    gap: 6px;
  }

  .home-page .brand {
    width: 78px;
  }

  .home-page .mobile-menu {
    flex: none;
    width: 36px;
    height: 36px;
  }

  .home-page .header-phone {
    gap: 6px;
    font-size: 13px;
  }

  .home-page .header-saved {
    width: 36px;
    height: 36px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-stats dt {
    font-size: 15px;
  }

  .hero-stats dd {
    font-size: 9px;
  }

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

  .category-card:last-child {
    grid-column: auto;
  }

  .home-section-heading--row {
    display: block;
  }

  .home-section-heading--row .btn {
    margin-top: 18px;
  }
}

@media (max-width: 980px) and (max-height: 840px) {
  .home-hero {
    padding: 22px 0 16px;
  }

  .hero-search-wrap {
    padding-top: 14px;
  }

  .hero-grid {
    gap: 0;
  }

  .hero-copy h1 {
    margin: 10px 0 12px;
    font-size: clamp(32px, 7.6vw, 48px);
    letter-spacing: -1.4px;
  }

  .hero-lead {
    display: -webkit-box;
    margin-bottom: 12px;
    overflow: hidden;
    font-size: 13.5px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .hero-chip {
    height: 32px;
    font-size: 12px;
  }

  .hero-stats {
    margin-top: 14px;
    padding-top: 10px;
  }

  .hero-stats dt {
    font-size: 15px;
  }

  .hero-stats dd {
    margin-top: 3px;
    font-size: 9px;
  }

  .home-search-head {
    margin-bottom: 8px;
  }

  .home-search-tab {
    padding: 6px 14px;
    font-size: 12px;
  }

  .home-search-field {
    padding: 7px 12px;
  }

  .home-search-submit {
    min-height: 46px;
    height: 46px;
  }
}

@media (max-width: 980px) and (max-height: 620px) {
  .home-hero {
    padding: 14px 0 10px;
  }

  .hero-search-wrap {
    padding-top: 10px;
  }

  .hero-copy h1 {
    margin: 8px 0 10px;
    font-size: clamp(28px, 8vw, 34px);
  }

  .hero-lead,
  .hero-chips,
  .hero-stats {
    display: none;
  }

  .hero-grid {
    gap: 0;
  }

  .home-search-head {
    margin-bottom: 7px;
  }

  .home-search-field {
    padding: 6px 10px;
  }

  .home-search-submit {
    min-height: 42px;
    height: 42px;
  }
}

@media (min-width: 981px) and (max-height: 820px) {
  .home-hero {
    padding: 30px 0 22px;
  }

  .hero-search-wrap {
    padding-top: 20px;
  }

  .hero-grid {
    gap: 0;
    align-items: stretch;
  }

  .hero-copy {
    align-self: center;
    padding-top: 0;
  }

  .hero-copy h1 {
    margin: 14px 0 16px;
    font-size: clamp(42px, 5vw, 60px);
    letter-spacing: -1.9px;
  }

  .hero-lead {
    max-width: 560px;
    margin-bottom: 18px;
    font-size: 14.5px;
    line-height: 1.65;
  }

  .hero-chips {
    gap: 7px;
  }

  .hero-chip {
    height: 33px;
    font-size: 12.5px;
  }

  .hero-stats {
    max-width: 560px;
    margin-top: 18px;
    padding-top: 12px;
  }

  .hero-stats dt {
    font-size: 18px;
  }

  .hero-stats dd {
    margin-top: 3px;
    font-size: 10px;
  }

  .home-search-head {
    margin-bottom: 9px;
  }

  .home-search-tab {
    padding: 7px 16px;
    font-size: 12.5px;
  }

  .home-search-field {
    padding: 8px 18px;
  }

  .home-search-submit {
    height: 52px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown,
  .category-card,
  .service-card,
  .office-card {
    transition: none;
  }
}
