/* 
   API SOBA - SCIENTIFIC & THERAPEUTIC STYLES
   Pčelinji Darovi Živković
*/

:root {
    --api-blue: #0ea5e9;
    --api-teal: #14b8a6;
    --api-clean-bg: #f8fafc;
    --dark-wood: #1a0f0a;
    --cream: #fdfcf8;
    --color-amber: #d97706;
    --text-muted: #5b5753;
    --font-editorial: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-premium: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

/* 1. HERO SECTION - SCIENTIFIC EDITORIAL */
.api-hero-premium {
    position: relative;
    padding: 180px 0 120px;
    background: linear-gradient(rgba(26, 15, 10, 0.85), rgba(26, 15, 10, 0.7)), 
                url('images/ApiSoba2.jpeg') center/cover no-repeat;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.api-hero-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
    z-index: 1;
}

/* Animated dust/aerosol particles */
.api-hero-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 60px 60px;
    z-index: 1;
}

.hero-api-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-api-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.3);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-amber);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-api-title {
    font-family: var(--font-editorial);
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-api-desc {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 40px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.api-visual-frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.api-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.api-visual-frame:hover .api-visual-img {
    transform: scale(1.05);
}

.floating-measurement-card {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.measurement-icon {
    width: 40px;
    height: 40px;
    background: var(--color-amber);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* 2. MECHANISM SECTION - CLINICAL LOOK */
.mechanism-section {
    padding: 120px 0;
    background: white;
    position: relative;
}

.mechanism-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.mechanism-content h2 {
    font-family: var(--font-editorial);
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: var(--dark-wood);
}

.mechanism-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.tech-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.spec-item {
    background: var(--api-clean-bg);
    padding: 20px;
    border-radius: 16px;
    border-left: 4px solid var(--color-amber);
}

.spec-item h4 {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.spec-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 3. THERAPEUTIC BENEFITS - GLASS CARDS */
.therapeutic-benefits {
    padding: 100px 0;
    background: var(--cream);
}

.benefits-api-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.api-benefit-card {
    background: white;
    border-radius: 32px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s ease;
}

.api-benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(217, 119, 6, 0.08);
}

.api-benefit-card h3 {
    font-family: var(--font-editorial);
    font-size: 2rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--dark-wood);
}

.api-benefit-card h3 i {
    color: var(--color-amber);
}

.api-benefit-list {
    list-style: none;
    padding: 0;
}

.api-benefit-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.api-benefit-list li i {
    color: #10b981;
    margin-top: 4px;
    flex-shrink: 0;
}

/* 4. SCHEDULING CTA */
.api-booking-cta {
    background: var(--dark-wood);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.api-booking-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/honeycomb-pattern.png');
    opacity: 0.05;
}

.booking-box {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.booking-box h2 {
    font-family: var(--font-editorial);
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.booking-box p {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 50px;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 992px) {
    .hero-api-grid, .mechanism-grid, .benefits-api-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-api-title {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .api-benefit-card {
        padding: 30px 20px;
    }
    
    .api-benefit-card h3 {
        font-size: 1.6rem;
    }
    
    .booking-box h2 {
        font-size: 2.2rem;
    }
}

/* --- HERO CONTENT STYLES --- */
.api-hero-content {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.api-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.35);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-amber);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    backdrop-filter: blur(8px);
}

.api-badge i {
    width: 16px;
    height: 16px;
}

.api-hero-premium h1 {
    font-family: var(--font-editorial);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 24px;
    text-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.api-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto;
}

/* --- PRIKAZ PROTOKOLA I KLINIČKIH KARTICA --- */
.safety-protocol-bar {
    display: flex;
    gap: 20px;
    background: rgba(217, 119, 6, 0.12);
    border-left: 4px solid var(--color-amber);
    padding: 24px;
    border-radius: 0 16px 16px 0;
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 2;
}

.safety-icon i {
    width: 32px;
    height: 32px;
    color: var(--color-amber);
    flex-shrink: 0;
}

.safety-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #f1f5f9;
}

.safety-text strong {
    color: var(--color-amber);
}

.benefit-clinical-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-amber) !important;
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.08) !important;
}

/* --- SHARED: SECTION LABEL & HEADER --- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.2);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-amber);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.section-label i {
    width: 15px;
    height: 15px;
}

.section-header-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header-centered h2 {
    font-family: var(--font-editorial);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--dark-wood);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-header-centered p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- 3. SCIENTIFIC FOUNDATION --- */
.api-science-section {
    padding: 120px 0;
    background: white;
    position: relative;
}

.science-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.science-content h2 {
    font-family: var(--font-editorial);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--dark-wood);
    margin-bottom: 24px;
    line-height: 1.2;
}

.science-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.science-content p strong {
    color: var(--dark-wood);
}

.science-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--api-clean-bg);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-amber), #f59e0b);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-editorial);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--color-amber);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* --- 4. TREATMENT PROCESS TIMELINE --- */
.api-process-section {
    padding: 120px 0;
    background: var(--cream);
    position: relative;
}

.process-timeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px 30px 36px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.process-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(217, 119, 6, 0.3);
}

.step-number-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-amber), #f59e0b);
    color: white;
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(217, 119, 6, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-amber);
}

.step-icon i {
    width: 28px;
    height: 28px;
}

.process-step h3 {
    font-family: var(--font-editorial);
    font-size: 1.3rem;
    color: var(--dark-wood);
    margin-bottom: 14px;
    font-weight: 700;
}

.process-step p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.step-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-amber);
    background: rgba(217, 119, 6, 0.06);
    padding: 6px 14px;
    border-radius: 100px;
}

.step-duration i {
    width: 14px;
    height: 14px;
}

.process-connector {
    display: flex;
    align-items: center;
    padding: 0 4px;
    align-self: center;
    min-width: 40px;
}

.process-connector span {
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0, var(--color-amber), #e2e8f0);
    position: relative;
}

.process-connector span::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-amber);
    border-radius: 50%;
}

/* --- 5. INDICATIONS & CONTRAINDICATIONS --- */
.api-indications-section {
    padding: 120px 0;
    background: white;
}

.indications-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.indication-card {
    border-radius: 24px;
    padding: 40px 36px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
}

.indication-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.indication-positive {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, white 100%);
    border-top: 3px solid #10b981;
}

.indication-caution {
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.04) 0%, white 100%);
    border-top: 3px solid var(--color-amber);
}

.indication-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.indication-positive .indication-header i {
    color: #10b981;
    width: 26px;
    height: 26px;
}

.indication-caution .indication-header i {
    color: var(--color-amber);
    width: 26px;
    height: 26px;
}

.indication-header h3 {
    font-family: var(--font-editorial);
    font-size: 1.35rem;
    color: var(--dark-wood);
    margin: 0;
}

.indication-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.indication-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.indication-list li:last-child {
    border-bottom: none;
}

.indication-positive .indication-list li i {
    color: #10b981;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.indication-caution .indication-list li i {
    color: #ef4444;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.caution-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding: 16px;
    background: rgba(217, 119, 6, 0.06);
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.caution-note i {
    color: var(--color-amber);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* --- 6. FAQ SECTION --- */
.api-faq-section {
    padding: 120px 0;
    background: var(--api-clean-bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(217, 119, 6, 0.3);
}

.faq-item[open] {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border-color: rgba(217, 119, 6, 0.3);
}

.faq-item summary {
    padding: 22px 28px;
    font-family: var(--font-editorial);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-wood);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-amber);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-item summary:hover {
    color: var(--color-amber);
}

.faq-answer {
    padding: 0 28px 24px;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

.faq-answer p strong {
    color: var(--dark-wood);
}

/* --- MOBILE RESPONSIVENESS FOR NEW SECTIONS --- */
@media (max-width: 992px) {
    .science-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .process-timeline {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .process-connector {
        min-width: unset;
        min-height: 30px;
        justify-content: center;
        padding: 0;
    }

    .process-connector span {
        width: 2px;
        height: 100%;
        min-height: 30px;
        background: linear-gradient(180deg, #e2e8f0, var(--color-amber), #e2e8f0);
    }

    .process-connector span::after {
        right: 50%;
        top: unset;
        bottom: -4px;
        transform: translateX(50%);
    }

    .indications-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .safety-protocol-bar {
        flex-direction: column;
        text-align: center;
        border-left: none;
        border-top: 4px solid var(--color-amber);
        border-radius: 16px;
    }

    .api-hero-premium h1 {
        font-size: 2.2rem !important;
    }

    .science-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .process-step {
        padding: 32px 22px 28px;
    }

    .indication-card {
        padding: 28px 22px;
    }

    .faq-item summary {
        padding: 18px 20px;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 20px 20px;
    }

    .api-science-section,
    .api-process-section,
    .api-indications-section,
    .api-faq-section {
        padding: 80px 0;
    }
}
