/* ==========================================================================
   Pamir Properties — Refactored
   White + near-black body, jigari accent, DM Serif Display + DM Sans.
   ========================================================================== */

:root {
  --bg:        #FFFFFF;
  --surface:   #FAF8F5;   /* warm white — buy-box, bands, cards */
  --text:      #1A1A1A;   /* near-black — body, headlines, nav */
  --muted:     #6B6B6B;   /* neutral gray — captions, subheads */
  --border:    #E8E5E0;   /* warm neutral border */
  --accent:    #6B2D24;   /* jigari — eyebrows, links, CTAs, motto, dot */
  --accent-2:  #8B3D34;   /* lifted jigari — hover states only */

  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max-w:    1240px;
  --gutter:   clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);

  --transition: 150ms ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* Base */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Utilities */
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }

/* Display */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
}

/* ==========================================================================
   Label tag — shared base for all small uppercase tracked labels
   ========================================================================== */

.label-tag,
.eyebrow,
.section-label,
.card-label,
.contact-item .label,
.sig-title,
.sig-meta {
  font-family: var(--font-body);
  font-size: 0.75rem;            /* 12px */
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Color + display variants */
.label-tag--accent,
.eyebrow,
.card-label              { color: var(--accent); }

.label-tag--muted,
.section-label,
.contact-item .label,
.sig-title,
.sig-meta                { color: var(--muted); }

.eyebrow,
.section-label,
.card-label,
.label-tag               { display: inline-block; }

.card-label              { margin-bottom: 1rem; }
.contact-item .label     { margin-bottom: 1rem; }

/* ==========================================================================
   Link CTA — shared base for cta-link / band-link / cta-band a / link-cta
   ========================================================================== */

.link-cta,
.cta-link,
.band-link,
.cta-band a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;          /* 13px */
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color var(--transition);
}

.link-cta .arrow,
.cta-link .arrow,
.band-link .arrow,
.cta-band a .arrow {
  transition: transform var(--transition);
}

.link-cta:hover,
.cta-link:hover,
.band-link:hover,
.cta-band a:hover {
  color: var(--accent-2);
}

.link-cta:hover .arrow,
.cta-link:hover .arrow,
.band-link:hover .arrow,
.cta-band a:hover .arrow {
  transform: translateX(4px);
}

/* Slight upsize for band/cta-band link contexts */
.band-link,
.cta-band a { font-size: 0.875rem; }

/* ==========================================================================
   Container
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ==========================================================================
   Skip-to-content
   ========================================================================== */

.skip-link {
  position: absolute;
  left: 0; top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform 150ms ease;
  z-index: 200;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent-2);
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;             /* 24px */
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color var(--transition);
  white-space: nowrap;
}
.wordmark .dot { color: var(--accent); }
.wordmark:hover { color: var(--accent-2); }

.nav-tabs {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

.nav-tabs a {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.8125rem;          /* 13px */
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.5rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}

.nav-tabs a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-tabs a:hover { color: var(--accent-2); }
.nav-tabs a:hover::after { width: 100%; }

.nav-tabs a.current { color: var(--accent); }
.nav-tabs a.current::after { width: 100%; }

/* Mobile — horizontal scroll, no hamburger */
@media (max-width: 640px) {
  .nav-inner { gap: 1rem; }
  .nav-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 1.25rem;
    flex: 1;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .nav-tabs a { white-space: nowrap; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
}

.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--accent-2); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-ghost:hover {
  background: var(--accent);
  color: #FFFFFF;
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.hero { padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }

.hero .headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.875rem, 4.25vw, 3rem);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-top: 1.2rem;
  max-width: 22ch;
  color: var(--text);
}

.hero .subhead {
  margin-top: 1.2rem;
  max-width: 640px;
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.55;
}

.cta-row {
  margin-top: 1.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */

.page-header {
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.page-header .headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.875rem, 4.25vw, 3rem);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-top: 1.2rem;
  max-width: 22ch;
}

.page-header .intro {
  margin-top: 1.6rem;
  max-width: 680px;
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.65;
}

.page-header .about-subhead {
  margin-top: 1.2rem;
  max-width: 680px;
  font-size: 1rem;
  color: var(--muted);
}

/* ==========================================================================
   Fade-up (snappy)
   ========================================================================== */

.fade-up {
  opacity: 0;
  animation: fadeUp 150ms ease-out forwards;
}
.delay-0 { animation-delay: 0ms; }
.delay-1 { animation-delay: 60ms; }
.delay-2 { animation-delay: 120ms; }
.delay-3 { animation-delay: 180ms; }
.delay-4 { animation-delay: 240ms; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Home — two-path teaser
   ========================================================================== */

.two-path {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}
.two-path .section-label { margin-bottom: 1.5rem; }

.path-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  align-items: stretch;
}

@media (max-width: 820px) {
  .path-cards { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg);
  padding: clamp(2rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
}
.card + .card { border-left: 1px solid var(--border); }
@media (max-width: 820px) {
  .card + .card { border-left: none; border-top: 1px solid var(--border); }
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.625rem, 2.8vw, 2.125rem);
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}
.card p {
  color: var(--muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* ==========================================================================
   Closing band (home) / CTA band (agents)
   ========================================================================== */

.band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  text-align: center;
}

.band .band-motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  color: var(--accent);
  margin: 0 0 1.5rem;
  letter-spacing: -0.015em;
}

.cta-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.cta-band-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.cta-band p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--text);
}

/* ==========================================================================
   Agents — two-column body
   ========================================================================== */

.two-col {
  padding: var(--section-y) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--border);
  align-items: start;
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}

.buy-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(1.8rem, 3.5vw, 2.75rem);
}
.buy-box h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.625rem, 2.8vw, 2.125rem);
  margin-bottom: 2rem;
  letter-spacing: -0.015em;
}
.buy-box dl { margin: 0; }
.buy-box dl > div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.7fr) 1.3fr;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.buy-box dl > div:last-child { border-bottom: none; padding-bottom: 0; }
.buy-box dl > div:first-child { padding-top: 0; }
.buy-box dt {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.buy-box dd {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--text);
}

/* Reasons */
.reasons {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.reason {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.reason:first-child { padding-top: 0; }
.reason:last-child  { border-bottom: none; }

.reason .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1.3;
}
.reason h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 0.65rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.reason p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* ==========================================================================
   Sellers — situations grid + steps
   ========================================================================== */

.situations {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border);
}
.situations .section-label { margin-bottom: 0; display: block; }

.situations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.situations-grid li {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .situations-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .situations-grid { grid-template-columns: 1fr; }
}

.how {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border);
}
.how .section-label { margin-bottom: 2.25rem; display: block; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--bg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
}
.step + .step { border-left: 1px solid var(--border); }
@media (max-width: 820px) {
  .step + .step { border-left: none; border-top: 1px solid var(--border); }
}

.step .step-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.875rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  line-height: 1;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.step p { color: var(--muted); }

.cta-center {
  padding: clamp(2rem, 5vw, 4rem) 0 var(--section-y);
  text-align: center;
}

/* ==========================================================================
   About — two-column
   ========================================================================== */

.about-body {
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 var(--section-y);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr clamp(260px, 32%, 360px);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 820px) {
  .about-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }
  .portrait-frame { order: -1; align-self: center; }
}

.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
@media (max-width: 820px) { .portrait-frame { max-width: 340px; } }

.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% center;
}

.about-text { width: 100%; max-width: 620px; }
.about-text p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 1.1rem;
  text-wrap: pretty;
}
.about-text p:first-child { margin-top: -0.25em; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { font-weight: 700; color: var(--text); }
.about-text .accent { color: var(--accent); }

/* About headline (motto displayed huge) — italic jigari, no width cap */
.headline--motto {
  color: var(--accent);
  font-style: italic;
  max-width: none;
}

.signature-row {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.4rem 2rem;
}
.sig-name {
  grid-row: 1 / span 2;
  align-self: end;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1;
}
.sig-title { justify-self: end; }
.sig-meta  { justify-self: end; }

@media (max-width: 520px) {
  .signature-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.5rem;
  }
  .sig-name { grid-row: auto; align-self: start; }
  .sig-title, .sig-meta { justify-self: start; }
}

/* ==========================================================================
   Contact grid
   ========================================================================== */

.contact-grid {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--border);
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; border-left: none; }
}

.contact-item {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--bg);
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
@media (max-width: 820px) {
  .contact-item { border-left: 1px solid var(--border); border-bottom: none; }
  .contact-item:last-child { border-bottom: 1px solid var(--border); }
}

.contact-item a, .contact-item .value {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--text);
  line-height: 1.4;
  transition: color var(--transition);
  word-break: break-word;
  letter-spacing: -0.01em;
}
.contact-item a:hover { color: var(--accent-2); }

.contact-item .caption {
  margin-top: auto;
  padding-top: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--text);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.2rem;
  text-align: center;
}
.footer-seal {
  display: block;
  width: clamp(72px, 8vw, 96px);
  height: auto;
  margin: 0 auto 1.25rem;
  opacity: 0.92;
  transition: opacity var(--transition);
}
.footer-seal:hover { opacity: 1; }

.footer-motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  color: var(--accent);
  letter-spacing: -0.01em;
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}
@media (max-width: 520px) {
  .footer-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up { opacity: 1; }
}
