/* =========================================
   TNL GROUP - CORPORATE WEBSITE
========================================= */

/* CSS VARIABLES */
:root {
    --primary-blue: #0A2540;
    --accent-gold: #D4AF37;
    --white: #FFFFFF;
    --black: #111820;
    --text-muted: #66717D;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --container: 1200px;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-main);
    color: var(--black);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
}

.container {
    width: 90%;
    max-width: var(--container);
    margin: 0 auto;
}

/* TYPOGRAPHY */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
}


/* =========================================
   HEADER & NAVIGATION
========================================= */

header {
    background: var(--white);
    color: var(--primary-blue);
    padding: 15px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 75px;
    border-bottom: 1px solid rgba(10, 37, 64, 0.08);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
}

.logo {
    font-family:'Courier New', Courier, monospace;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 2px;
    line-height: 1;
}

.logo span {
    color: var(--accent-gold);
    font-size: 0.7rem;
    display: block;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

.menu-toggle {
    display: block;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    margin-left: auto; 
    padding-right: 0;
}

nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    list-style-type: none; 
}

nav ul.active {
    display: flex;
}

nav ul li {
    text-align: center;
    padding: 12px 0;
}

nav ul li a {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.7px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-gold);
}


/* =========================================
   BUTTONS
========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px 25px;
    min-height: 55px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--primary-blue);
}

.btn-gold:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.btn-arrow {
    font-size: 20px;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(5px);
}


/* =========================================
   GROUP MAIN HERO
========================================= */

.group-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--primary-blue);
    background-image:
        linear-gradient(
            90deg,
            rgba(10, 37, 64, 0.97) 0%,
            rgba(10, 37, 64, 0.83) 35%,
            rgba(10, 37, 64, 0.55) 60%
        ),
        url('../assets/images/banner.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 130px 0 100px;
}

.group-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    text-align: left;
    width: 100%;
}

.group-hero h1 {
    font-size: clamp(36px, 9vw, 48px);
    max-width: 90%;
    margin-top: 15%;
    margin-bottom: 25px;
}

.group-hero h1 span {
    color: var(--accent-gold);
}

.group-hero p {
    font-size: 15px;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    margin-left: 0;
    margin-right: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 25px;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.hero-scroll span {
    width: 35px;
    height: 1px;
    background: var(--accent-gold);
}

.hero-scroll small {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* =========================================
   INDIVIDUAL COMPANY HERO SECTIONS
========================================= */

.company-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    overflow: hidden;
}

.company-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(10, 37, 64, 0.96) 0%,
        rgba(10, 37, 64, 0.84) 45%,
        rgba(10, 37, 64, 0.25) 100%
    );
}

.company-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.company-content h2 {
    font-size: clamp(34px, 9vw, 45px);
    max-width: 750px;
    margin-bottom: 25px;
}

.company-content h2 span {
    display: block;
    color: var(--accent-gold);
}

.company-content p {
    max-width: 600px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 25px;
    margin-left: 0;
}

.company-tagline {
    color: var(--accent-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 35px;
}

.company-number {
    position: absolute;
    z-index: 2;
    bottom: 25px;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    letter-spacing: 2px;
}

.company-number span:first-child {
    color: var(--accent-gold);
    font-weight: 700;
}

.number-line {
    width: 55px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
}


/* COMPANY 1: AUTO PARTS */

.auto-hero {
    background-color: #172C3F;
    background-image: url('../assets/images/auto-hero.jpg');
    background-position: center;
}

.auto-hero .company-overlay {
    background: linear-gradient(
        90deg,
        rgba(10, 37, 64, 0.97) 0%,
        rgba(10, 37, 64, 0.87) 45%,
        rgba(10, 37, 64, 0.30) 100%
    );
}


/* COMPANY 2: TRADE & LOGISTICS */

.logistics-hero {
    background-color: #172C3F;
    background-image: url('../assets/images/logistics-hero.jpg');
    background-position: center;
}

.logistics-hero .company-overlay {
    background: linear-gradient(
        90deg,
        rgba(10, 37, 64, 0.30) 0%,
        rgba(10, 37, 64, 0.85) 50%,
        rgba(10, 37, 64, 0.97) 100%
    );
}

/* Mobile overrides for Logistics Hero */
@media (max-width: 767px) {
    .logistics-hero .company-content {
        text-align: left;
        align-items: flex-start;
    }

    .logistics-hero .company-content p {
        margin-left: 0;
    }

    .logistics-hero .eyebrow {
        flex-direction: row;
    }
    
    .logistics-hero .company-overlay {
        background: linear-gradient(
            90deg,
            rgba(10, 37, 64, 0.96) 0%,
            rgba(10, 37, 64, 0.84) 45%,
            rgba(10, 37, 64, 0.25) 100%
        );
    }
}

/* Desktop overrides for Logistics Hero */
@media (min-width: 768px) {
    .logistics-hero .company-content {
        text-align: right;
        align-items: flex-end;
    }

    .logistics-hero .company-content p {
        margin-left: auto;
        margin-right: 0;
    }

    .logistics-hero .eyebrow {
        flex-direction: row-reverse;
    }
}


/* =========================================
   GROUP CONTACT SECTION
========================================= */

.group-contact {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 80px 5%;
}

.contact-content {
    max-width: 850px;
    margin: 0 auto;
}

.contact-content .eyebrow {
    justify-content: center;
}

.contact-content h2 {
    font-size: 36px;
    margin-bottom: 25px;
}

.contact-content h2 span {
    color: var(--accent-gold);
}

.contact-content p {
    max-width: 650px;
    margin: 0 auto 35px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}


/* =========================================
   FOOTER
========================================= */

footer {
    background: #000000;
    color: var(--white);
    text-align: center;
    padding: 25px 5%;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


/* =========================================
   TABLET AND DESKTOP
========================================= */

@media (min-width: 768px) {

    header {
        padding: 18px 5%;
        min-height: 85px;
    }

    .logo {
        font-size: 1.7rem;
    }

    .menu-toggle {
        display: none;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        position: static;
        background: none;
        padding: 0;
        gap: 30px;
        border: none;
        width: auto;
    }

    nav ul li {
        padding: 0;
    }

    .group-hero {
        min-height: 78vh;
        padding: 150px 0 110px;
    }

    .group-hero h1 {
        font-size: 3.8rem;
    }

    .group-hero p {
        font-size: 17px;
    }

    .company-hero {
        min-height: 78vh;
    }

    .company-content h2 {
        font-size: clamp(36px, 5vw, 62px);
    }

    .company-content p {
        font-size: 16px;
    }

    .company-tagline {
        font-size: 14px;
    }
    
    .group-contact {
        padding: 110px 5%;
    }

    .contact-content h2 {
        font-size: clamp(34px, 5vw, 55px);
    }
}

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */

@media (max-width: 767px) {
    .container {
        width: 90%;
    }
    
    .btn {
        padding: 14px 18px;
        font-size: 11px;
        gap: 12px;
        width: 100%; /* Makes buttons full width on mobile for easier tapping */
        max-width: 300px;
    }
}