/* ============================================================
   Top Hat Maintenance — layout.css
   Header / navigation / footer (shared chrome)
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,11,0.6);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  /* Fill the mobile notch / status-bar area with the header's own background
     (0 on desktop, so no effect there). */
  padding-top: env(safe-area-inset-top);
}
.site-header.scrolled { background: rgba(10,10,11,0.92); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand img { height: 40px; width: auto; }
.brand .wordmark {
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.14em; line-height: 1.05;
  text-transform: uppercase; color: var(--text);
}
.brand .wordmark b { color: var(--gold); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a {
  position: relative; color: var(--text-dim); font-weight: 400; font-size: 0.95rem;
  letter-spacing: 0.01em; transition: color .3s var(--ease); padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--gold); transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 24px; }
/* Compact CTA to suit the shorter header (hero buttons keep the base size). */
.nav-right .btn { padding: 10px 22px; font-size: 0.9rem; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 0.92rem; font-weight: 400; }
.nav-phone svg { width: 16px; height: 16px; color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; margin-right: -8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black-2); border-top: 1px solid var(--line); padding: 84px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 48px; margin-bottom: 64px; }
.footer-brand .brand { margin-bottom: 22px; }
.footer-brand p { color: var(--text-dim); max-width: 300px; font-size: 0.95rem; font-weight: 300; line-height: 1.7; }
.footer-col h4 {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.footer-col a, .footer-col p {
  display: block; color: var(--text-dim); font-size: 0.95rem; font-weight: 300;
  margin-bottom: 13px; transition: color .3s var(--ease);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-top: 30px; border-top: 1px solid var(--line);
  color: var(--text-dimmer); font-size: 0.84rem; font-weight: 300;
}
.footer-bottom .fb-tag { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; }

/* ---------- Mobile nav ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-phone { display: none; }
  .nav-right > .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.menu-open .nav-links {
    display: flex; position: absolute; top: 82px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 0; background: var(--black); border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line); padding: 12px 0;
  }
  .site-header.menu-open .nav-links a { padding: 15px 22px; width: 100%; font-size: 1.05rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .brand .wordmark { font-size: 0.86rem; }
}
