/* ==========================================================================
   Page Specific Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Home Page - Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
    transform: scale(1.05);
    /* Slight zoom for parallax/ken burns effect */
    animation: zoomBg 20s infinite alternate linear;
}

@keyframes zoomBg {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1) 0%, rgba(20, 25, 15, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-title span {
    font-weight: 600;
    color: var(--color-primary-lighter);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Home Page - Diferenciais (Features)
   -------------------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--color-surface);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--color-primary-lighter);
}

.feature-icon {
    font-size: 3rem;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(99, 120, 61, 0.05);
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Home Page - Gallery Preview
   -------------------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    cursor: pointer;
}

.gallery-item:nth-child(1) {
    grid-column: span 8;
    grid-row: span 2;
}

.gallery-item:nth-child(2) {
    grid-column: span 4;
    grid-row: span 1;
}

.gallery-item:nth-child(3) {
    grid-column: span 4;
    grid-row: span 1;
}

.gallery-item:nth-child(4) {
    grid-column: span 4;
    grid-row: span 1;
}

.gallery-item:nth-child(5) {
    grid-column: span 4;
    grid-row: span 1;
}

.gallery-item:nth-child(6) {
    grid-column: span 4;
    grid-row: span 1;
}

@media (max-width: 1024px) {
    .gallery-item:nth-child(1) {
        grid-column: span 12;
        grid-row: span 1;
    }

    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6) {
        grid-column: span 6;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-auto-rows: 250px;
    }

    .gallery-item {
        grid-column: span 12 !important;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: white;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.gallery-overlay p {
    color: var(--color-primary-lighter);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: translateY(20px);
    transition: transform var(--transition-normal) 0.1s;
}

.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Home Page - Process
   -------------------------------------------------------------------------- */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 2rem;
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        gap: 4rem;
    }
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

@media (max-width: 768px) {
    .process-steps::before {
        top: 0;
        left: 40px;
        width: 2px;
        height: 100%;
    }
}

.process-step {
    flex: 1;
    position: relative;
    z-index: 1;
    text-align: center;
}

@media (max-width: 768px) {
    .process-step {
        text-align: left;
        display: flex;
        gap: 2rem;
        align-items: flex-start;
    }
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--color-bg-dark);
    border: 2px solid var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary-light);
    margin: 0 auto 2rem;
    transition: all var(--transition-normal);
}

@media (max-width: 768px) {
    .step-number {
        margin: 0;
        flex-shrink: 0;
    }
}

.process-step:hover .step-number {
    background: var(--color-primary-light);
    color: var(--color-bg-dark);
    transform: scale(1.1);
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--color-text-muted-light);
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    background-color: var(--color-primary-dark);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.cta-shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -100px;
}

.cta-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -50px;
}

.cta-content {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Projetos Page - Filters
   -------------------------------------------------------------------------- */
.filter-btn {
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: 40px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-btn:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.filter-btn.active {
    background-color: var(--color-primary-dark);
    color: white;
    border-color: var(--color-primary-dark);
}