/*
Theme Name: Mada Clinic
Theme URI: https://madaclinic.com
Author: Mada Clinic Dev Team
Author URI: https://madaclinic.com
Description: Premium custom WordPress theme for Mada Clinic (مدى كلينك) — a luxury mental health and addiction treatment center in Jeddah, Saudi Arabia. Features minimal luxury medical design, RTL Arabic support, and optimized performance.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mada-clinic
Tags: custom-theme, rtl, medical, clinic, mental-health, jeddah, arabic
*/

/* ============================================
   MADA CLINIC — CSS Custom Properties
   ============================================ */
:root {
    /* Primary Colors */
    --mada-emerald: #0D6B4B;
    --mada-emerald-dark: #095A3E;
    --mada-emerald-light: #128F69;
    --mada-teal: #0A4F44;
    --mada-teal-dark: #073D33;
    --mada-teal-light: #0E6B5C;

    /* Secondary Colors */
    --mada-silver: #B0B8BF;
    --mada-silver-light: #D1D6DB;
    --mada-gray-light: #F0F2F4;
    --mada-gray: #E5E8EB;

    /* Background Colors */
    --mada-white: #FFFFFF;
    --mada-ivory: #FAFAF7;
    --mada-ivory-warm: #F7F6F2;

    /* Accent — Metallic Silver Gradient */
    --mada-metallic-start: #C0C0C0;
    --mada-metallic-end: #E8E8E8;

    /* Text Colors */
    --mada-text-primary: #1A1A1A;
    --mada-text-secondary: #4A4A4A;
    --mada-text-muted: #7A7A7A;
    --mada-text-light: #A0A0A0;
    --mada-text-on-emerald: #FFFFFF;
    --mada-text-on-teal: #FFFFFF;

    /* Typography */
    --mada-font-ar: 'Tajawal', 'Cairo', 'Noto Sans Arabic', sans-serif;
    --mada-font-en: 'Inter', 'Poppins', 'Noto Sans', sans-serif;
    --mada-font-heading-ar: 'Tajawal', sans-serif;
    --mada-font-body-ar: 'Tajawal', sans-serif;

    /* Font Sizes */
    --mada-fs-xs: 0.75rem;
    --mada-fs-sm: 0.875rem;
    --mada-fs-base: 1rem;
    --mada-fs-md: 1.125rem;
    --mada-fs-lg: 1.25rem;
    --mada-fs-xl: 1.5rem;
    --mada-fs-2xl: 2rem;
    --mada-fs-3xl: 2.5rem;
    --mada-fs-4xl: 3rem;
    --mada-fs-5xl: 3.5rem;
    --mada-fs-hero: 4rem;

    /* Spacing */
    --mada-space-xs: 0.25rem;
    --mada-space-sm: 0.5rem;
    --mada-space-md: 1rem;
    --mada-space-lg: 1.5rem;
    --mada-space-xl: 2rem;
    --mada-space-2xl: 3rem;
    --mada-space-3xl: 4rem;
    --mada-space-4xl: 6rem;
    --mada-space-5xl: 8rem;
    --mada-space-section: 6rem;

    /* Border Radius */
    --mada-radius-sm: 4px;
    --mada-radius-md: 8px;
    --mada-radius-lg: 12px;
    --mada-radius-xl: 16px;
    --mada-radius-2xl: 24px;
    --mada-radius-full: 9999px;

    /* Shadows */
    --mada-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --mada-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --mada-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --mada-shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.1);
    --mada-shadow-card: 0 2px 16px rgba(13, 107, 75, 0.06);
    --mada-shadow-hover: 0 8px 30px rgba(13, 107, 75, 0.12);

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

    /* Layout */
    --mada-container: 1200px;
    --mada-container-narrow: 900px;
    --mada-container-wide: 1400px;

    /* Header */
    --mada-header-height: 80px;
    --mada-header-height-scrolled: 64px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--mada-font-ar);
    font-size: var(--mada-fs-base);
    line-height: 1.8;
    color: var(--mada-text-primary);
    background-color: var(--mada-white);
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* RTL body class */
body.rtl {
    direction: rtl;
    text-align: right;
}

a {
    color: var(--mada-emerald);
    text-decoration: none;
    transition: color var(--mada-transition-fast);
}

a:hover {
    color: var(--mada-emerald-dark);
}

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

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.mada-container {
    max-width: var(--mada-container);
    margin: 0 auto;
    padding: 0 var(--mada-space-xl);
}

.mada-container--narrow {
    max-width: var(--mada-container-narrow);
}

.mada-container--wide {
    max-width: var(--mada-container-wide);
}

.mada-section {
    padding: var(--mada-space-section) 0;
}

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

.mada-section--ivory {
    background-color: var(--mada-ivory);
}

.mada-section--warm {
    background-color: var(--mada-ivory-warm);
}

.mada-text-center {
    text-align: center;
}

.mada-text-emerald {
    color: var(--mada-emerald);
}

.mada-text-muted {
    color: var(--mada-text-muted);
}

/* Section Headers */
.mada-section-header {
    text-align: center;
    margin-bottom: var(--mada-space-3xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.mada-section-label {
    display: inline-block;
    font-size: var(--mada-fs-sm);
    font-weight: 600;
    color: var(--mada-emerald);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--mada-space-md);
    padding: var(--mada-space-xs) var(--mada-space-md);
    background: rgba(13, 107, 75, 0.08);
    border-radius: var(--mada-radius-full);
}

.mada-section-title {
    font-family: var(--mada-font-heading-ar);
    font-size: var(--mada-fs-3xl);
    font-weight: 700;
    color: var(--mada-text-primary);
    line-height: 1.3;
    margin-bottom: var(--mada-space-lg);
}

.mada-section-desc {
    font-size: var(--mada-fs-md);
    color: var(--mada-text-secondary);
    line-height: 1.8;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--mada-font-heading-ar);
    font-weight: 700;
    line-height: 1.3;
    color: var(--mada-text-primary);
}

h1 { font-size: var(--mada-fs-hero); }
h2 { font-size: var(--mada-fs-3xl); }
h3 { font-size: var(--mada-fs-2xl); }
h4 { font-size: var(--mada-fs-xl); }
h5 { font-size: var(--mada-fs-lg); }
h6 { font-size: var(--mada-fs-md); }

p {
    margin-bottom: var(--mada-space-lg);
    line-height: 1.9;
    color: var(--mada-text-secondary);
}

/* ============================================
   BUTTONS
   ============================================ */
.mada-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--mada-space-sm);
    padding: 14px 32px;
    font-family: var(--mada-font-ar);
    font-size: var(--mada-fs-base);
    font-weight: 600;
    border-radius: var(--mada-radius-lg);
    cursor: pointer;
    transition: all var(--mada-transition-base);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.mada-btn--primary {
    background: var(--mada-emerald);
    color: var(--mada-text-on-emerald);
    box-shadow: 0 4px 16px rgba(13, 107, 75, 0.25);
}

.mada-btn--primary:hover {
    background: var(--mada-emerald-dark);
    color: var(--mada-text-on-emerald);
    box-shadow: 0 6px 24px rgba(13, 107, 75, 0.35);
    transform: translateY(-2px);
}

.mada-btn--secondary {
    background: transparent;
    color: var(--mada-emerald);
    border: 2px solid var(--mada-emerald);
}

.mada-btn--secondary:hover {
    background: var(--mada-emerald);
    color: var(--mada-text-on-emerald);
    transform: translateY(-2px);
}

.mada-btn--outline-white {
    background: transparent;
    color: var(--mada-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.mada-btn--outline-white:hover {
    background: var(--mada-white);
    color: var(--mada-emerald);
    border-color: var(--mada-white);
}

.mada-btn--whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.mada-btn--whatsapp:hover {
    background: #20BD5A;
    color: #fff;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

.mada-btn--lg {
    padding: 18px 40px;
    font-size: var(--mada-fs-md);
    border-radius: var(--mada-radius-xl);
}

.mada-btn--sm {
    padding: 10px 24px;
    font-size: var(--mada-fs-sm);
}

/* ============================================
   HEADER
   ============================================ */
.mada-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    height: var(--mada-header-height);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--mada-transition-base);
    border-bottom: 1px solid transparent;
}

.mada-header.scrolled {
    height: var(--mada-header-height-scrolled);
    background: rgba(255, 255, 255, 0.99);
    box-shadow: var(--mada-shadow-md);
    border-bottom: 1px solid var(--mada-gray);
}

.mada-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--mada-container-wide);
    margin: 0 auto;
    padding: 0 var(--mada-space-xl);
}

.mada-header__logo {
    display: flex;
    align-items: center;
    gap: var(--mada-space-sm);
    text-decoration: none;
    flex-shrink: 0;
}

.mada-header__logo img {
    height: 48px;
    width: auto;
    transition: height var(--mada-transition-base);
}

.mada-header.scrolled .mada-header__logo img {
    height: 40px;
}

.mada-header__logo-text {
    font-size: var(--mada-fs-xl);
    font-weight: 700;
    color: var(--mada-emerald);
    font-family: var(--mada-font-heading-ar);
}

.mada-header__nav {
    display: flex;
    align-items: center;
    gap: var(--mada-space-xs);
}

.mada-header__nav a {
    padding: 8px 18px;
    font-size: var(--mada-fs-sm);
    font-weight: 500;
    color: var(--mada-text-secondary);
    border-radius: var(--mada-radius-md);
    transition: all var(--mada-transition-fast);
    position: relative;
}

.mada-header__nav a:hover,
.mada-header__nav a.active {
    color: var(--mada-emerald);
    background: rgba(13, 107, 75, 0.06);
}

.mada-header__nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 20px;
    height: 2px;
    background: var(--mada-emerald);
    border-radius: 1px;
}

.mada-header__cta {
    display: flex;
    align-items: center;
    gap: var(--mada-space-md);
}

.mada-header__cta .mada-btn {
    padding: 10px 24px;
    font-size: var(--mada-fs-sm);
}

/* Mobile Menu Toggle */
.mada-header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mada-header__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--mada-text-primary);
    border-radius: 1px;
    transition: all var(--mada-transition-base);
}

.mada-header__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mada-header__toggle.active span:nth-child(2) {
    opacity: 0;
}

.mada-header__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.mada-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(160deg, var(--mada-teal-dark) 0%, var(--mada-emerald) 40%, var(--mada-emerald-light) 100%);
    padding-top: var(--mada-header-height);
}

.mada-hero__bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.mada-hero__wave {
    position: absolute;
    bottom: -2px;
    right: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.mada-hero__wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

.mada-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    padding: var(--mada-space-3xl) var(--mada-space-xl);
}

.mada-hero__logo-mark {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--mada-space-2xl);
    opacity: 0.9;
}

.mada-hero__logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.mada-hero__title {
    font-size: var(--mada-fs-hero);
    font-weight: 700;
    color: var(--mada-white);
    line-height: 1.2;
    margin-bottom: var(--mada-space-lg);
    letter-spacing: -0.01em;
}

.mada-hero__subtitle {
    font-size: var(--mada-fs-xl);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--mada-space-md);
    font-weight: 500;
}

.mada-hero__tagline {
    display: inline-flex;
    align-items: center;
    gap: var(--mada-space-md);
    font-size: var(--mada-fs-lg);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--mada-space-3xl);
    font-weight: 400;
}

.mada-hero__tagline span {
    letter-spacing: 0.15em;
}

.mada-hero__tagline .separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.mada-hero__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--mada-space-lg);
    flex-wrap: wrap;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.mada-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mada-space-xl);
}

.mada-service-card {
    background: var(--mada-white);
    border-radius: var(--mada-radius-xl);
    padding: var(--mada-space-2xl);
    box-shadow: var(--mada-shadow-card);
    border: 1px solid var(--mada-gray);
    transition: all var(--mada-transition-smooth);
    position: relative;
    overflow: hidden;
}

.mada-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mada-emerald), var(--mada-teal));
    opacity: 0;
    transition: opacity var(--mada-transition-base);
}

.mada-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mada-shadow-hover);
    border-color: rgba(13, 107, 75, 0.15);
}

.mada-service-card:hover::before {
    opacity: 1;
}

.mada-service-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--mada-radius-lg);
    background: rgba(13, 107, 75, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--mada-space-lg);
    color: var(--mada-emerald);
    font-size: 24px;
    transition: all var(--mada-transition-base);
}

.mada-service-card:hover .mada-service-card__icon {
    background: var(--mada-emerald);
    color: var(--mada-white);
}

.mada-service-card__title {
    font-size: var(--mada-fs-lg);
    font-weight: 700;
    color: var(--mada-text-primary);
    margin-bottom: var(--mada-space-md);
}

.mada-service-card__desc {
    font-size: var(--mada-fs-sm);
    color: var(--mada-text-muted);
    line-height: 1.8;
    margin-bottom: var(--mada-space-lg);
}

.mada-service-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--mada-space-sm);
    font-size: var(--mada-fs-sm);
    font-weight: 600;
    color: var(--mada-emerald);
    transition: gap var(--mada-transition-fast);
}

.mada-service-card__link:hover {
    gap: var(--mada-space-md);
    color: var(--mada-emerald-dark);
}

.mada-service-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--mada-transition-fast);
}

/* RTL arrow flip */
.rtl .mada-service-card__link svg {
    transform: scaleX(-1);
}

/* ============================================
   ABOUT PREVIEW SECTION
   ============================================ */
.mada-about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mada-space-4xl);
    align-items: center;
}

.mada-about-preview__image {
    border-radius: var(--mada-radius-2xl);
    overflow: hidden;
    box-shadow: var(--mada-shadow-lg);
    position: relative;
}

.mada-about-preview__image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--mada-radius-2xl);
    border: 1px solid rgba(13, 107, 75, 0.1);
    pointer-events: none;
}

.mada-about-preview__image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.mada-about-preview__content {
    padding: var(--mada-space-xl) 0;
}

.mada-about-preview__content .mada-section-label {
    margin-bottom: var(--mada-space-lg);
}

.mada-about-preview__title {
    font-size: var(--mada-fs-3xl);
    font-weight: 700;
    margin-bottom: var(--mada-space-xl);
    line-height: 1.3;
}

.mada-about-preview__text {
    font-size: var(--mada-fs-md);
    color: var(--mada-text-secondary);
    line-height: 1.9;
    margin-bottom: var(--mada-space-2xl);
}

.mada-values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mada-space-lg);
    margin-bottom: var(--mada-space-2xl);
}

.mada-value-item {
    display: flex;
    align-items: flex-start;
    gap: var(--mada-space-md);
}

.mada-value-item__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--mada-radius-md);
    background: rgba(13, 107, 75, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mada-emerald);
    font-size: 18px;
    flex-shrink: 0;
}

.mada-value-item__text h4 {
    font-size: var(--mada-fs-sm);
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--mada-text-primary);
}

.mada-value-item__text p {
    font-size: var(--mada-fs-xs);
    color: var(--mada-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   STATS / NUMBERS SECTION
   ============================================ */
.mada-stats {
    background: linear-gradient(135deg, var(--mada-teal-dark), var(--mada-emerald));
    padding: var(--mada-space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.mada-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.mada-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--mada-space-xl);
    position: relative;
    z-index: 1;
}

.mada-stat-item {
    text-align: center;
    padding: var(--mada-space-xl);
}

.mada-stat-item__number {
    font-size: var(--mada-fs-4xl);
    font-weight: 700;
    color: var(--mada-white);
    line-height: 1;
    margin-bottom: var(--mada-space-sm);
}

.mada-stat-item__label {
    font-size: var(--mada-fs-sm);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.mada-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mada-space-xl);
}

.mada-team-card {
    background: var(--mada-white);
    border-radius: var(--mada-radius-xl);
    overflow: hidden;
    box-shadow: var(--mada-shadow-card);
    border: 1px solid var(--mada-gray);
    transition: all var(--mada-transition-smooth);
}

.mada-team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mada-shadow-hover);
}

.mada-team-card__image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--mada-gray-light);
    position: relative;
}

.mada-team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--mada-transition-slow);
}

.mada-team-card:hover .mada-team-card__image img {
    transform: scale(1.05);
}

.mada-team-card__body {
    padding: var(--mada-space-xl);
    text-align: center;
}

.mada-team-card__name {
    font-size: var(--mada-fs-lg);
    font-weight: 700;
    color: var(--mada-text-primary);
    margin-bottom: var(--mada-space-xs);
}

.mada-team-card__specialty {
    font-size: var(--mada-fs-sm);
    color: var(--mada-emerald);
    font-weight: 500;
    margin-bottom: var(--mada-space-md);
}

.mada-team-card__bio {
    font-size: var(--mada-fs-sm);
    color: var(--mada-text-muted);
    line-height: 1.7;
    margin-bottom: var(--mada-space-lg);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.mada-testimonials {
    position: relative;
}

.mada-testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.mada-testimonial {
    text-align: center;
    padding: var(--mada-space-2xl);
}

.mada-testimonial__quote {
    font-size: var(--mada-fs-lg);
    color: var(--mada-text-secondary);
    line-height: 2;
    margin-bottom: var(--mada-space-xl);
    position: relative;
    font-style: italic;
}

.mada-testimonial__quote::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--mada-emerald);
    opacity: 0.15;
    position: absolute;
    top: -20px;
    right: -10px;
    font-style: normal;
    font-family: serif;
}

.rtl .mada-testimonial__quote::before {
    right: auto;
    left: -10px;
}

.mada-testimonial__author {
    font-weight: 700;
    color: var(--mada-text-primary);
    font-size: var(--mada-fs-base);
}

.mada-testimonial__role {
    font-size: var(--mada-fs-sm);
    color: var(--mada-text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.mada-cta {
    background: linear-gradient(135deg, var(--mada-teal-dark) 0%, var(--mada-emerald) 100%);
    padding: var(--mada-space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mada-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 50%, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.mada-cta__content {
    position: relative;
    z-index: 1;
}

.mada-cta__title {
    font-size: var(--mada-fs-3xl);
    font-weight: 700;
    color: var(--mada-white);
    margin-bottom: var(--mada-space-lg);
}

.mada-cta__desc {
    font-size: var(--mada-fs-md);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--mada-space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mada-cta__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--mada-space-lg);
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.mada-footer {
    background: var(--mada-teal-dark);
    color: rgba(255, 255, 255, 0.8);
    padding-top: var(--mada-space-4xl);
}

.mada-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--mada-space-3xl);
    padding-bottom: var(--mada-space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mada-footer__brand {
    max-width: 300px;
}

.mada-footer__logo {
    display: flex;
    align-items: center;
    gap: var(--mada-space-sm);
    margin-bottom: var(--mada-space-lg);
    text-decoration: none;
}

.mada-footer__logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.mada-footer__logo-text {
    font-size: var(--mada-fs-xl);
    font-weight: 700;
    color: var(--mada-white);
    font-family: var(--mada-font-heading-ar);
}

.mada-footer__desc {
    font-size: var(--mada-fs-sm);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--mada-space-xl);
}

.mada-footer__social {
    display: flex;
    gap: var(--mada-space-md);
}

.mada-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: var(--mada-radius-md);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    transition: all var(--mada-transition-fast);
}

.mada-footer__social a:hover {
    background: var(--mada-emerald);
    color: var(--mada-white);
}

.mada-footer__column h4 {
    font-size: var(--mada-fs-base);
    font-weight: 700;
    color: var(--mada-white);
    margin-bottom: var(--mada-space-lg);
}

.mada-footer__column ul li {
    margin-bottom: var(--mada-space-sm);
}

.mada-footer__column ul li a {
    font-size: var(--mada-fs-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--mada-transition-fast);
    padding: 4px 0;
    display: inline-block;
}

.mada-footer__column ul li a:hover {
    color: var(--mada-white);
    padding-right: 8px;
}

.rtl .mada-footer__column ul li a:hover {
    padding-right: 8px;
    padding-left: 0;
}

.mada-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--mada-space-md);
    margin-bottom: var(--mada-space-md);
}

.mada-footer__contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--mada-emerald-light);
    flex-shrink: 0;
    margin-top: 4px;
}

.mada-footer__contact-item span {
    font-size: var(--mada-fs-sm);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.mada-footer__contact-item a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--mada-transition-fast);
}

.mada-footer__contact-item a:hover {
    color: var(--mada-white);
}

.mada-footer__bottom {
    padding: var(--mada-space-xl) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mada-footer__copyright {
    font-size: var(--mada-fs-sm);
    color: rgba(255, 255, 255, 0.4);
}

.mada-footer__bottom-links {
    display: flex;
    gap: var(--mada-space-lg);
}

.mada-footer__bottom-links a {
    font-size: var(--mada-fs-sm);
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--mada-transition-fast);
}

.mada-footer__bottom-links a:hover {
    color: var(--mada-white);
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.mada-whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all var(--mada-transition-base);
    text-decoration: none;
    animation: mada-whatsapp-pulse 2s infinite;
}

.rtl .mada-whatsapp-float {
    left: auto;
    right: 30px;
}

.mada-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
    color: #fff;
}

.mada-whatsapp-float svg {
    width: 30px;
    height: 30px;
}

@keyframes mada-whatsapp-pulse {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

/* ============================================
   FORMS
   ============================================ */
.mada-form-group {
    margin-bottom: var(--mada-space-lg);
}

.mada-form-label {
    display: block;
    font-size: var(--mada-fs-sm);
    font-weight: 600;
    color: var(--mada-text-primary);
    margin-bottom: var(--mada-space-sm);
}

.mada-form-input,
.mada-form-select,
.mada-form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--mada-font-ar);
    font-size: var(--mada-fs-base);
    color: var(--mada-text-primary);
    background: var(--mada-white);
    border: 1.5px solid var(--mada-gray);
    border-radius: var(--mada-radius-lg);
    transition: all var(--mada-transition-fast);
}

.mada-form-input:focus,
.mada-form-select:focus,
.mada-form-textarea:focus {
    border-color: var(--mada-emerald);
    box-shadow: 0 0 0 3px rgba(13, 107, 75, 0.1);
}

.mada-form-input::placeholder,
.mada-form-textarea::placeholder {
    color: var(--mada-text-light);
}

.mada-form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237A7A7A' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
}

.rtl .mada-form-select {
    background-position: left 16px center;
    padding-left: 40px;
    padding-right: 18px;
}

.mada-form-textarea {
    min-height: 140px;
    resize: vertical;
}

.mada-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mada-space-lg);
}

/* ============================================
   BOOKING PAGE
   ============================================ */
.mada-booking {
    padding-top: calc(var(--mada-header-height) + var(--mada-space-3xl));
}

.mada-booking__header {
    text-align: center;
    margin-bottom: var(--mada-space-3xl);
}

.mada-booking__form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--mada-white);
    padding: var(--mada-space-3xl);
    border-radius: var(--mada-radius-2xl);
    box-shadow: var(--mada-shadow-lg);
    border: 1px solid var(--mada-gray);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.mada-contact {
    padding-top: calc(var(--mada-header-height) + var(--mada-space-3xl));
}

.mada-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mada-space-3xl);
}

.mada-contact__info {
    padding: var(--mada-space-xl) 0;
}

.mada-contact__info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--mada-space-lg);
    margin-bottom: var(--mada-space-xl);
    padding: var(--mada-space-lg);
    background: var(--mada-ivory);
    border-radius: var(--mada-radius-lg);
    transition: all var(--mada-transition-fast);
}

.mada-contact__info-item:hover {
    background: rgba(13, 107, 75, 0.05);
}

.mada-contact__info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--mada-radius-lg);
    background: rgba(13, 107, 75, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mada-emerald);
    font-size: 22px;
    flex-shrink: 0;
}

.mada-contact__info-label {
    font-size: var(--mada-fs-sm);
    color: var(--mada-text-muted);
    margin-bottom: 4px;
}

.mada-contact__info-value {
    font-size: var(--mada-fs-base);
    font-weight: 600;
    color: var(--mada-text-primary);
}

.mada-contact__info-value a {
    color: var(--mada-text-primary);
}

.mada-contact__info-value a:hover {
    color: var(--mada-emerald);
}

.mada-contact__map {
    border-radius: var(--mada-radius-2xl);
    overflow: hidden;
    box-shadow: var(--mada-shadow-md);
    height: 400px;
}

.mada-contact__map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.mada-contact__form {
    background: var(--mada-white);
    padding: var(--mada-space-3xl);
    border-radius: var(--mada-radius-2xl);
    box-shadow: var(--mada-shadow-lg);
    border: 1px solid var(--mada-gray);
}

.mada-contact__actions {
    display: flex;
    gap: var(--mada-space-md);
    margin-top: var(--mada-space-xl);
}

/* ============================================
   SERVICE DETAIL PAGE
   ============================================ */
.mada-service-detail {
    padding-top: calc(var(--mada-header-height) + var(--mada-space-3xl));
}

.mada-service-detail__hero {
    background: linear-gradient(135deg, var(--mada-teal-dark), var(--mada-emerald));
    padding: var(--mada-space-3xl) 0;
    color: var(--mada-white);
    text-align: center;
    border-radius: var(--mada-radius-2xl);
    margin-bottom: var(--mada-space-3xl);
}

.mada-service-detail__icon {
    width: 72px;
    height: 72px;
    border-radius: var(--mada-radius-xl);
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--mada-space-xl);
    font-size: 32px;
}

.mada-service-detail__hero h1 {
    color: var(--mada-white);
    font-size: var(--mada-fs-3xl);
    margin-bottom: var(--mada-space-md);
}

.mada-service-detail__hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--mada-fs-md);
    max-width: 600px;
    margin: 0 auto;
}

.mada-service-detail__content {
    max-width: var(--mada-container-narrow);
    margin: 0 auto;
}

.mada-service-detail__content h2 {
    font-size: var(--mada-fs-2xl);
    margin-bottom: var(--mada-space-lg);
    margin-top: var(--mada-space-2xl);
}

.mada-service-detail__content p {
    font-size: var(--mada-fs-md);
    line-height: 2;
    color: var(--mada-text-secondary);
}

.mada-service-detail__content ul {
    margin: var(--mada-space-lg) 0;
    padding-right: var(--mada-space-lg);
}

.mada-service-detail__content ul li {
    position: relative;
    padding-right: var(--mada-space-lg);
    margin-bottom: var(--mada-space-md);
    color: var(--mada-text-secondary);
    line-height: 1.8;
}

.mada-service-detail__content ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mada-emerald);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.mada-about {
    padding-top: calc(var(--mada-header-height) + var(--mada-space-3xl));
}

.mada-about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mada-space-3xl);
    align-items: center;
    margin-bottom: var(--mada-space-4xl);
}

.mada-about-hero__content h1 {
    font-size: var(--mada-fs-4xl);
    margin-bottom: var(--mada-space-xl);
}

.mada-about-hero__content p {
    font-size: var(--mada-fs-md);
    line-height: 2;
    color: var(--mada-text-secondary);
}

.mada-about-hero__image {
    border-radius: var(--mada-radius-2xl);
    overflow: hidden;
    box-shadow: var(--mada-shadow-lg);
}

.mada-about-hero__image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.mada-mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mada-space-xl);
    margin-bottom: var(--mada-space-4xl);
}

.mada-mission-card,
.mada-vision-card {
    padding: var(--mada-space-2xl);
    border-radius: var(--mada-radius-xl);
    background: var(--mada-white);
    box-shadow: var(--mada-shadow-card);
    border: 1px solid var(--mada-gray);
}

.mada-mission-card {
    border-top: 3px solid var(--mada-emerald);
}

.mada-vision-card {
    border-top: 3px solid var(--mada-teal);
}

.mada-mission-card h3,
.mada-vision-card h3 {
    font-size: var(--mada-fs-xl);
    margin-bottom: var(--mada-space-lg);
    display: flex;
    align-items: center;
    gap: var(--mada-space-md);
}

.mada-mission-card p,
.mada-vision-card p {
    color: var(--mada-text-secondary);
    line-height: 1.9;
}

.mada-values-section {
    text-align: center;
    margin-bottom: var(--mada-space-3xl);
}

.mada-values-grid-full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--mada-space-xl);
}

.mada-value-card {
    padding: var(--mada-space-2xl);
    background: var(--mada-white);
    border-radius: var(--mada-radius-xl);
    box-shadow: var(--mada-shadow-card);
    border: 1px solid var(--mada-gray);
    text-align: center;
    transition: all var(--mada-transition-smooth);
}

.mada-value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mada-shadow-hover);
}

.mada-value-card__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--mada-radius-xl);
    background: rgba(13, 107, 75, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--mada-space-lg);
    color: var(--mada-emerald);
    font-size: 28px;
}

.mada-value-card h4 {
    font-size: var(--mada-fs-base);
    font-weight: 700;
    margin-bottom: var(--mada-space-md);
}

.mada-value-card p {
    font-size: var(--mada-fs-sm);
    color: var(--mada-text-muted);
    line-height: 1.7;
}

/* ============================================
   TEAM PAGE
   ============================================ */
.mada-team-page {
    padding-top: calc(var(--mada-header-height) + var(--mada-space-3xl));
}

/* ============================================
   PAGE BANNER (Generic)
   ============================================ */
.mada-page-banner {
    background: linear-gradient(135deg, var(--mada-teal-dark), var(--mada-emerald));
    padding: var(--mada-space-3xl) 0;
    text-align: center;
    margin-bottom: var(--mada-space-3xl);
}

.mada-page-banner h1 {
    color: var(--mada-white);
    font-size: var(--mada-fs-3xl);
    margin-bottom: var(--mada-space-md);
}

.mada-page-banner p {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--mada-fs-md);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .mada-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .mada-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--mada-space-xl);
    }

    .mada-about-preview {
        grid-template-columns: 1fr;
        gap: var(--mada-space-2xl);
    }

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

    .mada-contact__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --mada-fs-hero: 2.5rem;
        --mada-fs-3xl: 2rem;
        --mada-fs-4xl: 2.5rem;
        --mada-space-section: 4rem;
    }

    .mada-header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--mada-white);
        flex-direction: column;
        align-items: stretch;
        padding: 100px var(--mada-space-xl) var(--mada-space-xl);
        box-shadow: var(--mada-shadow-xl);
        transition: right var(--mada-transition-base);
        z-index: 999;
        gap: 0;
    }

    .mada-header__nav.active {
        right: 0;
    }

    .mada-header__nav a {
        padding: 14px 18px;
        font-size: var(--mada-fs-base);
        border-bottom: 1px solid var(--mada-gray);
    }

    .mada-header__toggle {
        display: flex;
    }

    .mada-header__cta .mada-btn--secondary {
        display: none;
    }

    .mada-services-grid {
        grid-template-columns: 1fr;
    }

    .mada-team-grid {
        grid-template-columns: 1fr;
    }

    .mada-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mada-footer__grid {
        grid-template-columns: 1fr;
    }

    .mada-hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .mada-hero__buttons .mada-btn {
        width: 100%;
        justify-content: center;
    }

    .mada-about-hero {
        grid-template-columns: 1fr;
    }

    .mada-mission-vision {
        grid-template-columns: 1fr;
    }

    .mada-values-grid-full {
        grid-template-columns: 1fr;
    }

    .mada-form-row {
        grid-template-columns: 1fr;
    }

    .mada-footer__bottom {
        flex-direction: column;
        gap: var(--mada-space-md);
        text-align: center;
    }

    .mada-cta__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .mada-contact__actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    :root {
        --mada-fs-hero: 2rem;
        --mada-fs-3xl: 1.75rem;
        --mada-space-section: 3rem;
    }

    .mada-hero__tagline {
        flex-direction: column;
        gap: var(--mada-space-sm);
    }

    .mada-hero__tagline .separator {
        display: none;
    }

    .mada-stats-grid {
        grid-template-columns: 1fr;
    }

    .mada-booking__form,
    .mada-contact__form {
        padding: var(--mada-space-xl);
    }
}

/* ============================================
   MOBILE OVERLAY
   ============================================ */
.mada-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--mada-transition-base);
}

.mada-mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.mada-scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--mada-emerald);
    color: var(--mada-white);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--mada-shadow-md);
    cursor: pointer;
    transition: all var(--mada-transition-base);
    font-size: 18px;
    border: none;
}

.rtl .mada-scroll-top {
    left: auto;
    right: 30px;
}

.mada-whatsapp-float ~ .mada-scroll-top {
    bottom: 100px;
}

.mada-scroll-top:hover {
    background: var(--mada-emerald-dark);
    transform: translateY(-2px);
}

.mada-scroll-top.visible {
    display: flex;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.mada-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mada-fade-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.mada-fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.mada-fade-in.animated {
    opacity: 1;
}

/* Stagger delays for children */
.mada-stagger > *:nth-child(1) { transition-delay: 0.1s; }
.mada-stagger > *:nth-child(2) { transition-delay: 0.2s; }
.mada-stagger > *:nth-child(3) { transition-delay: 0.3s; }
.mada-stagger > *:nth-child(4) { transition-delay: 0.4s; }
.mada-stagger > *:nth-child(5) { transition-delay: 0.5s; }
.mada-stagger > *:nth-child(6) { transition-delay: 0.6s; }

/* ============================================
   LOADING / SKELETON
   ============================================ */
.mada-skeleton {
    background: linear-gradient(90deg, var(--mada-gray) 25%, var(--mada-gray-light) 50%, var(--mada-gray) 75%);
    background-size: 200% 100%;
    animation: mada-skeleton-loading 1.5s infinite;
    border-radius: var(--mada-radius-md);
}

@keyframes mada-skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
