/* --- الإعدادات العامة --- */
:root {
    --dark-blue: #0d2a4a; /* Original dark blue, kept for other sections */
    --light-blue: #1e4776; /* Original light blue, kept for other sections */
    --accent-orange: #e65a41;
    --accent-glow: #ffc506;
    --logo-main-blue: #2c9ed2; /* Original blue, kept for other sections */
    --logo-light-blue: #e0f2f7; /* Original light blue, kept for other sections */
    --text-color: #ffffff; /* Default white text */
    --font-family: 'Cairo', Tahoma, Arial, sans-serif;
    --gray-300: #d1d5db; /* Tailwind gray-300 equivalent */
    --black: #000000;
}

/* --- New: Global Typography --- */
body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--dark-blue);
    background-image: linear-gradient(180deg, #0d2a4a 0%, #12375f 52%, #0d2a4a 100%);
    background-attachment: fixed;
    color: var(--text-color);
    text-align: right; /* Keep RTL */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#main-content {
    min-height: 100vh;
    background: transparent;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

img, svg, video {
    max-width: 100%;
}

/* --- AOS Animation Styles --- */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}
[data-aos].aos-animate {
    opacity: 1;
}
[data-aos="fade-up"] {
    transform: translateY(50px);
}
[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}
[data-aos="fade-down"] {
    transform: translateY(-50px);
}
[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}
[data-aos="fade-left"] {
    transform: translateX(50px);
}
[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}
[data-aos="fade-right"] {
    transform: translateX(-50px);
}
[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}
[data-aos="zoom-in"] {
    transform: scale(0.8);
}
[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}
[data-aos="flip-left"] {
    transform: rotateY(90deg);
}
[data-aos="flip-left"].aos-animate {
    transform: rotateY(0);
}

/* --- New: Professional Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(44, 158, 210, 0.5); }
    50% { box-shadow: 0 0 20px rgba(44, 158, 210, 0.8), 0 0 30px rgba(44, 158, 210, 0.4); }
}
@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes border-dance {
    0% { border-color: var(--logo-main-blue); }
    33% { border-color: var(--accent-glow); }
    66% { border-color: var(--accent-orange); }
    100% { border-color: var(--logo-main-blue); }
}

/* --- Enhanced: Card Hover Effects --- */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.service-card:hover::after {
    transform: translateX(100%);
}

/* --- New: Liquid Glass CSS --- */
.liquid-glass {
  background: rgba(0, 0, 0, 0.4);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.1) 80%, rgba(255,255,255,0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* --- New: Hero Video Background --- */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
    object-fit: cover;
    z-index: 1; /* Below header and main content */
}

/* --- New: Accessibility - Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    /* Disable specific hero animations if reduced motion is preferred */
    .hero-heading .char-span {
        opacity: 1 !important;
        transform: translateX(0) !important;
        transition: none !important;
    }
    .hero-subheading, .hero-buttons, .hero-tag-container {
        opacity: 1 !important;
        transition: none !important;
    }
    .hero-video-background { /* Ensure video is visible immediately */
        opacity: 1 !important;
    }
}

/* --- Enhanced: Button Effects --- */
.cta-button, .ripple-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease, box-shadow 0.3s ease;
}
.cta-button::before, .ripple-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.cta-button:hover::before, .ripple-btn:hover::before {
    width: 300px;
    height: 300px;
}
.cta-button:hover, .ripple-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(44, 158, 210, 0.4);
}

/* --- New: Navbar Styles (based on Tailwind classes) --- */
header {
    background: none; /* Remove previous header background */
    backdrop-filter: none; /* Remove previous backdrop filter */
    position: fixed; /* Make it fixed to stay on top of video */
    width: 100%;
    top: 0;
    left: 0;
    box-sizing: border-box; /* Include padding in width */
}
header .liquid-glass {
    border-radius: 0.75rem; /* rounded-xl */
    padding: 0.5rem 1rem; /* px-4 py-2 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%; /* Ensure it fits within padding */
    margin: 0 auto; /* Center the liquid glass bar */
}
header a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}
header a.text-2xl { /* Logo text */
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600; /* font-semibold */
    letter-spacing: -0.025em; /* tracking-tight */
}
header nav {
    display: none; /* hidden */
    gap: 2rem; /* gap-8 */
    font-size: 0.875rem; /* text-sm */
}
@media (min-width: 768px) { /* md+ */
    header nav {
        display: flex;
    }
}
header nav a:hover {
    color: var(--gray-300); /* hover:text-gray-300 */
}
header .cta-button { /* Start a Chat button */
    background-color: var(--text-color); /* bg-white */
    color: var(--black); /* text-black */
    padding: 0.5rem 1.5rem; /* px-6 py-2 */
    border-radius: 0.5rem; /* rounded-lg */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    transition: background-color 0.3s;
}
header .cta-button:hover {
    background-color: #f3f4f6; /* hover:bg-gray-100 */
}

/* --- New: Hero Content Styles --- */
main {
    min-height: calc(100vh - 88px);
    height: auto;
    display: block;
    padding-bottom: 0;
    box-sizing: border-box;
    position: relative; /* For z-index */
    z-index: 2; /* Above video background */
}
@media (min-width: 1024px) { /* lg */
    main {
        padding-bottom: 0;
    }
}

/* Left Column - Main content */
.hero-heading {
    color: var(--text-color);
    font-weight: normal;
    margin-bottom: 1rem; /* mb-4 */
    line-height: 1.2; /* Adjust for better readability */
}
.hero-heading .char-span { /* For character animation */
    display: inline-block;
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity 500ms ease-out, transform 500ms ease-out;
}
.hero-heading .char-span.animate {
    opacity: 1;
    transform: translateX(0);
}

.hero-subheading {
    color: var(--gray-300);
    margin-bottom: 1.25rem; /* mb-5 */
    opacity: 0; /* Initial state for fade-in */
    transition: opacity 1000ms ease-out; /* Default transition for fade-in */
}
.hero-subheading.animate {
    opacity: 1;
}

.hero-buttons { /* Wrapper for buttons */
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* gap-4 */
    opacity: 0; /* Initial state for fade-in */
    transition: opacity 1000ms ease-out; /* Default transition for fade-in */
}
.hero-buttons.animate {
    opacity: 1;
}

.hero-buttons .bg-white { /* Start a Chat button */
    background-color: var(--text-color); /* bg-white */
    color: var(--black); /* text-black */
    padding: 0.75rem 2rem; /* px-8 py-3 */
    border-radius: 0.5rem; /* rounded-lg */
    font-weight: 500; /* font-medium */
    transition: background-color 0.3s;
}
.hero-buttons .bg-white:hover {
    background-color: #f3f4f6; /* hover:bg-gray-100 */
}

.hero-buttons .liquid-glass { /* Explore Now button */
    border: 1px solid rgba(255, 255, 255, 0.2); /* border border-white/20 */
    color: var(--text-color); /* text-white */
    padding: 0.75rem 2rem; /* px-8 py-3 */
    border-radius: 0.5rem; /* rounded-lg */
    font-weight: 500; /* font-medium */
    transition: background-color 0.3s, color 0.3s;
}
.hero-buttons .liquid-glass:hover {
    background-color: var(--text-color); /* hover:bg-white */
    color: var(--black); /* hover:text-black */
}

/* Right Column - Tag */
.hero-tag-container {
    display: flex;
    align-items: flex-end; /* items-end */
    justify-content: flex-start; /* justify-start */
    opacity: 0; /* Initial state for fade-in */
    transition: opacity 1000ms ease-out; /* Default transition for fade-in */
}
.hero-tag-container.animate {
    opacity: 1;
}
@media (min-width: 1024px) { /* lg */
    .hero-tag-container {
        justify-content: flex-end; /* lg:justify-end */
    }
}
.hero-tag-container .liquid-glass {
    border: 1px solid rgba(255, 255, 255, 0.2); /* border border-white/20 */
    padding: 0.75rem 1.5rem; /* px-6 py-3 */
    border-radius: 0.75rem; /* rounded-xl */
}
.hero-tag-container p {
    font-size: 1.125rem; /* text-lg */
    font-weight: 300; /* font-light */
    color: var(--text-color);
}
@media (min-width: 768px) { /* md */
    .hero-tag-container p {
        font-size: 1.25rem; /* md:text-xl */
    }
}
@media (min-width: 1024px) { /* lg */
    .hero-tag-container p {
        font-size: 1.5rem; /* lg:text-2xl */
    }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
/* The original header styles below are now largely overridden by the new hero header styles.
   Keeping them here for other pages if they use the old header structure. */
/* header {
    background: rgba(13, 42, 74, 0.8);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
} */
/* header .container { display: flex; justify-content: space-between; align-items: center; } */

.logo {
    height: 110px;
    transition: height 0.6s ease-out;
}

nav a { color: var(--text-color); text-decoration: none; margin: 0 15px; font-weight: bold; transition: color 0.3s; }
nav a:hover { color: var(--logo-main-blue); }
.cta-button { background-color: var(--logo-main-blue); color: var(--text-color); padding: 10px 20px; border-radius: 25px; text-decoration: none; font-weight: bold; transition: background-color 0.3s; }
.cta-button:hover { background-color: #38b1e4; }
.hidden { display: none; }

/* --- أقسام الصفحة الرئيسية المطورة --- */
.intro-section {
    padding: 55px 20px 20px;
}
.intro-copy {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}
.eyebrow {
    display: inline-block;
    color: var(--accent-glow);
    font-weight: bold;
    margin-bottom: 10px;
}
.intro-copy h1,
.section-heading h2,
.coverage-layout h2 {
    margin: 0;
    color: var(--logo-light-blue);
    font-size: 2.4em;
    line-height: 1.35;
}
.intro-copy p,
.coverage-layout p {
    color: #dbe8f5;
    font-size: 1.1em;
    line-height: 1.9;
    margin: 18px auto 0;
    max-width: 760px;
}
.intro-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}
.outline-button {
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 25px;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
.outline-button:hover {
    border-color: var(--accent-glow);
    color: var(--accent-glow);
    transform: translateY(-3px);
}
.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 38px;
}
.trust-strip div,
.value-card,
.process-step,
.faq-list details {
    background: rgba(30, 71, 118, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.trust-strip div {
    padding: 18px;
    text-align: center;
}
.trust-strip strong,
.trust-strip span {
    display: block;
}
.trust-strip strong {
    color: var(--logo-light-blue);
    font-size: 1.1em;
}
.trust-strip span {
    color: #c9d7e6;
    margin-top: 6px;
    font-size: 0.92em;
}
.section-band {
    background: rgba(7, 24, 43, 0.32);
    padding: 60px 0;
    margin-top: 30px;
}
.section-heading {
    text-align: center;
    margin-bottom: 34px;
}
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.value-card {
    padding: 24px;
    min-height: 210px;
}
.value-card span {
    color: var(--accent-glow);
    font-weight: bold;
    font-size: 1.6em;
}
.value-card h3,
.process-step strong {
    color: var(--logo-light-blue);
    margin: 12px 0 8px;
    font-size: 1.25em;
}
.value-card p,
.process-step p,
.faq-list p {
    color: #d3deea;
    line-height: 1.75;
    margin: 0;
}
.process-section,
.faq-section {
    padding: 60px 20px 20px;
}
.process-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    position: relative;
    padding-top: 32px;
}
.process-step {
    position: relative;
    display: flex;
    min-height: 180px;
    padding: 42px 26px 26px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    border-color: rgba(44, 158, 210, 0.28);
    background: linear-gradient(180deg, rgba(34, 83, 132, 0.92), rgba(27, 68, 110, 0.88));
}
.process-step::before {
    display: none;
}
.process-number {
    position: absolute;
    top: -32px;
    left: 50%;
    z-index: 1;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    transform: translateX(-50%);
    border: 3px solid var(--accent-glow);
    border-radius: 50%;
    color: #0d2a4a;
    background: var(--accent-glow);
    box-shadow: 0 0 0 7px #12375f, 0 8px 20px rgba(0, 0, 0, 0.25);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}
.process-step strong {
    display: block;
    margin: 8px 0 10px;
    font-size: 1.28rem;
    line-height: 1.45;
}
.process-step p {
    max-width: 330px;
    font-size: 0.98rem;
}
.coverage-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.coverage-layout p {
    margin-right: 0;
}
.faq-list {
    max-width: 850px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}
.faq-list details {
    padding: 18px 22px;
}
.faq-list summary {
    cursor: pointer;
    color: var(--logo-light-blue);
    font-weight: bold;
    font-size: 1.1em;
}
.faq-list p {
    margin-top: 12px;
}

/* --- قسم الخدمات --- */
#services { padding: 50px 0; background-color: var(--dark-blue); } /* Ensure background for sections below hero */
#services h2 { text-align: center; font-size: 2.5em; margin-bottom: 40px; }
#all-services-grid + h1, body > main > section#services > h1 {
    text-align: center; font-size: 2.8em; margin-bottom: 40px; color: var(--logo-light-blue);
}
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px; }
.service-card { --border-size: 3px; --border-angle: 0turn; background: var(--light-blue); position: relative; border-radius: 15px; display: flex; flex-direction: column; }
.service-card::before { content: ''; position: absolute; z-index: -1; top: calc(-1 * var(--border-size)); left: calc(-1 * var(--border-size)); width: calc(100% + var(--border-size) * 2); height: calc(100% + var(--border-size) * 2); background: conic-gradient(from var(--border-angle), var(--dark-blue), var(--dark-blue) 50%, var(--logo-main-blue) 50%, var(--logo-main-blue)); background-size: 200% 200%; border-radius: 18px; animation: spin 5s linear infinite; }
@keyframes spin { to { --border-angle: 1turn; } }
.service-card:hover::before { animation-play-state: paused; }
.service-card-content { padding: 30px 20px 20px; text-align: center; width: 100%; box-sizing: border-box; flex-grow: 1; display: flex; flex-direction: column; }

.service-card-content img { 
    height: 60px; 
    margin: 0 auto 15px; 
    filter: brightness(0) invert(1); 
}

.service-card-content h3 { margin: 0; font-size: 1.6em; }
.service-card-content p { color: #ccc; margin: 10px 0 25px; font-size: 0.9em; min-height: 2.7em; flex-grow: 1; }

/* --- 
  تنسيق الزر الجديد 
  (Ripple Button)
--- */
button.ripple-btn {
    position: relative;
    display: inline-block;
    width: 90%;
    max-width: 250px; 
    padding: 12px 20px;
    margin: 0 auto 20px; 
    font-family: var(--font-family);
    font-size: 1em;
    font-weight: bold;
    color: var(--text-color);
    background-color: var(--logo-main-blue); 
    border: none;
    border-radius: 25px; 
    cursor: pointer;
    overflow: hidden; 
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    text-align: center;
    z-index: 1;
}

button.ripple-btn:hover {
    background-color: #38b1e4; 
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* تنسيق الزر داخل الفورم (Modal) */
.booking-form button.ripple-btn {
    width: 100%; 
    max-width: 350px;
}

/* تنسيق أزرار الخصم */
button.ripple-btn.discount-btn {
    background-color: var(--accent-orange);
}
button.ripple-btn.discount-btn:hover {
    background-color: #d94a30; 
}

/* تنسيق تأثير التموج */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5); 
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
    pointer-events: none; 
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
/* --- نهاية تنسيق الزر الجديد --- */


/* --- النافذة المنبثقة (Modal) --- */
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.8); 
    display: none; 
    justify-content: center; 
    align-items: center; 
    z-index: 200; 
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-content { 
    background: var(--light-blue); 
    padding: 30px; 
    border-radius: 15px; 
    width: 90%; 
    max-width: 500px; 
    position: relative; 
    animation: slideIn 0.5s forwards, scaleIn 0.4s ease-out; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}
@keyframes scaleIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}
.close-button {
    position: absolute; 
    top: 15px; 
    left: 20px; 
    font-size: 2em; 
    cursor: pointer; 
    color: #fff; 
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    border: none; /* Remove default button border */
    background: rgba(255, 255, 255, 0.1); /* Ensure background is set */
    color: #fff; /* Ensure color is set */
    justify-content: center;
}
.close-button:hover {
    background: var(--accent-orange);
    transform: rotate(90deg);
}
.calculator-form { display: flex; flex-direction: column; align-items: center; gap: 15px; width: 100%; }
.calculator-form h3 { text-align: center; font-size: 1.8em; margin: 0 0 10px 0; }
.price-display { text-align: center; margin: 10px 0; padding: 15px; background: rgba(0,0,0,0.2); border-radius: 10px; width: 100%; box-sizing: border-box;}
.price-display h4 { margin: 0; font-size: 1.2em; }
.price-display p { font-size: 0.8em; opacity: 0.7; margin-top: 5px; }
.booking-form { display: flex; flex-direction: column; align-items: center; gap: 15px; width: 100%; overflow: hidden; transition: max-height 0.7s ease-in-out, opacity 0.5s ease-in-out; }
.booking-form.hidden { max-height: 0; opacity: 0; }
.booking-form h4 { text-align: center; font-size: 1.8em; margin: 0 0 10px 0; }
hr { width: 100%; border: 0; height: 1px; background: rgba(255,255,255,0.2); margin: 30px 0; transition: opacity 0.5s; }
hr.hidden { opacity: 0; }
.input-group { width: 100%; max-width: 350px; }
.input-label { display: block; margin-right: 10px; margin-bottom: 5px; color: #ddd; font-size: 0.9em; font-weight: bold; }
.input-field { 
    width: 100%; 
    padding: 12px 15px; 
    background: rgba(0, 0, 0, 0.25); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 10px; 
    color: #fff; 
    font-family: var(--font-family); 
    font-size: 1em; 
    box-sizing: border-box; 
    transition: all 0.3s ease; 
    text-align: right; 
}
.input-field:hover {
    border-color: rgba(44, 158, 210, 0.5);
    background: rgba(0, 0, 0, 0.3);
}
.input-field:focus { 
    outline: none; 
    border-color: var(--logo-main-blue); 
    box-shadow: 0 0 15px rgba(44, 158, 210, 0.5); 
    background: rgba(0, 0, 0, 0.35);
}

/* --- زر التواصل العائم --- */
.contact-fab {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    direction: rtl;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.contact-fab-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: min(290px, calc(100vw - 28px));
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(8, 31, 55, 0.96);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}
.contact-fab.is-open .contact-fab-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.contact-fab-heading {
    margin: 0 4px 9px;
    color: #dcecf6;
    font-size: 0.82rem;
    font-weight: 700;
}
.contact-fab-menu ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.contact-option {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.055);
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.contact-option:hover { background: rgba(255, 255, 255, 0.11); transform: translateX(-2px); }
.contact-option.whatsapp {
    border-color: rgba(37, 211, 102, 0.38);
    background: rgba(37, 211, 102, 0.14);
}
.contact-option.whatsapp:hover { background: rgba(37, 211, 102, 0.22); }
.contact-option img {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 5px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.09);
}
.contact-option span { display: grid; gap: 1px; min-width: 0; }
.contact-option strong { font-size: 0.93rem; line-height: 1.5; }
.contact-option small { color: #c8d7e4; font-size: 0.72rem; line-height: 1.5; }
.contact-fab-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 142px;
    min-height: 54px;
    padding: 10px 17px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #06243a;
    background: #68c8ec;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    font: 700 0.94rem/1 var(--font-family);
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.contact-fab-toggle:hover { background: #85d7f2; transform: translateY(-2px); box-shadow: 0 13px 32px rgba(0, 0, 0, 0.34); }
.contact-fab-toggle svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.18s ease;
}
.contact-fab.is-open .contact-fab-toggle svg { transform: rotate(-8deg) scale(1.05); }
.contact-fab-toggle:focus-visible,
.contact-option:focus-visible {
    outline: 3px solid var(--accent-glow);
    outline-offset: 3px;
}
body.modal-open .contact-fab {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

/* --- الفوتر (Footer) --- */
footer {
    background-color: var(--dark-blue);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
    color: #bbb;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--logo-main-blue), transparent);
    animation: shimmer 3s ease-in-out infinite;
}
footer a { color: var(--logo-main-blue); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--accent-glow); }

/* --- زر المزيد من الخدمات --- */
.more-services-btn {
    display: inline-block;
    padding: 12px 25px;
}

/* --- كود خاص بصفحة "من نحن" --- */
.about-page-content .about-logo {
    display: block; margin-left: auto; margin-right: auto;
    border-radius: 15px; box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.animated-logo {
    animation: growIn 0.8s ease-out forwards;
    transform: scale(0.5); opacity: 0;
}
@keyframes growIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* --- قسم التجاوب مع الجوال (Mobile Responsiveness) --- */
@media (max-width: 768px) {
    header .container { flex-wrap: wrap; justify-content: center; }
    .logo { height: 75px !important; } 
    nav { margin-top: 10px; }
    nav a { margin: 0 10px; font-size: 0.9em;}
    .cta-button { margin-top: 10px; font-size: 0.9em; padding: 8px 15px;}
    .wrapper { height: 350px; }
    
    .inner { 
        --w: 130px; 
        --h: 240px; 
        --translateZ: calc((var(--w) + var(--h)) / 1.5); 
        top: 10%;
    }

    .intro-section {
        padding-top: 36px;
    }
    .intro-copy h1,
    .section-heading h2,
    .coverage-layout h2 {
        font-size: 1.85em;
    }
    .intro-copy p,
    .coverage-layout p {
        font-size: 0.98em;
        line-height: 1.75;
    }
    .trust-strip,
    .value-grid,
    .process-list {
        grid-template-columns: 1fr;
    }
    .process-list {
        gap: 18px;
        margin: 0 14px;
        padding: 0;
    }
    .process-step {
        min-height: 132px;
        margin-right: 62px;
        padding: 20px;
        align-items: flex-start;
        justify-content: center;
        text-align: right;
    }
    .process-number {
        top: 50%;
        right: -62px;
        left: auto;
        width: 48px;
        height: 48px;
        transform: translateY(-50%);
        border-width: 2px;
        box-shadow: 0 0 0 5px #12375f, 0 7px 16px rgba(0, 0, 0, 0.22);
        font-size: 1rem;
    }
    .process-step strong {
        margin: 0 0 6px;
        font-size: 1.1rem;
    }
    .section-band,
    .process-section,
    .faq-section {
        padding: 42px 0 10px;
    }
    .value-card {
        min-height: auto;
        padding: 20px;
    }
    .coverage-layout {
        align-items: flex-start;
        flex-direction: column;
    }
    .faq-list details {
        padding: 16px;
    }

    #all-services-grid + h1, body > main > section#services > h1 { font-size: 2.2em; }
    #services h2 { font-size: 2em; } 
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 10px; }
    .service-card { padding: 8px; border-radius: 10px; }
     .service-card::before { border-radius: 13px; }
    .service-card-content { padding: 10px 8px; }
    
    .service-card-content img {
        height: 40px;
        margin-bottom: 5px;
    }

    .service-card-content h3 { font-size: 1em; margin-bottom: 3px; }
    .service-card-content p { font-size: 0.65em; margin-bottom: 10px; line-height: 1.3; }
    
    /* --- تعديل: زر الريبل على الجوال --- */
    button.ripple-btn {
        width: 100%; 
        padding: 10px;
        font-size: 0.8em;
        margin-bottom: 5px; 
    }

    .more-services-btn { font-size: 0.9em; padding: 10px 20px; }
    .modal-content { padding: 20px; max-height: 85vh; overflow-y: auto; }
    .calculator-form h3, .booking-form h4 { font-size: 1.5em; }
    .input-group { max-width: 90%; }
    .price-display h4 { font-size: 1.1em; }
    .booking-form { gap: 10px; }
    footer { margin-top: 30px; padding: 15px 0; font-size: 0.8em;}
    .social-card { bottom: 15px; right: 15px; }
    .social-card ul { padding: 0.6rem; gap: 0.8rem; }
    .svg, img.svg { height: 30px; width: 30px; padding: 0.5rem; }
    .iso-pro span { height: 30px; width: 30px; top: 50%; left: 50%; }
    .text { display: none; }
    .iso-pro:hover a > .svg, .iso-pro:hover a > img.svg { transform: none; }
    .iso-pro:hover span { opacity: 0; }
    
    .about-page-content h1 { font-size: 2.2em; }
    .about-page-content .about-logo { max-width: 200px; }
    .about-page-content p { font-size: 1em; line-height: 1.7; }
    .about-page-content h2 { font-size: 1.6em; }
}

/* --- تنسيقات لصفحة اتصل بنا --- */
.contact-page { padding: 50px 20px; text-align: center; }
.contact-page h1 { font-size: 2.8em; margin-bottom: 40px; color: var(--logo-light-blue); }
.contact-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.contact-method {
    background-color: var(--light-blue); padding: 25px; border-radius: 15px;
    width: 250px; text-align: center; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}
.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}
.contact-method:hover::before {
    left: 100%;
}
.contact-method:hover { 
    transform: translateY(-10px) scale(1.02); 
    box-shadow: 0 15px 40px rgba(44, 158, 210, 0.3);
}
.contact-method svg, .contact-method img { 
    width: 50px; 
    height: 50px; 
    margin-bottom: 15px; 
    transition: transform 0.3s ease;
}
.contact-method:hover svg, 
.contact-method:hover img { 
    transform: scale(1.2) rotate(5deg); 
}
.contact-method h3 { margin-top: 0; margin-bottom: 10px; font-size: 1.3em; }
.contact-method p { margin: 0; font-size: 1em; color: #eee; word-wrap: break-word; }
.contact-method a { color: inherit; text-decoration: none; display: block; }
@media (max-width: 768px) {
    .contact-page h1 { font-size: 2.2em; }
    .contact-method { width: 80%; }
}

/* --- أزرار الكاروسيل --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(44, 158, 210, 0.7);
    border: none;
    color: white;
    font-size: 24px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 45px;
    user-select: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.carousel-btn:hover {
    background-color: rgba(56, 177, 228, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(44, 158, 210, 0.5);
}
.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}
.prev-btn {
    left: 20px;
    padding-right: 3px;
}
.next-btn {
    right: 20px;
    padding-left: 3px;
}
@media (max-width: 768px) {
    .carousel-btn {
        display: none;
    }
}

/* --- تنسيق الكروت المميزة (مكيفات) --- */
.service-card.featured {
    background: var(--logo-main-blue);
    border: 2px solid var(--accent-glow);
    box-shadow: 0 0 20px rgba(255, 197, 6, 0.5);
}
.service-card.featured::before {
    display: none;
}
/* --- تعديل: الزر داخل الكرت المميز --- */
.service-card.featured .ripple-btn {
    background-color: var(--light-blue); 
    color: var(--text-color);
}
.service-card.featured .ripple-btn:hover {
    background-color: #3a73b1; 
}


/* --- تنسيق شارة الخصم (للمساجد) --- */
.discount-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background-color: var(--accent-orange);
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 10px;
    transform: rotate(-15deg);
    z-index: 5;
    animation: pulse 1.5s infinite, glow 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(230, 90, 65, 0.5);
}
@keyframes pulse {
    0% { transform: rotate(-15deg) scale(1); }
    50% { transform: rotate(-15deg) scale(1.1); }
    100% { transform: rotate(-15deg) scale(1); }
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 15px rgba(230, 90, 65, 0.5); }
    50% { box-shadow: 0 0 30px rgba(230, 90, 65, 0.8), 0 0 40px rgba(230, 90, 65, 0.4); }
}
/* --- تعديل: زر الخصم --- */
.service-card .ripple-btn.discount-btn {
    background: var(--accent-orange);
}
.service-card .ripple-btn.discount-btn:hover {
    background: #d94a30;
}

/* --- New: Spinner for Form Submission --- */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    width: 1em;
    height: 1em;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.5em;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- تحسينات المرحلة الأولى: الهيدر، الجوال، الحجز --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 180;
    width: 100%;
    background: rgba(13, 42, 74, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
[data-aos] { opacity: 1; }
.wrapper {
    position: relative;
    width: 100%;
    height: clamp(340px, 48vw, 500px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}
.inner {
    --w: 190px;
    --h: 340px;
    --perspective: 1100px;
    --rotateX: -7deg;
    --translateZ: 330px;
    position: relative;
    width: var(--w);
    height: var(--h);
    flex: 0 0 auto;
    transform-style: preserve-3d;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}
.inner .card {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 16px;
    background: var(--light-blue);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
    transform: rotateY(calc(var(--index) * 60deg)) translateZ(var(--translateZ));
    backface-visibility: hidden;
}
.inner .card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.header-inner {
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.brand-link {
    display: block;
    flex: 0 0 125px;
    width: 125px;
    height: 118px;
    overflow: hidden;
}
.logo {
    display: block;
    width: 125px;
    max-width: none;
    height: auto;
    object-fit: contain;
    transform: translateY(-35px);
    transition: width 0.2s ease, transform 0.2s ease;
}
.header-inner #primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
}
.header-inner #primary-nav a { margin: 0; padding: 10px 12px; border-radius: 9px; }
.header-inner #primary-nav a:hover,
.header-inner #primary-nav a:focus-visible {
    color: var(--logo-light-blue);
    background: rgba(255, 255, 255, 0.08);
}
.header-booking-button {
    flex: 0 0 auto;
    border: 0;
    cursor: pointer;
    font-family: var(--font-family);
    white-space: nowrap;
}
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.service-card, .contact-method, .cta-button, .ripple-btn { transition-duration: 0.2s; }
.service-card:hover, .contact-method:hover, .cta-button:hover, .ripple-btn:hover { transform: translateY(-3px); }
.service-card::before { animation: none; background: var(--logo-main-blue); }
.service-card::after, .contact-method::before, .cta-button::before, .ripple-btn::before { display: none; }
.animated-logo, .discount-badge { animation: none; }

.modal-overlay.is-open { display: flex; }
.modal-content {
    max-height: min(90vh, 820px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.booking-form { max-height: none; }
.booking-form form { width: 100%; }
.booking-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}
.booking-fields .input-group { max-width: none; }
.booking-fields .full-width { grid-column: 1 / -1; }
.required-mark, .field-error { color: #ffd3cc; }
.input-field[aria-invalid="true"] {
    border-color: #ff8a78;
    box-shadow: 0 0 0 3px rgba(255, 138, 120, 0.14);
}
.field-error {
    min-height: 1.35em;
    margin: 5px 8px 0 0;
    font-size: 0.8rem;
    line-height: 1.35;
}
textarea.input-field { min-height: 92px; resize: vertical; }
select.input-field { appearance: auto; }
.form-note { color: #c9d7e6; font-size: 0.78rem; line-height: 1.6; }
.booking-actions {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.booking-actions .ripple-btn { margin: 0; }
.whatsapp-fallback, .whatsapp-followup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 24px;
    color: #fff;
    background: #168b46;
    text-decoration: none;
    font-weight: 700;
}
.form-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; line-height: 1.65; }
.form-status:empty { display: none; }
.form-status.error {
    color: #fff2ef;
    background: rgba(185, 48, 28, 0.38);
    border: 1px solid rgba(255, 138, 120, 0.5);
}
.booking-success { text-align: center; }
.booking-success h3 { margin: 0 0 10px; color: #9be7b3; }
.order-number {
    display: inline-block;
    margin: 6px 0 18px;
    padding: 8px 14px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.24);
    color: var(--accent-glow);
    font-size: 1.15rem;
    font-weight: 700;
    direction: ltr;
}
.booking-summary {
    margin: 0 auto 20px;
    padding: 0;
    max-width: 380px;
    list-style: none;
    text-align: right;
}
.booking-summary li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
body.modal-open { overflow: hidden; }

@media (max-width: 767px) {
    .header-inner {
        min-height: 108px;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        padding-top: 6px;
        padding-bottom: 6px;
    }
    .brand-link {
        width: 90px;
        height: 85px;
        flex-basis: 90px;
        margin-left: auto;
    }
    .logo {
        width: 90px;
        height: auto !important;
        transform: translateY(-25px);
    }
    .mobile-menu-toggle { display: flex; order: 2; }
    .header-booking-button {
        order: 3;
        margin: 0;
        min-height: 44px;
        padding: 8px 14px;
    }
    .header-inner #primary-nav {
        display: none;
        order: 4;
        flex: 1 0 100%;
        width: 100%;
        padding: 8px;
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.2);
    }
    .header-inner #primary-nav.menu-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .header-inner #primary-nav a {
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 10px 12px;
    }
    main { min-height: calc(100vh - 68px); }
    .wrapper { width: 100%; max-width: 100%; height: clamp(280px, 85vw, 320px); }
    .inner { top: 0; }
    .booking-fields { grid-template-columns: 1fr; gap: 10px; }
    .booking-fields .full-width { grid-column: auto; }
    .input-group { width: 100%; max-width: none; }
    .modal-content {
        width: calc(100% - 24px);
        padding: 20px 14px;
        max-height: 92vh;
    }
    .booking-form h4, .calculator-form h3 { padding-left: 38px; font-size: 1.25rem; }
    .contact-fab {
        right: max(10px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    .container { padding-right: 14px; padding-left: 14px; }
    .header-booking-button { font-size: 0.82rem; padding: 8px 11px; }
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card-content { padding: 18px 14px 14px; }
    .service-card-content h3 { font-size: 1.15rem; }
    .service-card-content p { min-height: 0; font-size: 0.88rem; line-height: 1.6; }
    button.ripple-btn { min-height: 44px; font-size: 0.92rem; }
    .intro-copy h1, .section-heading h2, .coverage-layout h2, #services h2 { font-size: 1.65rem; }
    .booking-summary li { display: block; }
    .contact-fab-toggle { min-width: 136px; min-height: 50px; padding: 9px 15px; }
    .contact-fab-menu { width: min(286px, calc(100vw - 20px)); }
}

@media (hover: none) {
    .service-card:hover, .contact-method:hover, .cta-button:hover,
    .ripple-btn:hover, .contact-fab-toggle:hover, .contact-option:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-aos] { opacity: 1 !important; transform: none !important; }
    .spinner { animation-duration: 1.5s !important; animation-iteration-count: infinite !important; }
    .contact-fab, .contact-fab-menu, .contact-fab-toggle,
    .contact-fab-toggle svg, .contact-option { transition: none !important; }
}

/* --- صفحة قائمة الخدمات --- */
.services-page {
    padding: 0 0 64px;
}

.services-hero {
    max-width: 820px;
    padding-top: clamp(44px, 7vw, 82px);
    padding-bottom: clamp(36px, 6vw, 68px);
    text-align: center;
}

.services-hero h1 {
    margin: 0;
    color: var(--logo-light-blue);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.3;
}

.services-hero p {
    max-width: 680px;
    margin: 18px auto 0;
    color: #d8e7f5;
    font-size: 1.05rem;
    line-height: 1.9;
}

.service-category {
    margin-bottom: 34px;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(7, 24, 43, 0.32);
    box-shadow: 0 18px 48px rgba(4, 17, 31, 0.18);
}

.category-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.category-title {
    max-width: 720px;
}

.category-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--accent-glow);
    font-size: 0.88rem;
    font-weight: 700;
}

.category-title h2 {
    margin: 0;
    color: var(--logo-light-blue);
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    line-height: 1.35;
}

.category-title p {
    margin: 9px 0 0;
    color: #c9d7e6;
    line-height: 1.75;
}

.category-count {
    flex: 0 0 auto;
    padding: 7px 13px;
    border: 1px solid rgba(44, 158, 210, 0.4);
    border-radius: 999px;
    color: var(--logo-light-blue);
    background: rgba(44, 158, 210, 0.14);
    font-size: 0.86rem;
    font-weight: 700;
}

.services-page .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    padding: 0;
}

.services-page .service-card {
    min-width: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(30, 71, 118, 0.98), rgba(20, 55, 92, 0.98));
    box-shadow: 0 12px 28px rgba(4, 17, 31, 0.24);
}

.services-page .service-card::before,
.services-page .service-card::after {
    display: none;
}

.services-page .service-card.featured {
    border-color: rgba(255, 197, 6, 0.6);
    background: linear-gradient(155deg, #2c9ed2, #227fad);
    box-shadow: 0 12px 30px rgba(12, 80, 112, 0.3);
}

.services-page .service-card-content {
    min-height: 100%;
    padding: 26px 20px 20px;
}

.services-page .service-card-content img {
    width: 58px;
    height: 58px;
    margin-bottom: 15px;
    object-fit: contain;
}

.services-page .service-card-content h3 {
    font-size: 1.32rem;
    line-height: 1.45;
}

.services-page .service-card-content p {
    min-height: 0;
    margin: 9px 0 13px;
    color: #d8e2ed;
    font-size: 0.9rem;
    line-height: 1.65;
}

.service-card-meta {
    display: block;
    min-height: 46px;
    margin: 0 0 18px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #e9f4fb;
    background: rgba(0, 0, 0, 0.16);
    font-size: 0.82rem;
    line-height: 1.55;
}

.service-card-meta strong {
    color: #fff;
    font-size: 0.94rem;
}

.services-page .service-card .ripple-btn {
    width: 100%;
    max-width: none;
    min-height: 46px;
    margin: auto 0 0;
}

@media (max-width: 767px) {
    .services-page { padding-bottom: 44px; }
    .services-hero { padding-top: 38px; padding-bottom: 34px; }
    .services-hero p { font-size: 0.95rem; line-height: 1.75; }
    .service-category { margin-right: 12px; margin-left: 12px; border-radius: 16px; }
    .category-header { align-items: flex-start; margin-bottom: 22px; }
    .services-page .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .services-page .service-card-content { padding: 20px 14px 14px; }
    .services-page .service-card-content img { width: 46px; height: 46px; }
    .service-card-meta { min-height: 0; }
}

@media (max-width: 560px) {
    .category-header { display: block; }
    .category-count { display: inline-block; margin-top: 14px; }
    .services-page .services-grid { grid-template-columns: 1fr; }
    .services-page .service-card-content { padding: 22px 18px 17px; }
    .services-page .service-card-content h3 { font-size: 1.2rem; }
}

/* --- الصفحة الرئيسية وعرض الأعمال --- */
.home-hero {
    padding: clamp(42px, 6vw, 76px) 0 36px;
    background:
        radial-gradient(circle at 15% 18%, rgba(44, 158, 210, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(7, 24, 43, 0.28), transparent);
}

.home-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    align-items: center;
    gap: clamp(34px, 6vw, 76px);
}

.home-hero-copy h1 {
    max-width: 650px;
    margin: 0;
    color: var(--logo-light-blue);
    font-size: clamp(2.35rem, 5vw, 4.1rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.home-hero-copy > p {
    max-width: 640px;
    margin: 22px 0 0;
    color: #d8e7f5;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.95;
}

.home-hero-copy .intro-actions {
    justify-content: flex-start;
    margin-top: 30px;
}

.hero-booking-button {
    min-height: 48px;
    padding: 11px 25px;
    border: 0;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1rem;
}

.home-showcase {
    width: 100%;
    max-width: 560px;
    margin-inline-start: auto;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    outline: none;
    background: rgba(7, 24, 43, 0.58);
    box-shadow: 0 26px 60px rgba(3, 15, 28, 0.3);
}

.home-showcase:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 197, 6, 0.65), 0 26px 60px rgba(3, 15, 28, 0.3);
}

.showcase-heading {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 2px 4px 13px;
}

.showcase-heading > div > span,
.showcase-heading strong {
    display: block;
}

.showcase-heading > div > span {
    color: var(--accent-glow);
    font-size: 0.78rem;
    font-weight: 700;
}

.showcase-heading strong {
    margin-top: 2px;
    color: #fff;
    font-size: 1rem;
}

.showcase-counter {
    direction: ltr;
    color: #c9d7e6;
    font-size: 0.85rem;
    font-weight: 700;
}

.showcase-viewport {
    position: relative;
    height: clamp(500px, 48vw, 620px);
    overflow: hidden;
    border-radius: 17px;
    background: #edf5f8;
}

.showcase-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.015);
    transition: opacity 0.55s ease, transform 0.7s ease, visibility 0.55s;
    pointer-events: none;
}

.showcase-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}

.showcase-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.showcase-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 50%;
    color: #fff;
    background: rgba(13, 42, 74, 0.78);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.showcase-arrow:hover,
.showcase-arrow:focus-visible {
    background: var(--logo-main-blue);
    transform: translateY(-50%) scale(1.06);
}

.showcase-prev { right: 12px; }
.showcase-next { left: 12px; }

.showcase-dots {
    min-height: 36px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
}

.showcase-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.showcase-dot.is-active {
    width: 28px;
    background: var(--accent-glow);
}

.home-hero > .trust-strip {
    margin-top: clamp(28px, 5vw, 52px);
}

#services {
    margin-top: 46px;
    padding: 48px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(4, 17, 31, 0.16);
}

@media (max-width: 900px) {
    .home-hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .home-hero-copy { text-align: center; }
    .home-hero-copy h1,
    .home-hero-copy > p { margin-right: auto; margin-left: auto; }
    .home-hero-copy .intro-actions { justify-content: center; }
    .home-showcase { max-width: 520px; margin: 0 auto; }
    .showcase-viewport { height: min(135vw, 640px); }
}

@media (max-width: 560px) {
    .home-hero { padding-top: 34px; }
    .home-hero-copy h1 { font-size: clamp(2rem, 10.5vw, 2.75rem); }
    .home-hero-copy > p { line-height: 1.8; }
    .home-showcase { padding: 10px; border-radius: 18px; }
    .showcase-heading { padding: 3px 3px 10px; }
    .showcase-viewport { height: min(145vw, 600px); border-radius: 13px; }
    .showcase-arrow { width: 40px; height: 40px; }
    .showcase-prev { right: 8px; }
    .showcase-next { left: 8px; }
    .home-hero > .trust-strip { padding-right: 14px; padding-left: 14px; }
    #services { margin: 34px 12px 0; padding: 38px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-slide { transition: none; transform: none; }
}

/* --- حركة خلفية هادئة لأقسام الرئيسية السفلية --- */
.home-lower-content {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-bottom: 24px;
}

.home-lower-content::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: -4%;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 14%, rgba(44, 158, 210, 0.24) 0, rgba(44, 158, 210, 0.08) 18%, transparent 34%),
        radial-gradient(circle at 88% 43%, rgba(255, 197, 6, 0.1) 0, rgba(255, 197, 6, 0.03) 15%, transparent 29%),
        radial-gradient(circle at 22% 82%, rgba(56, 177, 228, 0.2) 0, rgba(56, 177, 228, 0.05) 19%, transparent 35%),
        linear-gradient(180deg, rgba(7, 24, 43, 0.08), rgba(18, 55, 95, 0.16));
    transform: translate3d(-1.5%, 0, 0) scale(1.02);
    animation: lower-background-drift 20s ease-in-out infinite alternate;
    will-change: transform;
}

.home-lower-content > section {
    position: relative;
    z-index: 1;
}

.home-lower-content #services {
    background: rgba(13, 42, 74, 0.76);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.home-lower-content .section-band {
    background: rgba(7, 24, 43, 0.42);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

@keyframes lower-background-drift {
    0% {
        transform: translate3d(-1.5%, 0, 0) scale(1.02);
        opacity: 0.82;
    }
    50% {
        transform: translate3d(1%, -0.6%, 0) scale(1.045);
        opacity: 1;
    }
    100% {
        transform: translate3d(1.8%, 0.7%, 0) scale(1.025);
        opacity: 0.9;
    }
}

@media (max-width: 767px) {
    .home-lower-content::before {
        inset: -2%;
        animation-duration: 24s;
        background:
            radial-gradient(circle at 10% 18%, rgba(44, 158, 210, 0.2), transparent 31%),
            radial-gradient(circle at 92% 58%, rgba(255, 197, 6, 0.08), transparent 27%),
            linear-gradient(180deg, rgba(7, 24, 43, 0.06), rgba(18, 55, 95, 0.12));
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-lower-content::before {
        animation: none;
        transform: none;
        will-change: auto;
    }
}

/* --- ظهور أقسام لماذا نحن وطريقة العمل والتغطية والأسئلة --- */
.home-lower-content.reveal-ready .why-section [data-aos]:not(.aos-animate),
.home-lower-content.reveal-ready .process-section [data-aos]:not(.aos-animate),
.home-lower-content.reveal-ready .coverage-section [data-aos]:not(.aos-animate),
.home-lower-content.reveal-ready .faq-section [data-aos]:not(.aos-animate) {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
}

.home-lower-content .why-section [data-aos],
.home-lower-content .process-section [data-aos],
.home-lower-content .coverage-section [data-aos],
.home-lower-content .faq-section [data-aos] {
    transition-property: opacity, transform;
    transition-duration: 0.62s;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.home-lower-content.reveal-ready .section-heading[data-aos]:not(.aos-animate) {
    transform: translate3d(0, 14px, 0);
}

.home-lower-content .why-section [data-aos].aos-animate,
.home-lower-content .process-section [data-aos].aos-animate,
.home-lower-content .coverage-section [data-aos].aos-animate,
.home-lower-content .faq-section [data-aos].aos-animate {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.value-card,
.process-step,
.faq-list details {
    transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.value-card:hover,
.process-step:hover,
.faq-list details:hover {
    border-color: rgba(44, 158, 210, 0.42);
    box-shadow: 0 15px 34px rgba(4, 17, 31, 0.24);
}

@media (hover: none) {
    .value-card:hover,
    .process-step:hover,
    .faq-list details:hover {
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-lower-content .why-section [data-aos],
    .home-lower-content .process-section [data-aos],
    .home-lower-content .coverage-section [data-aos],
    .home-lower-content .faq-section [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* --- بطاقات الخدمات: ثلاثة أعمدة واضحة على الجوال --- */
@media (max-width: 560px) {
    #services {
        margin-right: 10px;
        margin-left: 10px;
        padding-right: 9px;
        padding-left: 9px;
    }

    #featured-services-grid,
    .services-page .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 0;
    }

    .services-page .service-category {
        margin-right: 8px;
        margin-left: 8px;
        padding-right: 14px;
        padding-left: 14px;
    }

    #featured-services-grid .service-card,
    .services-page .service-card {
        min-width: 0;
        padding: 0;
        border-radius: 11px;
    }

    #featured-services-grid .service-card-content,
    .services-page .service-card-content {
        min-width: 0;
        padding: 10px 6px 7px;
    }

    #featured-services-grid .service-card img,
    .services-page .service-card img {
        width: 32px;
        height: 32px;
        margin-bottom: 6px;
    }

    #featured-services-grid .service-card h3,
    .services-page .service-card h3 {
        margin-bottom: 5px;
        font-size: clamp(0.72rem, 3.1vw, 0.88rem);
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    #featured-services-grid .service-card p,
    .services-page .service-card p {
        display: -webkit-box;
        min-height: 2.8em;
        margin-bottom: 7px;
        overflow: hidden;
        font-size: 0.64rem;
        line-height: 1.4;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        -webkit-line-clamp: 2;
    }

    .services-page .service-card-meta {
        min-height: 0;
        margin-bottom: 7px;
        padding: 6px 3px;
        font-size: 0.6rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .services-page .service-card-meta strong {
        font-size: 0.72rem;
    }

    #featured-services-grid .service-card button,
    .services-page .service-card button {
        width: 100%;
        min-height: 36px;
        margin: auto 0 0;
        padding: 6px 2px;
        border-radius: 9px;
        font-size: clamp(0.64rem, 2.6vw, 0.76rem);
        line-height: 1.25;
        white-space: normal;
    }

    .services-page .discount-badge {
        top: -5px;
        left: -4px;
        padding: 4px 5px;
        border-radius: 6px;
        font-size: 0.6rem;
        transform: none;
    }
}

@media (max-width: 360px) {
    #services {
        margin-right: 8px;
        margin-left: 8px;
        padding-right: 7px;
        padding-left: 7px;
    }

    #featured-services-grid,
    .services-page .services-grid {
        gap: 6px;
    }

    .services-page .service-category {
        margin-right: 6px;
        margin-left: 6px;
        padding-right: 10px;
        padding-left: 10px;
    }
}
