﻿/* ── Global: prevent scrollbar from shifting the layout ── */
html {
    scrollbar-gutter: stable;
}

.home-page {
    background: #f5f7fb;
    padding: 0 1.2rem 3rem;
}

.home-inner {
    max-width: 1320px;
    margin: 0 auto;
}

/* Shared */

.home-section {
    margin-top: 3.2rem;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 1.6rem;
}

.section-header-left {
    text-align: left;
    max-width: 760px;
    margin: 0 0 1.6rem;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0.45rem;
}

.section-eyebrow-light {
    color: #a7f3d0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.45rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

.section-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.3rem;
}

/* Buttons */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.72rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
}

    .btn-primary:hover {
        background: #059669;
        transform: translateY(-1px);
    }

.btn-secondary {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.45);
}

    .btn-secondary:hover {
        background: #f8fafc;
        transform: translateY(-1px);
    }

.btn-primary-light {
    background: #f9fafb;
    color: #0f766e;
    box-shadow: none;
}

    .btn-primary-light:hover {
        background: #ecfdf5;
    }

.btn-secondary-dark {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(229, 231, 235, 0.4);
}

    .btn-secondary-dark:hover {
        background: rgba(255, 255, 255, 0.06);
    }

/* HERO */

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
    align-items: center;
    min-height: calc(100svh - 56px);
    padding-top: 2.5rem;
}

.hero-content {
    max-width: 620px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.08;
    font-weight: 800;
    color: #111827;
    margin: 0 0 1rem;
    max-width: 620px;
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.65;
    color: #4b5563;
    max-width: 560px;
    margin-bottom: 1.35rem;
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hero-btn {
    min-width: 190px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: #6b7280;
    font-size: 0.84rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-image-card {
    width: 100%;
    max-width: 560px;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
    background: #ffffff;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 540px;
    object-fit: cover;
    display: block;
}

/* WHO */

.who-portfolio-section {
    min-height: 100svh;
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.info-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.1rem 1.05rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

    .info-card h3 {
        font-size: 1rem;
        margin: 0 0 0.45rem;
        color: #111827;
    }

    .info-card p {
        font-size: 0.88rem;
        color: #6b7280;
        margin: 0;
        line-height: 1.55;
    }

/* TRANSFORMATION */

.transformation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.transformation-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.transformation-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e5e7eb;
}

.transformation-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.transformation-label {
    position: absolute;
    left: 14px;
    top: 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    color: #f9fafb;
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    font-weight: 600;
}

.transformation-label-green {
    background: rgba(16, 185, 129, 0.92);
}

.transformation-body {
    padding: 1rem 1rem 1.1rem;
}

    .transformation-body h3 {
        margin: 0 0 0.35rem;
        font-size: 1rem;
        color: #111827;
    }

    .transformation-body p {
        margin: 0;
        font-size: 0.88rem;
        color: #6b7280;
    }

/* SERVICES PREVIEW */

.featured-projects-section {
    margin-top: 1.6rem;
}

.featured-projects-section .project-image-wrapper {
    aspect-ratio: 16 / 9;
}

.services-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.service-preview-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.1rem 1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

    .service-preview-card h3 {
        margin: 0 0 0.35rem;
        font-size: 1rem;
        color: #111827;
    }

    .service-preview-card p {
        margin: 0;
        font-size: 0.88rem;
        color: #6b7280;
        line-height: 1.55;
    }

/* FEATURED PROJECTS */

.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.project-preview-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .project-preview-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    }

.project-preview-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #e5e7eb;
}

.project-preview-body {
    padding: 1rem;
}

.project-preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.55rem;
}

    .project-preview-tags span {
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.08);
        color: #374151;
        font-size: 0.72rem;
        padding: 0.2rem 0.55rem;
    }

.project-preview-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #111827;
}

.project-preview-body p {
    margin: 0;
    font-size: 0.88rem;
    color: #6b7280;
}

/* PROCESS */

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.process-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.2rem 1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.process-number {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.process-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #111827;
}

.process-card p {
    margin: 0;
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.55;
}

/* TESTIMONIALS CAROUSEL */

.testimonials-carousel {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.4rem 1.25rem 1.15rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.tc-quote-icon {
    color: #10b981;
    opacity: 0.7;
    line-height: 1;
}

.testimonial-text {
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.7;
    margin: 0;
    flex: 1;
    font-style: italic;
}

.tc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.7rem;
    margin-top: auto;
}

.tc-stars {
    color: #f59e0b;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.testimonial-author {
    margin: 0;
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 600;
}

/* Arrows */

.tc-arrow {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    align-self: center;
    transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.tc-arrow svg {
    width: 20px;
    height: 20px;
}

.tc-arrow:hover:not(:disabled) {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.tc-arrow:disabled,
.tc-arrow.tc-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Carousel slide animations */

@keyframes tc-in-from-right {
    from { opacity: 0; transform: translateX(48px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes tc-in-from-left {
    from { opacity: 0; transform: translateX(-48px); }
    to   { opacity: 1; transform: translateX(0); }
}

.testimonials-grid.tc-slide-left  { animation: tc-in-from-right 1s cubic-bezier(.25,.8,.25,1) both; }
.testimonials-grid.tc-slide-right { animation: tc-in-from-left  1s cubic-bezier(.25,.8,.25,1) both; }

/* Dots */

.tc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.4rem;
}

.tc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: background 0.18s, transform 0.18s;
}

.tc-dot.active {
    background: #10b981;
    transform: scale(1.3);
}

/* FINAL CTA */

.home-final-cta {
    margin-top: 3.2rem;
}

.home-final-cta-inner {
    background: linear-gradient(135deg, #0f172a, #111827);
    color: #f9fafb;
    border-radius: 26px;
    padding: 2.2rem 1.4rem;
    text-align: center;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
}

    .home-final-cta-inner h2 {
        font-size: 2rem;
        margin: 0 0 0.55rem;
    }

    .home-final-cta-inner p {
        max-width: 620px;
        margin: 0 auto 1.2rem;
        color: #d1d5db;
        font-size: 0.94rem;
    }

.home-final-actions {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .hero-section {
        grid-template-columns: minmax(0, 1fr);
        min-height: unset;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image-card {
        max-width: 100%;
    }

    .hero-image {
        min-height: 420px;
    }

    .who-grid,
    .services-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-projects-grid,
    .process-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tc-arrow { display: none; }
}

@media (max-width: 700px) {
    .home-page {
        padding-top: 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.45rem;
    }

    .who-grid,
    .transformation-grid,
    .services-preview-grid,
    .featured-projects-grid,
    .process-grid,
    .testimonials-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tc-arrow { display: none; }

    .hero-actions,
    .home-final-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn,
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}
