:root {
  --cream: #f1efeb;
  --cream-dark: #e8e4de;
  --charcoal: #1e1e1e;
  --charcoal-soft: #2d2d2d;
  --text: #2a2a2a;
  --text-muted: #6b6b6b;
  --text-light: #9a9a9a;
  --white: #ffffff;
  --accent: #5a7d8c;
  --accent-hover: #4a6b78;
  --border: #d8d4cd;
  --max-width: 1200px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  background: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 2.5rem, 1400px);
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 56px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .logo img {
    height: 72px;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--charcoal);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  color: var(--text);
  font-weight: 400;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  text-decoration: none;
}

/* Hero */
.hero-institutional {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--charcoal) url("/assets/hero-texture.svg") center/cover no-repeat;
  color: var(--white);
}

.hero-institutional::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.75) 0%, rgba(30, 30, 30, 0.55) 50%, rgba(40, 40, 40, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 0 0;
}

.hero-brand {
  display: inline-block;
  background: rgba(255, 255, 255, 0.96);
  padding: 1.1rem 1.75rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-brand:hover {
  text-decoration: none;
}

.hero-brand img {
  height: 56px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .hero-brand {
    padding: 1.35rem 2.25rem;
    margin-bottom: 2.5rem;
  }

  .hero-brand img {
    height: 80px;
  }
}

.page-hero-brand {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.page-hero-brand img {
  height: 48px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .page-hero-brand img {
    height: 64px;
  }
}

.hero-credentials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}

.hero-credentials::before {
  content: "";
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.hero-institutional h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1.75rem;
  max-width: 700px;
  letter-spacing: -0.02em;
}

.hero-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 2rem;
  color: var(--white);
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s;
}

.hero-card:last-child {
  border-right: none;
}

.hero-card:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: var(--white);
}

.hero-card-icon {
  font-size: 1.5rem;
  opacity: 0.7;
  width: 2rem;
  text-align: center;
}

.hero-card-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.hero-card-text span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: var(--white);
}

/* Intro three-column */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 3rem;
  padding: 5rem 0;
  align-items: start;
}

.intro-grid h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.intro-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.intro-bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.intro-bullets li::before {
  content: "■";
  position: absolute;
  left: 0;
  font-size: 0.45rem;
  top: 0.55em;
  color: var(--accent);
}

.intro-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Section headings */
.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 2.5rem;
  letter-spacing: -0.02em;
}

/* Pillars */
.pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.pillar h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0;
}

.pillar h3::after {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  margin-top: 0.75rem;
}

/* Split sections */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.split-section h3 {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 1rem;
}

.split-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

/* Services */
.section-services {
  padding: 5rem 0;
  background: var(--white);
}

.services-intro {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: -1.5rem 0 3rem;
}

.service-card {
  border: 1px solid var(--border);
  padding: 2.5rem;
  background: var(--cream);
  transition: border-color 0.2s;
}

.service-card:hover {
  border-color: var(--accent);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Who we work with */
.section-audience {
  padding: 5rem 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.audience-item h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 0.5rem;
}

.audience-item h3::before {
  content: "■ ";
  font-size: 0.5rem;
  color: var(--accent);
  vertical-align: middle;
}

.audience-summary {
  max-width: 800px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Values pillars */
.section-values {
  padding: 5rem 0;
  background: var(--charcoal);
  color: var(--white);
}

.section-values .section-heading {
  color: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.value-item h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.value-item p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  line-height: 1.6;
}

/* Marquee */
.marquee-band {
  background: var(--charcoal-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding: 1.25rem 0;
}

.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.marquee-item strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.marquee-item span {
  color: rgba(255, 255, 255, 0.45);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* CTA band */
.cta-institutional {
  padding: 5rem 0;
  text-align: center;
  background: var(--cream);
}

.cta-credentials {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.cta-institutional h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 1rem;
}

.cta-institutional p {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Page header (inner pages) */
.page-hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 4rem 0 3rem;
}

.page-hero .hero-credentials {
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.02em;
}

.page-content {
  padding: 4rem 0 5rem;
}

.page-content h2 {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 2.5rem 0 1rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p,
.page-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.page-content ul {
  padding-left: 1.25rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form label {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--charcoal);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  background: var(--white);
  font: inherit;
  margin-bottom: 1.25rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-details h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 0.35rem;
}

.contact-details p {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.65);
  padding: 4rem 0 2rem;
  font-size: 0.88rem;
}

.footer-intro {
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
}

.footer-logo img {
  height: 48px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .footer-logo img {
    height: 56px;
  }
}

.footer-intro strong {
  color: rgba(255, 255, 255, 0.9);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h4 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.55);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-contact-item {
  margin-bottom: 1.25rem;
}

.footer-contact-item strong {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

.disclaimer {
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-legal a {
  font-size: 0.78rem;
}

/* Wholesale notice */
.wholesale-notice {
  background: var(--cream-dark);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Performance reports (preserved) */
.reports-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
}

.reports-filter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 160px;
}

.reports-filter label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--charcoal);
}

.reports-filter select {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  font: inherit;
  background: var(--white);
}

.reports-count {
  margin: 0;
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.reports-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
}

.reports-table th,
.reports-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.reports-table th {
  background: var(--charcoal);
  color: var(--white);
  font-weight: 500;
}

.reports-empty,
.reports-loading {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--white);
  border: 1px dashed var(--border);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.team-member {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
}

.team-member-photo {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 1.25rem;
  display: block;
}

.team-member h3 {
  margin: 0 0 0.25rem;
  font-weight: 500;
  color: var(--charcoal);
}

.team-member .role {
  color: var(--accent);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-cards {
    grid-template-columns: 1fr;
  }

  .hero-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .intro-grid,
  .split-section,
  .pillars-row,
  .audience-grid,
  .values-grid,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    flex-wrap: wrap;
    position: relative;
  }
}
