/* =========================
   Header
========================= */

.header {
    height: 120px;

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

    padding: 0 30px;

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

    background: var(--color-surface);
    box-shadow: var(--shadow-header);
}

.header nav {
    display: flex;
    align-items: center;
    gap: 35px;
}


/* =========================
   Hero
========================= */

.hero {
    min-height: 80vh;

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

    padding: 60px 80px;

    text-align: center;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.35)
        ),
        url("../images/HeroPhoto.png");

    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 750px;
    color: #ffffff;
}


/* =========================
   Why Truepack
========================= */

.why {
    padding: 90px 80px;
}

.why-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
    gap: 64px;

    max-width: 1320px;
    margin: 0 auto;
    padding: 54px 58px;

    background: var(--color-surface-soft);
    border: 1px solid var(--color-border-soft);
    border-radius: 24px;

    direction: ltr;
}

.why-image,
.why-content {
    min-width: 0;
}


/* =========================
   Services
========================= */

.services {
    padding: 100px 80px;
    text-align: center;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 25px;

    max-width: 900px;
    margin: 0 auto;
}


/* =========================
   Machines
========================= */

.machines {
    padding: 100px 80px;
    background: var(--color-surface-soft);
}

.machines-heading {
    max-width: 720px;
    margin: 0 auto 28px;
    text-align: center;
}

.machine-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 12px;

    margin: 0 auto 44px;
}

.machines-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 26px;

    max-width: 1180px;
    margin: 0 auto;
}

.machines-actions {
    display: flex;
    align-items: center;
    justify-content: center;

    max-width: 1180px;
    margin: 46px auto 0;
    padding: 42px 32px;
}


/* =========================
   Contact
========================= */

.contact {
    padding: 100px 80px;
    text-align: center;
}

.contact-container {
    display: flex;
    justify-content: center;

    gap: 25px;

    margin-bottom: 40px;
}


/* =========================
   Mobile-only Layout Blocks
========================= */

.mobile-hero {
    display: none;
}


/* =========================
   Language Direction
========================= */

html[dir="rtl"] .why-content {
    direction: rtl;
}

html[dir="ltr"] .why-content {
    direction: ltr;
    text-align: left;
}
