/* ============================================================
   BetterRoofing — Unified Public Navigation & Footer
   Loaded on all public-facing unauthenticated pages.
   Injected via /js/public-nav.js
   ============================================================ */

/* ===== NAVBAR ===== */
.pub-navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,0.96);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}
.pub-navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.08); }
.pub-nav-inner {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto; padding: 0.85rem 1.25rem;
}
.pub-logo {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1.35rem; font-weight: 800; color: #2563eb;
    text-decoration: none;
}
.pub-logo:hover { color: #1d4ed8; }
.pub-nav-links { display: flex; align-items: center; gap: 1.5rem; }
.pub-nav-link {
    font-size: 0.9rem; font-weight: 500; color: #4b5563;
    text-decoration: none; transition: color 0.2s;
}
.pub-nav-link:hover,
.pub-nav-link.active { color: #2563eb; }
.pub-nav-cta { display: flex; gap: 0.75rem; align-items: center; }

/* Navbar CTA buttons */
.pub-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.55rem 1.15rem; border-radius: 10px; font-weight: 600;
    font-size: 0.85rem; transition: all 0.25s; cursor: pointer;
    white-space: nowrap; text-decoration: none;
}
.pub-btn-outline {
    background: transparent; color: #2563eb; border: 2px solid #2563eb;
}
.pub-btn-outline:hover { background: #eff6ff; }
.pub-btn-primary { background: #2563eb; color: #fff; border: 2px solid #2563eb; }
.pub-btn-primary:hover {
    background: #1d4ed8; border-color: #1d4ed8;
    transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

/* Hamburger button */
.pub-hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.pub-hamburger-line {
    display: block; width: 22px; height: 2px; background: #374151;
    border-radius: 2px; transition: all 0.3s;
}
.pub-hamburger.open .pub-hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.pub-hamburger.open .pub-hamburger-line:nth-child(2) { opacity: 0; }
.pub-hamburger.open .pub-hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.pub-mobile-menu {
    display: none; flex-direction: column;
    background: #fff; border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1.25rem 1.25rem;
    position: fixed; top: 57px; left: 0; width: 100%; z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.pub-mobile-menu.open { display: flex; }
.pub-mobile-link {
    font-size: 0.95rem; font-weight: 500; color: #374151;
    text-decoration: none; padding: 0.65rem 0;
    border-bottom: 1px solid #f3f4f6;
    transition: color 0.2s;
}
.pub-mobile-link.active { color: #2563eb; }
.pub-mobile-link:hover { color: #2563eb; }
.pub-mobile-cta {
    margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.pub-mobile-cta .pub-btn {
    width: 100%; justify-content: center; padding: 0.75rem; font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.pub-footer { background: #111827; color: #d1d5db; padding: 3rem 0 1.5rem; }
.pub-footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 1.25rem;
}
.pub-footer-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 2rem; padding-bottom: 2rem;
    border-bottom: 1px solid #374151;
}
.pub-footer-brand .pub-logo { color: #fff; font-size: 1.25rem; }
.pub-footer-brand .pub-logo:hover { color: #93c5fd; }
.pub-footer-brand p {
    font-size: 0.85rem; color: #9ca3af; margin-top: 0.6rem;
    max-width: 240px; line-height: 1.65;
}
.pub-footer-links-group { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.pub-footer-col h4 {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: #e5e7eb; margin-bottom: 0.85rem;
}
.pub-footer-col ul { list-style: none; }
.pub-footer-col ul li { margin-bottom: 0.45rem; }
.pub-footer-col ul li a {
    font-size: 0.88rem; color: #9ca3af;
    text-decoration: none; transition: color 0.2s;
}
.pub-footer-col ul li a:hover { color: #fff; }
.pub-footer-bottom {
    padding-top: 1.5rem; text-align: center;
    font-size: 0.8rem; color: #6b7280;
}
.pub-footer-bottom a {
    color: #9ca3af; text-decoration: none; transition: color 0.2s;
}
.pub-footer-bottom a:hover { color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .pub-nav-links { display: none; }
    .pub-nav-cta { display: none; }
    .pub-hamburger { display: flex; }
    .pub-footer-top { flex-direction: column; }
    .pub-footer-links-group { gap: 1.5rem; }
}
@media (max-width: 480px) {
    .pub-footer-links-group { flex-direction: column; gap: 1.25rem; }
}
