@charset "utf-8";

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

.services {

    max-width: var(--max-width);
    width: 90%;
    margin: 80px auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;

}


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

.service-box {

    display: flex;
    flex-direction: column;
    height: 100%;

    background: var(--background);

    border: 1px solid var(--gray-500);
    border-radius: 0;

    overflow: hidden;

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;

    box-shadow: 0 12px 30px rgba(0,0,0,.25);

}


.service-box:hover {

    transform: translateY(-10px);

    border-color: rgba(127,106,61,.75);

    box-shadow:
        0 20px 45px rgba(0,0,0,.40),
        0 0 0 1px rgba(127,106,61,.12);

}


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

.service-top {

    position: relative;

    height: 250px;

    display: flex;
    align-items: flex-end;

    padding: 30px;

    background-color: #171717;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    overflow: hidden;

}


/* Dark overlay for title readability */

.service-top::before {

    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0,0,0,.88) 0%,
        rgba(0,0,0,.48) 42%,
        rgba(0,0,0,.10) 100%
    );

    transition: background .35s ease;

}


.service-box:hover .service-top::before {

    background: linear-gradient(
        to top,
        rgba(0,0,0,.92) 0%,
        rgba(0,0,0,.42) 42%,
        rgba(0,0,0,.06) 100%
    );

}


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

.service-title {

    position: relative;
    z-index: 2;

}


.service-title h3 {

    margin: 0;

    color: var(--white);

    font-size: 2rem;
    line-height: 1.1;

    text-shadow:
        0 2px 3px rgba(0,0,0,.95),
        0 5px 14px rgba(0,0,0,.70);

}


.service-title p {

    margin: 8px 0 0;

    color: rgba(255,255,255,.92);

    font-size: .95rem;
    line-height: 1.4;

    text-shadow:
        0 1px 2px rgba(0,0,0,1),
        0 3px 10px rgba(0,0,0,.70);

}


/* ==========================================================
   MIDDLE CONTENT
========================================================== */

.service-middle {

    position: relative;
    isolation: isolate;

    flex: 1;

    padding: 35px;

    color: var(--gray-100);

    background-color: #151515;
    background-image: url("../images/services/card-bkg-middle.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-top: 1px solid rgba(255,255,255,.06);

    box-shadow:
        inset 0 10px 24px rgba(0,0,0,.40),
        inset 0 -8px 20px rgba(0,0,0,.28);

}


/* Darkens the leather image without editing the image file */

.service-middle::before {

    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    background:
        linear-gradient(
            rgba(0,0,0,.46),
            rgba(0,0,0,.46)
        );

}


.service-middle p {

    margin: 0;

    color: rgba(255,255,255,.96);

    line-height: 1.7;

    text-shadow:
        0 1px 1px rgba(0,0,0,1),
        0 2px 3px rgba(0,0,0,.95),
        0 5px 12px rgba(0,0,0,.72);

}


/* ==========================================================
   SERVICE LIST
========================================================== */

.service-list {

    margin: 24px 0 0;
    padding: 0;

    list-style: none;

}


.service-list li {

    position: relative;

    margin: 0;
    padding: 10px 0 10px 28px;

    color: rgba(255,255,255,.95);

    line-height: 1.45;

    border-bottom: 1px solid rgba(255,255,255,.10);

    text-shadow:
        0 1px 1px rgba(0,0,0,1),
        0 2px 3px rgba(0,0,0,.92),
        0 4px 10px rgba(0,0,0,.65);

}


.service-list li:last-child {

    border-bottom: 0;

}


/* Bright filled gold diamond bullet */

.service-list li::before {

    content: "";

    position: absolute;

    left: 3px;
    top: 17px;

    width: 10px;
    height: 10px;

    background: var(--primary);
    border: 1px solid rgba(255,255,255,.35);

    transform: rotate(45deg);

    box-shadow:
        0 0 0 1px rgba(0,0,0,.75),
        0 0 8px rgba(127,106,61,.85),
        0 2px 5px rgba(0,0,0,.80);

}


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

.service-bottom {

    min-height: 104px;
    padding: 24px 30px;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    background: var(--background);

    border-top: 1px solid rgba(255,255,255,.07);

}


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

.service-bottom .button {

    display: inline-flex;
    justify-content: center;
    align-items: center;

    margin: 0;
    padding: 14px 30px;

    border: 1px solid rgba(127,106,61,.75);
    border-radius: 5px;

    background: var(--primary);
    color: var(--white);

    text-decoration: none;
    line-height: 1;

    box-shadow: 0 6px 16px rgba(0,0,0,.22);

    transition:
        background .3s ease,
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;

}


.service-bottom .button:hover {

    background: var(--primary-hover);

    border-color: var(--primary-hover);

    transform: translateY(-2px);

    box-shadow: 0 10px 22px rgba(0,0,0,.32);

}


.service-bottom .button:focus-visible {

    outline: 2px solid var(--primary-hover);
    outline-offset: 4px;

}


/* ==========================================================
   SERVICE IMAGES
========================================================== */

/* WEB DESIGN */

.service-web-design-top {

    background-image: url("../images/services/web-design-top.jpg");

}


/* DEVELOPMENT */

.service-development-top {

    background-image: url("../images/services/development-top.jpg");

}


/* MARKETING */

.service-marketing-top {

    background-image: url("../images/services/marketing-top.jpg");

}


/* SOCIAL MEDIA */

.service-social-top {

    background-image: url("../images/services/social-top.jpg");

}


/* ECOMMERCE */

.service-ecommerce-top {

    background-image: url("../images/services/ecommerce-top.jpg");

}