/* ============================================
   CLAVERA PARTNERS — style.css
   Colors:
     Deep Ink       #243447  (primary navy)
     Slate          #4D647A  (secondary navy)
     Harbor Blue    #4F86C6  (accent only)
     Soft Steel     #D8E2EC
     Warm Ivory     #FAF8F4  (background)
     Charcoal       #2D3748
   Fonts:
     Headings: Libre Baskerville
     Body:     Inter
============================================ */

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #2D3748;
  background-color: #FAF8F4;
  line-height: 1.7;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  font-family: 'Libre Baskerville', serif;
  font-weight: 400;
  color: #243447;
  line-height: 1.2;
}

em { font-style: italic; color: #4F86C6; }

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

a:hover { color: #4F86C6; }

/* ---- LAYOUT ---- */
.nav-inner, .hero-inner, .pillars-inner,
.who-inner, .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- NAVIGATION ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #FAF8F4;
  border-bottom: 1px solid #D8E2EC;
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-clavera {
  font-family: 'Libre Baskerville', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #243447;
}

.nav-logo-partners {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: #4F86C6;
  margin-top: 1px;
}

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

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #2D3748;
  transition: color 0.2s;
}

.nav-links a:hover { color: #4F86C6; }

.nav-cta {
  background: #243447;
  color: #FAF8F4 !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  font-size: 13px !important;
  letter-spacing: 0.06em;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: #4D647A !important; }

/* ---- DROPDOWN ---- */
.nav-dropdown { position: relative; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #243447;
  min-width: 260px;
  padding: 0.4rem 0;
  z-index: 200;
  border-top: 2px solid #4F86C6;
  list-style: none;
}

.nav-dropdown-menu li {
  list-style: none;
  padding: 0;
  border: none;
  width: 100%;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1.25rem;
  color: #D8E2EC;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-dropdown-menu a:hover {
  color: #ffffff;
  background: #4D647A;
}

.nav-dropdown:hover .nav-dropdown-menu { display: block; }

/* ---- HERO ---- */
.hero {
  padding: 10rem 0 7rem;
  background: #FAF8F4;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4F86C6;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  max-width: 900px;
  margin-bottom: 1.75rem;
  color: #243447;
}

.hero-sub {
  font-size: 1.05rem;
  max-width: 780px;
  color: #2D3748;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: #243447;
  color: #FAF8F4;
  padding: 0.8rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn-primary:hover { background: #4D647A; }

/* High contrast button for dark CTA sections */
.btn-cta-contrast {
  display: inline-block;
  background: #4F86C6;
  color: #ffffff;
  padding: 0.8rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-cta-contrast:hover { background: #FAF8F4; color: #243447; }

.btn-secondary {
  display: inline-block;
  border: 1px solid #243447;
  color: #243447;
  padding: 0.8rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #243447;
  color: #FAF8F4;
}

/* ---- PILLARS ---- */
.pillars {
  background: #243447;
  padding: 4.5rem 0;
}

.pillars-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}

.pillar-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.4rem;
  color: #FAF8F4;
  letter-spacing: 0.04em;
}

.pillar-rule {
  display: block;
  width: 90%;
  height: 1px;
  background: #4F86C6;
  margin-top: 0.75rem;
}

/* ---- WHO WE WORK WITH ---- */
.who {
  padding: 7rem 0;
  background: #FAF8F4;
}

.section-label {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #4F86C6;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 1.25rem;
}

.who-content {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.who-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #2D3748;
  margin-bottom: 1.25rem;
}

.who-cta-line {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 1.15rem !important;
  color: #243447 !important;
}

/* ---- FOOTER ---- */
.footer {
  background: #243447;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: #D8E2EC;
}

.footer-copy {
  font-size: 12px;
  color: #4D647A;
}

/* ---- PAGE HERO ---- */
.page-hero {
  padding: 10rem 0 5rem;
  background: #FAF8F4;
}

.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-headline {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  color: #243447;
  max-width: 800px;
  margin-top: 1.5rem;
}

/* ---- CONTENT SECTIONS ---- */
.content-section {
  padding: 4rem 0;
  background: #FAF8F4;
}

.content-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.body-large {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #2D3748;
  max-width: 780px;
}

.body-text {
  font-size: 1rem;
  line-height: 1.9;
  color: #2D3748;
  margin-bottom: 1.25rem;
}

/* ---- RULED SECTIONS ---- */
.ruled-section {
  padding: 0;
  background: #FAF8F4;
}

.ruled-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  border-top: 1px solid #D8E2EC;
}

.ruled-rule {
  display: none;
}

/* Section subheadings */
.ruled-inner .section-label {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #4F86C6;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 1.25rem;
}

.ruled-inner .body-text {
  max-width: 780px;
}

/* ---- SERVICE SUBHEADINGS ---- */
.service-subhead {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.2rem;
  color: #243447;
  margin: 2.5rem 0 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid #D8E2EC;
}

/* First subhead after intro - no top border since divider handles it */
.service-subhead--first {
  border-top: none;
  padding-top: 0;
}

/* Inline content divider */
.content-divider {
  border: none;
  border-top: 1px solid #D8E2EC;
  margin: 2.5rem 0;
}

/* Back to services link */
.back-to-services {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #D8E2EC;
}

/* ---- SERVICE BULLETS ---- */
.service-bullets {
  margin: 0.75rem 0 1.5rem 1.2rem;
  padding: 0;
}

.service-bullets li {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #2D3748;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ---- TEAM ---- */
.team-section {
  padding: 5rem 0;
  background: #FAF8F4;
}

.team-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.team-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  margin-top: 2.5rem;
}

.team-card-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.team-photo-placeholder {
  width: 220px;
  height: 320px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  position: relative;
}

.team-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.team-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  color: #243447;
  margin-bottom: 0.25rem;
}

.team-title {
  font-size: 0.85rem;
  color: #4F86C6;
  letter-spacing: 0.04em;
}

/* ---- CTA SECTION ---- */
.cta-section {
  background: #243447;
  padding: 5rem 0;
}

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

.cta-prompt {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.5rem;
  color: #FAF8F4;
  max-width: 500px;
}

/* ---- INSIGHTS ---- */
.insight-card {
  padding: 2.5rem 0;
  border-bottom: 1px solid #D8E2EC;
  max-width: 780px;
}

.insight-card:last-child {
  border-bottom: none;
}

.insight-source {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4F86C6;
  margin-bottom: 0.5rem;
}

.insight-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15rem;
  color: #243447;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.insight-title a {
  color: #243447;
  text-decoration: none;
  border-bottom: 1px solid #4F86C6;
  transition: color 0.2s;
}

.insight-title a:hover { color: #4F86C6; }

.insight-commentary {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #2D3748;
}

/* ---- NAV ACTIVE STATE ---- */
.nav-active { color: #4F86C6 !important; }

/* ---- CONTACT FORM ---- */
.contact-form {
  max-width: 680px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.75rem;
}

.form-group label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2D3748;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #2D3748;
  background: #fff;
  border: 1px solid #D8E2EC;
  border-radius: 2px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #4F86C6;
}

.form-group textarea {
  resize: vertical;
}

/* ---- MOBILE NAV TOGGLE ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #243447;
  transition: 0.2s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #FAF8F4;
    border-bottom: 1px solid #D8E2EC;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 2rem 1.5rem;
  }

  .nav-links.open { display: flex; }

  .nav-links li {
    width: 100%;
    padding: 0.6rem 0;
    border-bottom: 1px solid #D8E2EC;
  }

  .nav-links li:last-child {
    border-bottom: none;
    margin-top: 0.75rem;
  }

  .nav-links.open .nav-dropdown-menu {
    display: block;
    position: static;
    background: transparent;
    padding: 0 0 0 1rem;
    border-top: none;
    min-width: unset;
  }

  .nav-links.open .nav-dropdown-menu li {
    border-bottom: none;
    padding: 0;
  }

  .nav-links.open .nav-dropdown-menu a {
    font-size: 0.8rem;
    padding: 0.35rem 0;
    color: #4D647A;
    text-transform: none;
    letter-spacing: 0.02em;
  }

  .nav-cta { display: inline-block; }

  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 8rem 0 5rem; }
  .pillars-inner { flex-direction: column; gap: 2.5rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .two-col-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .team-card { grid-template-columns: 1fr; gap: 2rem; }
  .cta-inner { flex-direction: column; text-align: center; }
}
