/*
Theme Name: Freshly Curtain Cleaning Melbourne
Theme URI: https://freshlycurtaincleaning.com.au
Author: Freshly Curtain Cleaning Melbourne
Author URI: https://freshlycurtaincleaning.com.au
Description: Professional WordPress theme for Freshly Curtain Cleaning Melbourne - a premium curtain and drapery cleaning service. Built with Tailwind CSS for a modern, responsive design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freshly-curtain-cleaning
Tags: curtain-cleaning, drapery, service, business, tailwind, responsive
*/

/* === Base Resets & Theme Overrides === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', 'Outfit', sans-serif;
    color: #1a1a2e;
    background-color: #ffffff;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* === CSS Custom Properties === */
:root {
    --color-primary: #5b2a6e;
    --color-primary-dark: #3f1a50;
    --color-primary-light: #7a3d91;
    --color-accent: #c9944a;
    --color-accent-dark: #a87639;
    --color-text: #111827;
    --color-text-light: #4b5563;
    --color-bg: #ffffff;
    --color-bg-alt: #faf7f4;
    --color-border: #ede4da;
    --color-white: #ffffff;
    --color-navy: #1e1226;

    --gradient-primary: linear-gradient(135deg, #5b2a6e 0%, #3f1a50 100%);
    --gradient-accent: linear-gradient(135deg, #c9944a 0%, #5b2a6e 100%);
    --gradient-hero: linear-gradient(135deg, #1e1226 0%, #5b2a6e 60%, #c9944a 100%);

    --shadow-sm: 0 2px 8px rgba(91, 42, 110, 0.08);
    --shadow-md: 0 8px 32px rgba(91, 42, 110, 0.15);
    --shadow-lg: 0 20px 60px rgba(91, 42, 110, 0.2);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Scrollbar Styling === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

/* === Selection === */
::selection {
    background: var(--color-primary);
    color: white;
}

/* === WordPress Core Fixes === */
.wp-block-image img {
    border-radius: var(--radius-md);
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1rem;
}

/* === Skip Link === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 10000;
    font-size: 0.875rem;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

/* === Navigation Dropdowns (Desktop) === */
@media (min-width: 1024px) {
    .menu-item-has-children {
        position: relative;
    }

    /* Submenu styling */
    .sub-menu {
        position: absolute;
        top: calc(100% + 5px);
        left: 0;
        min-width: 240px;
        background: #ffffff;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border: 1px solid #edf2f7;
        border-radius: 1rem;
        padding: 0.75rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    /* Show submenu on hover */
    .menu-item-has-children:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Invisible bridge to prevent accidental closing */
    .menu-item-has-children::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 15px;
    }

    .sub-menu li {
        margin-bottom: 2px;
    }

    .sub-menu li:last-child {
        margin-bottom: 0;
    }

    .sub-menu a {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        font-weight: 600;
        color: #4a5568 !important;
        border-radius: 0.75rem;
        background: transparent !important;
    }

    .sub-menu a:hover {
        background: #faf7f4 !important;
        color: var(--color-primary) !important;
        transform: translateX(5px);
    }
}

/* === Mobile Menu Sub-menus === */
@media (max-width: 1023px) {
    .sub-menu {
        display: none;
        padding: 0.5rem 0 0.5rem 1.25rem;
        margin-left: 0.5rem;
        border-left: 2px solid #edf2f7;
    }

    .sub-menu.active {
        display: block;
    }

    .menu-item-has-children > a {
        position: relative;
        padding-right: 3rem !important;
    }

    .dropdown-toggle {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: #faf7f4;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .dropdown-toggle.active {
        background: #f3e8d5;
        transform: translateY(-50%) rotate(180deg);
    }

    .dropdown-toggle svg {
        width: 14px;
        height: 14px;
        color: var(--color-primary);
    }

    /* Mobile submenu link styling */
    .sub-menu a {
        display: block;
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
        font-weight: 500;
        color: #718096 !important;
    }
}

/* === Nav Link Styling === */
.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-link:hover {
    transform: translateY(-1px);
}


