/* ============================================= */
/* 1. ROOT VARIABLES                      */
/* ============================================= */
:root {
    --primary: #004080;
    --primary-light: #005bb5;
    --secondary: #f8f8f8;
    --text: #333;
    --white: #ffffff;
    --warning: #ffc107; /* Added for star ratings */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.2);

    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;

    --border-radius: 8px;
    --transition: all 0.3s ease;

    --font-primary: 'Segoe UI', Arial, sans-serif;
    --line-height-base: 1.6;
    --line-height-tight: 1.4;
    --line-height-loose: 1.7;

    --header-height: 16vh; /* Approximate */
    --nav-height: auto; /* Depends on content */
}

/* ============================================= */
/* 2. BASE & RESET STYLES                    */
/* ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height-base);
    color: var(--text);
    background-color: var(--secondary);
    min-width: 320px; /* Prevents extreme shrinking */
}

address {
    font-style: normal;
    line-height: var(--line-height-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents bottom space */
}

/* ============================================= */
/* 3. LAYOUT CONTAINER                      */
/* ============================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%; /* Be careful with this, might not always be desired */
    padding: 0; /* Reset padding for consistency */
}

/* ============================================= */
/* 4. HEADER                                 */
/* ============================================= */
header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow-light);
    position: relative; /* Changed from sticky */
    min-height: var(--header-height);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    height: 100%;
    min-height: var(--header-height); /* Ensure content area respects min height */
}

/* Style for the logo's container */
.logo {
    max-height: var(--header-height); /* Limit container height by header */
    display: flex; /* Keep flex properties for alignment */
    align-items: center;
    flex-shrink: 0;
    /* Remove any explicit width: 100% or fixed width from here */
    /* Optional: Add a max-width to prevent it taking too much horizontal space on wide screens */
    /* max-width: 40%; */
}

/* Style for the logo image itself */
.logo img {
    display: block; /* Good practice for images */
    height: 100%; /* Try to fill the available height of the .logo container */
    width: auto; /* Let the width scale automatically based on height and aspect ratio */
    max-height: 100%; /* Ensure it doesn't exceed container height */
    max-width: 100%; /* IMPORTANT: Prevent the image from overflowing its container (.logo) if its auto width becomes too large */
    object-fit: contain; /* Ensures the entire image is scaled down to fit within the dimensions without being cropped or distorted */
}

/* Style for logo if using <img> tag for SVG */
.logo img {
    max-height: var(--header-height); /* Adjust based on padding */
    width: 100%;
    max-width: 100%; /* Example max width, adjust as needed */
}


.contact-info {
    text-align: right;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--primary);
    width: 1.2em; /* Give icons consistent width */
    text-align: center;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
    justify-content: flex-end; /* Align right by default */
}

.social-links a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    display: inline-flex; /* Align icon and text */
    align-items: center;
    gap: var(--spacing-sm);
}

.social-links a:hover {
    color: var(--primary-light);
}

/* ============================================= */
/* 5. NAVIGATION                             */
/* ============================================= */
nav {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
    list-style: none; /* Assuming these might be list items eventually */
    width: 100%;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active { /* Add active state styling if needed */
    background: var(--primary-light);
}

.mobile-menu-btn {
    display: none; /* Hidden by default */
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: var(--spacing-sm);
    margin: var(--spacing-sm);
}

/* Replace your existing .hero rule with this */
.hero {
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;             /* Use Flexbox */
    flex-direction: column;    /* Stack children vertically */
    align-items: center;       /* Center children horizontally */
    justify-content: space-between;   /* Center children vertically (Try 'space-between' or 'flex-start' too) */
    text-align: center;        /* Keep text centered within children */
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    /* Remove position: relative; */
    /* Adjust padding - remove the large calculated bottom padding */
    padding: var(--spacing-lg); /* Add some general padding */
    /* Remove z-index if it was added */
}

/* Keep the background image rules separate */
/* Default/Home Hero Background */
.hero { /* You might need to specifically target the home hero if others exist */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://i.ibb.co/LzxQPwxT/Removals-3.jpg');
}

/* Other background overrides (.about-hero, etc.) remain the same */
/* Specific Page Hero Backgrounds (Overrides) - Consider unique images if desired */
/* These might need adjustment if the hero section itself changes per page fragment */
.about-hero { background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://www.acemovers.uk/Removals-min.jpg'); }
.removals-hero { background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://www.acemovers.uk/pic1.jpg'); } /* Example override */
.storage-hero { background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://www.acemovers.uk/pic6.jpg'); } /* Example override */
.packing-hero { background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://www.acemovers.uk/pic8.jpg'); } /* Example override */
.europe-hero { background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://www.acemovers.uk/pic1.jpg'); } /* Example override */


/* Replace your existing .hero-content rule with this */
.hero-content {
    max-width: 800px;
    padding: var(--spacing-lg); /* Keep padding if needed */
    /* Remove position: relative; */
    /* Remove z-index: 5; */
    /* Add margin for spacing if needed, esp. if .hero justify-content isn't space-between */
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: var(--spacing-lg);
}

/* Replace your existing .review-bubble rule with this */
.review-bubble {
    /* Remove position: absolute; */
    /* Remove bottom: 20px; */
    /* Remove left: 50%; */
    /* Remove transform: translateX(-50%); */
    /* Remove z-index: 4; */
	display: flex;             /* Use Flexbox */
    flex-direction: column;    /* Stack children vertically */
    align-items: center;       /* Center children horizontally */
    justify-content: center;   /* Center children vertically (Try 'space-between' or 'flex-start' too) */
    width: 90%;
	min-height: 19vh;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.23);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    transition: opacity 0.5s ease;
    opacity: 1;
    /* Add margin for spacing */
    margin-top: var(--spacing-md); /* Add space above the bubble */
    margin-bottom: var(--spacing-sm); /* Optional: add space below */
}

.review-bubble.fade-out {
    opacity: 0;
}

.review-text {
    margin-bottom: var(--spacing-sm);
    font-style: italic;
    color: var(--white);
    font-size: 0.85em;
    line-height: var(--line-height-tight);
    max-height: calc(var(--line-height-tight) * 3em); /* Limit height to approx 3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.review-rating {
    margin-bottom: var(--spacing-sm);
    color: var(--warning); /* Use variable */
}

.review-rating i {
    margin-right: 0.2rem;
}

.review-author {
    font-weight: bold;
    color: var(--primary); /* High contrast needed */
    margin: 0;
    /* Consider adding a subtle background/outline if contrast is low */
}


/* ============================================= */
/* 7. MAIN CONTENT AREA                      */
/* ============================================= */
.main-content {
    padding-top: var(--spacing-lg);
    position: relative;
    z-index: 1; /* Ensure it's above default background but below sticky nav */
    /* Container for dynamically loaded content */
    #page-container {
        animation: fadeIn 0.5s ease-in-out;
        padding-bottom: var(--spacing-lg); /* Space before footer */
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Generic Section Styling (applied within loaded fragments) */
.content-section {
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text);
    line-height: var(--line-height-loose);
}

.section-text p,
.content-section p {
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-loose);
}

/* ============================================= */
/* 8. CORE COMPONENTS                          */
/* ============================================= */

/* --- Button --- */
.cta-button {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg); /* Adjusted padding */
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-align: center;
}

.cta-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px var(--shadow-light);
}

/* --- Generic Grid Layout --- */
.grid-layout {
    display: grid;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.grid-auto-fit-minmax { /* Example utility grid */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* --- Cards (Base Styles) --- */
/* Apply these base styles to all card types */
.service-card, .value-card, .removal-card, .storage-card, .packing-card,
.testimonial-card, .tip-card, .faq-item, .area-item {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow-light);
    transition: var(--transition);
}

/* Hover effect for most cards */
.service-card:hover, .value-card:hover, .removal-card:hover, .storage-card:hover,
.packing-card:hover, .testimonial-card:hover, .tip-card:hover, .area-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--shadow-medium);
}

/* Centered Card Content (Apply class or target specific cards) */
.service-card, .value-card, .removal-card, .storage-card, .packing-card, .tip-card, .area-item {
    text-align: center;
}
.removal-card, .storage-card, .packing-card {
    height: 100%; /* For equal height in grids */
}

/* Card Icons */
.service-icon, .value-icon, .removal-icon, .storage-icon, .packing-icon, .tip-icon, .area-item i, .feature-icon /* Added feature-icon */ {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}
.tip-icon { font-size: 2rem; } /* Override specific icon size */

/* Card Titles */
.service-title, .value-card h3, .removal-card h3, .storage-card h3, .packing-card h3, .tip-card h3, .faq-item h3, .area-item h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary);
}
.service-title { font-size: 1.5rem; }
.faq-item h3 { font-size: 1.2rem; margin-bottom: var(--spacing-sm); }

/* Specific Card Adjustments */
.testimonial-card {
    /* No hover transform needed */
}
.testimonial-rating {
    color: var(--warning);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}
.testimonial-text {
    font-style: italic;
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-base);
}
.testimonial-author {
    font-weight: bold;
    text-align: right;
    margin-top: var(--spacing-md);
}

.faq-item {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md); /* Add back margin removed by grid gap */
}

/* --- Icon List Items --- */
/* Base styles for items with icon + text */
.service-item, .feature-item, .material-item, .contact-detail {
    display: flex;
    align-items: center; /* Default alignment */
    gap: var(--spacing-lg); /* Default gap */
    margin-bottom: var(--spacing-lg); /* Spacing between items */
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px var(--shadow-light);
    transition: var(--transition);
}
.contact-detail { /* Override for contact details */
    background: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: var(--spacing-lg);
    align-items: flex-start; /* Align icon to top */
    gap: var(--spacing-md);
}
/* Special case for features grid where items are cards */
.features-grid .feature-item {
    text-align: left; /* Override potential card centering */
    padding: var(--spacing-lg); /* Ensure consistent padding */
    height: 100%; /* Equal height for grid items */
}


/* Hover for list items */
.service-item:hover, .feature-item:hover, .material-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

/* Icon within list item */
.service-item i, .feature-icon, .material-icon, .contact-detail i {
    font-size: 2rem;
    color: var(--primary);
    min-width: 50px; /* Consistent icon area width */
    text-align: center;
    flex-shrink: 0; /* Prevent icon shrinking */
}
.feature-icon { /* Adjustments for feature items if needed (often larger) */
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md); /* Add spacing if icon is above text */
}
.contact-detail i {
    min-width: 25px;
    margin-top: 0.1em; /* Fine-tune vertical alignment */
}


/* Text content within list item */
.service-text, .feature-content, .material-content, .contact-detail div {
    flex: 1; /* Allow text to take remaining space */
}

.service-text h3, .feature-content h3, .material-content h3, .contact-detail h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
    font-size: 1.1rem; /* Default size */
}
.service-text h3 { font-size: 1.3rem; } /* Override specific title size */
.contact-detail h3 { font-size: 1.1rem; margin-bottom: 0.2em; }
.feature-content h3 { font-size: 1.2rem; } /* Feature item title size */


/* --- Process Timeline --- */
.process-section {
    margin: var(--spacing-lg) 0;
}

.process-timeline {
    margin-top: var(--spacing-lg);
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 25px; /* Center of step number */
    width: 4px;
    background-color: var(--primary);
    z-index: 1;
}

.process-step {
    display: flex;
    margin-bottom: var(--spacing-lg);
    position: relative;
    align-items: flex-start; /* Align step content to top */
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: var(--spacing-lg);
    z-index: 2; /* Above timeline bar */
    flex-shrink: 0;
}

.step-content {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow-light);
    flex: 1;
    margin-top: 5px; /* Align top of box slightly below center of number */
}

.step-content h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

/* --- Page Header (About, Services, Contact) --- */
/* Note: Apply .container within the loaded fragments if needed */
.page-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg); /* Space below header */
    /* Add container width if needed, or apply container inside fragment */
    /* width: 90%; max-width: 1200px; margin-left: auto; margin-right: auto; */
}

.page-header-content {
    flex: 1;
}

.page-header-content h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}
/* Shared subtitle style */
.page-subtitle, .about-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text);
}

.page-header-image {
	width: 100%;
    flex: 1;
    max-width: 450px;
}

.page-header-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

/* --- Specific Component Styles --- */
/* Add styles for unique components like image galleries, maps, forms here */
.about-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive gallery */
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.about-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px var(--shadow-medium);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px var(--shadow-dark);
}

.headquarters { /* Example of a specific info block */
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow-light);
    margin: var(--spacing-lg) 0;
}

.headquarters h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.headquarters p {
    margin-bottom: var(--spacing-sm);
    display: flex; /* Align icon and text */
    align-items: center;
    gap: var(--spacing-sm);
}

.headquarters i {
    color: var(--primary);
    width: 1.2em; /* Consistent width */
    text-align: center;
}


.about-cta, .cta-section { /* CTA blocks */
    text-align: center;
    background: var(--secondary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) 0;
}

.cta-section { /* CTA with image */
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    text-align: left; /* Override center alignment */
}
.cta-content { flex: 1; }
.cta-image { flex: 1; max-width: 400px; }
.cta-image img { border-radius: var(--border-radius); box-shadow: 0 4px 8px var(--shadow-medium); }

.about-cta .cta-button, .cta-content .cta-button {
    margin-top: var(--spacing-md);
}

.packing-showcase { /* Packing specific component */
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px var(--shadow-light);
    overflow: hidden;
}
.showcase-image { flex: 1; max-width: 450px; align-self: stretch; } /* Stretch image */
.showcase-image img { width: 100%; height: 100%; object-fit: cover; }
.showcase-content { flex: 1; padding: var(--spacing-lg); }
.showcase-content h2 { color: var(--primary); margin-bottom: var(--spacing-md); }

.benefits-list {
    list-style: none;
    padding: 0;
}
.benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-md);
}
.benefits-list i {
    color: var(--primary);
    font-size: 1.2rem;
    min-width: 20px;
    margin-top: 3px;
    text-align: center;
}

/* Contact Page Specifics */
.contact-header { text-align: center; margin-bottom: var(--spacing-lg); }
.contact-header h1 { font-size: 2.5rem; color: var(--primary); margin-bottom: var(--spacing-sm); }
.contact-subtitle { font-size: 1.2rem; }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-info-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow-light);
}
.contact-info-card h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
}

.social-media { margin-top: var(--spacing-lg); }
.social-media h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: var(--spacing-md); }
.social-icons { display: flex; gap: var(--spacing-md); }
.social-icons a {
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
}
.social-icons a:hover { color: var(--primary-light); transform: scale(1.1); }


.quote-cta-card {
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px var(--shadow-dark);
    padding: var(--spacing-lg);
    text-align: center;
}

.quote-cta-card h2 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: 1.8rem;
}

.quote-cta-card p {
    margin-bottom: var(--spacing-md);
}

.quote-cta-card .cta-button {
    background-color: var(--white);
    color: var(--primary);
}

.quote-cta-card .cta-button:hover {
    background-color: var(--secondary);
    color: var(--primary); /* Ensure text color remains */
}

.map-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}
.map-container, .coverage-areas {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow-light);
}
.map-container h3, .coverage-areas h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}
.coverage-areas p { margin-bottom: var(--spacing-lg); }
.areas-grid {
    display: grid;
    gap: var(--spacing-lg); /* Grid for coverage items */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Make area items responsive */
}

.map-responsive {
    overflow: hidden;
    position: relative;
    padding-bottom: 75%; /* Adjust aspect ratio if needed (e.g., 56.25% for 16:9) */
    height: 0;
    width: 100%;
    border-radius: var(--border-radius); /* Apply radius to container */
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Grid containers for specific sections --- */
/* Apply grid layout to specific content areas */
.services-grid, /* Home Page */
.values-grid,   /* About Page */
.service-list,  /* About Page */
.removal-grid,  /* Removals Page */
.testimonials-grid, /* Removals & Packing Pages */
.faq-grid,      /* Removals, Storage, Packing Pages */
.tips-grid,     /* Removals Page */
.storage-grid,  /* Storage Page */
.features-grid, /* Storage & Europe Pages */
.packing-grid,  /* Packing Page */
.materials-grid, /* Packing Page */
.areas-grid     /* Contact Page */
 {
    display: grid;
    gap: var(--spacing-lg);
}

/* Default to single column for most grids */
.services-grid, .values-grid, .removal-grid, .storage-grid, .packing-grid,
.testimonials-grid, .faq-grid, .tips-grid, .materials-grid, .areas-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
}

/* Specific grid adjustments */
.service-list { grid-template-columns: 1fr; } /* Stack service items */
.features-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } /* Allow slightly wider feature items */


/* ============================================= */
/* 9. FOOTER                                 */
/* ============================================= */
footer {
    background: var(--primary);
    color: var(--white);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust min width */
    gap: var(--spacing-lg);
}

.footer-section h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
    color: var(--white);
}
.footer-section p {
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    opacity: 0.9;
    display: flex; /* Align icons in footer */
    align-items: center;
    gap: var(--spacing-sm);
}
.footer-section p i { /* Style footer icons */
     width: 1.2em;
     text-align: center;
     opacity: 0.8;
}
.footer-section a { /* Add styles for footer links if any */
    color: var(--white);
    text-decoration: none;
}
.footer-section a:hover {
    text-decoration: underline;
}


.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--spacing-lg);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ============================================= */
/* 10. RESPONSIVE STYLES                     */
/* ============================================= */

/* --- Large Screens (Optional adjustments if needed) --- */
/* @media (min-width: 1200px) {} */

/* --- Medium Screens / Tablets --- */
@media (max-width: 992px) {
    .page-header,
    .cta-section,
    /* .about-header, Already covered by .page-header */
    .packing-showcase {
        flex-direction: column;
        text-align: center; /* Center text when stacked */
    }

    .page-header-content,
    .page-header-image,
    .cta-content,
    .cta-image,
    /* .about-header-content, Already covered */
    /* .about-header-image, Already covered */
    .showcase-image,
    .showcase-content {
        max-width: 100%;
    }
    .page-header-image img, .cta-image img, .about-header-image img {
        max-width: 450px; /* Limit image width even when stacked */
        margin: 0 auto; /* Center the image */
    }
    .showcase-image { max-width: 100%; } /* Allow full width */
    .showcase-content { padding: var(--spacing-lg); }

    .process-timeline::before {
        left: 24px; /* Adjust timeline position */
    }

    .contact-layout {
        grid-template-columns: 1fr; /* Stack contact sections */
        gap: var(--spacing-lg);
    }

    .map-responsive {
        padding-bottom: 75%; /* Maybe taller aspect ratio on tablet */
    }

    /* Adjust grids for tablet */
    .services-grid, .values-grid, .removal-grid, .storage-grid, .packing-grid,
    .tips-grid, .features-grid, .materials-grid, .areas-grid {
       grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Slightly smaller minmax */
    }
    .testimonials-grid {
       grid-template-columns: 1fr; /* Stack testimonials earlier */
    }

}

/* --- Smaller Tablets / Large Phones --- */
@media (max-width: 800px) {
    .hero {
        min-height: 55vh; /* Slightly taller hero */
        padding-bottom: 130px; /* Ensure space for bubble */
    }

    .review-bubble {
        width: 95%;
        bottom: 10px;
        padding: var(--spacing-sm);
    }
    .review-text { font-size: 0.8em; }
    .review-rating { font-size: 0.9em; }
    .review-author { font-size: 0.85em; }
}

/* --- Mobile Phones --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
        padding: var(--spacing-md) var(--spacing-sm); /* Reduce padding */
    }

    
    


    .contact-info { text-align: center; }
    .social-links { justify-content: center; }

    /* --- Mobile Navigation --- */
    .mobile-menu-btn {
        display: block;
        font-size: 2rem;
        background: none;
        border: none;
        color: var(--white);
        cursor: pointer;
        padding: var(--spacing-sm);
        margin: var(--spacing-sm);
        align-self: flex-start;
    }

    nav {
        flex-direction: column;
        padding: 0;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: var(--spacing-sm) 0;
    }

    /* When the .active class is added by JS, display the links */
    .nav-links.active {
        display: flex;
    }

    /* Style the individual links for the vertical mobile menu */
    .nav-links a {
        padding: var(--spacing-md); /* Generous padding for touch targets */
        width: 100%; /* Make links take full width */
        text-align: center;
        border-radius: 0; /* Remove border-radius for stacked items */
        /* Optional: Add a border for separation */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    /* Remove border from the first link */
     .nav-links a:first-child {
         border-top: none;
     }

    /* Keep the hover effect */
    .nav-links a:hover {
        background: var(--primary-light);
    }
    /* --- End Mobile Navigation --- */

    .hero {
        min-height: 50vh; /* Adjust hero height if needed */
    }

    /* Stack grids earlier or ensure they are 1 column */
    .services-grid, .values-grid, .removal-grid, .storage-grid, .packing-grid,
    .testimonials-grid, .faq-grid, .tips-grid, .about-images, .features-grid,
    .materials-grid, .areas-grid {
        grid-template-columns: 1fr;
    }
    /* Adjust grid gap for single column */
    .faq-grid { gap: var(--spacing-md); }

    /* Stack icon list items */
    .service-item, .feature-item, .material-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
        align-items: center; /* Center items when stacked */
    }
    .service-item i, .feature-icon, .material-icon {
        margin-right: 0;
        margin-bottom: var(--spacing-md);
    }
    .features-grid .feature-item { /* Ensure feature cards stack nicely */
        text-align: center;
    }

}

/* --- Smaller Mobile Phones --- */
@media (max-width: 480px) {
    .container {
        width: 95%; /* Slightly more width */
    }

    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .cta-button { padding: 0.8rem 1.5rem; font-size: 0.9rem; }

    /* Adjust card padding */
    .service-card, .value-card, .removal-card, .storage-card, .packing-card,
    .testimonial-card, .tip-card, .faq-item, .area-item, .step-content,
    .contact-info-card, .map-container, .coverage-areas, .quote-cta-card,
    .feature-item /* Adjust feature item padding too */ {
        padding: var(--spacing-md);
    }

    .contact-info { font-size: 0.95rem; } /* Slightly smaller contact text */
    .contact-item { font-size: 1rem; }

    .quote-cta-card h2 { font-size: 1.5rem; }

    .page-header-content h1 { font-size: 2rem;}
    .page-subtitle, .about-subtitle { font-size: 1.1rem;}

}

/* --- Very Small Mobile Phones --- */
@media (max-width: 400px) {
    .header-content { gap: var(--spacing-sm); }
    .logo { max-width: 100%; } /* Prevent logo taking too much space */
    .logo img { max-width: 100%; } /* Allow image within logo to scale */

    .contact-info { font-size: 0.9rem; }
    .social-links {
        flex-direction: column; /* Stack social links */
        gap: var(--spacing-sm);
        align-items: center; /* Center stacked links */
    }

    .footer-content {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }
    .footer-section p { justify-content: center; } /* Center footer text/icons */
}

/* --- Height-based adjustments (e.g., short but wide screens) --- */
@media (max-height: 600px) {
    .hero {
        padding-top: var(--spacing-lg); /* Less top padding */
        padding-bottom: 140px; /* Ensure space for review bubble */
        min-height: 300px; /* Set a minimum pixel height */
    }
    .hero-content { padding: 10px var(--spacing-md); margin-bottom: 0; }
    .hero-title { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 10px; }
    .hero-subtitle { font-size: clamp(1rem, 1.5vw, 1.2rem); margin-bottom: var(--spacing-md); }

    .review-bubble { padding: var(--spacing-sm); bottom: 10px; }
    .review-text { font-size: 0.75em; margin-bottom: 5px; }
    .review-rating { margin-bottom: 3px; }
}

