/*
Theme Name: Leak Detect - كشف تسربات المياه
Theme URI: https://leak-detect.com
Author: LeakDetect Team
Author URI: https://leak-detect.com
Description: قالب ووردبريس احترافي لخدمات كشف تسربات المياه. تصميم حديث ومتجاوب مع دعم Elementor و Redux Framework. يحتوي على سلايدر، من نحن، الخدمات، المميزات، آراء العملاء، جداول الأسعار، واتصل بنا.
Version: 1.2.0
Requires at least: 5.8
Tested up to: 6.5
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: leak-detect
Domain Path: /languages
Tags: one-column, two-columns, right-sidebar, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, theme-options, translation-ready
*/

/* =========================================
   CSS Custom Properties (Color System)
   ========================================= */
:root {
    /* Primary Colors */
    --ld-primary: #0891b2;
    --ld-primary-dark: #0e7490;
    --ld-primary-light: #22d3ee;
    --ld-primary-rgb: 8, 145, 178;

    /* Secondary Colors */
    --ld-secondary: #1e3a5f;
    --ld-secondary-dark: #0f1d30;
    --ld-secondary-light: #2d5a8e;
    --ld-secondary-rgb: 30, 58, 95;

    /* Accent */
    --ld-accent: #06b6d4;
    --ld-accent-rgb: 6, 182, 212;

    /* Status Colors */
    --ld-success: #10b981;
    --ld-warning: #f59e0b;
    --ld-danger: #ef4444;

    /* Neutral Colors */
    --ld-dark: #0f172a;
    --ld-gray-900: #1e293b;
    --ld-gray-800: #334155;
    --ld-gray-700: #475569;
    --ld-gray-600: #64748b;
    --ld-gray-500: #94a3b8;
    --ld-gray-400: #cbd5e1;
    --ld-gray-300: #e2e8f0;
    --ld-gray-200: #f1f5f9;
    --ld-gray-100: #f8fafc;
    --ld-light: #f0f9ff;
    --ld-white: #ffffff;

    /* Typography */
    --ld-font-primary: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --ld-font-heading: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --ld-font-size-base: 16px;
    --ld-line-height-base: 1.75;

    /* Spacing */
    --ld-section-padding: 100px;
    --ld-container-width: 1200px;

    /* Borders & Radius */
    --ld-radius-sm: 6px;
    --ld-radius-md: 12px;
    --ld-radius-lg: 20px;
    --ld-radius-xl: 30px;
    --ld-radius-full: 50%;

    /* Shadows */
    --ld-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --ld-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --ld-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --ld-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --ld-shadow-primary: 0 10px 30px rgba(var(--ld-primary-rgb), 0.3);

    /* Transitions */
    --ld-transition-fast: 0.2s ease;
    --ld-transition-base: 0.3s ease;
    --ld-transition-slow: 0.5s ease;
    --ld-transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Reset & Base (Anti-Overlap & Safe Typography)
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

html {
    font-size: var(--ld-font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--ld-font-primary);
    font-size: 1rem;
    line-height: var(--ld-line-height-base);
    color: var(--ld-gray-800);
    background-color: var(--ld-white);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   Typography (Anti-Collision Line Heights)
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ld-font-heading);
    font-weight: 700;
    color: var(--ld-dark);
    margin-bottom: 0.6em;
    min-height: auto;
    word-break: normal;
    overflow-wrap: break-word;
}

h1 { font-size: 2.85rem; line-height: 1.3; }
h2 { font-size: 2.25rem; line-height: 1.35; }
h3 { font-size: 1.65rem; line-height: 1.4; }
h4 { font-size: 1.3rem; line-height: 1.45; }
h5 { font-size: 1.1rem; line-height: 1.5; }
h6 { font-size: 1rem; line-height: 1.5; }

p {
    margin-bottom: 1.15rem;
    color: var(--ld-gray-700);
    line-height: 1.85;
    word-break: normal;
    overflow-wrap: break-word;
}

a {
    color: var(--ld-primary);
    text-decoration: none;
    transition: color var(--ld-transition-fast);
}

a:hover {
    color: var(--ld-primary-dark);
}

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

ul, ol {
    list-style: none;
}

/* =========================================
   Utility Classes
   ========================================= */
.ld-container {
    width: 100%;
    max-width: var(--ld-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.ld-section {
    padding: var(--ld-section-padding) 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.ld-section--gray {
    background-color: var(--ld-gray-100);
}

.ld-section--dark {
    background-color: var(--ld-secondary);
    color: var(--ld-white);
}

.ld-section--gradient {
    background: linear-gradient(135deg, var(--ld-secondary) 0%, var(--ld-primary-dark) 100%);
    color: var(--ld-white);
}

.ld-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.ld-section-header .ld-subtitle {
    display: inline-block;
    color: var(--ld-primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    position: relative;
    padding: 0 20px;
}

.ld-section-header .ld-subtitle::before,
.ld-section-header .ld-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--ld-primary);
    transform: translateY(-50%);
}

.ld-section-header .ld-subtitle::before {
    right: -50px;
}

.ld-section-header .ld-subtitle::after {
    left: -50px;
}

.ld-section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.ld-section-header p {
    font-size: 1.125rem;
    color: var(--ld-gray-600);
    max-width: 650px;
    margin: 0 auto;
}

/* =========================================
   Buttons
   ========================================= */
.ld-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    font-family: var(--ld-font-primary);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--ld-radius-xl);
    cursor: pointer;
    transition: all var(--ld-transition-smooth);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.ld-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width var(--ld-transition-base);
    z-index: -1;
}

.ld-btn:hover::before {
    width: 100%;
}

.ld-btn--primary {
    background: linear-gradient(135deg, var(--ld-primary) 0%, var(--ld-accent) 100%);
    color: var(--ld-white);
    box-shadow: var(--ld-shadow-primary);
}

.ld-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(var(--ld-primary-rgb), 0.4);
    color: var(--ld-white);
}

.ld-btn--secondary {
    background: transparent;
    color: var(--ld-white);
    border-color: var(--ld-white);
}

.ld-btn--secondary:hover {
    background: var(--ld-white);
    color: var(--ld-primary);
    transform: translateY(-3px);
}

.ld-btn--outline {
    background: transparent;
    color: var(--ld-primary);
    border-color: var(--ld-primary);
}

.ld-btn--outline:hover {
    background: var(--ld-primary);
    color: var(--ld-white);
    transform: translateY(-3px);
}

.ld-btn--dark {
    background: var(--ld-secondary);
    color: var(--ld-white);
}

.ld-btn--dark:hover {
    background: var(--ld-secondary-dark);
    transform: translateY(-3px);
    color: var(--ld-white);
}

.ld-btn--sm {
    padding: 10px 24px;
    font-size: 0.875rem;
}

.ld-btn--lg {
    padding: 18px 48px;
    font-size: 1.125rem;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--ld-light);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--ld-dark);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress Core Alignment */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter { display: block; margin: 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }

.wp-caption {
    background: var(--ld-white);
    border: 1px solid var(--ld-gray-300);
    max-width: 100%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--ld-gray-600);
    padding: 5px;
}

.gallery-caption {
    display: block;
}

/* WordPress Block Editor */
.wp-block-button__link {
    background: var(--ld-primary);
    color: var(--ld-white);
    border-radius: var(--ld-radius-xl);
    padding: 12px 30px;
}

.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.has-text-align-left { text-align: left; }



