/* =========================================
   ELMISY ENERGY
   Corporate Website Theme
   Navy + Gold
   ========================================= */

:root {
    --navy: #071522;
    --navy-light: #0b2032;
    --navy-card: #10283d;

    --gold: #c99a55;
    --gold-light: #e2b873;

    --white: #ffffff;
    --off-white: #f6f7f8;

    --text-dark: #15202b;
    --text-grey: #5f6872;

    --border: #e2e5e8;

    --max-width: 1240px;
}


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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;

    color: var(--text-dark);
    background: var(--white);
}

img {
    max-width: 100%;
}

section {
    scroll-margin-top: 90px;
}


/* =========================================
   HEADER
   ========================================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

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

    padding: 14px max(
        6%,
        calc((100% - var(--max-width)) / 2)
    );

    background: rgba(7, 21, 34, 0.97);

    border-bottom:
        1px solid rgba(201, 154, 85, 0.25);

    backdrop-filter: blur(10px);
}


/* Brand */

.brand {
    display: flex;
    align-items: center;

    gap: 12px;

    text-decoration: none;

    color: var(--white);

    font-size: 20px;
    font-weight: 700;

    letter-spacing: 0.3px;
}

.brand span::after {
    content: ".";
    color: var(--gold);
}


/* Header Logo */

.header-logo {
    width: 46px;
    height: 46px;

    object-fit: cover;

    border-radius: 8px;

    border:
        1px solid rgba(201, 154, 85, 0.35);
}


/* Navigation */

nav {
    display: flex;
    align-items: center;

    gap: 30px;
}

nav a {
    color: #e7ecf0;

    text-decoration: none;

    font-size: 15px;
    font-weight: 500;

    transition: 0.25s ease;
}

nav a:hover {
    color: var(--gold-light);
}


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

#hero {
    min-height: calc(100vh - 75px);

    display: flex;
    align-items: center;

    padding:
        85px
        max(
            6%,
            calc((100% - var(--max-width)) / 2)
        );

    background:
        radial-gradient(
            circle at 80% 35%,
            rgba(201, 154, 85, 0.13),
            transparent 27%
        ),
        linear-gradient(
            135deg,
            #071522 0%,
            #0b2032 60%,
            #071522 100%
        );

    color: var(--white);
}


/* Hero Layout */

.hero-content {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(320px, 0.75fr);

    align-items: center;

    gap: 70px;
}


/* Hero Text */

.hero-text {
    min-width: 0;
}

.hero-label {
    display: block;

    margin-bottom: 18px;

    color: var(--gold);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 4px;
}


/* Main Heading */

#hero h1 {
    max-width: 820px;

    margin-bottom: 26px;

    color: var(--white);

    font-size: clamp(
        38px,
        3.8vw,
        56px
    );

    line-height: 1.08;

    font-weight: 700;
}


/* Hero Paragraph */

#hero p {
    max-width: 720px;

    margin-bottom: 36px;

    color: #c9d1d8;

    font-size: 18px;

    line-height: 1.8;
}


/* Hero Buttons */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;
}

.hero-buttons a {
    display: inline-block;

    padding: 14px 26px;

    background: var(--gold);
    color: var(--navy);

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

    border-radius: 5px;

    text-decoration: none;

    font-weight: 700;

    transition: 0.25s ease;
}

.hero-buttons a:hover {
    transform: translateY(-2px);

    background: var(--gold-light);
    border-color: var(--gold-light);
}


/* Secondary CTA */

.hero-buttons .secondary-btn {
    background: transparent;

    color: var(--white);
}

.hero-buttons .secondary-btn:hover {
    background:
        rgba(201, 154, 85, 0.12);

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


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

.hero-visual {
    display: flex;

    justify-content: center;
    align-items: center;
}

.hero-logo {
    display: block;

    width: 100%;

    max-width: 390px;

    border-radius: 12px;

    border:
        1px solid rgba(201, 154, 85, 0.22);

    box-shadow:
        0 30px 70px
        rgba(0, 0, 0, 0.35);

    opacity: 0.97;

    transition: 0.35s ease;
}

.hero-logo:hover {
    transform:
        translateY(-4px)
        scale(1.01);
}


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

section:not(#hero) {
    padding:
        100px
        max(
            6%,
            calc((100% - var(--max-width)) / 2)
        );
}

section h2 {
    margin-bottom: 38px;

    color: var(--navy);

    font-size: clamp(
        32px,
        3.5vw,
        44px
    );

    line-height: 1.2;
}

section h2::after {
    content: "";

    display: block;

    width: 55px;
    height: 3px;

    margin-top: 15px;

    background: var(--gold);
}


/* =========================================
   ABOUT
   ========================================= */

#about {
    background: var(--white);
}

#about p {
    max-width: 900px;

    margin-bottom: 18px;

    color: var(--text-grey);

    font-size: 18px;

    line-height: 1.9;
}


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

#services {
    display: grid;

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

    gap: 22px;

    background: var(--off-white);
}

#services > h2 {
    grid-column: 1 / -1;
}


/* Service Cards */

.service-card {
    position: relative;

    padding: 32px 28px;

    background: var(--white);

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

    border-top:
        3px solid var(--gold);

    border-radius: 7px;

    transition: 0.3s ease;
}

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

    box-shadow:
        0 15px 35px
        rgba(7, 21, 34, 0.10);
}

.service-card h3 {
    margin-bottom: 15px;

    color: var(--navy);

    font-size: 20px;

    line-height: 1.4;
}

.service-card p {
    color: var(--text-grey);

    font-size: 15.5px;

    line-height: 1.75;
}


/* =========================================
   WHY US
   ========================================= */

#why-us {
    display: grid;

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

    gap: 22px;

    background: var(--navy);
}

#why-us > h2 {
    grid-column: 1 / -1;

    color: var(--white);
}


/* Why Cards */

.why-card {
    padding: 34px 28px;

    background: var(--navy-card);

    border:
        1px solid
        rgba(201, 154, 85, 0.18);

    border-radius: 7px;

    transition: 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(201, 154, 85, 0.50);
}

.why-card h3 {
    margin-bottom: 14px;

    color: var(--gold-light);

    font-size: 20px;
}

.why-card p {
    color: #c4cdd5;

    font-size: 15.5px;

    line-height: 1.75;
}


/* =========================================
   CONTACT
   ========================================= */

#contact {
    text-align: center;

    background:
        linear-gradient(
            135deg,
            #f4f1eb,
            #ffffff
        );
}

#contact h2 {
    margin-left: auto;
    margin-right: auto;
}

#contact h2::after {
    margin-left: auto;
    margin-right: auto;
}

#contact p {
    max-width: 720px;

    margin:
        0 auto 35px;

    color: var(--text-grey);

    font-size: 18px;
}


/* Contact Buttons */

.contact-links {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 14px;
}

.contact-links a {
    display: inline-block;

    min-width: 145px;

    padding: 13px 24px;

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

    border-radius: 5px;

    color: var(--navy);
    background: transparent;

    text-decoration: none;

    font-weight: 700;

    transition: 0.25s ease;
}

.contact-links a:hover {
    background: var(--navy);

    color: var(--gold-light);

    transform: translateY(-2px);
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    padding: 26px 6%;

    text-align: center;

    background: #040d15;

    color: #8e99a3;

    border-top:
        1px solid
        rgba(201, 154, 85, 0.2);

    font-size: 13px;
}


/* =========================================
   ACCESSIBILITY
   ========================================= */

a:focus-visible {
    outline:
        2px solid var(--gold-light);

    outline-offset: 4px;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1000px) {

    .hero-content {
        grid-template-columns:
            1.15fr 0.85fr;

        gap: 40px;
    }

    #hero h1 {
        font-size: 45px;
    }

    #services,
    #why-us {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


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

@media (max-width: 720px) {

    header {
        flex-direction: column;

        gap: 14px;

        padding: 12px 6%;
    }

    .brand {
        font-size: 18px;
    }

    .header-logo {
        width: 40px;
        height: 40px;
    }

    nav {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;

        gap: 17px;
    }

    nav a {
        font-size: 14px;
    }


    /* Hero */

    #hero {
        min-height: auto;

        padding:
            65px 6%
            75px;
    }

    .hero-content {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    #hero h1 {
        font-size: 38px;
    }

    #hero p {
        font-size: 17px;
    }

    .hero-visual {
        order: 2;
    }

    .hero-logo {
        max-width: 370px;
    }


    /* Sections */

    section:not(#hero) {
        padding: 75px 6%;
    }


    /* Cards */

    #services,
    #why-us {
        grid-template-columns: 1fr;
    }


    /* Hero Buttons */

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;

        text-align: center;
    }


    /* Contact */

    .contact-links {
        flex-direction: column;
    }

    .contact-links a {
        width: 100%;
    }

}
