/* 
   Theme: ElisiA Specter
   Style: Law Firm / Corporate 2026
   Inspiration: Suits (Netflix)
*/


:root {
    --navy-dark: #0f172a;
    --navy-light: #1e293b;
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-400: #94a3b8;
    --gray-800: #1e293b;

    --font-heading: 'Playfair Display', serif;
    --font-accent: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--gray-100);
    font-family: var(--font-body);
    color: var(--navy-dark);
    line-height: 1.6;
    overflow-x: hidden !important;
    /* Prevent horizontal scroll globally */
    max-width: 100vw !important;
}

/* PageSpeed Fix: Explicitly define H1 styles for all nesting levels to satisfy Lighthouse 
   Best Practices audit for H1UserAgentFontSizeInSection */
h1,
.post-content-area h1,
article h1,
section h1,
aside h1,
nav h1 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
}

/* CLS Fix: Stabilize Verify Box to prevent layout shifts */
.verified-box {
    min-height: 90px;
    contain: layout style;
}

/* Font Display Fix for FontAwesome (Overrides CDN settings) */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-display: swap;
    src: local('Font Awesome 6 Free');
    /* Trick to let browser use our display property */
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-display: swap;
    src: local('Font Awesome 6 Brands');
}

html {
    overflow-x: hidden !important;
}


/* Navbar Base (Mobile) */
.specter-nav {
    background-color: inherit;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 1030;
    opacity: 1 !important;
}

.specter-nav .navbar-brand {
    font-family: var(--font-accent);
    color: var(--navy-dark) !important;
    font-size: 1.3rem;
    /* Slightly smaller for mobile */
    letter-spacing: 1px;
    text-transform: uppercase;
}

.specter-nav .nav-link {
    display: none;
    /* Hide standard nav on mobile, use drawer */
}

@media (min-width: 992px) {
    .specter-nav .navbar-brand {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .specter-nav .nav-link {
        display: block;
        color: var(--navy-dark) !important;
        font-family: var(--font-body);
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 1px;
        transition: color 0.3s ease;
    }

    .specter-nav .nav-link:hover,
    .specter-nav .nav-link.active {
        color: var(--gold) !important;
        transition: none !important;
    }
}


/* Header Hero Carousel Base (Mobile) */
.suits-hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--navy-dark);
}

.suitsHeroSwiper {
    width: 100%;
    height: auto;
    /* Proportional height */
}

.suits-hero-slide {
    position: relative;
    /* Base for absolute content */
    width: 100%;
    overflow: hidden;
    color: var(--white);
}



.suits-hero-img {
    width: 100%;
    height: auto;
    display: block;
    z-index: 0;
}


.suits-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}

.suits-hero-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* Base vertical centering */
    z-index: 2;
    padding: 15px;
    width: 100%;
}

@media (max-width: 991px) {
    .suits-hero-content {
        left: 50%;
        transform: translate(-50%, -50%);
        /* Centered both ways on mobile */
        text-align: center;
    }
}





.suits-hero-category {
    display: none;
    /* Forced removal on mobile */
}


.suits-hero-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    /* Increased 20% from previous proportional base */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.55rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}




.suits-hero-excerpt {
    display: none;
    /* Hide excerpt on mobile for space */
}

.btn-suits-hero {
    background: var(--gold);
    color: var(--navy-dark);
    border: 1px solid var(--gold);
    padding: 5px 12px;
    /* Increased by 50% */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.675rem;
    border-radius: 0;
    transition: transform 0.2s ease;
}



@media (min-width: 992px) {

    .suitsHeroSwiper,
    .suits-hero-slide {
        height: 600px;
    }


    .suits-hero-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    .suits-hero-overlay {
        background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.1) 100%);
    }

    .suits-hero-content {
        left: 0;
        padding-left: 10%;
        text-align: left;
        max-width: 800px;
        transform: translateY(-50%);
        /* Ensure vertical centering only */
    }


    .suits-hero-category {
        letter-spacing: 3px;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .suits-hero-title {
        font-size: 3.5rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }

    .suits-hero-excerpt {
        display: -webkit-box;
        font-size: 1.1rem;
        color: var(--gray-400);
        margin-bottom: 2rem;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        overflow: hidden;
    }

    .btn-suits-hero {
        padding: 18px 52px;
        letter-spacing: 2px;
        font-size: 1.35rem;
        /* Increased by 50% */
    }

    .btn-suits-hero:hover {
        background: transparent;
        color: var(--gold);
    }
}


/* Swiper Custom Navigation */
.suitsHeroSwiper .swiper-button-next,
.suitsHeroSwiper .swiper-button-prev {
    color: var(--gold);
    width: 50px;
    height: 50px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 50%;
}

.suitsHeroSwiper .swiper-button-next:after,
.suitsHeroSwiper .swiper-button-prev:after {
    font-size: 1.2rem;
}

.suitsHeroSwiper .swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
}

.suitsHeroSwiper .swiper-pagination-bullet-active {
    background: var(--gold);
    opacity: 1;
}






/* Cards / Posts Base (Mobile) */
#latest-posts {
    padding-top: 3rem !important;
}

.specter-card {
    background: var(--white);
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    height: 100%;
}

.specter-card-img-wrapper {
    height: auto;
    overflow: hidden;
    position: relative;
    background: var(--navy-dark);
}

@media (min-width: 992px) {
    .specter-card-img-wrapper {
        height: auto;
    }
}


.specter-card-img {
    width: 100%;
    height: auto !important;
    display: block;
    transition: transform 0.5s ease;
    filter: grayscale(20%);
}



.specter-card-body {
    padding: 1.5rem;
    /* Reduced for mobile */
}

.specter-meta {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6d5a2a;
    /* Even darker Gold for accessibility contrast */
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.specter-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    /* Slightly smaller for mobile */
    color: var(--navy-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.specter-title a {
    color: inherit;
    text-decoration: none;
}

@media (min-width: 992px) {
    .specter-card {
        border-top: 3px solid transparent;
    }

    .specter-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        border-top: 3px solid var(--gold);
    }

    .specter-card:hover .specter-card-img {
        transform: scale(1.05);
        filter: grayscale(0%);
    }

    .specter-card-body {
        padding: 2rem;
    }

    .specter-meta {
        font-size: 0.75rem;
    }

    .specter-title {
        font-size: 1.5rem;
    }

    .specter-title a {
        background-image: linear-gradient(var(--gold), var(--gold));
        background-position: 0% 100%;
        background-repeat: no-repeat;
        background-size: 0% 2px;
        transition: background-size .3s;
    }

    .specter-card:hover .specter-title a {
        background-size: 100% 2px;
    }
}


/* Post Single Page */


/* Post Single Page Base (Mobile) */
.post-content-area {
    background: var(--white);
    padding: 1.5rem;
    /* Mobile default */
    position: relative;
    z-index: 10;
}

.post-header-content {
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 2rem;
}

.post-header-content .specter-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    /* Mobile title size */
    color: var(--navy-dark);
    line-height: 1.2;
}

.post-featured-image img {
    height: auto !important;
    width: 100%;
    display: block;
    border-bottom: 3px solid var(--gold);
}

@media (min-width: 992px) {
    .post-content-area {
        padding: 4rem;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
        border-top: 4px solid var(--gold);
    }

    .post-header-content .specter-title {
        font-size: 3rem;
        line-height: 1.1;
    }

    .post-featured-image img {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }
}


.post-content-area p {
    font-size: 1.15rem;
    color: var(--navy-light);
    margin-bottom: 1.5rem;
}

.dropcap-wrapper p:first-of-type::first-letter {
    color: var(--gold);
    float: left;
    font-family: var(--font-accent);
    font-size: 4rem;
    line-height: 0.8;
    padding-right: 1rem;
    padding-top: 0.5rem;
}

/* Smart Cleaner: Hide duplicate title coming from content editor */
.dropcap-wrapper>h1:first-child,
.dropcap-wrapper>h2:first-child,
.dropcap-wrapper>h3:first-child,
.dropcap-wrapper>h4:first-child {
    display: none !important;
}

/* Also hide if it's the first paragraph but just a repetition of the title */
/* Note: This is a safety measure for AI-generated redundancy */
.dropcap-wrapper>p:first-child strong:only-child {
    display: none !important;
}

/* Footer */
.specter-footer {
    background-color: var(--navy-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    border-top: 4px solid var(--gold);
}

.specter-footer h2 img {
    display: block;
    margin: 0 auto;
    max-width: 90%;
    height: auto !important;
    max-height: 60px;
}


.specter-footer a {
    color: var(--gray-400);
    transition: opacity 0.2s ease;
}

.specter-footer a:hover {
    color: var(--gold);
}

/* Utilities */
.btn-specter {
    background-color: transparent;
    color: var(--navy-dark);
    border: 2px solid var(--navy-dark);
    border-radius: 0;
    padding: 0.75rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-specter:hover {
    background-color: var(--navy-dark);
    color: var(--white);
}

.section-title {
    font-family: var(--font-accent);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--gold);
}

/* Light Background Overrides for Hero */
.specter-hero.hero-bg-light {
    color: var(--navy-dark);
    background-image: none !important;
}

.specter-hero.hero-bg-light .specter-hero-content {
    color: var(--navy-dark);
    border-left-color: var(--navy-dark);
}

.specter-hero.hero-bg-light h1 {
    color: var(--navy-dark);
}

.specter-hero.hero-bg-light p {
    color: var(--navy-light);
    font-weight: 500;
}

/* Newsletter / Modal */
.specter-newsletter-form {
    margin-top: 1rem;
    display: flex;
    gap: 10px;
}

.specter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--gray-400);
    color: var(--white);
    padding: 10px 15px;
    width: 100%;
    font-family: var(--font-body);
}

.specter-input::placeholder {
    color: var(--gray-400);
}

.specter-input:focus {
    outline: none;
    border-color: var(--gold);
}

.btn-specter-gold {
    background-color: var(--gold);
    color: var(--navy-dark);
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-specter-gold:hover {
    background-color: var(--white);
}

/* Modal Overlay */
.specter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.specter-modal-content {
    background: var(--white);
    padding: 3rem;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border-top: 4px solid var(--gold);
    position: relative;
}

.close-specter-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy-light);
}

/* --- Botão WhatsApp Flutuante --- */
.elisia-whatsapp-floating {
    position: fixed;
    bottom: 20px;
    /* Default for mobile */
    right: 20px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-decoration: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.elisia-whatsapp-floating.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (min-width: 992px) {
    .elisia-whatsapp-floating {
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}

.elisia-whatsapp-floating:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ------------------------------------------------------------- */
/* MOBILE SPECIFIC FINE-TUNING (Integrated Base) */
/* ------------------------------------------------------------- */

/* Container Full-Width on Mobile (Post Single) */
@media (max-width: 991px) {

    /* Post Single Page: Keep full-width white card */
    article.container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }


    .verified-box {
        padding: 1rem !important;
        margin-bottom: 2rem !important;
        font-size: 0.8rem !important;
    }

    .verified-box .fw-bold.text-uppercase {
        font-size: 0.8rem !important;
    }

    .verified-box i {
        font-size: 1.2rem !important;
    }

    .verified-box small {
        font-size: 0.7rem !important;
    }
}

/* -------------------------------------------------------------------------- */
/* SUITS LAW MOBILE DRAWER (Vox Style Port) */
/* -------------------------------------------------------------------------- */
/* Hamburger Button */
.suits-hamburger {
    display: block;
    /* Visible by default on mobile-first */
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
}

@media (min-width: 992px) {
    .suits-hamburger {
        display: none;
    }
}

/* Drawer Components */
.suits-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.suits-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.suits-drawer {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 300px;
    height: 100%;
    background: white;
    z-index: 10002;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.suits-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--navy-dark);
}

.drawer-header h3 {
    margin: 0;
    color: var(--gold);
    font-size: 1.2rem;
    font-family: var(--font-accent);
    font-weight: 700;
}

.drawer-close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--gold);
    cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* MOBILE UTILITY OVERRIDES (User Request) */
/* -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .px-4 {
        padding-right: 1.2rem !important;
        padding-left: 1.2rem !important;
    }
}

/* -------------------------------------------------------------------------- */
/* BEST PRACTICES FIXES (PageSpeed) */
/* -------------------------------------------------------------------------- */
/* Fix for "H1UserAgentFontSizeInSection" warning */
/* Explicitly define H1 size inside content areas to prevent user-agent scaling */
.post-content-area h1,
.dropcap-wrapper h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

/* -------------------------------------------------------------------------- */
/* LEGACY SHARE COMPONENT (Specter Style) */
/* -------------------------------------------------------------------------- */
.specter-share-legacy {
    background: var(--navy-dark);
    border: 1px solid var(--gold);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.specter-share-legacy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
}

.specter-share-title {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1rem;
    /* Reduced from 1.25rem to fit 3 lines */
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.4;
    padding: 0 10px;
    /* Safe padding */
}

.btn-legacy-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Gap for text button */
    padding: 10px 20px;
    border: 1px solid var(--gold);
    background: transparent;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease;
    cursor: pointer;
}

/* Icon-only variation */
.btn-legacy-share.btn-icon-only {
    padding: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    /* Optional: Makes them circles, or keep square: border-radius: 4px; */
    font-size: 1.2rem;
}

.btn-legacy-share:hover {
    background: var(--gold);
    color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-legacy-share i {
    font-size: 1.1rem;
}

/* Ensure icon in icon-only button is centered and larger */
.btn-legacy-share.btn-icon-only i {
    font-size: 1.3rem;
}

/* Specific Hover colors for brands (Optional - keeping Gold for unity or brand colors?) */
/* Let's keep Gold hover for the 'Specter' unified look, but maybe slight tint */

.drawer-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
}

.drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-menu li {
    border-bottom: 1px solid #eee;
}

.drawer-menu a {
    color: var(--navy-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    padding: 15px 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-family: var(--font-body);
}

.drawer-menu a:hover {
    background: #f9f9f9;
    color: var(--gold);
    padding-left: 25px;
}

body.drawer-open {
    overflow: hidden !important;
}



/* ------------------------------------------------------------- */
/* BACK TO TOP BUTTON */
/* ------------------------------------------------------------- */
.suits-back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 9998;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    text-decoration: none !important;
}

.suits-back-to-top.show {
    opacity: 0.4;
    /* Subtle default */
    visibility: visible;
    transform: translateY(0);
}

.suits-back-to-top:hover {
    opacity: 1;
    /* Highlights on hover */
    background: var(--gold);
    color: var(--navy-dark);
    transform: scale(1.1);
}

@media (min-width: 992px) {
    .suits-back-to-top {
        bottom: 30px;
        left: 30px;
    }
}

/* PageSpeed/Accessibility Contrast Overrides */
.post-content-area figcaption {
    color: #444 !important;
    font-style: italic;
    margin-top: 10px;
    font-size: 0.95em;
    text-align: center;
    display: block;
}