/* SaVi marketing site: brand deck palette */

:root {
  --purple: #51067e;
  --purple-light: #E4D9EB;
  --warm-grey: #F4F4F2;
  --charcoal: #1C1C1E;
  --mid-grey: #6B6B6B;
  --white: #FFFFFF;
  --max-width: 1100px;
  --radius: 0;
  --border: 1px solid rgba(28, 28, 30, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--warm-grey);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #3D055F;
}

/* Header */

.site-header {
  background: var(--white);
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  background: var(--purple-light);
  color: var(--purple);
  border-color: rgba(28, 28, 30, 0.12);
}

.site-nav a.active {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

/* Main */

main {
  flex: 1;
}

.section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--mid-grey);
  max-width: 42rem;
  margin-bottom: 2rem;
}

/* Hero */

.hero {
  background: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--mid-grey);
  max-width: 40rem;
  margin: 0 auto 2rem;
}

/* Connect grid */

.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 36rem;
  margin: 2.5rem auto 0;
}

.connect-item {
  background: var(--white);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 1.25rem 0.75rem;
  border: var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  min-height: 8.5rem;
}

.logo-slot {
  width: 180px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.connect-item .logo-slot {
  background: transparent;
}

.connect-icon,
.card-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  margin-bottom: 0;
  background: transparent;
}

/* Mission */

.mission {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
}

.mission blockquote {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 600;
  font-style: italic;
  max-width: 44rem;
  margin: 0 auto;
  line-height: 1.5;
}

.mission cite {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-style: normal;
  color: var(--purple-light);
  font-weight: 600;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  padding: 2rem;
  border: var(--border);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.card .logo-slot {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--mid-grey);
  font-size: 1rem;
}

.value-card .card h3 {
  color: var(--charcoal);
}

/* CTA strip */

.cta-strip {
  background: var(--purple);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.5rem;
}

.cta-strip p {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.btn-primary {
  display: inline-block;
  background: var(--white);
  color: var(--purple);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--white);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary:hover {
  color: var(--purple);
  background: var(--purple-light);
}

/* Problem section */

.problem {
  background: var(--warm-grey);
}

.problem p {
  color: var(--mid-grey);
  max-width: 42rem;
  font-size: 1.1rem;
}

.problem p + p {
  margin-top: 1rem;
}

/* Personas */

.persona-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.persona-item {
  flex: 0 1 calc((100% - 2rem) / 3);
  min-width: 240px;
  min-height: 7.5rem;
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border: var(--border);
  border-left: 4px solid var(--purple);
}

.persona-item strong {
  display: block;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

.persona-item span {
  color: var(--mid-grey);
  font-size: 0.95rem;
}

/* Differentiators */

.diff-list {
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.diff-list li {
  background: var(--white);
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  position: relative;
  border: var(--border);
}

.diff-list .num {
  position: absolute;
  left: 1.25rem;
  top: 1.5rem;
  width: 2rem;
  height: 2rem;
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diff-list h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.diff-list p {
  color: var(--mid-grey);
  font-size: 0.95rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.contact-card {
  background: var(--white);
  padding: 2rem;
  border: var(--border);
}

.address-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.contact-card .label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.contact-card .value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.contact-action {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--purple);
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-action:hover {
  color: #3D055F;
}

.contact-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--purple);
}

.contact-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.closing-line {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 3rem;
  padding: 2rem;
  background: var(--purple-light);
  border: var(--border);
}

/* Footer */

.site-footer {
  background: var(--charcoal);
  color: var(--mid-grey);
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: auto;
}

.footer-tagline {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--purple-light);
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--purple-light);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer .copy {
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* Page header (inner pages) */

.page-header {
  background: var(--white);
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  border-bottom: var(--border);
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--mid-grey);
  font-size: 1.1rem;
  max-width: 36rem;
  margin: 0 auto;
}

/* Responsive */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1;
    text-align: center;
    min-width: calc(50% - 0.25rem);
  }

  .connect-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.5rem 1.5rem 3rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }
}
