/* Clio Energy Analytics — shared stylesheet
   Palette and type per Clio_Brand_Style_Guide */

:root {
  --clio-navy: #022B59;
  --favr-teal: #5EE0C0;
  --teal-deep: #1C7293;
  --slate-light: #A9C2D6;
  --white: #FFFFFF;
  --slate-ink: #12304A;
  --cool-gray: #5A6B7A;
  --pale-tint: #F2F6F9;
  --royal-blue: #0B4A8E;

  --font-head: Cambria, Georgia, "Times New Roman", serif;
  --font-body: Calibri, "Segoe UI", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate-ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
}

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

a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Eyebrow / section labels ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--favr-teal);
  background: var(--clio-navy);
  display: inline-block;
  padding: 2px 2px;
}
/* Eyebrow sits directly on white/pale backgrounds most of the time —
   render as plain teal letter-spaced text, no chip, per style guide */
.eyebrow.on-light {
  background: none;
  padding: 0;
  color: var(--teal-deep);
}
/* FAVR Teal on white is only ~1.6:1 contrast (fails WCAG AA) — the style
   guide itself reserves Teal Deep for "running teal text ... on white" and
   bright teal for on-navy/chip use, so hero eyebrows use Teal Deep here. */
.eyebrow.on-white-bright { background: none; padding: 0; color: var(--teal-deep); }

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--pale-tint);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 50;
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1140px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 40px; width: 40px; }
.brand-word {
  font-family: var(--font-head);
  font-weight: bold;
  font-size: 19px;
  color: var(--clio-navy);
  letter-spacing: 0.03em;
}
.brand-word span {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--cool-gray);
  margin-top: 1px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--slate-ink);
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover { color: var(--teal-deep); text-decoration: none; }
.nav-links a.active { color: var(--teal-deep); }
.nav-cta {
  background: var(--clio-navy);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--royal-blue); text-decoration: none !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  line-height: 0;
}
.nav-toggle svg {
  width: 26px;
  height: 26px;
  stroke: var(--clio-navy);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--pale-tint);
    border-bottom: 1px solid var(--pale-tint);
    box-shadow: 0 12px 20px rgba(2, 43, 89, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 24px;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
  }
  .nav-links.open {
    max-height: 320px;
    opacity: 1;
    padding: 12px 24px 20px;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--pale-tint);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-cta {
    display: inline-block;
    margin-top: 6px;
    text-align: center;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 72px;
  background: var(--white);
}
.hero .eyebrow { margin-bottom: 14px; }
.hero h1 {
  font-family: var(--font-head);
  color: var(--clio-navy);
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 780px;
}
.hero p.lead {
  font-family: var(--font-body);
  color: var(--cool-gray);
  font-size: 20px;
  max-width: 640px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-mark { display: flex; justify-content: center; }
.hero-mark img {
  width: 100%;
  max-width: 280px;
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  .hero-mark img { max-width: 160px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--clio-navy);
  color: var(--white) !important;
}
.btn-primary:hover { background: var(--royal-blue); text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--clio-navy) !important;
  border-color: var(--clio-navy);
}
.btn-secondary:hover { background: var(--pale-tint); text-decoration: none; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tint { background: var(--pale-tint); }
.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head h2 {
  font-family: var(--font-head);
  color: var(--clio-navy);
  font-size: 32px;
  margin: 0 0 12px;
}
.section-head p {
  color: var(--cool-gray);
  font-size: 17px;
  margin: 0;
}

/* ---------- Signature card motif ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Fixed grids: hold their column count at desktop/tablet widths instead of
   auto-fitting extra columns when there's room */
.card-grid.grid-2x2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.grid-3x2 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .card-grid.grid-3x2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid.grid-2x2,
  .card-grid.grid-3x2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(2, 43, 89, 0.08), 0 1px 2px rgba(2, 43, 89, 0.06);
}
.card.navy {
  background: var(--clio-navy);
  color: var(--slate-light);
}
.chip {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--favr-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
  color: var(--clio-navy);
  font-weight: 700;
  flex-shrink: 0;
}
/* Icon chips: navy icon on teal (8.6:1 contrast) rather than white on teal
   (only 1.6:1) — keeps the signature chip motif accessible */
.chip svg {
  width: 22px;
  height: 22px;
  stroke: var(--clio-navy);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  color: var(--clio-navy);
  margin: 0 0 8px;
}
.card.navy h3 { color: var(--white); }
.card .question {
  font-style: italic;
  color: var(--teal-deep);
  font-size: 15px;
  margin: 0 0 10px;
}
.card.navy .question { color: var(--favr-teal); }
.card p.body-text {
  font-size: 15px;
  color: var(--slate-ink);
  margin: 0;
}
.card.navy p.body-text { color: var(--slate-light); }

/* Sub-tiers within one card (e.g. Basic / Advanced inside a merged tool card) */
.tool-tier {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--pale-tint);
}
.tool-tier:first-of-type {
  margin-top: 14px;
  padding-top: 0;
  border-top: none;
}
.tool-tier-label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 6px;
}

/* ---------- Numbered step list (apprenticeship / phases) ---------- */
.steps {
  display: grid;
  gap: 18px;
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--clio-navy);
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.step h4 {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--clio-navy);
  margin: 3px 0 4px;
}
.step p { margin: 0; color: var(--slate-ink); font-size: 15px; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.team-card { text-align: center; }
.team-card img {
  /* Fixed-size circle crop, matching the pitch deck's ellipse-cropped
     headshots (same source crop ratio) so all three photos read as one
     consistent set, with the same teal ring the deck used around each */
  width: 220px;
  height: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--favr-teal);
  display: block;
  margin: 0 auto 20px;
  box-shadow: 0 2px 8px rgba(2, 43, 89, 0.14);
}
.team-card h3 {
  font-family: var(--font-head);
  color: var(--clio-navy);
  font-size: 20px;
  margin: 0 0 4px;
}
.team-card p.role {
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.team-card p.bio {
  color: var(--cool-gray);
  font-size: 15px;
  max-width: 320px;
  margin: 0 auto;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--clio-navy);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-banner h2 {
  font-family: var(--font-head);
  font-size: 30px;
  margin: 0 0 12px;
}
.cta-banner p {
  color: var(--slate-light);
  font-size: 17px;
  margin: 0 0 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--pale-tint);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner .brand-word { font-size: 15px; }
.footer-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--cool-gray); font-size: 14px; font-weight: 600; }
.footer-note { color: var(--cool-gray); font-size: 13px; margin: 10px 0 0; }

/* ---------- Pyramid (Planning & Performance) ---------- */
.pyramid-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: stretch;
}
.pyramid {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 380px;
}
.pyramid-band {
  flex: 1 1 0;
  background: var(--clio-navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 16px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.pyramid-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.pyramid-detail {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}
.pyramid-detail .chip { margin-bottom: 0; }
.pyramid-detail h4 {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--clio-navy);
  margin: 3px 0 4px;
}
.pyramid-detail p { margin: 0; color: var(--slate-ink); font-size: 14px; }
@media (max-width: 760px) {
  .pyramid-wrap { grid-template-columns: 1fr; }
  .pyramid { min-height: 260px; }
  .pyramid-band { font-size: 12px; }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  background: var(--pale-tint);
  border-radius: 10px;
  padding: 32px;
}
.contact-card .chip { background: var(--clio-navy); color: var(--favr-teal); }
.contact-row { margin-bottom: 20px; }
.contact-row .label {
  font-weight: 700;
  color: var(--clio-navy);
  font-size: 14px;
  margin-bottom: 2px;
}
.contact-row .value { color: var(--slate-ink); font-size: 15px; }
.contact-form { display: grid; gap: 16px; }
.contact-form label {
  font-weight: 700;
  font-size: 14px;
  color: var(--clio-navy);
  display: block;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--slate-light);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--slate-ink);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* ---------- Table (services page reference table) ---------- */
.table-wrap { overflow-x: auto; }
table.clio-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
table.clio-table th {
  background: var(--clio-navy);
  color: var(--white);
  text-align: left;
  padding: 10px 12px;
  font-weight: 700;
}
table.clio-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--pale-tint);
  color: var(--slate-ink);
}
table.clio-table tr:nth-child(even) td { background: var(--pale-tint); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero h1 { font-size: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}
