/* ============================================
   Woodbridge Investments — Design Tokens
   Black / deep red / warm paper — corporate,
   grounded in the "signed deal" ledger-line motif
   ============================================ */

:root {
  --black: #14110f;
  --red: #8c1518;
  --red-bright: #b02024;
  --paper: #f6f4f1;
  --paper-dim: #ece8e1;
  --gray: #55504a;
  --gray-light: #8a847c;
  --line: #dad5cd;
  --white: #ffffff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Ledger-line signature element ---------- */
.ledger {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}
.ledger::before {
  content: '';
  width: 46px;
  height: 2px;
  background: var(--red);
}
.ledger::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.ledger.on-dark::after { background: rgba(255,255,255,0.18); }
.ledger.center { justify-content: center; }
.ledger.center::after { display: none; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.on-dark .eyebrow { color: var(--red-bright); }

/* ---------- Header ---------- */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--paper);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-img {
  height: 46px;
  width: auto;
  display: block;
}
.logo .mark { color: var(--red-bright); font-size: 26px; line-height: 0; }
.logo .sub {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gray-light);
  text-transform: uppercase;
  margin-left: 4px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
}
nav.main-nav a {
  color: var(--paper-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
nav.main-nav a:hover,
nav.main-nav a.active { color: var(--white); }
nav.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red-bright);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
  padding: 0;
  position: relative;
  flex-shrink: 0;
}
.menu-toggle span {
  position: absolute;
  left: 5px; right: 5px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle span:nth-child(1) { top: 11px; }
.menu-toggle span:nth-child(2) { top: 17px; }
.menu-toggle span:nth-child(3) { top: 23px; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-bright); border-color: var(--red-bright); }

.btn-outline {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); }

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline-dark:hover { background: var(--black); color: var(--paper); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  background: var(--black);
  color: var(--paper);
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: -10%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent 60%, rgba(140,21,24,0.16) 100%);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 500;
  line-height: 1.08;
  max-width: 780px;
  margin-top: 14px;
}
.hero h1 em { color: var(--red-bright); font-style: normal; }
.hero p.lede {
  max-width: 560px;
  margin: 26px 0 36px;
  color: var(--paper-dim);
  font-size: 17px;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  text-align: center;
  padding: 42px 20px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat .num {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--red);
}
.stat .label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 6px;
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  margin-top: 10px;
}
.section-head p { color: var(--gray); margin-top: 14px; font-size: 16px; }

/* ---------- Service / category cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}
.card {
  background: var(--white);
  padding: 40px 32px;
  position: relative;
}
.card .tag {
  position: absolute;
  top: 0; left: 0;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 28px 0 12px;
}
.card p { color: var(--gray); font-size: 15px; }

/* ---------- Split (about preview) ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.split .photo-block {
  aspect-ratio: 4/5;
  background:
    linear-gradient(160deg, var(--black) 0%, #2a221f 55%, var(--red) 130%);
  position: relative;
  overflow: hidden;
}
.split .photo-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.split .photo-block::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,0.25);
  pointer-events: none;
}
.split .copy h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 500;
  margin: 10px 0 18px;
}
.split .copy p { color: var(--gray); margin-bottom: 16px; }
.split .copy p:last-of-type { margin-bottom: 26px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--black);
  color: var(--paper);
  text-align: center;
  padding: 84px 0;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 500;
  margin: 10px 0 30px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--black);
  color: var(--gray-light);
  padding: 56px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-grid h4 {
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--black);
  color: var(--paper);
  padding: 68px 0 54px;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 500;
  margin-top: 10px;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.team-grid.two-up {
  grid-template-columns: repeat(2, 1fr);
  max-width: 620px;
}
.team-card .photo {
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--paper-dim), var(--line));
  border-top: 3px solid var(--red);
  margin-bottom: 18px;
  overflow: hidden;
}
.team-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
}
.team-card .role {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin: 4px 0 12px;
}
.team-card p { color: var(--gray); font-size: 14.5px; }

/* ---------- Property listing cards ---------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.listing-card {
  background: var(--white);
  border: 1px solid var(--line);
}
.listing-card .photo {
  aspect-ratio: 16/10;
  background: linear-gradient(150deg, #2a221f, var(--black) 60%, var(--red) 140%);
  position: relative;
  overflow: hidden;
}
.listing-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.listing-card .status {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.listing-card .body { padding: 26px; }
.listing-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 6px;
}
.listing-card .meta {
  font-size: 13px;
  color: var(--gray-light);
  margin-bottom: 12px;
}
.listing-card p { color: var(--gray); font-size: 14.5px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 18px;
}
.contact-info .item { margin-bottom: 22px; }
.contact-info .item .k {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.contact-info .item .v { font-size: 15.5px; }

form.contact-form { display: flex; flex-direction: column; gap: 18px; }
form.contact-form label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
  display: block;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--black);
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}
form.contact-form textarea { resize: vertical; min-height: 130px; }

/* ---------- Property tabs ---------- */
.tab-row {
  display: flex;
  gap: 8px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
  padding: 14px 4px;
  margin-right: 28px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: var(--black); }
.tab-btn.active {
  color: var(--black);
  border-bottom-color: var(--red);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.listing-card .status.closed { background: var(--gray); }
/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: block; }

  nav.main-nav {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  nav.main-nav.open { max-height: 360px; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
  }
  nav.main-nav li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  nav.main-nav li:last-child { border-bottom: none; }
  nav.main-nav a { display: block; padding: 15px 2px; }
  nav.main-nav a.active::after { bottom: 6px; }

  .wrap { padding: 0 22px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .hero .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn-row .btn { text-align: center; }
  .cta-band { padding: 56px 0; }
  .page-header { padding: 44px 0 36px; }
  .section-head { margin-bottom: 36px; }

  .card-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .photo-block { aspect-ratio: 16/10; }
  .team-grid { grid-template-columns: 1fr; }
  .team-grid.two-up { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .listing-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .stat-strip .wrap { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line); padding: 28px 20px; }
  .stat:first-child { border-top: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .tab-row { gap: 4px; }
  .tab-btn { margin-right: 18px; font-size: 12px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .site-header .wrap { height: 66px; }
  .logo-img { height: 36px; }
  section { padding: 48px 0; }
  .hero { padding: 44px 0 40px; }
  .hero p.lede { font-size: 15.5px; }
  .btn { padding: 14px 22px; font-size: 12.5px; }
  .card { padding: 30px 24px; }
  .listing-card .body { padding: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
