/* ============================================================
   Cornerstone Private Builders — brand stylesheet
   Palette: Satin Blue Rock #3D4654 · Antique Gold #A8853B
   Type: Marcellus (display) · Jost (body/utility)
   ============================================================ */

:root {
  --slate: #3D4654;        /* Satin Blue Rock — primary brand */
  --slate-deep: #262C36;   /* hero / footer depth */
  --gold: #A8853B;         /* antique gold accent */
  --gold-soft: #C2A86B;    /* gold on dark backgrounds */
  --limestone: #EFEDE8;    /* page background */
  --white: #FFFFFF;
  --ink: #232830;
  --muted: #5D6572;
  --hairline: rgba(61, 70, 84, 0.18);

  --font-display: 'Marcellus', 'Times New Roman', serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1120px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--limestone);
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Header ---------- */

.site-header {
  background: var(--slate);
  border-bottom: 1px solid rgba(194, 168, 107, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.25;
}
.brand-name span { color: var(--gold-soft); }

.site-nav { display: flex; gap: 34px; }

.site-nav a {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--gold-soft); }

.site-nav a.active {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
}

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

/* Mobile nav */
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 8px 14px;
    cursor: pointer;
  }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--slate) 0%, var(--slate-deep) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 110px 28px 120px;
}

.hero-diamond {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 420px;
  height: 420px;
  border: 1px solid rgba(194, 168, 107, 0.4);
  pointer-events: none;
}
.hero-diamond::after {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(194, 168, 107, 0.22);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold-soft);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.18;
  max-width: 640px;
  margin-bottom: 26px;
}

.hero p {
  max-width: 520px;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 1px solid var(--gold-soft);
  color: var(--gold-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover, .btn:focus-visible {
  background: var(--gold-soft);
  color: var(--slate-deep);
}

.btn.solid {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.btn.solid:hover, .btn.solid:focus-visible {
  background: transparent;
  color: var(--gold);
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: linear-gradient(160deg, var(--slate) 0%, var(--slate-deep) 100%);
  color: var(--white);
}
.page-hero .hero-inner { padding: 70px 28px 76px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  max-width: 700px;
}

/* ---------- Sections ---------- */

.section { padding: 90px 0; }
.section.tight { padding: 70px 0; }
.section.on-white { background: var(--white); }

.section-head { max-width: 640px; margin-bottom: 54px; }

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.25;
  color: var(--slate);
  margin-bottom: 16px;
}

.section-head p { color: var(--muted); }

.eyebrow.dark { color: var(--gold); margin-bottom: 14px; }
.eyebrow.dark::before { background: var(--gold); }

/* ---------- Grids & cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px;
}

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

.principle {
  border-top: 1px solid var(--gold);
  padding-top: 22px;
}
.principle h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  color: var(--slate);
  margin-bottom: 10px;
}
.principle p { font-size: 15.5px; color: var(--muted); }

/* ---------- Photo placeholders ---------- */

.ph-frame {
  position: relative;
  background: var(--slate);
  border: 1px solid rgba(168, 133, 59, 0.5);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph-frame.wide { aspect-ratio: 16 / 7; }

.ph-frame::before {
  content: "";
  position: absolute;
  width: 58%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(194, 168, 107, 0.35);
  transform: rotate(45deg);
}
.ph-frame::after {
  content: "";
  position: absolute;
  width: 42%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(194, 168, 107, 0.2);
  transform: rotate(45deg);
}

.ph-label {
  position: relative;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  padding: 0 20px;
}

/* ---------- Portfolio ---------- */

.project { margin-bottom: 70px; }
.project:last-child { margin-bottom: 0; }

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  align-items: baseline;
  margin-top: 20px;
}

.project-meta h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 23px;
  color: var(--slate);
}

.project-tag {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.project p { margin-top: 10px; color: var(--muted); max-width: 720px; }

/* ---------- Stats band ---------- */

.band {
  background: var(--slate);
  color: var(--white);
}
.band .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-top: 64px;
  padding-bottom: 64px;
}
@media (max-width: 760px) {
  .band .container { grid-template-columns: 1fr; }
}

.band-item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--gold-soft);
  margin-bottom: 8px;
}
.band-item p {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
}

/* ---------- About ---------- */

.founder h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--slate);
  margin-bottom: 4px;
}
.founder .role {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.founder p { color: var(--muted); font-size: 15.5px; }

.prose p { margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */

.contact-line {
  display: flex;
  gap: 16px;
  align-items: baseline;
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
}
.contact-line .label {
  width: 110px;
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-line .value {
  font-size: 18px;
  color: var(--slate);
}
.contact-line .value a:hover { color: var(--gold); }

.note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 26px;
}

/* ---------- CTA strip ---------- */

.cta-strip {
  background: linear-gradient(160deg, var(--slate) 0%, var(--slate-deep) 100%);
  color: var(--white);
  text-align: center;
}
.cta-strip .container { padding-top: 84px; padding-bottom: 90px; }
.cta-strip h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 18px;
}
.cta-strip p {
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--slate-deep);
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(194, 168, 107, 0.3);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--white);
}
.footer-meta { font-size: 13px; font-weight: 300; }
