/* ─── Reset & base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg:       #fafaf8;
  --color-bg-light: #f4f3ef;
  --color-accent:   #1a3a5c;
  --color-accent-bg:#eef2f7;
  --color-text:     #1c1c1a;
  --color-muted:    #5a5a54;
  --color-link:     #1a3a5c;
  --font-serif:     'Libre Baskerville', Georgia, serif;
  --font-sans:      'Source Sans 3', system-ui, sans-serif;
  --max-width:      1080px;
  --narrow-width:   760px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

a { color: var(--color-link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.75; }

/* ─── Layout helpers ────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow {
  max-width: var(--narrow-width);
}

.section { padding: 4.5rem 0; }
.section-light { background: var(--color-bg-light); }
.section-accent { background: var(--color-accent-bg); }

/* ─── Header ────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  background: var(--color-bg);
  border-bottom: 1px solid #e0dfd8;
  z-index: 100;
  padding: 0.9rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.01em;
}
.logo-sub {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav { display: flex; gap: 1.75rem; }
nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
nav a:hover { color: var(--color-accent); opacity: 1; }

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 5rem;
  border-bottom: 1px solid #e0dfd8;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  max-width: 680px;
}
.hero .lead {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 620px;
  line-height: 1.75;
}

/* ─── Sections ──────────────────────────────────────────────────── */
h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.section p { color: var(--color-muted); margin-bottom: 1.25rem; }
.section p:last-child { margin-bottom: 0; }

/* ─── Service grid ──────────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-card {
  background: var(--color-bg);
  border: 1px solid #dddcd5;
  border-radius: 4px;
  padding: 1.5rem;
}
.service-card p { font-size: 0.9375rem; margin: 0; }

/* ─── Mozquizto / product section ──────────────────────────────── */
.product-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.product-header h2 { margin-bottom: 0; }
.product-tagline {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-list {
  margin: 1.25rem 0 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feature-list li {
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.section-accent a {
  color: var(--color-accent);
  font-weight: 600;
}

.university-logos {
  border-top: 1px solid #cdd5e0;
  padding-top: 1.5rem;
  margin-top: 2rem;
}
.used-by {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.5rem !important;
}
.university-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.university {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--color-accent);
}
.university-sep { color: var(--color-muted); font-size: 1.25rem; }

/* ─── Contact ───────────────────────────────────────────────────── */
.contact-block {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid #dddcd5;
  border-radius: 4px;
  display: inline-block;
}
.contact-block p { margin-bottom: 0.25rem; }

/* ─── Footer ────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid #e0dfd8;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  nav { gap: 1rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .service-grid { grid-template-columns: 1fr; }
  .product-header { flex-direction: column; gap: 0.25rem; }
}
