
/* =========================================
   DENHAM RECRUITMENT
   Corporate Website
========================================= */

:root {
    --navy: #043e59;
    --blue-grey: #7696a3;
    --light: #f4f7f8;
    --white: #ffffff;
    --text: #263942;
    --muted: #667780;
    --border: #dce5e9;

    --heading: 'Montserrat', sans-serif;
    --body: 'Inter', sans-serif;

    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: var(--body);
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}

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

button {
    font: inherit;
}

img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.container {
    width: min(var(--container), 90%);
    margin: auto;
}

.section-padding {
    padding: 105px 0;
}


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

.header {
    height: 82px;
    background: var(--white);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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


.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
    line-height: 1;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    max-width: 100%;
    background: #ffffff;
}

/* Compact overlapping-square symbol */
.logo-symbol {
    position: relative;
    width: 52px;
    height: 48px;
    flex: 0 0 52px;
}

.square-outline {
    position: absolute;
    width: 33px;
    height: 33px;
    left: 0;
    top: 14px;
    border: 2px solid #009BB5;
    box-sizing: border-box;
}

.square-solid {
    position: absolute;
    width: 34px;
    height: 34px;
    left: 19px;
    top: 0;
    background: #009BB5;
}

/* Wordmark */
.logo-wordmark {
    display: flex;
    flex-direction: column;
    color: #003B50;
    font-family: Arial, Helvetica, sans-serif;
    line-height: .98;
    white-space: nowrap;
}

.logo-name {
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -1px;
}

.logo-subtitle {
    font-size: 19px;
    font-weight: 400;
    letter-spacing: .1px;
    margin-top: 3px;
}

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

.navigation a {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    transition: color .25s;
}

.navigation a:hover {
    color: var(--blue-grey);
}

.navigation .nav-contact {
    background: var(--navy);
    color: white;
    padding: 12px 22px;
    border-radius: 3px;
}

.navigation .nav-contact:hover {
    background: var(--blue-grey);
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--navy);
    cursor: pointer;
}


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

.hero {
    min-height: 610px;
    background:
        linear-gradient(90deg,
        rgba(4, 62, 89, .97),
        rgba(4, 62, 89, .78)),
        url("images/hero.jpg") center/cover no-repeat;

    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 80px;
}

.eyebrow {
    display: inline-block;
    color: var(--blue-grey);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 18px;
}

.eyebrow.light {
    color: #b7cbd3;
}

.hero h1 {
    font-family: var(--heading);
    font-size: clamp(38px, 5.5vw, 67px);
    line-height: 1.16;
    max-width: 800px;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -2px;
}

.hero p {
    max-width: 610px;
    font-size: 17px;
    color: #e1ebef;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    transition: .25s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--blue-grey);
    color: white;
}

.btn-primary:hover {
    background: white;
    color: var(--navy);
}

.btn-outline {
    border-color: rgba(255,255,255,.6);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--navy);
}

.btn-white {
    background: white;
    color: var(--navy);
}

.btn-white:hover {
    background: var(--blue-grey);
    color: white;
}

.hero-bottom {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 18px 0;
    background: rgba(0,0,0,.13);
    border-top: 1px solid rgba(255,255,255,.15);
}

.hero-bottom span {
    font-size: 11px;
    letter-spacing: 1px;
    color: #d7e4e9;
}



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

.intro {
    background: var(--white);
}

.intro-content {
    max-width: 820px;
    margin: 0 auto;
}

.intro-content h2 {
    max-width: 720px;
    margin-bottom: 30px;
}

.intro-content p {
    max-width: 790px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 20px;
}

.text-link {
    display: inline-block;
    color: var(--navy);
    font-weight: 700;
    font-size: 13px;
    margin-top: 15px;
    transition: color .25s ease;
}

.text-link:hover {
    color: var(--blue-grey);
}



/* =========================================
   SPECIALISMS
========================================= */

.specialisms {
    background: var(--light);
}

.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 55px;
}

.section-heading p {
    font-size: 14px;
    color: var(--muted);
}

.specialism-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.specialism-card {
    background: white;
    padding: 35px 25px;
    border: 1px solid var(--border);
    transition: .3s ease;
}

.specialism-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-grey);
    box-shadow: 0 12px 30px rgba(4,62,89,.07);
}

.card-number {
    color: var(--blue-grey);
    font-family: var(--heading);
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 25px;
}

.specialism-card h3 {
    font-family: var(--heading);
    color: var(--navy);
    font-size: 17px;
    margin-bottom: 15px;
}

.specialism-card p {
    color: var(--muted);
    font-size: 13px;
}


/* =========================================
   EMPLOYERS
========================================= */

.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.audience-grid p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.audience-grid .btn {
    margin-top: 12px;
}


/* =========================================
   CANDIDATES
========================================= */

.candidates {
    background: var(--navy);
    color: white;
}

.candidates-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 100px;
    align-items: center;
}

.candidates h2 {
    color: white;
}

.candidates p {
    color: #c6d7de;
    font-size: 14px;
    margin-bottom: 28px;
}

.candidate-highlight {
    padding: 35px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.04);
}

.highlight-icon {
    font-family: var(--heading);
    font-size: 35px;
    color: var(--blue-grey);
    font-weight: 700;
}

.candidate-highlight h3 {
    font-family: var(--heading);
    margin: 15px 0;
    font-size: 21px;
}

.candidate-highlight p {
    margin-bottom: 0;
}


/* =========================================
   OPPORTUNITIES
========================================= */

.opportunities {
    overflow: hidden;
    background: var(--light);
}

.opportunities-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.opportunities-heading h2 {
    margin-bottom: 12px;
}

.opportunities-heading p {
    font-size: 14px;
    color: var(--muted);
}

.carousel-controls {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid var(--border);
    color: var(--navy);
    cursor: pointer;
    font-size: 20px;
    transition: .25s;
}

.carousel-btn:hover {
    background: var(--navy);
    color: white;
}

.job-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 5px 2px 25px;
    scrollbar-width: thin;
    scrollbar-color: var(--blue-grey) transparent;
}

.job-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
    background: white;
    border: 1px solid var(--border);
    padding: 35px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    min-height: 285px;
    transition: .3s;
}

.job-card:hover {
    border-color: var(--blue-grey);
    transform: translateY(-4px);
}

.job-sector {
    color: var(--blue-grey);
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 25px;
}

.job-card h3 {
    font-family: var(--heading);
    color: var(--navy);
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.job-card p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 25px;
}

.job-type {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
}

.opportunities-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    gap: 20px;
}

.opportunities-footer p {
    color: var(--muted);
    font-size: 13px;
}


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

.contact {
    background: var(--navy);
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.contact h2 {
    color: white;
}

.contact-intro p {
    color: #c6d7de;
    font-size: 14px;
    max-width: 480px;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    flex-direction: column;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255,255,255,.2);
}

.contact-item span {
    font-size: 11px;
    color: #a9c1cc;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.contact-item strong {
    font-size: 16px;
    font-weight: 600;
}

.contact-item:hover strong {
    color: #b7cbd3;
}


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

.footer {
    background: #032e43;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 70px;
    padding-top: 65px;
    padding-bottom: 65px;
}

.logo-footer {
    color: white;
    display: inline-flex;
}

.footer-brand p {
    max-width: 290px;
    color: #b6cbd4;
    font-size: 12px;
    margin-top: 22px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    font-family: var(--heading);
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 12px;
    color: #b6cbd4;
    transition: .2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom span,
.footer-bottom a {
    font-size: 11px;
    color: #a9c1cc;
}

.footer-bottom a:hover {
    color: white;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .nav-container {
        gap: 18px;
    }

    .brand-logo {
        gap: 9px;
    }

    .logo-symbol {
        transform: scale(.88);
        transform-origin: left center;
        margin-right: -6px;
    }

    .logo-name {
        font-size: 27px;
    }

    .logo-subtitle {
        font-size: 17px;
    }

    .navigation {
        gap: 13px;
    }

    .navigation a {
        font-size: 10px;
    }

    .specialism-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .intro-grid,
    .audience-grid,
    .candidates-grid,
    .contact-grid {
        gap: 45px;
    }

}

@media (max-width: 760px) {

    .nav-container {
        gap: 12px;
    }

    .brand-logo {
        gap: 8px;
    }

    .logo-symbol {
        width: 42px;
        height: 40px;
        flex-basis: 42px;
    }

    .square-outline {
        width: 27px;
        height: 27px;
        top: 12px;
        border-width: 2px;
    }

    .square-solid {
        width: 28px;
        height: 28px;
        left: 15px;
    }

    .logo-name {
        font-size: 24px;
        letter-spacing: -.7px;
    }

    .logo-subtitle {
        font-size: 15px;
        margin-top: 2px;
    }

    .section-padding {
        padding: 70px 0;
    }

    .header {
        height: 72px;
    }

    .menu-toggle {
        display: block;
    }

    .navigation {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 5% 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 20px rgba(0,0,0,.06);
    }

    .navigation.active {
        display: flex;
    }

    .navigation a {
        padding: 13px 0;
        font-size: 13px;
    }

    .navigation .nav-contact {
        text-align: center;
        margin-top: 10px;
    }

    .hero {
        min-height: 580px;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 14px;
    }

    .intro-grid,
    .audience-grid,
    .candidates-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .intro-image {
        height: 300px;
    }

    .specialism-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .specialism-card {
        padding: 25px 18px;
    }

    .specialism-card h3 {
        font-size: 15px;
    }

    .specialism-card p {
        font-size: 12px;
    }

    .opportunities-heading {
        align-items: start;
        flex-direction: column;
    }

    .job-card {
        flex: 0 0 85%;
    }

    .opportunities-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

}

@media (max-width: 420px) {

    .hero h1 {
        font-size: 35px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .specialism-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

}
