/* ==========================================
   HARWELL SERVICES
   MAIN STYLESHEET
========================================== */


/* ==========================================
   RESET
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body);
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
}


/* ==========================================
   GENERAL
========================================== */

.container {
    width: min(90%, 1280px);
    margin: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}


/* ==========================================
   NAVBAR
========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 25px 0;
    transition: .35s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ==========================================
   LOGO
========================================== */

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #111;

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

    font-size: 2rem;
    font-family: var(--heading);
}

.logo-text h3 {
    font-family: var(--body);
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-text span {
    color: var(--primary);
    font-size: 1rem;
}


/* ==========================================
   NAVIGATION LINKS
========================================== */

.nav-links {
    display: flex;
    gap: 45px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    transition: .3s;
}

.nav-links a:hover {
    color: var(--primary);
}


/* ==========================================
   BUTTONS
========================================== */

.btn {
    padding: 16px 34px;
    border-radius: 50px;
    font-weight: 600;
    transition: .35s;

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

.btn-primary {
    background: var(--primary);
    color: #111;
}

.btn-primary:hover {
    transform: translateY(-4px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: white;
}

.btn-outline:hover {
    background: var(--primary);
    color: #111;
}


/* ==========================================
   HERO SECTION
========================================== */

.hero {
    min-height: 100vh;
    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;
    background: #050505;
}


/* ---------- HERO BACKGROUND ---------- */

.hero-bg {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .9),
            rgba(0, 0, 0, .55),
            rgba(0, 0, 0, .85)
        ),
        url("../images/hero/herobackground.PNG");

    background-size: cover;
    background-position: center;

    transform: scale(1.05);

    animation:
        heroZoom 18s
        ease-in-out
        infinite
        alternate;
}


/* ---------- HERO DARK OVERLAY ---------- */

.hero-dark {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 25% 40%,
            rgba(212, 175, 55, .15),
            transparent 35%
        ),
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, .1),
            #0d0d0d 95%
        );
}


/* ---------- HERO CONTENT ---------- */

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 950px;

    padding-top: 90px;
}

.hero-kicker {
    color: var(--primary);

    text-transform: uppercase;
    letter-spacing: 3px;

    font-weight: 700;

    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--heading);

    font-size:
        clamp(
            4.4rem,
            9vw,
            8.5rem
        );

    line-height: .88;

    text-transform: uppercase;

    margin-bottom: 32px;
}

.hero-description {
    max-width: 720px;

    font-size: 1.2rem;

    color: #d4d4d4;

    line-height: 1.8;

    margin-bottom: 42px;
}


/* ---------- HERO BUTTONS ---------- */

.hero-buttons {
    display: flex;

    gap: 18px;

    flex-wrap: wrap;

    margin-bottom: 55px;
}


/* ==========================================
   HERO STATS
========================================== */

.hero-stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    max-width: 760px;
}

.hero-stats > div {
    background:
        rgba(
            255,
            255,
            255,
            .06
        );

    border:
        1px solid
        rgba(
            212,
            175,
            55,
            .25
        );

    border-radius: 18px;

    padding: 22px;

    backdrop-filter:
        blur(12px);
}

.hero-stats strong {
    display: block;

    color: var(--primary);

    font-size: 1.35rem;
}

.hero-stats span {
    color: #d7d7d7;

    font-size: .95rem;
}


/* ---------- HERO ANIMATION ---------- */

@keyframes heroZoom {

    from {
        transform:
            scale(1.05);
    }

    to {
        transform:
            scale(1.13);
    }

}


/* ==========================================
   HERO SOCIAL CARD
========================================== */

.hero-social-card {
    width: 340px;

    background:
        rgba(
            20,
            20,
            20,
            .82
        );

    backdrop-filter:
        blur(10px);

    border:
        1px solid
        rgba(
            212,
            175,
            55,
            .4
        );

    border-radius: 18px;

    padding: 30px;

    color: #fff;

    box-shadow:
        0 15px 35px
        rgba(
            0,
            0,
            0,
            .35
        );
}

.hero-social-card h3 {
    text-align: center;

    color: #d4af37;

    margin-bottom: 25px;

    font-size: 1.5rem;
}

.social-item {
    margin: 20px 0;
}

.social-item h4 {
    color: #fff;

    margin-bottom: 8px;
}

.social-item p {
    color: #cfcfcf;

    font-size: .95rem;

    line-height: 1.5;

    margin-bottom: 18px;
}

.social-btn {
    display: block;

    text-align: center;

    background: #d4af37;

    color: #111;

    padding: 13px;

    border-radius: 40px;

    font-weight: 700;

    text-decoration: none;

    transition: .3s;
}

.social-btn:hover {
    background: #f0c949;

    transform:
        translateY(-3px);
}

.hero-social-card hr {
    border: none;

    height: 1px;

    background:
        rgba(
            255,
            255,
            255,
            .12
        );

    margin: 30px 0;
}


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

.services {
    background: #0f0f0f;

    padding: 110px 0;
}


/* ---------- SECTION HEADERS ---------- */

.section-header {
    text-align: center;

    max-width: 800px;

    margin:
        0 auto 60px;
}

.section-header span {
    color: var(--primary);

    text-transform: uppercase;

    letter-spacing: 3px;

    font-weight: 700;
}

.section-header h2 {
    font-family:
        var(--heading);

    font-size:
        clamp(
            3rem,
            6vw,
            5rem
        );

    margin:
        18px 0;
}

.section-header p {
    color: #bdbdbd;

    font-size: 1.1rem;
}


/* ---------- SERVICE GRID ---------- */

.service-grid {
    display: grid;

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

    gap: 25px;
}


/* ---------- SERVICE CARDS ---------- */

.service-card {
    position: relative;

    overflow: hidden;

    background: #191919;

    border:
        1px solid
        rgba(
            212,
            175,
            55,
            .25
        );

    border-radius: 24px;

    padding:
        38px 28px;

    min-height: 280px;

    transition: .35s;
}

.service-card:hover {
    transform:
        translateY(-10px);

    border-color:
        var(--primary);

    box-shadow:
        0 20px 50px
        rgba(
            0,
            0,
            0,
            .35
        );
}

.service-card::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(
                212,
                175,
                55,
                .18
            ),
            transparent 55%
        );

    opacity: 0;

    transition: .35s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;

    z-index: 2;
}


/* ---------- SERVICE ICON ---------- */

.service-icon {
    width: 82px;

    height: 82px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-light)
        );

    color: #111;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 2.7rem;

    font-weight: 800;

    margin-bottom: 30px;

    box-shadow:
        0 18px 40px
        rgba(
            212,
            175,
            55,
            .2
        );

    transition:
        .35s ease;
}

.service-icon img {
    width: 42px;

    height: 42px;

    display: block;

    object-fit: contain;
}

.service-card:hover
.service-icon {
    transform:
        scale(1.08)
        rotate(-3deg);
}

.service-card h3 {
    font-family:
        var(--body);

    font-size: 1.25rem;

    margin-bottom: 15px;
}

.service-card p {
    color: #bdbdbd;

    line-height: 1.7;
}


/* ==========================================
   BEFORE & AFTER SECTION
========================================== */

.before-after {
    background: #0d0d0d;

    padding:
        110px 0;
}


/* ==========================================
   BEFORE & AFTER SLIDER
========================================== */

.ba-slider {
    position: relative;

    width:
        min(
            92%,
            1120px
        );

    /*
       Wide 16:9 layout prevents
       the tall, zoomed-in appearance.
    */

    aspect-ratio: 16 / 9;

    height: auto;

    margin:
        60px auto 0;

    overflow: hidden;

    border-radius: 26px;

    border:
        1px solid
        rgba(
            212,
            175,
            55,
            .35
        );

    box-shadow:
        0 30px 90px
        rgba(
            0,
            0,
            0,
            .4
        );
}


/* ---------- SLIDER IMAGES ---------- */

.ba-slider img {
    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    /*
       Fill the slider.
       No black bars.
    */

    object-fit: cover;

    object-position: center;
}


/* ---------- BEFORE IMAGE CONTAINER ---------- */

.ba-before-wrap {
    position: absolute;

    top: 0;

    left: 0;

    width: 50%;

    height: 100%;

    overflow: hidden;

    z-index: 2;
}


/*
   IMPORTANT:
   The before image must remain
   the same full width as the
   slider while the wrapper crops it.
*/

.ba-before-wrap img {
    width: 1120px;

    height: 100%;

    max-width: none;

    object-fit: cover;

    object-position: center;
}


/* ---------- INVISIBLE SLIDER INPUT ---------- */

.ba-range {
    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    opacity: 0;

    cursor: ew-resize;

    z-index: 10;
}


/* ---------- GOLD DIVIDER ---------- */

.ba-handle {
    position: absolute;

    top: 0;

    left: 50%;

    height: 100%;

    width: 4px;

    background:
        var(--primary);

    z-index: 5;

    transform:
        translateX(-50%);
}


/* ---------- SLIDER BUTTON ---------- */

.ba-handle span {
    position: absolute;

    top: 50%;

    left: 50%;

    transform:
        translate(
            -50%,
            -50%
        );

    background:
        var(--primary);

    color: #111;

    width: 54px;

    height: 54px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 800;
}


/* ---------- BEFORE / AFTER LABELS ---------- */

.ba-label {
    position: absolute;

    bottom: 20px;

    z-index: 20;

    background:
        rgba(
            0,
            0,
            0,
            .75
        );

    color: #fff;

    padding:
        10px 18px;

    border-radius:
        999px;

    font-weight: 700;
}

.ba-label-before {
    left: 20px;
}

.ba-label-after {
    right: 20px;
}


/* ==========================================
   QUOTE / CONTACT SECTION
========================================== */

.quote-section {
    padding:
        110px 0;
}

.quote-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 60px;

    align-items: center;
}


/* ---------- QUOTE FORM ---------- */

.quote-form {
    display: flex;

    flex-direction: column;

    gap: 18px;

    background: #1a1a1a;

    padding: 40px;

    border-radius: 24px;

    border:
        1px solid
        rgba(
            212,
            175,
            55,
            .35
        );
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;

    display: block;

    padding:
        16px 18px;

    border-radius: 12px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .15
        );

    background: #0f0f0f;

    color: #fff;

    font-family:
        var(--body);

    font-size: 1rem;
}

.quote-form textarea {
    min-height: 150px;

    resize: vertical;
}

.quote-form button {
    width: 100%;

    border: none;
}


/* ==========================================
   SCROLLBAR
========================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background:
        var(--primary);
}

::-webkit-scrollbar-track {
    background: #111;
}
