/* ============================================================
   Prism Theme Controller — Front-end Styles
   v1.6.0
   ============================================================ */

/* --- Reset / base ---------------------------------------- */
.prism-header, .prism-footer { box-sizing: border-box; }
.prism-header *, .prism-footer * { box-sizing: border-box; }

/* --- Header ---------------------------------------------- */
.prism-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.prism-header.prism-sticky {
    position: sticky;
    top: 0;
}

.prism-header.prism-transparent {
    background: transparent !important;
}

.prism-header.prism-transparent.scrolled {
    background: var(--prism-secondary) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.prism-header.scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.prism-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    gap: 20px;
}

/* Logo */
.prism-logo-link { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.prism-site-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--prism-text-light);
    white-space: nowrap;
}

/* Nav */
.prism-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.prism-nav-link {
    padding: 6px 14px;
    color: var(--prism-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.prism-nav-link:hover,
.prism-nav-link.active {
    color: var(--prism-primary);
    background: rgba(255,255,255,0.08);
}

/* Header buttons */
.prism-nav-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    margin-left: 6px;
}

.prism-btn-solid {
    background: var(--prism-primary);
    color: #fff;
    border: 2px solid var(--prism-primary);
}
.prism-btn-solid:hover { background: transparent; color: var(--prism-primary); }

.prism-btn-outline {
    background: transparent;
    color: var(--prism-text-light);
    border: 2px solid var(--prism-text-light);
}
.prism-btn-outline:hover { background: var(--prism-text-light); color: var(--prism-secondary); }

/* Hamburger */
.prism-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}
.prism-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--prism-text-light);
    border-radius: 2px;
    transition: all 0.3s;
}
.prism-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.prism-hamburger.active span:nth-child(2) { opacity: 0; }
.prism-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Footer ---------------------------------------------- */
.prism-footer {
    padding: 56px 24px 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

.prism-footer a {
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.prism-footer a:hover { opacity: 1; }

.prism-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.prism-footer-brand {
    flex: 0 0 260px;
    min-width: 220px;
}

.prism-footer-desc {
    margin-top: 14px;
    font-size: 0.88rem;
    opacity: 0.8;
    line-height: 1.7;
}

.prism-social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.prism-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background 0.2s;
    opacity: 1 !important;
}
.prism-social-icon:hover { background: var(--prism-primary); }

.prism-footer-col { flex: 1 1 150px; min-width: 140px; }

.prism-footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    color: var(--prism-primary);
}

.prism-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.prism-footer-col ul li {
    margin-bottom: 8px;
}

.prism-footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.prism-footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 0;
    font-size: 0.82rem;
    opacity: 0.7;
    text-align: center;
}

/* --- WhatsApp floating button ---------------------------- */
.prism-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.prism-whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,0.35); }

/* --- Back to top ----------------------------------------- */
.prism-back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 9998;
    width: 42px;
    height: 42px;
    background: var(--prism-secondary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
}
.prism-back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.prism-back-to-top:hover { background: var(--prism-primary); }

/* --- Responsive ------------------------------------------ */
@media ( max-width: 768px ) {
    .prism-hamburger { display: flex; }

    .prism-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 0;
        z-index: 999;
        background: var(--prism-secondary);
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }
    .prism-nav.open { display: flex; }

    .prism-header.prism-sticky { position: sticky; }
    .prism-header-inner { position: relative; }

    .prism-nav-link, .prism-nav-btn {
        width: 100%;
        padding: 12px 24px;
        border-radius: 0;
        margin: 0;
        border: none;
        font-size: 1rem;
    }
    .prism-nav-btn { border-top: 1px solid rgba(255,255,255,0.1); }

    .prism-footer-inner { gap: 28px; }
    .prism-footer-brand { flex: 0 0 100%; }
}
