/*
Theme Name: Water Damage Restoration Battersea
Theme URI: https://waterdamagerestorationbattersea.co.uk
Author: Water Damage Restoration Battersea
Author URI: https://waterdamagerestorationbattersea.co.uk
Description: A modern, professional WordPress theme for Water Damage Restoration Battersea. Features responsive design, Tailwind CSS styling, service pages, contact form, and 24/7 emergency contact information.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: waterdamage-restoration
Tags: one-column, two-columns, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========== Base Styles ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color, #1e293b);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== Custom Color Variables ========== */
:root {
    --navy: #0f2b46;
    --navy-light: #1a3d5c;
    --bright-blue: #2563eb;
    --bright-blue-hover: #1d4ed8;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --bg-muted: #f1f5f9;
    --bg-background: #ffffff;
    --border-color: #e2e8f0;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse-ring {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-pulse-ring {
    animation: pulse-ring 2s ease-in-out infinite;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ========== Scroll Animation Base ========== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Header Styles ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ========== Dropdown Menu ========== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 320px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.15s ease;
}

.nav-dropdown-menu a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

/* ========== Mobile Menu ========== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    background: #ffffff;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* ========== Accordion ========== */
.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.accordion-item.open {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.accordion-trigger {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.15s ease;
}

.accordion-trigger:hover {
    color: #2563eb;
}

.accordion-trigger .chevron {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.accordion-item.open .accordion-trigger .chevron {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.accordion-item.open .accordion-content {
    max-height: 500px;
    padding: 0 20px 16px;
}

/* ========== Progress Bar ========== */
.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    width: 0;
    transition: width 1.2s ease-out;
}

/* ========== Contact Form ========== */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
    color: #1e293b;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 6px;
}

/* ========== Utility Classes ========== */
.text-balance {
    text-wrap: balance;
}

/* WordPress Alignment Classes */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

/* WordPress Captions */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    padding: 8px 0;
}
