/* =========================================================
   GALE ENTERPRISES — SHARED STYLESHEET
   Loaded by every page. Design tokens live at the top so the
   whole site can be re-tuned from one place.
   ========================================================= */

:root {
  /* ---- Brand colour system ---- */
  --navy:        #0F1F35;   /* primary — authority, permanence */
  --navy-deep:   #0A1523;   /* darker navy, used for gradients/depth */
  --graphite:    #23262B;   /* primary neutral — body copy, dark panels */
  --slate:       #52697E;   /* supporting blue-grey */
  --slate-soft:  #8CA0AF;   /* muted slate, for text on dark backgrounds */
  --gold:        #C9933E;   /* flat accent — use sparingly */
  --gold-light:  #F4D28A;
  --gold-dark:   #8A5A1F;
  --paper:       #F1F2EF;   /* off-white — negative space */
  --white:       #FFFFFF;

  /* ---- Type ---- */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  /* ---- Layout ---- */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.2em; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav-brand img { width: 28px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--slate-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--gold);
}

.nav-toggle { display: none; }

/* mobile nav — CSS-only checkbox toggle, no JS required */
.nav-toggle-label {
  display: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 720px) {
  .nav-toggle-label { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-toggle:checked ~ .nav-links {
    max-height: 320px;
  }
  .nav-links a {
    width: 100%;
    padding: 0.9rem var(--gutter);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.7rem;
  border-radius: 2px;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

/* =========================================================
   HERO + SIGNATURE "BEARING LINE"
   The line under the hero draws itself in on load — a visual
   nod to "momentum." One deliberate motion moment, nothing else
   on the page animates.
   ========================================================= */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; width: 120px; margin: 0 auto; }
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--slate-soft);
  max-width: 46ch;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

.hero-mark { width: 190px; justify-self: end; opacity: 0.96; }

.bearing-line {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201,147,62,0.15) 100%);
  transform: scaleX(0);
  transform-origin: left;
}

@media (prefers-reduced-motion: no-preference) {
  .bearing-line {
    animation: draw-bearing 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bearing-line { transform: scaleX(1); }
}

@keyframes draw-bearing {
  to { transform: scaleX(1); }
}

/* =========================================================
   SECTIONS
   ========================================================= */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.section-alt { background: var(--white); }
.section-dark {
  background: var(--graphite);
  color: var(--paper);
}
.section-dark .eyebrow { color: var(--gold-light); }

.section-head { max-width: 60ch; margin-bottom: 2.8rem; }

/* Focus-area / service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border: 1px solid rgba(15,31,53,0.08);
  padding: 2.1rem 1.9rem;
  border-top: 3px solid var(--gold);
}

.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--slate); margin-bottom: 0; font-size: 0.96rem; }

/* Pull quote */
.pull-quote {
  border-left: 3px solid var(--gold);
  padding-left: 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 500;
  line-height: 1.4;
  max-width: 42ch;
  color: var(--white);
}

/* Value/pillar list (Direction / Momentum / Perseverance) */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } }

.pillar .num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.6rem;
}

/* =========================================================
   FORMS (Contact page)
   ========================================================= */
.form-field { margin-bottom: 1.3rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(15,31,53,0.2);
  background: var(--white);
  color: var(--graphite);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-note {
  font-size: 0.85rem;
  color: var(--slate);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy);
  color: var(--slate-soft);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
}
.footer-brand img { width: 22px; }
.footer-links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 1.4rem;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
