/* ==========================================================================
   نمایشگاه احسان مختاری — main stylesheet
   Palette: charcoal #1A1A1A, red #B3141B, wheat #F2B705, cream #F6F3EC
   Sharp corners, heavy headings, mobile-first.
   ========================================================================== */

/* Self-hosted Vazirmatn — no request to fonts.googleapis.com, which is
   unreliable on Iranian mobile networks and blocks the first paint. */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.cdc140628f11.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-SemiBold.9260c1927872.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-ExtraBold.a0f99309cd35.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #b3141b;
  --red-dark: #8e0f15;
  --charcoal: #1a1a1a;
  --charcoal-2: #242424;
  --charcoal-3: #333;
  --cream: #f6f3ec;
  --cream-2: #efe9dc;
  --wheat: #f2b705;
  --green: #2f6b3a;
  --ink: #1a1a1a;
  --muted: #5c584f;
  --line: #d9d2c3;
  --white: #fff;

  --container: 1200px;
  --gutter: 16px;
  --radius: 0;

  --shadow-sm: 0 1px 0 rgba(26, 26, 26, 0.06);
  --shadow: 0 10px 26px -18px rgba(26, 26, 26, 0.45);

  --font: "Vazirmatn", "Vazir", "IRANSans", "Noto Naskh Arabic", "Segoe UI",
    Tahoma, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  font-feature-settings: "ss02";
  overflow-x: hidden;
}

/* The fixed mobile action bar covers the last line of the page otherwise. */
@media (max-width: 899px) {
  body {
    padding-bottom: 68px;
  }
}

img,
svg,
iframe,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(1.85rem, 4.6vw, 3.1rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--red);
  text-decoration: none;
}

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

ul,
ol {
  margin: 0 0 1rem;
  padding-inline-start: 1.25rem;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 200;
  background: var(--wheat);
  color: var(--charcoal);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
}

.skip-link:focus {
  inset-inline-start: 0;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section--tight {
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
}

.section--cream {
  background: var(--cream-2);
}

.section--charcoal {
  background: var(--charcoal);
  color: var(--cream);
}

.section-head {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-title {
  margin: 0;
}

.section-sub {
  margin: 0.5rem 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.section--charcoal .section-sub {
  color: #cfc9bb;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section--charcoal .eyebrow {
  color: var(--wheat);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 4px;
  background: currentColor;
}

.lead {
  font-size: 1.06rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.5rem);
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

/* Diagonal stripe divider — echoes the business card. */
.stripe-divider {
  height: 18px;
  border-top: 4px solid var(--red);
  border-bottom: 1px solid rgba(26, 26, 26, 0.35);
  background: repeating-linear-gradient(
      115deg,
      transparent 0 17px,
      rgba(246, 243, 236, 0.16) 17px 19px
    ),
    var(--charcoal);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.6rem 1.15rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease,
    border-color 0.16s ease, transform 0.16s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn--dark {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}

.btn--dark:hover {
  background: #000;
  border-color: #000;
  color: var(--cream);
}

.btn--wheat {
  background: var(--wheat);
  color: var(--charcoal);
  border-color: var(--wheat);
  font-weight: 800;
}

.btn--wheat:hover {
  background: #ffd23f;
  border-color: #ffd23f;
  color: var(--charcoal);
}

.btn--ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn--ghost:hover {
  background: var(--charcoal);
  color: var(--cream);
}

.btn--ghost-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 243, 236, 0.55);
}

.btn--ghost-light:hover {
  background: var(--cream);
  color: var(--charcoal);
  border-color: var(--cream);
}

.btn--lg {
  min-height: 54px;
  padding: 0.8rem 1.6rem;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* --------------------------------------------------------------------------
   Top bar + header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--charcoal);
  color: #d8d2c4;
  font-size: 0.82rem;
  padding-block: 0.4rem;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.topbar a {
  color: var(--cream);
  font-weight: 700;
}

.topbar__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.topbar__phones a {
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Phone numbers are bidi-neutral: keep the digit groups reading left-to-right
   (۰۹۳۸ ۷۲۸ ۶۳۴۵) instead of being reordered by the RTL paragraph. */
.tel-num {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.topbar__hours {
  display: none;
}

@media (min-width: 760px) {
  .topbar__hours {
    display: inline;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 3px solid var(--charcoal);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--charcoal);
  text-decoration: none;
  flex: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--charcoal);
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__name {
  font-size: 1.06rem;
  font-weight: 800;
}

.brand__sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  background: transparent;
  border: 2px solid var(--charcoal);
  border-radius: 0;
  font-weight: 700;
  color: var(--charcoal);
}

.nav-toggle__bars {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  position: relative;
}

.nav-toggle__bars::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  border-top: 3px solid currentColor;
  transform: translateY(-50%);
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: inline-block;
  padding: 0.55rem 0.7rem;
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
}

.nav__link:hover {
  text-decoration: none;
  border-bottom-color: var(--red);
  color: var(--charcoal);
}

.nav__link.is-active {
  border-bottom-color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-call {
  display: none;
}

@media (min-width: 980px) {
  .nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .header-call {
    display: inline-flex;
  }

  .site-header__inner {
    min-height: 84px;
  }
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.nav-drawer.is-open {
  display: block;
}

.nav-drawer__list {
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
}

.nav-drawer__list a {
  display: block;
  padding: 0.75rem var(--gutter);
  color: var(--charcoal);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.nav-drawer__list a:hover {
  background: var(--cream-2);
  text-decoration: none;
}

.nav-drawer__call {
  padding: 0.85rem var(--gutter) 1.1rem;
}

@media (min-width: 980px) {
  .nav-drawer {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--cream);
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  inset-inline-start: -12%;
  width: 46%;
  height: 170%;
  background: repeating-linear-gradient(
    115deg,
    rgba(179, 20, 27, 0.95) 0 26px,
    rgba(179, 20, 27, 0.55) 26px 30px,
    transparent 30px 58px
  );
  transform: rotate(6deg);
  opacity: 0.5;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 6px;
  background: var(--wheat);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 7vw, 5rem);
  max-width: 46rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.3rem 0.7rem;
  background: rgba(242, 183, 5, 0.14);
  border-inline-start: 4px solid var(--wheat);
  color: var(--wheat);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.6rem;
}

.hero__title-accent {
  color: var(--wheat);
}

.hero__lead {
  color: #ded8ca;
  font-size: clamp(1rem, 2vw, 1.12rem);
  max-width: 44ch;
  margin-bottom: 1.6rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  border-top: 1px solid rgba(246, 243, 236, 0.2);
  padding-top: 1.2rem;
  margin: 0;
}

.stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.stat__label {
  display: block;
  font-size: 0.8rem;
  color: #bfb8a8;
}

/* The browser's default dd indent (40px) pushed each number left of its own
   label, so the hero figures looked misaligned on narrow screens. */
.hero__stats dd {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Category grid
   -------------------------------------------------------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.1rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  color: var(--charcoal);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.cat-card:hover {
  text-decoration: none;
  color: var(--charcoal);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cat-card__icon {
  width: 40px;
  height: 40px;
  color: var(--red);
}

.cat-card__name {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.4;
}

.cat-card__count {
  font-size: 0.78rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Listing cards
   -------------------------------------------------------------------------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

@media (max-width: 420px) {
  .listing-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  position: relative;
  overflow: hidden;
}

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
  overflow: hidden;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card__img {
  transform: scale(1.035);
}

.card__badges {
  position: absolute;
  top: 0.6rem;
  inset-inline-start: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.7;
  color: var(--white);
  background: var(--charcoal);
}

.badge--available {
  background: var(--green);
}

.badge--reserved {
  background: var(--wheat);
  color: var(--charcoal);
}

.badge--sold {
  background: var(--charcoal);
}

.badge--featured {
  background: var(--red);
}

.ribbon {
  position: absolute;
  top: 18px;
  inset-inline-start: -42px;
  z-index: 3;
  padding: 0.28rem 3rem;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 800;
  transform: rotate(-35deg);
  pointer-events: none;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem 1rem;
  flex: 1;
}

.card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}

.card__title a {
  color: var(--charcoal);
}

.card__title a:hover {
  color: var(--red-dark);
  text-decoration: none;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--muted);
}

.card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card__meta li + li::before {
  content: "•";
  color: var(--line);
  margin-inline-end: 0.35rem;
}

.card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.6rem;
}

.card__price {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--charcoal);
  white-space: nowrap;
}

.card__price .unit {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.card__price--call {
  color: var(--red);
  font-size: 0.98rem;
}

.card__date {
  font-size: 0.73rem;
  color: var(--muted);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Feature / why-us
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .why-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.why-card {
  padding: 1.3rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--wheat);
}

.why-card__num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--wheat);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.why-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
}

.why-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Brands strip */
.brand-strip {
  background: var(--charcoal);
  color: var(--cream);
  padding-block: 1.1rem;
}

.brand-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  justify-content: center;
}

.brand-strip__label {
  font-size: 0.8rem;
  color: #a9a294;
}

.brand-strip__item {
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(246, 243, 236, 0.22);
  color: var(--cream);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--red);
  color: var(--white);
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
}

.cta-band h2 {
  margin: 0 0 0.3rem;
  color: var(--white);
}

.cta-band p {
  margin: 0;
  color: #ffdedf;
  max-width: 52ch;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--charcoal);
  color: #cfc9bb;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 1040px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.site-footer a {
  color: var(--cream);
}

.site-footer a:hover {
  color: var(--wheat);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.footer-brand__mark {
  width: 40px;
  height: 40px;
}

.footer-brand__name {
  font-weight: 800;
  color: var(--white);
}

.footer-brand__sub {
  font-size: 0.75rem;
  color: #a9a294;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-phones {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-phones li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 0.3rem;
  border-bottom: 1px dashed rgba(246, 243, 236, 0.16);
  font-size: 0.88rem;
}

.footer-phones a {
  font-weight: 700;
  direction: ltr;
}

.footer-note {
  color: #a9a294;
  font-size: 0.82rem;
  line-height: 1.9;
}

.footer-bottom {
  border-top: 1px solid rgba(246, 243, 236, 0.16);
  padding-block: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #a9a294;
}

.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: clamp(1.1rem, 3vw, 1.8rem);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 680px) {
  .form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid__full {
    grid-column: 1 / -1;
  }
}

.field label,
.label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.field .help {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  background: var(--white);
  border: 1px solid #bdb5a4;
  border-radius: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  appearance: none;
}

.input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(179, 20, 27, 0.18);
}

textarea.input {
  min-height: 130px;
  resize: vertical;
}

select.input {
  background-image: linear-gradient(45deg, transparent 50%, var(--charcoal) 50%),
    linear-gradient(135deg, var(--charcoal) 50%, transparent 50%);
  background-position: calc(0% + 14px) calc(50% + 2px),
    calc(0% + 19px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-inline-start: 2rem;
}

.input[type="file"] {
  padding: 0.5rem;
  background: var(--cream);
}

.input::placeholder {
  color: #8b8577;
}

.errorlist {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 600;
}

.errorlist li::before {
  content: "! ";
  font-weight: 800;
}

.form-errors {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  background: #fdecec;
  border-inline-start: 4px solid var(--red);
  color: #7a1014;
  font-size: 0.9rem;
}

.form-errors p {
  margin: 0;
}

.form-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* Honeypot: hidden from humans, visible to bots. */
.hp-field {
  position: absolute !important;
  inset-inline-start: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Messages / alerts
   -------------------------------------------------------------------------- */
.messages {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.alert {
  display: flex;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-inline-start: 5px solid var(--charcoal);
  background: var(--white);
  border-top: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.92rem;
}

.alert--success {
  border-inline-start-color: var(--green);
  background: #eef5ee;
  color: #1f4a28;
}

.alert--error {
  border-inline-start-color: var(--red);
  background: #fdecec;
  color: #7a1014;
}

.alert--info,
.alert--warning {
  border-inline-start-color: var(--wheat);
  background: #fff8e1;
  color: #5c4400;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  padding-block: 0.9rem;
  font-size: 0.83rem;
  color: var(--muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-inline-end: 0.4rem;
  color: #b3ab9a;
}

.crumbs--current {
  color: var(--charcoal);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Listing index: toolbar + filters
   -------------------------------------------------------------------------- */
.index-head {
  padding-block: 1.5rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.index-head h1 {
  margin-bottom: 0.35rem;
}

.index-layout {
  display: grid;
  gap: 1.5rem;
  padding-block: 1.5rem 3rem;
}

@media (min-width: 980px) {
  .index-layout {
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
}

.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--charcoal);
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.filters__title {
  margin: 0;
  font-size: 1rem;
}

.filters__toggle {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.7rem;
  background: transparent;
  border: 2px solid var(--charcoal);
  font-weight: 700;
  font-size: 0.85rem;
}

.filters__body {
  display: none;
  padding: 1rem;
}

.filters.is-open .filters__body {
  display: block;
}

@media (min-width: 980px) {
  .filters {
    position: sticky;
    top: 96px;
  }

  .filters__toggle {
    display: none;
  }

  .filters__body {
    display: block;
  }
}

.filter-group {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}

.filter-group:last-of-type {
  border-bottom: 0;
  margin-bottom: 0.5rem;
}

.filter-group__title {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--charcoal);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.25rem 0.65rem;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--charcoal);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
}

.chip:hover {
  border-color: var(--charcoal);
  text-decoration: none;
  color: var(--charcoal);
}

.chip.is-active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
}

.chip__count {
  margin-inline-start: 0.3rem;
  font-size: 0.72rem;
  opacity: 0.75;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.filter-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.result-count {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.result-count strong {
  color: var(--charcoal);
}

.toolbar__sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toolbar__sort label {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.toolbar__sort .input {
  min-height: 42px;
  min-width: 170px;
  padding-block: 0.35rem;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.active-filters__label {
  font-size: 0.82rem;
  color: var(--muted);
}

.empty-state {
  padding: clamp(2rem, 5vw, 3.5rem) 1rem;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--line);
}

.empty-state__title {
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--muted);
  max-width: 46ch;
  margin-inline: auto;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.3rem 0.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--charcoal);
  font-weight: 700;
}

.page-link:hover {
  text-decoration: none;
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.page-link.is-current {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
}

.page-link.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Detail page
   -------------------------------------------------------------------------- */
.detail {
  padding-block: 0 3rem;
}

.detail-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 980px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
}

.gallery {
  background: var(--white);
  border: 1px solid var(--line);
}

.gallery__main {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--cream-2);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__zoom-hint {
  position: absolute;
  bottom: 0.6rem;
  inset-inline-end: 0.6rem;
  padding: 0.15rem 0.55rem;
  background: rgba(26, 26, 26, 0.78);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.5rem;
  border-top: 1px solid var(--line);
}

.thumb {
  padding: 0;
  border: 2px solid transparent;
  background: var(--cream-2);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb.is-active {
  border-color: var(--red);
}

.detail-info {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: 1.15rem;
}

.detail-info h1 {
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  margin-bottom: 0.5rem;
}

.detail-info__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.price-box {
  background: var(--cream);
  border-inline-start: 5px solid var(--wheat);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.price-box__label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.price-box__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.5;
}

.price-box__value .unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.price-box--call .price-box__value {
  color: var(--red);
  font-size: 1.2rem;
}

.detail-actions {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.spec-table th,
.spec-table td {
  padding: 0.55rem 0.6rem;
  text-align: start;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  width: 42%;
  font-weight: 600;
  color: var(--muted);
  background: var(--cream);
}

.spec-table td {
  font-weight: 700;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
}

.share-row__label {
  font-size: 0.82rem;
  color: var(--muted);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 38px;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.share-btn:hover {
  border-color: var(--charcoal);
  text-decoration: none;
  color: var(--charcoal);
}

.detail-body {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 980px) {
  .detail-body {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 2rem;
  }
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.15rem;
}

.panel h2 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.description {
  color: #33302b;
  white-space: pre-line;
}

.call-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.call-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.6rem;
  border-bottom: 1px dashed var(--line);
}

.call-row:last-child {
  border-bottom: 0;
}

.call-row__who {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.call-row__name {
  font-weight: 800;
}

.call-row__role {
  font-size: 0.76rem;
  color: var(--muted);
}

.call-row__numbers {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.call-row__numbers a {
  font-weight: 800;
  direction: ltr;
  white-space: nowrap;
}

/* Floating call button (desktop) */
.float-call {
  display: none;
}

@media (min-width: 900px) {
  .float-call {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem;
    background: var(--red);
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.6);
    font-weight: 800;
    text-decoration: none;
  }

  .float-call:hover {
    background: var(--red-dark);
    color: var(--white);
    text-decoration: none;
  }
}

/* Sticky mobile action bar */
.mobile-bar {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 4px solid var(--red);
}

.mobile-bar__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-height: 62px;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.mobile-bar__link svg {
  width: 21px;
  height: 21px;
}

.mobile-bar__link:hover {
  text-decoration: none;
  color: var(--charcoal);
  background: var(--cream-2);
}

.mobile-bar__link--call {
  background: var(--red);
  color: var(--white);
}

.mobile-bar__link--call:hover {
  background: var(--red-dark);
  color: var(--white);
}

@media (min-width: 900px) {
  .mobile-bar {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Sell page
   -------------------------------------------------------------------------- */
.sell-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 980px) {
  .sell-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 2rem;
  }
}

.steps {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
}

.steps li {
  position: relative;
  padding-inline-start: 2.6rem;
  counter-increment: step;
  font-size: 0.92rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  background: var(--charcoal);
  color: var(--cream);
  font-weight: 800;
  font-size: 0.85rem;
}

.aside-card {
  background: var(--charcoal);
  color: var(--cream);
  padding: 1.2rem;
}

.aside-card h2 {
  color: var(--white);
  font-size: 1.05rem;
}

.aside-card p {
  color: #cfc9bb;
  font-size: 0.9rem;
}

.aside-card .call-row {
  border-bottom-color: rgba(246, 243, 236, 0.18);
}

.aside-card .call-row__role {
  color: #a9a294;
}

.aside-card a {
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.phone-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .phone-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .phone-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.phone-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
}

.phone-card__name {
  font-weight: 800;
  font-size: 1.02rem;
}

.phone-card__role {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.phone-card__number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--charcoal);
  font-weight: 800;
  text-decoration: none;
}

.phone-card__number:hover {
  background: var(--charcoal);
  color: var(--cream);
  text-decoration: none;
}

.phone-card__number span {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
}

.map-frame {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--charcoal);
  background: var(--cream-2);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 980px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: start;
  }
}

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.info-list li {
  display: flex;
  gap: 0.6rem;
  padding-block: 0.55rem;
  border-bottom: 1px dashed var(--line);
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--red);
  margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.about-facts div {
  background: var(--white);
  padding: 1rem;
}

.about-facts dt {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.about-facts dd {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
}

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

/* --------------------------------------------------------------------------
   Error pages
   -------------------------------------------------------------------------- */
.error-page {
  padding-block: clamp(3rem, 9vw, 6rem);
  text-align: center;
}

.error-page__code {
  display: block;
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.error-page p {
  max-width: 46ch;
  margin-inline: auto;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(12, 12, 12, 0.94);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  object-fit: contain;
  background: var(--cream-2);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(246, 243, 236, 0.5);
  background: rgba(26, 26, 26, 0.7);
  color: var(--cream);
  font-size: 1.4rem;
  line-height: 1;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.lightbox__close {
  top: 1rem;
  inset-inline-end: 1rem;
}

.lightbox__nav--prev {
  inset-inline-start: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--next {
  inset-inline-end: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

body.is-locked {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
