/* =====================================================
   SIGMA MACHINERY CORPORATION
   PROFESSIONAL INDUSTRIAL WEBSITE
   PART 4A
===================================================== */

/* =========================
   RESET
========================= */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:#faf8f4;
    color:#2f2f2f;
    line-height:1.7;
    overflow-x:hidden;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

/* =========================
   COLORS
========================= */

:root{

    --primary-brown:#6e5238;
    --dark-brown:#4d3928;

    --light-brown:#a88b6c;

    --beige:#e8dccd;

    --offwhite:#faf8f4;

    --section:#f3ece3;

    --white:#ffffff;

    --text:#2f2f2f;

    --border:#dfd3c5;

    --shadow:
        0 10px 30px rgba(0,0,0,0.08);

}

/* =========================
   GLOBAL
========================= */

.container{

    width:95%;

    max-width:1350px;

    margin:auto;

}

.section{

    padding:100px 0;

}

.section-light{

    background:var(--section);

}

.section-heading{

    text-align:center;

    margin-bottom:30px;

}

.section-heading span{

    color:var(--primary-brown);

    letter-spacing:2px;

    font-size:18px;

    font-weight:700;

}

.section-heading h2{

    margin-top:15px;

    font-size:42px;

    color:var(--dark-brown);

    font-weight:700;

}

p{

    font-size:16px;
    color:#a88b6c;

}

/* =========================
   BUTTONS
========================= */

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:14px 32px;

    border-radius:4px;

    font-weight:600;

    transition:.3s ease;

}

.btn-primary{

    background:var(--primary-brown);

    color:white;

}

.btn-primary:hover{

    background:var(--dark-brown);

}

.btn-secondary{

    border:2px solid white;

    color:white;

}

.btn-secondary:hover{

    background:white;

    color:var(--dark-brown);

}

.btn-outline{

    border:2px solid var(--primary-brown);

    color:var(--primary-brown);

}

.btn-outline:hover{

    background:var(--primary-brown);

    color:white;

}

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

.header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    background:white;

    z-index:9999;

    border-bottom:1px solid var(--border);

}

.navbar{

    display:flex;

    align-items:center;

    justify-content:space-between;

    min-height:90px;

}

.brand-name{
    font-size: larger;
    color:#4A78C2;
    margin-left:-80px;
}

.logo img{

    height:100px;
    position: relative;
    left: -40px;
    width:auto;

}

.nav-menu > ul{

    display:flex;

    align-items:center;

    gap:23px;

}

.nav-menu ul li{

    position:relative;

}

.nav-menu ul li:not(:last-child)::after{
    content:"|";
    position:absolute;
    right:-13px;
    color:#a88b6c;
    font-weight:600;
}

.nav-menu ul li a{

    color:var(--text);

    font-weight:500;

    transition:.3s;

}

.nav-menu ul li a:hover{

    color:var(--primary-brown);

}

/* =========================
   DROPDOWN
========================= */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    width: 420px;
    padding: 14px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 10px;

    background: #f5f0e8;
    border: 1px solid rgba(80, 55, 35, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown-menu a {
    display: block;
    padding: 9px 12px;

    color: #3d2b1f;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.3;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.dropdown-menu a:hover {
    background: #000000;
    color: #ffffff !important;
}

.dropdown-menu li::after,
.dropdown-menu a::after {
    content: none !important;
    display: none !important;
}


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

.hero{

    height:100vh;

    min-height:750px;

    position:relative;

    overflow:hidden;

}

.hero-image{

    position:absolute;

    width:100%;

    height:100%;

    object-fit:cover;

}

.hero-overlay{

    position:absolute;

    width:100%;

    height:100%;

    background: linear-gradient(rgb(74, 51, 37), rgba(142, 73, 31, 0.726));

    z-index:1;

}

.hero-content{

    position:relative;

    z-index:2;

    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:center;

    max-width:760px;

    color:white;

}

.hero-tagline{

    display:inline-block;

    margin-bottom:20px;

    font-size:14px;

    font-weight:700;

    letter-spacing:3px;

}

.hero h1{

    font-size:68px;

    line-height:1.1;

    margin-bottom:25px;

    font-weight:700;

}

.hero p{

    color:white;

    font-size:20px;

    margin-bottom:35px;

    max-width:650px;

}

.hero-buttons{

    display:flex;

    gap:20px;

}


/* =========================
   COMPANY OVERVIEW
========================= */

.overview-grid {
    display: flow-root;
}

#overview {
    margin-bottom: 0;
    padding-bottom: 5px;
}


/* Company overview image */
#overview .overview-image {
    float: left;
    width: 500px;
    margin: 0 50px 0 30px;
}

#overview .overview-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    box-shadow: var(--shadow);
}


/* Text flows around the logo */
.overview-text p {
    margin-bottom: 22px;
    line-height: 1.8;
    color: #4f3017;
    font-size: 18px;
}

/* Responsive layout */
@media (max-width: 600px) {
    .overview-image {
        width: 150px;
        margin: 0 0 15px 20px;
    }
}

/* =========================
   PRODUCT PREVIEW
========================= */

.products-preview{

    background:white;

}

#products {
    margin-top: 0;
    padding-top: 40px;
    margin-bottom: 0;
    padding-bottom: 10px;
}

.product-preview-grid{

    display:grid;

    grid-template-columns:repeat(8,1fr);

    gap:15px;

}

.product-preview{

    background:white;

    border:5px solid var(--border);

    overflow:hidden;

    box-shadow:var(--shadow);

    transition: all .3s ease;

}

.product-preview:hover{
    transform: translateY(-8px);
}
.product-preview img{
    height:180px;

    width:100%;

    object-fit:contain;

}

.product-preview-content{

    padding:5px;

}

.product-preview-content h3{

    margin-bottom:5px;

    color:var(--dark-brown);

    font-size:16px;

    text-align: center;

}

.product-preview-content p{

    margin-bottom:5px;

}
/* =========================
   INDUSTRIES SECTION
========================= */
#industries {
    margin-top: 0;
    padding-top: 40px;
    margin-bottom: 0;
    padding-bottom: 10px;
}

.industries-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

}

.industry-item{

    background:white;

    border:2px solid #bca88b;

    padding:35px;

    text-align:center;

    font-weight:600;

    color:var(--dark-brown);

    box-shadow:var(--shadow);

}

/* =========================
   WHY CHOOSE SIGMA
========================= */

.why-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}

.why-item{

    background:white;

    border:10px solid var(--border);

    padding:15px;

    box-shadow:var(--shadow);

}

.why-item h3{

    color:var(--dark-brown);

    margin-bottom:15px;

    font-size:24px;

}

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

.contact-section{

    background:var(--section);

}

.contact-custom{
    padding-top: 10px;
}

.contact-wrapper{

    display:grid;

    grid-template-columns:1fr 1.2fr;

    gap:60px;

    align-items:start;

}

.contact-info h3{

    color:var(--dark-brown);

    margin-bottom:25px;

    font-size:28px;

}
.contact-item{
    color:var(--primary-brown);

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:18px;

}

.contact-item i{

    color:var(--primary-brown);

    font-size:20px;

    width:24px;

}

.contact-info p{
    
    margin-bottom:15px;
    color:var(--primary-brown);

}

.contact-form-wrapper{

    background:white;

    padding:40px;

    box-shadow:var(--shadow);

    border:2px solid #bca88b;

}

.contact-form-wrapper form{

    display:flex;

    flex-direction:column;

    gap:15px;

}

.contact-form-wrapper input,
.contact-form-wrapper textarea{

    width:100%;

    border:1.5px solid #bca88b;

    padding:16px;

    font-size:15px;

    font-family:'Inter',sans-serif;

    background:white;

    outline:none;

}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus{

    border-color:var(--primary-brown);

}

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

.footer{

    background:var(--dark-brown);

    color:white;

    padding:40px 0;

}

.footer-content{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:30px;

}

.footer img{

    height:100px;
    position: relative;
    left: -30px;
    width:auto;
}

.footer p{

    color:white;

}


/* =========================
   PRODUCT SHOWCASE HERO
========================= */

.home-hero{
    position: relative;

    min-height:650px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:linear-gradient(
        135deg,
        #6f4a33 0%,
        #8c6246 50%,
        #b38363 100%
    );

    padding-top:center;

}

.home-hero h2{
    margin-bottom: 75px;
    text-align: center;
    color:white;
    font-size:20px;
    font-weight:700;
    letter-spacing:8px;
}

.hero-products{

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:20px;

    width:100%;

    max-width:1000px;

    margin:auto;

}

.hero-product{

    text-align:center;

    transition:0.3s ease;

}

.hero-product img{

    width:250px;

    height:250px;

    object-fit:contain;

    margin:auto;

    background:none;

}

.hero-product h3{

    margin-top:10px;

    color:white;

    font-size:16px;

    font-weight:600;

}

.hero-product:hover{

    transform:translateY(-8px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.356);

}

@media(max-width:992px){

    .hero-products{

        grid-template-columns:repeat(2,1fr);

        gap:35px;

    }

    .hero-product img{

        width:120px;

        height:120px;

    }

}

@media(max-width:768px){

    .hero-products{

        grid-template-columns:1fr;

        gap:30px;

    }

    .hero-product img{

        width:100px;

        height:100px;

    }

}

/* =========================
   PAGE HERO
   CHUCKS / VISE
========================= */

.page-hero{

    padding-top:180px;

    padding-bottom:100px;

    background:linear-gradient(
        135deg,
        #efe4d7,
        #916d3e
    );

}

.page-hero p{

    color:var(--primary-brown);

    font-style:italic;

    font-weight:bold;

}

.breadcrumb{

    margin-bottom:20px;

    font-size:14px;

}

.breadcrumb a{

    color:var(--primary-brown);

}

.breadcrumb span{

    margin:0 8px;

}

.page-hero h1{

    font-size:56px;

    color:var(--dark-brown);

    margin-bottom:20px;

}

.page-hero p{

    max-width:850px;

    font-size:18px;

}

.page-intro{

    max-width:900px;

    margin:auto;

    text-align:center;

}

.title-custom{

    padding-bottom:20px;

    padding-top:20px;

}


/* =========================
   PRODUCT PAGE GRID
========================= */

.product-page-section{

    background:white;

}

.grid-custom{
    padding-top: 20px;
    padding-bottom: 10px;
}

.product-gallery.vise-custom{
    gap: 10px;
}

.product-gallery.grinding-custom{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.product-gallery.bandsaw-custom{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.product-gallery.sheetbending-custom{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.product-gallery.pipe-custom{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.product-gallery{

    display:grid;
    

    grid-template-columns:
        repeat(7,1fr);

    gap:15px;

}

.product-card{

    background:white;

    border:5px solid #977755;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:.3s ease;

}

.product-card:hover{

    transform:translateY(-5px);

}

.product-image{

    width:100%;

    overflow:hidden;

}

.product-image img{

    width:100%;

    height:200px;

    object-fit:contain;

}

.vise-custom .product-image img{
    height: 260px;
}

.product-info{

    padding:1px;

    text-align:center;

}

.product-info h3{

    color:var(--dark-brown);

    margin-bottom:10px;

    font-size:14px;

}

/* =========================
   CTA SECTION
========================= */

.cta-box{

    background:var(--dark-brown);

    color:white;

    text-align:center;

    padding:50px;

}

.cta-box h2{

    font-size:42px;

    margin-bottom:20px;

}

.cta-box p{

    color:white;

    max-width:800px;

    margin:auto auto 30px;

}

/* =========================
   HAMBURGER
========================= */

.hamburger{

    display:none;

    width:40px;

    height:40px;

    background:none;

    border:none;

    cursor:pointer;

}

.hamburger span{

    display:block;

    width:30px;

    height:3px;

    background:var(--dark-brown);

    margin:6px auto;

}

/* =========================
   TABLET
========================= */

@media (max-width:992px){

    .hero h1{

        font-size:52px;

    }

    .overview-grid{

        grid-template-columns:1fr;

    }

    .product-preview-grid{

        grid-template-columns:1fr;

    }

    .industries-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .why-grid{

        grid-template-columns:1fr;

    }

    .contact-wrapper{

        grid-template-columns:1fr;

    }

    .product-gallery{

        grid-template-columns:repeat(2,1fr);

    }

}

/* =========================
   MOBILE
========================= */

@media (max-width:768px){

    .section{

        padding:70px 0;

    }

    .hamburger{

        display:block;

    }

    .nav-menu{

        position:absolute;

        top:90px;

        left:0;

        width:100%;

        background:white;

        border-top:1px solid var(--border);

        display:none;

    }

    .nav-menu.active{

        display:block;

    }

    .nav-menu ul{

        flex-direction:column;

        align-items:flex-start;

        gap:0;

    }

    .nav-menu ul li{

        width:100%;

    }

    .nav-menu ul li a{

        display:block;

        width:100%;

        padding:16px 25px;

        border-bottom:1px solid #eee;

    }

    .dropdown-menu{

        position:static;

        opacity:1;

        visibility:visible;

        transform:none;

        box-shadow:none;

        border:none;

        display:none;

    }

    .dropdown.open .dropdown-menu{

        display:block;

    }

    .hero{

        min-height:650px;

    }

    .hero h1{

        font-size:40px;

    }

    .hero p{

        font-size:17px;

    }

    .hero-buttons{

        flex-direction:column;

        align-items:flex-start;

    }

    .section-heading h2{

        font-size:34px;

    }

    .industries-grid{

        grid-template-columns:1fr;

    }

    .product-gallery{

        grid-template-columns:1fr;

    }

    .footer-content{

        flex-direction:column;

        text-align:center;

    }

    .page-hero{

        padding-top:150px;

    }

    .page-hero h1{

        font-size:42px;

    }

    .cta-box{

        padding:50px 25px;

    }

    .cta-box h2{

        font-size:32px;

    }

}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width:480px){

    .container{

        width:92%;

    }

    .hero h1{

        font-size:34px;

    }

    .hero p{

        font-size:16px;

    }

    .section-heading h2{

        font-size:28px;

    }

    .page-hero h1{

        font-size:34px;

    }

    .product-image img{

        height:250px;

    }

}

/* BROWN HERO SECTION */

.home-hero{
    background:#9a6e50; /* keep your current brown */
    position:relative;

    padding:70px 80px;

    overflow:hidden;
}


/* HORIZONTAL TRACK */

.hero-slider{

    display:flex;

    gap:70px;

    overflow-x:auto;

    scroll-behavior:smooth;

    scrollbar-width:none;

    align-items:flex-start;

}

.hero-slider::-webkit-scrollbar{
    display:none;
}


/* ITEMS */

.slide-item{

    flex:0 0 auto;

    width:250px;

    text-align:center;

    color:white;

    text-decoration:none;

}


.slide-item img{

    width:100%;

    height:260px;

    object-fit:contain;

    transition:.25s;

}


.slide-item:hover img{

    transform:scale(1.05);
    background-color: var(--white)
}


.slide-item h3{

    margin-top:25px;

    font-size:20px;

    line-height:1.5;

    font-weight:600;

    text-shadow: black 0.05em 0.05em 0.1em;

}



/* ARROWS */

.slider-btn{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    z-index:10;

    width:48px;

    height:48px;

    border:none;

    border-radius:50%;

    cursor:pointer;

    background:rgba(255,255,255,.18);

    color:white;

    font-size:26px;

}


.prev{
    left:20px;
}

.next{
    right:20px;
}


/* MOBILE */

@media(max-width:768px){

.hero-slider{

gap:35px;

}

.slide-item{

width:180px;

}

.slide-item img{

height:180px;

}

}

@media (max-width: 768px) {

    .dropdown-menu {
        position: static;
        width: 100%;

        transform: none;

        grid-template-columns: 1fr;

        padding: 8px 0;
        box-shadow: none;
        border: none;

        opacity: 1;
        visibility: visible;

        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: grid;
    }

    .dropdown:hover .dropdown-menu {
        transform: none;
    }

    .dropdown-menu a {
        padding: 10px 20px;
    }
}