/* --- S S INDUSTRIES MASTER STYLESHEET --- */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-color: #1a2a3a;
    --accent-color: #c5a059;
    --white: #ffffff;
    --bg-light: #f4f7f9;
    --text-body: #4a4a4a;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    background: #fff;
}

.container {
    width: 90%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 15px;
}

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

/* Typography - Responsive */
h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

/* --- Navigation & Header --- */
.main-header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 2000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 75px;
    width: auto;
    transition: var(--transition);
}

/* Mobile Menu Button - FIXED POSITION */
.menu-toggle {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 10px;
    margin-left: auto; /* Pushes button to the right */
    position: relative;
    z-index: 3000;
}

/* For mobile view - ensure hamburger is on the right */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        order: 2; /* Ensures it comes after logo */
    }

    .logo {
        order: 1; /* Logo stays on left */
    }

    .navbar {
        justify-content: space-between;
        width: 100%;
    }
}

.menu-toggle .bar {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px 0; /* Changed from auto to 0 for better alignment */
    background: var(--white);
    transition: 0.3s;
}

/* When menu is active, fix button position */
.menu-toggle.is-active {
    position: fixed;
    right: 20px;
    top: 20px;
}

.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-family: 'Montserrat';
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 4px;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content li {
    margin: 0;
    width: 100%;
}

.dropdown-content a {
    color: var(--primary-color) !important;
    padding: 10px 20px;
    display: block;
    text-transform: none;
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background: #f4f4f4;
    color: var(--accent-color) !important;
    padding-left: 25px;
}

/* --- Hero Sections --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-internal {
    min-height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 100px;
    margin-bottom: 0;
}

.hero h1 {
    font-family: 'Montserrat';
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-internal h1 {
    font-family: 'Montserrat';
    font-weight: 800;
    width: 100%;
}

.highlight {
    color: var(--accent-color);
}

.subtitle {
    display: block;
    font-weight: 700;
    font-family: 'Montserrat';
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--accent-color);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

/* --- Buttons --- */
.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.dark-btn {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    margin-top: 20px;
}

.dark-btn:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--primary-color);
    padding: 60px 0;
    color: var(--white);
}

.stats-flex {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    flex: 1;
    min-width: 150px;
}

.stat-item h2 {
    font-family: 'Montserrat';
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* --- General Content Layouts --- */
.section-padding {
    padding: clamp(50px, 8vw, 100px) 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(30px, 5vw, 60px);
    align-items: center;
}

/* --- Compact Product Grid --- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.section-title {
    font-family: 'Montserrat';
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 25px;
}

.center-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

/* --- Cards --- */
.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--accent-color);
    position: relative;
    transition: var(--transition);
    height: 100%;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-num {
    font-size: 3rem;
    font-weight: 800;
    color: #f0f0f0;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 0;
}

.info-card h3 {
    position: relative;
    z-index: 1;
    font-family: 'Montserrat';
    margin-bottom: 15px;
    color: var(--primary-color);
}

.info-card p {
    position: relative;
    z-index: 1;
}

.product-card-small {
    padding: 20px !important;
    border-top: 4px solid var(--accent-color) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

/* --- Utilities --- */
.img-styled {
    width: 100%;
    border-radius: 12px;
    box-shadow: 20px 20px 0px var(--accent-color);
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.check-list li::before {
    content: "→";
    color: var(--accent-color);
    margin-right: 15px;
    font-weight: 800;
}

/* --- Processing Banner --- */
.processing-banner {
    padding: clamp(50px, 8vw, 100px) 0;
    color: var(--white);
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: clamp(30px, 5vw, 60px);
    margin-top: 40px;
    flex-wrap: wrap;
}

.stats-grid strong {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--accent-color);
    font-family: 'Montserrat';
}

/* --- Export Map --- */
.map-wrapper {
    margin-top: 50px;
    text-align: center;
}

.map-img {
    max-width: 100%;
    height: auto;
    opacity: 1;
    border-radius: 10px;
}

.btn-sm-view {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: 0.3s;
    margin-top: 15px;
}

.btn-sm-view:hover {
    background: var(--accent-color);
    color: #fff;
}

/* --- Responsive Breakpoints --- */

/* Tablet Landscape */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .logo img {
        height: 60px !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease-in-out;
        z-index: 2500;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        padding: 80px 20px 40px;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }

    /* Mobile Dropdown Fix */
    .dropdown {
        position: relative;
    }

    .dropdown-content {
        position: static;
        display: none;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        border: none;
        margin-top: 10px;
        width: 100%;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        color: var(--white) !important;
        text-align: center;
        padding: 10px;
    }

    .dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.2);
        color: var(--accent-color) !important;
    }

    .dropdown > a::after {
        content: " ▼";
        font-size: 10px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-internal h1 {
        font-size: 2rem;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .stats-flex {
        flex-direction: column;
        gap: 40px;
    }

    .btn-group {
        justify-content: center;
    }

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

    .check-list li {
        justify-content: center;
    }

    .img-styled {
        box-shadow: 10px 10px 0px var(--accent-color);
    }
}

/* Mobile Landscape */
@media (max-width: 576px) {
    .nav-links {
        width: 100%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-internal {
        min-height: 350px;
    }

    .hero-internal h1 {
        font-size: 1.5rem;
    }

    .btn-outline {
        padding: 10px 20px;
        font-size: 14px;
    }

    .app-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-card {
        padding: 20px;
    }

    .stats-grid {
        flex-direction: column;
        gap: 30px;
    }
}

/* Mobile Small */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-outline {
        width: 100%;
        text-align: center;
    }

    .stat-item h2 {
        font-size: 2rem;
    }
}

/* --- Footer Styles --- */
.footer-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    margin-bottom: 55px;
}

.main-footer {
    background: var(--primary-color);
    color: #ddd;
    padding: 85px 0 40px;
}

.footer-top {
    margin-bottom: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 45px;
}

.footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    color: var(--accent-color);
    margin-bottom: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* Footer Logo */
.footer-logo img {
    height: 72px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(1.08);
}

.footer-desc {
    color: #ccc;
    line-height: 1.7;
    max-width: 290px;
}

/* Footer Links */
.footer-col ul {
    list-style: none;
    padding: 0;
}

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

.footer-col ul a {
    color: #ddd;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.footer-col ul a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

/* Hide duplicate section-title from contact-info.php */
.footer-col .section-title {
    display: none !important;
}

/* Fix info-card in footer */
.footer-col .info-card {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
}

.footer-col .info-card > div {
    margin-bottom: 15px !important;
}

/* Make phone, whatsapp, email WHITE and visible */
.footer-col a {
    color: #ddd !important;
}

.footer-col a:hover {
    color: var(--accent-color) !important;
}

.footer-col strong {
    color: #ffffff !important;
    display: block;
    margin-bottom: 4px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
    color: #aaa;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Print Styles */
@media print {
    .main-header,
    .menu-toggle,
    .btn-group,
    .footer-bottom {
        display: none;
    }

    body {
        color: black;
    }

    .container {
        width: 100%;
        margin: 0;
    }
}
