/* ═══════════════════════════════════════════════════════════
   LAYOUT.CSS — Header, Footer, Nav, Containers
   Load SECOND in every HTML file (after base.css)
═══════════════════════════════════════════════════════════ */

/* ── Containers ── */
/* (defined in base.css to avoid duplication) */

/* ── Page Hero (shared across all inner pages) ── */
.page-hero {
  padding: 140px 0 80px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

/* Gradient fade at bottom — matches homepage hero transition */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(17,24,39,.5));
  pointer-events: none;
  z-index: 1;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  opacity: .3;
  transition: transform .6s var(--ease);
}

.page-hero:hover .page-hero__bg {
  transform: scale(1.02);
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 12s ease-out forwards;
}

@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

.page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero__tag {
  margin-bottom: 16px;
}

.page-hero__title {
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  max-width: 60ch;
  line-height: 1.65;
  margin-bottom: 28px;
}

.page-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ── Site Nav ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s;
}

.site-nav.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 88px;
}

/* Logo breaks out of nav — overlaps the hero section below */
.nav__logo {
  position: relative;
  z-index: 200;
  margin-top: -20px;   /* push up above nav top edge */
  margin-bottom: -20px; /* push down into hero overlap zone */
}

.nav__logo img {
  height: 112px;       /* ~2x original 52px logo */
  width: auto;
  object-fit: contain;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink-2);
  transition: color .2s;
  letter-spacing: .01em;
  text-decoration: none;
}

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

.nav__links a.active {
  color: var(--blue);
  padding-bottom: 2px;
  border-bottom: 2px solid var(--blue);
}

.nav__ctas {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}

.nav__btn:hover {
  transform: translateY(-1px);
}

.nav__btn--quote {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(220,38,38,.2);
}

.nav__btn--quote:hover {
  box-shadow: 0 4px 16px rgba(220,38,38,.3);
}

.nav__btn--phone {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(29,78,216,.2);
}

.nav__btn--phone:hover {
  box-shadow: 0 4px 16px rgba(29,78,216,.3);
}

/* ── Mobile Nav ── */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle svg {
  width: 24px;
  height: 24px;
  color: var(--ink);
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Mobile nav overlay */
.nav__mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s var(--ease), visibility .3s;
}

.nav__mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav__mobile-links {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--white);
  z-index: 101;
  padding: 80px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: right .3s var(--ease);
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.nav__mobile-links.open {
  right: 0;
}

.nav__mobile-links a {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 8px;
  transition: background .2s, color .2s;
}

.nav__mobile-links a:hover,
.nav__mobile-links a.active {
  background: var(--surface-2);
  color: var(--blue);
}

/* Mobile menu CTA buttons */
.nav__mobile-links .nav__btn--quote {
  margin-top: 16px;
  text-align: center;
}

.nav__mobile-links .nav__btn--phone {
  text-align: center;
}

.nav__mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__mobile-close svg {
  width: 24px;
  height: 24px;
  color: var(--ink);
}

.nav__mobile-close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

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

  .nav__toggle {
    display: flex;
  }

  .nav__mobile-menu.open {
    display: block;
  }
}

/* ── Footer ── */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 52px 0 28px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer__brand img {
  height: 52px;
  margin-bottom: 12px;
  display: block;
}

.footer__brand a {
  display: inline-block;
}

.footer__brand p {
  font-size: .84rem;
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.6;
}

.footer__cols {
  display: flex;
  gap: 48px;
}

.footer__col h4 {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col ul a {
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s;
  position: relative;
  display: inline-block;
}

/* Subtle underline sweep on hover */
.footer__col ul a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--blue);
  transition: width .25s var(--ease);
}

.footer__col ul a:hover {
  color: var(--blue);
}

.footer__col ul a:hover::after {
  width: 100%;
}

/* Footer contact items with inline SVG icons */
.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-2);
}
.footer__contact-item a {
  color: var(--ink-2);
  transition: color .2s;
}
.footer__contact-item a:hover { color: var(--blue); }
.footer__contact-icon {
  color: var(--muted);
  flex-shrink: 0;
  transition: color .2s;
}
.footer__contact-item:hover .footer__contact-icon { color: var(--blue); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__bottom p {
  font-size: .78rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .footer__cols {
    gap: 24px;
    flex-wrap: wrap;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
