/* =========================================
   BLUE PEAK SUPPLY US
   SERVICES PAGE STYLESHEET
   ========================================= */


/* ---------- BRAND VARIABLES ---------- */

:root {
    --navy: #0b2545;
    --navy-dark: #071a32;
    --blue: #174a7c;
    --blue-light: #eaf2fa;
    --gold: #d5a94f;
    --white: #ffffff;
    --light: #f5f8fc;
    --text: #27364a;
    --muted: #64748b;
    --border: #e1e8f0;

    --shadow: 0 12px 35px rgba(11, 37, 69, 0.08);
}


/* ---------- RESET AND GLOBAL ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(1150px, 90%);
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.2;
}


/* =========================================
   HEADER AND NAVIGATION
   ========================================= */

.site-header {
    position: relative;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-container {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* ---------- LOGO ---------- */

.brand {
    display: inline-flex;
    flex-direction: column;
    flex-shrink: 0;
    line-height: 1.1;
}

.brand-name {
    color: var(--navy);
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.brand-subtitle {
    margin-top: 5px;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 4px;
}


/* ---------- DESKTOP NAVIGATION ---------- */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-navigation > a:not(.back-home) {
    color: var(--text);
    font-size: 0.93rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-navigation > a:not(.back-home):hover,
.main-navigation > a.active {
    color: var(--blue);
}


/* ---------- BACK TO HOME BUTTON ---------- */

.back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;

    background: var(--navy);
    color: var(--white);

    border: 1px solid var(--navy);
    border-radius: 6px;

    font-size: 0.88rem;
    font-weight: 700;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.back-home:hover {
    background: var(--blue);
    border-color: var(--blue);
    transform: translateY(-2px);
}


/* ---------- MOBILE MENU BUTTON ---------- */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;

    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;

    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;

    background: var(--navy);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


/* =========================================
   BUTTONS
   ========================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 49px;
    padding: 12px 24px;

    border: 1px solid transparent;
    border-radius: 6px;

    font-size: 0.94rem;
    font-weight: 700;
    text-align: center;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--gold);
    color: var(--navy-dark);
}

.button-primary:hover {
    background: #e4bc66;
}

.button-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.65);
    background: transparent;
}

.button-outline:hover {
    background: var(--white);
    color: var(--navy);
}

.button-light {
    background: var(--white);
    color: var(--navy);
}

.button-light:hover {
    background: var(--blue-light);
}

.button-cta-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7);
    background: transparent;
}

.button-cta-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}


/* =========================================
   HERO SECTION
   ========================================= */

.services-hero {
    position: relative;
    overflow: hidden;

    padding: 115px 0;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(213, 169, 79, 0.18),
            transparent 28%
        ),
        linear-gradient(
            120deg,
            var(--navy-dark),
            var(--navy),
            var(--blue)
        );
}

.hero-content {
    max-width: 850px;
    text-align: center;
}

.services-hero h1 {
    margin-bottom: 25px;

    color: var(--white);

    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -1.5px;
}

.services-hero h1 span {
    display: block;
    margin-top: 12px;

    color: var(--gold);

    font-size: clamp(1.55rem, 3.5vw, 2.7rem);
    letter-spacing: -0.5px;
}

.services-hero p {
    max-width: 720px;
    margin: 0 auto;

    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 15px;
    margin-top: 35px;
}


/* =========================================
   INTRODUCTION
   ========================================= */

.services-introduction {
    padding: 85px 0 45px;
    background: var(--white);
}

.intro-content {
    max-width: 800px;
    text-align: center;
}

.intro-content h2 {
    margin-bottom: 20px;

    color: var(--navy);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.intro-content p {
    color: var(--muted);
    font-size: 1.02rem;
}


/* =========================================
   SERVICES SECTION
   ========================================= */

.services-section {
    padding: 70px 0 100px;
    background: var(--light);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 16px;

    color: var(--navy);
    font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.section-heading p {
    color: var(--muted);
    font-size: 1rem;
}


/* =========================================
   SERVICES GRID
   Two columns on desktop and tablet
   ========================================= */

.services-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 32px;
}


/* ---------- SERVICE CARD ---------- */

.service-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    overflow: hidden;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow: 0 5px 18px rgba(11, 37, 69, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);

    border-color: rgba(213, 169, 79, 0.7);

    box-shadow: var(--shadow);
}


/* ---------- SERVICE IMAGE ---------- */

.service-image {
    position: relative;

    width: 100%;
    height: 280px;

    overflow: hidden;
    background: var(--blue-light);
}

.service-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}


/* ---------- SERVICE NUMBER ---------- */

.service-number {
    position: absolute;
    top: 18px;
    right: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    background: var(--gold);
    color: var(--navy-dark);

    border-radius: 50%;

    font-size: 0.95rem;
    font-weight: 900;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* ---------- SERVICE CONTENT ---------- */

.service-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;

    padding: 30px;
}

.service-category {
    display: inline-block;
    align-self: flex-start;

    margin-bottom: 12px;
    padding: 5px 12px;

    background: var(--blue-light);
    color: var(--blue);

    border-radius: 30px;

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.service-content h3 {
    margin-bottom: 15px;

    color: var(--navy);
    font-size: 1.4rem;
    line-height: 1.3;
}

.service-content p {
    margin-bottom: 25px;

    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.8;
}


/* ---------- SERVICE LINK ---------- */

.service-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;

    gap: 10px;
    margin-top: auto;

    color: var(--blue);
    font-size: 0.92rem;
    font-weight: 800;
}

.service-link span {
    color: var(--gold);
    font-size: 1.3rem;

    transition: transform 0.25s ease;
}

.service-link:hover span {
    transform: translateX(5px);
}


/* =========================================
   HOW IT WORKS
   ========================================= */

.process-section {
    padding: 100px 0;
    background: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.process-card {
    padding: 30px 24px;

    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.process-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    margin-bottom: 22px;

    background: var(--navy);
    color: var(--white);

    border-radius: 50%;

    font-size: 1.15rem;
    font-weight: 800;
}

.process-card h3 {
    margin-bottom: 13px;

    color: var(--navy);
    font-size: 1.1rem;
}

.process-card p {
    color: var(--muted);
    font-size: 0.93rem;
}


/* =========================================
   CALL TO ACTION
   ========================================= */

.services-cta {
    padding: 75px 0;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(213, 169, 79, 0.16),
            transparent 30%
        ),
        var(--navy);
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-content {
    max-width: 680px;
}

.cta-content h2 {
    margin-bottom: 18px;

    color: var(--white);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.78);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 13px;

    min-width: 190px;
}


/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    padding: 65px 0 0;

    background: var(--navy-dark);
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;

    gap: 55px;
    padding-bottom: 50px;
}

.footer-logo .brand-name {
    color: var(--white);
}

.footer-brand p {
    max-width: 340px;
    margin-top: 20px;

    color: rgba(255, 255, 255, 0.65);
    font-size: 0.93rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-links h3 {
    margin-bottom: 12px;

    color: var(--white);
    font-size: 1.05rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.91rem;

    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-home-link:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
    padding: 22px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.85rem;
}

.footer-home-link {
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 700;

    transition: color 0.2s ease;
}


/* =========================================
   TABLET RESPONSIVENESS
   ========================================= */

@media (max-width: 950px) {

    .main-navigation {
        gap: 16px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .service-image {
        height: 230px;
    }

    .service-content {
        padding: 25px;
    }

    .service-content h3 {
        font-size: 1.25rem;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-container {
        align-items: flex-start;
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

}


/* =========================================
   MOBILE NAVIGATION AND LAYOUT
   ========================================= */

@media (max-width: 700px) {

    .header-container {
        min-height: 75px;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .brand-subtitle {
        font-size: 0.62rem;
    }


    /* Show hamburger button */

    .menu-toggle {
        display: block;
    }


    /* Collapsible mobile navigation */

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 12px 5% 22px;

        background: var(--white);
        border-bottom: 1px solid var(--border);

        box-shadow: 0 15px 25px rgba(11, 37, 69, 0.08);
    }

    .main-navigation.open {
        display: flex;
    }

    .main-navigation > a:not(.back-home) {
        padding: 13px 0;
        border-bottom: 1px solid var(--border);
    }

    .main-navigation .back-home {
        margin-top: 15px;
        text-align: center;
    }


    /* Hero */

    .services-hero {
        padding: 80px 0;
    }

    .services-hero h1 {
        font-size: 2.6rem;
    }

    .services-hero h1 span {
        font-size: 1.65rem;
    }

    .services-hero p {
        font-size: 0.98rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }


    /* Intro */

    .services-introduction {
        padding: 65px 0 30px;
    }


    /* Services: one column on mobile */

    .services-section {
        padding: 65px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-card {
        width: 100%;
    }

    .service-image {
        height: 230px;
    }

    .service-content {
        padding: 24px 21px;
    }

    .service-content h3 {
        font-size: 1.25rem;
    }

    .service-content p {
        font-size: 0.94rem;
    }

    .service-link {
        font-size: 0.88rem;
    }


    /* Process */

    .process-section {
        padding: 65px 0;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }


    /* Call to action */

    .cta-buttons {
        width: 100%;
        flex-direction: column;
    }


    /* Footer */

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 400px) {

    .container {
        width: 92%;
    }

    .services-hero h1 {
        font-size: 2.2rem;
    }

    .services-hero h1 span {
        font-size: 1.4rem;
    }

    .service-image {
        height: 190px;
    }

    .service-content {
        padding: 20px 17px;
    }

    .service-number {
        top: 12px;
        right: 12px;

        width: 38px;
        height: 38px;

        font-size: 0.85rem;
    }

    .button {
        width: 100%;
    }

}


/* =========================================
   ACCESSIBILITY
   ========================================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}