/* ============================================================
   LAYOUT
   ============================================================ */

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

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition:
    background-color var(--duration-normal) var(--ease-in-out),
    box-shadow var(--duration-normal) var(--ease-in-out),
    border-color var(--duration-normal) var(--ease-in-out);
}

.nav--scrolled {
  background: rgba(248, 247, 244, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 44px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) var(--ease-in-out);
  position: relative;
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__links a.active {
  color: var(--color-blue);
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-underline-offset: 4px;
}

.nav__cta {
  flex-shrink: 0;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform var(--duration-normal) var(--ease-in-out),
    opacity var(--duration-fast) var(--ease-in-out);
  transform-origin: center;
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.nav__drawer {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(248, 247, 244, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: var(--space-6) var(--gutter) var(--space-8);
  flex-direction: column;
  gap: var(--space-6);
}

.nav__drawer.is-open {
  display: flex;
}

.nav__drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.nav__drawer-links a {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) var(--ease-in-out);
}

.nav__drawer-links a:hover,
.nav__drawer-links a.active {
  color: var(--color-blue);
}

.nav__drawer .btn {
  align-self: flex-start;
}

/* ---- SECTIONS ---- */
.section {
  padding: var(--section-padding) 0;
}

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

.section--dark {
  background-color: var(--color-text);
}

/* ---- SECTION HEADER ---- */
.section-header {
  margin-bottom: var(--space-16);
}

.section-header--center {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.eyebrow--light {
  color: rgba(200, 132, 14, 0.9);
}

.section-header h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-4xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-blue);
}

.section-header--light h2 {
  color: var(--color-white);
}

/* ---- FOOTER ---- */
.footer {
  background-color: var(--color-text);
  padding: var(--space-16) 0 0;
}

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
  padding-bottom: var(--space-10);
}

.footer__brand .footer__logo {
  margin-bottom: var(--space-3);
}

.footer__logo-img {
  height: 48px;
  width: auto;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: var(--leading-normal);
}

.footer__nav {
  list-style: none;
  display: flex;
  gap: var(--space-8);
}

.footer__nav a {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-fast) var(--ease-in-out);
}

.footer__nav a:hover {
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
}

/* ---- HERO ---- */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-20) 0;
}

.hero__layout {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: var(--space-12);
  align-items: center;
  width: 100%;
}

.hero__text {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  margin-bottom: var(--space-5);
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-6xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.hero__subhead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: 520px;
  margin-bottom: var(--space-10);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.hero__decoration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__griffin {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 20px 60px rgba(26, 63, 160, 0.15));
}

/* ---- PAGE OFFSET FOR FIXED NAV ---- */
main {
  padding-top: var(--nav-height);
}

/* ---- GRID UTILITIES ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1023px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero__headline {
    font-size: var(--text-5xl);
  }

  .hero__layout {
    grid-template-columns: 60fr 40fr;
  }
}

@media (max-width: 767px) {
  :root {
    --section-padding: var(--space-16);
    --gutter: var(--space-4);
  }

  .hero__layout {
    grid-template-columns: 1fr;
  }

  .hero__decoration {
    display: none;
  }

  .hero__headline {
    font-size: var(--text-4xl);
  }

  .hero__subhead {
    font-size: var(--text-base);
  }

  .hero {
    min-height: auto;
    padding: var(--space-16) 0 var(--space-12);
  }

  .section-header h2 {
    font-size: var(--text-3xl);
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer__top {
    flex-direction: column;
  }

  .footer__nav {
    flex-direction: column;
    gap: var(--space-4);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}

@media (max-width: 374px) {
  :root {
    --gutter: var(--space-4);
  }
}
