/* ============================================
   THE TACITUS GROUP - MASTER STYLESHEET
   Brand: Navy #1B2A4A | Gold #C5A55A
   Fonts: EB Garamond (headlines), system sans (body)
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #1B2A4A;
  --navy-dark: #131E36;
  --navy-light: #243660;
  --gold: #C5A55A;
  --gold-light: #F5EFD9;
  --gold-muted: #8B7333;
  --white: #FFFFFF;
  --gray-50: #F8F8F6;
  --gray-100: #EDEDEB;
  --gray-200: #DDDBD7;
  --gray-400: #888880;
  --gray-600: #5F5E5A;
  --gray-800: #2C2C2A;
  --font-head: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', 'Aptos Display', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-600);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; color: var(--navy); }

.container { max-width: 1000px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 32px; }
.text-center { text-align: center; }


/* --- NAVIGATION --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo-img {
  width: 40px;
  height: auto;
}

.nav-name {
  display: block;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 19px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.nav-tagline {
  display: block;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: color 0.25s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}


/* --- HERO (HOME) --- */
.hero {
  background: var(--navy);
  padding: 72px 40px 80px;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-logo {
  width: 240px;
  margin: 0 auto 36px;
}

.hero h1 {
  color: var(--white);
  font-size: 42px;
  line-height: 1.25;
  margin-bottom: 20px;
}

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

.hero p {
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 36px;
}


/* --- CTA BUTTON --- */
.cta-button {
  display: inline-block;
  padding: 14px 40px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 13px;
  font-family: var(--font-body);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--gold);
  color: var(--navy);
}


/* --- GOLD DIVIDER --- */
.gold-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}


/* --- SECTIONS --- */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section h2 {
  font-size: 30px;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--gray-400);
  font-size: 16px;
  margin-bottom: 48px;
}


/* --- PAGE HEADER (interior pages) --- */
.page-header {
  background: var(--navy);
  padding: 52px 0 44px;
}

.page-header h1 {
  color: var(--white);
  font-size: 36px;
}

.page-label {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}


/* --- CARD GRID (verticals) --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 940px;
  margin: 0 auto;
}

.card {
  border: 1px solid var(--gray-100);
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.3s, transform 0.25s;
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.card p {
  font-size: 14px;
  line-height: 1.7;
}

.card-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}


/* --- STATS --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.stats-grid-sm {
  grid-template-columns: repeat(2, 1fr);
}

.stat-box {
  background: var(--navy);
  padding: 28px 20px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 34px;
  color: var(--gold);
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* --- CTA BANNER --- */
.cta-banner {
  background: var(--navy);
  padding: 64px 0;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}


/* --- TWO COLUMN (About) --- */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}

.col-text p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 18px;
  color: var(--gray-600);
}

.pullquote {
  margin-top: 28px;
  padding: 24px;
  border-left: 3px solid var(--gold);
}

.pullquote p {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--navy);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 8px;
}

.pullquote cite {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-400);
}


/* --- TEAM --- */
.team-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.team-card {
  text-align: center;
  max-width: 300px;
}

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--navy);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  color: var(--gold);
  font-size: 24px;
}

.team-card h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.team-role {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.team-card p {
  font-size: 14px;
  line-height: 1.7;
}


/* --- SERVICES --- */
.service-block {
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-100);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.service-tag {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-muted);
  font-size: 11px;
  padding: 4px 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.service-block p {
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 16px;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  font-size: 14px;
  line-height: 1.9;
  padding-left: 22px;
  position: relative;
  color: var(--gray-600);
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
}


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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
  margin-bottom: 2px;
}

.contact-item span,
.contact-item a {
  color: var(--gray-600);
  font-size: 14px;
}

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

.contact-callout {
  background: var(--navy);
  padding: 24px;
  margin-top: 8px;
}

.contact-callout p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.75;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border: 1px solid var(--gray-200);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: border-color 0.25s;
  -webkit-appearance: none;
  border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

.contact-form button {
  padding: 16px;
  background: var(--navy);
  color: var(--white);
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
}

.contact-form button:hover {
  background: var(--navy-light);
}


/* --- ABOUT PAGE EXPANDED --- */
.stat-num-sm {
  font-size: 22px;
}

.inline-callout {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-head);
  font-size: 18px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
}

.team-headshot {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 16px;
  border: 3px solid var(--gold);
}

.team-card-featured {
  max-width: 420px;
}

.team-card-featured p {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1.5px solid #0A66C2;
  color: #0A66C2;
  font-size: 13px;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
  transition: all 0.25s;
}

.linkedin-btn:hover {
  background: #0A66C2;
  color: var(--white);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 940px;
  margin: 0 auto;
}

.diff-card {
  padding: 28px 24px;
  border: 1px solid var(--gray-100);
  background: var(--white);
  text-align: left;
}

.diff-num {
  display: block;
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1;
}

.diff-card h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.diff-card p {
  font-size: 13px;
  line-height: 1.75;
}

@media (max-width: 768px) {
  .diff-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .team-headshot {
    width: 120px;
    height: 120px;
  }
}


/* --- SERVICES EXPANDED --- */
.services-intro {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray-600);
  margin-bottom: 18px;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.service-header h3 {
  margin-bottom: 0;
}

.service-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}

.service-details-grid h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.engage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 940px;
  margin: 0 auto;
}

.engage-step {
  text-align: left;
  padding: 28px 24px;
  border: 1px solid var(--gray-100);
  position: relative;
}

.engage-num {
  display: block;
  font-family: var(--font-head);
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 10px;
  line-height: 1;
}

.engage-step h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.engage-step p {
  font-size: 13px;
  line-height: 1.75;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.client-card {
  padding: 28px;
  border: 1px solid var(--gray-100);
  background: var(--white);
}

.client-card h4 {
  font-size: 17px;
  margin-bottom: 10px;
}

.client-card p {
  font-size: 14px;
  line-height: 1.75;
}

@media (max-width: 768px) {
  .engage-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-details-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .client-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .engage-grid {
    grid-template-columns: 1fr;
  }
}


/* --- FOOTER --- */
.footer {
  background: var(--navy-dark);
  padding: 36px 40px;
  border-top: 1px solid rgba(197,165,90,0.25);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 28px;
  height: auto;
  opacity: 0.6;
}

.footer-left span {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  transition: color 0.25s;
}

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


/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a.active::after { display: none; }
  .mobile-toggle { display: flex; }

  .hero { padding: 48px 24px 56px; }
  .hero-logo { width: 180px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }

  .section { padding: 48px 0; }
  .container, .container-narrow { padding: 0 20px; }

  .card-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .page-header { padding: 36px 0 32px; }
  .page-header h1 { font-size: 28px; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-left { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .stat-num { font-size: 28px; }
  .stats-grid { gap: 12px; }
}
