/**
 * Maiocchi Theme - Visual Parity Styles
 * Matching maiocchi.com.br design exactly
 */

/* =========================================
   FONT OVERRIDES
   ========================================= */
:root {
    --font-sans: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

    /* Standardized site spacing */
    --site-gutter: 64px;
    --site-max-width: 1280px;
}

@media (min-width: 768px) {
    :root {
        --site-gutter: 100px;
    }
}

/* =========================================
   UNIVERSAL LAYOUT CONTAINERS
   ========================================= */
.container,
.page-container,
.article-container,
.faq-container,
.hero-content,
.footer-content {
    width: 100% !important;
    max-width: var(--site-max-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Gutters for all containers */
.container,
.page-container,
.article-container,
.faq-container,
.hero-content,
.footer-content {
    padding-left: var(--site-gutter) !important;
    padding-right: var(--site-gutter) !important;
}

/* =========================================
   RESPONSIVE SIDEBAR SCALING
   ========================================= */
@media (max-width: 1024px) {
    .article-nav-stack {
        gap: 10px !important;
    }

    .article-nav-btn {
        width: 42px !important;
        height: 42px !important;
        border-radius: 12px !important;
    }

    .article-nav-btn i {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 640px) {
    .article-nav-bar {
        left: 12px !important;
        /* Move even closer to edge */
    }

    .article-nav-stack {
        gap: 6px !important;
    }

    .article-nav-btn {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
    }

    .article-nav-btn i {
        width: 14px !important;
        height: 14px !important;
    }
}

/* =========================================
   POST NAVIGATION (ANTERIOR / PRÓXIMO)
   ========================================= */
.post-navigation {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.nav-card {
    text-decoration: none;
    display: flex;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    min-height: 100px;
}

.nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.nav-next {
    flex-direction: row-reverse;
}

.nav-card-image {
    width: 120px;
    flex-shrink: 0;
    background: var(--color-background);
}

.nav-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-card-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-next .nav-card-content {
    text-align: right;
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.nav-next .nav-label {
    justify-content: flex-end;
}

.nav-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    display: block;
    line-height: 1.4;
    margin-bottom: 6px;
}

.nav-excerpt {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile Post Navigation */
@media (max-width: 768px) {
    .post-navigation {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nav-card-image {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .nav-card-image {
        display: none;
        /* Hide images on very small devices for focus on text */
    }
}

/* =========================================
   HEADER STYLES - GLASSMORPHISM
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition: all 0.5s ease;
    z-index: -1;
}

.site-header.scrolled::before {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 101px;
    padding: 0 48px;
    max-width: 100%;
    position: relative;
}

@media (min-width: 1400px) {
    .header-nav {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
    }
}

@media (min-width: 768px) {
    .header-nav {
        height: 155px;
        padding: 0 48px;
    }
}

@media (min-width: 1400px) {
    .header-nav {
        padding: 0 120px;
    }
}

/* Logo Styling */
.site-branding {
    display: flex;
    align-items: center;
    z-index: 1100;
    text-decoration: none;
}

.site-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: white;
    transition: color 0.3s ease;
}

.scrolled .logo-text {
    color: var(--color-text);
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
    margin-left: 6px;
    position: relative;
}

.logo-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    border-radius: 50%;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Navigation - Centered */
.nav-desktop {
    display: none;
    align-items: center;
    margin: 0 5px;
    /* Minimum 5px spacing from neighbors */
}

@media (min-width: 1400px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0;
    padding: 0;
}

.nav-list a {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 12px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-list a:hover,
.nav-list .current-menu-item a {
    color: white;
}

.nav-list a:hover::after,
.nav-list .current-menu-item a::after {
    width: 100%;
}

.scrolled .nav-list a {
    color: var(--color-text-muted);
}

.scrolled .nav-list a:hover,
.scrolled .nav-list .current-menu-item a {
    color: var(--color-text);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-pod {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
}

.action-pod:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.action-pod:active {
    transform: scale(0.95);
}

.scrolled .action-pod {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--color-text);
}

.scrolled .action-pod:hover {
    background: var(--color-dark);
    color: white;
    border-color: var(--color-dark);
}

.action-pod--whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

.action-pod--whatsapp:hover {
    background: #1da851;
    border-color: #1da851;
    transform: scale(1.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
}

@media (min-width: 1400px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 120px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Natural Gradient Fade - mist-gray-fusion overrides the dark overlay */
.hero-overlay.mist-gray-fusion {
    background:
        /* Dark overlay for text readability */
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.5) 40%,
            rgba(0, 0, 0, 0.3) 70%,
            transparent 100%),
        /* Natural fade to background color */
        linear-gradient(to top,
            var(--color-background) 0%,
            rgba(245, 245, 247, 0.95) 8%,
            rgba(245, 245, 247, 0.7) 20%,
            rgba(245, 245, 247, 0.3) 40%,
            transparent 70%);
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--color-background) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 0 80px;
    }
}

.hero-article {
    max-width: 800px;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.label-text {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--color-primary);
}

.label-line {
    flex: 1;
    max-width: 100px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    color: white;
    margin-bottom: 32px;
}

.hero-cta {
    display: inline-flex;
}

.cta-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-circle svg {
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.hero-cta:hover .cta-circle {
    transform: scale(1.1);
    background: var(--color-primary);
}

.hero-cta:hover .cta-circle svg {
    color: var(--color-dark);
    transform: translate(2px, -2px);
}

/* =========================================
   ARTICLES SECTION
   ========================================= */
.articles-section {
    background: var(--color-background);
    padding: 80px 0 120px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--color-text);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
}

@media (min-width: 640px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Article Card */
.article-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .card-thumbnail {
    transform: scale(1.05);
}

.card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255, 255, 255, 0.3);
}

.card-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--color-dark);
    color: white;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-tag svg {
    opacity: 0.7;
}

.card-content {
    padding: 28px 24px;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 12px;
}

.card-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--color-primary);
}

.card-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-text);
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.card-link svg {
    transition: transform 0.3s ease;
}

.card-link:hover {
    color: var(--color-primary);
}

.card-link:hover svg {
    transform: translate(4px, -4px);
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.btn:active {
    transform: scale(0.95);
}

.btn-dark {
    background: var(--color-dark);
    color: white;
}

.btn-dark:hover {
    background: var(--color-text);
    transform: scale(1.02);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-dark);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 0 30px rgba(255, 184, 0, 0.4);
}

.btn-lg {
    padding: 20px 40px;
    font-size: 0.9rem;
}

/* =========================================
   FOOTER ENHANCEMENTS
   ========================================= */
.site-footer {
    background: var(--color-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-logo .logo-text {
    color: white;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-4px);
}

.footer-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--color-success);
    color: white;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact-btn:hover {
    background: #1da851;
    transform: scale(1.02);
}

/* =========================================
   MOBILE MENU OVERLAY
   ========================================= */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: white;
    color: var(--color-dark);
}

.mobile-nav-label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 32px;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav-list li {
    margin: 0;
    padding: 0;
}

.mobile-nav-list a {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: white;
    text-decoration: none;
    padding: 16px 0;
    transition: color 0.3s ease;
}

.mobile-nav-list a:hover {
    color: var(--color-primary);
}

/* =========================================
   SEARCH MODAL
   ========================================= */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.search-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

.search-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.search-modal-icon {
    color: var(--color-text-muted);
}

.search-modal-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 1.25rem;
    color: var(--color-text);
    outline: none;
}

.search-modal-input::placeholder {
    color: var(--color-text-muted);
}

.search-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-background);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.search-modal-close:hover {
    background: var(--color-dark);
    color: white;
}

/* =========================================
   UTILITIES
   ========================================= */
.container,
.page-container,
.article-container,
.faq-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px var(--site-gutter) 100px;
}

@media (min-width: 768px) {

    .container,
    .page-container,
    .article-container,
    .faq-container {
        padding: 100px var(--site-gutter) 140px;
    }
}

.container-wide {
    max-width: 100%;
}

/* Animation */
@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* =========================================
   SEARCH CAPSULE (Spotlight Style)
   ========================================= */

/* NO layout changes when search is active - elements stay in place */
.site-header.search-active .header-actions,
.site-header.search-active .nav-desktop {
    /* Keep everything in original position */
}

/* Hide only the search trigger button when active */
.site-header.search-active .search-trigger {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Dark backdrop overlay */
.search-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 9998;
}

.search-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Spotlight-style Search Container */
.search-capsule {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    width: 600px;
    max-width: calc(100vw - 48px);
    background: rgba(40, 40, 45, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 16px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
}

.search-capsule.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* Spotlight Search Header (input area) */
.search-capsule-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-capsule-icon {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.search-capsule-icon svg {
    width: 22px;
    height: 22px;
}

.search-capsule-input {
    flex: 1;
    border: none;
    background: transparent !important;
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff !important;
    outline: none;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
}

/* Remove browser search styling */
.search-capsule-input::-webkit-search-decoration,
.search-capsule-input::-webkit-search-cancel-button,
.search-capsule-input::-webkit-search-results-button,
.search-capsule-input::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
}

/* Prevent autofill background */
.search-capsule-input:-webkit-autofill,
.search-capsule-input:-webkit-autofill:hover,
.search-capsule-input:-webkit-autofill:focus {
    -webkit-text-fill-color: white !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.search-capsule-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-capsule-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    padding: 0;
    font-size: 12px;
}

.search-capsule-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Hide controls group - use new header structure */
.search-capsule-controls {
    display: none;
}

/* Mobile/Responsive */
@media (max-width: 768px) {
    .search-capsule {
        top: 10%;
        width: calc(100vw - 32px);
        max-height: 80vh;
    }
}

/* Search Results - Inside Spotlight Capsule */
.search-capsule-results {
    max-height: 400px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
}

.search-capsule-results.has-results {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Internal scrollbar styling */
.search-capsule-results-inner {
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.search-capsule-results-inner::-webkit-scrollbar {
    width: 6px;
}

.search-capsule-results-inner::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.search-capsule-results-inner::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.search-capsule-results-inner::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-capsule-results.has-results {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-capsule-results-header {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* Fix focus border */
.search-capsule-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    text-decoration: none;
    color: white;
    transition: all 0.15s ease;
    border-radius: 8px;
    margin: 4px 8px;
}

.search-result-item:first-child {
    margin-top: 8px;
}

.search-result-item:last-child {
    margin-bottom: 8px;
}

.search-result-item:hover,
.search-result-item:focus {
    background: rgba(255, 255, 255, 0.1);
}


.search-result-item.selected {
    background: rgba(30, 100, 200, 0.4);
}

.search-result-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.search-result-icon svg {
    width: 16px;
    height: 16px;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-description {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
}

.search-result-meta {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.search-result-meta span {
    color: var(--color-primary);
}

/* Loading state */
.search-loading {
    padding: 32px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.search-loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* No results state */
.search-no-results {
    padding: 32px 20px;
    text-align: center;
}

.search-no-results-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    color: rgba(255, 255, 255, 0.3);
}

.search-no-results-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Footer Redesign */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.footer-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 12px;
}

/* Icon-only contact button */
.footer-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #25D366;
    color: white !important;
    border-radius: 12px;
    /* Rounded square like others, not circle */
    padding: 0;
    font-size: 0;
    /* Hide any residual text */
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    color: white !important;
}

.footer-whatsapp i {
    width: 18px;
    height: 18px;
}

/* Ensure mobile layout handles it well */
@media (max-width: 768px) {
    .footer-socials {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .footer-divider {
        display: none;
        /* Hide divider on mobile wrapping */
    }

    .footer-whatsapp {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }
}

/* Footer Logo Adjustment */
.footer-logo-container {
    text-decoration: none;
    display: inline-flex;
}

.footer-logo-small {
    display: flex;
    align-items: center;
}

.footer-logo-small .logo-text {
    font-size: 1.1rem;
    /* Smaller than header 1.5rem */
    letter-spacing: 0.1em;
    font-weight: 600;
    color: white;
    /* Always white in footer */
}

.footer-logo-small .logo-dot {
    width: 6px;
    /* Smaller than header 10px */
    height: 6px;
    margin-left: 5px;
    background: var(--color-primary);
}

.footer-logo-small .logo-dot::before {
    animation: none;
    /* No pulsing in footer usually, or keep it */
}

/* Footer Layout & Icon Visibility Fixes */
/* Footer Layout & Icon Visibility Fixes */
@media (min-width: 768px) {
    .footer-desktop {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 10px;
        /* Reduced from 20px */
        padding-bottom: 10px;
        /* Reduced from 20px */
        border-top: none;
        margin-top: 5px;
        /* Reduced from 20px */
    }
}

.footer-branding {
    max-width: 100%;
}

.footer-mission {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    max-width: 100% !important;
    /* Allow full width on mobile */
}

@media (min-width: 768px) {
    .footer-branding {
        max-width: 40%;
    }
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
    /* Reduced from 20px */
}

.social-icon svg {
    stroke: white !important;
    /* Force white color */
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.social-icon:hover svg {
    opacity: 1;
}

/* Ensure icons are always visible */
.social-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* =========================================
   GLOBAL CONTENT STANDARDIZATION
   ========================================= */
/* Managed by universal containers in visual-parity.css */

.prose-luxury p,
.faq-answer p,
.entry-content p {
    text-align: justify !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    -moz-hyphens: auto !important;
    -ms-hyphens: auto !important;
}

@media (max-width: 768px) {

    .prose-luxury p,
    .faq-answer p,
    .entry-content p {
        text-align: left !important;
        hyphens: none !important;
    }
}