/* =========================================================================
   Coldwater Equities — site styles
   Palette pulled from the logo: deep navy, teal, seafoam.
   Design intent: minimalist, boutique, understated. Lots of whitespace.
   ========================================================================= */

:root {
  --navy:      #1f3a5f;
  --navy-deep: #16293f;
  --teal:      #0e8090;
  --seafoam:   #5fa593;
  --ink:       #1b2733;
  --slate:     #5b6b7b;
  --line:      #e4e8ec;
  --paper:     #ffffff;
  --paper-2:   #f6f8f9;
  --paper-3:   #eef2f4;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--navy); margin: 0; line-height: 1.12; letter-spacing: .2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Small uppercase label used as section eyebrows / meta */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 18px;
}

.section { padding-block: clamp(64px, 9vw, 130px); }
.section--tint { background: var(--paper-2); }
.section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head h2 { font-size: clamp(30px, 4.4vw, 50px); }
.section__head p { color: var(--slate); font-size: 18px; margin: 18px 0 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 15px 30px; border: 1px solid var(--navy);
  color: var(--navy); background: transparent; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--navy); color: #fff; }
.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn--light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand__name { font-family: var(--sans); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: 14px; color: var(--navy); }
@media (max-width: 560px){ .brand__name { display:none; } }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate); transition: color .25s var(--ease); position: relative;
}
.nav a:hover, .nav a.is-active { color: var(--navy); }
.nav a.nav__login {
  color: var(--navy); border: 1px solid var(--line); padding: 10px 18px;
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.nav a.nav__login:hover { background: var(--navy); color:#fff; border-color: var(--navy); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px; align-items: stretch;
    transform: translateY(-120%); transition: transform .35s var(--ease); box-shadow: 0 20px 40px rgba(0,0,0,.06);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--paper-3); letter-spacing: .12em; }
  .nav a.nav__login { border: 1px solid var(--navy); text-align:center; margin-top: 16px; padding: 15px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22,41,63,.55) 0%, rgba(22,41,63,.42) 45%, rgba(22,41,63,.78) 100%);
}
.hero__inner { min-height: clamp(560px, 86vh, 860px); display: flex; flex-direction: column; justify-content: center; padding-block: 120px; }
.hero .eyebrow { color: #bfe0d8; }
.hero h1 { color: #fff; font-size: clamp(40px, 7vw, 88px); font-weight: 300; max-width: 15ch; letter-spacing: .5px; }
.hero p { max-width: 46ch; margin: 26px 0 40px; font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,.9); font-weight: 300; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* placeholder shown until real photos are dropped in */
.ph {
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(95,165,147,.28), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 60%, #0f2033 100%);
  position: relative;
}
.ph::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  text-align: center; padding: 20px; font-weight: 600;
}

/* ---------- Intro / statement ---------- */
.statement { text-align: left; max-width: 900px; }
.statement p { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 38px); line-height: 1.42; color: var(--navy); font-weight: 400; }
.statement p .accent { color: var(--teal); font-style: italic; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { background: #fff; padding: 40px 24px; text-align: center; }
.stat__num { font-family: var(--serif); font-size: clamp(38px, 5vw, 58px); color: var(--navy); line-height: 1; }
.stat__label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-top: 12px; }
@media (max-width: 720px){ .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Portfolio tombstones ---------- */
.tombstones { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 34px); }
@media (max-width: 900px){ .tombstones { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .tombstones { grid-template-columns: 1fr; } }

.tomb {
  background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.tomb:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(22,41,63,.4); border-color: #d3dae0; }
.tomb__media { aspect-ratio: 4 / 3; overflow: hidden; }
.tomb__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tomb:hover .tomb__media img { transform: scale(1.05); }
.tomb__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.tomb__type { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.tomb__name { font-family: var(--serif); font-size: 25px; color: var(--navy); margin: 10px 0 4px; line-height: 1.15; }
.tomb__loc { font-size: 14px; color: var(--slate); letter-spacing: .02em; }
.tomb__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--paper-3); }
.tomb__stat { font-size: 14px; color: var(--ink); font-weight: 500; }
.tomb__stat span { display:block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.pill { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 6px 12px; border-radius: 100px; white-space: nowrap; }
.pill--active { background: rgba(14,128,144,.12); color: var(--teal); }
.pill--construction { background: rgba(197,142,58,.14); color: #a9752a; }
.pill--exited { background: rgba(31,58,95,.1); color: var(--navy); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--rev { direction: rtl; } .split--rev > * { direction: ltr; }
.split__media { aspect-ratio: 5/4; overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body h2 { font-size: clamp(28px, 4vw, 44px); }
.split__body p { color: var(--slate); margin: 20px 0 0; }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; } .split--rev { direction: ltr; } }

/* ---------- CTA band ---------- */
.cta { background: var(--navy); color: #fff; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 46px); font-weight: 300; }
.cta p { color: rgba(255,255,255,.8); max-width: 52ch; margin: 18px auto 34px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-item { margin-bottom: 30px; }
.contact-item h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.contact-item p, .contact-item a { color: var(--ink); font-size: 18px; }
.contact-item a:hover { color: var(--teal); }
.map-embed { width: 100%; aspect-ratio: 4/3; border: 1px solid var(--line); }

/* ---------- Investor portal page ---------- */
.portal { min-height: calc(100vh - 76px); display: grid; place-items: center; background: var(--paper-2); padding: 60px var(--gutter); }
.portal__card { background: #fff; border: 1px solid var(--line); max-width: 520px; width: 100%; padding: clamp(36px, 5vw, 60px); text-align: center; box-shadow: 0 30px 60px -40px rgba(22,41,63,.35); }
.portal__card img.mark { height: 64px; margin: 0 auto 24px; }
.portal__card h1 { font-size: 34px; }
.portal__card p { color: var(--slate); margin: 14px auto 30px; max-width: 40ch; }
.portal__frame { width: 100%; min-height: 620px; border: 0; }
.portal__note { font-size: 13px; color: var(--slate); margin-top: 26px; display:flex; gap:8px; align-items:center; justify-content:center; }
.portal__note svg { flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); }
.site-footer .container { padding-block: 64px 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 720px){ .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand img { height: 46px; margin-bottom: 18px; }
.footer-brand .wm { font-family: var(--sans); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color:#fff; font-size: 15px; }
.footer-brand p { max-width: 34ch; font-size: 15px; margin: 14px 0 0; }
.footer-col h5 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin: 0 0 16px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.72); font-size: 15px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 13px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 10px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; } html{ scroll-behavior:auto; } }
