/* ==========================================================================
   Cleat Capital — Shared Stylesheet
   Palette drawn from brand mark: deep plum/purple + brass hardware + cream
   ========================================================================== */

:root {
  --purple-deep: #29103F;
  --purple: #45205F;
  --purple-mid: #5B3178;
  --purple-light: #8A63A8;
  --cream: #F6F1E8;
  --cream-soft: #FBF8F2;
  --ink: #1C1420;
  --ink-soft: #4A3E52;
  --brass: #B08D4F;
  --brass-light: #D4B678;
  --white: #FFFFFF;
  --line: rgba(28, 20, 32, 0.12);
  --line-on-dark: rgba(255, 255, 255, 0.18);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--purple-deep);
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 500; }
h3 { font-size: 1.5rem; font-weight: 600; }

p { margin: 0 0 1rem 0; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 0.9rem;
  display: block;
}

.section-dark .eyebrow,
.on-dark .eyebrow { color: var(--brass-light); }

.lede {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.5;
}

/* ---- Rope-hitch divider: signature motif ---- */
.hitch-divider {
  width: 86px;
  height: 18px;
  margin: 1.1rem 0 1.6rem 0;
}
.hitch-divider.center { margin-left: auto; margin-right: auto; }
.hitch-divider svg { width: 100%; height: 100%; display: block; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(41, 16, 63, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-on-dark);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
}

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

.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-light);
  font-weight: 600;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 2.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brass-light);
  border-color: var(--brass-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-links {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--purple-deep);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { border-top: 1px solid var(--line-on-dark); }
  .nav-links a { display: block; padding: 1rem 1.75rem; border-bottom: none; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   Sections & Layout
   ========================================================================== */

.section { padding: var(--space-xl) 0; }
.section.tight { padding: var(--space-lg) 0; }

.section-dark {
  background: var(--purple-deep);
  color: rgba(255,255,255,0.88);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--white);
}
.section-dark .lede { color: rgba(255,255,255,0.78); }

.section-purple { background: var(--purple); color: rgba(255,255,255,0.88); }
.section-purple h1, .section-purple h2, .section-purple h3 { color: var(--white); }
.section-purple .lede { color: rgba(255,255,255,0.8); }

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

.grid {
  display: grid;
  gap: var(--space-md);
}
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; }
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: var(--space-md); }
}
.two-col.reverse .col-media { order: 2; }
@media (max-width: 900px) {
  .two-col.reverse .col-media { order: 0; }
}

.col-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(120deg, var(--purple-deep) 0%, var(--purple) 62%, var(--purple-mid) 100%);
  color: var(--white);
  padding: 7.5rem 0 5.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 82% 18%, rgba(212,182,120,0.14), transparent 45%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero-inner { max-width: 700px; }

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

.hero .lede { max-width: 560px; margin-bottom: 2.1rem; }

.page-hero {
  background: linear-gradient(120deg, var(--purple-deep) 0%, var(--purple) 100%);
  color: var(--white);
  padding: 5.5rem 0 4rem;
}
.page-hero h1 { color: var(--white); }
.page-hero .lede { max-width: 620px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 2px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-brass {
  background: var(--brass);
  color: var(--purple-deep);
}
.btn-brass:hover { background: var(--brass-light); }

.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-outline-dark {
  border-color: var(--purple);
  color: var(--purple-deep);
}
.btn-outline-dark:hover { background: var(--purple-deep); color: var(--white); }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem 1.8rem;
  border-radius: 3px;
}

.pillar-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-on-dark);
  padding: 2rem 1.7rem;
  border-radius: 3px;
}
.pillar-card .pillar-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--brass-light);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.9rem;
}
.pillar-card h3 { color: var(--white); margin-bottom: 0.6rem; font-size: 1.25rem; }
.pillar-card p { color: rgba(255,255,255,0.75); font-size: 0.94rem; margin: 0; }

.service-row {
  display: flex;
  gap: 1.6rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: none; }
.service-mark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--brass);
  min-width: 130px;
  font-weight: 600;
}
.service-copy { color: var(--ink-soft); }

/* ---- Stat strip ---- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
}
@media (max-width: 720px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
.stat-cell {
  padding: 2.2rem 1.2rem;
  text-align: center;
  border-right: 1px solid var(--line-on-dark);
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--brass-light);
  font-weight: 600;
  display: block;
}
.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  margin-top: 0.4rem;
  display: block;
}

/* ==========================================================================
   Property cards
   ========================================================================== */

.property {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  margin-bottom: 0;
}
@media (max-width: 860px) {
  .property { grid-template-columns: 1fr; }
}
.property.flip { direction: rtl; }
.property.flip > * { direction: ltr; }

.property-media { position: relative; min-height: 320px; background: var(--purple-mid); }
.property-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }

.property-body { padding: 3rem 3rem; display: flex; flex-direction: column; justify-content: center; }
.property-body.on-dark h3, .property-body.on-dark .prop-address { color: var(--white); }
.property-body.on-dark p { color: rgba(255,255,255,0.82); }
.property-body.on-light .prop-address { color: var(--purple-deep); }

.prop-address {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
.prop-meta {
  font-style: italic;
  font-size: 0.92rem;
  color: var(--brass);
  margin-bottom: 1rem;
  display: block;
}
.property-body.on-dark .prop-meta { color: var(--brass-light); }

.prop-tags { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  background: var(--brass);
  color: var(--purple-deep);
}
.tag.status-exited { background: var(--ink-soft); color: var(--white); }
.tag.status-stabilized { background: #4C7A5B; color: var(--white); }
.tag.status-progress { background: var(--purple-light); color: var(--white); }

.prop-stats { display: flex; gap: 1.6rem; margin: 1rem 0; }
.prop-stat-num { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.prop-stat-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }

/* Portfolio table (secondary/track record listing) */
.portfolio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.portfolio-table th {
  text-align: left;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--brass);
  padding: 0.8rem 1rem;
  border-bottom: 2px solid var(--purple);
}
.portfolio-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-soft);
}
.portfolio-table tr:hover td { background: rgba(69,32,95,0.03); }
.portfolio-table .addr { color: var(--purple-deep); font-weight: 600; }

.table-scroll { overflow-x: auto; }

/* ==========================================================================
   Team
   ========================================================================== */

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
}
.team-photo {
  height: 280px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-initial {
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}
.team-info { padding: 2rem; }
.team-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--purple-deep); }
.team-role {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass);
  font-weight: 700;
  margin: 0.3rem 0 1rem 0;
  display: block;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-field { margin-bottom: 1.3rem; }
.form-field label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--purple-deep);
  margin-bottom: 0.5rem;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 2px;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}
.form-field textarea { resize: vertical; min-height: 130px; }

/* ==========================================================================
   Contact cards
   ========================================================================== */

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-on-dark);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  width: 38px; height: 38px;
  border: 1px solid var(--brass-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--brass-light);
  font-size: 1rem;
}
.contact-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brass-light); margin-bottom: 0.2rem; display: block;}
.contact-value { color: var(--white); font-size: 1.02rem; }

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

.site-footer {
  background: var(--purple-deep);
  color: rgba(255,255,255,0.6);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line-on-dark);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line-on-dark);
  margin-bottom: 1.6rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-brand img { height: 38px; }
.footer-brand-text { font-family: var(--font-display); color: var(--white); font-size: 1.1rem; }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.footer-nav a:hover { color: var(--brass-light); }
.footer-legal { font-size: 0.76rem; line-height: 1.7; max-width: 900px; opacity: 0.75; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 1.6rem; font-size: 0.76rem;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.max-w-sm { max-width: 640px; }
.center-col { margin-left: auto; margin-right: auto; }
.mono-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 700;
}

@media (max-width: 640px) {
  .property-body { padding: 2.2rem 1.6rem; }
  .section { padding: 3.5rem 0; }
}
