/* =========================================
   Variables & Reset  (light theme)
   ========================================= */
:root {
    /* Logo palette: red + charcoal on white */
    --primary-color: #e60000;
    --primary-dark: #b00000;
    --primary-text: #d10000;
    --primary-tint: rgba(230, 0, 0, 0.09);

    --bg-base: #ffffff;
    --bg-soft: #f3f5f8;
    --bg-card: #ffffff;
    --bg-deep: #0d0f12;
    --charcoal: #14171b;
    --ink: #1a1d21;
    --text-main: #3a4452;
    --text-light: #667085;
    --white: #ffffff;
    --line: #e3e7ed;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 12px 30px -14px rgba(26, 29, 33, 0.25);
    --header-h: 80px;
}

/* Dark blocks (hero, product range, footer): same tokens, dark values */
.section-dark {
    --bg-base: #14171b;
    --bg-soft: #1b1f25;
    --bg-card: #232830;
    --ink: #ffffff;
    --text-main: #c9ced6;
    --text-light: #99a1ad;
    --line: rgba(255, 255, 255, 0.09);
    --primary-text: #ff3535;
    --primary-tint: rgba(230, 0, 0, 0.14);
    --shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
}

.section.section-dark {
    background: var(--bg-base);
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.7;
    background: var(--bg-base);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--ink);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--bg-base);
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

/* =========================================
   Section system
   Every section = .section + optional .section-alt
   White and soft-grey alternate, with a divider line between them.
   ========================================= */
.section {
    padding: 90px 0;
    background: var(--bg-base);
    border-top: 1px solid var(--line);
    scroll-margin-top: var(--header-h);
}

.section-alt {
    background: var(--bg-soft);
}

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

.section-head p {
    color: var(--text-light);
    font-size: 17px;
    margin-top: 15px;
}

.section-subtitle {
    color: var(--primary-text);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-title {
    font-size: 38px;
    margin-bottom: 0;
}

.section-title span {
    color: var(--primary-text);
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    margin: 18px 0 0;
}

.section-head .section-title::after {
    margin: 18px auto 0;
}

/* =========================================
   Top Bar
   ========================================= */
.top-bar {
    background: var(--charcoal);
    color: #aab1bc;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact span {
    margin-right: 20px;
}

.top-contact i {
    color: var(--primary-color);
    margin-right: 5px;
}

.top-social a {
    color: #aab1bc;
    margin-left: 15px;
    font-size: 14px;
}

.top-social a:hover {
    color: var(--primary-color);
}

/* =========================================
   Main Header
   ========================================= */
.main-header {
    background: #ffffff;
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);
}

.logo-img {
    display: block;
    max-height: 70px;
}

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

.nav-links>li {
    margin: 0 15px;
    position: relative;
}

.nav-links>li>a {
    font-weight: 600;
    color: #1a1d21;
    font-size: 15px;
    padding: 10px 0;
    display: block;
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
    color: var(--primary-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 240px;
    background: #ffffff;
    box-shadow: var(--shadow);
    border: 1px solid #e3e7ed;
    border-top: 3px solid var(--primary-color);
    border-radius: 4px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown-menu li a {
    display: block;
    padding: 9px 20px;
    color: #3a4452;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background: #f3f5f8;
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: #1a1d21;
    cursor: pointer;
}

/* =========================================
   1. Hero
   ========================================= */
.hero-section {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1581092334651-ddf26d9a09d0?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 15, 18, 0.96) 0%, rgba(13, 15, 18, 0.82) 50%, rgba(13, 15, 18, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 40px;
    padding-bottom: 110px;
}

.hero-content .subtitle {
    display: inline-block;
    color: var(--primary-text);
    background: var(--primary-tint);
    border: 1px solid rgba(255, 53, 53, 0.35);
    font-weight: 600;
    font-size: 14px;
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 22px;
}

.hero-content h2 {
    max-width: 820px;
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 22px;
    line-height: 1.1;
}

.hero-content h2 span {
    color: var(--primary-text);
}

.hero-content p {
    color: #dfe3e9;
    font-size: 19px;
    margin-bottom: 36px;
    max-width: 620px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* =========================================
   2. Categories (overlaps hero)
   ========================================= */
.categories-section {
    background: transparent;
    padding: 0 0 90px;
    margin-top: -70px;
    position: relative;
    z-index: 10;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.highlight-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-6px);
}

.highlight-card .icon {
    width: 68px;
    height: 68px;
    background: var(--primary-tint);
    color: var(--primary-text);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.highlight-card h3 {
    margin-bottom: 12px;
    font-size: 21px;
}

.highlight-card p {
    color: var(--text-light);
    margin-bottom: 18px;
    font-size: 15px;
}

.highlight-card .read-more {
    color: var(--primary-text);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.highlight-card .read-more:hover {
    color: var(--white);
}

/* Section 4 uses the same cards on a soft background */
.section-alt .highlight-card {
    border-top-color: var(--line);
}

.section-alt .highlight-card:hover {
    border-top-color: var(--primary-color);
}


/* Category blocks: image on top, links below (reference-style) */
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.category-card .product-img {
    height: 200px;
}

.category-body {
    padding: 24px 28px 28px;
}

.category-body h3 {
    font-size: 21px;
    margin-bottom: 14px;
}

.link-list li {
    border-top: 1px solid var(--line);
}

.link-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-main);
}

.link-list li a::after {
    content: '\203A';
    color: var(--primary-color);
    font-size: 20px;
    line-height: 1;
}

.link-list li a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

/* Material grades as tags */
.grade-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.grade-list li {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 50px;
    padding: 4px 13px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
}

/* =========================================
   3. About  &  5. Mission / Industries (two-column layout)
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.img-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--primary-color);
    color: var(--white);
    padding: 16px 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.experience-badge .years {
    font-size: 38px;
    font-weight: 800;
    font-family: var(--font-heading);
}

.experience-badge .text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.about-content p {
    margin: 22px 0 0;
    font-size: 16px;
}

.about-content p+p {
    margin-top: 16px;
}

.features-list {
    margin: 26px 0;
}

.features-list li {
    margin-bottom: 14px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li i {
    color: var(--primary-text);
    font-size: 20px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 26px 28px;
    box-shadow: var(--shadow);
    margin-top: 22px;
}

.info-card h3 {
    font-size: 21px;
    margin-bottom: 8px;
}

.info-card p {
    color: var(--text-light);
    margin: 0;
}

#mission .about-grid {
    align-items: start;
}

.industries-lead {
    margin: 22px 0 26px;
    font-size: 16px;
}

.industry-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0;
}

.industry-list li {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px 20px;
    margin: 0;
}

.industry-list li i {
    font-size: 22px;
    color: var(--primary-text);
}

/* =========================================
   6. Products range
   ========================================= */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.products-grid .product-card {
    flex: 0 0 calc((100% - 72px) / 4);
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* Icon shows only if the photo is missing; the photo sits on top of it */
.product-img {
    position: relative;
    height: 200px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--primary-color);
}

.product-img i {
    font-size: 44px;
    color: var(--primary-text);
}

.product-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-body {
    padding: 20px 22px 24px;
}

.product-body h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.product-body p {
    color: var(--text-light);
    font-size: 14px;
}

.product-card {
    scroll-margin-top: 100px;
}

.product-card:target {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.35);
}

/* =========================================
   7. Materials
   ========================================= */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.material-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.material-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.material-info {
    padding: 22px 24px;
    border-top: 3px solid var(--primary-color);
}

.material-info h3 {
    margin-bottom: 8px;
    font-size: 21px;
}

.material-info p {
    color: var(--text-light);
    font-size: 14px;
}


/* =========================================
   Blog
   ========================================= */
.blog-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}

.blog-card {
    flex: 0 0 calc((100% - 56px) / 3);
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.blog-card .product-img {
    height: 210px;
}

.blog-card h3 {
    font-size: 21px;
    margin-bottom: 8px;
}

.blog-card h3 a:hover {
    color: var(--primary-color);
}

.blog-card p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 14px;
}

.blog-card .read-more {
    color: var(--primary-text);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.blog-more p {
    margin-bottom: 10px;
}

.blog-card .read-more:hover {
    color: var(--primary-dark);
}


/* =========================================
   8. CTA (light red tint)
   ========================================= */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border-top: 1px solid var(--line);
    padding: 80px 0;
    text-align: center;
}

.cta-container h2 {
    font-size: 34px;
    margin-bottom: 14px;
    color: var(--white);
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary-dark);
}

.cta-section .btn-primary:hover {
    background: var(--bg-base);
    color: var(--white);
}

.cta-container p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 28px;
}

/* =========================================
   9. Footer
   ========================================= */
.main-footer {
    background: var(--bg-base);
    border-top: 4px solid var(--primary-color);
    color: var(--text-main);
    padding-top: 70px;
    scroll-margin-top: var(--header-h);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 55px;
}

.about-col p {
    margin-bottom: 22px;
}

/* logo has a white background, so it sits on a white card in the dark footer */
.footer-logo {
    display: inline-block;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 20px;
}

.footer-logo .logo-img {
    margin-bottom: 0 !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--white);
    margin-right: 10px;
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.footer-col h3 {
    font-size: 19px;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 11px;
}

.footer-col ul li a:hover {
    color: var(--primary-text);
}

.contact-col ul li {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.contact-col ul li i {
    color: var(--primary-text);
    font-size: 18px;
    margin-top: 4px;
}

.footer-bottom {
    background: var(--bg-deep);
    border-top: 1px solid var(--line);
    padding: 18px 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .highlights-grid,
    .materials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .products-grid .product-card {
        flex-basis: calc((100% - 24px) / 2);
    }

    .blog-card {
        flex-basis: calc((100% - 28px) / 2);
    }

    .product-img {
        height: 190px;
    }

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

@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 30px;
    }

    .hero-content h2 {
        font-size: 38px;
    }

    .hero-content {
        padding-bottom: 90px;
    }

    .categories-section {
        margin-top: 0;
        padding-top: 64px;
    }

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

    .products-grid .product-card {
        flex-basis: 100%;
    }

    .blog-card {
        flex-basis: 100%;
    }

    .industry-list {
        grid-template-columns: 1fr;
    }

    .top-bar .top-contact span:last-child,
    .get-quote-btn {
        display: none;
    }

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

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e3e7ed;
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
    }

    .main-nav.open {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 20px 16px;
    }

    .nav-links>li {
        margin: 0;
        border-bottom: 1px solid #e3e7ed;
    }

    .nav-links>li:last-child {
        border-bottom: none;
    }

    .dropdown-menu {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}