/* Styles used on the TIN GEO services pages. */

html {
    scroll-padding-top: 110px;
}

.services-hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.services-hero h1 {
    font-size: clamp(2rem, 3vw, 2.85rem);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.services-hero p {
    margin-bottom: 1.75rem;
}

.services-hero .btn {
    font-size: 1rem;
}

.services-hero .hero-actions {
    justify-content: flex-start;
}

.services-hero-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.directions-overview {
    background: var(--white);
    padding-bottom: 3rem;
}

.directions-overview h2,
.methods-section h2,
.projects-section h2 {
    margin-bottom: 1.75rem;
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.direction-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.75rem;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--brand);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.direction-card:hover {
    border-color: var(--brand);
    box-shadow: 0 8px 28px rgba(14, 165, 233, 0.12);
}

.direction-card h3 {
    font-size: 1.25rem;
    line-height: 1.35;
    color: var(--navy);
}

.direction-card p {
    color: var(--text-light);
}

.direction-card span {
    margin-top: auto;
    padding-top: 0.5rem;
    color: var(--brand-deep);
    font-weight: 600;
}

.work-area {
    background: var(--white);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.work-area--tinted {
    background: var(--bg);
}

.work-area-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: start;
}

.work-area h2 {
    font-size: 1.9rem;
    line-height: 1.25;
    color: var(--navy);
    margin-bottom: 1rem;
}

.work-area p {
    margin-bottom: 1rem;
}

.method-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.method-links a {
    padding: 0.4rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    background: var(--white);
    color: var(--brand-deep);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.method-links a:hover {
    border-color: var(--brand);
    background: #f0f9ff;
}

.deliverables {
    padding: 1.5rem;
    border: 1px solid #dbeafe;
    border-left: 4px solid var(--brand);
    border-radius: 12px;
    background: #f0f9ff;
}

.deliverables h3 {
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.deliverables a,
.project-link {
    color: var(--brand-deep);
    font-weight: 600;
    text-decoration: none;
}

.deliverables a:hover,
.project-link:hover {
    text-decoration: underline;
}

.methods-section .service-card {
    transition: none;
}

.methods-section .service-card:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.methods-section .service-body p {
    margin-bottom: 0;
}

.methods-section .service-image {
    height: 160px;
}

.projects-section {
    background: var(--white);
}

.projects-section .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.projects-section .case-card {
    display: block;
}

.projects-section .case-content p {
    margin-bottom: 1rem;
}

:is(.direction-card, .method-links a, .deliverables a, .btn, nav a):focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

@media (max-width: 968px) {
    .services-hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-hero-image {
        max-height: 260px;
        aspect-ratio: auto;
    }

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

    .work-area-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .projects-section .cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .topbar-inner {
        gap: 1rem;
    }

    .topbar-inner > div:first-child {
        display: flex;
        flex-wrap: wrap;
        gap: 0.1rem 0.75rem;
    }

    .topbar-inner > div:first-child a {
        white-space: nowrap;
    }

    .topbar-inner > div:first-child span {
        display: none;
    }

    .lang-switch {
        flex-shrink: 0;
    }

    .services-hero {
        padding: 2.5rem 0;
    }

    .services-hero-image {
        display: none;
    }

    .services-hero .hero-actions {
        justify-content: flex-start;
    }

    .directions-overview,
    .work-area,
    .methods-section,
    .projects-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .direction-card {
        padding: 1.5rem;
    }

    .work-area h2 {
        font-size: 1.65rem;
    }
}
