/* CFLstyle.css - Custom Styles for Signs CFL Website */

/* General Body and HTML Styles */
html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: 'Inter', sans-serif; /* Custom font */
    background-color: #f0f4f8; /* Light gray background */
    color: #333; /* Dark gray text color */
}

/* Accessibility: Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #007bff;
    color: white;
    padding: 8px;
    z-index: 10000;
    transition: top 0.3s ease-in-out;
}

.skip-link:focus {
    top: 0;
}

/* Hero Section Styles */
.hero-section {
    background-image: url('/images/Hero-Header.webp'); /* Hero background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 0; /* Ensure content is above overlay */
    padding-top: 6rem; /* Adjust for fixed header */
    padding-bottom: 6rem; /* Adjust for fixed header */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: -1; /* Place behind content */
}

.hero-section .container {
    position: relative;
    z-index: 1; /* Ensure content is above overlay */
}

/* Text shadow for better readability on hero images */
.text-shadow-custom {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Minimized Hero Section for Service Area Pages */
.hero-minimized {
    min-height: 40vh; /* Shorter height for service pages */
    padding-top: 8rem; /* Adjust padding for smaller height */
    padding-bottom: 4rem;
}

/* Product Section General Styles */
.product-section {
    min-height: 80vh; /* Minimum height for sections */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    text-align: center;
}

/* Alternating background colors for sections */
.product-section:nth-of-type(even) {
    background-color: #e2e8f0; /* Lighter gray */
}

.product-section:nth-of-type(odd) {
    background-color: #f0f4f8; /* Even lighter gray */
}

/* Specific styles for the service area details section */
.service-area-details-section {
    min-height: auto; /* Allow content to dictate height */
    padding-top: 2rem;
    padding-bottom: 2rem;
}


/* Contact Section Styles */
.contact-section {
    background-color: #2d3748; /* Dark blue-gray background */
    color: white;
    padding: 4rem 1rem;
    text-align: center;
}

/* Form element styling */
.contact-form input,
.contact-form textarea,
.contact-form select {
    background-color: #4a5568; /* Darker input background */
    border: 1px solid #718096; /* Gray border */
    color: white;
    padding: .75rem;
    border-radius: .5rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.contact-form select {
    color: #cbd5e0; /* Lighter placeholder text */
}

.contact-form select option {
    background-color: #4a5568; /* Ensure options match input style */
    color: white;
}

/* Pricing Table Styles */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-table th,
.pricing-table td {
    border: 1px solid #cbd5e0; /* Light gray border */
    padding: .75rem;
    text-align: center;
}

.pricing-table th {
    background-color: #a0aec0; /* Header background */
    color: #2d3748; /* Dark text */
    font-weight: bold;
}

.pricing-table tr:nth-child(even) {
    background-color: #f7fafc; /* Zebra striping for rows */
}

/* Order Button Styles */
.order-button {
    display: inline-block;
    background-color: #4CAF50; /* Green */
    color: white;
    font-weight: bold;
    padding: .5rem 1.5rem;
    border-radius: 9999px; /* Fully rounded */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.order-button:hover {
    transform: scale(1.05);
    background-color: #388e3c; /* Darker green on hover */
}

/* Header Call to Action Button */
.header-call-button {
    display: inline-flex;
    align-items: center;
    background-color: #007bff; /* Blue */
    color: white;
    font-weight: bold;
    padding: .3rem .8rem;
    border-radius: 9999px; /* Fully rounded */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-call-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: scale(1.05);
}

.header-call-button i {
    margin-right: .5rem; /* Space between icon and text */
}

/* Dropdown Menu Styles (Desktop) */
.dropdown:hover .dropdown-menu {
    display: block; /* Show menu on hover */
}

.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: .5rem;
    top: 100%; /* Position below the toggle */
    left: 0;
    padding: .5rem 0;
}

.dropdown-menu a {
    color: #333;
    padding: .75rem 1rem;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.2s;
}

.dropdown-menu a:hover {
    background-color: #f0f4f8; /* Light background on hover */
}

/* Mobile Menu Styles */
#mobile-menu {
    transition: transform 0.3s ease-in-out; /* Smooth slide transition */
    transform: translateY(-100%); /* Start off-screen */
}

#mobile-menu.is-active {
    transform: translateY(0); /* Slide in */
}

.mobile-submenu {
    display: none; /* Hidden by default */
    padding-left: 1.5rem; /* Indent submenu items */
    margin-top: .5rem;
}

.mobile-submenu.active {
    display: block; /* Show submenu when active */
}

/* Rotate arrow for mobile dropdown */
#mobile-print-products-arrow.rotate-180 {
    transform: rotate(180deg);
}

/* Image Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1; /* Show when active */
}

.modal-content {
    position: relative;
    background-color: white;
    padding: 1rem;
    border-radius: .75rem;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden; /* Hide overflow if image is too large */
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: .5rem;
}

.modal-close-button {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: none;
    border: none;
    font-size: 2rem; /* Large close icon */
    color: #333;
    cursor: pointer;
    padding: .5rem;
    line-height: 1; /* Align icon properly */
    transition: color 0.2s ease;
}

.modal-close-button:hover {
    color: #ef4444; /* Red on hover */
}

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #007bff; /* Blue */
    color: white;
    padding: .75rem 1rem;
    border-radius: 9999px; /* Fully rounded */
    font-size: 1.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    z-index: 999;
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTopBtn:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-5px); /* Slight lift effect */
}

/* Hide scroll to top button on mobile */
@media (max-width: 767px) {
    #scrollToTopBtn {
        display: none;
    }
}

/* Message Box for Form Submissions */
.message-box {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    text-align: center;
    color: white; /* Default text color */
}

.message-box.success {
    background-color: #4CAF50; /* Green for success */
}

.message-box.error {
    background-color: #f44336; /* Red for error */
}

/* Honeypot field for bots */
.honeypot {
    position: absolute;
    left: -9999px; /* Move off-screen */
    top: -9999px;
    opacity: 0;
    pointer-events: none; /* Prevent interaction */
    height: 1px;
    width: 1px;
    overflow: hidden;
}
