/*
Theme Name: Freshly Couch Cleaning Near Me
Theme URI: https://freshlycouchcleaningnearme.com.au/
Author: Freshly Services
Author URI: https://freshlycouchcleaningnearme.com.au/
Description: Professional couch cleaning service theme for Brisbane and Gold Coast. Built with Tailwind CSS featuring a modern yellow-red design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
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: freshly-couch
*/

/* ═══════════════════════════════════════
   CSS CUSTOM PROPERTIES
═══════════════════════════════════════ */
:root {
    --color-primary: #C8102E;
    --color-primary-50: #fde8eb;
    --color-primary-100: #f9c5cc;
    --color-primary-200: #f49da9;
    --color-primary-300: #ef7586;
    --color-primary-400: #e94d63;
    --color-primary-500: #C8102E;
    --color-primary-600: #a80d26;
    --color-primary-700: #880a1e;
    --color-primary-800: #680716;
    --color-primary-900: #5a0813;

    --color-accent: #F5A623;
    --color-accent-50: #fef5e7;
    --color-accent-100: #fce6c3;
    --color-accent-200: #fad49b;
    --color-accent-300: #f8c273;
    --color-accent-400: #f6b04b;
    --color-accent-500: #F5A623;
    --color-accent-600: #d48e1e;
    --color-accent-700: #b37619;
    --color-accent-800: #925e14;
    --color-accent-900: #6b4a0f;

    --color-navy: #1a1a2e;
    --color-cream: #fefaf3;
}

/* ═══════════════════════════════════════
   BASE RESETS
═══════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ═══════════════════════════════════════
   TOPBAR
═══════════════════════════════════════ */
.topbar a:hover {
    color: var(--color-accent) !important;
}

/* ═══════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════ */
.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Desktop dropdown */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 360px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 8px;
    z-index: 100;
    border: 1px solid #f0f0f0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children.dropdown-open > .sub-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s ease;
}

.sub-menu li a:hover {
    background: var(--color-primary-50);
    color: var(--color-primary);
}

/* Desktop dropdown chevron */
.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover > a::after,
.menu-item-has-children.dropdown-open > a::after {
    transform: rotate(180deg);
}

/* ═══════════════════════════════════════
   MOBILE MENU
═══════════════════════════════════════ */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#mobile-menu.menu-open {
    max-height: 600px;
}

#mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mobile-menu ul li a {
    display: block;
    padding: 12px 16px;
    font-weight: 600;
    color: #374151;
    border-radius: 10px;
    transition: all 0.2s ease;
}

#mobile-menu ul li a:hover {
    background: var(--color-primary-50);
    color: var(--color-primary);
}

/* Mobile sub-menu */
#mobile-menu .sub-menu {
    display: none;
    padding-left: 16px;
}

#mobile-menu .sub-menu.mobile-sub-open {
    display: block;
}

#mobile-menu .sub-menu li a {
    font-size: 14px;
    padding: 10px 16px;
}

/* Mobile dropdown toggle */
.mobile-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-dropdown-toggle .dropdown-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-dropdown-toggle.open .dropdown-chevron {
    transform: rotate(180deg);
}

/* ═══════════════════════════════════════
   FAQ ACCORDION
═══════════════════════════════════════ */
.faq-item {
    overflow: hidden;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, border-color 0.3s ease;
    display: block !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top-width: 0 !important;
}

.faq-answer.faq-open {
    max-height: 500px;
    padding-bottom: 1.5rem !important;
    border-top-width: 1px !important;
}

.faq-trigger .faq-icon {
    transition: transform 0.3s ease;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

/* ═══════════════════════════════════════
   FORM STYLES
═══════════════════════════════════════ */
.fc-input {
    border-color: #f0e6d9 !important;
    background: #fffcf7 !important;
}

.fc-input:focus {
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15) !important;
}

.fc-submit {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary)) !important;
    cursor: pointer;
    border: none;
}

.fc-submit:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(200, 16, 46, 0.3);
}

/* CF7 compatibility */
.wpcf7-form-control-wrap {
    display: block !important;
    width: 100%;
}

.wpcf7-spinner {
    position: absolute;
}

.wpcf7-response-output {
    border-radius: 12px !important;
    padding: 12px 20px !important;
    margin: 12px 0 0 !important;
    font-size: 14px;
}

/* ═══════════════════════════════════════
   MOBILE STICKY BAR
═══════════════════════════════════════ */
@media (min-width: 768px) {
    .mobile-sticky-bar {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .mobile-sticky-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    }

    .mobile-sticky-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 50%;
        padding: 14px;
        font-weight: 700;
        font-size: 14px;
        text-decoration: none;
        transition: background-color 0.2s ease;
    }

    body {
        padding-bottom: 60px;
    }

    section {
        overflow-x: hidden;
    }
}

/* ═══════════════════════════════════════
   PROCESS TIMELINE
═══════════════════════════════════════ */
.process-card {
    position: relative;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
    border-radius: 2px;
    transition: height 0.5s ease;
}

.process-card:hover::before {
    height: 100%;
}

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 166, 35, 0.3); }
    50% { box-shadow: 0 0 40px rgba(245, 166, 35, 0.6); }
}

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

/* ═══════════════════════════════════════
   BLOG STYLES
═══════════════════════════════════════ */
.blog-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-content p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.blog-content ul,
.blog-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.blog-content li {
    color: #4b5563;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.blog-content img {
    border-radius: 16px;
    margin: 1.5rem 0;
}

.blog-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--color-accent-50);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #374151;
}

/* ═══════════════════════════════════════
   STAR RATING
═══════════════════════════════════════ */
span.star {
    position: relative;
    bottom: 5px !important;
}

/* ═══════════════════════════════════════
   SERVICE CARDS
═══════════════════════════════════════ */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--color-accent) !important;
}

/* ═══════════════════════════════════════
   BEFORE/AFTER GALLERY
═══════════════════════════════════════ */
.ba-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.ba-card img {
    transition: transform 0.5s ease;
}

.ba-card:hover img {
    transform: scale(1.05);
}

.ba-card .ba-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════
   BEFORE/AFTER CAROUSEL (scrollable)
═══════════════════════════════════════ */
.ba-carousel {
    display: flex;
    gap: 1.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 16, 46, 0.35) rgba(0, 0, 0, 0.05);
}

.ba-carousel > .ba-card {
    flex: 0 0 auto;
    width: 360px;
    max-width: 85%;
    scroll-snap-align: start;
}

.ba-carousel::-webkit-scrollbar {
    height: 8px;
}

.ba-carousel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.ba-carousel::-webkit-scrollbar-thumb {
    background: rgba(200, 16, 46, 0.35);
    border-radius: 8px;
}

.ba-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 16, 46, 0.55);
}

@media (max-width: 640px) {
    .ba-carousel > .ba-card {
        width: 300px;
        max-width: 85%;
    }
}
