/* Add this @import rule at the very top of your style.css file.
 *  This imports the 'Lato' and 'Roboto' fonts from Google Fonts.
 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Lato:wght@400;700;900&display=swap');

@import url('header.css');
@import url('cards.css');
@import url('forms.css');


/* General Resets and Base Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif; /* Readable sans-serif font */
    line-height: 1.6;
    color: #333333; /* Dark gray for primary text */
    background-color: #F8F8F8; /* Light gray background */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative; /* Added for absolute positioning of disclaimer */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Consistent horizontal padding */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica Neue', Arial, sans-serif; /* Bold for headings */
    color: #333333; /* Dark color for most headings */
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 {
    font-size: 2.8em;
    color: #0077D4; /* Primary blue for main headings */
    text-align: center;
}

h2 {
    font-size: 2.2em;
    text-align: center;
    color: #0056b3; /* Slightly darker blue for section titles */
}

h3 {
    font-size: 1.8em;
    color: #333333;
}

h4 {
    font-size: 1.4em;
    color: #0077D4;
}

p {
    margin-bottom: 1em;
}

a {
    color: #0077D4; /* Primary blue for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3; /* Darker blue on hover */
    text-decoration: underline;
}

/* Hero Section */
.hero-section {
    position: relative; /* Needed for the overlay */
    padding: 20px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #FFFFFF; /* Set text color to white for all hero content */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 50% black overlay */
}

.hero-section .container {
    position: relative; /* Ensure content is above the overlay */
}

/* Styles for text over hero images */
.hero-section h1 {
    font-size: 3em;
    margin-bottom: 25px;
    color: #FFFFFF; /* White text for better contrast on images */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Text shadow for readability */
}

.hero-section p {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #FFFFFF; /* Reverted to white for better contrast on dark backgrounds */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9); /* Darkened and slightly increased text shadow for better readability */
}

.hero-buttons {
    display: flex; /* Make hero buttons a flex container */
    justify-content: center; /* Center buttons horizontally */
    gap: 15px; /* Space between buttons */
    flex-wrap: wrap; /* Allow wrapping on smaller screens if needed */
}

.hero-buttons .btn {
    margin: 0; /* Remove individual button margins, let gap handle spacing */
}

/* Specific Hero Section Background Images */
.hero-home {
    background-image: url('images/banner_top.png');
}

.hero-general-repair {
    background-image: url('images/service_header.png');
}

.hero-service-agreements {
    background-image: url('images/service_header_2.png');
}

.hero-spare-parts {
    background-image: url('images/Parts_header.png');
}

.hero-legacy-repair {
    background-image: url('images/equipment.png');
}

.hero-modern-repair {
    background-image: url('images/service_header.png'); /* Reusing a general service image */
}

.hero-contact {
    background-image: url('images/banner_top.png');
}

.hero-about-us {
    background-image: url('images/banner_top.png');
}

.hero-emergency-rentals {
    background-image: url('images/service_header.png'); /* Placeholder image for emergency rentals */
}

.hero-standard {
    background-image: url('images/banner_top.png'); /* Default image for standardized hero sections */
}

.hero-refurbished-systems {
    background-image: url('images/equipment.png');
}

.hero-parts-and-systems {
    background-image: url('images/Parts_header.png');
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.btn.primary {
    background-color: #0077D4; /* Primary blue */
    color: #FFFFFF;
    border: 2px solid #0077D4;
}

.btn.primary:hover {
    background-color: #0056b3; /* Darker blue on hover */
    border-color: #0056b3;
}

.btn.secondary {
    background-color: transparent;
    color: #0077D4; /* Blue text for secondary buttons on light backgrounds */
    border: 2px solid #0077D4; /* Blue border */
}

.btn.secondary:hover {
    background-color: #0077D4;
    color: #FFFFFF;
}

.btn.large {
    font-size: 1.3em;
    padding: 15px 35px;
}

.btn.small {
    padding: 8px 18px;
    font-size: 0.9em;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* White background for content sections */
    border-bottom: 1px solid #E0E0E0; /* Subtle separator */
}

.content-section:last-of-type {
    border-bottom: none; /* No border for the last content section */
}

.content-section h2 {
    margin-bottom: 40px;
}

.content-section p.centered-text {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.content-section ul {
    list-style: none; /* Remove default list style */
    padding: 0;
    margin-bottom: 20px;
}

.content-section ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.content-section ul li::before {
    content: '•'; /* Custom bullet point */
    color: #0077D4; /* Blue bullet */
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* Two-Column Layout */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.column {
    padding: 20px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
}

/* Screen reader only class for hidden content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* Contact Section (for general CTAs on other pages) */
.cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #EFEFEF; /* Slightly darker light gray */
    color: #333333;
}

.cta-section h2 {
    color: #0056b3;
}

.cta-section p {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Footer */
footer {
    background-color: #333333; /* Dark gray footer */
    color: #F8F8F8; /* Light text */
    padding: 30px 0;
    font-size: 0.9em;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically align items */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.footer-left-content {
    text-align: center;
    flex-grow: 1;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #0077D4; /* Primary blue for footer links */
}

footer a:hover {
    color: #FFFFFF;
}

.right-to-repair-banner {
    background-color: #ffe0e0; /* Light red background */
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.right-to-repair-banner p {
    margin: 0;
    font-size: 1.1em;
    color: #333;
}

.right-to-repair-banner a {
    font-weight: bold;
    text-decoration: underline;
}

/* Specific Page Styles */
.legal-page-content {
    max-width: 800px;
    text-align: left;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #0077D4; /* Blue border */
    margin-left: auto;
    margin-right: auto;
}

.process-step {
    text-align: center;
    padding: 20px;
}
.process-step .step-number {
    font-size: 2em;
    font-weight: bold;
    color: #0077D4;
    border: 2px solid #0077D4;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    line-height: 56px;
    margin: 0 auto 15px;
}

.sold-item {
    position: relative;
    overflow: hidden; /* To contain the banner */
}
.sold-item::after {
    content: 'SOLD';
    position: absolute;
    top: 25px;
    left: -35px;
    background-color: #BF0A30;
    color: white;
    padding: 8px 40px;
    transform: rotate(-45deg);
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 10;
}
.sold-item img {
    opacity: 0.5;
}

.btn.sold-btn {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Homepage Card & Modal Styles */
.about-us-card .icon:not(.american-flag-icon), .rental-card .icon {
    display: block;
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    color: #0077D4; /* Default icon color */
}

.patriotic-card h3 {
    color: #002868; /* Dark Navy Blue */
}

.patriotic-card p {
    color: #333; /* Standard dark text for readability */
}

.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 550px;
    background-color: #F8F8F8; /* Light gray for cards */
    padding: 20px; /* Adjust padding as needed */
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Soft shadow */
    border: 1px solid #E0E0E0;
    color: #333333; /* Dark gray for primary text */
}

.modal-close {
    color: #333; /* Dark gray for visibility on light background */
    position: absolute;
    top: 10px; /* Adjusted position */
    right: 15px; /* Adjusted position */
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

#modal-card-content .card {
transform: scale(1.1); /* Enlarge the card inside the modal */
box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

body.modal-active {
    overflow: hidden;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}


/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.6em;
    }
    h3 {
        font-size: 1.4em;
    }
    h4 {
        font-size: 1.2em;
    }
    p {
        font-size: 0.9em;
    }
    .hero-section {
        padding: 8px 0;
    }
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .card-grid, .two-column-grid {
        grid-template-columns: 1fr; /* Single column for cards */
    }
    .btn {
        padding: 10px 20px;
        font-size: 1em;
    }
    .content-section, .cta-section, .contact-form-section {
        padding: 40px 0;
    }
}



.locations-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.1em;
}

.locations-list li {
    display: inline-block;
    margin: 0 15px;
    padding-left: 0;
}

.locations-list li::before {
    content: '' !important;
}

.map-container {
    max-width: 25%;
    margin: 0 auto; /* Center the map container */
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* 4:3 Aspect Ratio */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Fix for anchor links being obscured by the sticky header */
section[id] {
    scroll-margin-top: 100px;
}

.supported-systems-list {
    font-size: 0.7em;
}

.american-flag-icon {
    width: 75%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#demo-banner {
background-color: red;
color: white;
text-align: center;
padding: 10px 0;
font-weight: bold;
font-size: 1.2em;
width: 100%;
position: relative;
z-index: 999; /* Ensure it's on top */
}

.card-grid-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Add this new rule to your stylesheet */

.right-to-repair-tile {
    /* 1. Set the background image */
    /* Make sure the path to your image is correct */
    background-image: url('images/right_to_repair_arm.png');

    /* 2. Make the image cover the entire tile area without stretching */
    background-size: cover;

    /* 3. Center the image within the tile */
    background-position: center;

    /* 4. Prevent the image from repeating if it's smaller than the tile */
    background-repeat: no-repeat;

    /* 5. Improve text readability over the new background */
    color: #FFFFFF; /* Sets the text color to white */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8); /* Adds a strong shadow to make text pop */
}


/* --- HERO SECTION OVERRIDE --- */
.hero-section {
    min-height: 15vh !important;
    padding: 20px 0 !important;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 12.5vh !important;
        padding: 8px 0 !important;
    }
}
/* Shopify Search Styles */
#shopify-search-container {
margin: 20px auto;
max-width: 400px; /* Adjust as needed */
}

#shopify-search-input {
width: 100%;
padding: 10px 15px;
border: 1px solid #ccc;
border-radius: 25px;
font-size: 1em;
box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#shopify-search-input:focus {
border-color: #0077D4;
box-shadow: 0 0 8px rgba(0,119,212,0.2);
outline: none;
}

#search-results-wrapper {
position: absolute;
width: 100%;
max-height: 400px; /* Limit height for scrollability */
overflow-y: auto;
background-color: #fff;
border: 1px solid #eee;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
z-index: 100; /* Ensure it's above other content */
margin-top: 5px;
}

#search-results .shopify-buy__product {
display: flex;
align-items: center;
padding: 10px;
border-bottom: 1px solid #eee;
cursor: pointer;
transition: background-color 0.2s ease;
}

#search-results .shopify-buy__product:hover {
background-color: #f9f9f9;
}

#search-results .shopify-buy__product__variant-img {
width: 60px;
height: 60px;
object-fit: contain;
margin-right: 10px;
flex-shrink: 0;
}

#search-results .shopify-buy__product__title {
font-weight: bold;
font-size: 1.1em;
color: #333;
margin-bottom: 5px;
}

#search-results .shopify-buy__product__price {
font-size: 0.9em;
color: #555;
}

#loading-indicator, #no-results-message {
padding: 20px;
text-align: center;
color: #777;
}

/* Utility classes for Tailwind-like behavior */
.relative {
    position: relative;
}

.w-full {
    width: 100%;
}

.max-w-md {
    max-width: 20rem; /* Equivalent to Tailwind's max-w-md */
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.pr-10 {
    padding-right: 2.5rem;
}

.border {
    border-width: 1px;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.rounded-full {
    border-radius: 9999px;
}

.focus\:outline-none:focus {
    outline: 0;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px;
}

.focus\:ring-blue-500:focus {
    box-shadow: 0 0 0 2px #3b82f6;
}

.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.absolute {
    position: absolute;
}

.right-3 {
    right: 0.75rem;
}

.top-1\/2 {
    top: 50%;
}

.-translate-y-1\/2 {
    transform: translateY(-50%);
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.text-gray-400 {
    color: #9ca3af;
}

.hidden {
    display: none;
}

.mt-2 {
    margin-top: 0.5rem;
}

.z-50 {
    z-index: 50;
}

.bg-white {
    background-color: #fff;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.overflow-y-auto {
    overflow-y: auto;
}

/* Custom scrollbar for search results */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

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

.disclaimer-note {
    margin-top: 30px;
    padding: 15px;
    background-color: #fff3cd; /* Light yellow background */
    border: 1px solid #ffeeba; /* Yellow border */
    border-radius: 5px;
    text-align: center;
}

.disclaimer-text {
    color: #856404; /* Dark yellow text */
    font-weight: bold;
    margin: 0;
    font-size: 0.95em;
}

#consumables-disclaimer {
padding: 5px 10px;
font-size: 0.8em;
color: #555;
background-color: #f8f8f8; /* Light background to stand out from body */
border-bottom-right-radius: 5px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#consumables-disclaimer span {
font-weight: bold;
}

/* MODIFICATION: Added margin-top: auto to push the email to the bottom */
.employee-email {
    margin-top: auto;
    padding-bottom: 10px; /* Add some padding from the bottom of the card */
}

.click-info {
    text-align: center;
    font-size: 0.9em;
    margin-top: 10px;
    color: #0077D4; /* Match link color */
    font-weight: bold;
}

.sold-item-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sold-item-caption {
    padding: 0 15px 15px;
}

/* Styles for content within the modal-details when displayed in the modal */
#modal-card-content {
    background-color: #F8F8F8; /* Light gray for cards */
    padding: 20px; /* Adjust padding as needed */
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Soft shadow */
    border: 1px solid #E0E0E0;
    color: #333333; /* Dark gray for primary text */
}

#modal-card-content h3 {
    color: #333333; /* Dark color for headings */
    font-size: 1.5em;
    margin-bottom: 10px;
}

#modal-card-content p {
    color: #555555; /* Slightly lighter dark color for paragraphs */
    font-size: 1em;
    margin-bottom: 15px;
}

#modal-card-content a {
    color: #0077D4; /* Primary blue for links */
    font-weight: bold;
}

#modal-card-content a:hover {
    color: #0056b3;
}
