/* ============================================================
   Triple M Real Estate Management
   Brand tokens and shared styles
   ============================================================ */

:root {
  /* Brand palette (extracted from logo SVG source) */
  --navy: #16243F;
  --navy-deep: #0E1A30;
  --gold: #BE9A52;
  --gold-dark: #9A7D3F;
  --cream: #F3ECD9;
  --cream-soft: #F8F3E4;
  --paper: #FDFBF5;
  --ink: #1A2338;
  --ink-soft: #4A5570;
  --rule: rgba(22, 36, 63, 0.14);

  /* Typography */
  --serif: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --page-max: 1180px;
  --column-max: 760px;
}

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

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

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: color 180ms ease, border-color 180ms ease;
}

a:hover {
  color: var(--gold-dark);
  border-color: var(--gold-dark);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 48, "SOFT" 30;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

p {
  max-width: var(--measure);
  margin-bottom: 1.25rem;
}

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

/* Editorial devices */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1.5rem;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--navy);
  max-width: 40ch;
  font-variation-settings: "opsz" 72, "SOFT" 50;
}

.marginalia {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Layout primitives ---------- */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap {
  max-width: var(--column-max);
}

section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(243, 236, 217, 0.08);
}

.site-header .page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.brand {
  border: none;
  padding: 0;
  display: block;
}

.brand:hover {
  opacity: 0.85;
}

.brand img {
  height: 48px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  border: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5.5rem);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr auto;
    gap: 4rem;
  }
}

.hero h1 {
  max-width: 20ch;
}

/* Right column of the hero: crest + marginalia stack */
.hero-crest {
  display: none;
}

@media (min-width: 900px) {
  .hero-crest {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
  }
}

.hero-crest img {
  width: 130px;
  height: 130px;
  border-radius: 22px;
}

.hero .marginalia-stack {
  display: none;
}

@media (min-width: 900px) {
  .hero .marginalia-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
    padding-top: 0.75rem;
    border-top: 1px solid var(--rule);
    min-width: 12ch;
  }
}

.hero .marginalia-stack span {
  display: block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero-intro {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 52ch;
  font-size: 1.125rem;
  color: var(--ink);
}

/* ---------- Section divider (the ornament) ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.ornament img {
  height: 22px;
  width: auto;
  opacity: 0.72;
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 0 0 60px;
  height: 1px;
  background: var(--rule);
  margin: 0 1.5rem;
}

/* ---------- Content sections ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
  }
}

.two-col .col-label {
  padding-top: 0.5rem;
}

.two-col .col-label .eyebrow {
  margin-bottom: 0;
}

/* Services list — no cards, no icons, just structure */
.service-list {
  list-style: none;
}

.service-list li {
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}

.service-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.service-list h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-variation-settings: "opsz" 60, "SOFT" 50;
}

.service-list p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* Principles list on home / about */
.principles {
  list-style: none;
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .principles {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.principles li {
  border-top: 1px solid var(--gold);
  padding-top: 1rem;
}

.principles h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.principles p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* Contact block */
.contact-block {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 720px) {
  .contact-block {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

.contact-item .eyebrow {
  margin-bottom: 0.5rem;
}

.contact-item p,
.contact-item address {
  font-style: normal;
  font-size: 1.0625rem;
  color: var(--ink);
  margin-bottom: 0;
}

.contact-item a {
  font-weight: 500;
}

/* Featured strip (used on home page above footer) */
.cta-strip {
  background: var(--cream);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  margin-top: 2rem;
}

.cta-strip .page {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 720px) {
  .cta-strip .page {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
}

.cta-strip .lede {
  color: var(--navy);
  margin: 0;
}

.cta-strip a {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 4px;
  justify-self: start;
}

@media (min-width: 720px) {
  .cta-strip a {
    justify-self: end;
  }
}

.cta-strip a:hover {
  color: var(--gold-dark);
  border-color: var(--gold-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  margin-top: 0;
}

.site-footer .page {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 720px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.site-footer img {
  height: 40px;
  margin-bottom: 1.25rem;
}

.site-footer p {
  color: rgba(243, 236, 217, 0.75);
  font-size: 0.9375rem;
  max-width: 42ch;
}

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

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

.footer-meta {
  border-top: 1px solid rgba(243, 236, 217, 0.16);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-meta p {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(243, 236, 217, 0.55);
  max-width: none;
  margin: 0;
}

/* ---------- Utilities ---------- */
.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;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
