/* Custom Stylesheet for deLoyola Studio - Surrealistic Groteske Complete Redesign */





/* Page Transition */
@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    animation: pageFadeIn 0.4s ease-in-out forwards;
}

body.page-transitioning {
    opacity: 0 !important;
    transition: opacity 0.4s ease-in-out;
}

:root {
    --oil-black: #080705;
    --oil-dark: #12100d;
    --burnt-ochre: #c86127;
    --sienna: #8d3b1b;
    --umber: #4f2b1d;
    --patina-gold: #d4af37;
    --patina-aged: #c5a059;
    --moss-green: #4e5b41;
    --parchment-light: #f4eee3;
    --parchment-muted: #c5bba8;
    --earth-border: #383127;
}

/* Mobile Hamburger Animation */
#mobile-menu-toggle.is-open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#mobile-menu-toggle.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#mobile-menu-toggle.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

html {
    max-width: 100%;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--oil-dark);
    color: var(--parchment-light);
    font-family: 'Cormorant Garamond', serif; /* Shift default font to serif for the archaic feel */
    line-height: 1.8; /* Entrelinhamento reduzido em 20% (era 2.25) */
    max-width: 100%;
    overflow-x: clip;
    position: relative;
    margin: 0;
    padding: 0;
}

@supports not (overflow-x: clip) {
    html, body {
        overflow-x: hidden;
    }
}

/* Guaranteed Navigation Bar */
#main-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

#main-nav.scrolled {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    background-color: rgba(8, 7, 5, 0.98) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9) !important;
}

/* Floating WhatsApp Button Protection */
.whatsapp-float-btn {
    position: fixed !important;
    bottom: 1rem;
    right: 1rem;
    z-index: 50;
}

@media (min-width: 640px) {
    .whatsapp-float-btn {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* The ambient oil painting background for the entire body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/surreal_bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.35;
    z-index: -2;
    pointer-events: none;
    filter: sepia(0.3) saturate(0.8) contrast(1.2);
}

/* Gradient overlay to ensure text readability while maintaining the dark earthy tone */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 10%, rgba(18, 16, 13, 0.95) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Typography styles */
.font-cinzel {
    font-family: 'Cinzel', serif;
}
.font-serif {
    font-family: 'Cormorant Garamond', serif;
}
.font-sans {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.hieratic-title {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.15em;
    color: var(--parchment-light);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.gold-accent {
    color: var(--patina-gold);
}

.ochre-accent {
    color: var(--burnt-ochre);
}

/* Museum Canvas Frame for specific focal points */
.canvas-frame {
    position: relative;
    box-shadow: 0 40px 60px -15px rgba(0, 0, 0, 0.95),
                inset 0 0 0 2px rgba(212, 175, 55, 0.15),
                inset 0 0 30px rgba(0, 0, 0, 0.85);
    background-color: var(--oil-black);
    padding: 10px;
    box-sizing: border-box;
}
.canvas-frame img {
    display: block;
    width: 100%;
    height: auto;
    filter: sepia(0.2) contrast(1.1) brightness(0.9);
}
.canvas-frame.h-full {
    display: flex;
    flex-direction: column;
}
.canvas-frame.h-full img,
.canvas-frame img.h-full {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* Hieratic Central Layout Constraint */
.hieratic-container {
    max-width: 56rem; /* max-w-4xl equivalent */
    margin: 0 auto;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    z-index: 10;
}

/* Abstract dividers instead of standard borders */
.archaic-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 4rem 0;
}
.archaic-divider::before,
.archaic-divider::after {
    content: '';
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--patina-aged), transparent);
}
.archaic-divider-icon {
    color: var(--burnt-ochre);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Remove default link styling and add archaic hover */
a {
    color: inherit;
    text-decoration: none;
    transition: all 0.5s ease;
}
a:hover {
    color: var(--patina-gold);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Service / Text lists - No cards, just floating text blocks */
.floating-text-block {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(8, 7, 5, 0.6);
    border: 1px solid rgba(197, 160, 89, 0.1);
    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    text-align: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--oil-black);
}
::-webkit-scrollbar-thumb {
    background: var(--umber);
    border-radius: 0px; /* Sharp edges for archaic feel */
}
::-webkit-scrollbar-thumb:hover {
    background: var(--burnt-ochre);
}

/* Entrelinhamento reduzido em 20% para textos corridos do site */
p, p.font-serif, .floating-text-block p, .prose p {
    line-height: 1.84 !important;
}

.floating-text-block {
    line-height: 1.76;
}

/* Frase de topo (Hero): ocupa totalmente as duas colunas no desktop e quebra fluidamente no mobile */
.hero-heading {
    width: 100%;
    max-width: 100%;
    line-height: 1.15;
}
.hero-heading .hero-line-1 {
    display: block;
    font-size: clamp(1.3rem, 5.2vw, 64px);
    letter-spacing: clamp(0.02em, 1.25vw, 0.145em);
    line-height: 1.15;
    text-transform: uppercase;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}
.hero-heading .hero-line-2 {
    display: block;
    font-size: clamp(1.15rem, 4.4vw, 54px);
    letter-spacing: clamp(0.01em, 0.8vw, 0.075em);
    line-height: 1.2;
    margin-top: 0.5rem;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

/* Versão em inglês: 'OUTSTANDING,' em destaque entre 'YOUR COMPANY IS' e 'yet your brand still feels small?' */
.hero-heading-en .hero-line-1 {
    font-size: clamp(1.3rem, 4.8vw, 56px);
    letter-spacing: clamp(0.02em, 1.2vw, 0.14em);
    line-height: 1.15;
    white-space: normal;
}
.hero-heading-en .hero-line-highlight {
    display: block;
    font-size: clamp(1.6rem, 6.2vw, 68px);
    letter-spacing: clamp(0.03em, 1.3vw, 0.16em);
    line-height: 1.15;
    text-transform: uppercase;
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
    white-space: normal;
}
.hero-heading-en .hero-line-2 {
    font-size: clamp(1.15rem, 4.2vw, 50px);
    letter-spacing: clamp(0.01em, 0.8vw, 0.075em);
    line-height: 1.2;
    margin-top: 0.35rem;
    white-space: normal;
}

/* Desktop: Mantém a imponência hierática de linhas únicas perfeitamente calibradas */
@media (min-width: 1024px) {
    .hero-heading {
        line-height: 0.9 !important;
    }
    .hero-heading .hero-line-1 {
        white-space: nowrap;
        line-height: 0.95 !important;
    }
    .hero-heading .hero-line-2 {
        white-space: nowrap;
        line-height: 1.05 !important;
        margin-top: 0.4rem;
    }
    .hero-heading-en .hero-line-1 {
        white-space: nowrap;
        line-height: 0.95 !important;
    }
    .hero-heading-en .hero-line-highlight {
        white-space: nowrap;
        line-height: 1.0 !important;
    }
    .hero-heading-en .hero-line-2 {
        white-space: nowrap;
        line-height: 1.05 !important;
    }
}

/* Service Carousel / Horizontal scroll */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.service-nav-arrow {
    background: rgba(18, 16, 13, 0.9);
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: var(--patina-gold);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.9), inset 0 0 10px rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-nav-arrow:hover {
    border-color: var(--burnt-ochre);
    color: var(--burnt-ochre);
    background: rgba(8, 7, 5, 0.98);
    box-shadow: 0 8px 30px rgba(200, 97, 39, 0.35), inset 0 0 15px rgba(200, 97, 39, 0.2);
    transform: translateY(-50%) scale(1.1);
}
.service-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* Service Pagination Dots */
.service-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.service-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: rgba(197, 160, 89, 0.3);
    border: 1px solid rgba(197, 160, 89, 0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.service-dot:hover {
    background: var(--patina-gold);
    border-color: var(--patina-gold);
    transform: scale(1.25);
}

.service-dot.active {
    width: 32px;
    height: 10px;
    border-radius: 9999px;
    background: var(--burnt-ochre);
    border-color: var(--burnt-ochre);
    box-shadow: 0 0 14px rgba(200, 97, 39, 0.6);
}

.service-dot:focus-visible {
    box-shadow: 0 0 0 2px var(--oil-dark), 0 0 0 4px var(--patina-gold);
}

/* ==========================================================================
   Case Study Editorial & Typography System
   ========================================================================== */
.case-content {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #ded8cb;
    font-size: 1.125rem;
    line-height: 1.85 !important;
}

/* Consistent Line-Height & Paragraph Spacing */
.case-content p,
.case-content .wp-block-paragraph {
    font-size: 1.125rem !important;
    line-height: 1.85 !important;
    margin-bottom: 1.85rem !important;
    color: #ded8cb;
    letter-spacing: 0.01em;
}

/* Hierarchy: Headings */
.case-content h2,
.case-content .wp-block-heading:is(h2) {
    font-family: 'Cinzel', serif !important;
    font-size: clamp(1.4rem, 3.2vw, 1.85rem) !important;
    font-weight: 700 !important;
    color: var(--patina-gold) !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    line-height: 1.35 !important;
    margin-top: 4rem !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid rgba(197, 160, 89, 0.25) !important;
}

.case-content h3,
.case-content .wp-block-heading:is(h3) {
    font-family: 'Cinzel', serif !important;
    font-size: clamp(1.2rem, 2.4vw, 1.45rem) !important;
    font-weight: 600 !important;
    color: var(--burnt-ochre) !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    line-height: 1.4 !important;
    margin-top: 3rem !important;
    margin-bottom: 1.25rem !important;
}

.case-content h4,
.case-content .wp-block-heading:is(h4) {
    font-family: 'Cinzel', serif !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #f5eedf !important;
    letter-spacing: 0.06em !important;
    line-height: 1.45 !important;
    margin-top: 2.25rem !important;
    margin-bottom: 1rem !important;
}

/* Lists Hierarchy & Cohesive Spacing */
.case-content ul,
.case-content ol,
.case-content .wp-block-list {
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
    padding-left: 1.75rem !important;
    font-size: 1.0625rem !important;
    line-height: 1.85 !important;
    color: #cfc6b8 !important;
}

.case-content ul {
    list-style-type: disc !important;
}

.case-content ol {
    list-style-type: decimal !important;
}

.case-content li {
    margin-bottom: 0.85rem !important;
    line-height: 1.85 !important;
    padding-left: 0.25rem;
}

.case-content li::marker {
    color: var(--burnt-ochre) !important;
}

.case-content strong,
.case-content b {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.case-content em,
.case-content i {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.2em;
    color: var(--parchment-muted);
}

/* Mandatory Centered Image Alignment */
.case-content figure,
.case-content .wp-block-image,
.case-content .wp-block-media-text,
.case-content .case-image-frame {
    float: none !important;
    clear: both !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 3.5rem auto !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* All images inside case study text on a clean, elegant white background */
.case-content img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    height: auto !important;
    background-color: #ffffff !important;
    padding: 1.5rem !important;
    border-radius: 4px !important;
    border: 1px solid rgba(197, 160, 89, 0.35) !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85) !important;
}

.case-content .case-img-white {
    background-color: #ffffff !important;
    padding: 2rem !important;
    border-radius: 4px !important;
    border: 1px solid rgba(197, 160, 89, 0.35) !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

.case-content .case-img-white img {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.case-content figcaption,
.case-content .wp-element-caption {
    text-align: center !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-style: italic !important;
    font-size: 1.05rem !important;
    color: var(--parchment-muted) !important;
    margin-top: 1rem !important;
    letter-spacing: 0.02em;
}

/* Case Metadata Box */
.case-meta-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    margin-bottom: 3.5rem;
    background: rgba(14, 12, 10, 0.85);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 2px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.case-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.case-meta-label {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burnt-ochre);
    margin-bottom: 0.35rem;
}

.case-meta-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--parchment-light);
    font-weight: 500;
}



/* --- Majestic Scroll Animations --- */
.reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal-hidden.reveal-scale {
    transform: translateY(20px) scale(0.96);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }


/* --- Majestic Hero Entrance --- */
.hero-line-1, .hero-line-highlight, .hero-line-2 {
    opacity: 0;
    transform: translateY(20px);
    animation: majesticEntrance 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    display: block;
}
.hero-line-1 { animation-delay: 200ms; }
.hero-line-highlight { animation-delay: 600ms; }
.hero-line-2 { animation-delay: 1000ms; }

@keyframes majesticEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Opaque Toast Notification Box --- */
.deloyola-toast {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    z-index: 9999;
    background-color: #12100d !important;
    background: #12100d !important;
    opacity: 1 !important;
    border: 1px solid #c5a059 !important;
    border-radius: 4px;
    padding: 1rem 1.5rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.95), 0 0 15px rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    max-width: 90vw;
    width: auto;
    color: #f4eee3;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.deloyola-toast.toast-error {
    border-color: #c86127 !important;
}
