/* Layers Aligned — site layout glue.
 * The design system (css/ds.css) is the binding source of tokens, fonts and
 * component classes. This file only carries page chrome (nav, footer), the
 * :hover / :focus states the prototype expressed inline, and responsive rules.
 * Brand values are always referenced through DS tokens — never hard-coded.
 */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--dark); background: var(--paper); }
body.teal-page { background: var(--teal-lt); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--burg); outline-offset: 3px; }
.teal-page :focus-visible { outline-color: var(--teal); }

/* ============ NAV ============ */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px clamp(24px, 5vw, 80px);
  background: rgba(250,250,247,0.92); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream);
}
.site-nav__logo { text-decoration: none; display: flex; align-items: center; }
.la-navlinks {
  display: flex; align-items: center; row-gap: 6px; column-gap: clamp(14px, 2vw, 28px);
  flex-wrap: wrap; justify-content: flex-end;
}
.nav-link {
  font-family: var(--cond); font-size: 14px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--dark); text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--burg); }
.nav-link.is-active { color: var(--burg); border-bottom: 2px solid var(--burg); padding-bottom: 2px; }
.la-burger {
  display: none; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--stone); border-radius: 8px;
  width: 42px; height: 42px; font-size: 19px; color: var(--dark); cursor: pointer; flex-shrink: 0;
}

/* Mobile dropdown menu */
.mobile-menu {
  position: sticky; top: 62px; z-index: 49; background: var(--paper);
  border-bottom: 1px solid var(--cream);
  padding: 4px clamp(24px, 5vw, 80px) 20px;
  flex-direction: column; box-shadow: 0 16px 32px rgba(43,26,34,0.08);
  display: none;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-family: var(--cond); font-size: 16px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--dark); text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--cream);
}
.mobile-menu a.is-active { color: var(--burg); }
.mobile-menu a.mm-cta {
  font-weight: 700; color: var(--burg); padding: 16px 0 4px; border-bottom: none;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--dark); color: var(--paper);
  padding: clamp(56px, 7vw, 88px) clamp(24px, 5vw, 80px) 40px;
}
.site-footer__inner { max-width: 1180px; margin: 0 auto; }
.la-foot {
  display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(150px, 1fr));
  gap: clamp(32px, 5vw, 72px); padding-bottom: 48px;
  border-bottom: 1px solid rgba(250,250,247,0.15);
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer-brand p { font-size: 14px; line-height: 1.65; color: rgba(250,250,247,0.65); margin: 0; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col__head {
  font-family: var(--cond); font-size: 13px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
}
.footer-link { font-size: 14px; color: rgba(250,250,247,0.75); text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; }
.footer-legal p { font-size: 12px; color: rgba(250,250,247,0.5); margin: 0; }
.footer-legal .footer-url {
  font-family: var(--cond); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
}
/* Diagnostic slim footer */
.footer-slim { background: var(--dark); color: var(--paper); padding: 40px clamp(24px, 5vw, 80px); }
.footer-slim__inner {
  max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 16px;
}
.footer-slim__inner p { font-size: 12px; color: rgba(250,250,247,0.5); margin: 0; }

/* ============ CUSTOM HOVER / FOCUS STATES (were inline style-hover in prototype) ============ */
.leader-card {
  display: flex; flex-direction: column; gap: 10px; background: #fff;
  border: 1px solid var(--teal-wash); border-top: 4px solid var(--teal); border-radius: 12px;
  padding: 26px 22px; text-decoration: none; transition: transform 0.25s, box-shadow 0.25s;
}
.leader-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(13,92,92,0.14); }

.fw-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--cream); text-decoration: none;
  transition: background 0.2s;
}
.fw-row:hover { background: var(--blush); }

/* ============ ANIMATIONS ============ */
@keyframes la-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dx-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ============ RESPONSIVE (breakpoint 900px, per spec) ============ */
@media (max-width: 900px) {
  .la-navlinks { display: none !important; }
  .la-burger { display: inline-flex !important; }
  .la-2col { grid-template-columns: 1fr !important; }
  .la-foot { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
