/*
 * Theme Name: Bali Cabin Elementor
 * Description: Custom Elementor widgets theme for Bali Cabin – Revenue-Based Hospitality Management
 * Version: 1.0.0
 * Author: BC Solutions
 *
 * CSS ini diadaptasi dari bali-cabin/style.css oleh web dev team BC Solutions.
 */

/* ─────────────────────────────────────────────────────────────────────────────
   CSS CUSTOM PROPERTIES
   ───────────────────────────────────────────────────────────────────────────── */
:root {
    --bc-bg-primary:    #f6f6f6;   /* Off-white */
    --bc-bg-secondary:  #11382b;   /* Dark Forest Green */
    --bc-text-primary:  #333333;
    --bc-text-secondary:#666666;
    --bc-accent:        #0a7b63;   /* Emerald/Teal Green */
    --bc-accent-hover:  #086350;
    --bc-positive:      #0a7b63;
    --bc-border:        #e2e2e2;
    --bc-font-main:     "Inter", sans-serif;
    --bc-font-mono:     "Roboto Mono", monospace;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BASE RESET (scoped agar tidak bentrok dengan WordPress / Elementor global)
   ───────────────────────────────────────────────────────────────────────────── */
.bc-wrap *,
.bc-wrap *::before,
.bc-wrap *::after {
    box-sizing: border-box;
}

.bc-wrap {
    font-family: var(--bc-font-main);
    color: var(--bc-text-primary);
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ───────────────────────────────────────────────────────────────────────────── */
.bc-wrap h1,
.bc-wrap h2,
.bc-wrap h3,
.bc-wrap h4 {
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.bc-section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.bc-section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.bc-section-heading p {
    color: var(--bc-text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CONTAINER & UTILITIES
   ───────────────────────────────────────────────────────────────────────────── */
.bc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bc-text-center { text-align: center; }

.bc-btn-primary {
    display: inline-block;
    background-color: var(--bc-accent);
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--bc-font-main);
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
}

.bc-btn-primary:hover {
    background-color: var(--bc-accent-hover);
    transform: translateY(-2px);
}

.bc-btn-primary.bc-full-width {
    width: 100%;
    display: block;
}

/* ─────────────────────────────────────────────────────────────────────────────
   REVEAL ANIMATION
   ───────────────────────────────────────────────────────────────────────────── */
.bc-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.bc-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────────────────────
   1. HERO SPLIT
   ───────────────────────────────────────────────────────────────────────────── */
.bc-hero-split {
    display: flex;
    min-height: 100vh;
}

.bc-hero-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bc-left-panel {
    padding: 4rem 10%;
    position: relative;
    background:
        linear-gradient(rgba(17, 56, 43, 0.85), rgba(17, 56, 43, 0.95)),
        var(--bc-hero-bg, url('')) center/cover;
    color: #ffffff;
}

.bc-hero-content h1 {
    font-size: 3.5rem;
    /* margin-bottom: 1.5rem; */
}

/* Typing animation headline */
.bc-headline .bc-text-js {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    /* margin-bottom: 1.5rem; */
    color: #ffffff;
}

.bc-headline .bc-line-1,
.bc-headline .bc-line-2 {
    display: inline;
}

.bc-hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 400px;
}

.bc-right-panel {
    background-color: var(--bc-bg-secondary);
    padding: 4rem;
    border-left: 1px solid var(--bc-border);
}

/* Dashboard Preview */
.bc-dashboard-preview {
    background-color: var(--bc-bg-primary);
    border: 1px solid var(--bc-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.bc-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--bc-font-mono);
    font-size: 0.8rem;
    color: var(--bc-text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.bc-status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--bc-positive);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--bc-positive);
    animation: bc-pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes bc-pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.4; }
    100% { opacity: 1; }
}

.bc-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.bc-dashboard-grid .bc-full-width-card {
    grid-column: 1 / -1;
}

.bc-dash-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--bc-border);
}

.bc-dash-label {
    display: block;
    font-size: 0.85rem;
    color: var(--bc-text-secondary);
    margin-bottom: 0.5rem;
}

.bc-dash-value {
    font-family: var(--bc-font-mono);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--bc-text-primary);
}

.bc-dash-value.bc-highlight {
    color: var(--bc-accent);
    font-size: 2.5rem;
}

.bc-dash-trend {
    font-size: 0.8rem;
    font-family: var(--bc-font-mono);
}

.bc-dash-trend.bc-positive {
    color: var(--bc-positive);
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. STATS TICKER
   ───────────────────────────────────────────────────────────────────────────── */
.bc-stats-ticker {
    background-color: var(--bc-accent);
    padding: 4rem 0;
    border-top: 1px solid var(--bc-border);
    border-bottom: 1px solid var(--bc-border);
}

.bc-ticker-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.bc-stat-item {
    text-align: center;
}

.bc-stat-number {
    font-family: var(--bc-font-mono);
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.bc-stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. NARRATIVE / HOW IT WORKS (Timeline)
   ───────────────────────────────────────────────────────────────────────────── */
.bc-narrative-section {
    padding: 8rem 0;
    background-color: #ffffff;
}

.bc-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.bc-timeline::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--bc-border);
}

.bc-timeline-item {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.bc-timeline-item:last-child {
    margin-bottom: 0;
}

.bc-timeline-marker {
    width: 50px;
    height: 50px;
    background-color: var(--bc-accent);
    border: 2px solid var(--bc-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--bc-font-mono);
    font-weight: 700;
    font-size: 1.2rem;
    color: #ffffff;
    z-index: 2;
    flex-shrink: 0;
}

.bc-timeline-content {
    background-color: #f6f6f6;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--bc-border);
    flex: 1;
}

.bc-timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bc-timeline-content p {
    color: var(--bc-text-secondary);
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   4. SERVICES (Flip Cards)
   ───────────────────────────────────────────────────────────────────────────── */
.bc-services-section {
    padding: 8rem 0;
    background-color: var(--bc-bg-primary);
}

.bc-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Dots indicator — hidden by default, shown on mobile/tablet */
.bc-services-dots {
    display: none;
}

.bc-service-card {
    perspective: 1000px;
    height: 350px;
}

.bc-service-card .bc-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.bc-service-card:hover .bc-card-inner {
    transform: translateY(-10px) rotateY(180deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.bc-service-card .bc-card-front,
.bc-service-card .bc-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}

.bc-service-card .bc-card-front {
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 4px solid var(--bc-accent);
}

.bc-service-card .bc-service-logo {
    width: 100%;
    height: 100%;
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bc-service-card:hover .bc-service-logo {
    transform: scale(1.15);
}

.bc-service-card .bc-service-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bc-service-card .bc-card-back {
    background: var(--bc-bg-secondary);
    color: #ffffff;
    transform: rotateY(180deg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top: 4px solid var(--bc-accent);
}

.bc-service-card .bc-card-back h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.bc-service-card .bc-card-back p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. WHY US
   ───────────────────────────────────────────────────────────────────────────── */
.bc-why-us-section {
    padding: 250px 0;
    background-color: var(--bc-bg-secondary);
    color: #ffffff;
}

.bc-why-us-section .bc-section-heading h2 {
    color: #ffffff;
}

.bc-why-us-section .bc-section-heading p {
    color: rgba(255, 255, 255, 0.8);
}

.bc-why-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.bc-why-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.bc-check-icon {
    color: var(--bc-accent);
    background: rgba(10, 123, 99, 0.25);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. PORTFOLIO — Sticky Scroll-Driven Horizontal Gallery
   ───────────────────────────────────────────────────────────────────────────── */

/* Outer wrapper sangat tinggi agar scroll vertikal bisa menggerakkan animasi */
.bc-portfolio-h-wrapper {
    height: 350vh;
    position: relative;
    z-index: 1;
    background-color: var(--bc-bg-secondary);
}

/* Fix untuk bug position: sticky yang gagal (ikut terscroll) akibat overflow parent di WordPress/Elementor */
html, body, .wp-site-blocks, .bc-wrap, .elementor-section-wrap {
    overflow: visible !important;
    overflow-x: clip !important;
}
@supports not (overflow-x: clip) {
    html, body, .wp-site-blocks, .bc-wrap, .elementor-section-wrap {
        overflow-x: visible !important;
    }
}

/* Sticky viewport: terpaku di atas dan mengisi 100vh */
.bc-portfolio-sticky-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    background-color: var(--bc-bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    z-index: 10;
}

.bc-portfolio-inner {
    width: 100%;
    padding-bottom: 3rem;
}

.bc-portfolio-header {
    margin-bottom: 3rem;
    padding: 0 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.bc-portfolio-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.bc-portfolio-header p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    margin: 0;
}

.bc-portfolio-h-overflow {
    padding-top: 120px;
    padding-bottom: 3rem;
    width: 100%;
}

/* Track bergerak horizontal via JS translateX */
.bc-portfolio-h-track {
    display: flex;
    align-items: center;
    gap: 100px;
    padding: 0 15vw;
    width: max-content;
    will-change: transform;
}

/* Portfolio Cards */
.bc-portfolio-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    width: 380px;
    height: 520px;
    flex: 0 0 auto;
    cursor: pointer;
    will-change: transform;
    transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.bc-portfolio-card.bc-is-hovered {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    z-index: 20;
}

.bc-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.bc-portfolio-card:hover .bc-card-image {
    transform: scale(1.05);
}

.bc-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(17, 56, 43, 0.95) 70%);
    color: #ffffff;
}

.bc-card-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff !important;
}

.bc-card-stats {
    display: flex;
    gap: 2rem;
}

.bc-c-stat span {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bc-c-stat strong {
    font-family: var(--bc-font-mono);
    font-size: 1.2rem;
    color: var(--bc-positive);
}

/* Scroll hint */
.bc-portfolio-scroll-hint {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    user-select: none;
    padding: 0 2rem;
}

.bc-hint-mobile { display: none; }

/* ─────────────────────────────────────────────────────────────────────────────
   7. CALCULATOR
   ───────────────────────────────────────────────────────────────────────────── */
.bc-calculator-section {
    padding: 8rem 0;
    background-color: var(--bc-bg-primary);
}

.bc-calc-wrapper {
    display: flex;
    gap: 4rem;
    background-color: #ffffff;
    border: 1px solid var(--bc-border);
    border-radius: 16px;
    padding: 4rem;
    align-items: center;
}

.bc-calc-text {
    flex: 1;
}

.bc-calc-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.bc-calc-text p {
    color: var(--bc-text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.bc-calc-widget {
    flex: 1;
    background-color: var(--bc-bg-primary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--bc-border);
}

.bc-input-group {
    margin-bottom: 2rem;
}

.bc-input-group label {
    display: block;
    margin-bottom: 1rem;
    color: var(--bc-text-secondary);
    font-size: 0.9rem;
}

.bc-input-group input[type="range"] {
    width: 100%;
    accent-color: var(--bc-accent);
    margin-bottom: 0.5rem;
}

.bc-range-val {
    display: block;
    text-align: right;
    font-family: var(--bc-font-mono);
    color: var(--bc-accent);
    font-weight: 700;
}

.bc-calc-result {
    margin: 3rem 0 2rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--bc-border);
}

.bc-result-label {
    font-size: 1rem;
    color: var(--bc-text-secondary);
    margin-bottom: 0.5rem;
}

.bc-result-value {
    font-family: var(--bc-font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bc-positive);
    margin-bottom: 1rem;
}

.bc-result-note {
    font-size: 0.8rem;
    color: var(--bc-text-secondary);
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE — TABLET (≤ 1024px)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {

    /* Hero: stack vertically */
    .bc-hero-split {
        flex-direction: column;
    }

    .bc-right-panel {
        border-left: none;
        border-top: 1px solid var(--bc-border);
    }

    /* Calculator: stack vertically */
    .bc-calc-wrapper {
        flex-direction: column;
    }

    /* Services: horizontal slider (no 3D flip) */
    .bc-services-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 1.5rem;
        padding: 0.5rem 0.25rem 1rem;
        scroll-behavior: smooth;
    }

    .bc-services-grid::-webkit-scrollbar { display: none; }

    .bc-service-card {
        perspective: none;
        height: auto;
        flex: 0 0 46%;
        scroll-snap-align: center;
    }

    .bc-service-card .bc-card-inner {
        transform-style: flat;
        transition: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
    }

    .bc-service-card:hover .bc-card-inner {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    .bc-service-card .bc-card-front,
    .bc-service-card .bc-card-back {
        position: relative;
        width: 100%;
        height: auto;
        backface-visibility: visible;
        -webkit-backface-visibility: visible;
        border-radius: 0;
        overflow: visible;
    }

    .bc-service-card .bc-card-front {
        background: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
        border-top: 4px solid var(--bc-accent);
        border-radius: 12px 12px 0 0;
        padding: 2.5rem 2rem 1.5rem;
    }

    .bc-service-card .bc-service-logo {
        width: 90px;
        height: 90px;
        padding: 0;
        transition: none;
    }

    .bc-service-card:hover .bc-service-logo { transform: none; }

    .bc-service-card .bc-card-back {
        background: #ffffff;
        color: var(--bc-text-primary);
        transform: none;
        padding: 0 2rem 2.5rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        border-top: none;
        border-radius: 0 0 12px 12px;
    }

    .bc-service-card .bc-card-back h3 {
        color: var(--bc-text-primary);
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .bc-service-card .bc-card-back p {
        color: var(--bc-text-secondary);
        font-size: 0.9rem;
    }

    /* Dots indicator */
    .bc-services-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.6rem;
        margin-top: 2rem;
    }

    .bc-services-dots .bc-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(10, 123, 99, 0.25);
        border: none;
        cursor: pointer;
        padding: 0;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .bc-services-dots .bc-dot.active {
        width: 28px;
        border-radius: 50px;
        background: var(--bc-accent);
        box-shadow: 0 2px 8px rgba(10, 123, 99, 0.35);
    }

    /* Portfolio: switch to native horizontal swipe */
    .bc-portfolio-h-wrapper { height: auto; }

    .bc-portfolio-sticky-viewport {
        position: relative;
        top: auto;
        height: auto;
        padding: 5rem 0;
    }

    .bc-portfolio-inner { padding-bottom: 0; }
    .bc-portfolio-header { margin-bottom: 2.5rem; }

    .bc-portfolio-h-overflow {
        padding: 1rem 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .bc-portfolio-h-overflow::-webkit-scrollbar { display: none; }

    .bc-portfolio-h-track {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        padding: 0 1.5rem;
        width: max-content;
        will-change: auto;
        transform: none !important;
    }

    .bc-portfolio-card {
        width: 320px;
        height: 440px;
        scroll-snap-align: center;
    }

    .bc-portfolio-card:hover .bc-card-image { transform: none; }

    .bc-portfolio-scroll-hint { margin-top: 2rem; }
    .bc-hint-desktop { display: none; }
    .bc-hint-mobile  { display: inline; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE — MOBILE (≤ 768px)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .bc-hero-content h1,
    .bc-headline .bc-text-js {
        font-size: 2rem;
    }

    .bc-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .bc-timeline-item {
        flex-direction: column;
        gap: 1rem;
    }

    .bc-timeline::before { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE — SMALL MOBILE (≤ 640px)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {

    .bc-section-heading { margin-bottom: 2.5rem; }
    .bc-section-heading h2 { font-size: 1.75rem; }
    .bc-section-heading p  { font-size: 0.95rem; }

    .bc-services-section,
    .bc-narrative-section,
    .bc-why-us-section,
    .bc-calculator-section {
        padding: 4.5rem 0;
    }

    .bc-container { padding: 0 1.25rem; }

    .bc-services-grid { gap: 1.25rem; }
    .bc-service-card  { flex: 0 0 88%; }

    .bc-service-card .bc-card-front { padding: 2rem 1.5rem 1.25rem; }
    .bc-service-card .bc-service-logo { width: 72px; height: 72px; }
    .bc-service-card .bc-card-back { padding: 0 1.5rem 2rem; }
    .bc-service-card .bc-card-back h3 { font-size: 1.1rem; }

    .bc-portfolio-sticky-viewport { padding: 4rem 0; }

    .bc-portfolio-header h2 { font-size: 1.75rem; }
    .bc-portfolio-header p  { font-size: 0.9rem; }

    .bc-portfolio-h-overflow { scroll-snap-type: x mandatory; }
    .bc-portfolio-h-track { gap: 1rem; padding: 0 1rem; }

    .bc-portfolio-card {
        width: 78vw;
        height: 420px;
    }

    .bc-card-overlay { padding: 1.5rem; }
    .bc-card-overlay h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
    .bc-card-stats { gap: 1.5rem; }
    .bc-c-stat strong { font-size: 1.1rem; }
    .bc-portfolio-scroll-hint { font-size: 0.7rem; margin-top: 1.75rem; }

    .bc-calc-wrapper { padding: 2rem; }
    .bc-calc-text h2 { font-size: 1.75rem; }
    .bc-result-value { font-size: 2rem; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE — EXTRA SMALL (≤ 380px)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 380px) {
    .bc-portfolio-card {
        width: 85vw;
        height: 380px;
    }
}

/* ==========================================================================
   Typing Animation (Hero)
   ========================================================================== */
.bc-text-js {
    display: inline-block;
    position: relative;
}

.bc-text-js span.bc-line-1,
.bc-text-js span.bc-line-2 {
    white-space: nowrap;
}

@keyframes bc-blink {
    0%, 50% { opacity: 1; }
    100% { opacity: 0; }
}
