/* =============================================================
   GRADEGUIDER — SITE HEADER
   Two tiers: a slim dark contact strip over a white nav bar.

   The header is position:fixed and a FIXED HEIGHT at every
   breakpoint. That is deliberate: the page runs GSAP
   ScrollSmoother, and a header that changes height mid-scroll
   resizes the document under the reader, which ScrollSmoother
   answers with a flash and a jump to the top. Nothing in here
   may grow or shrink on scroll.
   ============================================================= */

.gg-header {
  --hd-strip: 38px;
  --hd-bar: 74px;
  --hd-h: calc(var(--hd-strip) + var(--hd-bar));

  --hd-dark: #133026;
  --hd-dark-2: #0d241b;
  --hd-green: #82a51f;
  --hd-green-lt: #bdd239;
  --hd-ink: #161a13;
  --hd-ink-soft: #5f635c;
  --hd-line: rgba(36, 44, 25, 0.10);

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  font-family: "DM Sans", "Epilogue", system-ui, sans-serif;
}

.gg-header__inner {
  width: min(calc(100% - 72px), 1680px);
  margin: 0 auto;
}

/* -------------------------------------------------------------
   TIER 1 — contact strip
   ------------------------------------------------------------- */

.gg-strip {
  height: var(--hd-strip);
  background: var(--hd-dark);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.gg-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

.gg-strip__group {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.gg-strip a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.gg-strip a:hover,
.gg-strip a:focus-visible {
  color: var(--hd-green-lt);
}

.gg-strip svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: var(--hd-green-lt);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gg-strip__social {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.gg-strip__social a {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.gg-strip__social a:hover {
  background: var(--hd-green);
  transform: translateY(-1px);
}

.gg-strip__social svg {
  width: 13px;
  height: 13px;
  fill: #fff;
  stroke: none;
}

/* -------------------------------------------------------------
   TIER 2 — nav bar
   ------------------------------------------------------------- */

.gg-bar {
  height: var(--hd-bar);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--hd-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* transition only the shadow — never anything that affects layout */
  transition: box-shadow 0.28s ease, background-color 0.28s ease;
}

.gg-header.is-stuck .gg-bar {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 24px rgba(28, 36, 20, 0.09);
}

.gg-bar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

/* brand */

.gg-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  text-decoration: none;
  color: inherit;
}

.gg-brand img {
  width: 34px;
  height: 42px;
  object-fit: contain;
  flex: none;
}

.gg-brand__name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--hd-ink);
}

.gg-brand__tag {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--hd-green);
}

/* nav */

.gg-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.gg-nav a {
  position: relative;
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: #33372e;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.gg-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--hd-green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.gg-nav a:hover,
.gg-nav a:focus-visible {
  color: var(--hd-ink);
  background: rgba(130, 165, 31, 0.08);
}

.gg-nav a:hover::after,
.gg-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.gg-nav a[aria-current="page"] {
  color: var(--hd-ink);
  font-weight: 600;
}

/* CTA */

.gg-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--hd-green);
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(112, 145, 24, 0.24);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.22s ease, box-shadow 0.26s ease;
}

.gg-header__cta:hover,
.gg-header__cta:focus-visible {
  background: #6e8e16;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(112, 145, 24, 0.3);
}

.gg-header__cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* burger */

.gg-burger {
  display: none;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--hd-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.gg-burger span {
  position: relative;
  display: block;
  width: 19px;
  height: 1.9px;
  border-radius: 2px;
  background: var(--hd-ink);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.gg-burger span::before,
.gg-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: inherit;
  transition: inherit;
}

.gg-burger span::before { top: -6px; }
.gg-burger span::after  { top: 6px; }

.gg-header.is-open .gg-burger span { background: transparent; }
.gg-header.is-open .gg-burger span::before { transform: translateY(6px) rotate(45deg); background: var(--hd-ink); }
.gg-header.is-open .gg-burger span::after  { transform: translateY(-6px) rotate(-45deg); background: var(--hd-ink); }

/* -------------------------------------------------------------
   MOBILE PANEL
   Absolutely positioned so opening it never changes the header's
   own height.
   ------------------------------------------------------------- */

.gg-menu {
  position: absolute;
  top: var(--hd-h);
  left: 0;
  right: 0;
  padding: 10px 0 18px;
  background: #fff;
  border-bottom: 1px solid var(--hd-line);
  box-shadow: 0 18px 36px rgba(28, 36, 20, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.26s;
}

.gg-header.is-open .gg-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gg-menu ul {
  width: min(calc(100% - 48px), 680px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.gg-menu a {
  display: block;
  padding: 13px 4px;
  border-bottom: 1px solid var(--hd-line);
  font-size: 16px;
  font-weight: 500;
  color: #2b2f27;
  text-decoration: none;
}

.gg-menu li:last-child a { border-bottom: 0; }
.gg-menu a:hover { color: var(--hd-green); }

.gg-menu__cta {
  width: min(calc(100% - 48px), 680px);
  margin: 14px auto 0;
  justify-content: center;
}

/* -------------------------------------------------------------
   PAGE OFFSET
   The header is fixed, so the page needs to start below it.
   ------------------------------------------------------------- */

body.gg-has-header {
  --gg-header-h: 112px;   /* 38 + 74, kept in sync with the tiers */
}

/* -------------------------------------------------------------
   RESPONSIVE — each step sets a fixed height, never a fluid one
   ------------------------------------------------------------- */

@media (max-width: 1350px) {
  .gg-header__inner { width: calc(100% - 40px); }
  .gg-bar__inner { gap: 18px; }
  .gg-nav a { padding: 9px 11px; font-size: 14.5px; }
}

@media (max-width: 1150px) {
  .gg-nav { display: none; }
  .gg-burger { display: grid; }
  .gg-header__cta { margin-left: auto; }
}

@media (max-width: 860px) {
  .gg-strip__group--phones a:nth-child(2) { display: none; }
}

@media (max-width: 700px) {
  .gg-header {
    --hd-strip: 34px;
    --hd-bar: 64px;
  }
  body.gg-has-header { --gg-header-h: 98px; }

  .gg-header__inner { width: calc(100% - 28px); }
  .gg-strip { font-size: 12px; }
  .gg-strip__group { gap: 14px; }
  .gg-strip__social { padding-left: 12px; gap: 4px; }
  .gg-brand img { width: 28px; height: 35px; }
  .gg-brand__name { font-size: 17px; }
  .gg-brand__tag { font-size: 8.5px; letter-spacing: 0.15em; }
  .gg-header__cta { padding: 10px 15px; font-size: 13.5px; }
  .gg-header__cta svg { display: none; }
}

@media (max-width: 460px) {
  .gg-strip__group--mail { display: none; }

  /* No room for the CTA beside the logo and burger at this width, and an
     arrow-only pill reads as a mystery button. The menu carries a full
     one, and the floating WhatsApp button is always on screen. */
  .gg-bar__inner > .gg-header__cta { display: none; }
  .gg-burger { margin-left: auto; }
}

/* The panel CTA always keeps its label - it has the width for it. */
.gg-menu__cta span { display: inline !important; }
.gg-menu__cta svg { display: block !important; }

@media (prefers-reduced-motion: reduce) {
  .gg-header *,
  .gg-header *::before,
  .gg-header *::after { transition: none !important; }
}

/* =============================================================
   FLOATING WHATSAPP CTA
   ============================================================= */

.gg-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 13px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-family: "DM Sans", "Epilogue", system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(16, 88, 44, 0.3);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease;
}

.gg-wa:hover,
.gg-wa:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(16, 88, 44, 0.36);
}

.gg-wa svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: #fff;
}

@media (max-width: 700px) {
  .gg-wa {
    right: 16px;
    bottom: 16px;
    padding: 14px;
  }
  .gg-wa span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gg-wa { transition: none; }
}

/* =============================================================
   PAGE-TOP CLEARANCE
   The header is fixed and out of flow, so whatever section opens
   a page has to reserve room for it. index.html's hero does this
   itself; about.html's does not.
   ============================================================= */

.gg-has-header .assignment-hero-section {
  padding-top: calc(var(--gg-header-h, 112px) + 48px);
}

@media (max-width: 700px) {
  .gg-has-header .assignment-hero-section {
    padding-top: calc(var(--gg-header-h, 98px) + 32px);
  }
}
