/* ===========================================================
   CoreVox Technologies — shared styles
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink:        #06191A;   /* Dark Chinese Black */
  --primary:    #154741;   /* MSU Green */
  --accent:     #408174;   /* Deep Aquamarine */
  --silver:     #C4C7B5;   /* Pale Silver */
  --grullo:     #A1997F;   /* Grullo */
  --paper:      #F6F7F3;   /* off-white derived from silver, for light sections */
  --white:      #FFFFFF;
  --surface:    #EDEBE2;   /* warm neutral for header/footer — keeps logo's true colors readable */
  --muted:      #6E6A5B;   /* darker grullo tone, for body text on light surfaces */

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --radius: 3px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; max-width: 62ch; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: #34675c; }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--white); }

.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: #0d2b2d; }

/* ---------------- Header / Nav ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid rgba(6,25,26,0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

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

/* Logo keeps its true brand colors — a light header means it never
   needs to be recolored or boxed to stay visible */
.nav-brand img { height: 34px; width: auto; }

@media (max-width: 480px) {
  .nav-brand img { height: 28px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary);
  border-color: var(--accent);
}

.nav-cta { display: flex; align-items: center; gap: 22px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { padding: 10px 16px; font-size: 0.85rem; }
}

/* Mobile menu (shown via JS toggling .open) */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid rgba(6,25,26,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--muted);
  padding: 14px 32px;
  border-bottom: 1px solid rgba(6,25,26,0.08);
  font-size: 0.95rem;
}
.mobile-menu a:hover { color: var(--primary); background: rgba(64,129,116,0.1); }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--surface);
  color: var(--muted);
  padding: 64px 0 28px;
  margin-top: 120px;
  border-top: 1px solid rgba(6,25,26,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(6,25,26,0.1);
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}

.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }

@media (max-width: 480px) {
  .footer-brand img { height: 32px; }
}
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 32ch; }

.footer-col h4 {
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Page hero shared ---------------- */

.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 76px 0 84px;
}

.page-hero .eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  max-width: 18ch;
}

.page-hero p.lede {
  color: var(--silver);
  font-size: 1.1rem;
  max-width: 56ch;
  margin-top: 18px;
}

/* ---------------- Sections ---------------- */

section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-ink p { color: var(--silver); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { margin-top: 14px; color: var(--grullo); font-size: 1.05rem; }
.bg-ink .section-head p { color: var(--silver); }

/* divider used between labeled groups (used sparingly & meaningfully) */
.rule { height: 1px; background: rgba(6,25,26,0.1); margin: 0; }
.bg-ink .rule { background: rgba(196,199,181,0.15); }
