/* ==========================================================================
   GdayLab — design system
   Brand palette is fixed by the approved brand kit; do not re-tune these.
   ========================================================================== */

:root {
  /* Brand */
  --orange:        #34664F;
  --orange-deep:   #244B39;
  --orange-wash:   #E9F2EC;
  --charcoal:      #20221F;
  --bg:            #F9F9F5;
  --white:         #FFFFFF;
  --brand-green:   #34664F;  /* exact green sampled from approved logo */
  --accent-light:  #7FB89A;  /* accent for use on --charcoal */

  /* Derived neutrals — all tested against --bg for contrast */
  --ink:           #20221F;
  --ink-70:        #4A4D47;   /* 7.0:1 on --bg  */
  --ink-55:        #6B6E67;   /* 4.6:1 on --bg  */
  --rule:          #E2E2D9;
  --rule-strong:   #C9C9BD;

  /* Type */
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono:    ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Fluid scale */
  --t-hero:  clamp(2.75rem, 1.6rem + 5.2vw, 6rem);
  --t-h1:    clamp(2.25rem, 1.5rem + 3.2vw, 4rem);
  --t-h2:    clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  --t-h3:    clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --t-body:  clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --t-small: 0.9375rem;
  --t-micro: 0.78125rem;

  /* Space */
  --s-1: 0.5rem;  --s-2: 1rem;    --s-3: 1.5rem;  --s-4: 2rem;
  --s-5: 3rem;    --s-6: 4rem;    --s-7: 6rem;    --s-8: 9rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --maxw: 1240px;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---------- focus: visible on every background ---------- */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: #9ED4B6; }

.skip-link {
  position: absolute; left: var(--s-2); top: -100px;
  background: var(--charcoal); color: var(--white);
  padding: var(--s-2) var(--s-3); z-index: 200;
  font-family: var(--display); font-size: var(--t-small);
  text-decoration: none; transition: top 0.18s var(--ease);
}
.skip-link:focus { top: var(--s-2); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(var(--s-6), 10vw, var(--s-8)); }
.section--tight { padding-block: clamp(var(--s-5), 7vw, var(--s-7)); }

/* Hairline rules — the structural motif carried through the whole site */
.ruled { border-top: 1px solid var(--rule); }

/* ---------- eyebrow / section heading ---------- */
.eyebrow {
  font-family: var(--display);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
  display: flex; align-items: center; gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 2px;
  background: var(--orange); flex: none;
}
.on-dark .eyebrow { color: rgba(255,255,255,0.62); }

.lede {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 54ch;
}
.on-dark .lede { color: rgba(255,255,255,0.76); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--orange);
  --btn-fg: var(--white);
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--display); font-size: var(--t-small); font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.95em 1.6em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  text-decoration: none; cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--orange-deep); border-color: var(--orange-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arw { transition: transform 0.25s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.on-dark .btn--ghost { --btn-fg: var(--white); border-color: rgba(255,255,255,0.3); }
.on-dark .btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

/* Text link with underline that grows on hover */
.tlink {
  font-family: var(--display); font-weight: 600; font-size: var(--t-small);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5em;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.3s var(--ease);
}
.tlink:hover { background-size: 100% 2px; }
.tlink .arw { transition: transform 0.25s var(--ease); }
.tlink:hover .arw { transform: translateX(3px); }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249,249,245,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 72px; }
.hdr__logo { display: flex; align-items: center; flex: none; }
.hdr__logo img { width: 158px; height: auto; }

.nav > .btn { display: none; }
.nav { display: flex; align-items: center; gap: clamp(var(--s-2), 2.2vw, var(--s-4)); }
.nav a {
  font-family: var(--display); font-size: var(--t-small); font-weight: 500;
  text-decoration: none; color: var(--ink-70); padding: 0.4em 0; position: relative;
  transition: color 0.18s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--orange);
}
.hdr__cta { flex: none; }

.burger {
  display: none; background: none; border: 1px solid var(--rule-strong);
  width: 44px; height: 44px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: background 0.2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .burger { display: flex; }
  .hdr__cta { display: none; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-2) var(--gutter) var(--s-4);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav > .btn { display: inline-flex; margin-top: var(--s-3); justify-content: center; }
}

/* ---------- footer ---------- */
.ftr { background: #F0F0EA; color: var(--ink-70); border-top: 1px solid var(--rule); padding-block: var(--s-6) var(--s-4); }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-5); align-items: start; }
.ftr__logo img { width: 190px; }
.ftr h4 {
  font-size: var(--t-micro); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-55); margin-bottom: var(--s-2); font-weight: 600;
}
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.ftr a { color: var(--ink-70); text-decoration: none; font-size: var(--t-small); font-family: var(--display); transition: color 0.18s var(--ease); }
.ftr a:hover { color: var(--orange); }
.ftr__base {
  margin-top: var(--s-5); padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  justify-content: space-between; font-size: var(--t-micro);
  color: var(--ink-55);
}
@media (max-width: 720px) { .ftr__grid { grid-template-columns: 1fr; gap: var(--s-4); } }

/* ---------- dark section ---------- */
.on-dark { background: var(--charcoal); color: rgba(255,255,255,0.78); --orange: var(--accent-light); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }

/* ---------- reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }
