/* =========================================================
   MPLAST INDUSTRIES
   Main Website Styles
   ========================================================= */


/* ==============================
   1. DESIGN SYSTEM
   Change theme colours here only
   ============================== */

:root {

    /* =================================
       MPLAST THEME
       Provisional colours for now
       Change final brand identity here
       ================================= */

    --color-primary: #0066cc;
    --color-primary-hover: #0055aa;
    --color-secondary: #1a2040;
    --color-accent-light: #a5d3f9;

    --color-text: #172033;
    --color-text-medium: #566074;
    --color-text-light: #727b8e;

    --color-background: #ffffff;
    --color-background-alt: #f5f7fa;
    --color-background-tint: #f1f7fd;

    --color-border: #dfe4eb;

    /* Layout */
    --container-width: 1200px;

    --section-space: 52px;
    --section-space-mobile: 36px;

    --section-space-compact: 36px;
    --section-space-compact-mobile: 28px;

    /* Corners */
    --radius-sm: 5px;
    --radius-md: 8px;

    /* Shadows */
    --shadow-sm: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-md: 0 18px 45px rgba(0,0,0,0.10);

    /* Image Ratios */
    --category-card-image-ratio: 16 / 9;
    --industry-image-ratio: 16 / 9;
    --product-media-ratio: 1 / 1;


    /* =================================
       TEMPORARY COMPATIBILITY ALIASES
       ================================= */

    --brand-blue: var(--color-primary);
    --brand-navy: var(--color-secondary);
    --brand-light-blue: var(--color-accent-light);

    --text-dark: var(--color-text);
    --text-medium: var(--color-text-medium);
    --text-light: var(--color-text-light);

    --background: var(--color-background);
    --background-light: var(--color-background-alt);
    --background-blue: var(--color-background-tint);

    --border: var(--color-border);

    --radius: var(--radius-md);
}


/* ==============================
   2. GLOBAL
   ============================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text-dark);
    background: var(--background);

    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}


/* ==============================
   3. CONTAINER
   ============================== */

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}


/* ==============================
   4. TYPOGRAPHY
   ============================== */

h1,
h2,
h3 {
    color: var(--brand-navy);
    margin-top: 0;
    font-weight: 700;
}

h1 {
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

h2 {
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.8px;
}

h3 {
    font-size: 23px;
    line-height: 1.3;
}


/* ==============================
   5. HEADER & NAVIGATION
   ============================== */

.site-header {
    background: var(--brand-navy);

    position: sticky;
    top: 0;

    z-index: 1000;

    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-navigation .container {
    min-height: 82px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navigation-container {
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    display: block;

    width: auto;
    height: 52px;
    max-width: 220px;

    object-fit: contain;
}

.navigation-menu {
    display: flex;
    align-items: center;

    gap: 30px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.navigation-menu a {
    position: relative;

    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;
}

.navigation-menu a::after {
    
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--brand-light-blue);

    transition: width 0.25s ease;
}

.navigation-menu a:hover::after {
    width: 100%;
}


/* Mobile menu button */

.mobile-menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 8px;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.mobile-menu-toggle span {
    
    display: block;

    width: 24px;
    height: 2px;

    margin: 5px auto;

    background: var(--brand-light-blue);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ==============================
   6. BUTTONS
   ============================== */

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 12px 25px;

    border-radius: var(--radius-sm);

    font-weight: 650;

    text-decoration: none;

    transition: all 0.2s ease;
}

.button-primary {
    background: var(--brand-blue);
    border: 1px solid var(--brand-blue);

    color: #ffffff;
}

.button-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

.button-secondary {
    background: #ffffff;

    border: 1px solid var(--brand-blue);

    color: var(--brand-blue);
}

.button-secondary:hover {
    background: var(--background-blue);
}


/* ==============================
   7. SHARED SECTIONS
   ============================== */

section {
    padding: var(--section-space) 0;
}

.section-compact {
    padding: var(--section-space-compact) 0;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 32px;
}

.section-eyebrow {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 14px;

    color: var(--brand-blue);

    font-size: 13px;
    font-weight: 750;
    letter-spacing: 1.7px;

    text-transform: uppercase;
}

.section-eyebrow::before {
    content: "";

    width: 32px;
    height: 3px;

    background: var(--brand-blue);
}

.section-heading h2 {
    margin-bottom: 16px;
}

.section-heading > p:not(.section-eyebrow) {
    max-width: 700px;

    color: var(--text-medium);

    font-size: 18px;
}


/* ==============================
   8. HOMEPAGE HERO
   ============================== */

.hero {
    padding: 52px 0;

    background:
        linear-gradient(
            110deg,
            var(--color-background) 0%,
            var(--color-background) 60%,
            var(--color-background-tint) 100%
        );
}

.hero-container {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(360px, 0.95fr);

    gap: clamp(42px, 5vw, 68px);

    align-items: center;
}

.hero-content {
    max-width: 680px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 18px;

    color: var(--color-primary);

    font-size: 13px;
    font-weight: 750;
    letter-spacing: 1.7px;
}

.hero-eyebrow::before {
    content: "";

    width: 32px;
    height: 3px;

    flex: 0 0 32px;

    background: var(--color-primary);
}

.hero h1 {
    margin-bottom: 20px;
}

.hero-description {
    max-width: 640px;

    margin-bottom: 26px;

    color: var(--color-text-medium);

    font-size: 19px;
}

.hero-experience {
    display: inline-flex;
    flex-direction: column;

    padding-left: 18px;
    margin-bottom: 26px;

    border-left: 4px solid var(--color-primary);
}

.hero-experience strong {
    color: var(--color-secondary);

    font-size: 32px;
    line-height: 1.1;
}

.hero-experience span {
    margin-top: 5px;

    color: var(--color-text-medium);

    font-size: 14px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;
}


/* Hero image */

.hero-image {
    position: relative;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    border-radius: var(--radius-md);

    background: var(--color-background-alt);

    box-shadow: var(--shadow-md);
}

.hero-image::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    z-index: 2;

    width: 6px;
    height: 100%;

    background: var(--color-primary);
}

.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* Hero — Tablet */

@media (max-width: 1000px) {

    .hero-container {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hero-content {
        max-width: 760px;
    }

    .hero-image {
        aspect-ratio: 16 / 9;
    }

}


/* ==============================
   9. PRODUCTS
   ============================== */

.products-section {
    background: #ffffff;
}

.products-grid {
    display: grid;

    grid-template-columns: repeat(6, minmax(0, 1fr));

    gap: 26px;
}


/* Homepage product hierarchy:
   Row 1 = 2 primary categories
   Row 2 = 3 supporting categories */

.homepage-product-card {
    grid-column: span 2;
}

.homepage-product-card:nth-child(1),
.homepage-product-card:nth-child(2) {
    grid-column: span 3;
}

/* Standard product category card */

.product-category-card {
    position: relative;

    padding: 38px;

    border: 1px solid var(--border);
    border-top: 4px solid var(--brand-blue);

    border-radius: var(--radius);

    background: #ffffff;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.product-category-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 45px rgba(26,32,64,0.09);
}

.product-category-card h3 {
    margin-bottom: 13px;
}

.product-category-card p {
    color: var(--text-medium);
}

.product-category-card a {
    display: inline-block;

    margin-top: 8px;

    color: var(--brand-blue);

    font-weight: 650;

    text-decoration: none;
}


/* Image-ready product/category cards */

.image-ready-card,
.homepage-product-card {
    display: flex;
    flex-direction: column;

    padding: 0;

    overflow: hidden;
}

.product-card-image {
    aspect-ratio: var(--category-card-image-ratio);

    overflow: hidden;

    border-bottom: 1px solid var(--border);

    background: var(--background-light);
}

.product-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

/* Individual product cards use square product imagery */

.individual-product-card .product-card-image {
    aspect-ratio: var(--product-media-ratio);
}

.individual-product-card .product-card-image img {
    object-fit: contain;
}

.placeholder-image {
    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            var(--background-blue) 0%,
            var(--background-light) 100%
        );
}

.placeholder-image span {
    padding: 20px;

    color: var(--text-medium);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;

    text-align: center;
}

.product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 26px 26px 24px;
}

.product-card-body h2,
.product-card-body h3 {
    margin-bottom: 14px;
}

.product-card-body p {
    flex-grow: 1;

    margin-bottom: 22px;
}

.product-card-body a {
    margin-top: auto;
}


/* Product groups */

.product-group + .product-group {
    margin-top: 52px;
}


/* ==============================
   10. CAPABILITIES
   ============================== */

.capabilities-section {
    background: var(--color-secondary);
}

.capabilities-section .section-eyebrow {
    color: var(--color-accent-light);
}

.capabilities-section .section-eyebrow::before {
    background: var(--color-accent-light);
}

.capabilities-section .section-heading h2 {
    color: #ffffff;
}

.capabilities-section .section-heading > p {
    color: #c5cad7;
}

.capabilities-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.capability-card {
    padding: 30px;

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);

    background: rgba(255,255,255,0.06);
}

.capability-number {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--color-accent-light);

    font-size: 13px;
    font-weight: 750;
    letter-spacing: 1px;
}

.capability-card h3 {
    margin-bottom: 12px;

    color: #ffffff;

    font-size: 22px;
}

.capability-card p {
    margin: 0;

    color: #c5cad7;

    line-height: 1.65;
}


/* ==============================
   11. INDUSTRIES
   ============================== */

.industries-section {
    background: var(--color-background-alt);
}

.industries-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.industry-card {
    overflow: hidden;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    background: var(--color-background);
}

.industry-card-image {
    width: 100%;

    aspect-ratio: var(--industry-image-ratio);

    overflow: hidden;

    background: var(--color-background-alt);
}

.industry-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}



.industry-card h3 {
    margin: 22px 26px 10px;

    color: var(--color-secondary);

    font-size: 21px;
}

.industry-card p {
    margin: 0;
    padding: 0 26px 26px;

    color: var(--color-text-medium);

    font-size: 16px;
}


/* Individual industry image */

.industry-visual-section {
    padding-top: 0;

    background: var(--color-background);
}

.industry-main-image {
    width: 100%;

    aspect-ratio: var(--industry-image-ratio);

    overflow: hidden;

    border-radius: var(--radius-md);

    background: var(--color-background-alt);
}

.industry-main-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ==============================
   12. CUSTOM MANUFACTURING
   ============================== */

.custom-manufacturing-section {
    background: var(--color-background);
}

.custom-manufacturing-container {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    gap: 56px;

    align-items: start;
}

.custom-manufacturing-content h2 {
    margin-bottom: 18px;
}

.custom-manufacturing-content > p:not(.section-eyebrow) {
    margin-bottom: 26px;

    color: var(--color-text-medium);

    font-size: 18px;
}

.custom-manufacturing-steps {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 16px;
}

.development-step {
    position: relative;

    padding: 26px;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    background: var(--color-background-alt);
}

.development-step span {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--color-primary);

    font-size: 13px;
    font-weight: 750;
    letter-spacing: 1px;
}

.development-step h3 {
    margin-bottom: 9px;

    color: var(--color-secondary);

    font-size: 20px;
}

.development-step p {
    margin: 0;

    color: var(--color-text-medium);
}


/* ==============================
   13. WHY MPLAST
   ============================== */

.why-mplast-section {
    background: var(--color-background-tint);
}

.why-mplast-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.why-card {
    padding: 26px 24px;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    background: var(--color-background);
}

.why-card h3 {
    margin-bottom: 10px;

    color: var(--color-secondary);

    font-size: 20px;
}

.why-card p {
    margin: 0;

    color: var(--color-text-medium);

    font-size: 16px;
}


/* ==============================
   14. FINAL CTA
   ============================== */

.final-cta-section {
    background: var(--color-secondary);

    text-align: center;
}

.final-cta-content {
    max-width: 760px;
    margin: 0 auto;
}

.final-cta-section .section-eyebrow {
    justify-content: center;

    color: var(--color-accent-light);
}

.final-cta-section .section-eyebrow::before {
    display: none;
}

.final-cta-section h2 {
    margin-bottom: 16px;

    color: #ffffff;
}

.final-cta-content > p:not(.section-eyebrow) {
    margin-bottom: 24px;

    color: #c8ccda;

    font-size: 18px;
}

.final-cta-content .hero-actions {
    justify-content: center;
}

.final-cta-section .button-secondary {
    border-color: #ffffff;

    background: transparent;

    color: #ffffff;
}

.final-cta-section .button-secondary:hover {
    background: #ffffff;

    color: var(--color-secondary);
}


/* ==============================
   15. TABLET
   ============================== */

@media (max-width: 1000px) {

    .capabilities-grid,
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-mplast-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .custom-manufacturing-container {
        grid-template-columns: 1fr;
        gap: 38px;
    }

}


/* ==============================
   16. MOBILE
   ============================== */

@media (max-width: 768px) {
    .homepage-product-card,
    .homepage-product-card:nth-child(1),
    .homepage-product-card:nth-child(2) {
        grid-column: auto;
    }

    section {
        padding: var(--section-space-mobile) 0;
    }

    .section-compact {
        padding: var(--section-space-compact-mobile) 0;
    }


    /* Homepage Hero */

    .hero {
        padding: 40px 0;
    }

    .hero-container {
        gap: 30px;
    }

    .hero-image {
        aspect-ratio: 4 / 3;
    }

    .hero h1 br {
        display: none;
    }


    /* Navigation */

    .main-navigation .container {
        min-height: 68px;

        flex-direction: row;
        align-items: center;

        padding: 0;
    }

    .logo img {
        height: 44px;
        max-width: 190px;
    }

    .mobile-menu-toggle {
        display: block;

        margin-left: auto;
    }

    .navigation-menu {
        display: none;

        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        margin: 0;
        padding: 10px 0;

        border-top: 1px solid rgba(255,255,255,0.12);

        background: var(--brand-navy);

        box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    }

    .navigation-menu.is-open {
        display: flex;
    }

    .navigation-menu li {
        width: 100%;
    }

    .navigation-menu a {
        display: block;

        padding: 12px 20px;

        font-size: 15px;
    }

    .navigation-menu a::after {
        display: none;
    }
    
    .navigation-menu a:hover,
    .navigation-menu a:focus {
        background: rgba(255,255,255,0.06);
        color: var(--brand-light-blue);
    }


    /* Grids */

    .products-grid,
    .capabilities-grid,
    .industries-grid,
    .why-mplast-grid,
    .custom-manufacturing-steps {
        grid-template-columns: 1fr;
    }

    .product-group + .product-group {
        margin-top: 38px;
    }

}


/* ==============================
   17. SMALL MOBILE
   ============================== */

@media (max-width: 480px) {

    .container {
        width: 92%;
    }

    .button {
        width: 100%;
    }

}


/* =========================================================
   18. INNER PAGE HERO & PRODUCTS LANDING
   ========================================================= */

.page-hero {
    padding: 52px 0 46px;

    background: var(--background-blue);
}

.page-hero h1 {
    max-width: 850px;

    margin-bottom: 18px;
}

.page-hero-description {
    max-width: 760px;

    margin-bottom: 0;

    color: var(--text-medium);

    font-size: 19px;
}

.products-page-section {
    background: #ffffff;
}

.products-page-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 28px;
}

/* About page industry experience */

.about-industry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.product-family-card {
    padding: 42px;

    border: 1px solid var(--border);
    border-top: 4px solid var(--brand-blue);

    border-radius: var(--radius);

    background: #ffffff;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.product-family-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 18px 45px rgba(26,32,64,0.08);
}

.product-family-card h2 {
    margin-bottom: 14px;

    font-size: 28px;
}

.product-family-card p {
    margin-bottom: 22px;

    color: var(--text-medium);
}

.product-family-card a {
    color: var(--brand-blue);

    font-weight: 650;

    text-decoration: none;
}


@media (max-width: 768px) {

    .page-hero {
        padding: 40px 0 36px;
    }

    .products-page-grid {
        grid-template-columns: 1fr;
    }
    
    .about-industry-grid {
    grid-template-columns: 1fr;
    }

}

/* =========================================================
   19. PRODUCT DETAIL PAGE
   ========================================================= */

.product-detail-hero {
    background: var(--color-background);
}

.product-detail-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 56px;

    align-items: start;
}


/* Product media */

.product-main-media {
    aspect-ratio: var(--product-media-ratio);

    overflow: hidden;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    background: var(--color-background-alt);
}

.product-main-media img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.product-media-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    color: var(--color-text-medium);

    font-size: 16px;
    font-weight: 700;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            var(--background-blue),
            var(--background-light)
        );
}


/* Additional media */

.product-media-thumbnails {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;

    margin-top: 12px;
}

.product-media-thumbnail {
    aspect-ratio: 1 / 1;

    overflow: hidden;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);

    background: var(--color-background-alt);
}

.product-media-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* Product summary */

.product-summary {
    padding-top: 8px;
}

.product-summary h1 {
    margin-bottom: 20px;
}

.product-summary-description {
    margin-bottom: 28px;

    color: var(--color-text-medium);

    font-size: 19px;
}

.product-summary-block {
    margin-bottom: 28px;

    padding: 18px 20px;

    border-left: 4px solid var(--color-primary);

    background: var(--color-background-alt);
}

.product-summary-block h3 {
    margin-bottom: 6px;

    font-size: 17px;
}

.product-summary-block p {
    margin: 0;

    color: var(--color-text-medium);
}


/* Tablet */

@media (max-width: 900px) {

    .product-detail-layout {
        grid-template-columns: 1fr;

        gap: 36px;
    }

}


/* Mobile */

@media (max-width: 600px) {

    .product-media-thumbnails {
        grid-template-columns: repeat(4, 1fr);

        gap: 7px;
    }
    
    .product-specification-row {
        grid-template-columns: 1fr;
        }
    
    .product-specification-label {
        padding-bottom: 8px;
    }
    
    .product-specification-value {
        padding-top: 8px;
        overflow-wrap: anywhere;
    }
    
    }

/* Technical specifications */

.product-specifications {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.product-specification-row {
    display: grid;
    grid-template-columns: minmax(180px, 32%) 1fr;

    border-bottom: 1px solid var(--color-border);
}

.product-specification-row:last-child {
    border-bottom: none;
}

.product-specification-label,
.product-specification-value {
    padding: 14px 18px;
}

.product-specification-label {
    font-weight: 700;

    background: var(--color-background-alt);
}

.product-specification-value {
    color: var(--color-text-medium);
}

/* =========================================================
   20. CONTACT FORM
   ========================================================= */

.contact-form-wrapper {
    padding: 35px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: #ffffff;
}

.contact-form-wrapper h2 {
    margin-bottom: 25px;

    font-size: 30px;
}

.contact-form {
    display: grid;

    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.form-group label {
    color: var(--brand-navy);

    font-size: 14px;
    font-weight: 650;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    background: #ffffff;

    color: var(--text-dark);

    font: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;

    border-color: var(--brand-blue);
}

/* Form messages */

.form-message {
    margin-bottom: 22px;
    padding: 14px 16px;

    border-radius: var(--radius-sm);

    font-size: 15px;
}

.form-message-success {
    background: #edf8f0;
    border: 1px solid #b8dfc2;

    color: #245c31;
}

.form-message-error {
    background: #fff2f2;
    border: 1px solid #efc1c1;

    color: #8a2c2c;
}


/* Honeypot spam field */

.form-honeypot {
    position: absolute !important;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    clip-path: inset(50%);
}

/* Contact Form — Mobile */

@media (max-width: 600px) {

    .contact-form-wrapper {
        padding: 24px 20px;
    }

    .contact-form-wrapper h2 {
        font-size: 26px;
    }

}

/* =========================================================
   21. FOOTER
   ========================================================= */

.site-footer {
    padding: 70px 0 0;

    background: #10152b;

    color: #c1c7d4;

    text-align: left;
}

.footer-grid {
    display: grid;

    grid-template-columns: 1.4fr 1fr 1fr 1fr;

    gap: 50px;

    padding-bottom: 55px;
}

.footer-column {
    min-width: 0;
}

.footer-column h3 {
    margin-bottom: 20px;

    color: #ffffff;

    font-size: 17px;
}

.footer-brand p {
    max-width: 330px;

    color: #aeb5c5;
}

.footer-logo {
    display: inline-block;

    margin-bottom: 22px;
}

.footer-logo img {
    width: auto;
    height: 50px;
    max-width: 200px;

    object-fit: contain;
}

.footer-location {
    margin-top: 0;
}

.footer-links {
    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-links li {
    margin-bottom: 11px;
}

.footer-links a,
.footer-column a {
    color: #c1c7d4;

    text-decoration: none;
}

.footer-links a:hover,
.footer-column a:hover {
    color: #ffffff;
}

.footer-enquiry-link {
    display: inline-block;

    margin-top: 10px;

    color: var(--brand-light-blue) !important;

    font-weight: 650;
}

.footer-bottom {
    padding: 20px 0;

    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 0;

    color: #8f97aa;

    font-size: 13px;
}


/* ==============================
   FOOTER — TABLET
   ============================== */

@media (max-width: 900px) {

    .site-footer {
        padding-top: 48px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 36px 32px;

        padding-bottom: 38px;
    }

}


/* ==============================
   FOOTER — MOBILE

   Row 1:
   MPLAST + Address | Products

   Row 2:
   Company          | Contact
   ============================== */

@media (max-width: 600px) {
    
    .site-footer {
        padding-top: 32px;
    }
    
    .footer-grid {
        grid-template-columns:
            minmax(0, 1.15fr)
            minmax(0, 0.85fr);

        gap: 28px 20px;

        padding-bottom: 28px;
    }

    .footer-column {
        text-align: left;
    }


    /* MPLAST logo + address */

    .footer-column:nth-child(1) {
        grid-column: 1;
        grid-row: 1;

        padding-top: 20px;
    }

    .footer-logo {
        margin-bottom: 16px;
    }

    .footer-logo img {
        height: 42px;
        max-width: 165px;
    }

    .footer-brand p {
        max-width: 100%;

        margin-top: 0;
        margin-bottom: 0;

        font-size: 13px;
        line-height: 1.5;
    }


    /* Products */

    .footer-column:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }


    /* Company */

    .footer-column:nth-child(3) {
        grid-column: 1;
        grid-row: 2;

        padding-top: 2px;
    }


    /* Contact */

    .footer-column:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
        
        padding-top: 5px;
    }


    /* Headings */

    .footer-column h3 {
        margin-bottom: 10px;

        font-size: 15px;
    }


    /* Tighter Product + Company link spacing */

    .footer-links li {
        margin-bottom: 5px;
    }


    /* General footer text */

    .footer-links a,
    .footer-column a,
    .footer-column p {
        font-size: 13px;
        line-height: 1.45;
    }


    /* More separation before enquiry link */

    .footer-enquiry-link {
        margin-top: 28px;
        font-size:  14px;
    }


    /* Copyright */

    .footer-bottom {
        padding: 15px 0;

        text-align: center;
    }

    .footer-bottom p {
        font-size: 14px;
    }

}

/* ==============================
   FOOTER — VERY SMALL MOBILE
   ============================== */

@media (max-width: 380px) {

    .footer-grid {
        grid-template-columns:
            minmax(0, 1.1fr)
            minmax(0, 0.9fr);

        gap: 26px 14px;
    }

    .footer-logo img {
        height: 38px;
        max-width: 150px;
    }

    .footer-column h3 {
        font-size: 14px;
    }

    .footer-links a,
    .footer-column a,
    .footer-column p {
        font-size: 12.5px;
    }

}

@media (max-width: 340px) {

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-column:nth-child(1),
    .footer-column:nth-child(2),
    .footer-column:nth-child(3),
    .footer-column:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
        padding-top: 0;
    }

}