/*
Theme Name: Tadbeer Zakhir
Theme URI: https://www.tadbeerzakhir.ae/
Author: Tadbeer Zakhir
Author URI: https://www.tadbeerzakhir.ae/
Description: Fast, SEO-focused bilingual WordPress theme for Zakhir Domestic Workers Sole Proprietorship LLC, Al Ain, with English/Arabic switching and RTL support.
Version: 1.1.0
Text Domain: tadbeer-zakhir
*/

:root {
    --navy: #082c5c;
    --blue: #0879e8;
    --blue-dark: #045bb5;
    --gold: #e7a900;
    --gold-light: #f5c94d;
    --text: #172033;
    --muted: #647084;
    --white: #ffffff;
    --light: #f5f8fc;
    --border: #e2e8f0;
    --success: #159447;

    --container: 1180px;
    --radius: 16px;
    --shadow: 0 12px 35px rgba(8, 44, 92, 0.10);
}


/* =========================================
   RESET / BASE
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--navy);
    text-decoration: none;
}

a:hover {
    color: var(--blue);
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}


/* =========================================
   HEADER
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.site-logo img {
    width: 220px;
    height: auto;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    font-size: 15px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 10px;
}


/* =========================================
   BUTTONS
========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 15px;
    transition: .2s ease;
}

.btn-primary {
    color: #fff;
    background: var(--blue);
}

.btn-primary:hover {
    color: #fff;
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--navy);
    background: #fff;
    border-color: var(--border);
}

.btn-secondary:hover {
    color: var(--navy);
    border-color: var(--blue);
}

.btn-whatsapp {
    color: #fff;
    background: var(--success);
}

.btn-whatsapp:hover {
    color: #fff;
    background: #107d3b;
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background:
        radial-gradient(circle at 90% 20%, rgba(8,121,232,.12), transparent 35%),
        linear-gradient(135deg, #f7fbff 0%, #ffffff 65%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 60px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 30px;
    height: 3px;
    background: var(--gold);
}

.hero h1 {
    max-width: 720px;
    margin: 0 0 20px;
    color: var(--navy);
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.hero h1 span {
    color: var(--blue);
}

.hero-text {
    max-width: 680px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    min-height: 440px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.hero-badge {
    position: absolute;
    left: -20px;
    bottom: 25px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.hero-badge strong {
    display: block;
    color: var(--navy);
    font-size: 18px;
}

.hero-badge small {
    color: var(--muted);
}


/* =========================================
   TRUST STRIP
========================================= */

.trust-strip {
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.trust-item {
    padding: 25px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.trust-item:last-child {
    border-right: 0;
}

.trust-item strong {
    display: block;
    color: var(--navy);
    font-size: 16px;
}

.trust-item span {
    color: var(--muted);
    font-size: 13px;
}


/* =========================================
   SECTIONS
========================================= */

.section {
    padding: 90px 0;
}

.section-light {
    background: var(--light);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}


/* =========================================
   CARDS
========================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    padding: 30px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(8,44,92,.04);
}

.card-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    color: var(--blue);
    background: #eaf4ff;
    border-radius: 12px;
    font-size: 24px;
}

.card h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 21px;
}

.card p {
    margin: 0 0 18px;
    color: var(--muted);
}

.text-link {
    font-weight: 800;
    color: var(--blue);
}


/* =========================================
   PACKAGES
========================================= */

.package-card {
    position: relative;
    overflow: hidden;
}

.package-card.featured {
    border: 2px solid var(--blue);
}

.package-number {
    color: var(--gold);
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.package-card h3 {
    font-size: 28px;
}

.package-list {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.package-list li {
    position: relative;
    padding: 7px 0 7px 25px;
    color: var(--muted);
}

.package-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 800;
}


/* =========================================
   SERVICES
========================================= */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    padding: 28px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
}

.service-card h3 {
    color: var(--navy);
}


/* =========================================
   SPLIT SECTIONS
========================================= */

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.split-content h2 {
    margin: 0 0 20px;
    color: var(--navy);
    font-size: clamp(30px, 4vw, 44px);
}

.check-list {
    margin: 25px 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    margin: 12px 0;
    padding-left: 32px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--success);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}


/* =========================================
   LOCATION
========================================= */

.location-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 30px;
}

.location-card {
    padding: 35px;
    background: var(--navy);
    color: #fff;
    border-radius: 18px;
}

.location-card h2 {
    margin-top: 0;
    color: #fff;
}

.location-card p {
    color: rgba(255,255,255,.75);
}

.map-wrap {
    min-height: 420px;
    overflow: hidden;
    border-radius: 18px;
    background: #e8edf3;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    display: block;
}


/* =========================================
   PAGE HERO
========================================= */

.page-hero {
    padding: 75px 0;
    background:
        radial-gradient(circle at 90% 20%, rgba(8,121,232,.10), transparent 35%),
        linear-gradient(135deg, #f7fbff 0%, #ffffff 70%);
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--navy);
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
}


/* =========================================
   PAGE / ARTICLE LAYOUT
========================================= */

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 55px;
    align-items: start;
}

.page-content {
    min-width: 0;
}

.entry-content {
    max-width: 850px;
}

.entry-content h2,
.page-content h2 {
    margin: 42px 0 16px;
    color: var(--navy);
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.2;
}

.entry-content h3,
.page-content h3 {
    margin: 30px 0 12px;
    color: var(--navy);
    font-size: 22px;
    line-height: 1.3;
}

.entry-content p,
.page-content p {
    margin: 0 0 18px;
    color: var(--text);
}

.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol {
    margin: 20px 0 25px;
    padding-left: 25px;
}

.entry-content li,
.page-content li {
    margin: 8px 0;
}

.entry-content a,
.page-content a {
    color: var(--blue);
    font-weight: 600;
}

.entry-content a:hover,
.page-content a:hover {
    color: var(--blue-dark);
}


/* =========================================
   FEATURED IMAGE
========================================= */

.page-featured-image {
    margin-bottom: 35px;
}

.page-featured-image img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
}


/* =========================================
   ARTICLE
========================================= */

.article-hero {
    padding-bottom: 55px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
}

.article-meta a {
    color: var(--blue);
    font-weight: 600;
}

.blog-article {
    min-width: 0;
}


/* =========================================
   SIDEBAR
========================================= */

.page-sidebar {
    position: sticky;
    top: 105px;
}

.sidebar-card {
    margin-bottom: 20px;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(8,44,92,.04);
}

.sidebar-card h2,
.sidebar-card h3 {
    margin-top: 0;
    color: var(--navy);
}

.sidebar-card p {
    color: var(--muted);
}

.sidebar-btn {
    width: 100%;
    margin-top: 10px;
}

.sidebar-link {
    margin-top: 15px;
}

.sidebar-hours strong {
    color: var(--navy);
}

.small-text {
    font-size: 13px;
}


/* =========================================
   POST NAVIGATION
========================================= */

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.post-navigation-prev,
.post-navigation-next {
    min-width: 0;
}

.post-navigation-next {
    text-align: right;
}

.post-navigation a {
    color: var(--blue);
    font-weight: 700;
}


/* =========================================
   CTA
========================================= */

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 45px;
    background: var(--navy);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.cta-box h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
}

.cta-box p {
    max-width: 700px;
    margin: 0;
    color: rgba(255,255,255,.75);
}

.cta-box .eyebrow {
    color: var(--gold-light);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}


/* =========================================
   404
========================================= */

.error-page {
    min-height: 65vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.error-content {
    max-width: 700px;
    margin-inline: auto;
}

.error-code {
    margin: 0;
    color: var(--blue);
    font-size: clamp(80px, 15vw, 150px);
    font-weight: 900;
    line-height: .9;
}

.error-content h1 {
    margin: 20px 0 12px;
    color: var(--navy);
    font-size: clamp(30px, 5vw, 48px);
}

.error-content p {
    color: var(--muted);
}

.error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.error-links {
    margin-top: 35px;
}

.error-links ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.error-links a {
    color: var(--blue);
    font-weight: 700;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    padding: 65px 0 100px;
    color: rgba(255,255,255,.75);
    background: #061f40;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    width: 230px;
    margin-bottom: 20px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
}

.site-footer h3 {
    margin-top: 0;
    color: #fff;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 8px 0;
}

.site-footer a {
    color: rgba(255,255,255,.75);
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 45px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 13px;
}


/* =========================================
   MOBILE CTA
========================================= */

.mobile-cta {
    display: none;
}


/* =========================================
   RESPONSIVE — TABLET
========================================= */

@media (max-width: 1000px) {

    .primary-nav {
        display: none;
    }

    .hero-grid,
    .split-section,
    .location-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 65px 0;
    }

    .hero-image {
        max-width: 720px;
        margin: 0 auto;
    }

    .cards,
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .content-layout {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        position: static;
    }

    .entry-content {
        max-width: none;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================
   RESPONSIVE — MOBILE
========================================= */

@media (max-width: 680px) {

    .container {
        width: min(100% - 28px, var(--container));
    }

    .header-inner {
        min-height: 70px;
    }

    .site-logo img {
        width: 165px;
    }

    .header-actions .btn-secondary {
        display: none;
    }

    .header-actions .btn {
        min-height: 42px;
        padding: 0 14px;
        font-size: 13px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-image img {
        min-height: 320px;
    }

    .hero-badge {
        left: 12px;
        bottom: 12px;
    }

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

    .trust-item {
        border-bottom: 1px solid var(--border);
    }

    .trust-item:nth-child(2) {
        border-right: 0;
    }

    .cards,
    .service-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 65px 0;
    }

    .split-image img {
        height: 350px;
    }

    .page-hero {
        padding: 50px 0;
    }

    .page-hero h1 {
        font-size: 40px;
    }

    .page-hero p {
        font-size: 16px;
    }

    .content-layout {
        gap: 35px;
    }

    .entry-content h2,
    .page-content h2 {
        font-size: 28px;
    }

    .entry-content h3,
    .page-content h3 {
        font-size: 20px;
    }

    .page-featured-image img {
        max-height: 400px;
        border-radius: 14px;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .post-navigation-next {
        text-align: left;
    }

    .cta-box {
        padding: 30px 24px;
        border-radius: 16px;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .error-page {
        min-height: 60vh;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions .btn {
        width: 100%;
    }

    .mobile-cta {
        position: fixed;
        z-index: 9999;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        background: #fff;
        box-shadow: 0 -5px 25px rgba(0,0,0,.12);
    }

    .mobile-cta a {
        padding: 13px 5px;
        text-align: center;
        font-size: 12px;
        font-weight: 800;
        border-right: 1px solid var(--border);
    }

    .mobile-cta a:last-child {
        border-right: 0;
    }

    body {
        padding-bottom: 60px;
    }
}


/* =========================================
   ACCESSIBILITY / FOCUS
========================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(8,121,232,.35);
    outline-offset: 3px;
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================
   LANGUAGE SWITCHER
========================================= */

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    line-height: 1;
}

.language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 8px;
    border-radius: 999px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.language-link:hover {
    color: var(--blue);
}

.language-link.is-active {
    color: #fff;
    background: var(--navy);
}

.language-separator {
    color: var(--border);
    user-select: none;
}

html[dir="rtl"] {
    font-family: Tahoma, Arial, sans-serif;
}

html[dir="rtl"] body {
    font-family: Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .eyebrow {
    letter-spacing: 0;
}

html[dir="rtl"] .package-number {
    letter-spacing: 0;
}


/* =========================================
   PROFESSIONAL RTL OVERRIDES
========================================= */

html[dir="rtl"] .header-inner,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .language-switcher {
    direction: rtl;
}

html[dir="rtl"] .primary-nav ul {
    direction: rtl;
}

html[dir="rtl"] .hero-grid,
html[dir="rtl"] .split-section,
html[dir="rtl"] .location-grid,
html[dir="rtl"] .content-layout {
    direction: rtl;
}

html[dir="rtl"] .hero-content,
html[dir="rtl"] .split-content,
html[dir="rtl"] .location-card,
html[dir="rtl"] .page-content,
html[dir="rtl"] .page-sidebar,
html[dir="rtl"] .entry-content,
html[dir="rtl"] .sidebar-card {
    text-align: right;
}

html[dir="rtl"] .hero-actions,
html[dir="rtl"] .cta-actions,
html[dir="rtl"] .error-actions {
    justify-content: flex-start;
}

html[dir="rtl"] .hero-badge {
    left: auto;
    right: -20px;
}

html[dir="rtl"] .trust-item {
    border-right: 0;
    border-left: 1px solid var(--border);
}

html[dir="rtl"] .trust-item:last-child {
    border-left: 0;
}

html[dir="rtl"] .package-list,
html[dir="rtl"] .check-list,
html[dir="rtl"] .entry-content ul,
html[dir="rtl"] .entry-content ol,
html[dir="rtl"] .page-content ul,
html[dir="rtl"] .page-content ol {
    padding-left: 0;
    padding-right: 0;
}

html[dir="rtl"] .package-list li {
    padding-left: 0;
    padding-right: 25px;
}

html[dir="rtl"] .package-list li::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .check-list li {
    padding-left: 0;
    padding-right: 32px;
}

html[dir="rtl"] .check-list li::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .post-navigation-next {
    text-align: left;
}

html[dir="rtl"] .post-navigation-prev {
    text-align: right;
}

html[dir="rtl"] .mobile-cta a {
    border-right: 0;
    border-left: 1px solid var(--border);
}

html[dir="rtl"] .mobile-cta a:last-child {
    border-left: 0;
}

html[dir="rtl"] .mobile-cta,
html[dir="rtl"] iframe {
    direction: ltr;
}

html[dir="rtl"] .mobile-cta a {
    direction: rtl;
}

html[dir="rtl"] .map-wrap {
    direction: ltr;
}


/* =========================================
   LANGUAGE SWITCHER RESPONSIVE
========================================= */

@media (max-width: 1000px) {
    .language-switcher {
        margin-inline-start: auto;
    }
}

@media (max-width: 680px) {
    .header-inner {
        gap: 8px;
    }

    .language-switcher {
        padding: 3px;
        gap: 2px;
    }

    .language-link {
        min-height: 34px;
        padding: 0 6px;
        font-size: 12px;
    }

    .header-actions {
        gap: 6px;
    }

    html[dir="rtl"] .hero-badge {
        right: 12px;
    }
}
