/* =========================================================
   CREA HR Advisory — Stylesheet
   Palette & type taken from the CREA brand deck
   ========================================================= */

:root {
  /* Brand colours */
  --teal-900: #0f3a48;   /* primary dark background */
  --teal-800: #174b58;   /* card on dark */
  --teal-700: #1f5d6b;
  --teal-400: #5e9a9f;   /* logo light teal */
  --gold-300: #d2ad73;   /* gold on dark */
  --gold-500: #c9a066;
  --gold-700: #a3783f;   /* gold on light */
  --cream:    #f3eee4;   /* light section */
  --sand:     #ebe5d9;   /* alt light section */
  --paper:    #fbfaf7;   /* cards on light */
  --ink:      #123a47;   /* headings on light */
  --ink-soft: #3d5a63;   /* body text on light */
  --on-dark:  #f3eee4;
  --on-dark-soft: #c9d6d8;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(18, 58, 71, 0.12);

  /* Type */
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Lato", "Segoe UI", Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --header-h: 76px;
  --shadow-sm: 0 2px 8px rgba(15, 58, 72, 0.06);
  --shadow-md: 0 14px 40px rgba(15, 58, 72, 0.12);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* The gold edge stripe from the slides */
body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-700));
  z-index: 60;
}

/* ---------- Section themes ---------- */
section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-dark  { background: var(--teal-900); color: var(--on-dark-soft); }
.section-light { background: var(--cream); }
.section-sand  { background: var(--sand); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 20px;
}
.section-dark .eyebrow { color: var(--gold-300); }

.display {
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.section-dark .display { color: var(--on-dark); }

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.7;
  margin-top: 28px;
  max-width: 46ch;
}

.rule {
  display: block;
  width: 120px;
  height: 3px;
  background: var(--gold-500);
  margin: 36px 0 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-500); color: var(--teal-900); }
.btn-gold:hover { background: var(--gold-300); }
.btn-outline-light { border-color: rgba(243, 238, 228, 0.45); color: var(--on-dark); }
.btn-outline-light:hover { border-color: var(--gold-300); color: var(--gold-300); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 50;
  background: rgba(15, 58, 72, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--on-dark);
}
.brand-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--on-dark);
  position: relative;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--gold-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }
.main-nav .btn { color: var(--teal-900); }

.nav-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px; height: 1px;
}
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--on-dark);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-check:checked + .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-check:checked + .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-check:checked + .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-check:focus-visible + .nav-toggle { outline: 2px solid var(--gold-300); outline-offset: 2px; border-radius: 6px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 60px);
  overflow: hidden;
}
.hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.net-lines line { stroke: rgba(94, 154, 159, 0.45); stroke-width: 1.5; }
.net-nodes circle { fill: rgba(94, 154, 159, 0.9); transform-box: fill-box; transform-origin: center; animation: pulse 4s ease-in-out infinite; }
.net-nodes circle.gold { fill: rgba(210, 173, 115, 0.95); }
.net-nodes circle:nth-child(3n)   { animation-delay: -1.3s; }
.net-nodes circle:nth-child(3n+1) { animation-delay: -2.6s; }
.net-lines { animation: drift 14s ease-in-out infinite alternate; }
.net-nodes { animation: drift 14s ease-in-out infinite alternate; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.35); opacity: 1; } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-18px, 12px); } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--teal-900) 25%, rgba(15, 58, 72, 0.35) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }

.hero-logo-card {
  display: inline-block;
  background: var(--cream);
  border-radius: 20px;
  padding: 14px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  margin-bottom: 36px;
}
.hero-logo-card img { width: clamp(220px, 30vw, 380px); height: auto; mix-blend-mode: multiply; }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6.6vw, 88px);
  line-height: 1.08;
  color: var(--on-dark);
  max-width: 17ch;
  letter-spacing: -0.015em;
}
.hero-lead {
  font-size: clamp(18px, 1.8vw, 23px);
  max-width: 44ch;
  color: var(--on-dark-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.stat-card {
  background: var(--teal-900);
  color: var(--on-dark);
  border-radius: 20px;
  padding: clamp(36px, 4vw, 56px);
  box-shadow: var(--shadow-md);
}
.stat-card .eyebrow { color: var(--gold-300); }
.stat-number {
  font-family: var(--serif);
  font-size: clamp(80px, 10vw, 140px);
  line-height: 0.95;
  color: var(--gold-300);
  letter-spacing: -0.02em;
}
.stat-unit { font-size: 26px; margin-top: 14px; }
.stat-card hr { border: 0; border-top: 1px solid var(--line-dark); margin: 30px 0 24px; }
.stat-note { color: var(--on-dark-soft); font-size: 18px; }

/* =========================================================
   WHY
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.why-card {
  background: var(--paper);
  border-top: 4px solid var(--gold-700);
  border-radius: 8px;
  padding: 36px 30px 40px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s, box-shadow 0.35s;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.icon-circle {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--teal-900);
  color: var(--gold-300);
  font-size: 24px;
  margin-bottom: 26px;
}
.why-card h3 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 23px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 14px;
}

/* =========================================================
   APPROACH
   ========================================================= */
.steps {
  list-style: none;
  padding: 0;
  margin: 72px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step { border-top: 3px solid var(--gold-500); padding-top: 34px; position: relative; }
.step::before {
  content: "";
  position: absolute;
  top: -8px; left: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 0 5px var(--teal-900);
}
.step-label {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal-400);
}
.step h3 {
  font-family: var(--serif);
  font-size: clamp(34px, 3.4vw, 48px);
  color: var(--gold-300);
  margin: 16px 0 18px;
}
.step p { font-size: 18px; color: var(--on-dark); opacity: 0.88; }

/* =========================================================
   SERVICES
   ========================================================= */
.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--paper);
  padding: 6px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.filter-btn {
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.filter-btn:hover { color: var(--ink); }
.filter-radio { position: absolute; opacity: 0; pointer-events: none; }
#f-all:checked        ~ .services-head label[for="f-all"],
#f-people:checked     ~ .services-head label[for="f-people"],
#f-policy:checked     ~ .services-head label[for="f-policy"],
#f-compliance:checked ~ .services-head label[for="f-compliance"] {
  background: var(--teal-900);
  color: var(--gold-300);
}
.filter-radio:focus-visible ~ .services-head .filter { outline: 2px solid var(--gold-700); outline-offset: 3px; }
#f-people:checked     ~ .services-grid .service-card:not([data-cat="people"]),
#f-policy:checked     ~ .services-grid .service-card:not([data-cat="policy"]),
#f-compliance:checked ~ .services-grid .service-card:not([data-cat="compliance"]) { display: none; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.service-card {
  border-radius: var(--radius);
  border-top: 4px solid var(--gold-700);
  padding: clamp(32px, 4vw, 52px);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s, box-shadow 0.35s, opacity 0.35s;
}
/* alternate dark cards, echoing the deck rhythm */
.service-card:nth-child(4n+1),
.service-card:nth-child(4n+2) {
  background: var(--teal-800);
  border-top-color: var(--gold-500);
  color: var(--on-dark);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.service-num {
  font-family: var(--serif);
  font-size: clamp(56px, 6vw, 80px);
  line-height: 1;
  color: var(--gold-700);
}
.service-card:nth-child(4n+1) .service-num,
.service-card:nth-child(4n+2) .service-num { color: var(--gold-300); }

.service-card h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.2;
  color: var(--ink);
  margin: 18px 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-light);
}
.service-card:nth-child(4n+1) h3,
.service-card:nth-child(4n+2) h3 { color: var(--on-dark); border-bottom-color: var(--line-dark); }

.service-card ul { list-style: none; margin: 0; padding: 0; }
.service-card li {
  position: relative;
  padding: 13px 0 13px 30px;
  font-size: 18px;
  border-bottom: 1px solid var(--line-light);
}
.service-card li:last-child { border-bottom: 0; }
.service-card:nth-child(4n+1) li,
.service-card:nth-child(4n+2) li { border-bottom-color: var(--line-dark); }
.service-card li::before {
  content: "";
  position: absolute;
  left: 4px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--gold-700);
}
.service-card:nth-child(4n+1) li::before,
.service-card:nth-child(4n+2) li::before { background: var(--gold-300); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 44px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 20px; padding: 10px 0; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(210, 173, 115, 0.5);
  color: var(--gold-300);
  font-size: 18px;
  flex-shrink: 0;
}
.contact-list a {
  color: var(--on-dark);
  text-decoration: none;
  font-size: clamp(18px, 2vw, 24px);
  word-break: break-word;
}
.contact-list a:hover { color: var(--gold-300); }

.contact-card {
  background: var(--teal-800);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--on-dark);
  background: rgba(15, 58, 72, 0.7);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select option { color: var(--ink); background: var(--paper); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-300);
  box-shadow: 0 0 0 3px rgba(210, 173, 115, 0.2);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #e48a7a; }
.form-note { font-size: 14px; color: var(--on-dark-soft); text-align: center; opacity: 0.85; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #0b2f3a;
  color: var(--on-dark-soft);
  padding: 48px 0;
  font-size: 15px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-badge { width: 56px; height: 56px; border-radius: 50%; }
.footer-name { font-weight: 900; color: var(--on-dark); letter-spacing: 0.04em; }
.footer-tag { font-size: 14px; color: var(--gold-300); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--gold-300); }
.footer-copy { width: 100%; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; }

/* Back to top */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-500);
  color: var(--teal-900);
  font-weight: 900;
  font-size: 20px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  z-index: 40;
  transition: transform 0.25s, background 0.25s;
}
.to-top:hover { background: var(--gold-300); transform: translateY(-3px); }

/* =========================================================
   Reveal animation
   ========================================================= */
/* Content is always visible; browsers that support scroll-driven
   animations (Chrome, Edge, Safari 26+) fade it in as it scrolls into view. */
@keyframes reveal-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade-up-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hero-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { animation: hero-in 0.9s ease both; }
  .hero .reveal:nth-child(2) { animation-delay: 0.1s; }
  .hero .reveal:nth-child(3) { animation-delay: 0.2s; }
  .hero .reveal:nth-child(4) { animation-delay: 0.3s; }
  .hero .reveal:nth-child(5) { animation-delay: 0.4s; }
  .hero .reveal:nth-child(6) { animation-delay: 0.5s; }

  @supports (animation-timeline: view()) {
    section:not(.hero) .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
    .to-top {
      animation: fade-up-in linear both;
      animation-timeline: scroll(root);
      animation-range: 0 700px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .net-nodes circle, .net-lines, .net-nodes { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--teal-900);
    padding: 12px var(--gutter) 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  }
  .nav-check:checked ~ .main-nav { opacity: 1; transform: none; visibility: visible; }
  .main-nav a { padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-size: 17px; }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .btn { margin-top: 20px; border-bottom: 0; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  /* keep alternating rhythm in single column */
  .service-card:nth-child(n) { background: var(--paper); color: inherit; border-top-color: var(--gold-700); }
  .service-card:nth-child(odd) { background: var(--teal-800); color: var(--on-dark); border-top-color: var(--gold-500); }
  .service-card:nth-child(n) .service-num { color: var(--gold-700); }
  .service-card:nth-child(odd) .service-num { color: var(--gold-300); }
  .service-card:nth-child(n) h3 { color: var(--ink); border-bottom-color: var(--line-light); }
  .service-card:nth-child(odd) h3 { color: var(--on-dark); border-bottom-color: var(--line-dark); }
  .service-card:nth-child(n) li { border-bottom-color: var(--line-light); }
  .service-card:nth-child(odd) li { border-bottom-color: var(--line-dark); }
  .service-card:nth-child(n) li::before { background: var(--gold-700); }
  .service-card:nth-child(odd) li::before { background: var(--gold-300); }
  .service-card li:last-child { border-bottom: 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  body::before { width: 5px; }
  .why-grid,
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .filter { border-radius: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .brand-badge { width: 40px; height: 40px; }
}
