:root {
  --spruce: #123c38;
  --spruce-deep: #0c2b28;
  --cream: #f6f1e8;
  --paper: #f3eee6;
  --white: #fffcf8;
  --ink: #1b2422;
  --muted: #5d675f;
  --line: #e3d9cc;
  --brass: #8d6b38;
  --brass-soft: #f4ecdf;
  --chip: #e6f0ed;
  --shadow: 0 18px 40px rgba(18, 60, 56, 0.08);
  --radius: 22px;
  --header: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.2rem;
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.85;
  font-size: 1rem;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

::selection {
  background: #d5e6e1;
  color: var(--spruce-deep);
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--white);
  color: var(--spruce);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
}

.skip:focus {
  top: 0.7rem;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--spruce);
  color: var(--cream);
  border-top: 3px solid #c6a36a;
  box-shadow: 0 8px 24px rgba(12, 43, 40, 0.16);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-height: 44px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(246, 241, 232, 0.08);
}

.brand-text {
  display: grid;
  line-height: 1.35;
}

.brand-name {
  font-weight: 700;
  font-size: 1.08rem;
}

.brand-role,
.role-line {
  color: rgba(246, 241, 232, 0.78);
  font-size: 0.84rem;
}

.role-line {
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 232, 0.35);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.site-nav {
  display: none;
  width: 100%;
  padding-bottom: 0.8rem;
}

.site-nav.is-open {
  display: grid;
}

.site-nav a {
  text-decoration: none;
  padding: 0.75rem 0.15rem;
  border-top: 1px solid rgba(246, 241, 232, 0.12);
  min-height: 44px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #f0d7ae;
}

.hero {
  padding: 2.2rem 0 1.2rem;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(18, 60, 56, 0.1), transparent 46%),
    linear-gradient(180deg, #f8f4ed 0%, var(--paper) 100%);
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.eyebrow {
  margin-bottom: 0.35rem;
  color: var(--brass);
  font-weight: 700;
  font-size: 0.92rem;
}

h1 {
  margin-bottom: 0.25rem;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.25;
  font-weight: 700;
}

.lead,
.section-lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 42rem;
}

.search-card,
.listing-card,
.contact-card,
.services {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-card {
  border-radius: var(--radius);
  padding: 1.1rem;
}

.search-heading h2,
.section-head h2,
.about-grid h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.35;
}

.search-heading p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.fields {
  display: grid;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span {
  font-size: 0.9rem;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #d9d0c4;
  background: #fff;
  padding: 0.55rem 0.85rem;
}

.field input::placeholder {
  color: #6f675e;
}

.field input:focus-visible,
.field select:focus-visible,
.nav-toggle:focus-visible,
.btn:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible,
.contact-card a:focus-visible {
  outline: 2px solid var(--spruce);
  outline-offset: 2px;
}

.search-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.btn {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--spruce);
  color: var(--cream);
  cursor: pointer;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
}

.btn:hover {
  background: var(--spruce-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--spruce);
  border: 1px solid rgba(18, 60, 56, 0.28);
}

.btn-ghost:hover {
  background: var(--brass-soft);
}

.points {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.points li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(255, 252, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
}

.points span {
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--spruce);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.points p {
  margin: 0;
}

.section {
  padding: 2.6rem 0;
}

.section-head {
  margin-bottom: 1.2rem;
}

.listings-grid,
.contact-grid {
  display: grid;
  gap: 0.9rem;
}

.listing-card {
  border-radius: 18px;
  overflow: hidden;
}

.card-media {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(18, 60, 56, 0.08), transparent 42%),
    linear-gradient(180deg, #e7efeC 0%, #f7f2ea 100%);
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1rem 1.05rem 1.15rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--spruce);
  font-size: 0.82rem;
  font-weight: 700;
}

.chip-soft {
  background: var(--brass-soft);
  color: #6d542c;
}

.listing-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.12rem;
  line-height: 1.5;
}

.location,
.meta,
.description,
.price {
  margin-bottom: 0.45rem;
}

.location,
.meta,
.description {
  color: var(--muted);
}

.price {
  font-weight: 700;
  color: var(--spruce);
}

.price.is-empty {
  font-weight: 500;
  color: #6b645b;
}

.description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty {
  grid-column: 1 / -1;
  border: 1px dashed #cfc3b2;
  background: rgba(255, 252, 248, 0.7);
  border-radius: var(--radius);
  padding: 1.5rem 1.1rem;
  text-align: center;
}

.empty h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.empty p {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--muted);
}

.section-about {
  background: #fffdf9;
  border-block: 1px solid var(--line);
}

.about-grid {
  display: grid;
  gap: 1rem;
}

.prose p + p {
  margin-top: 0.8rem;
}

.services {
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 0.5rem;
  background: var(--spruce);
  color: var(--cream);
  box-shadow: none;
}

.services h3 {
  margin-bottom: 0.7rem;
  font-size: 1.15rem;
}

.services ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services li {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(246, 241, 232, 0.14);
}

.section-contact {
  background:
    linear-gradient(180deg, rgba(18, 60, 56, 0.05), transparent 28%),
    var(--paper);
}

.contact-card {
  border-radius: 16px;
  padding: 1rem 1.05rem;
  box-shadow: none;
  min-height: 108px;
}

.contact-card h3 {
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}

.contact-card p,
.contact-card a {
  margin: 0;
  overflow-wrap: anywhere;
}

.contact-card a {
  color: var(--spruce);
  font-weight: 700;
}

.contact-card.is-empty p {
  color: var(--muted);
}

.site-footer {
  background: var(--spruce-deep);
  color: var(--cream);
  padding: 1.6rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 0.8rem;
}

.site-footer .brand-name {
  margin-bottom: 0.15rem;
}

.site-footer .brand-role,
.site-footer p {
  margin-bottom: 0;
}

.fine {
  color: rgba(246, 241, 232, 0.78);
  max-width: 42rem;
}

@media (min-width: 720px) {
  .fields {
    grid-template-columns: 1fr 1fr;
  }

  .field-wide,
  .search-actions {
    grid-column: 1 / -1;
  }

  .search-actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .points,
  .listings-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-card {
    padding: 1.35rem;
  }
}

@media (min-width: 900px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .header-bar {
    width: auto;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    display: flex;
    width: auto;
    align-items: center;
    gap: 0.35rem 1.15rem;
    padding: 0;
  }

  .site-nav a {
    border-top: 0;
    padding: 0.35rem 0;
    min-height: 0;
    border-bottom: 2px solid transparent;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    border-bottom-color: #c6a36a;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: end;
  }

  .points {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .section {
    padding: 4.2rem 0;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
    gap: 1.5rem;
    align-items: start;
  }
}

@media (min-width: 1080px) {
  .listings-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
