/*
 * Bytely Enterprises - Main Stylesheet (style.css)
 *
 * This stylesheet defines the visual design of the Bytely Enterprises website,
 * adhering to modern, simplistic aesthetics with subtle design flares.
 * It includes styles for typography, layout, components, responsiveness,
 * and basic accessibility (ADA compliance).
 *
 * Color Palette:
 * Primary Dark Blue: #283747 (from logo - darkest part of 'B')
 * Accent Light Blue: #4A90E2 (from logo - lighter part of 'E' shadow)
 * Text Color: #333333 (for readability)
 * Light Grey: #F4F4F4 (for backgrounds/borders)
 * White: #FFFFFF
 * Success Green: #4CAF50
 * Error Red: #F44336
 */

/* 1. Global Resets & Box Model */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF; /* White background by default */
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #283747; /* Dark blue for headings */
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 {
    font-size: 2.8em;
    font-weight: 700;
}

h2 {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5em;
    position: relative; /* For the subtle underscore flare */
    padding-bottom: 0.5em;
}
/* Flare for H2: Subtle underscore */
h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #4A90E2; /* Accent light blue */
    border-radius: 2px;
}

h3 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 1em;
}

p {
    margin-bottom: 1em;
    font-size: 1em;
}

a {
    color: #4A90E2; /* Accent blue for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #283747; /* Darker on hover */
    text-decoration: underline;
}

/* 3. Layout & Containers */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Specific inner container for nav to manage padding on smaller screens */
.header-nav-container-inner {
    max-width: 1500px; /* Aligns with main content width */
    width: 100%;
    padding: 0 20px; /* Ensure content is inside padding */
    margin: 0 auto; /* Centering for inner content */
}


section {
    padding: 60px 0;
}

section:nth-child(even) {
    background-color: #F4F4F4; /* Light grey for alternating sections */
}

.section-hero-subpage {
    background: linear-gradient(135deg, #283747 0%, #4A90E2 100%);
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px 40px 20px; /* Adjusted padding */
    min-height: 30vh; /* Shorter than main hero */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Optional: Add subtle background patterns similar to main hero if desired */
}
.section-hero-subpage h1 {
    color: #FFFFFF;
    font-size: 3em;
    margin-bottom: 0.5em;
    margin: 0 auto 0.5em auto;
    max-width: 800px;
}
.section-hero-subpage p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 0.5em auto;
    margin-bottom: 0;
}

/* 4. Header & Navigation - THOR'S HAMMER DESIGN (FINAL REFINEMENT) */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 15px 0; /* Padding for the entire sticky header */
    display: flex;
    align-items: center; /* Vertically centers the header-content-flex */
    justify-content: center; /* Horizontally centers the header-content-flex */
}

.header-floating-wrapper { /* This is the floating 'Thor's Hammer' element */
    display: flex; /* Layout the two main columns side-by-side */
    flex-direction: row; /* Explicitly ensure horizontal layout */
    width: 100%; /* Spans its container */
    max-width: 1500px; /* Match main content width */
    margin: 0 auto; /* Center horizontally */
    border-radius: 15px; /* Rounded corners for the floating block */
    overflow: hidden; /* Ensures borders/shadows are contained */
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); /* Stronger shadow for floating effect */
    background-color: transparent; /* No background on wrapper itself, children define */
    align-items: center; /* Vertically centers the logo column and nav row */
    background: linear-gradient(15deg, #283747 0%, #4A90E2 100%);
}

/* Left Column: Logo Block (Hammer Head) */
.header-left-column {
    flex-shrink: 0; /* Prevent this column from shrinking */
    background: transparent; 
    display: flex; /* Flex to center logo */
    flex-direction: column;
    justify-content: center; /* Center logo vertically */
    align-items: center; /* Center logo horizontally */
    padding-top: 10px;
    padding-bottom:10px;
    position: relative;
    z-index: 2; /* Ensure it stays on top */
    min-height: 100px; /* Minimum height for logo block */
}

.header-logo-link {
    display: flex; /* Use flex to center image inside the white square */
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    background-color: #FFFFFF; /* White background behind the logo image as requested */
    border-radius: 10px; /* Rounded corners for the white logo square */
    padding: 8px; /* Adjusted padding around the logo image within the white square */
    width: 175px; /* Slightly larger fixed width for the white logo square */
    height: 175px; /* Slightly larger fixed height for the white logo square */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* Shadow for the white logo square */
}

.full-logo-img {
    max-width: 95%; /* Make image slightly bigger within its 110x110 container */
    height: auto;
    max-height: 95%; /* Make image slightly bigger */
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Right Column: Contains the top stripe and main navigation row */
.header-right-columns-wrapper {
    flex-grow: 1; /* Take up all remaining horizontal space */
    display: flex; /* Stack its children vertically (top stripe + nav row) */
    flex-direction: column;
    background-color: #FFFFFF; /* The main white background for the 'handle' part */
    border-left: 1px solid #283747; /* Vertical separator line */
    border-radius: 15px;
    -moz-border-radius: 15px;
}

/* The top dark stripe within the 'handle' part */
.header-top-stripe {
    height: 20px; /* Height of the dark stripe above the white nav */
    background-color: #283747; /* Dark background for this stripe */
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Subtle separator */
}

.header-main-nav-row {
    flex-grow: 1; /* Takes up remaining vertical space in its column */
    display: flex;
    align-items: center; /* Vertically center content */
    padding: 10px 0; /* Vertical padding for the navigation links area */
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05); /* Inner shadow for subtle depth */
    min-height: 60px; /* Ensure sufficient height for the nav row */
}

/* Specific inner container for nav to manage padding on smaller screens */
.header-nav-container-inner {
    display: flex;
    justify-content: space-between; /* Links left, buttons right */
    align-items: center;
    width: 100%;
    padding: 0 20px; /* Ensure content is inside padding */
}

.navbar {
    display: flex;
    justify-content: flex-start; /* Align links to the left, buttons will push right */
    align-items: center;
    flex-grow: 1; /* Occupy all available space */
    position: relative; /* For mobile menu toggle positioning */
    min-height: 40px; /* Minimum height for better click area */
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: space-between; /* Align links to the left */
    align-items: center;
    flex-grow: 1; /* Allow nav links to take available space */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.nav-links li {
    margin: 0 15px; /* Space between links */
}

.nav-links .nav-left-group {
    display: flex; /* Make it a flex container to spread out its children */
    justify-content: space-around;
    align-items: center;
    flex-grow: 1; /* Allow left group to take available space and spread its items */
    padding: 0; /* No padding here, handled by li */
    list-style: none; /* Ensure no bullet */
}
.nav-links .nav-left-group li {
    margin: 0; 
}

.nav-links .nav-right-group {
    display: flex; /* Make it a flex container to keep its children together */
    align-items: center;
    gap: 10px;
}

/* Adjust spacing for individual list items WITHIN the right group */
.nav-links .nav-right-group li {
    margin: 0; 
}

/* Specific spacing for social icons within this group */
.nav-links .nav-right-group .social-links-nav {
    margin-left: 5px; /* Add a small margin to separate it from the Free Estimate button */
    gap: 8px; /* Tighter spacing for social icons themselves */
}

.nav-links a {
    color: #283747; /* Dark blue text for navigation links on white background */
    font-weight: 600;
    padding: 8px 0; /* Vertical padding for click area */
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase; /* Make links uppercase for modern look */
    font-size: 1em;
    letter-spacing: 0.5px;
}

/* Navigation Hover Effect (Single, subtle underline) */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0; /* Directly at the bottom of the padding */
    width: 0;
    height: 2px;
    background-color: #4A90E2; /* Accent blue underline */
    transition: width 0.3s ease-out;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #4A90E2; /* Accent blue on hover */
    text-decoration: none; /* Remove default underline */
}

.nav-links .social-links-nav {
    display: flex; /* Use flex to align icons horizontally */
    align-items: center;
    gap: 10px; /* Space between icons */
    margin-left: 20px; /* Space from the Free Estimate button */
    padding: 0; /* Remove any li default padding if present */
    list-style: none; /* Ensure no bullet */
}

.nav-links .social-links-nav a {
    color: #4A90E2; /* Accent blue for icons on white background */
    text-decoration: none; /* No underline */
    padding: 5px; /* Make clickable area larger */
}

.nav-links .social-links-nav a i { /* Target the <i> element directly for font-size */
    font-size: 1.5em; /* Increased Icon size for visibility */
    line-height: 1; /* Helps with vertical alignment of icons */
    vertical-align: middle;
}

.nav-links .social-links-nav a:hover i { /* Hover effect for the icon itself */
    color: #283747; /* Dark blue on hover */
}

.nav-links li .btn {
    background-color: #4A90E2 !important; /* Force light blue background */
    color: #FFFFFF !important; /* Force white text */
    padding: 12px 20px; /* Re-apply standard button padding */
    margin: 0 10px; /* Adjusted margin to fit nav, prevent wrap */
    border: none; /* Remove any inherited border */
    line-height: normal; /* Reset line height for button appearance */
    flex-shrink: 0; /* Prevent shrinking if space is tight */
    text-decoration: none; /* No underline */
    display: inline-block; /* Ensure it behaves as a block-level button */
}

.nav-links li .btn:hover {
    background-color: #283747 !important; /* Dark blue on hover */
    color: #FFFFFF;
}

.nav-links li a:not(.btn) {
    color: #283747; /* Dark blue text for navigation links on white background */
    font-weight: 600;
    padding: 8px 0; /* Vertical padding for click area */
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 1em; /* Base font-size for text links */
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

/* New: Styling for icon-only navigation links (Login/Logout) */
.nav-links li a:not(.btn) i { /* Target the icon inside the link */
    font-size: 1.5em; /* Adjust size for Login/Logout icons */
    margin: 0; /* Remove any default margin from icon */
    vertical-align: middle; /* Align icon centrally */
    line-height: 1; /* Reset line height for better alignment */
    text-transform: none; /* Ensure icon font doesn't get uppercase */
}

/* New: Adjust padding for icon-only navigation links */
.nav-links li a[aria-label="Login"]:not(.btn),
.nav-links li a[aria-label="Log Out"]:not(.btn) {
    padding: 8px 10px; /* Adjust padding for icon-only links */
    color: #283747; /* Ensure color is dark blue by default */
}

.nav-links li a[aria-label="Login"]:not(.btn):hover,
.nav-links li a[aria-label="Log Out"]:not(.btn):hover {
    color: #4A90E2; /* Accent blue on hover */
    background-color: transparent; /* Ensure no background for hover */
    text-decoration: none; /* No underline */
}
/* Ensure the underline effect is removed for icon-only links as well */
.nav-links li a[aria-label="Login"]:not(.btn)::after,
.nav-links li a[aria-label="Log Out"]:not(.btn)::after {
    display: none; /* Hide underline effect for icons */
}

/* Ensure default text transform doesn't affect Dashboard links */
.nav-links .nav-right-group li a:not(.btn) {
    text-transform: uppercase; /* Apply uppercase specifically to text links in this group */
}

/* Mobile Navigation (Hamburger Icon) */
.menu-toggle {
    display: none; /* Hidden by default for desktop */
    flex-direction: column;
    cursor: pointer;
    z-index: 1001; /* Above navigation */
    margin-left: auto; /* Pushes hamburger to the right */
    padding: 10px; /* Increase clickable area */
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: #283747; /* Dark lines for hamburger on white background */
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.dashboard-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.dashboard-section h2 {
    margin-bottom: 1.5em;
}

.dashboard-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.overview-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 25px;
    flex: 1; /* Allows cards to grow */
    min-width: 280px; /* Minimum width for cards */
    max-width: 450px; /* Max width for cards in a row */
    text-align: left;
}

.overview-card h3 {
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #283747;
    text-align: center;
}

.overview-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.overview-card ul li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #555;
}

.overview-card ul li i {
    font-size: 1.2em;
    color: #4A90E2; /* Accent blue for icons */
    margin-right: 10px;
    width: 20px; /* Fixed width for icon alignment */
    text-align: center;
}

.overview-card .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.dashboard-section-content {
    margin-top: 40px;
}

.dashboard-section-content h3 {
    text-align: center;
    margin-bottom: 1em;
}

.card .package-features {
    text-align: left; /* Ensure text inside is left-aligned within the card */
    padding: 0 15px; /* Match card padding */
    margin-bottom: 20px;
}

.card .package-features h4 {
    font-size: 1.1em;
    color: #283747;
    margin-bottom: 10px;
    margin-top: 15px;
    font-weight: 700;
}

.card .package-features ul.features-list {
    margin-top: 5px; /* Adjust spacing above list */
    margin-bottom: 15px; /* Space below list */
}

.card .package-features ul.features-list li {
    font-size: 0.9em;
    margin-bottom: 8px; /* Tighter spacing for feature lists */
    color: #555;
}

.card .package-features ul.features-list li i.fas { /* Style for icons inside feature lists */
    font-size: 0.9em; /* Smaller checkmark/plus icon size */
    color: #4CAF50; /* Green for checkmarks */
    margin-right: 8px;
    flex-shrink: 0;
    width: 1.1em; /* Fixed width for icon to ensure consistent alignment */
    text-align: center;
}
.card .package-features ul.features-list li i.fa-plus-circle {
    color: #4A90E2; /* Blue for plus icons (upgrades) */
}

.card .package-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #283747;
    margin-top: auto; /* Push price to bottom of card if flex-grow on content */
    margin-bottom: 20px; /* Space before button */
    padding: 0 15px; /* Match card padding */
    text-align: center;
}

.card .package-price.multi-line-price p {
    font-size: 0.9em; /* Smaller text for multi-line pricing details */
    margin-bottom: 5px; /* Tighter spacing between price lines */
    line-height: 1.3;
}
.card .package-price.multi-line-price p:first-child {
    font-size: 1.1em; /* Make the first line (On-Demand) a bit larger */
    font-weight: 700;
}

.service-cards {
    display: grid; /* Changed to grid for better control over 4 columns */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Auto-fit responsive columns */
    gap: 30px;
    justify-content: center; /* Center the grid if it doesn't fill the container */
    margin-bottom: 40px;
}

/* Ensure buttons are properly aligned at bottom */
.service-cards .card .btn,
.service-cards .card .btn-secondary {
    margin-top: auto; /* Push button to bottom if card is flex container */
    margin-bottom: 0; /* Remove default margin-bottom to make it flush with card bottom padding */
}

.card-separator {
    border: 0;
    height: 2px; /* CRITICAL: Make it thicker */
    background-color: #ddd; /* Slightly darker gray for more visibility */
    margin: 35px auto 25px auto !important;
    width: 90%; /* Make it slightly wider for more presence */
    opacity: 0.7; /* Make it slightly transparent for a softer look */
}

.on-demand-section {
    padding: 40px 0; /* Slightly less padding than main sections */
    background-color: #f0f0f0; /* Light grey background */
    text-align: center; /* Center content within this section */
}

.on-demand-section h2 {
    margin-bottom: 1em;
}

.on-demand-section p {
    max-width: 800px;
    margin: 0 auto 1.5em auto;
    font-size: 1.1em;
    color: #555;
}

.on-demand-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Space between the two on-demand cards */
    margin-top: 20px;
}

.on-demand-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 25px;
    flex: 1 1 calc(50% - 10px); /* Two columns, allowing space between */
    min-width: 250px; /* Minimum width before stacking */
    max-width: 350px; /* Max width to ensure it doesn't get too wide */
    text-align: center;
}

.on-demand-card h3 {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #283747;
}

.on-demand-card .price-tag {
    font-size: 1.6em;
    font-weight: 700;
    color: #4A90E2; /* Accent blue for price */
    margin-bottom: 10px;
}

.on-demand-card .details {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 0;
    line-height: 1.3;
}

/* Data Table Styling */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95em;
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden; /* For rounded corners with collapse */
}

.data-table thead tr {
    background-color: #283747; /* Dark blue header */
    color: #FFFFFF;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f2f2f2; /* Zebra striping */
}

.data-table tbody tr:hover {
    background-color: #e9e9e9;
}

.data-table .status-verified {
    color: #4CAF50; /* Success Green */
    font-weight: 600;
}

.data-table .status-unverified {
    color: #F44336; /* Error Red */
    font-weight: 600;
}

.data-table .action-link {
    color: #4A90E2;
    text-decoration: none;
    margin-right: 5px;
}

.data-table .action-link:hover {
    text-decoration: underline;
}

.data-table .action-link.delete-link {
    color: #F44336;
}

.data-table .action-link.delete-link:hover {
    color: #cc0000;
}

.dashboard-footer-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* 5. Hero Section (Adjusted to provide initial background) */
.hero { /* This is the main homepage hero, for consistency in naming */
        background: linear-gradient(135deg, #283747 0%, #4A90E2 100%);
        color: #FFFFFF;
        text-align: center;
        padding: 100px 20px;
        padding-top: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 60vh;
        position: relative;
        overflow: hidden;
    }

.hero-with-top-space {
    background: linear-gradient(135deg, #283747 0%, #4A90E2 100%); /* Full gradient background */
    color: #FFFFFF;
    text-align: center;
    padding: 100px 20px;
    padding-top: 100px; /* Adjusted padding to create space ABOVE the sticky header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh; /* Minimum height for visual impact */
    position: relative;
    overflow: hidden; /* For background patterns/elements */
}

.hero-with-top-space::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    filter: blur(50px);
    transform: rotate(45deg);
}

.hero-with-top-space::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    filter: blur(60px);
    transform: rotate(-30deg);
}

.hero-with-top-space h1 {
    color: #FFFFFF;
    font-size: 3.0em;
    margin-bottom: 0.5em;
    max-width: 800px;
    margin: 0 auto 0.5em auto;
    animation: fadeInDown 1s ease-out;
}

.hero-with-top-space p {
    font-size: 1.3em;
    margin-bottom: 2em;
    max-width: 700px;
    margin: 0 auto 0.5em auto;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

.portfolio-grid-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* White background for this section */
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid columns */
    gap: 30px; /* Space between grid items */
    margin-top: 40px;
}

.portfolio-item {
    background-color: #f8f8f8; /* Light background for each item */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden; /* Ensures image corners are rounded */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.portfolio-img {
    width: 100%;
    height: 200px; /* Fixed height for consistent image display */
    object-fit: cover; /* Covers the area, may crop image */
    display: block;
}

.portfolio-item h3 {
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #283747;
    padding: 0 15px; /* Padding for title */
}

.portfolio-item p {
    font-size: 0.95em;
    color: #555;
    padding: 0 15px 20px 15px; /* Padding for description */
    margin-bottom: 0;
}

.portfolio-item .btn,
.portfolio-item .btn-secondary {
    margin-top: 15px; /* Space above button */
    margin-bottom: 20px; /* Space below button */
    padding: 10px 20px; /* Smaller padding for internal buttons */
    font-size: 0.9em;
}

.mission-section {
    padding: 60px 0;
    text-align: center;
    background-color: #FFFFFF;
}

.mission-section h2 {
    margin-bottom: 1em;
}

.mission-section p {
    max-width: 800px;
    margin: 0 auto 1em auto;
    font-size: 1.1em;
    color: #555;
}

/* 8. Values Section (New) */
.values-section {
    padding: 60px 0;
    background-color: #F4F4F4; /* Light grey background for contrast */
}
.values-section h2 {
    margin-bottom: 1.5em;
}
.values-section .feature-item i { /* Specific icon styling for values section */
    font-size: 3em;
    color: #4A90E2;
    margin-bottom: 15px;
}
.values-section .feature-item h3 {
    font-size: 1.6em;
}
.values-section .feature-item p {
    font-size: 0.95em;
    color: #666;
}

/* 6. Buttons */
.btn {
    display: inline-block;
    background-color: #4A90E2; /* Accent blue */
    color: #FFFFFF;
    padding: 14px 32px;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.05em;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

.btn:hover, .btn:focus {
    background-color: #283747; /* Dark blue on hover */
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    text-decoration: none;
}

.btn-secondary {
    background-color: #F4F4F4;
    color: #283747;
    border: 1px solid #283747;
    box-shadow: none;
    margin-left: 15px; /* Space between primary and secondary button */
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #283747;
    color: #FFFFFF;
    border-color: #283747;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


/* 7. Front-Page Notice */
.site-notice {
    background-color: #4A90E2; /* Accent blue background */
    color: #FFFFFF;
    padding: 15px 20px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    position: relative;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-notice p {
    margin: 0;
    max-width: 800px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-notice.hide {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    visibility: hidden;
}

/* Optional: Marquee effect for long notices */
.site-notice.marquee p {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Close button for notice */
.site-notice .close-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.5em;
    cursor: pointer;
    margin-left: 20px;
    padding: 0 5px;
    transition: transform 0.3s ease;
}

.site-notice .close-btn:hover {
    transform: rotate(90deg);
}


/* 8. Utility Classes */
.text-center { text-align: center; }
.margin-top-large { margin-top: 40px; }
.margin-bottom-large { margin-bottom: 40px; }
.sr-only { /* Visually hidden but available for screen readers */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Flash Messages */
.flash-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.flash-message.success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.flash-message.error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.flash-message.info {
    background-color: #CCE5FF;
    color: #004085;
    border: 1px solid #B8DAFF;
}

/* 9. Forms (Basic Styling) */
form {
    max-width: 600px;
    margin: 30px auto;
    padding: 25px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

form .form-group:last-of-type {
    text-align: center;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #283747;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    font-size: 1em;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: #4A90E2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Error states for form fields (will be added by JavaScript or PHP) */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: #F44336; /* Error Red */
}

.error-message {
    color: #F44336;
    font-size: 0.9em;
    margin-top: 5px;
}

.form-section-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 30px;
}
.form-section-card h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    color: #283747;
}

.line-item-group {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Space between form-groups */
    position: relative;
}
.line-item-group .form-group {
    flex: 1 1 100%; /* Full width by default */
    margin-bottom: 0; /* Remove default margin-bottom */
}
.line-item-group .form-group.half-width {
    flex: 1 1 calc(50% - 15px); /* Two columns with gap */
}
.line-item-group .remove-line-item {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #F44336; /* Red remove button */
    color: #FFFFFF;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.8em;
    cursor: pointer;
    border: none;
    line-height: 1; /* Adjust line height for small button */
}
.line-item-group .remove-line-item:hover {
    background: #cc0000;
}
.hourly-field {
    display: none; /* Hidden by default, toggled by JS */
}

/* 10. Footer */
.footer {
    background-color: #283747; /* Dark blue */
    color: #FFFFFF;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
}

.footer p {
    margin: 0;
}

.footer a {
    color: #4A90E2;
}

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

/* 11. Responsive Design (Media Queries) */
@media (max-width: 992px) { /* Adjusted breakpoint for better tablet handling */
    .main-header {
        flex-direction: column; /* Stack columns vertically on mobile */
    }

    .main-header-background-wrapper { /* This wraps the whole content on desktop for background/shadow */
        padding: 0; /* Remove floating effect padding on mobile */
        min-height: auto; /* Allow height to adjust to content */
        box-shadow: none; /* Remove overall header shadow on mobile */
    }

    .header-content-flex {
        box-shadow: none; /* Remove floating shadow on mobile */
        border-radius: 0; /* Remove floating radius on mobile */
        flex-direction: column; /* Stack logo and nav vertically */
        align-items: center; /* Center content horizontally within the stacked columns */
        padding: 15px 0; /* Add padding to the top/bottom of the whole header on mobile */
    }

    .header-left-column {
        width: 100%; /* Full width for logo column on mobile */
        padding: 15px 20px 10px 20px; /* Adjust padding */
        justify-content: center; /* Center logo vertically in its own section */
        border-radius: 0; /* Remove border radius on mobile */
        background: linear-gradient(135deg, #283747 0%, #4A90E2 100%); /* Keep stylized background */
        box-shadow: none; /* No side shadow on mobile */
        min-height: auto; /* Let content dictate height */
    }

    .header-logo-link {
        display: inline-flex; /* Use inline-flex to allow centering with margin auto */
        margin: 0 auto; /* Center the logo link horizontally */
    }

    .full-logo-img {
        max-width: 120px; /* Slightly smaller logo on mobile if needed */
        margin-bottom: 0; /* Remove bottom margin if present */
    }

    .header-right-columns-wrapper { /* This wrapper acts as the handle on desktop, column on mobile */
        width: 100%; /* Full width for right column on mobile */
        background-color: transparent; /* No specific background, nav row will have it */
        border-left: none; /* No vertical border on mobile */
    }

    .header-top-stripe {
        display: none; /* Hide top stripe on mobile */
    }

    .header-main-nav-row {
        width: 100%; /* Full width on mobile */
        border-top: 1px solid rgba(0,0,0,0.1); /* Subtle horizontal border */
        min-height: auto; /* Let content dictate height */
        padding: 15px 0; /* Adjust padding for mobile nav */
        box-shadow: none; /* No inner shadow on mobile */
    }

    .header-nav-container-inner {
        flex-direction: column; /* Stack nav links and toggle */
        align-items: flex-end; /* Align hamburger to the right */
        padding-right: 0; /* Remove padding from container to allow hamburger to reach edge */
    }

    .navbar {
        width: 100%; /* Take full width */
        justify-content: flex-end; /* Keep hamburger to the right */
    }

    .nav-links {
        display: flex; /* Always keep as flex for layout, visibility handled by opacity/height */
        flex-direction: column;
        width: 100vw; /* Take full viewport width */
        position: fixed; /* CRITICAL: Position fixed relative to viewport for full screen overlay */
        top: var(--mobile-nav-top-offset); /* Relies entirely on JS for 'top' position */
        left: 0;
        background-color: rgba(255,255,255,0.98); /* Slightly transparent white overlay */
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        border-top: 1px solid rgba(0,0,0,0.1);
        padding: 10px 0; /* Vertical padding for the dropdown content */
        height: auto; /* Allow height to adjust to content */
        max-height: 0; /* Start collapsed for smooth animation */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-out, visibility 0.3s ease-out, max-height 0.3s ease-out;
        z-index: 999; /* Below toggle, above page content (but still on top of page content) */
        overflow-y: auto; /* Allow scrolling if menu content is too long */
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .nav-links.active {
        display: flex; /* Show when active */
        opacity: 1; /* Fade in */
        visibility: visible; /* Make visible */
        max-height: calc(100vh - var(--mobile-nav-top-offset)); /* CRITICAL: Expand to fill remaining viewport height */
    }

    .nav-links li {
        margin: 0;
        width: 100%; /* Full width for each menu item */
        text-align: center;
        vertical-align: middle;;
        border-bottom: 1px solid #f0f0f0;
        padding: 10px 20px; /* Specific padding for mobile list items */
    }

    .nav-links a {
        padding: 10px 15px;
        display: block;
    }

    .nav-links .nav-left-group {
        display: flex;
        flex-direction: column; /* CRITICAL: Stack links vertically on mobile */
        align-items: flex-start; /* Align text to the left within the group */
        width: 100%; /* Make the group fill the dropdown's width */
        padding: 0;
        list-style: none;
        flex-grow: 1; /* Still allow it to take available space */
    }
    /* Ensure individual items within this group take full width and align text */
    .nav-links .nav-left-group li {
        width: 100%;
        margin: 0; /* Remove horizontal margin */
        text-align: center; /* Ensure text is left aligned */
        padding: 10px 20px; /* Add specific padding for mobile list items */
        border-bottom: 1px solid #f0f0f0; /* Add separator */
    }
    .nav-links .nav-left-group li:last-child {
        border-bottom: none; /* No border on last item */
    }

    .menu-toggle {
        display: flex; /* CRITICAL: Ensure hamburger is visible on mobile */
        position: absolute; /* Position relative to .header-floating-wrapper */
        top: 50%; /* Center vertically based on parent */
        right: 25px; /* Aligns to the right edge */
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 1002; /* Ensures it's above the menu dropdown */
        padding: 0; /* Remove padding here, control bars directly */
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 25px;
        background-color: transparent; /* No background on toggle itself */
    }

    .menu-toggle span { /* Style the hamburger lines */
        background-color: #FFFFFF; /* CRITICAL: White lines to be visible against dark header background */
        height: 3px;
        width: 100%;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    .hero {
        padding: 80px 20px;
        min-height: 50vh;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9em;
    }

    .site-notice p {
        white-space: normal;
        animation: none;
        text-overflow: clip;
    }

    .service-cards {
        flex-direction: column;
        align-items: center;
    }

    .service-cards .card {
        margin-bottom: 20px;
        max-width: 100%;
    }

    .feature-grid {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .on-demand-options .on-demand-card {
        flex: 1 1 100%; /* Stack on very small screens */
        max-width: 100%;
    }
}

/* Adjustments for very small screens (phones) */
@media (max-width: 576px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.6em;
    }
    .hero {
        padding: 60px 15px;
    }
}


/* 12. Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Page Visuals - Icons and Cards */
.service-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-cards .card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    max-width: 350px;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-cards .card i.icon-large {
    font-size: 3em;
    color: #4A90E2;
    margin-bottom: 20px;
    display: block;
}

.service-cards .card h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

/* Feature List (Icons with text) - Fixes bullet points */
.features-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #555;
}

.features-list li i {
    color: #4CAF50;
    margin-right: 10px;
    font-size: 1.1em;
    flex-shrink: 0;
}

/* Why Choose Us Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.feature-item i {
    font-size: 2.5em;
    color: #4A90E2;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.95em;
    color: #666;
}

/* Call to Action Section Styling */
.cta-section {
    background-color: #283747 !important;
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 100px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    transform: skewX(-20deg);
    z-index: 1;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -20px;
    width: 100px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    transform: skewX(20deg);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: #FFFFFF;
    font-size: 2.5em;
    margin-bottom: 0.8em;
}

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