/* ============================================================
   HYPERCLEAR CONSULTING — SHARED DESIGN SYSTEM
   Every page pulls from this single file. Update tokens here,
   not per-page, to keep the site consistent.
   ============================================================ */

/* --- Fonts -------------------------------------------------
   Nexa Bold is the specified headline font but is a licensed
   commercial font (Fontfabric) — no web files are loaded yet.
   Montserrat (700) is used as a visual stand-in until the
   licensed Nexa .woff2 files are added below.
   ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Brand colors — from Hyperclear brand spec */
  --color-aqua: #00AEC7;         /* PANTONE 3125 C — headlines, call-outs, hover states, links */
  --color-grey: #A7A8AA;         /* PANTONE Cool Grey 6 C — default button state, muted UI */
  --color-grey-section: #58585B; /* deeper grey for solid section backgrounds (contrast-safe for white text; #A7A8AA alone is too light) */
  --color-body: #333333;         /* dark grey body copy on white */
  --color-black: #000000;        /* bullets + bold callout words within grey paragraph text */
  --color-white: #FFFFFF;

  /* Type */
  --font-heading: 'Montserrat', 'Nexa Bold', sans-serif; /* placeholder for Nexa Bold */
  --font-body: 'Inter', -apple-system, sans-serif;

  --radius: 2px;
  --transition: 0.25s ease;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-aqua);
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Sections ------------------------------------------------ */
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }

.section-white { background: var(--color-white); color: var(--color-body); }

.section-grey {
  background: var(--color-grey-section);
  color: var(--color-white);
}
.section-grey h1, .section-grey h2, .section-grey h3 { color: var(--color-white); }
.section-grey a { color: var(--color-white); text-decoration: underline; }
.section-grey a:hover { color: var(--color-aqua); }

/* Emphasis inside white-background paragraphs */
.section-white strong, .callout-word { color: var(--color-black); font-weight: 700; }
.section-white ul li::marker { color: var(--color-black); }

/* --- Header / Nav ---------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid #EAEAEA;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header img.logo { height: 40px; width: auto; display: block; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--color-body);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-aqua); text-decoration: none; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-white);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #EAEAEA;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid #EFEFEF; }
  .nav-links a { display: block; padding: 14px 24px; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--color-aqua);
    cursor: pointer;
  }
}

/* --- Buttons ----------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  /* Using --color-grey-section (deeper grey) instead of the lighter brand
     --color-grey here on purpose: white text on #A7A8AA only hits 2.4:1
     contrast (fails WCAG AA). #58585B keeps the grey family but gets
     white text to 7:1. --color-grey is still available for non-text UI. */
  background: var(--color-grey-section);
  color: var(--color-white) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
/* Hover text switches to black, not white: white-on-aqua is only 2.7:1
   (fails AA); black-on-aqua is 7.9:1. */
.btn:hover { background: var(--color-aqua); color: var(--color-black) !important; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white) !important;
}
.btn-outline:hover { background: var(--color-aqua); border-color: var(--color-aqua); }

/* --- Hero --------------------------------------------------------- */
.hero {
  padding: 90px 0 80px;
  background: var(--color-white);
}
.hero .eyebrow {
  font-family: var(--font-heading);
  color: var(--color-grey-section);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero p.lede { font-size: 1.2rem; max-width: 640px; }

/* --- Industry tile grid -------------------------------------------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tile {
  /* Same contrast fix as .btn — see note above. */
  background: var(--color-grey-section);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
  padding: 30px 12px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: default;
}
.tile:hover { background: var(--color-aqua); color: var(--color-black); transform: translateY(-2px); }

@media (max-width: 860px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .tile-grid { grid-template-columns: 1fr; }
}

/* --- Cards (services, case studies, insights, news) ------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--color-white);
  border: 1px solid #EAEAEA;
  border-radius: var(--radius);
  padding: 30px;
}
.card h3 { color: var(--color-aqua); margin-bottom: 10px; }
.card .card-eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--color-grey-section);
  margin-bottom: 8px;
  display: block;
}
.card .btn { margin-top: 12px; }

/* Pull quote (news/press) */
blockquote.pull-quote {
  border-left: 4px solid var(--color-aqua);
  margin: 20px 0;
  padding: 6px 0 6px 20px;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-body);
}
.section-grey blockquote.pull-quote { color: var(--color-white); border-left-color: var(--color-white); }

/* --- Leadership / bio block ------------------------------------------- */
.bio-block {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
}
.bio-block img.headshot {
  width: 100%;
  border-radius: var(--radius);
}
@media (max-width: 700px) {
  .bio-block { grid-template-columns: 1fr; }
  .bio-block img.headshot { max-width: 240px; }
}

/* Placeholder callouts for content pending upload */
.placeholder-note {
  background: #FFF7E6;
  border: 1px dashed #D9B65C;
  color: #6B5220;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin: 18px 0;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--color-grey-section);
  color: var(--color-white);
  padding: 56px 0 28px;
}
.site-footer a { color: var(--color-white); }
.site-footer a:hover { color: var(--color-aqua); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.social-links { display: flex; gap: 14px; align-items: center; }
.social-links img { width: 42px; height: 42px; border-radius: var(--radius); display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  color: #D7D7D8;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Utility -------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
