/* =========================================================
   TITLI ENGINEERING - PREMIUM ABOUT US SECTION
   Main colors: deep green, fresh green, white and soft mint
   ========================================================= */

:root {
    --titli-green: #0d452d;
    --titli-green-dark: #083722;
    --titli-green-bright: #2f913f;
    --titli-text: #123a32;
    --titli-muted: #617a76;
    --titli-mint: #edf7f0;
    --titli-line: #d6e8dc;
    --titli-white: #ffffff;
    --titli-gold: #c8a653;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--titli-text);
    background: var(--titli-white);
}

.about-section {
    position: relative;
    overflow: hidden;
    padding: 82px 24px 88px;
    background:
        radial-gradient(ellipse at 0% 100%, rgba(218, 241, 223, 0.78) 0, rgba(218, 241, 223, 0) 34%),
        linear-gradient(135deg, #ffffff 0%, #fbfdfb 56%, #f7fbf8 100%);
}

.about-section::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    left: -250px;
    bottom: -280px;
    border-radius: 50%;
    background: rgba(220, 242, 225, 0.45);
    pointer-events: none;
}

.about-container {
    position: relative;
    z-index: 1;
    width: min(1440px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(270px, 0.88fr) minmax(350px, 1fr) minmax(390px, 1.08fr);
    align-items: center;
    gap: clamp(28px, 3.1vw, 54px);
}

/* Image */
.about-visual {
    position: relative;
    min-width: 0;
    padding: 22px 0 18px 18px;
}

.image-accent {
    position: absolute;
    z-index: 0;
    width: 62%;
    height: 43%;
    top: -14px;
    left: -16px;
    border-radius: 30px 30px 30px 8px;
    background: linear-gradient(145deg, #26764a, var(--titli-green-dark));
    box-shadow: 0 18px 38px rgba(13, 69, 45, 0.13);
}

.about-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 590px;
    object-fit: cover;
    object-position: center;
    border: 5px solid #fff;
    border-radius: 29px;
    box-shadow: 0 22px 55px rgba(18, 58, 50, 0.13);
}

.image-caption {
    position: absolute;
    z-index: 2;
    left: 36px;
    right: 18px;
    bottom: 36px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 17px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    background: rgba(8, 55, 34, 0.88);
    backdrop-filter: blur(12px);
}

.caption-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    color: var(--titli-green-dark);
    background: #d9eddd;
    border-radius: 50%;
}

.image-caption strong,
.image-caption span:not(.caption-icon) {
    display: block;
}

.image-caption strong {
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.4;
}

.image-caption div > span {
    color: #d4e9da;
    font-size: 11px;
}

/* About copy */
.about-copy {
    padding: 8px 0;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 19px;
    color: var(--titli-green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 4px;
}

.eyebrow i {
    display: inline-block;
    width: 42px;
    height: 1px;
    background: var(--titli-green-bright);
}

.about-copy h1 {
    margin: 0 0 22px;
    color: #102f2b;
    font-size: clamp(31px, 2.55vw, 43px);
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -1.7px;
}

.about-copy h1 span {
    color: #247943;
}

.about-copy p {
    margin: 0 0 15px;
    color: #55716d;
    font-size: 14px;
    line-height: 1.78;
    font-weight: 400;
}

.about-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    padding: 16px 24px;
    min-height: 53px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d452d, #07502f);
    box-shadow: 0 9px 22px rgba(13, 69, 45, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.about-button:hover {
    transform: translateY(-3px);
    background: var(--titli-green-bright);
    box-shadow: 0 13px 27px rgba(13, 69, 45, 0.22);
}

.about-button i {
    transition: transform 0.25s ease;
}

.about-button:hover i {
    transform: translateX(4px);
}

/* Right highlights */
.about-highlights {
    min-width: 0;
    padding: 8px 0 8px 34px;
    border-left: 1px solid #b9d4c3;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 21px;
    margin: 0 0 33px;
}

.highlight-icon {
    width: 91px;
    height: 91px;
    flex: 0 0 91px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 27px;
    border: 8px solid #f1f8f3;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, #17633d, #064326 78%);
    box-shadow: 0 8px 22px rgba(13, 69, 45, 0.11);
}

.highlight-text h3 {
    margin: 0 0 8px;
    color: #104d42;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 800;
}

.highlight-text p {
    margin: 0;
    color: var(--titli-muted);
    font-size: 14px;
    line-height: 1.7;
}

.highlights-divider {
    height: 1px;
    margin: 3px 0 28px;
    background: var(--titli-line);
}

/* Experience and services panel */
.stats-panel {
    display: grid;
    grid-template-columns: minmax(120px, 0.78fr) minmax(0, 1.35fr);
    align-items: center;
    gap: 24px;
    padding: 27px 24px;
    border: 1px solid rgba(220, 239, 225, 0.75);
    border-radius: 17px;
    background: linear-gradient(135deg, #edf7f0, #e7f4eb);
}

.stats-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 18px;
    border-right: 1px solid #b6d5c1;
}

.stats-number strong {
    display: block;
    color: #126238;
    font-size: clamp(42px, 3.7vw, 61px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -2px;
}

.stats-number span {
    margin-top: 13px;
    color: #235b4e;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}

.stats-services {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.stats-services div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #205b4c;
    font-size: 12px;
    line-height: 1.45;
}

.stats-services i {
    margin-top: 1px;
    color: #0b5634;
    font-size: 16px;
}

/* Contact */
.contact-row {
    display: flex;
    align-items: center;
    gap: 17px;
    margin: 28px 0 0 7px;
}

.contact-icon {
    width: 65px;
    height: 65px;
    flex: 0 0 65px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 23px;
    border-radius: 50%;
    background: linear-gradient(145deg, #17633d, #064326);
    box-shadow: 0 8px 20px rgba(13, 69, 45, 0.12);
}

.contact-row span,
.contact-row a {
    display: block;
}

.contact-row span {
    margin-bottom: 6px;
    color: #51726a;
    font-size: 12px;
}

.contact-row a {
    color: #104b35;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-row a:hover {
    color: var(--titli-green-bright);
}

/* Tablet */
@media (max-width: 1180px) {
    .about-section {
        padding: 65px 24px;
    }

    .about-container {
        grid-template-columns: minmax(250px, 0.8fr) minmax(300px, 1fr);
        gap: 38px;
    }

    .about-image {
        height: 540px;
    }

    .about-highlights {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px 28px;
        padding: 28px 0 0;
        border-left: 0;
        border-top: 1px solid #b9d4c3;
    }

    .highlight-item {
        margin-bottom: 0;
    }

    .highlights-divider {
        display: none;
    }

    .stats-panel {
        align-self: stretch;
    }

    .contact-row {
        align-self: center;
        margin-top: 0;
    }
}

/* Mobile */
@media (max-width: 680px) {
    .about-section {
        padding: 48px 18px 55px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .about-visual {
        width: min(100%, 430px);
        margin: 0 auto;
        padding: 15px 0 10px 10px;
    }

    .image-accent {
        top: 0;
        left: 0;
        border-radius: 23px 23px 23px 7px;
    }

    .about-image {
        height: 440px;
        border-width: 4px;
        border-radius: 23px;
    }

    .image-caption {
        left: 24px;
        right: 10px;
        bottom: 24px;
        padding: 12px;
    }

    .about-copy h1 {
        font-size: clamp(30px, 8vw, 39px);
        letter-spacing: -1px;
    }

    .about-copy p {
        font-size: 14px;
    }

    .about-highlights {
        grid-column: auto;
        grid-template-columns: 1fr;
        gap: 25px;
        padding-top: 28px;
    }

    .highlight-item {
        gap: 16px;
    }

    .highlight-icon {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
        border-width: 6px;
        font-size: 22px;
    }

    .highlight-text h3 {
        font-size: 17px;
    }

    .highlight-text p {
        font-size: 13px;
    }

    .stats-panel {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 20px;
    }

    .stats-number {
        padding: 0 0 18px;
        border-right: 0;
        border-bottom: 1px solid #b6d5c1;
    }

    .stats-number strong {
        font-size: 52px;
    }

    .stats-services {
        gap: 12px;
    }

    .stats-services div {
        font-size: 13px;
    }

    .contact-row {
        margin: 0;
    }

    .contact-icon {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .contact-row a {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
