/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 0;
    line-height: 1.6;
    background-color: #f4f7f6; /* Light neutral background */
    color: #333;
    margin: 0;
    font-size: 16px;
}

.container {
    max-width: 1200px; /* Wider for product listing */
    margin: 20px auto;
    padding: 25px 30px;
}

/* Headings */
h1, h2, h3 {
    color: #004080; /* Sathicorp Blue */
    margin-top: 0; /* Reset top margin for first heading in a section */
    margin-bottom: 0.75em;
}

h1 {
    font-size: 2.4em;
    text-align: center;
    border-bottom: 3px solid #007BFF;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

main.container > p { /* Styling for the intro paragraph */
    text-align: center;
    font-size: 1.15em;
    color: #555;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

h2.product-name, .product-item h2 { /* Targeting product names */
    font-size: 1.5em;
    color: #0056b3; /* Darker blue for product titles */
    margin-top: 15px;
    margin-bottom: 10px;
}

a {
    color: #007BFF;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* --- Header Styles (Responsive Design) --- */

/* Base Header (Common properties, usually for desktop but overridden by mobile) */
.main-header {
    background-color: #003366; /* Deep blue background for header */
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Mobile Header Styles (Default for small screens) */
.desktop-header {
    display: none; /* Hidden by default on mobile */
}

.mobile-header {
    display: flex; /* Display on mobile */
    flex-direction: column; /* Stack content vertically */
    padding: 10px 20px;
    position: relative; /* For absolute positioning of mobile nav */
}
.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 40px; /* Ensure some height for content */
}
.mobile-logo-link {
    display: block;
    padding: 5px 0; /* Add a bit of padding */
}
.mobile-logo {
    max-height: 40px; /* Smaller logo for mobile */
    width: auto;
}
.mobile-download-button {
    background-color: #28a745; /* Green */
    color: white !important;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none !important;
    font-size: 0.8em;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}
.mobile-download-button:hover {
    background-color: #218838;
}
.mobile-menu-toggle {
    background: none;
    color: white;
    border: none;
    font-size: 1.8em; /* Larger icon */
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1; /* Aligns hamburger better */
    align-self: center; /* Vertically align */
}

.mobile-navigation {
    background: #003366; /* Same as header background */
    display: none; /* Hidden by default */
    overflow: hidden;
    width: 100%;
    position: absolute;
    top: 100%; /* Position below the main header content */
    left: 0;
    z-index: 100;
    box-shadow: 0 4px 5px rgba(0,0,0,0.1);
}
.mobile-navigation.open {
    display: block;
}
.mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-navigation ul li {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-navigation ul li:last-child {
    border-bottom: none;
}
.mobile-navigation ul li a {
    color: white;
    text-decoration: none;
    display: block;
    font-weight: 500;
    font-size: 1.1em;
}
.mobile-navigation ul li a:hover {
    color: #ffc107;
}

/* Desktop Header Styles (Visible on larger screens) */
@media (min-width: 992px) {
    .mobile-header {
        display: none;
    }
    .desktop-header {
        display: flex; /* Use flexbox for desktop header */
        justify-content: space-between; /* Space out logo and nav/button group */
        align-items: center;
        max-width: 1200px; /* Match container width */
        margin: 0 auto; /* Center the header content */
        padding: 15px 30px; /* Consistent padding */
    }
    .desktop-header .header-content .logo {
        max-height: 50px; /* Larger logo for desktop */
        width: auto;
    }
    .header-nav-and-button {
        display: flex;
        align-items: center;
        gap: 20px; /* Space between nav and button */
        flex-wrap: nowrap; /* Prevent wrapping */
        margin-left: auto; /* Pushes content to the right */
    }
    .header-nav-and-button nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }
    .header-nav-and-button nav ul li {
        margin-left: 20px;
    }
    .header-nav-and-button nav ul li a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
        padding: 5px 0; /* Add a bit of vertical padding */
    }
    .header-nav-and-button nav ul li a:hover,
    .header-nav-and-button nav ul li a.active {
        color: #ffc107;
    }
    .desktop-download-button {
        background-color: #28a745;
        color: white !important;
        padding: 10px 20px;
        border-radius: 5px;
        text-decoration: none !important;
        font-size: 0.9em;
        font-weight: bold;
        white-space: nowrap;
        transition: background-color 0.3s ease;
    }
    .desktop-download-button:hover {
        background-color: #218838;
    }
}


/* Product Section Layout */
.product-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive grid */
    gap: 30px; /* Space between product items */
    margin-top: 40px;
}

.product-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column; /* Stack content vertically */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    max-height: 200px; /* Control image height */
    object-fit: contain; /* Scales image to fit within bounds */
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #f8f9fa; /* Light background for images */
}

.product-item .product-name a, .product-item h2 a {
    color: #0056b3;
    text-decoration: none;
}
.product-item .product-name a:hover, .product-item h2 a:hover {
    text-decoration: underline;
}


.product-description {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1; /* Allows description to take available space */
}

.product-specs {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #444;
}
.product-specs li {
    margin-bottom: 5px;
}

.product-link {
    display: inline-block;
    background-color: #007BFF;
    color: white !important; /* Ensure white text */
    padding: 10px 18px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Pushes link to bottom if item heights vary */
}
.product-link:hover {
    background-color: #0056b3;
    text-decoration: none; /* Remove underline on hover for buttons */
}

/* Custom CTA Section */
.custom-cta-section { /* Added a class for more specific styling if needed */
    text-align:center;
    margin-top: 60px;
    padding: 40px 20px;
    background-color:#e9f5ff;
    border-radius:8px;
    border: 1px solid #b3d7ff;
}
.custom-cta-section h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 15px;
}
.custom-cta-section p {
    font-size: 1.1em;
    margin-bottom: 25px;
}
.custom-cta-section .cta-button { /* Re-using .cta-button if defined elsewhere, or style specifically */
    background-color:#007BFF;
    color:white;
    padding:12px 25px;
    text-decoration:none;
    border-radius:5px;
    font-weight:bold;
}
.custom-cta-section .cta-button:hover {
    background-color: #0056b3;
}


/* --- Smart Call-Back Widget Styles --- */
#callback-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#widget-button {
    background-color: #007BFF; /* Primary blue */
    color: white;
    border: none;
    border-radius: 50px; /* Pill shape */
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#widget-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

#widget-button svg {
    width: 20px;
    height: 20px;
}

/* Force modal hidden by default - ADDED !important */
.modal-hidden {
    display: none !important; 
}

.modal-visible {
    display: flex;
}

#callback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

#callback-modal .modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

#modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8em;
    color: #aaa;
    cursor: pointer;
}

#modal-close-btn:hover {
    color: #333;
}

.form-step {
    display: none; /* Hidden by default */
}

.form-step.active-step {
    display: block; /* Show active step */
}

.form-step h3 {
    color: #004080;
    margin-bottom: 10px;
    font-size: 1.8em;
}

.form-step p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.form-step input[type="tel"],
.form-step input[type="text"],
.form-step input[type="email"] {
    width: calc(100% - 24px); /* Account for padding and border */
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.form-step button.next-btn {
    background-color: #28a745; /* Green for next/submit */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    width: 100%;
}

.form-step button.next-btn:hover {
    background-color: #218838;
}

.form-step button.next-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* --- Inquiry Form Section --- */
.inquiry-form-section {
    background-color: #f0f8ff; /* Light blue background */
    padding: 60px 0;
    margin-top: 50px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.inquiry-form-section h2 {
    color: #004080;
    margin-bottom: 15px;
    border-bottom: none; /* Override main h1 style if present */
    padding-bottom: 0;
}

.inquiry-form-section p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#main-inquiry-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left; /* Align form elements left */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group .required {
    color: #dc3545; /* Red for required fields */
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    outline: none;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 100px;
}

.submit-button {
    background-color: #007BFF; /* Primary blue */
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.submit-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.form-message {
    margin-top: 20px;
    font-size: 1em;
    font-weight: bold;
}

.form-message.success {
    color: #28a745; /* Green for success */
}

.form-message.error {
    color: #dc3545; /* Red for error */
}

/* --- NEW Footer Structure Styles --- */
footer {
    background: #002244;
    color: #ccc;
    padding: 40px 0 20px; /* Adjusted padding for new structure */
    font-size: 0.9em;
    margin-top: 50px; /* Ensure sufficient space from content above */
}
footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px; /* Match main container width for consistency */
    margin: 0 auto;
    padding: 0 30px; /* Match main container padding for consistency */
    text-align: left;
}
footer .footer-col {
    padding: 10px 0;
}
footer .footer-logo {
    max-height: 60px; /* Adjust as needed */
    margin-bottom: 15px;
    display: block; /* Ensures it takes its own line */
}
footer .footer-col p, footer .footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #bbb;
}
footer .footer-col ul li {
    margin-bottom: 8px;
}
footer .footer-col h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1em;
}
footer .footer-col a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}
footer .footer-col a:hover {
    color: #ffc107;
    text-decoration: underline;
}
footer .social-media-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
footer .social-media-icons img {
    height: 28px;
    width: 28px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
footer .social-media-icons img:hover {
    opacity: 1;
}
footer .copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #003366;
    color: #aaa;
}
footer .copyright p {
    margin: 5px 0;
}
footer .branding-credit a {
    color: #ffc107;
    text-decoration: none;
}
footer .branding-credit a:hover {
    text-decoration: underline;
}


/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
    .container {
        padding: 20px;
    }
}

@media (max-width: 991px) { /* Adjust breakpoint slightly for cleaner transitions */
    /* Header adjustments */
    .desktop-header {
        display: none;
    }
    .mobile-header {
        display: flex;
        flex-direction: column;
    }
    .mobile-header-content {
        padding: 10px 20px; /* Consistent padding */
    }
    
    /* General content adjustments */
    .product-section {
        grid-template-columns: 1fr; /* Single column on tablets/mobiles */
    }
    .product-item {
        margin-bottom: 30px;
        padding: 20px;
    }
    .product-image {
        max-width: 100%;
        height: auto;
    }
    .cta-button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 1em;
    }
    .inquiry-form-section .container {
        padding: 0 15px;
    }
    .inquiry-form-section h2 {
        font-size: 1.8em;
        text-align: center;
    }
    .form-group label {
        font-size: 0.9em;
    }
    .form-group input, .form-group textarea {
        padding: 10px;
        font-size: 0.9em;
    }

    /* Footer adjustments */
    footer .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    footer .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
    footer .social-media-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
        padding-bottom: 15px;
    }
    main.container > p {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .container {
        padding: 10px;
    }
    .product-item {
        padding: 15px;
    }
    #callback-modal .modal-content {
        padding: 20px;
    }
    .mobile-download-button {
        font-size: 0.75em; /* Even smaller for very small screens */
        padding: 6px 10px;
    }
    .mobile-menu-toggle {
        font-size: 1.6em;
        padding: 3px 8px;
    }
}