/* ==========================================================================
   CSS Variables & Theming (Inherited from SBA Creative core)
   ========================================================================== */
:root {
    --bg-main: #F8F6F1;
    --bg-section: #FFFFFF;
    --bg-alt: #F2EEE6;
    --text-primary: #171717;
    --text-secondary: #666666;
    --border-color: #E8E1D4;
    --accent: #F4B63D;
    --accent-hover: #E5A623;
    --accent-warm: #FFF6DF;
    
    --font-head: 'Satoshi', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    --radius-lg: 16px;
    --radius-md: 8px;
    --radius-btn: 9999px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@font-face {
  font-family: 'Qurova';
  src: url('/assets/fonts/qurova-font-family/QurovaDEMO-Medium-BF67a5c6382651c.otf') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Base */
.h-hero { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 24px; }
.h-section { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.h-card { font-size: 1.25rem; margin-bottom: 8px; }
.p-large { font-size: clamp(1.125rem, 2vw, 1.25rem); color: var(--text-secondary); margin-bottom: 32px; }
.p-base { font-size: 1rem; color: var(--text-secondary); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 32px; border-radius: var(--radius-btn);
    font-weight: 600; font-size: 1rem; transition: all 0.3s ease; border: none; gap: 8px;
}
.btn-primary { background-color: var(--accent); color: #FFFFFF; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background-color: var(--accent-hover); transform: scale(1.02); }

/* Header */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    transition: all 0.3s ease; padding: 24px 0;
}
header.scrolled {
    padding: 16px 0; background-color: rgba(248, 247, 243, 0.9);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { 
    font-family: var(--font-head); 
    font-weight: 900; 
    font-size: 1.7rem; 
    display: flex;
    align-items: flex-end;
    font-family: Qurova;
    gap: 5px;
}
.logo img {
    height: 50px;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); transition: 0.2s; }
.nav-links a:hover { color: var(--text-primary); }


/* ==========================================================================
   Dropdown Menu Styles
   ========================================================================== */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 16px;
    background-color: var(--bg-section);
    min-width: 280px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    z-index: 200;
}

/* Hover Interaction (Desktop) */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Click Interaction Class (For JS toggle) */
.dropdown-menu.show-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Links */
.dropdown-menu a {
    padding: 12px 24px;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--bg-alt);
    color: var(--accent);
}


/* Animations */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Case Study Specific: Hero */
.cs-hero { padding-top: 190px; padding-bottom: 80px; }
.section-tag {
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--accent); display: block; margin-bottom: 16px;
}
.cs-hero-content { max-width: 900px; }
.cs-meta {
    display: flex; gap: 64px; flex-wrap: wrap; margin-top: 64px;
    padding-top: 32px; border-top: 1px solid var(--border-color);
}
.cs-meta-item { display: flex; flex-direction: column; gap: 8px; }
.cs-meta-item strong { font-family: var(--font-head); font-size: 1.1rem; }
.cs-meta-item span { color: var(--text-secondary); font-size: 0.95rem; }

/* Case Study Specific: Full Image Presentation */
.cs-full-image { padding: 40px 0 120px 0; }
.cs-full-image .image-wrapper {
    background: var(--bg-section); border-radius: var(--radius-lg);
    padding: 16px; border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md); overflow: hidden;
}
.cs-full-image img {
    border-radius: var(--radius-md); width: 100%; border: 1px solid var(--border-color);
}



/* ==========================================================================
   Clickable Image Overlay Styles (Glowing Live Button)
   ========================================================================== */
.image-wrapper {
    position: relative;
    display: block;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
}

/* Subtle image scale effect on hover */
.image-wrapper img {
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.015);
}

/* Invisible overlay container to center the badge */
.image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Keyframe for continuous glowing pulse ring */
@keyframes buttonPulseGlow {
    0% {
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(244, 182, 61, 0.6);
    }
    70% {
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 0 14px rgba(244, 182, 61, 0);
    }
    100% {
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(244, 182, 61, 0);
    }
}

/* Glowing Live Button */
.overlay-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background-color: var(--bg-section);
    color: var(--text-primary);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-btn);
    
    /* Animation settings */
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Trigger reveal & glowing pulse loop on hover */
.image-wrapper:hover .overlay-badge {
    opacity: 1;
    transform: translateY(0);
    animation: buttonPulseGlow 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}




/* Case Study Specific: Strategy Grid */
.cs-strategy { padding-bottom: 140px; }
.cs-strategy-grid {
    display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start;
}
.cs-sidebar {
    position: sticky; top: 120px; background: var(--bg-section);
    padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--border-color);
}
.cs-details { display: flex; flex-direction: column; gap: 80px; }
.cs-detail-block { position: relative; }
.cs-number {
    font-family: var(--font-head); font-size: 4rem; font-weight: 900;
    color: var(--border-color); line-height: 1; display: block; margin-bottom: 16px;
}

/* Editorial Breaker */
.statement-section {
    padding: 140px 0; background: var(--bg-main);
    border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.statement-badge {
    display: inline-block; padding: 6px 18px; background: var(--bg-section);
    border: 1px solid var(--border-color); border-radius: var(--radius-btn);
    font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 32px;
}
.statement-quote {
    font-family: var(--font-head); font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 900; line-height: 1.12; color: var(--text-primary);
    max-width: 960px; margin: 0 auto; letter-spacing: -0.03em;
}
.statement-quote .quote-accent { color: var(--accent); font-style: italic; position: relative; }
.statement-quote .quote-accent::after {
    content: ''; position: absolute; bottom: 4px; left: 0; width: 100%;
    height: 4px; background: var(--accent-warm); border-radius: 2px; opacity: 0.7; z-index: -1;
}

/* CTA & Footer */
.cta-section { padding: 160px 0; background: var(--bg-section); text-align: center; }
.cta-section .container { display: flex; flex-direction: column; align-items: center; }
.cta-section h2 { max-width: 600px; margin: 0 auto 24px auto; }
footer { padding: 64px 0 32px 0; background: var(--bg-main); border-top: 1px solid var(--border-color); }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 64px; }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-col a { color: var(--text-secondary); }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--border-color); font-size: 0.875rem; color: var(--text-secondary); }

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .nav-container {
        display: flex;
        flex-direction: column;
        gap: 13px;
    }
    .cs-strategy-grid { grid-template-columns: 1fr; gap: 40px; }
    .cs-sidebar { position: static; }
}
@media (max-width: 768px) {
    .nav-links { display: flex; }
    .cs-meta { gap: 32px; flex-direction: column; }
    .footer-top { flex-direction: column; }
    .footer-links { flex-direction: column; gap: 32px; }
}