/* ==========================================================================
   Brainzer, Inc. — Site Stylesheet
   Blue-primary institutional design
   Matches existing brand identity; cream used as warm accent only
   ========================================================================== */

:root {
  /* Primary blues — consistent with existing brand identity */
  --navy:        #0d2546;   /* deep, primary brand blue */
  --navy-soft:   #1a3866;   /* secondary blue */
  --navy-deep:   #081a35;   /* darkest, used in footer */
  --blue-tint:   #f0f4fa;   /* very light blue-tinted background */
  --blue-tint-2: #e6ecf5;   /* slightly stronger blue tint */
  --blue-pale:   #ecf1f8;   /* alternate light wash */

  /* Warm accents — used sparingly */
  --cream:       #faf6ee;   /* warm accent — hero, callouts only */
  --cream-soft:  #fdfaf3;   /* very subtle warm */

  /* Neutrals */
  --ink:         #15181f;
  --ink-soft:    #4a4f5b;
  --ink-muted:   #6b7280;
  --rule:        #d6deea;   /* blue-tinted divider */
  --rule-soft:   #e7ecf3;
  --white:       #ffffff;

  /* Highlight — used very sparingly */
  --gold:        #b08940;
  --gold-soft:   #c9a35a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 400; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
}

p { margin-bottom: 1.25rem; color: var(--ink-soft); max-width: 65ch; }
p.lead { font-size: 1.2rem; color: var(--ink); max-width: 60ch; line-height: 1.6; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--gold); }

/* Layout */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 2rem; }

section { padding: 6rem 0; }

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .container, .container-narrow { padding: 0 1.5rem; }
}

/* Section variants */
section.bg-tint { background: var(--blue-tint); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
section.bg-cream { background: var(--cream); }

/* Navigation
   ========================================================================== */
.site-nav {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.96);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand img {
  height: 64px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--navy);
}

@media (max-width: 920px) {
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 1rem 2rem 2rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav-menu.open li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule-soft); }
  .nav-menu.open li:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
}

/* Hero — uses warm cream for refined private-bank feel */
.hero {
  padding: 7rem 0 6rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.75rem;
  max-width: 18ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.hero p.lead { margin-bottom: 2.5rem; }

.hero-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 2rem;
}

/* Page header (interior pages) — deep navy */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  background-image: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg, var(--navy-soft) 0%, var(--white) 100%);
}

.page-header h1 { color: var(--white); font-weight: 400; }
.page-header h1 em { font-style: italic; color: var(--gold-soft); font-weight: 400; }
.page-header p.lead { color: rgba(255, 255, 255, 0.88); margin-top: 1.5rem; }

.page-header .eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.5rem;
  display: block;
}

/* Two-column layouts */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.two-col-narrow {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col, .two-col-narrow {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
  margin-top: 2rem;
}

.feature-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 860px) {
  .feature-grid, .feature-grid-3 { grid-template-columns: 1fr; }
}

.feature-card {
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}

.feature-card .num {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 0.5rem;
  display: block;
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.95rem; margin-bottom: 0; }

/* Refined numbered list */
ol.refined { list-style: none; counter-reset: item; margin: 1.5rem 0; }

ol.refined li {
  counter-increment: item;
  padding: 1.25rem 0 1.25rem 3.5rem;
  border-top: 1px solid var(--rule);
  position: relative;
  color: var(--ink);
  line-height: 1.6;
}

ol.refined li:last-child { border-bottom: 1px solid var(--rule); }

ol.refined li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* Section eyebrows */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.25rem;
  display: block;
}

/* Vaultara highlight band — deep navy */
.vaultara-highlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
}

.vaultara-highlight h2,
.vaultara-highlight h3 { color: var(--white); }
.vaultara-highlight p { color: rgba(255, 255, 255, 0.88); }
.vaultara-highlight .section-eyebrow { color: var(--gold-soft); }

.vaultara-highlight a.btn-link {
  color: var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 2px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.vaultara-highlight a.btn-link:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 0;
}

.btn:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 3px;
  transition: all 0.2s ease;
}

.btn-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* CTA — uses subtle blue tint */
.cta {
  background: var(--blue-tint);
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid var(--rule);
}

.cta h2 {
  max-width: 24ch;
  margin: 0 auto 2rem;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  margin-bottom: 1.25rem;
}

.footer-brand img {
  height: 50px;
  width: auto;
  display: block;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.footer-grid h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.25rem;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.6rem; }

.footer-grid a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.footer-grid a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Domain badges */
.domain-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--rule);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0.25rem 0.5rem 0.25rem 0;
  background: var(--white);
}

/* Pullquote */
.pullquote {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  line-height: 1.4;
  font-weight: 400;
  font-style: italic;
  color: var(--navy);
  border-left: 2px solid var(--gold);
  padding: 1rem 0 1rem 2rem;
  margin: 3rem 0;
  max-width: 60ch;
}

/* Section divider */
.section-divider {
  height: 1px;
  background: var(--rule);
  margin: 5rem auto;
  max-width: 200px;
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 560px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s ease;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
  font-family: 'Inter', sans-serif;
}

/* Contact info card */
.contact-info {
  background: var(--blue-tint);
  padding: 2.5rem;
  border-left: 3px solid var(--navy);
}

.contact-info h3 { margin-bottom: 1rem; }

.contact-info dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
}

.contact-info dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  padding-top: 4px;
}

.contact-info dd {
  font-size: 0.95rem;
  color: var(--ink);
}

/* Confidential note */
.confidential-note {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
}

.confidential-note::before {
  content: 'Note';
  position: absolute;
  top: -10px;
  left: 1.5rem;
  background: var(--white);
  padding: 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Client logo strip — small, used on home page */
.client-strip {
  background: var(--white);
  padding: 4rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.client-strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.client-strip-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 110px;
}

.client-strip-logo img {
  max-width: 100%;
  max-height: 85px;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: grayscale(35%);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.client-strip-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Clients page — bigger logo cards */
.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
  align-items: center;
}

.client-logo {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  transition: all 0.25s ease;
}

.client-logo:hover {
  border-color: var(--navy);
  box-shadow: 0 6px 20px rgba(13, 37, 70, 0.08);
}

.client-logo img {
  max-width: 100%;
  max-height: 140px;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: none;
  transition: transform 0.25s ease;
}

.client-logo:hover img { transform: scale(1.03); }

/* Private block (for Vaultara on clients page) */
.private-block {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 4rem 3rem;
  margin-top: 2rem;
  position: relative;
  border-left: 4px solid var(--gold);
}

.private-block h2,
.private-block h3 { color: var(--white); }
.private-block p { color: rgba(255, 255, 255, 0.88); }
.private-block .section-eyebrow { color: var(--gold-soft); }

@media (max-width: 768px) {
  .private-block { padding: 3rem 2rem; }
}
