/* ═══════════════════════════════════════
   MELBOURNE CARPET CLEANING - MAIN CSS
   ═══════════════════════════════════════ */

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

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

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

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

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

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ─── DESKTOP DROPDOWN ─── */
.menu-item.group:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item .sub-menu {
    transform: translateY(8px);
    transition: all 0.2s ease;
}

/* ─── MOBILE MENU ─── */
.mobile-sub-menu {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.mobile-sub-menu.is-open {
    display: block !important;
    max-height: 500px;
    opacity: 1;
}

.mobile-submenu-toggle svg {
    transition: transform 0.2s ease;
}

.mobile-submenu-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* ─── HEADER SCROLLED STATE ─── */
.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ─── HERO SECTION ─── */
.hero-section {
    min-height: 90vh;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* ─── FAQ ACCORDION ─── */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #f97316;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.1);
}

.faq-item.active {
    border-color: #f97316;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.1);
}

.faq-question {
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 600;
    color: #1f2937;
    transition: all 0.2s ease;
    background: white;
}

.faq-question:hover {
    color: #f97316;
}

.faq-item.active .faq-question {
    color: #f97316;
    background: #fdf8f6;
}

.faq-question svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem;
}

/* ─── SERVICE CARDS ─── */
.service-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.15);
    border-color: #f97316;
}

.service-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #fb923c);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1);
}

/* ─── PROCESS STEPS ─── */
.process-step {
    position: relative;
    padding-left: 4rem;
}

.process-step .step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    color: white;
    background: linear-gradient(135deg, #f97316, #fb923c);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.process-step .step-connector {
    position: absolute;
    left: 1.4rem;
    top: 3.5rem;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(to bottom, #f97316, #e5e7eb);
}

/* ─── BENEFIT CHECKMARKS ─── */
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.benefit-item .check-icon {
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fb923c;
    margin-top: 0.125rem;
}

/* ─── AREAS BADGES ─── */
.area-badge {
    display: inline-flex;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #f97316;
    background: #fdf8f6;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.area-badge:hover {
    background: #f97316;
    color: white;
    transform: translateY(-1px);
}

/* ─── TESTIMONIAL CARD ─── */
.testimonial-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.08);
    border: 1px solid #f3f4f6;
}

/* ─── BEFORE & AFTER GALLERY ─── */
.gallery-placeholder {
    background: linear-gradient(135deg, #fdf8f6, #fdf8f6);
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #fed7aa;
    transition: all 0.3s ease;
}

.gallery-placeholder:hover {
    border-color: #f97316;
    background: linear-gradient(135deg, #fdf8f6, #fed7aa);
}

/* ─── BLOG POST CARD ─── */
.post-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.15);
}

.post-card .post-thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* ─── SWIPER OVERRIDES ─── */
.swiper-pagination-bullet {
    background: #f97316;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #f97316;
}

/* ─── GRADIENT TEXT ─── */
.gradient-text {
    background: linear-gradient(135deg, #f97316, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── SECTION PADDING ─── */
.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

/* ─── WORDPRESS CONTENT STYLES ─── */
.entry-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #4a4443;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #4a4443;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

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

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

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

.entry-content a {
    color: #f97316;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.entry-content a:hover {
    color: #fb923c;
}

.entry-content blockquote {
    border-left: 4px solid #f97316;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #fdf8f6;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #374151;
}

.entry-content img {
    border-radius: 1rem;
    max-width: 100%;
    height: auto;
}

/* ─── SCROLL BEHAVIOR ─── */
html {
    scroll-behavior: smooth;
}

/* ─── SELECTION COLOR ─── */
::selection {
    background: rgba(249, 115, 22, 0.2);
    color: #4a4443;
}

/* ─── BEFORE & AFTER CAROUSEL ─── */
.ba-swiper .swiper-slide {
    height: auto;
}

.ba-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0;
    background: #d1d5db;
    opacity: 1;
    transition: all 0.3s ease;
}

.ba-pagination .swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 9999px;
    background: #f97316;
}

.ba-prev.swiper-button-disabled,
.ba-next.swiper-button-disabled {
    opacity: 0.4;
    pointer-events: none;
}
