/* Bellarmine Partners — design tokens
   Navy #0B1F3A primary / Pewter #8A9096 & Steel #A8B0B8 for rules & marks /
   Ivory #F7F4EF field / Charcoal for type
   NOTE: css/extra.css (imported below) holds v3 section styles + animations. */
@import "extra.css";

:root {
  --navy: #0B1F3A;
  --navy-light: #142c50;
  --pewter: #8A9096;
  --steel: #A8B0B8;
  --ivory: #F7F4EF;
  --charcoal: #2A2C2E;
  --charcoal-soft: #4A4D51;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Wider desktop content, Ariel-style */
  --max-width: 1440px;
  --gutter: clamp(20px, 5vw, 80px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pewter);
}

.rule {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--navy-light));
  border: none;
  margin: 18px 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid rgba(10, 31, 58, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.logo span { color: var(--pewter); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--charcoal-soft);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover { color: var(--navy); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: var(--ivory); }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 12px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--navy-light); }

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline:hover { background: var(--navy); color: var(--ivory); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--ivory);
  padding: 150px 0 130px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(247, 244, 239, 0.08);
  border-radius: 50%;
  z-index: 1;
}

.hero .wrap { position: relative; z-index: 2; }

.hero .eyebrow { color: var(--steel); }

.hero h1 {
  color: var(--ivory);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  max-width: 840px;
  margin: 20px 0 28px;
}

.hero p {
  max-width: 620px;
  font-size: 1.12rem;
  color: rgba(247, 244, 239, 0.86);
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero .btn-outline { border-color: rgba(247,244,239,0.5); color: var(--ivory); }
.hero .btn-outline:hover { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }
.hero .btn-primary { background: var(--ivory); color: var(--navy); }
.hero .btn-primary:hover { background: var(--steel); }

/* ---------- Section shell ---------- */
section { padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-top: 14px; }
.section-head p { color: var(--charcoal-soft); margin-top: 16px; font-size: 1.05rem; }

.alt-bg { background: #EFEBE2; }

/* ---------- Overview ---------- */
.overview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: start;
}

.overview-grid p {
  color: var(--charcoal-soft);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.stat-list {
  display: grid;
  gap: 28px;
  border-left: 1px solid var(--steel);
  padding-left: 32px;
}

.stat-list .num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--navy);
  transition: color 0.25s ease;
}
.stat-list .label {
  font-size: 0.85rem;
  color: var(--pewter);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(10,31,58,0.1);
  border: 1px solid rgba(10,31,58,0.1);
}

.card {
  background: var(--ivory);
  padding: 42px 34px;
  transition: background 0.25s ease;
}
.card:hover { background: #ffffff; }

.card .index {
  font-family: var(--serif);
  color: var(--steel);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.card p { color: var(--charcoal-soft); font-size: 0.95rem; }

/* ---------- Philosophy / approach ---------- */
.philosophy {
  background: var(--navy);
  color: var(--ivory);
}
.philosophy .wrap { max-width: 1080px; text-align: left; }
.philosophy blockquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.35;
  color: var(--ivory);
}
.philosophy cite {
  display: block;
  margin-top: 28px;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--steel);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(247,244,239,0.15);
}
.pillars h4 { color: var(--ivory); font-size: 1rem; margin-bottom: 10px; }
.pillars p { color: rgba(247,244,239,0.72); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info .item { margin-bottom: 28px; }
.contact-info .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pewter); margin-bottom: 6px; }
.contact-info .value { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }

form.contact-form { display: grid; gap: 18px; }
.contact-form label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pewter);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--steel);
  background: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  border-radius: 2px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: rgba(247,244,239,0.6);
  padding: 56px 0 32px;
  font-size: 0.85rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(247,244,239,0.12);
  margin-bottom: 24px;
}
.footer-top .logo { color: var(--ivory); }
.footer-top .logo span { color: var(--steel); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ivory); }
.footer-legal { color: rgba(247,244,239,0.4); font-size: 0.78rem; max-width: 760px; line-height: 1.6; }
.footer-bottom { margin-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: rgba(247,244,239,0.4); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .overview-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px var(--gutter) 32px;
    gap: 20px;
    border-bottom: 1px solid rgba(10,31,58,0.08);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .hero { padding: 110px 0 90px; }
}
