/* Link to Google Fonts - Poppins with weights 400, 600, 700 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

html {
    overflow-x: auto; /* Allow horizontal scroll if content absolutely demands, less restrictive */
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding-top: 50px; /* Match new combined header height */
    background-color: #ffffff; /* Default white background for all pages */
    color: #333; /* Default dark text for all pages */
    font-weight: 500;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    box-sizing: border-box;
}

.home-page {
    background-color: #1a1a1a; /* Dark background for the page */
    background-image: url('/uploaded_images/7-Marmo.webp'); /* Corrected path for global CSS */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #ffffff; /* Changed default text to white for dark bg */
}

main {
    flex-grow: 1; 
    position: relative; /* Establish stacking context */
    z-index: 1;         /* Place main content below the header */
    font-weight: 500;
}

.container {
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box; /* Ensures padding is included in the width */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.page-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure header is on top of all content */
}

.topbar {
    background-color: #222222;
    color: #ffffff;
    padding: 4px 0; /* Reduced padding */
    position: relative;
    z-index: 10;
    border-bottom: 3px solid #28a745; /* Green border */
    height: 39px;
}

.topbar .topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%; /* Ensure full width */
    box-sizing: border-box;
}

.topbar .logo {
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.topbar .logo img {
    height: 35px; /* Reduced logo height */
    display: block; /* Removes any extra space below the image */
}

.topbar-address {
    white-space: nowrap;
    color: #ffffff;
    font-weight: 500;
    font-size: min(16px, 1.3vw);
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-contact-info {
    display: flex;
    align-items: center;
    gap: 15px; /* Spacing for desktop */
}

.topbar .contact-options a {
    white-space: nowrap;
    color: #ffffff;
    text-decoration: none;
    background-color: transparent;
    border: none;
    padding: 8px min(12px, 0.6vw);
    transition: color 0.3s ease;
    font-size: min(15px, 1.2vw);
    font-weight: 500;
}

.topbar .contact-options {
    display: flex;
    align-items: center;
    gap: min(15px, 0.9vw);
}

.topbar .social-icons-group {
    display: flex;
    align-items: center;
    gap: min(10px, 0.6vw);
}

.topbar .social-icon img {
    height: 20px;
    width: 20px;
    vertical-align: middle;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    position: relative; /* Ensure it's in a stacking context */
    z-index: 1001;      /* Sit on top of the topbar */
}

/* ==========================================================================
   Main Mobile Navigation (Side Panel)
   ========================================================================== */

.main-navigation {
    display: block; 
    position: fixed; 
    left: -100%; 
    top: 0;
    width: 80%; 
    max-width: 300px;
    height: 100%;
    background-color: #222222; 
    padding-top: 60px; 
    z-index: 1100; 
    transition: left 0.3s ease-in-out; 
    overflow-y: hidden; 
    overflow-x: visible; /* Crucial: allow flyouts to be visible */
    direction: rtl; /* Show scrollbar on left side */
}

.main-navigation.active {
    left: 0; 
}

.main-navigation .container ul { 
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; 
    align-items: flex-start; 
}

.main-navigation .container ul li {
    margin: 0; 
    width: 100%;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-bottom: 1px solid #444; 
    flex-wrap: wrap; 
    position: relative; 
}
.main-navigation .container ul li:last-child {
    border-bottom: none;
}

.main-navigation .container ul li a {
    display: inline; 
    padding: 15px 10px 15px 20px; 
    color: #ffffff; 
    border-bottom: none; 
    font-weight: 400; 
    flex-grow: 1; 
    text-decoration: none; 
}
.main-navigation .container ul li a:hover {
    background-color: #333;
}

.dropdown-toggle {
    display: inline-block;
    color: #ffffff;
    padding: 15px;
    font-size: 16px;
    background: none; 
    border: none; 
    cursor: pointer; 
}

.dropdown-toggle .arrow-graphic {
    display: inline-block; 
    transition: transform 0.3s ease-in-out; 
}

.dropdown-toggle[aria-expanded="true"] .arrow-graphic {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: block;
    list-style: none; 
    padding: 0;
    margin: 0; 
    width: 100%; 
    background-color: #2a2a2a; 
    position: static; 
    order: 3; 
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, visibility 0s linear 0.4s;
}

.main-navigation .container ul li.dropdown > .dropdown-menu.open {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, visibility 0s linear 0s;
}

.main-navigation .container ul li.dropdown > .dropdown-menu li a {
     color: white; 
     padding: 10px 20px 10px 40px; 
     font-size: 0.9em;
     display: block;
}
.main-navigation .container ul li.dropdown > .dropdown-menu li a:hover {
    background-color: #383838;
}
.main-navigation .container ul li.dropdown > .dropdown-menu li {
    border-bottom: 1px solid #4a4a4a;
}
.main-navigation .container ul li.dropdown > .dropdown-menu li:last-child {
    border-bottom: none;
}

/* Close button inside navigation */
.main-navigation .nav-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    z-index: 1102;
}
.main-navigation.active .nav-close {
    display: block;
}

.main-navigation .container {
    direction: ltr;
    height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* ==========================================================================
   Secondary Navigation Bar
   ========================================================================== */
.secondary-navigation {
    background-color: rgba(0, 0, 0, 0.5); /* Transparent black */
    padding: 2px 0; /* Reduced padding */
    border-bottom: 1px solid #444;
}

.secondary-navigation .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
}

.secondary-navigation a:not(.active-page):hover {
    color: #5ced5c;
}


/* ==========================================================================
   Footer
   ========================================================================== */
.gold-line {
    height: 3px;
    background-color: #28a745; /* Darker green to match topbar */
    width: 100%;
}

.bottom-bar {
    background-color: #222222; 
    color: #ffffff;
    padding: 30px 0; 
    text-align: center;
    position: relative; 
    margin-top: auto; 
}

.bottom-bar .gold-line {
    position: absolute;
    top: 0;
    left: 0;
}

.bottom-bar nav {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: center;
}

.bottom-bar nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 5px 10px; 
    font-size: 14px;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media (min-width: 769px) {
    .main-navigation {
        display: none; /* Desktop uses secondary-navigation */
    }
}

@media (max-width: 768px) {
    .secondary-navigation {
        display: none;
    }

    .topbar .topbar-contact-info {
        display: none; /* Hide full contact info on smaller screens */
    }

    body {
        padding-top: 50px; /* Only topbar height on smaller screens */
    }
}

@media (max-width: 768px) {
    .topbar .topbar-container {
        display: grid;
        grid-template-columns: 50px 1fr 50px;
        align-items: center;
        padding: 0 10px;
    }
    
    .hamburger-menu {
        display: block; /* Show hamburger */
        grid-column: 1 / 2;
        justify-self: start;
    }

    .topbar .contact-options {
        display: none; /* Hide contact options */
    }

    .topbar .logo {
        grid-column: 2 / 3;
        justify-self: center;
        margin: 0; /* Reset margin */
    }
    
    .topbar-address {
        display: none;
    }

    .hero-slider {
        height: 350px; 
    }

    .hero-slider .slide-caption {
        font-size: 18px;
        padding: 8px 12px;
        cursor: pointer;
    }
}

@media (max-width: 293px) {
    .topbar .logo img {
        padding-left: 12px;
    }
}

.site-description {
    background-color: #ffffff;
    color: #333;
    padding: 10px 0;
    text-align: center;
}

/*
.site-description .container h2 {
    font-size: 2.2em; 
    margin-bottom: 15px;
    font-weight: 700;
}
*/

.site-description .container h3 {
    font-size: 1.6em; /* New unified subheading size */
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.site-description .container p {
    font-size: 1em; /* New unified description size */
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500; /* Corrected font weight */
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px; 
    overflow: hidden; 
}

.slider-track {
    display: flex; 
    height: 100%; 
    transition: transform 0.5s ease-in-out; 
}

.hero-slider .slide {
    height: 100%;   
    position: relative; 
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slider .slide-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5); 
    padding: 10px 15px;
    font-size: 22px; 
    font-weight: 600; 
    user-select: none; 
    z-index: 2; 
    cursor: pointer;
}

.hero-slider .slide-caption h3 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.hero-slider .prev,
.hero-slider .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: 600; 
    font-size: 20px;
    transition: background-color 0.6s ease; 
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    z-index: 2; 
}

.hero-slider .next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.hero-slider .prev:hover,
.hero-slider .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* --- Base Styles & Resets --- */
[data-content-key] {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

[data-content-key].loaded {
    opacity: 1;
}

/* New Content Sections */

.info-section-dark {
    background-color: rgba(0, 0, 0, 0.5); /* Transparent black for dark sections */
    padding: 60px 0;
}
.info-section-light {
    background-color: #ffffff; /* White for light sections */
    padding: 60px 0;
    color: #333; /* Dark text on light background */
}

.info-section-dark h2, .info-section-light h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
}
.info-section-dark h2 {
    color: #ffffff;
}
.info-section-light h2 {
    color: #333;
}


/* Why Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.why-us-grid div {
    padding: 20px;
    text-align: center;
}

.why-us-grid .fas {
    font-size: 3em;
    margin-bottom: 20px;
    color: #5ced5c; /* Green accent */
    display: block;
    transition: transform 0.3s;
}

.why-us-grid h4 {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 600; /* Bolder headings */
}

.why-us-grid p {
    line-height: 1.7;
    font-weight: 400; /* Regular weight for paragraph text */
}

/* Reusable Button Style */
.btn-primary {
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.btn-primary .fas {
    margin-right: 8px;
}

/* Product Features Section */
.product-features-intro {
    padding: 20px 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5); /* Same as other dark sections */
}


section.product-features {
    padding: 30px 0 30px 0;
}
section.product-features.first-feature {
    padding-top: 30px;
}

.product-features .feature-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 0; /* No margin as padding is on the section */
}

/* Alternating layout for product features */
.product-features .feature-item {
    flex-direction: row; /* Default: Image left, Text right */
}

.product-features .feature-item:nth-of-type(even) {
    flex-direction: row-reverse; /* Even: Text left, Image right */
}

/* This is needed to reset text alignment that might be inherited */
.product-features .feature-item:nth-of-type(even) .feature-text {
    text-align: left; 
}

.product-features .feature-image {
    width: 50%;
    flex-shrink: 0;
    height: 350px; /* Fixed height */
    object-fit: cover; /* Cover the area */
    border-radius: 3px; 
}

.product-features .feature-text {
    flex-grow: 1;
    width: 50%; /* Explicit width */
}

.info-section-dark .product-features .feature-text {
    color: #ffffff; /* White text on dark BG */
}

.product-features .feature-text p {
    line-height: 1.8;
    font-size: 1.1em;
    font-weight: 400; /* Lighter weight for description */
    margin-bottom: 25px;
}
.product-features .feature-text .btn-primary {
    margin-top: 15px;
}

.product-features .feature-text h4 {
    font-size: 2em;
    margin-bottom: 15px;
}
.info-section-dark .product-features .feature-text h4 {
    color: #ffffff;
}
.info-section-light .product-features .feature-text h4 {
    color: #333;
}


/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    padding: 20px 0;
}

.process-steps .step {
    text-align: center;
    position: relative;
    padding: 0 15px;
    z-index: 1;
    background-color: rgba(26, 26, 26, 0.0); /* Match the home-page background */
}

/* Arrow connectors */
.process-steps .step:not(:last-child)::after {
    content: '\f061'; /* Font Awesome arrow right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 35px; /* Vertically center with the icon */
    right: -25px; /* Position between steps */
    font-size: 2em;
    color: #5ced5c; /* Green accent */
    transform: translateX(50%);
    z-index: -1;
}


.process-steps .step-icon {
    font-size: 3em;
    color: #5ced5c;
    margin-bottom: 40px; /* More space between icon and number */
    display: block;
}

.process-steps .step-number {
    display: none; /* Hidden as icons are primary */
}

.process-steps h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

.process-steps p {
    font-weight: 400;
    line-height: 1.6;
}

/* CTA Section */
.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px auto; /* Center and provide spacing */
    font-size: 1.1em;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

strong {
    font-weight: 600;
}

/* Form Status Message Styling */
.form-status {
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
    min-height: 20px; /* Reserve space to prevent layout shift */
}

/* MEDIA QUERIES for new sections */

@media (max-width: 992px) {
    .process-steps .step:not(:last-child)::after {
        display: none; /* Hide arrows on smaller screens */
    }

    .info-section-dark h2, .info-section-light h2 {
        font-size: 1.8em; /* Matched to main welcome header for mobile */
        margin-bottom: 30px;
    }
}


@media (max-width: 768px) {
    .product-features .feature-item,
    .product-features .feature-item:nth-of-type(even) {
        flex-direction: column; /* Stack vertically on mobile */
        text-align: center; /* Center text for stacked layout */
    }

    .product-features .feature-image {
        width: 100%; /* Full width on mobile */
        height: 250px; /* Adjust height for mobile */
    }
    .product-features .feature-text,
    .product-features .feature-item:nth-of-type(even) .feature-text {
        width: 100%; /* Full width on mobile */
        text-align: center;
    }
    .product-features .feature-text p {
        font-size: 1em;
    }
}

.main-navigation ul {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.main-navigation li {
    margin-bottom: 5px;
}

.main-navigation a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s;
    text-transform: uppercase;
}

.main-navigation a:hover {
    background-color: #f0f0f0;
}