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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7f2;
    color: #173b2d;
    line-height: 1.6;
}

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

button,
input,
textarea {
    font-family: inherit;
}

img {
    max-width: 100%;
}


/* =========================================================
COLOUR VARIABLES
========================================================= */

:root {
    --green-dark: #173b2d;
    --green-deep: #102c22;
    --green-light: #5b806d;
    --green-pale: #a8c4b5;

    --cream: #f5f7f2;
    --white: #ffffff;

    --text-light: #68756e;
    --border-light: #dfe6e1;

    --shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}


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

.navbar {
    position: fixed;
    top: 25px;
    left: 5%;
    right: 5%;
    z-index: 1000;

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

    padding: 12px 18px;

    background: rgba(255, 255, 255, 0.96);

    border-radius: 50px;

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}


/* LOGO */

.logo img {
    width: 150px;
    height: auto;
    display: block;
}


/* NAV LINKS */

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links > a,
.dropdown-toggle {
    font-size: 14px;
    font-weight: 500;

    color: var(--green-dark);

    transition: 0.3s ease;
}

.nav-links > a:hover,
.dropdown-toggle:hover {
    opacity: 0.6;
}


/* DROPDOWN */

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    border: none;
    background: transparent;
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle span {
    font-size: 15px;
}


/* DROPDOWN MENU */

.dropdown-menu {
    position: absolute;

    top: calc(100% + 15px);
    left: 50%;

    transform: translateX(-50%) translateY(10px);

    min-width: 240px;

    padding: 12px;

    background: white;

    border-radius: 18px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);

    opacity: 0;
    visibility: hidden;

    transition: 0.25s ease;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;

    padding: 11px 14px;

    border-radius: 10px;

    font-size: 13px;

    color: var(--green-dark);

    transition: 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--cream);
}


/* NAV ACTIONS */

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

.search-button,
.language-button,
.mobile-menu-button {
    border: none;
    background: transparent;

    color: var(--green-dark);

    cursor: pointer;
}

.search-button {
    font-size: 17px;
}

.language-button {
    font-size: 13px;
    font-weight: 600;
}

.mobile-menu-button {
    display: none;

    font-size: 22px;
}


/* CONTACT BUTTON */

.nav-contact {
    background: var(--green-dark);
    color: white;

    padding: 12px 22px;

    border-radius: 30px;

    font-size: 13px;

    transition: 0.3s ease;
}

.nav-contact:hover {
    transform: translateY(-2px);
}


/* =========================================================
SEARCH
========================================================= */

.search-container {
    position: fixed;

    top: 100px;
    right: 5%;

    z-index: 90;

    width: 350px;

    padding: 15px;

    background: white;

    border-radius: 15px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);

    display: none;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    flex: 1;

    padding: 12px 15px;

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

    border-radius: 10px;

    outline: none;
}

.search-form button {
    padding: 12px 18px;

    border: none;

    border-radius: 10px;

    background: var(--green-dark);
    color: white;

    cursor: pointer;
}


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

.mobile-menu {
    display: none;
}


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

.hero {
    position: relative;

    min-height: 90vh;

    display: flex;
    align-items: center;

    overflow: hidden;

    background-image: url("../images/mastercare_heroImage.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    animation: heroImageReveal 1.5s ease-out forwards;
}


/* DARK OVERLAY */

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

    background: rgba(0, 0, 0, 0.35);

    z-index: 1;
}


/* HERO CONTENT */

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 900px;

    margin-left: 8%;

    padding-top: 80px;

    color: white;

    opacity: 0;

    transform: translateY(35px);

    animation: heroContentReveal 1s ease-out 0.3s forwards;
}


/* HERO HEADING */

.hero h1 {
    max-width: 850px;

    font-size: clamp(48px, 6vw, 86px);

    line-height: 0.98;

    font-weight: 500;

    letter-spacing: -3px;

    margin-bottom: 30px;

    opacity: 0;

    transform: translateY(30px);

    animation: heroTextReveal 0.9s ease-out 0.5s forwards;
}


/* HERO DESCRIPTION */

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

    font-size: 17px;

    line-height: 1.7;

    margin-bottom: 35px;

    opacity: 0;

    transform: translateY(25px);

    animation: heroTextReveal 0.9s ease-out 0.8s forwards;
}


/* HERO BUTTONS */

.hero-buttons {
    display: flex;

    gap: 15px;

    align-items: center;

    opacity: 0;

    transform: translateY(20px);

    animation: heroTextReveal 0.9s ease-out 1.05s forwards;
}


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

@keyframes heroImageReveal {

    from {
        opacity: 0;
        background-size: 110%;
    }

    to {
        opacity: 1;
        background-size: cover;
    }

}

@keyframes heroContentReveal {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes heroTextReveal {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


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

.primary-button,
.secondary-button {
    display: inline-block;

    padding: 15px 25px;

    border-radius: 40px;

    font-size: 14px;

    transition: 0.3s ease;
}

.primary-button {
    background: white;

    color: var(--green-dark);
}

.secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.6);

    color: white;
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-3px);
}


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

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

.about-section,
.energy-section,
.waste-section,
.careers-section,
.contact-section {
    padding: 120px 8%;
}

.about-section,
.waste-section,
.careers-section,
.contact-section {
    background: var(--cream);
}

.energy-section {
    background: white;
}

.section-heading {
    max-width: 850px;

    margin-bottom: 70px;
}

.section-label {
    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 20px;

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

.section-heading h2 {
    font-size: clamp(40px, 5vw, 68px);

    line-height: 1.05;

    font-weight: 500;

    letter-spacing: -2px;

    margin-bottom: 25px;
}

.section-heading > p:last-child {
    max-width: 650px;

    color: var(--text-light);

    line-height: 1.7;
}


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

.about-block {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 80px;

    padding: 70px 0;

    border-top: 1px solid var(--border-light);
}

.about-block-heading h3 {
    max-width: 450px;

    font-size: clamp(30px, 4vw, 52px);

    line-height: 1.05;

    font-weight: 500;

    letter-spacing: -1.5px;
}

.about-block-content {
    max-width: 700px;
}

.about-block-content p {
    margin-bottom: 25px;

    color: var(--text-light);

    line-height: 1.8;
}


/* =========================================================
CEO
========================================================= */

.ceo-section {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 60px;

    padding: 80px 0;

    align-items: center;
}

.ceo-image {
    width: 100%;

    overflow: hidden;

    border-radius: 25px;

    aspect-ratio: 4 / 5;
}

.ceo-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    object-position: center;

    display: block;
}

.ceo-content {
    align-self: center;
}

.ceo-content h2 {
    font-size: clamp(40px, 5vw, 65px);

    line-height: 1;

    font-weight: 500;

    letter-spacing: -2px;

    margin-bottom: 8px;
}

.ceo-title {
    margin-bottom: 35px;

    color: var(--green-light);

    font-weight: 600;
}

.ceo-content p:not(.section-label):not(.ceo-title) {
    margin-bottom: 22px;

    color: var(--text-light);

    line-height: 1.8;
}


/* =========================================================
VALUES
========================================================= */

.values-grid {
    display: grid;

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

    gap: 30px;

    padding: 30px 0 100px;
}

.value-card {
    padding: 45px;

    background: white;

    border-radius: 25px;

    box-shadow: var(--shadow);
}

.card-number {
    margin-bottom: 18px;

    font-size: 13px;

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

.value-card h3 {
    margin-bottom: 20px;

    font-size: 32px;

    font-weight: 500;
}

.value-card p:not(.card-number) {
    margin-bottom: 20px;

    color: var(--text-light);

    line-height: 1.7;
}


/* =========================================================
OUR APPROACH
========================================================= */

.approach-section {
    padding: 100px 0 30px;
}

.approach-content {
    max-width: 850px;
}

.approach-content p {
    margin-bottom: 25px;

    color: var(--text-light);

    line-height: 1.8;
}

.approach-highlight {
    padding: 30px;

    border-left: 4px solid var(--green-light);

    background: white;

    color: var(--green-dark) !important;

    font-size: 20px;

    font-weight: 500;
}


/* =========================================================
ENERGY INTRODUCTION
========================================================= */

.energy-introduction {
    max-width: 850px;

    margin-bottom: 80px;
}

.energy-introduction p {
    margin-bottom: 25px;

    color: var(--text-light);

    line-height: 1.8;
}


/* =========================================================
ENERGY SOLUTION CARDS
========================================================= */

.energy-solutions-grid {
    display: grid;

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

    gap: 30px;
}

.energy-card {
    overflow: hidden;

    background: var(--cream);

    border-radius: 25px;

    box-shadow: var(--shadow);

    transition: 0.3s ease;
}

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

.energy-card > img {
    width: 100%;

    height: 330px;

    object-fit: cover;

    display: block;
}

.energy-card-content {
    padding: 35px;
}

.energy-card h3 {
    margin-bottom: 18px;

    font-size: 30px;

    line-height: 1.15;

    font-weight: 500;
}

.energy-card-content p:not(.card-number) {
    margin-bottom: 20px;

    color: var(--text-light);

    line-height: 1.7;
}


/* =========================================================
TECHNOLOGY APPROACH
========================================================= */

.technology-approach {
    margin-top: 100px;

    padding: 80px;

    border-radius: 30px;

    background: var(--green-dark);

    color: white;
}

.technology-approach .section-label {
    color: var(--green-pale);
}

.technology-approach h2 {
    max-width: 800px;

    margin-bottom: 30px;

    font-size: clamp(36px, 5vw, 62px);

    line-height: 1.05;

    font-weight: 500;

    letter-spacing: -2px;
}

.technology-approach p:not(.section-label) {
    max-width: 800px;

    margin-bottom: 25px;

    color: rgba(255, 255, 255, 0.75);

    line-height: 1.8;
}


/* =========================================================
ENERGY DEVELOPMENT FOCUS
========================================================= */

.energy-focus {
    max-width: 850px;

    margin-top: 100px;
}

.energy-focus h2 {
    margin-bottom: 30px;

    font-size: clamp(36px, 5vw, 60px);

    line-height: 1.05;

    font-weight: 500;

    letter-spacing: -2px;
}

.energy-focus p:not(.section-label) {
    margin-bottom: 25px;

    color: var(--text-light);

    line-height: 1.8;
}


/* =========================================================
WASTE MANAGEMENT
========================================================= */

.waste-introduction {
    max-width: 850px;

    margin-bottom: 80px;
}

.waste-introduction p {
    margin-bottom: 25px;

    color: var(--text-light);

    line-height: 1.8;
}


/* =========================================================
RECYCLING PROCESS
========================================================= */

.recycling-process {
    display: grid;

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

    gap: 30px;
}

.process-card {
    overflow: hidden;

    background: white;

    border-radius: 25px;

    box-shadow: var(--shadow);
}

.process-card > img {
    width: 100%;

    height: 300px;

    object-fit: cover;

    display: block;
}

.process-content {
    padding: 35px;
}

.process-content h3 {
    margin-bottom: 18px;

    font-size: 28px;

    font-weight: 500;

    line-height: 1.2;
}

.process-content p:not(.card-number) {
    color: var(--text-light);

    line-height: 1.7;
}


/* =========================================================
QUALITY
========================================================= */

.quality-section {
    margin-top: 100px;

    padding: 90px;

    background: white;

    border-radius: 30px;
}

.quality-section h2 {
    max-width: 900px;

    margin-bottom: 35px;

    font-size: clamp(38px, 5vw, 65px);

    line-height: 1.05;

    font-weight: 500;

    letter-spacing: -2px;
}

.quality-section p:not(.section-label) {
    max-width: 850px;

    margin-bottom: 25px;

    color: var(--text-light);

    line-height: 1.8;
}


/* =========================================================
INDUSTRIAL RECOVERY
========================================================= */

.industrial-recovery {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;

    margin-top: 100px;
}

.industrial-image {
    width: 100%;

    overflow: hidden;

    border-radius: 30px;
}

.industrial-image img {
    width: 100%;

    height: auto;

    object-fit: contain;

    display: block;
}

.industrial-content h2 {
    margin-bottom: 30px;

    font-size: clamp(38px, 5vw, 60px);

    line-height: 1.05;

    font-weight: 500;

    letter-spacing: -2px;
}

.industrial-content p:not(.section-label) {
    margin-bottom: 25px;

    color: var(--text-light);

    line-height: 1.8;
}


/* =========================================================
CAREERS
========================================================= */

.careers-introduction {
    max-width: 850px;

    margin-bottom: 80px;
}

.careers-introduction p {
    margin-bottom: 25px;

    color: var(--text-light);

    line-height: 1.8;
}

.careers-values {
    display: grid;

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

    gap: 30px;
}

.careers-value {
    padding: 40px;

    background: white;

    border-radius: 25px;

    box-shadow: var(--shadow);
}

.careers-value:last-child {
    grid-column: span 2;
}

.careers-value h3 {
    margin-bottom: 18px;

    font-size: 28px;

    font-weight: 500;
}

.careers-value p {
    color: var(--text-light);

    line-height: 1.7;
}


/* =========================================================
VACANCIES
========================================================= */

.vacancies-section {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;

    margin-top: 100px;

    padding: 70px;

    background: var(--green-dark);

    border-radius: 30px;

    color: white;
}

.vacancies-content h2 {
    margin-bottom: 30px;

    font-size: clamp(36px, 4vw, 55px);

    line-height: 1.05;

    font-weight: 500;

    letter-spacing: -2px;
}

.vacancies-content p:not(.section-label):not(.career-highlight) {
    margin-bottom: 25px;

    color: rgba(255, 255, 255, 0.75);

    line-height: 1.8;
}

.vacancies-content .section-label {
    color: var(--green-pale);
}

.career-highlight {
    font-size: 20px;

    font-weight: 600;
}

.vacancies-image {
    min-height: 400px;

    overflow: hidden;

    border-radius: 20px;

    background: #294c3e;
}

.vacancies-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


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

.contact-section {
    background: white;
}

.contact-layout {
    display: grid;

    grid-template-columns: 1.3fr 0.7fr;

    gap: 70px;

    align-items: start;
}


/* CONTACT FORM */

.contact-form-container {
    padding: 50px;

    background: var(--cream);

    border-radius: 25px;
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;

    font-weight: 600;

    color: var(--green-dark);
}

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

    padding: 14px 16px;

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

    border-radius: 10px;

    background: white;

    color: var(--green-dark);

    outline: none;

    transition: 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green-light);

    box-shadow: 0 0 0 3px rgba(91, 128, 109, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-submit {
    border: none;

    background: var(--green-dark);

    color: white;

    cursor: pointer;
}
/* =========================================================
CONTACT LOGO
========================================================= */

.contact-logo {
    margin-bottom: 30px;
}

.contact-logo img {
    width: 180px;
    height: auto;
    display: block;
}

/* CONTACT DETAILS */

.contact-details {
    padding-top: 20px;
}

.contact-details h3 {
    margin-bottom: 40px;

    font-size: 38px;

    font-weight: 500;
}

.contact-detail-item {
    padding: 25px 0;

    border-top: 1px solid var(--border-light);
}

.contact-detail-item span {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;

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

.contact-detail-item p {
    color: var(--text-light);
}


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

footer {
    padding: 50px 7%;

    background: #173b2d;

    color: #ffffff;

    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    width: 150px;

    margin: 0 auto;

    filter: brightness(0) invert(1);
}

footer p {
    margin: 7px 0;

    color: rgba(255, 255, 255, 0.7);

    font-size: 13px;
}


/* =========================================================
RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1100px) {

    .nav-links {
        gap: 18px;
    }

    .nav-contact {
        padding: 10px 16px;
    }

    .about-block,
    .ceo-section,
    .industrial-recovery {
        gap: 40px;
    }

    .technology-approach,
    .quality-section,
    .vacancies-section {
        padding: 55px;
    }

    .hero-content {
        margin-left: 6%;
        margin-right: 6%;
    }
}


/* =========================================================
RESPONSIVE — TABLET / MOBILE NAVIGATION
========================================================= */

@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .nav-contact,
    .search-button,
    .language-button {
        display: none;
    }

    .navbar {
        left: 4%;
        right: 4%;
    }

    .mobile-menu-button {
        display: flex;

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

        width: 44px;
        height: 44px;

        cursor: pointer;

        border: none;
        background: transparent;

        z-index: 101;
    }

    .mobile-menu {
        position: fixed;

        top: 90px;
        left: 4%;
        right: 4%;

        z-index: 100;

        padding: 20px;

        background: white;

        border-radius: 20px;

        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);

        display: none;
    }

    .mobile-menu.active {
        display: block;
    }

    .mobile-menu a {
        display: block;

        padding: 14px;

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

        color: var(--green-dark);

        font-size: 15px;

        text-decoration: none;
    }

    .mobile-menu a:last-child {
        border-bottom: none;
    }


    /* MOBILE/TABLET CONTENT */

    .about-block,
    .ceo-section,
    .industrial-recovery,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .energy-solutions-grid,
    .recycling-process,
    .careers-values {
        grid-template-columns: 1fr;
    }

    .careers-value:last-child {
        grid-column: auto;
    }

    .vacancies-section {
        grid-template-columns: 1fr;
    }


    /* CEO */

    .ceo-image {
        width: 100%;
    }

    .ceo-image img {
        width: 100%;

        height: auto;

        display: block;
    }


    /* INDUSTRIAL RECOVERY */

    .industrial-image {
        min-height: auto;
    }

    .industrial-image img {
        width: 100%;

        height: auto;

        object-fit: contain;

        display: block;
    }
}


/* =========================================================
RESPONSIVE — SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    /* NAVBAR */

    .navbar {
        top: 15px;

        padding: 10px 14px;
    }

    .logo img {
        width: 120px;
    }

    .mobile-menu-button {
        width: 40px;

        height: 40px;
    }


    /* HERO */

    .hero-content {
        margin-left: 6%;

        margin-right: 6%;

        padding-top: 100px;
    }

    .hero h1 {
        font-size: 45px;

        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: flex-start;

        width: 100%;
    }


    /* SECTIONS */

    .about-section,
    .energy-section,
    .waste-section,
    .careers-section,
    .contact-section {
        padding: 70px 6%;
    }

    .section-heading {
        margin-bottom: 45px;
    }

    .about-block {
        padding: 50px 0;
    }

    .ceo-section {
        padding: 60px 0;
    }

    .ceo-image {
        min-height: auto;
    }


    /* INDUSTRIAL RECOVERY */

    .industrial-image {
        min-height: auto;
    }

    .industrial-image img {
        width: 100%;

        height: auto;

        object-fit: contain;

        display: block;
    }


    /* CARDS */

    .values-grid {
        grid-template-columns: 1fr;

        padding-bottom: 60px;
    }

    .value-card,
    .careers-value {
        padding: 30px;
    }

    .technology-approach,
    .quality-section,
    .vacancies-section {
        padding: 35px 25px;
    }

    .energy-card > img,
    .process-card > img {
        height: 250px;
    }


    /* CONTACT */

    .contact-form-container {
        padding: 50px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }


    /* FOOTER */

    footer {
        flex-direction: column;

        text-align: left;
    }
}


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

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

    .hero,
    .hero-content,
    .hero h1,
    .hero-description,
    .hero-buttons {
        animation: none;

        opacity: 1;

        transform: none;
    }
}