/*--------------------------------------------------------------
# Oferta / Expertise Page
--------------------------------------------------------------*/

/* === 1. Technical Grid Infrastructure === */
html {
    font-size: 62.5% !important;
    /* Base 10px for this page only */
}

body {
    font-size: 1.6rem;
    font-family: var(--font-body) !important;
    /* Text base 16px, force Inter font */
}

/* Fix footer text size - restore to normal rem base */
.footer-section {
    font-size: 16px;
    /* Use px to avoid rem scaling issues */
}

.footer-section .cta-huge-text {
    font-size: clamp(56px, 12vw, 176px) !important;
    font-family: var(--font-head) !important;
    /* Override with explicit values matching footer.css */
}

.footer-section .cta-huge-text .outline-text {
    font-family: var(--font-head) !important;
    -webkit-text-stroke: 1px var(--text-main) !important;
    text-stroke: 1px var(--text-main) !important;
}

.footer-section .cta-huge-text .word-2 {
    font-family: var(--font-head) !important;
}

.expert-hero {
    position: relative;
    padding: var(--space-32) 0 var(--space-16);
    overflow: hidden;
}

.blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.tech-label {
    display: inline-block;
    font-family: var(--font-mono) !important;
    font-size: var(--text-xs) !important;
    font-weight: 400 !important;
    color: var(--color-accent-copper);
    border: 1px solid rgba(176, 112, 84, 0.3);
    padding: 4px 12px !important;
    border-radius: 2px;
    margin-bottom: var(--space-8) !important;
    letter-spacing: 0.1em !important;
    background: rgba(176, 112, 84, 0.05);
}

.expert-title {
    display: block !important;
    font-size: clamp(3rem, 10vw, 8rem) !important;
    line-height: 1.0 !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    color: #fff;
    margin-bottom: var(--space-16);
}

/* === 2. HUD Specs Row === */
.spec-row {
    display: flex;
    gap: var(--space-12);
    /* Gradient Border Top */
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0.0) 0%,
            rgba(255, 255, 255, 0.15) 20%,
            rgba(255, 255, 255, 0.15) 80%,
            rgba(255, 255, 255, 0.0) 100%);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: top center;
    padding-top: var(--space-8);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.spec-item .lbl {
    font-family: var(--font-mono) !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    color: var(--color-text-mono);
    letter-spacing: 0.15em !important;
}

.spec-item .val {
    font-family: var(--font-head) !important;
    font-size: var(--text-lg) !important;
    font-weight: 400 !important;
    color: #fff;
}

/* === 3. Methodology Section - Mission Control === */
.method-section {
    position: relative;
    padding: var(--space-24) 0;
    z-index: 10;
    /* Transparent to match Hero */
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: var(--container-max);
    margin: 0 auto var(--space-16);
    padding: 0 var(--space-6);
    position: relative;
}

/* Decorative HUD Line */
.section-header-row::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: var(--space-6);
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent-copper) 0%, transparent 100%);
    opacity: 0.3;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
    color: #fff;
}

.section-sub {
    font-family: var(--font-mono) !important;
    font-size: var(--text-sm) !important;
    font-weight: 400 !important;
    color: var(--color-text-secondary);
    max-width: 400px;
    text-align: right;
}

/* === 4. Methodology Timeline === */
.timeline-wrapper {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.timeline-step {
    display: flex;
    gap: 40px;
    position: relative;
}

/* Left side - marker and line */
.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 60px;
}

.step-number {
    font-family: var(--font-mono) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--color-accent-copper);
    background: rgba(176, 112, 84, 0.1);
    border: 1px solid var(--color-accent-copper);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.step-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--color-accent-copper), rgba(255, 255, 255, 0.1));
    margin-top: 16px;
}

.timeline-step.last .step-line {
    display: none;
}

/* Right side - content */
.step-content {
    padding-bottom: 48px !important;
    flex: 1;
}

.timeline-step.last .step-content {
    padding-bottom: 0;
}

.step-title {
    font-family: var(--font-head) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #fff;
    margin: 0 0 16px 0 !important;
    line-height: 1.2 !important;
}

.step-desc {
    font-family: var(--font-body) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7 !important;
    margin: 0 0 20px 0 !important;
    max-width: 600px;
}

.step-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.step-tags .tag {
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px !important;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em !important;
}

.step-tags .tag:hover {
    border-color: var(--color-accent-copper);
    color: var(--color-accent-sand);
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-step {
        gap: 24px;
    }

    .step-marker {
        width: 40px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .step-title {
        font-size: 18px;
    }

    .step-content {
        padding-bottom: 32px;
    }
}

/* === 5. Capabilities - DEEP DIVE ===*/
.service-deep-dive {
    padding: var(--space-16) 0;
    /* Transparent to match Hero */
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
    align-items: center;
    position: relative;
    border-bottom: none;
}

.service-row::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--space-6);
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent-copper) 50%, transparent 100%);
    opacity: 0.6;
}

.service-row:last-child::after {
    display: none;
}

.service-row.reverse {
    direction: rtl;
    /* Simple way to swap cols, text alignment needs fix below */
}

.service-row.reverse .srv-content {
    direction: ltr;
    /* Reset text direction */
    text-align: right;
}

.service-row.reverse .srv-specs {
    direction: ltr;
    /* Reset specs */
    justify-content: flex-end;
    /* Align specs right */
    text-align: left;
}

/* Visual Side (Typography & Abstract) */
.srv-visual {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.srv-huge-title {
    font-size: clamp(3rem, 6vw, 8rem);
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.02);
    text-align: center;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* === Concentric Shape Compositions === */
.shape-composition {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    z-index: 2;
}

.shape-composition .layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--color-accent-copper);
    opacity: 0.3;
    transition: all 0.5s ease;
}

.service-row:hover .shape-composition .layer {
    opacity: 0.7;
}

/* Composition 1: Nested Squares (Grid) */
.comp-grid .layer-1 {
    width: 280px;
    height: 280px;
}

.comp-grid .layer-2 {
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%) rotate(15deg);
}

.comp-grid .layer-3 {
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%) rotate(30deg);
}

.service-row:hover .comp-grid .layer-2 {
    transform: translate(-50%, -50%) rotate(25deg);
}

.service-row:hover .comp-grid .layer-3 {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Composition 2: Concentric Circles */
.comp-circles .layer-1 {
    width: 280px;
    height: 280px;
    border-radius: 50%;
}

.comp-circles .layer-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

.comp-circles .layer-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.comp-circles .layer-center {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent-copper);
    opacity: 0.2;
}

.service-row:hover .comp-circles .layer-center {
    opacity: 0.5;
    box-shadow: 0 0 30px rgba(176, 112, 84, 0.3);
}

/* Composition 3: Hexagon-like (rotated squares) */
.comp-hexagon .layer-1 {
    width: 250px;
    height: 250px;
    transform: translate(-50%, -50%) rotate(0deg);
}

.comp-hexagon .layer-2 {
    width: 250px;
    height: 250px;
    transform: translate(-50%, -50%) rotate(30deg);
}

.comp-hexagon .layer-3 {
    width: 250px;
    height: 250px;
    transform: translate(-50%, -50%) rotate(60deg);
}

.service-row:hover .comp-hexagon .layer-1 {
    transform: translate(-50%, -50%) rotate(5deg);
}

.service-row:hover .comp-hexagon .layer-2 {
    transform: translate(-50%, -50%) rotate(35deg);
}

.service-row:hover .comp-hexagon .layer-3 {
    transform: translate(-50%, -50%) rotate(65deg);
}

/* Composition 4: Nested Diamonds */
.comp-diamond .layer-1 {
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.comp-diamond .layer-2 {
    width: 140px;
    height: 140px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.comp-diamond .layer-inner {
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%) rotate(45deg);
    background: rgba(176, 112, 84, 0.1);
    border: 1px solid var(--color-accent-copper);
}

.service-row:hover .comp-diamond .layer-1 {
    transform: translate(-50%, -50%) rotate(50deg) scale(1.05);
}

.service-row:hover .comp-diamond .layer-2 {
    transform: translate(-50%, -50%) rotate(40deg) scale(1.05);
}

.service-row:hover .comp-diamond .layer-inner {
    background: rgba(176, 112, 84, 0.2);
}


/* Content Side */
.srv-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.srv-tag {
    font-family: var(--font-mono) !important;
    font-size: var(--text-xs);
    font-weight: 400 !important;
    color: var(--color-accent-copper);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.srv-headline {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-6);
    color: #fff;
    line-height: 1.1;
}

.srv-desc {
    font-family: var(--font-body) !important;
    font-size: var(--text-base) !important;
    font-weight: 400 !important;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8) !important;
    max-width: 500px;
    line-height: 1.5 !important;
}

/* Specs */
.srv-specs {
    display: flex;
    gap: var(--space-12);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-6);
}

.spec-head {
    display: block;
    font-family: var(--font-mono) !important;
    font-size: 10px;
    font-weight: 400 !important;
    color: var(--color-text-mono);
    margin-bottom: var(--space-2);
}

.spec-col ul {
    list-style: none;
    padding: 0;
}

.spec-col ul li {
    font-family: var(--font-mono) !important;
    font-size: 11px;
    font-weight: 400 !important;
    color: #fff;
    margin-bottom: 4px;
}

.spec-col ul li::before {
    content: '+ ';
    color: var(--color-accent-copper);
}


/* === 6. TECH STACK SECTION === */
.tech-stack-section {
    padding: var(--space-24) 0;
    max-width: 100%;
    /* Full width background */
    margin: 0;
    /* Transparent to match Hero */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-stack-section .stack-header,
.tech-stack-section .stack-grid {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--space-6);
}

.stack-header {
    margin-bottom: var(--space-12);
    text-align: left;
}

.stack-title {
    font-family: var(--font-head) !important;
    font-size: var(--text-3xl) !important;
    font-weight: 700 !important;
    color: #fff;
}

.stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.stack-item {
    font-family: var(--font-mono) !important;
    font-size: var(--text-sm) !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    transition: all 0.3s;
    user-select: none;
    cursor: default;
}

.stack-item:hover {
    border-color: var(--color-accent-copper);
    color: var(--color-accent-sand);
    background: rgba(176, 112, 84, 0.1);
}

/* === 7. FAQ === */
.faq-section {
    max-width: 800px;
    /* Narrower for reading */
    margin: 0 auto;
    padding: 0 var(--space-6) var(--space-32);
}

.faq-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.faq-grid {
    display: grid;
    gap: var(--space-8);
}

.faq-item {
    /* Gradient Border Bottom */
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0.0) 0%,
            rgba(255, 255, 255, 0.15) 20%,
            rgba(255, 255, 255, 0.15) 80%,
            rgba(255, 255, 255, 0.0) 100%);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: bottom center;
    padding-bottom: var(--space-8);
}

.faq-q {
    font-family: var(--font-head) !important;
    font-size: var(--text-lg) !important;
    font-weight: 700 !important;
    color: #fff;
    margin-bottom: var(--space-4) !important;
}

.faq-a {
    font-family: var(--font-body) !important;
    font-size: var(--text-base) !important;
    font-weight: 400 !important;
    color: var(--color-text-secondary);
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Responsive */
@media(max-width: 1024px) {
    .body-inner {
        grid-template-columns: 1fr;
        padding-left: var(--space-6);
    }

    .service-row,
    .service-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        /* Reset desktop reverse hack */
        gap: var(--space-8);
    }

    .service-row.reverse .srv-content,
    .service-row.reverse .srv-specs {
        text-align: left;
        justify-content: flex-start;
    }

    .srv-visual {
        height: 300px;
    }

    .srv-huge-title {
        font-size: 4rem;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .section-sub {
        text-align: left;
    }
}

/* Mobile Fixes */
@media (max-width: 600px) {
    .spec-row {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .spec-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
    }

    .spec-item:last-child {
        border-bottom: none;
    }
}


.text-accent-italic {
    color: var(--color-accent-copper) !important;
    font-style: italic !important;
}