/* ============================================================
   HARPER INVESTMENTS INC.
   Corporate palette: Navy + Gold + Cream (matches logo)
   ============================================================ */

:root {
  --navy-900: #0E2247;
  --navy-800: #17305F;
  --navy-700: #1E3D75;
  --navy-600: #2A4E8C;

  --gold-600: #A88437;
  --gold-500: #C9A24B;
  --gold-400: #D9B96A;

  --cream-50:  #FBF9F3;
  --cream-100: #F5F1E6;
  --cream-200: #EBE4D0;
  --line:      #DDD5C0;

  --ink-900: #0F1626;
  --ink-700: #2A3450;
  --ink-500: #5A6480;
  --ink-400: #7A8299;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 243, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(14, 34, 71, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
}
.brand {
  display: flex;
  align-items: center;
}
.brand-mark {
  height: 104px;
  width: auto;
  object-fit: contain;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding: 8px 0;
  transition: color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--navy-800); }
.site-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold-500);
  transition: width 0.3s var(--ease);
}
.site-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--navy-800);
  color: var(--cream-50) !important;
  padding: 11px 24px !important;
  border-radius: var(--radius);
  transition: background 0.2s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--navy-900); color: var(--cream-50) !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--navy-800);
  color: var(--cream-50);
}
.btn-primary:hover {
  background: var(--navy-900);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(14, 34, 71, 0.2);
}
.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.btn-ghost:hover {
  background: var(--navy-800);
  color: var(--cream-50);
}
.btn-lg {
  padding: 20px 40px;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(90px, 14vh, 170px) 0 clamp(90px, 12vh, 150px);
  background: linear-gradient(180deg, var(--cream-50) 0%, var(--cream-100) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse at 75% 30%, black 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 75% 30%, black 25%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 900px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.hero-inner.in-view {
  opacity: 1;
  transform: translateY(0);
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold-500);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 86px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.hero-accent {
  font-style: italic;
  color: var(--navy-700);
}
.hero-lede {
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.65;
  color: var(--ink-700);
  max-width: 640px;
  margin-bottom: 44px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: clamp(80px, 12vh, 140px) 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.section.in-view {
  opacity: 1;
  transform: translateY(0);
}
.section-alt {
  background: var(--cream-100);
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy-900);
  letter-spacing: -0.005em;
}
.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}

/* Two-column mission/vision */
.two-col {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.col-label {
  position: sticky;
  top: 130px;
}
.col-label .section-tag { margin-bottom: 0; }
.col-content .section-title { margin-bottom: 28px; }
.lead-quote {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink-700);
  max-width: 780px;
  padding-left: 26px;
  border-left: 2px solid var(--gold-500);
}

/* ============================================================
   GOALS GRID
   ============================================================ */
.goal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.goal-card {
  background: var(--cream-100);
  padding: 44px 34px;
  transition: background 0.3s var(--ease);
}
.section-alt .goal-card { background: var(--cream-50); }
.goal-card:hover { background: var(--cream-200); }
.goal-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  color: var(--gold-600);
  margin-bottom: 20px;
  line-height: 1;
}
.goal-mark {
  color: var(--gold-600);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1;
  letter-spacing: 0.1em;
}
.tag-mark {
  color: var(--gold-600);
  font-size: 9px;
  margin-right: 8px;
  position: relative;
  top: -1px;
  letter-spacing: 0;
}
.goal-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 12px;
  line-height: 1.3;
}
.goal-card p {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.65;
}

/* ============================================================
   GOAL 7 - spans all columns for symmetry with 3-column grid
   ============================================================ */
.goal-grid {
  grid-template-columns: repeat(3, 1fr);
}
.goal-card-wide {
  grid-column: 1 / -1;
}

/* ============================================================
   VALUES
   ============================================================ */
.values-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
}
.values-list li {
  padding: 40px 32px 40px 0;
  border-top: 1px solid var(--line);
}
.values-list li h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 12px;
}
.values-list li p {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.65;
  max-width: 380px;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 4vw, 60px);
  counter-reset: step;
}
.process-list li {
  position: relative;
  padding-top: 42px;
  border-top: 2px solid var(--navy-800);
}
.process-step {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 16px;
}
.process-list li::before {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute;
  top: -14px;
  right: 0;
  background: var(--cream-100);
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold-600);
}
.process-list li p {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.65;
}

/* ============================================================
   CEO MESSAGE
   ============================================================ */
.ceo-section {
  background: var(--cream-100);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ceo-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.ceo-portrait {
  position: sticky;
  top: 130px;
}
.ceo-portrait-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -20px rgba(14, 34, 71, 0.25);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.ceo-portrait-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 50px -24px rgba(14, 34, 71, 0.35);
}
.ceo-body {
  position: relative;
}
.ceo-body .section-tag {
  margin-bottom: 16px;
}
.ceo-quote-mark {
  font-family: var(--font-display);
  font-size: clamp(80px, 10vw, 140px);
  font-weight: 500;
  line-height: 0.6;
  color: var(--gold-500);
  margin: 8px 0 12px;
  opacity: 0.7;
}
.ceo-message p {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink-700);
  margin-bottom: 20px;
}
.ceo-message p:last-child { margin-bottom: 0; }
.ceo-signature {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.ceo-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.2;
  margin-bottom: 4px;
}
.ceo-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
}

@media (max-width: 800px) {
  .ceo-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ceo-portrait {
    position: static;
    max-width: 220px;
  }
}

/* ============================================================
   TAGLINE BANNER
   ============================================================ */
.tagline-banner {
  background: var(--cream-100);
  padding: clamp(60px, 10vh, 100px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.tagline-banner.in-view {
  opacity: 1;
  transform: translateY(0);
}
.tagline-text {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy-900);
  letter-spacing: -0.005em;
}
.tagline-accent {
  font-style: italic;
  color: var(--gold-600);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  background: var(--navy-900);
  color: var(--cream-100);
  text-align: center;
}
.contact-inner {
  max-width: 760px;
  margin: 0 auto;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--cream-50);
  margin-bottom: 24px;
  letter-spacing: -0.005em;
}
.contact-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--cream-200);
  margin-bottom: 44px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.contact-section .btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.contact-section .btn-primary:hover {
  background: var(--gold-400);
  box-shadow: 0 8px 26px rgba(201, 162, 75, 0.35);
}

/* Contact info grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
  text-align: left;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
}
a.contact-card:hover {
  background: rgba(201, 162, 75, 0.08);
  border-color: var(--gold-500);
  transform: translateY(-2px);
}
.contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.contact-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--cream-50);
  line-height: 1.3;
  word-break: break-word;
}
.contact-role {
  font-size: 13px;
  color: var(--cream-200);
  opacity: 0.75;
  margin-top: 2px;
}
.contact-cta { margin-top: 8px; }

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .contact-value { font-size: 18px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-900);
  color: var(--cream-200);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-mark {
  height: 100px;
  width: auto;
  /* Invert the navy in the logo to cream on dark background */
  filter: brightness(0) invert(1) opacity(0.95);
}
.footer-tagline {
  font-size: 13px;
  line-height: 1.65;
  color: var(--cream-200);
  opacity: 0.8;
}
.footer-meta {
  text-align: right;
  font-size: 12px;
  color: var(--cream-200);
  line-height: 1.8;
}
.footer-contact {
  font-size: 13px;
  margin-bottom: 12px;
  opacity: 0.95;
}
.footer-contact a {
  color: var(--cream-50);
  transition: color 0.2s var(--ease);
}
.footer-contact a:hover { color: var(--gold-400); }
.footer-copy {
  opacity: 0.7;
  margin-bottom: 4px;
}
.footer-links {
  opacity: 0.7;
}
.footer-links a {
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--gold-400); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .site-nav { gap: 20px; }
  .site-nav a:not(.nav-cta) { display: none; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .col-label { position: static; }

  .goal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .goal-card-wide { grid-column: 1 / -1; }

  .process-list {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand {
    flex-direction: column;
    text-align: center;
  }
  .footer-tagline { text-align: center; }
  .footer-meta { text-align: center; }
}

@media (max-width: 600px) {
  .header-inner { height: 88px; }
  .brand-mark { height: 68px; }
  .goal-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
