/* PTAH REAL ESTATE — Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

address { font-style: normal; }

h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-heading);
  font-weight: 600;
  color: var(--color-navy-primary);
}

h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); }

p { color: var(--color-navy-secondary); }

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--white { background: var(--color-white); }
.section--off { background: var(--color-off-white); }
.section--navy {
  background: var(--color-navy-primary);
  color: var(--color-white);
}
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--color-white); }
.section--navy p { color: rgba(255, 255, 255, 0.78); }

/* Section header */
.section-header {
  max-width: 42rem;
  margin-bottom: var(--space-8);
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-primary);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--color-gold-primary);
}

.section-header p {
  margin-top: var(--space-4);
  font-size: 1.05em;
}

.gold-line {
  width: 3rem;
  height: 1px;
  background: var(--color-gold-primary);
  margin-block: var(--space-5);
  opacity: 0.7;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-muted { color: var(--color-text-muted); }
.text-gold { color: var(--color-gold-primary); }
.text-white { color: var(--color-white); }

.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.grid-2 {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
  }
  .grid-2--editorial {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .grid-2--editorial-rev {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.grid-3 {
  display: grid;
  gap: clamp(1.25rem, 2vw, 1.75rem);
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-4 {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-navy-secondary);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.media-frame:hover img {
  transform: scale(1.05);
}

.media-frame--tall { min-height: clamp(320px, 48vw, 520px); }
.media-frame--offset {
  box-shadow: var(--shadow-md);
}
@media (min-width: 900px) {
  .media-frame--offset {
    transform: translateY(var(--space-4));
  }
}

.section-label-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.section-label-row .section-header {
  margin-bottom: 0;
}

.split-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  border-inline-start: 2px solid var(--color-gold-primary);
  margin-top: var(--space-7);
}
@media (min-width: 700px) {
  .split-stats { grid-template-columns: repeat(4, 1fr); }
}

.editorial-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(202, 175, 105, 0.45), transparent);
  margin-block: 0;
  border: 0;
}
