/*
Theme Name: Hoarding Freedom
Theme URI: https://hoarding-freedom.co.uk
Description: A custom WordPress theme for Hoarding Freedom, providing compassionate decluttering services in Bath and North East Somerset.
Author: Your Name
Author URI: https://yoursite.com
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hoarding-freedom
Tags: decluttering, hoarding-support, compassionate-services, green, responsive-layout
*/

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

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #d1e7dd; /* Light sage green background */
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    padding: 15px 0;
    transition: padding 0.3s;
}

header.scrolled {
    padding: 8px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #8B0000; /* Dark Red for "Hoarding" */
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: #8FBC8F; /* Green for the 'HF' circle */
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.logo span {
    color: #8FBC8F; /* Green for "Freedom" */
    font-style: italic;
}

.menu-toggle {
    display: none; /* Hidden by default, usually for mobile nav */
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    background-color: #8FBC8F; /* Green background for buttons */
    color: #FFFFFF; /* White text for buttons */
    padding: 10px 15px; /* Button padding */
    border-radius: 15px; /* More rounded corners */
    text-decoration: none; /* Remove underlines */
    font-weight: bold; /* Bold text */
    display: inline-block; /* Behave like inline buttons */
    border: none; /* Remove default borders */
    transition: background-color 0.3s, color 0.3s; /* Smooth hover transition */
}

.nav-links a:hover {
    background-color: #66967f; /* Slightly darker green on hover */
    color: #fff; /* White text on hover */
}

.btn {
    background-color: #FFF9C4;
    color: #333;
    padding: 12px 25px; /* Slightly larger padding for buttons */
    border-radius: 9999px; /* Pill shape */
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1.1rem; /* Slightly larger font size for buttons */
}

.btn:hover {
    background-color: #FFF176;
    transform: translateY(-2px);
}

/* Hero Section */
#home {
    padding-top: 100px; /* Space for fixed header */
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('https://hoarding-freedom.co.uk/wp-content/uploads/2025/05/image-2.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #f3f4f6; /* Fallback color */
}

/* Overlay for hero background image */
#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black (40% opacity) */
    z-index: 1; /* Places the overlay above the background image */
}

.hero-bg {
    /* These properties are removed to eliminate the box */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative; /* Essential for z-index to work */
    z-index: 10; /* Places text above the overlay */
    color: #FFFFFF; /* White text for readability */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Subtle shadow for better contrast */
}

.hero-title {
    font-size: 3rem; /* Made larger */
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    color: #E0E0E0; /* Slightly off-white to stand out from pure white text but still be light */
    font-style: italic;
}

.hero-text {
    font-size: 1.5rem; /* Made larger */
    margin-bottom: 2rem;
}

/* Section Styles */
section {
    padding: 5rem 0; /* Consistent vertical padding for sections */
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #8FBC8F; /* Green underline */
}

.section-heading {
    text-align: center;
    margin-bottom: 2rem;
}

/* About Section */
#about {
    background-color: #ecfdf5; /* Lightest green */
}

.about-content {
    overflow: hidden; /* Clears floats within this container */
    padding-bottom: 1rem; /* Add some space if text is longer */
}

.about-image {
    width: 9%;
    height: auto;
    background-color: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    float: left;
    margin: 0 2rem 1rem 0;
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-text strong {
    font-weight: bold !important;
}

.notice {
    background-color: #d1fae5;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #8FBC8F;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Center button in About section */
.book-appointment {
    text-align: center;
}


/* Areas Section */
#areas {
    background-color: #fff; /* White background */
}

.areas-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.area-tag {
    background-color: #ecfdf5; /* Lightest green */
    padding: 8px 20px;
    border-radius: 9999px; /* Pill shape */
    color: #4b5563;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-size: 1.1rem; /* Made areas text larger */
}

/* Services Section */
#services {
    padding: 5rem 0;
    background-color: #d1e7dd; /* Light sage green background around boxes */
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on small screens */
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: #fff; /* White background for cards */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #d1fae5; /* Light green border */
    transition: transform 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #8FBC8F; /* Sage green icon color */
}

.service-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #66967f; /* Muted green title color */
}

.service-description {
    color: #6b7280;
}

/* Process Section */
#process {
    background-color: #ecfdf5; /* Lightest green */
    padding: 5rem 0;
    text-align: center;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column on small screens */
    gap: 2rem;
    justify-items: center;
}

.process-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    width: 100%;
    max-width: 400px;
}

.process-card:hover {
    transform: translateY(-4px);
}

.process-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: #8FBC8F; /* Green background for steps */
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.process-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #66967f;
}

.process-description {
    color: #6b7280;
}

/* Contact Section */
#contact {
    background-color: #ecfdf5; /* Background for the whole contact section */
    padding: 5rem 0;
    text-align: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #66967f;
}

.contact-details {
    margin-top: 1.5rem;
    text-align: center;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem; /* Make contact details text bigger */
}

.contact-details a {
    color: #66967f;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: #8FBC8F;
    text-decoration: underline;
}

.contact-form {
    background-color: #FFFDE7; /* Paler Yellow background for the "Send us a Message" box */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

/* Centralize WPForms input fields and labels */
.wpforms-container .wpforms-form .wpforms-field-container .wpforms-field-large,
.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form textarea {
    width: 100% !important;
    max-width: 400px !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.wpforms-container .wpforms-form .wpforms-field-label {
    text-align: center !important;
    width: 100% !important;
}

.wpforms-container .wpforms-field {
    text-align: center !important;
}


/* Footer */
footer {
    background-color: #1A362D; /* Dark Green Footer Background */
    color: white;
    padding: 3rem 0;
}

.footer-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: #A5D6A7; /* Lighter green for footer logo 'Freedom' (contrasts well with new dark green) */
    font-style: italic;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    margin-bottom: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #A5D6A7; /* Lighter green on hover (contrasts well with new dark green) */
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    border-top: 1px solid #30554E; /* Subtle dark green border for consistency */
    padding-top: 1.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    background-color: #FFF9C4; /* Yellow button */
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 100;
}

.back-to-top:hover {
    background-color: #FFF176;
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 2-3 columns on larger screens */
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on medium and larger screens */
    }
}

@media (max-width: 767px) {
    /* FIX FOR LOGO COLOR ON MOBILE */
    .logo {
        color: #8B0000; /* Re-apply dark red for "Hoarding" specifically for mobile */
    }
    /* END FIX */

    .nav-links {
        display: none; /* Hidden by default for mobile */
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 10px 0;
        z-index: 40;
    }

    .nav-links.open { /* Ensures the menu shows when the 'open' class is applied by JS */
        display: flex; /* Show when active (for mobile toggle) */
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: block; /* Show hamburger icon on small screens */
    }

    /* Optional: Style for when the menu toggle is 'open' */
    .menu-toggle.open {
        /* Add styles here if you want the hamburger icon to change when open, e.g., a different color or rotate */
    }

    .hero-title {
        font-size: 2.2rem; /* Adjust for smaller screens */
    }

    .hero-text {
        font-size: 1.25rem; /* Adjust for smaller screens */
    }

    .about-image { /* Adjusted specifically for small screens */
        float: none; /* Remove float for stacking on small screens */
        margin: 0 auto 1.5rem auto; /* Center and add bottom margin */
        width: 80%; /* Make image wider on mobile when stacked */
    }

    .contact-form {
        padding: 1.5rem; /* Smaller padding on mobile */
    }
    .wpforms-container .wpforms-field-large,
    .wpforms-container input[type="text"],
    .wpforms-container input[type="email"],
    .wpforms-container textarea {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .notice {
        max-width: 90%;
    }
}