/*
Theme Name: Adam Cleaning Services
Theme URI: https://example.com/adam-cleaning
Author: You
Author URI: https://example.com
Description: ثيم ووردبريس متكامل لشركات تنظيف مثل Adam Cleaning Services، بألوان أزرق سماوي وأخضر حشيشي، مع هيدر ثابت، فوتر، برغر مينو، زر لغة (Polylang)، وصفحات خدمات وتواصل ومدونة.
Version: 1.0
Text Domain: adam-cleaning
*/

:root {
    --sky: #0ea5e9;
    --sky-soft: #e0f7ff;
    --grass: #22c55e;
    --dark: #020617;
    --text: #0f172a;
    --muted: #000000;
    --bg: #f8fafc;
    --white: #ffffff;
    --radius-lg: 18px;
    --shadow-soft: 0 15px 30px rgba(15, 23, 42, 0.08);
    --transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

/* Layout */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: rgba(248, 250, 252, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, var(--sky), var(--grass));
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Navigation */

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.primary-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.primary-menu a {
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--muted);
    position: relative;
    padding-bottom: 2px;
    transition: color var(--transition);
}

.primary-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--sky), var(--grass));
    transition: width var(--transition);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: var(--dark);
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after {
    width: 100%;
}

/* Header actions */

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Polylang language switch styling */
.real-lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.real-lang-switch a {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: var(--white);
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
}

.real-lang-switch a:hover {
    border-color: var(--sky);
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.25);
}

.real-lang-switch .current-lang {
    background: linear-gradient(135deg, var(--sky), var(--grass));
    color: var(--white) !important;
    border-color: transparent;
}

/* Burger */

.burger {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: var(--dark);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.burger-lines {
    width: 18px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: var(--transition);
}

.burger-lines::before,
.burger-lines::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--white);
    left: 0;
    transition: var(--transition);
}

.burger-lines::before {
    top: -6px;
}

.burger-lines::after {
    top: 6px;
}

.burger.open .burger-lines {
    background: transparent;
}

.burger.open .burger-lines::before {
    top: 0;
    transform: rotate(45deg);
}

.burger.open .burger-lines::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Nav */

@media (max-width: 768px) {
    .primary-menu {
        position: absolute;
        top: 72px;
        right: 1.5rem;
        left: 1.5rem;
        flex-direction: column;
        padding: 0.75rem;
        background: var(--white);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-soft);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height var(--transition), opacity var(--transition);
    }

    .primary-menu.open {
        max-height: 320px;
        opacity: 1;
        pointer-events: auto;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .burger {
        display: flex;
    }
}

/* Main Content */

.site-main {
    flex: 1;
    padding: 2.5rem 0 3rem;
}

/* Hero - Home */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 2rem;
    padding: 2rem;
    border-radius: 24px;
    background: radial-gradient(circle at 0 0, rgba(14,165,233,0.18), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(34,197,94,0.2), transparent 55%),
                var(--dark);
    color: var(--white);
    box-shadow: var(--shadow-soft);
    margin-bottom: 2.5rem;
}

.hero-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.hero-main-title {
    font-size: 2.1rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.hero-main-title span {
    color: var(--sky-soft);
}

.hero-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.hero-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.6);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.hero-secondary {
    font-size: 0.85rem;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hero-stats {
    display: grid;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.hero-stat {
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
    background: rgba(15,23,42,0.75);
    border: 1px solid rgba(148,163,184,0.45);
}

/* Services section */

.section {
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.section-title {
    font-size: 1.6rem;
    margin: 0 0 0.3rem;
}

.section-description {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 1.75rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.service-card {
    border-radius: var(--radius-lg);
    background: var(--white);
    padding: 1.3rem;
    box-shadow: var(--shadow-soft);
}

.service-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: black;
    margin-bottom: 0.25rem;
}


.service-title {
    font-size: 1rem;
    margin: 0 0 0.4rem;
}

.service-body {
    font-size: 0.9rem;
    color: var(--muted);
}

.service-meta {
    font-size: 0.8rem;
    margin-top: 0.6rem;
    color: var(--muted);
}

/* CTA strip */

.cta-strip {
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(90deg, var(--sky), var(--grass));
    color: var(--white);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
}

/* Page Header */

.page-header {
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.8rem;
    margin: 0 0 0.3rem;
}

.page-description {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

/* Card Layout for blog */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.post-card {
    border-radius: var(--radius-lg);
    background: var(--white);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.post-card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--sky);
    font-weight: 600;
}

.post-card-title a {
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--dark);
}

.post-card-meta {
    font-size: 0.8rem;
    color: var(--muted);
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--muted);
}

.button-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--sky);
}

/* Single / Page */

.content-card {
    border-radius: var(--radius-lg);
    background: var(--white);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.content-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.content-body {
    font-size: 1rem;
}

.content-body h2,
.content-body h3 {
    margin-top: 1.5rem;
}

/* Sidebar */

.sidebar {
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .content-with-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
        gap: 2rem;
    }

    .sidebar {
        margin-top: 0;
    }
}

.widget {
    border-radius: var(--radius-lg);
    background: var(--white);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1rem;
}

.widget-title {
    margin-top: 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.5rem 0;
    background: #020617;
    color: rgba(226, 232, 240, 0.9);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
}

.footer-menu a {
    color: rgba(148, 163, 184, 0.95);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-menu a:hover {
    color: var(--sky-soft);
}

/* Buttons */

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, var(--sky), var(--grass));
    color: var(--white);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.25);
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(34, 197, 94, 0.35);
    opacity: 0.95;
}

/* Pagination */

.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination a,
.pagination span {
    min-width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--muted);
}

.pagination .current {
    background: linear-gradient(135deg, var(--sky), var(--grass));
    color: var(--white);
    border: none;
}

/* Forms */

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,0.7);
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    background: var(--white);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Floating WhatsApp */

.whatsapp-float {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 35px rgba(22,163,74,0.5);
    z-index: 60;
    text-decoration: none;
}

.whatsapp-float span {
    font-size: 24px;
    color: #e5fef0;
}

/* RTL tweaks */

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .primary-menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-menu {
    flex-direction: row-reverse;
}
