/*
Theme Name: Wash Masters Blog
Theme URI: https://washmasterslaundry.com
Author: Wash Masters
Description: Simple clean blog theme for Wash Masters Laundry Dubai
Version: 3.2
License: GNU General Public License v2 or later
Text Domain: washmasters-blog
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: #f0f2f5;
    color: #1a2333;
    font-size: 15px;
    line-height: 1.6;
}

a { color: #00b0d8; text-decoration: none; }
a:hover { color: #1a2333; }
img { max-width: 100%; height: auto; display: block; }

/* ── HEADER ── */
#site-header,
body #site-header,
html body #site-header {
    background-color: #30d1ff !important;
    background: #30d1ff !important;
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}

/* Kill any WordPress or plugin nav injected inside header */
#site-header ul,
#site-header .menu,
#site-header nav:not(.wm-main-nav),
#site-header #main-navigation,
#site-header .main-navigation,
#site-header .wp-block-navigation {
    display: none !important;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

/* Logo: the SVG has white paths — sits perfectly on blue */
.header-logo-img {
    height: 58px !important;
    width: auto !important;
    display: block !important;
    max-width: 280px !important;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    opacity: 0.85;
    transition: opacity 0.15s;
    padding: 0;
}
.search-toggle:hover { opacity: 1; }

.header-cta {
    background: #ffffff;
    color: #1a2333 !important;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.15s;
    letter-spacing: 0.1px;
}
.header-cta:hover { background: #f0f0f0; color: #1a2333 !important; }

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none;
    flex-direction: column;
    background: #1ab8e0;
    padding: 10px 24px 18px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    color: rgba(255,255,255,0.92);
    font-size: 14px;
    font-weight: 500;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: color 0.15s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: #fff; }
.mobile-cta {
    margin-top: 10px;
    background: #fff;
    color: #1a2333 !important;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 6px;
    text-align: center;
    border-bottom: none !important;
}

/* ── SEARCH OVERLAY ── */
#searchOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.search-modal {
    background: #fff;
    border-radius: 14px;
    padding: 38px 42px;
    width: 92%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    animation: popIn 0.16s ease;
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.96) translateY(-8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.search-close {
    position: absolute;
    top: 13px; right: 14px;
    background: #f0f2f5;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.search-close:hover { background: #1a2333; color: #fff; }
.search-hint {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 14px;
}
.wm-search-form { display: flex; gap: 8px; }
.wm-search-input {
    flex: 1;
    padding: 11px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1a2333;
    outline: none;
    background: #f7f8fa;
    transition: border-color 0.2s;
}
.wm-search-input:focus { border-color: #30d1ff; background: #fff; }
.wm-search-input::placeholder { color: #bbb; }
.wm-search-btn {
    padding: 11px 20px;
    background: #30d1ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.wm-search-btn:hover { background: #1ab8e0; }

/* ── PAGE LAYOUT ── */
.site-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 32px;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 36px;
    align-items: start;
}

.blog-page-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a2333;
    margin-bottom: 24px;
    letter-spacing: -0.2px;
}

/* ── BLOG GRID — 3 columns ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* ── POST CARD ── */
.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.card-image-link { display: block; overflow: hidden; }
.card-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.post-card:hover .card-image { transform: scale(1.03); }

.card-image-placeholder {
    width: 100%;
    height: 190px;
    background: #e0f7ff;
}

.card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-category {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #00b0d8;
    margin-bottom: 6px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a2333;
    line-height: 1.45;
    margin-bottom: 8px;
}
.card-title a { color: #1a2333; }
.card-title a:hover { color: #00b0d8; }

.card-excerpt {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: 12px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}
.card-date { font-size: 12px; color: #aaa; }
.card-read-more {
    font-size: 12px;
    font-weight: 600;
    color: #00b0d8;
    transition: color 0.15s;
}
.card-read-more:hover { color: #1a2333; }

/* ── SIDEBAR ── */
.blog-sidebar { position: sticky; top: 84px; }

.sidebar-widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 18px;
    margin-bottom: 18px;
}
.sidebar-widget-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 12px;
}
.sidebar-widget select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1a2333;
    background: #f7f8fa;
    cursor: pointer;
    outline: none;
}
.sidebar-widget select:focus { border-color: #30d1ff; }

.sidebar-post-list { list-style: none; }
.sidebar-post-list li {
    padding: 9px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    line-height: 1.45;
}
.sidebar-post-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post-list a { color: #1a2333; font-weight: 500; }
.sidebar-post-list a:hover { color: #00b0d8; }

/* ── PAGINATION ── */
.wm-pagination { margin-top: 28px; }
.wm-pagination .page-numbers {
    display: inline-block;
    padding: 7px 13px;
    margin: 0 2px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    background: #fff;
    transition: all 0.15s;
}
.wm-pagination .page-numbers:hover,
.wm-pagination .page-numbers.current {
    background: #30d1ff;
    color: #fff;
    border-color: #30d1ff;
}

/* ── SINGLE POST ── */
.single-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 42px 50px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}
.back-link:hover { color: #00b0d8; }
.single-category {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #00b0d8;
    margin-bottom: 10px;
}
.single-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a2333;
    line-height: 1.3;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.single-meta {
    font-size: 13px;
    color: #aaa;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 2px solid #30d1ff;
}
.single-featured-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 26px;
}
.single-content { font-size: 15px; line-height: 1.85; color: #444; }
.single-content h2 { font-size: 20px; font-weight: 700; color: #1a2333; margin: 30px 0 12px; }
.single-content h3 { font-size: 17px; font-weight: 600; color: #1a2333; margin: 22px 0 10px; }
.single-content p { margin-bottom: 16px; }
.single-content ul, .single-content ol { padding-left: 22px; margin-bottom: 16px; }
.single-content li { margin-bottom: 8px; }
.single-content a { color: #00b0d8; text-decoration: underline; }

/* ── FOOTER ── */
#site-footer {
    text-align: center;
    padding: 26px 20px;
    font-size: 13px;
    color: #aaa;
    border-top: 1px solid #e5e7eb;
    margin-top: 40px;
    background: #fff;
}

.no-posts { text-align: center; padding: 80px 20px; color: #aaa; font-size: 16px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .site-wrap { grid-template-columns: 1fr; padding: 24px 20px; }
    .blog-sidebar { position: static; }
}
@media (max-width: 680px) {
    .header-right { display: none; }
    .nav-hamburger { display: flex; }
    .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .header-inner { padding: 0 16px; }
    .single-wrap { padding: 24px 18px; }
    .single-title { font-size: 20px; }
    .search-modal { padding: 26px 18px; }
}
