/* ============================================================
   SUPREME ADS AGENCY — HEADER & FOOTER SYSTEM
   Shared CSS for universal header & footer consistency across all pages.
   ============================================================ */

/* ── Reset basics ── */
#saa-header *, #saa-header *::before, #saa-header *::after,
#saa-footer *, #saa-footer *::before, #saa-footer *::after {
    box-sizing: border-box;
}

/* ============================================================
   HEADER STYLES
   ============================================================ */
#saa-header {
    background: rgba(248, 245, 238, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    border-bottom: 1px solid rgba(31, 36, 64, 0.08);
    box-shadow: 0 1px 20px rgba(31, 36, 64, 0.05);
    transition: background 0.4s ease, box-shadow 0.4s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#saa-header.scrolled {
    background: rgba(248, 245, 238, 0.98);
    box-shadow: 0 2px 32px rgba(31, 36, 64, 0.12);
}

/* ── Nav wrapper ── */
#saa-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    gap: 1rem;
}

/* ── Logo ── */
#saa-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
#saa-logo img {
    height: 42px;
    width: auto;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#saa-logo:hover img {
    transform: scale(1.04);
    opacity: 0.88;
}

/* ── Desktop links (centre) ── */
#saa-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex: 1;
    justify-content: center;
}

.saa-link {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(31, 36, 64, 0.65);
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.saa-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: #4C72FA;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
}

.saa-link:hover {
    color: #4C72FA;
}

.saa-link:hover::after,
.saa-link.active::after {
    transform: scaleX(1);
}

.saa-link.active {
    color: #4C72FA;
}

/* ── Right actions (desktop) ── */
#saa-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

/* ── Phone pill (desktop only) ── */
.saa-phone-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(76, 114, 250, 0.08);
    border: 1px solid rgba(76, 114, 250, 0.25);
    color: #4C72FA;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.saa-phone-pill:hover {
    background: #4C72FA;
    color: #ffffff;
    border-color: #4C72FA;
    transform: translateY(-1px);
}

/* ── CTA button ── */
.saa-cta {
    background: #4C72FA;
    color: #ffffff !important;
    padding: 0.55rem 1.2rem;
    border-radius: 0.7rem;
    font-weight: 700;
    font-size: 0.82rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(76, 114, 250, 0.28);
    white-space: nowrap;
}

.saa-cta:hover {
    background: #1F2440;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76, 114, 250, 0.35);
}

/* ── Mobile-only right cluster ── */
#saa-mobile-right {
    display: none;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ── Round call button (mobile) ── */
.saa-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: #4C72FA;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(76, 114, 250, 0.35);
    transition: background 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.saa-call-btn:hover {
    background: #1F2440;
    transform: scale(1.08);
}

/* ── Hamburger ── */
.saa-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.5rem;
    background: none;
    border: 1px solid rgba(31, 36, 64, 0.15);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.saa-burger:hover {
    background: rgba(76, 114, 250, 0.08);
}

.saa-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #1F2440;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.saa-burger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.saa-burger.open span:nth-child(2) {
    opacity: 0;
}
.saa-burger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ── Mobile dropdown menu ── */
#saa-mobile-menu {
    display: none;
    flex-direction: column;
    border-top: 1px solid rgba(31, 36, 64, 0.08);
    background: rgba(248, 245, 238, 0.99);
}

#saa-mobile-menu.open {
    display: flex;
}

.saa-mobile-link {
    display: block;
    padding: 0.85rem 1.5rem;
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(31, 36, 64, 0.75);
    text-decoration: none;
    border-bottom: 1px solid rgba(31, 36, 64, 0.06);
    transition: color 0.2s ease, background 0.2s ease;
}

.saa-mobile-link:hover,
.saa-mobile-link.active {
    color: #4C72FA;
    background: rgba(76, 114, 250, 0.05);
}

.saa-mobile-cta-row {
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ── Responsive breakpoints ── */
@media (max-width: 1024px) {
    .saa-phone-pill {
        display: none;
    }
}

@media (max-width: 768px) {
    #saa-links {
        display: none;
    }
    #saa-right {
        display: none;
    }
    #saa-mobile-right {
        display: flex;
    }
}

/* ============================================================
   FOOTER STYLES
   ============================================================ */
#saa-footer {
    background: #F8F5EE;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#saa-footer a {
    text-decoration: none;
    transition: color 0.25s ease;
}

/* ── Top accent bar ── */
.saa-footer-topbar {
    height: 4px;
    background: linear-gradient(90deg, #4C72FA 0%, #1F2440 100%);
    width: 100%;
}

/* ── Main inner ── */
.saa-footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

/* ── Top section: logo + contact box side by side ── */
.saa-footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(31, 36, 64, 0.1);
    margin-bottom: 3rem;
}

/* ── Logo column ── */
.saa-f-logo img {
    height: 50px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
}

.saa-f-tagline {
    font-size: 0.9rem;
    color: rgba(31, 36, 64, 0.55);
    line-height: 1.7;
    max-width: 22rem;
    margin: 0 0 1.5rem;
}

.saa-f-social {
    display: flex;
    gap: 0.6rem;
}

.saa-f-social-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.6rem;
    background: rgba(31, 36, 64, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(31, 36, 64, 0.5);
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.saa-f-social-btn:hover {
    background: #4C72FA;
    color: #ffffff;
    transform: translateY(-3px);
}

/* ── Contact box ── */
.saa-f-contact-box {
    background: #ffffff;
    border: 1px solid rgba(31, 36, 64, 0.1);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 4px 24px rgba(31, 36, 64, 0.06);
}

.saa-f-contact-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(31, 36, 64, 0.4);
    margin: 0 0 1rem;
}

.saa-f-phone-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1F2440;
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: color 0.3s ease;
}

.saa-f-phone-link:hover {
    color: #4C72FA;
}

.saa-f-phone-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(76, 114, 250, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.saa-f-phone-link:hover .saa-f-phone-icon {
    background: #4C72FA;
}

.saa-f-phone-link:hover .saa-f-phone-icon svg {
    stroke: #ffffff;
}

.saa-f-phone-icon svg {
    stroke: #4C72FA;
    transition: stroke 0.3s ease;
}

.saa-f-phone-text {
    display: flex;
    flex-direction: column;
}

.saa-f-phone-number {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1F2440;
    letter-spacing: 0.01em;
}

.saa-f-phone-sub {
    font-size: 0.75rem;
    color: rgba(31, 36, 64, 0.5);
    margin-top: 1px;
}

.saa-f-cta-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #4C72FA;
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.saa-f-cta-link:hover {
    background: #1F2440;
    transform: translateY(-2px);
}

/* ── Bottom grid: links ── */
.saa-footer-links-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.saa-f-col-title {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(31, 36, 64, 0.4);
    margin: 0 0 1rem;
}

.saa-f-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.saa-f-col li a {
    font-size: 0.875rem;
    color: rgba(31, 36, 64, 0.65);
}

.saa-f-col li a:hover {
    color: #4C72FA;
}

/* ── Copyright bar ── */
.saa-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(31, 36, 64, 0.08);
    color: rgba(31, 36, 64, 0.4);
    font-size: 0.75rem;
}

.saa-footer-bottom p {
    margin: 0;
}

.saa-footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.saa-footer-bottom-links a {
    color: rgba(31, 36, 64, 0.4);
    font-size: 0.75rem;
}

.saa-footer-bottom-links a:hover {
    color: #4C72FA;
}

/* ── Responsive Footer ── */
@media (max-width: 768px) {
    .saa-footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .saa-footer-links-row {
        grid-template-columns: 1fr 1fr;
    }
    .saa-footer-inner {
        padding: 3rem 1.25rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .saa-footer-links-row {
        grid-template-columns: 1fr;
    }
}
