/* =========================================================
   SERVICES SECTION
========================================================= */

:root {

    --services-black: #101010;
    --services-dark: #171210;
    --services-brown: #3A302E;
    --services-brown-light: #4A3B33;

    --services-gold: #F6C777;
    --services-gold-light: #FFD58D;

    --services-white: #F8F6F2;
    --services-muted: #CFC5BC;

    --services-border: rgba(246, 199, 119, 0.38);

}


/* =========================================================
   MAIN SECTION
========================================================= */

.services-section {

    position: relative;

    width: 100%;

    padding: 125px 0 95px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(90, 73, 63, 0.28),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #171210 0%,
            #101010 55%,
            #211813 100%
        );

    color: var(--services-white);

}


/* =========================================================
   BACKGROUND WATERMARK
========================================================= */

.services-watermark {

    position: absolute;

    top: 10px;
    left: 50%;

    transform: translateX(-50%);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(130px, 18vw, 320px);

    font-weight: 400;

    letter-spacing: -12px;

    line-height: 1;

    color: rgba(246, 199, 119, 0.035);

    pointer-events: none;

    user-select: none;

    white-space: nowrap;

}


/* =========================================================
   BACKGROUND GLOW
========================================================= */

.services-background-glow {

    position: absolute;

    width: 600px;
    height: 600px;

    right: -280px;
    top: 180px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(246, 199, 119, 0.09),
            transparent 68%
        );

    pointer-events: none;

}


/* =========================================================
   CONTAINER
========================================================= */

.services-container {

    position: relative;

    z-index: 2;

    width: min(1380px, calc(100% - 100px));

    margin: 0 auto;

}


/* =========================================================
   HEADING
========================================================= */

.services-heading {

    text-align: center;

    max-width: 1000px;

    margin: 0 auto 58px;

}


/* =========================================================
   EYEBROW
========================================================= */

.services-eyebrow {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 24px;

    margin-bottom: 24px;

    color: var(--services-gold);

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 5px;

    text-transform: uppercase;

}


.services-line {

    width: 110px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--services-gold)
        );

}


.services-line:last-child {

    background:
        linear-gradient(
            90deg,
            var(--services-gold),
            transparent
        );

}


/* =========================================================
   TITLE
========================================================= */

.services-title {

    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(52px, 5vw, 82px);

    font-weight: 400;

    line-height: 1.02;

    letter-spacing: -3px;

    color: var(--services-white);

}


.services-title span {

    display: block;

    color: var(--services-gold);

}


/* =========================================================
   DESCRIPTION
========================================================= */

.services-description {

    max-width: 760px;

    margin: 28px auto 0;

    color: var(--services-muted);

    font-size: 17px;

    line-height: 1.75;

}


/* =========================================================
   SERVICES GRID
========================================================= */

.services-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;

}


/* =========================================================
   SERVICE CARD
========================================================= */

.service-card {

    position: relative;

    overflow: hidden;

    min-width: 0;

    background:
        linear-gradient(
            180deg,
            #211A16,
            #171210
        );

    border: 1px solid var(--services-border);

    border-radius: 7px;

    transition:
        transform 0.5s cubic-bezier(.22,1,.36,1),
        border-color 0.4s ease,
        box-shadow 0.4s ease;

}


.service-card:hover {

    transform: translateY(-9px);

    border-color:
        rgba(246, 199, 119, 0.75);

    box-shadow:
        0 25px 60px rgba(0,0,0,.42);

}


/* =========================================================
   IMAGE
========================================================= */

.service-image-wrapper {

    position: relative;

    width: 100%;

    height: 255px;

    overflow: hidden;

}


.service-image-wrapper::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.02) 35%,
            rgba(0,0,0,0.72) 100%
        );

}


.service-image {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.9s cubic-bezier(.22,1,.36,1);

}


.service-card:hover .service-image {

    transform: scale(1.07);

}


/* =========================================================
   NUMBER
========================================================= */

.service-number {

    position: absolute;

    z-index: 3;

    top: 20px;

    right: 18px;

    display: flex;

    align-items: center;

    gap: 12px;

    color: var(--services-gold);

    font-size: 13px;

    letter-spacing: 2px;

}


.service-number::before {

    content: "";

    width: 55px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--services-gold)
        );

}


/* =========================================================
   CARD CONTENT
========================================================= */

.service-card-content {

    position: relative;

    padding: 0 27px 29px;

}


/* =========================================================
   ICON
========================================================= */

.service-icon {

    position: relative;

    margin-top: -36px;

    margin-bottom: 21px;

    width: 70px;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    border: 1px solid var(--services-gold);

    background: #171210;

    color: var(--services-gold);

    font-size: 24px;

    z-index: 5;

    transition:
        background 0.35s ease,
        color 0.35s ease,
        transform 0.35s ease;

}


.service-card:hover .service-icon {

    background: var(--services-gold);

    color: #171210;

    transform: rotate(-5deg);

}


/* =========================================================
   CARD TITLE
========================================================= */

.service-card h3 {

    margin: 0;

    color: var(--services-white);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;

    font-weight: 400;

    line-height: 1.2;

}


/* =========================================================
   CARD DESCRIPTION
========================================================= */

.service-card p {

    min-height: 76px;

    margin: 13px 0 24px;

    color: var(--services-muted);

    font-size: 15px;

    line-height: 1.65;

}


/* =========================================================
   SERVICE LINK
========================================================= */

.service-link {

    display: inline-flex;

    align-items: center;

    gap: 18px;

    color: var(--services-gold);

    text-decoration: none;

    font-size: 15px;

    font-weight: 600;

    transition:
        color 0.3s ease,
        gap 0.3s ease;

}


.service-link i {

    font-size: 14px;

    transition:
        transform 0.3s ease;

}


.service-link:hover {

    color: var(--services-gold-light);

    gap: 24px;

}


.service-link:hover i {

    transform: translateX(5px);

}


/* =========================================================
   MAIN BUTTON
========================================================= */

.services-button-wrapper {

    display: flex;

    justify-content: center;

    margin-top: 45px;

}


.services-main-button {

    min-width: 230px;

    height: 62px;

    padding: 0 30px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 22px;

    border-radius: 4px;

    background: var(--services-gold);

    color: #171210;

    text-decoration: none;

    font-size: 15px;

    font-weight: 700;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;

}


.services-main-button i {

    transition:
        transform 0.3s ease;

}


.services-main-button:hover {

    background: var(--services-gold-light);

    transform: translateY(-3px);

    box-shadow:
        0 15px 35px rgba(246,199,119,.16);

}


.services-main-button:hover i {

    transform: translateX(6px);

}


/* =========================================================
   BOTTOM STATEMENT
========================================================= */

.services-bottom {

    display: flex;

    align-items: center;

    gap: 30px;

    margin-top: 70px;

}


.services-bottom-line {

    flex: 1;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(246,199,119,.45)
        );

}


.services-bottom-line:last-child {

    background:
        linear-gradient(
            90deg,
            rgba(246,199,119,.45),
            transparent
        );

}


.services-bottom p {

    margin: 0;

    color: rgba(248,246,242,.6);

    font-size: 11px;

    letter-spacing: 5px;

    white-space: nowrap;

}


.services-bottom p span {

    color: var(--services-gold);

    margin: 0 10px;

}


/* =========================================================
   REVEAL ANIMATIONS
========================================================= */

/* Base reveal */

.services-section .reveal,
.services-section .reveal-left,
.services-section .reveal-right,
.services-section .reveal-scale {

    opacity: 0;

    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(.22,1,.36,1);

}


/* Normal upward reveal */

.services-section .reveal {

    transform: translateY(45px);

}


/* Left reveal */

.services-section .reveal-left {

    transform: translateX(-60px);

}


/* Right reveal */

.services-section .reveal-right {

    transform: translateX(60px);

}


/* Scale reveal */

.services-section .reveal-scale {

    transform: scale(0.94);

}


/* Active reveal */

.services-section .reveal.active,
.services-section .reveal-left.active,
.services-section .reveal-right.active,
.services-section .reveal-scale.active {

    opacity: 1;

    transform:
        translate3d(0, 0, 0)
        scale(1);

}


/* =========================================================
   STAGGER REVEAL
========================================================= */

.services-section .reveal-stagger > * {

    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity 0.75s ease,
        transform 0.75s cubic-bezier(.22,1,.36,1);

}


.services-section .reveal-stagger.active > * {

    opacity: 1;

    transform: translateY(0);

}


/* Card 01 */

.services-section .reveal-stagger.active > *:nth-child(1) {

    transition-delay: 0.08s;

}


/* Card 02 */

.services-section .reveal-stagger.active > *:nth-child(2) {

    transition-delay: 0.18s;

}


/* Card 03 */

.services-section .reveal-stagger.active > *:nth-child(3) {

    transition-delay: 0.28s;

}


/* Card 04 */

.services-section .reveal-stagger.active > *:nth-child(4) {

    transition-delay: 0.38s;

}


/* =========================================================
   1600px+
========================================================= */

@media (min-width: 1600px) {

    .services-section {

        padding-top: 145px;

        padding-bottom: 110px;

    }

    .services-container {

        width: min(1450px, calc(100% - 120px));

    }

    .service-image-wrapper {

        height: 280px;

    }

    .service-card h3 {

        font-size: 27px;

    }

}


/* =========================================================
   1401px - 1599px
========================================================= */

@media (max-width: 1599px) {

    .services-title {

        font-size: clamp(50px, 5vw, 76px);

    }

}


/* =========================================================
   1201px - 1400px
========================================================= */

@media (max-width: 1400px) {

    .services-container {

        width: min(1250px, calc(100% - 70px));

    }

    .services-section {

        padding-top: 110px;

    }

    .service-image-wrapper {

        height: 230px;

    }

    .service-card-content {

        padding-left: 22px;

        padding-right: 22px;

    }

    .service-card h3 {

        font-size: 22px;

    }

}


/* =========================================================
   1051px - 1200px
========================================================= */

@media (max-width: 1200px) {

    .services-container {

        width: calc(100% - 60px);

    }

    .services-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 24px;

    }

    .service-image-wrapper {

        height: 270px;

    }

    .service-card h3 {

        font-size: 26px;

    }

    .service-card p {

        min-height: auto;

    }

}


/* =========================================================
   901px - 1050px
========================================================= */

@media (max-width: 1050px) {

    .services-section {

        padding: 95px 0 80px;

    }

    .services-title {

        font-size: clamp(46px, 6vw, 65px);

    }

    .services-description {

        font-size: 16px;

    }

    .service-image-wrapper {

        height: 250px;

    }

}


/* =========================================================
   769px - 900px
========================================================= */

@media (max-width: 900px) {

    .services-container {

        width: calc(100% - 50px);

    }

    .services-heading {

        margin-bottom: 45px;

    }

    .services-title {

        font-size: clamp(43px, 7vw, 58px);

    }

    .services-grid {

        gap: 18px;

    }

    .service-image-wrapper {

        height: 225px;

    }

    .service-card-content {

        padding:
            0 20px 25px;

    }

    .service-icon {

        width: 62px;

        height: 62px;

        font-size: 21px;

    }

    .service-card h3 {

        font-size: 22px;

    }

}


/* =========================================================
   601px - 768px
========================================================= */

@media (max-width: 768px) {

    .services-section {

        padding:
            85px 0 70px;

    }

    .services-container {

        width: calc(100% - 40px);

    }

    .services-eyebrow {

        gap: 15px;

        font-size: 11px;

        letter-spacing: 4px;

    }

    .services-line {

        width: 65px;

    }

    .services-title {

        font-size: clamp(39px, 8vw, 52px);

        letter-spacing: -2px;

    }

    .services-description {

        font-size: 15px;

        line-height: 1.7;

    }

    .services-grid {

        grid-template-columns: 1fr;

        gap: 22px;

    }

    .service-image-wrapper {

        height: 300px;

    }

    .service-card h3 {

        font-size: 26px;

    }

    .service-card p {

        font-size: 15px;

    }

    .services-bottom {

        margin-top: 55px;

    }

}


/* =========================================================
   481px - 600px
========================================================= */

@media (max-width: 600px) {

    .services-section {

        padding:
            75px 0 60px;

    }

    .services-container {

        width: calc(100% - 30px);

    }

    .services-watermark {

        font-size: 100px;

    }

    .services-title {

        font-size: 40px;

        line-height: 1.05;

    }

    .services-description {

        margin-top: 22px;

    }

    .service-image-wrapper {

        height: 270px;

    }

    .services-bottom {

        gap: 15px;

    }

    .services-bottom-line {

        display: none;

    }

    .services-bottom p {

        width: 100%;

        text-align: center;

        white-space: normal;

        line-height: 2;

        letter-spacing: 3px;

    }

}


/* =========================================================
   376px - 480px
========================================================= */

@media (max-width: 480px) {

    .services-section {

        padding:
            65px 0 55px;

    }

    .services-container {

        width: calc(100% - 24px);

    }

    .services-eyebrow {

        gap: 10px;

        font-size: 10px;

        letter-spacing: 3px;

    }

    .services-line {

        width: 45px;

    }

    .services-title {

        font-size: 34px;

    }

    .services-description {

        font-size: 14px;

    }

    .service-image-wrapper {

        height: 240px;

    }

    .service-card-content {

        padding:
            0 18px 23px;

    }

    .service-icon {

        width: 58px;

        height: 58px;

        margin-top: -29px;

        font-size: 19px;

    }

    .service-card h3 {

        font-size: 23px;

    }

    .service-card p {

        font-size: 14px;

        line-height: 1.6;

    }

    .services-main-button {

        width: 100%;

        min-width: 0;

    }

}


/* =========================================================
   321px - 375px
========================================================= */

@media (max-width: 375px) {

    .services-title {

        font-size: 31px;

    }

    .services-description {

        font-size: 13px;

    }

    .service-image-wrapper {

        height: 220px;

    }

    .service-card h3 {

        font-size: 21px;

    }

    .service-link {

        font-size: 14px;

    }

}


/* =========================================================
   320px AND BELOW
========================================================= */

@media (max-width: 320px) {

    .services-container {

        width: calc(100% - 18px);

    }

    .services-title {

        font-size: 28px;

    }

    .services-eyebrow {

        letter-spacing: 2px;

    }

    .services-line {

        width: 30px;

    }

    .service-image-wrapper {

        height: 195px;

    }

    .service-card-content {

        padding-left: 15px;

        padding-right: 15px;

    }

    .service-card h3 {

        font-size: 19px;

    }

}


/* =========================================================
   LANDSCAPE MOBILE
========================================================= */

@media (max-width: 900px) and (orientation: landscape) {

    .services-section {

        padding:
            70px 0 60px;

    }

    .services-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

    .service-image-wrapper {

        height: 220px;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .service-card,
    .services-heading,
    .services-button-wrapper,
    .services-bottom,
    .service-image,
    .service-icon,
    .service-link {

        transition: none !important;

    }

    .service-card,
    .services-heading,
    .services-button-wrapper,
    .services-bottom {

        opacity: 1;

        transform: none;

    }


    /* Reveal elements */

    .services-section .reveal,
    .services-section .reveal-left,
    .services-section .reveal-right,
    .services-section .reveal-scale,
    .services-section .reveal-stagger > * {

        opacity: 1 !important;

        transform: none !important;

        transition: none !important;

    }

}