/*
  Landing page for CGM Consulting Group. Hand-written, static CSS (no Vite
  build step) - deliberately kept small since this page has no interactive
  state, unlike the assessment app in assets/scss/rueda-supervision.
  Color/font tokens mirror assets/scss/rueda-supervision/_tokens.scss so the
  brand reads consistently across the marketing page and the app.
*/

:root {
  --bg: #f3f4fa;
  --surface: #ffffff;
  --surface-soft: #eef0f8;
  --border: #dfe2ef;
  --text-primary: #171a2b;
  --text-secondary: #565c78;
  --text-muted: #8890ad;
  --brand: #24346f;
  --brand-ink: #ffffff;
  --claridad: #2a78d6;
  --contagio: #eb6834;
  --control: #1caf79;
  --shadow-soft: 0 14px 40px rgba(24, 29, 48, 0.08);
  --radius-card: 22px;
  --radius-pill: 999px;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-ui: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-ui);
  line-height: 1.5;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  text-wrap: balance;
}

a {
  color: inherit;
}

.cgm-home {
  margin: 0 auto;
  max-width: 1080px;
  padding: 28px clamp(18px, 4vw, 40px) 0;
}

/* Header */

.cgm-home__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(32px, 6vw, 64px);
}

.cgm-home__logo {
  display: block;
  height: auto;
  width: 168px;
}

.cgm-home__login {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 18px;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}

.cgm-home__login:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Hero */

.cgm-home__hero {
  padding-bottom: clamp(40px, 7vw, 72px);
  text-align: center;
}

.cgm-home__kicker {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cgm-home__title {
  color: var(--brand);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin: 14px auto 0;
  max-width: 18ch;
}

.cgm-home__subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  margin: 22px auto 0;
  max-width: 58ch;
}

.cgm-home__three-cs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.cgm-home__three-cs span {
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 16px;
}

.cgm-home__three-cs span:nth-child(1) {
  background: var(--claridad);
}

.cgm-home__three-cs span:nth-child(2) {
  background: var(--contagio);
}

.cgm-home__three-cs span:nth-child(3) {
  background: var(--control);
}

/* Sections */

.cgm-home__section {
  padding-bottom: clamp(40px, 7vw, 72px);
}

.cgm-home__section-head {
  margin-bottom: 28px;
  text-align: center;
}

.cgm-home__section-head h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.cgm-home__section-head p {
  color: var(--text-secondary);
  margin: 10px auto 0;
  max-width: 60ch;
}

/* Pillars grid */

.cgm-home__pillars {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cgm-home__pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 24px 20px;
}

.cgm-home__pillar h3 {
  color: var(--text-primary);
  font-size: 1.05rem;
}

.cgm-home__pillar p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-top: 10px;
}

/* Philosophy quote */

.cgm-home__quote {
  background: var(--brand);
  border-radius: var(--radius-card);
  color: var(--brand-ink);
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
}

.cgm-home__quote p:first-child {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.5;
  margin: 0 auto;
  max-width: 46ch;
}

.cgm-home__quote p:last-child {
  color: color-mix(in srgb, var(--brand-ink) 72%, transparent);
  font-size: 0.92rem;
  margin-top: 18px;
}

/* Footer */

.cgm-home__footer {
  border-top: 1px solid var(--border);
  padding: clamp(28px, 5vw, 40px) clamp(18px, 4vw, 40px) 32px;
}

.cgm-home__footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1080px;
}

.cgm-home__footer-block h4 {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.cgm-home__footer-block p,
.cgm-home__footer-block a {
  color: var(--text-secondary);
  display: block;
  font-size: 0.88rem;
  line-height: 1.7;
  text-decoration: none;
}

.cgm-home__footer-block a:hover {
  color: var(--brand);
}

.cgm-home__social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.cgm-home__social a {
  align-items: center;
  background: var(--surface-soft);
  border-radius: 50%;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.cgm-home__social a:hover {
  background: var(--brand);
  color: #fff;
}

.cgm-home__legal {
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8rem;
  gap: 10px;
  justify-content: space-between;
  margin: 24px auto 0;
  max-width: 1080px;
  padding-top: 20px;
}

.cgm-home__credit {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.cgm-home__credit-brand {
  color: #6c757d;
  font-family: "Protest Guerrilla", var(--font-ui);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 160ms ease;
}

.cgm-home__credit-brand:hover {
  color: #e67700;
}

@media (max-width: 640px) {
  .cgm-home__three-cs {
    flex-wrap: wrap;
  }

  .cgm-home__legal {
    flex-direction: column;
    text-align: center;
  }
}
