/* ======================= General ======================= */
* {
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}
html {
    scroll-padding-top: 120px; /* Adjust to your header height */
}
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    margin: 0;
    padding: 0;
    text-align: center;
	 overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* ======================= Promo Banner ======================= */
.promo-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ff0000;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 6px 0;
    z-index: 1100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Remove underline and style the text */
.servesmart-link {
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    color: black; /* Default text color */
}

/* Make 'Smart' green */
.smart-text {
    color: #0d9866; /* Green color */
}

/* Hover Effect */
.servesmart-link:hover {
    text-decoration: none;
    opacity: 0.8;
}
/* ======================= Header ======================= */
.main-header {
    background-color: #005f33;
    position: fixed;
    top: 20px; /* Leaves space for promo banner */
    left: 0;
    width: 100%;
    padding: 0px 0; /* Keeps header compact */
    z-index: 1000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Header Container */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Logo */
.logo img {
    height: 35px; /* Small logo in header */
    width: auto;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.main-nav ul li {
    display: inline-block;
}

.main-nav ul li a {
    text-decoration: none;
    color: black;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.main-nav ul li a:hover {
    background-color: #003d22; /* Dark green background */
    color: white; /* Ensure text remains readable */
    border-radius: 5px;
}

/* ======================= Call to Action Button ======================= */
.cta-header {
    background-color: #ff0000;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;	
    transition: background-color 0.3s;
}

.cta-header:hover {
    background-color: #cc0000;
}

/* ======================= Offset Main Content ======================= */
main {
    padding-top: 140px; /* Leaves space below the header */
}

/* ======================= Welcome Section ======================= */
.welcome-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.welcome-box {
    background-color: #e6f4ea;
    padding: 20px;
    border-radius: 10px;
    max-width: 900px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Large Logo Inside Welcome Box */
.welcome-box img {
    max-width: 150px;
    height: auto;
}

/* Welcome Box Text */
.welcome-box-text {
    flex: 1;
}

/* ======================= Containers ======================= */
.container {
    width: 90%;
    max-width: 100%;
    margin: 30px auto;
    background-color: #e6f4ea;
    padding: 10px;
    border-radius: 10px;
}

.alt-bg {
    background-color: #f8f8f8;
}

/* ======================= Grid Images ======================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.grid-item p {
    font-size: 16px;
    margin-top: 10px;
}

/* Responsive - Adjust for Smaller Screens */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-container {
        height: 60px;
    }

    .logo img {
        max-height: 30px; /* Slightly smaller for mobile */
    }

    .welcome-section {
        flex-direction: column;
        text-align: center;
    }

    .welcome-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .welcome-box img {
        max-width: 120px;
    }

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

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.feature-item {
    background-color: #e6f4ea;
    padding: 3px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease-in-out;
}

.feature-item:hover {
    background-color: #cce7d8;
}

/* Tooltip */
.feature-tooltip {
    position: absolute;
    background-color: #222;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive - Single Column on Small Screens */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ======================= Hardware Section ======================= */
.hardware-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
    margin-top: 20px;
}

.hardware-item {
    flex: 1;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hardware-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

.hardware-item img {
    
    max-height: 150px; /* Adjust image size */
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}
 .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
        }
        .modal-content {
            background-color: white;
            padding: 20px;
            width: 90%;
            max-width: 400px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }
        .modal-content h2 {
            margin: 0 0 15px;
        }
        .form-group {
            margin-bottom: 15px;
            text-align: left;
        }
        .form-group label {
            display: block;
            font-weight: bold;
            margin-bottom: 5px;
        }
        .form-group input {
            width: 90%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 16px;
        }
        .form-group button {
            background-color: #005f33;
            color: white;
            padding: 10px;
            font-size: 18px;
            border: none;
            width: 90%;
            border-radius: 5px;
            cursor: pointer;
        }
		.form-group textarea {
    width: 90%; /* Ensures full width */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    resize: vertical; /* Allows resizing up/down */
}
        .form-group button:hover {
            background-color: #004225;
        }
        .close-btn {
            background: none;
            border: none;
            font-size: 20px;
            float: right;
            cursor: pointer;
            color: #333;
        }

/* Responsive Layout */
@media (max-width: 768px) {
    .hardware-grid {
        flex-direction: column;
        gap: 15px;
    }

    .hardware-item {
        width: 100%;
    }

    .hardware-item img {
        max-width: 200px;
    }
}
/* ======================= Business Types ======================= */
.business-types {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    max-width: 1000px;
    margin: 0 auto;
}

.business-box {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    max-width: 30%;
}

/* Colors */
.cafe {
    background-color: #005f33;
}

.restaurant {
    background-color: #7a0b0b;
}

.event {
    background-color: #00008B;
}

/* ======================= Mobile Navigation (Hamburger) ======================= */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 5px 0;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        background-color: #005f33;
        text-align: center;
        padding: 10px 0;
    }

    .main-nav ul {
        display: block;
    }

    .main-nav ul li {
        display: block;
        margin: 10px 0;
    }

    .hamburger {
        display: flex;
    }

    .cta-header {
        display: none;
    }

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

    .business-types {
        flex-direction: column;
    }

    .business-box {
        width: 100%;
        max-width: none;
    }
}

/* ======================= Contact Links ======================= */
#contact a {
    display: inline-block;
    background-color: #005f33;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
}



#contact a:hover {
    background-color: #003d22;
}

.demo: {
    display: inline-block;
    background-color: #005f33;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
}



.demo:hover {
    background-color: #003d22;
}

/* Ensure social media links match */
#contact .social-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 5px;
}

.container, .business-box, .hardware-item, .feature-item {
    max-width: 100%; /* Prevents content from expanding beyond parent */
    overflow: hidden; /* Hides any overflowing content */
    word-wrap: break-word; /* Ensures text wraps properly */
}
/* ======================= Footer ======================= */
footer {
    background-color: #222;
    color: white;
    padding: 10px;
    text-align: center;
    margin-top: 10px;
}