/* Removed all global styles, which are now in /styles.css */

/* Hero Slider, Site Description, Bottom Bar, etc. */
.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; /* Crop to fit while maintaining aspect ratio */
    object-position: center; /* Center the image within the container */
}

.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; 
    -webkit-user-select: none; 
    -ms-user-select: none; 
    z-index: 2; 
    cursor: pointer;
}

.hero-slider .slide-caption h3 {
    margin: 0;
    font-size: inherit; /* Inherit font size from parent */
    font-weight: inherit; /* Inherit font weight from parent */
}

.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);
}

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

.site-description .container h2 {
    font-size: 2.2em; /* Matched to other section titles */
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.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 */
}

.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;
}

.non-selectable-text {
    user-select: none;
    -webkit-user-select: none; 
    -ms-user-select: none; 
}

strong {
    font-weight: 600; /* Bolder than the default, but not overly so */
}

.hero-image-collection img {
    width: 100%;
    max-height: 400px; 
    object-fit: cover;
}

.collection-content {
    padding: 30px 20px;
}

.collection-content h1 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600; 
}

.collection-description-text {
    margin-bottom: 30px;
    line-height: 1.7;
    font-size: 16px;
    font-weight: 500; /* Updated font weight */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px;
}

.product-item {
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    background-color: #fff;
}

.product-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.product-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600; 
}

.product-item .price {
    font-weight: 600; 
    color: #333; /* Use consistent off-black */
    margin-bottom: 10px;
}

.product-item button {
    background-color: #222;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600; 
}

.product-item button:hover {
    background-color: #4CAF50;
    color: #fff;
}

/* 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; /* Maintain left-to-right text direction */
    height: calc(100vh - 60px); /* Use viewport height minus padding */
    overflow-y: auto;
    overflow-x: hidden;
}

/* --- 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, .info-section-light {
    padding: 60px 0;
    position: relative;
}

.info-section-dark {
    background-color: rgba(0, 0, 0, 0.7); /* Standardized transparent black background */
}

.info-section-light {
    background-color: #ffffff;
    color: #333;
}

.info-section-dark h2, .info-section-light h2 {
    margin-bottom: 40px;
    text-align: center;
    font-size: 2.5rem;
    line-height: 1.4;
    font-weight: 400;
}

.info-section-dark h2 {
    color: #ffffff; /* Ensure headers are white */
}
.info-section-light h2 {
    color: #333; /* Ensure headers are dark */
}

/* Grids for new sections */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
    flex-shrink: 0;
}

.why-us-grid div {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
}

.why-us-grid .fas {
    font-size: 2.5em;
    color: #4CAF50;
    margin-bottom: 15px;
}

.why-us-grid h4 {
    margin-top: 0;
    font-size: 1.6em;
    color: #4CAF50; /* Green color for titles */
}

.why-us-grid p {
    font-size: 1em; /* New unified description size */
}

/* Primary Button Style */
.btn-primary {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 25px;
    background-color: #4CAF50;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #5ced5c; /* Brighter green for hover */
}

/* Add spacing for icons in buttons */
.btn-primary .fas {
    margin-right: 8px;
}

.product-features-intro {
    padding: 12px 0px; /* Symmetrical padding */
    background-color: rgba(0, 0, 0, 0.7); /* Restored transparent dark background */
    min-height: auto !important;
}

/* --- Overlapping Product Features Logic --- */
section.product-features {
    display: flex;
    align-items: center;
    padding: 45px 0; /* Use padding for spacing, not min-height */
}

.product-features .feature-item {
    display: flex;
    align-items: flex-end; /* Align items to the bottom edge for perfect alignment */
    gap: 60px;
    margin-bottom: 0; /* remove margin from items */
}

.product-features .feature-item:nth-of-type(even) {
    flex-direction: row-reverse;
    flex-shrink: 0;
}

.product-features .feature-item:nth-of-type(even) .feature-text {
    text-align: right;
}

.product-features .feature-image {
    width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.product-features .feature-text {
    flex-basis: 50%;
    padding: 0; /* Removed horizontal padding, gap will handle spacing */
    display: flex;
    flex-direction: column;
}

.info-section-dark .product-features .feature-text {
    color: #ffffff; /* Ensure text is readable on dark background */
}

.product-features .feature-text p {
    max-width: 55ch; /* Limit line length for better readability */
    font-size: 1em; /* New unified description size */
    letter-spacing: 0.5px;
    /* margin-top: auto; */ /* This was the source of the alignment error */
}

.product-features .feature-text .btn-primary {
    margin-top: auto; /* This will push the button to the bottom of the flex container */
    align-self: flex-start; /* Prevent button from stretching horizontally */
}

.product-features .feature-text h4 {
    font-size: 2rem;
}

.info-section-dark .product-features .feature-text h4 {
    color: #ffffff; /* Override inline style */
}

.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: 60px 50px; /* Increased column gap for arrows */
    margin-top: 40px;
    color: #f4f4f4; /* Set default text color for the section */
}

.process-steps .step {
    flex: 1;
    min-width: 200px; /* Prevent shrinking too much */
    padding: 60px 20px 20px; /* Increased top padding for icon spacing */
    text-align: center;
    position: relative;
    background-color: rgba(255, 255, 255, 0.05); /* Matched to why-us section */
    border-radius: 8px;
}

.process-steps .step:not(:last-child)::after {
    content: '\f061'; /* Font Awesome arrow-right icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%; /* Vertically center */
    right: -25px; /* Position relative to the gap */
    transform: translate(50%, -50%); /* Center the arrow perfectly */
    font-size: 1.5em;
    color: #4CAF50;
    opacity: 1;
}

.process-steps .step-icon {
    font-size: 2.5em;
    color: #4CAF50;
    position: absolute;
    /* top: -25px; */
    top: 12.5%;
    left: 50%;
    transform: translateX(-50%);
}

.process-steps .step-number {
    display: none; /* Hide the numbers as icons are now used */
}

.process-steps h4 {
    font-size: 1.6em; /* New unified subheading size */
    margin-bottom: 10px;
    color: #4CAF50;
}

.process-steps p {
    font-size: 1em; /* Base size for descriptions */
}

/* CTA Section */
.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-size: 1em; /* New unified description size */
}

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

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form-container, .cta-text-container, .map-container {
    padding: 20px;
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form-container .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form-container label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.contact-form-container input,
.contact-form-container textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.contact-form-container textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form-container button {
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.contact-form-container button:hover {
    background-color: #45a049;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 300px;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid #4CAF50;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #555;
    color: #fff;
}

/* ==========================================================================
   Secondary Navigation Bar
   ========================================================================== */
.secondary-navigation {
    position: fixed;
    top: 50px; /* Position below the topbar */
    left: 0;
    width: 100%;
    background-color: rgba(34, 34, 34, 0.7); /* Increased transparency */
    z-index: 999; /* Below topbar, above content */
    padding: 2.5px 0; /* Reduced padding */
    height: 40px;
}

.secondary-navigation .container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* gap: 100px; */
    gap: clamp(16px, calc(6vw), 100px);
}

@media (max-width: 1428px) {
    .secondary-navigation .container {
        gap: clamp(16px, calc(5vw), 100px);
    }
}

@media (max-width: 1282px) {
    .secondary-navigation .container {
        gap: clamp(16px, calc(3vw), 100px);
    }
}

@media (max-width: 1067px) {
    .secondary-navigation .container {
        gap: clamp(16px, calc(1vw), 100px);
    }
}

.secondary-navigation a {
    white-space: nowrap;
    font-size: 16px; /* Reduced font size */
    color: #ffffff; /* Ensure text is white on dark background */
    text-decoration: none;
    padding: 8px 12px 5px; /* Adjusted bottom padding to accommodate border */
    transition: color 0.3s ease;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    text-transform: uppercase; /* Make text uppercase */
    letter-spacing: 2px;
}

.secondary-navigation a.active-page {
    border-bottom: 3px solid #5ced5c;
    color: #ffffff; /* Ensure active link text is white */
}

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

/* Dropdown for Desktop Navigation */
.secondary-navigation .dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.secondary-navigation .dropdown .dropdown-trigger {
    cursor: pointer;
    border-bottom: 3px solid transparent;
    padding-bottom: 5px; /* Match other items */
}

.secondary-navigation .dropdown .dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(34, 34, 34, 0.7);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
    z-index: 1;
    list-style: none;
    padding: 10px 0;
    margin-top: 0;
    border-radius: 0 0 4px 4px;
    border-top: 3px solid #5ced5c;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.secondary-navigation .dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.secondary-navigation .dropdown-content li a {
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    text-transform: none; /* Override uppercase from main nav */
    border-bottom: none; /* Remove the underline effect */
    letter-spacing: 2px;
}

.secondary-navigation .dropdown-content li a:hover {
    background-color: #333;
    color: #5ced5c;
}

/* ==========================================================================
   End of Secondary Navigation Bar
   ========================================================================== */

/* --- Media Queries --- */

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

/* --- Mobile Specific Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block; /* Show hamburger */
        flex-basis: 50px; /* Reserve space */
        flex-shrink: 0;
    }

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

    .topbar .logo {
        flex-grow: 1;
        display: flex;
        justify-content: center;
        margin: 0 -40px 0 -40px;
    }
    
    .hero-slider {
        height: 350px; 
    }
    .hero-slider .slide-caption {
        font-size: 18px;
        padding: 8px 12px;
        cursor: pointer;
    }

    .site-description .container h2 {
        font-size: 1.5em; /* Adjusted font size for mobile */
        line-height: 1.3; /* Tighter line spacing for mobile */
    }

    .site-description .container p {
        text-align: center;
    }

    /* Reduce size of all other section headers on mobile */
    .info-section-dark h2, 
    .info-section-light h2 {
        font-size: 1.5em;
        line-height: 1.3;
    }

    .product-features .feature-item,
    .product-features .feature-item:nth-of-type(even) {
        flex-direction: column;
        gap: 20px; /* Reduce vertical gap for mobile */
        margin-bottom: 50px; /* Keep original larger margin for mobile */
    }

    .product-features .feature-image {
        width: 100%;
        height: auto; /* Use auto height to maintain aspect ratio */
    }

    .product-features .feature-text,
    .product-features .feature-item:nth-of-type(even) .feature-text {
        text-align: left;
    }

    .product-features .feature-text p {
        max-width: 100%; /* Ensure text wraps within the parent container */
        font-size: 15px; /* Slightly smaller for mobile */
    }

    .process-steps .step:not(:last-child)::after {
        /* Transform the right arrow into a down arrow */
        rotate: 90deg;
    }
}

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

    /*
    body {
        padding-top: 73px;
    }
    */
}

section.product-features.first-feature {
    padding-top: 45px; /* Correct vertical spacing to match other sections */
    padding-bottom: 45px; /* Add bottom padding to match */
}

@media (max-width: 992px) {
    .process-steps .step:not(:last-child)::after {
        content: "→";
        position: static;
        transform: none;
        margin: 10px 0;
        display: block;
        text-align: center;
    }
}

.topbar .topbar-contact-info {
    padding-right: 60px;
}

.topbar .logo {
    padding-left: min(60px, 3.7vw);
}

@media (max-width: 768px) {
    .topbar .logo {
        padding-left: 15px;
    }
}
/* Fix for Contact Section on Mobile */
@media (max-width: 992px) {
    .cta-grid {
        display: flex;
        flex-direction: column;
        gap: 40px; /* Add space between stacked items */
    }
}

/* --- New Footer Styles --- */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    align-items: start;
    text-align: left;
}

.footer-column h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p, .footer-column a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-column a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-column nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Override inherited center alignment */
}

.footer-column nav a {
    margin: 0 0 8px 0; /* Override inherited horizontal margin */
}

.footer-logo {
    max-width: 250px; /* Doubled from 180px */
    align-self: center; /* Vertically center the logo in its grid area */
}

.footer-logo img {
    width: 100%;
    height: auto;
}

/* --- Refined Footer Contact & Info Styles --- */
.footer-column p {
    margin-bottom: 0; /* Remove bottom margin for tighter spacing */
}

.footer-column.footer-contact p a {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
}