/* ==========================================================================
   Okanagan Investment Group — shared styles
   Mobile first. Colours and type live in the variables below.
   ========================================================================== */

:root {
  /* Brand colours */
  --navy: #0B1B33;
  --navy-deep: #06111F;
  --navy-soft: #16294A;
  --night: #081428;          /* header + hero sky, sampled from the artwork */
  --gold: #C9A24B;
  --gold-light: #DDBE78;
  --gold-dark: #8A6D23;      /* gold text on cream, passes contrast */
  --cream: #F4F1EA;
  --cream-dark: #E9E4D8;
  --white: #FFFFFF;
  --charcoal: #22262A;
  --muted: #555B60;
  --line: rgba(201, 162, 75, 0.55);

  /* Type */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-display: "Cormorant Garamond", Georgia, serif;   /* wordmark */
  --font-nav: "Jost", "Inter", system-ui, sans-serif;     /* nav + Join button */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1160px;
  --gutter: 1.25rem;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 27, 51, 0.04), 0 8px 28px rgba(11, 27, 51, 0.07);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
button, input, textarea { font: inherit; color: inherit; }

/* Focus states — visible for keyboard users everywhere */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 162, 75, 0.35);
}
.btn-outline {
  padding: 0.85rem 1.5rem;
  border-color: var(--gold);
  border-radius: 2px;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-nav);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--night);
}
.btn-lg { padding: 1rem 2.2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; box-shadow: none; }

/* ---------- Header ----------
   Night-sky navy bar with spaced capitals, matching the hero artwork.
   On the landing page (body.home) it floats transparently over the artwork
   and turns solid once you scroll. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--night);
  border-bottom: 1px solid rgba(201, 162, 75, 0.25);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(8, 20, 40, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: rgba(201, 162, 75, 0.35);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.home .site-header {
  position: fixed;
  left: 0; right: 0;
}
.home .site-header:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
}
.home .site-header:has(.site-nav.is-open) { background: var(--night); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
}
.brand:hover { color: var(--cream); }
.brand-logo { width: auto; height: 30px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  max-width: 15em;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  flex-shrink: 0;
  padding: 0 11px;
  background: transparent;
  border: 1px solid rgba(201, 162, 75, 0.6);
  border-radius: 2px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--night);
  border-bottom: 1px solid rgba(201, 162, 75, 0.35);
  padding: 0.5rem var(--gutter) 1.5rem;
  display: none;
}
.site-nav.is-open { display: block; }
.nav-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
}
.nav-list a:not(.btn) {
  display: block;
  padding: 0.95rem 0;
  font-family: var(--font-nav);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
}
.nav-list a:not(.btn):hover,
.nav-list a[aria-current="page"] { color: var(--gold-light); }
.nav-list .nav-cta { margin-top: 1.25rem; }
.nav-list .nav-cta .btn { width: 100%; }

@media (min-width: 900px) {
  :root { --gutter: 2.5rem; --header-h: 92px; }
  .brand-logo { height: 32px; }
  .brand-name { max-width: none; font-size: 1.05rem; letter-spacing: 0.18em; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: block;
    padding: 0;
    background: none;
    border: 0;
  }
  .nav-list { flex-direction: row; align-items: center; gap: 2.4rem; }
  .nav-list a:not(.btn) {
    position: relative;
    padding: 0.4rem 0;
    border: 0;
    font-size: 0.8rem;
  }
  .nav-list a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 0.16em; bottom: -2px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .nav-list a:not(.btn):hover::after,
  .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-list .nav-cta { margin: 0 0 0 0.6rem; }
  .nav-list .nav-cta .btn { width: auto; }
}

/* ---------- Gold dividers & section scaffolding ---------- */
.divider {
  width: 64px;
  height: 1px;
  margin: 0 0 1.75rem;
  border: 0;
  background: var(--gold);
}
.divider.center { margin-left: auto; margin-right: auto; }
.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

.section { padding: 5rem 0; }
.section-alt { background: var(--white); }
.eyebrow {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
.lead { font-size: 1.1rem; color: var(--muted); }

@media (min-width: 860px) {
  .section { padding: 7rem 0; }
}

/* ---------- Hero ----------
   images/hero.jpg is the full artwork (title included). It fills the first
   screen edge to edge and the header floats over its night sky. */
.hero {
  background: var(--night);
}
.hero-art {
  width: 100%;
  height: auto;
  max-height: 100vh;
  max-height: 100svh;
  object-fit: cover;
  object-position: center bottom;  /* on very wide screens, trim sky, never the bottom text */
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 5rem 0 3.5rem;
  background: var(--navy);
  color: var(--cream);
  position: relative;
}
.page-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-header h1 {
  color: var(--cream);
  font-size: clamp(2.3rem, 6vw, 3.5rem);
  font-weight: 500;
}
.page-header .eyebrow { color: var(--gold-light); }
.page-header p { max-width: 620px; color: rgba(244, 241, 234, 0.82); font-size: 1.08rem; margin: 0; }
@media (min-width: 860px) { .page-header { padding: 7rem 0 5rem; } }

/* ---------- Who we are ---------- */
.about-grid { display: grid; gap: 2.5rem; }
.about-grid h2 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
.about-copy p { font-size: 1.08rem; }
.about-note {
  margin-top: 1.75rem;
  padding: 1.25rem 1.4rem;
  border-left: 2px solid var(--gold);
  background: var(--white);
  font-size: 0.97rem;
  color: var(--muted);
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
}

/* ---------- Cards (What we do) ---------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.card {
  padding: 2rem 1.75rem;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line);
}
.card-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Principles ---------- */
.principles {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.principle {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.principle-num {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold-dark);
  padding-top: 0.2rem;
}
.principle h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.principle p { margin: 0; color: var(--muted); }
@media (min-width: 760px) {
  .principles { grid-template-columns: repeat(2, 1fr); column-gap: 4rem; }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 5rem 0;
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(560px, 80%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-band::before { top: 2.25rem; }
.cta-band::after { bottom: 2.25rem; }
.cta-band h2 {
  color: var(--cream);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
}
.cta-band p {
  max-width: 520px;
  margin: 0 auto 2.25rem;
  color: rgba(244, 241, 234, 0.82);
  font-size: 1.08rem;
}
@media (min-width: 860px) { .cta-band { padding: 7rem 0; } }

/* ---------- Executives ---------- */
.exec-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .exec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  /* Flex instead of grid so a short last row (e.g. 2 of 3) sits centred */
  .exec-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
  .exec-grid > .exec-card { width: calc((100% - 4rem) / 3); }
}

.exec-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.75rem 2rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.exec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }
.exec-photo {
  width: 148px; height: 148px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy);
  box-shadow: 0 0 0 1px var(--line), 0 0 0 6px var(--white), 0 0 0 7px var(--line);
}
.exec-name { font-size: 1.45rem; margin-bottom: 0.25rem; }
.exec-role {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.exec-program { margin: 0 0 1rem; font-size: 0.92rem; color: var(--muted); }
.exec-card .divider { margin: 0 auto 1rem; width: 40px; }
.exec-bio { margin: 0 0 1.5rem; font-size: 0.95rem; color: var(--muted); }
.exec-link {
  margin-top: auto;
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.exec-link:hover { background: var(--navy); color: var(--gold); }
.exec-link svg { width: 18px; height: 18px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid #CEC8BA;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.28);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #A3352B; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  min-height: 1.5em;
}
.form-status:empty { display: none; }
.form-status.is-error { color: #A3352B; }
.form-status.is-success {
  padding: 1rem 1.2rem;
  background: rgba(11, 27, 51, 0.06);
  border-left: 2px solid var(--gold);
  color: var(--navy);
  font-weight: 500;
}

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(6, 17, 31, 0.3);
  border-top-color: var(--navy-deep);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; }
.contact-form-wrap {
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
}
.contact-form-wrap h2 { font-size: 1.75rem; }
.contact-info h2 { font-size: 1.75rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
}
.contact-list .icon svg { width: 18px; height: 18px; }
.contact-list .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.contact-list a, .contact-list span.value { word-break: break-word; font-weight: 500; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 7fr 5fr; gap: 5rem; align-items: start; }
  .contact-form-wrap { padding: 3rem; }
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s var(--ease), visibility 0s;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 17, 31, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 2.75rem 1.75rem 2rem;
  background: var(--cream);
  border-radius: var(--radius);
  border-top: 3px solid var(--gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s var(--ease);
}
.modal.is-open .modal-dialog { transform: none; }
.modal-dialog h2 { font-size: 1.9rem; margin-bottom: 0.4rem; }
.modal-dialog > p { color: var(--muted); margin-bottom: 1.6rem; }
.modal-close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
}
.modal-close:hover { background: var(--cream-dark); color: var(--navy); }
.modal-close svg { width: 20px; height: 20px; }
.modal-fine { margin: 1rem 0 0; font-size: 0.8rem; color: var(--muted); text-align: center; }
@media (min-width: 600px) { .modal-dialog { padding: 3rem 2.75rem 2.25rem; } }
body.modal-open { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(244, 241, 234, 0.78);
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(201, 162, 75, 0.35);
}
.footer-brand .brand { color: var(--cream); }
.footer-brand .brand-name { max-width: none; }
.footer-brand p { margin: 1rem 0 0; max-width: 340px; }
.footer-heading {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-bottom { padding-top: 1.75rem; font-size: 0.85rem; }
.footer-bottom p { margin: 0 0 0.6rem; }
.disclaimer { color: rgba(244, 241, 234, 0.62); max-width: 760px; }
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr; gap: 4rem; }
}

/* ---------- Scroll reveal ----------
   Only hides content when JS is running (html.js), so the page
   is always readable without JavaScript. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
