/* Explain: Styles for navigation, buttons, cards, forms, and floating actions. */
/* ============================================================
   Header & navigation
   ============================================================ */
.site-header {
    padding-top: 0.9rem;
    transition: padding-top 0.3s ease;
}

.site-header.is-scrolled {
    padding-top: 0.4rem;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.4rem 0.5rem;
    box-shadow: 0 12px 32px rgba(18, 24, 22, 0.08);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled .nav-bar {
    background: #FFFFFF;
    box-shadow: 0 18px 44px rgba(18, 24, 22, 0.14);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-inline-start: 0.35rem;
    color: var(--text-color);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.95rem;
    background: linear-gradient(140deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-size: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 10px 22px rgba(11, 93, 78, 0.28);
}

.brand-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.brand-sub {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.brand-logo {
    position: relative;
    display: block;
    width: 4.6rem;
    aspect-ratio: 1.5;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220%;
    max-width: none;
    height: auto;
    transform: translate(-50%, -50%);
}

.brand-logo-lg {
    width: 8.5rem;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.22s ease, background 0.22s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--primary-color);
    background: var(--surface-soft);
}

.nav-actions {
    display: none;
    align-items: center;
    gap: 0.4rem;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    cursor: pointer;
}

.nav-panel {
    display: none;
    margin: 0.6rem auto 0;
    width: min(100% - 2rem, 1200px);
    max-height: 72vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
    padding: 0.7rem;
}

.nav-panel.is-open {
    display: block;
}

.nav-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.2rem;
}

.nav-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3rem;
    padding: 0.5rem 0.9rem;
    border-radius: 0.9rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-panel a:hover {
    background: var(--surface-soft);
    color: var(--primary-color);
}

.nav-panel .panel-actions {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.6rem 0.35rem 0.25rem;
    border-top: 1px solid var(--border-color);
}

@media (min-width: 1024px) {
    .brand-logo {
        width: 5.6rem;
    }

    .brand-logo-lg {
        width: 9.5rem;
    }

    .nav-links {
        display: flex;
    }

    .nav-actions {
        display: flex;
    }

    .nav-toggle {
        display: none;
    }

    .nav-panel {
        display: none !important;
    }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-brand,
.btn-outline-brand,
.btn-white,
.btn-wa,
.btn-light,
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3.05rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.96rem;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-brand {
    background: linear-gradient(140deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: 0 16px 30px rgba(11, 93, 78, 0.26);
}

.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(11, 93, 78, 0.32);
}

.btn-gold {
    background: linear-gradient(140deg, var(--accent-color), var(--accent-hover));
    color: #241a05;
    box-shadow: 0 16px 30px rgba(200, 155, 60, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(200, 155, 60, 0.36);
}

.btn-outline-brand {
    background: #fff;
    color: var(--primary-color);
    border-color: var(--border-strong);
}

.btn-outline-brand:hover {
    background: var(--surface-soft);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 14px 30px rgba(6, 26, 22, 0.18);
}

.btn-white:hover {
    background: var(--surface-soft);
    transform: translateY(-2px);
}

.btn-wa {
    background: var(--whatsapp-color);
    color: #fff;
    box-shadow: 0 16px 30px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
    background: #1fbf5c;
    transform: translateY(-2px);
}

.btn-light {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.btn-sm {
    min-height: 2.6rem;
    padding: 0.45rem 1.05rem;
    font-size: 0.85rem;
}

/* Call actions are red, WhatsApp actions are green */
.btn-brand[href^="tel:"],
.btn-white[href^="tel:"] {
    background: linear-gradient(140deg, var(--call-color), var(--call-hover));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 16px 30px rgba(198, 40, 40, 0.28);
}

.btn-brand[href^="tel:"]:hover,
.btn-white[href^="tel:"]:hover {
    background: linear-gradient(140deg, var(--call-hover), var(--call-dark));
    color: #fff;
    box-shadow: 0 22px 42px rgba(198, 40, 40, 0.34);
    transform: translateY(-2px);
}

.btn-outline-brand[href*="wa.me"] {
    background: var(--whatsapp-color);
    color: #fff;
    border-color: var(--whatsapp-color);
    box-shadow: 0 14px 26px rgba(37, 211, 102, 0.28);
}

.btn-outline-brand[href*="wa.me"]:hover {
    background: var(--whatsapp-hover);
    border-color: var(--whatsapp-hover);
    color: #fff;
    transform: translateY(-2px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.link-arrow i {
    transition: transform 0.3s ease;
}

.link-arrow:hover i {
    transform: translateX(-4px);
}

/* ============================================================
   Cards, badges, chips
   ============================================================ */
.card-soft {
    position: relative;
    overflow: hidden;
    background: var(--surface-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-soft::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    pointer-events: none;
}

.card-soft:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: var(--border-strong);
}

/* بطاقة تحتوي صورة: حدود وإطار بلون فاتح يتناغم مع خلفية الصورة */
.card-photo {
    border-color: var(--border-photo);
}

.card-photo::before {
    background: linear-gradient(180deg, var(--border-photo), var(--border-color));
}

.card-photo:hover {
    border-color: var(--border-strong);
}

.media-frame {
    background: #fff;
    border-block-end: 1px solid var(--border-photo);
}

.media-frame-plain {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-photo);
    border-radius: var(--radius-lg);
}

.icon-badge {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-size: 1.15rem;
}

.icon-badge-sm {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 0.9rem;
    font-size: 1rem;
}

.icon-badge-gold {
    background: rgba(200, 155, 60, 0.14);
    color: var(--accent-hover);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.5;
}

.eyebrow i {
    color: var(--accent-color);
}

.eyebrow-glass {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ============================================================
   عناوين الصفحات — سطران بحجم متناسق في كل الصفحات
   ============================================================ */
.hero-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.55rem, 7vw, 2.95rem);
    line-height: 1.35;
}

.hero-title-line {
    display: block;
    text-wrap: balance;
}

.hero-title-accent {
    margin-top: 0.35rem;
    font-size: clamp(1.08rem, 4.8vw, 2.05rem);
    line-height: 1.5;
    color: var(--primary-color);
}

/* ============================================================
   Media overlays
   ============================================================ */
.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 26, 22, 0.82), rgba(6, 26, 22, 0.62) 45%, rgba(6, 26, 22, 0.93));
}

.tile-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(6, 26, 22, 0) 32%, rgba(6, 26, 22, 0.85) 100%);
}

.footer-glow {
    position: absolute;
    inset-inline-start: -6rem;
    top: -8rem;
    width: 26rem;
    height: 26rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(76, 32, 101, 0.5), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

/* ============================================================
   Long-form content
   ============================================================ */
.prose-content p {
    margin-bottom: 1.2rem;
    line-height: 2.05;
    color: var(--text-muted);
    font-size: 1.03rem;
}

.prose-content p:last-child {
    margin-bottom: 0;
}

.prose-content ul {
    margin: 1.3rem 0 0;
    padding-inline-start: 1.2rem;
    display: grid;
    gap: 0.7rem;
    list-style: disc;
}

.prose-content li {
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.95;
}

.prose-content li::marker {
    color: var(--primary-color);
}

.prose-content strong {
    color: var(--text-color);
}

.prose-content h2 {
    margin: 2.25rem 0 0.85rem;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.6;
    color: var(--text-color);
}

.prose-content h3 {
    margin: 1.9rem 0 0.7rem;
    font-size: 1.09rem;
    font-weight: 800;
    line-height: 1.7;
    color: var(--text-color);
}

.prose-content h2:first-child,
.prose-content h3:first-child {
    margin-top: 0;
}

.prose-content ol {
    margin: 1rem 0 0;
    padding-inline-start: 1.3rem;
    display: grid;
    gap: 0.5rem;
    list-style: decimal;
}

.prose-content ol li {
    font-weight: 700;
    line-height: 1.9;
}

/* ============================================================
   Forms
   ============================================================ */
.field-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-color);
}

.field-input {
    width: 100%;
    min-height: 3.05rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--surface-soft);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.96rem;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(11, 93, 78, 0.12);
}

.field-input:focus-visible {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(11, 93, 78, 0.12);
}

.field-input::placeholder {
    color: #9AA7A3;
}

select.field-input {
    appearance: none;
    padding-inline-end: 2.6rem;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235B6B67' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 0.85rem;
    cursor: pointer;
}

textarea.field-input {
    min-height: 8rem;
    resize: vertical;
}

.form-status {
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.7;
}

.form-status.is-success {
    background: #E7F5EC;
    color: #0B5132;
    border: 1px solid #B6E3C9;
}

.form-status.is-error {
    background: #FDEAEA;
    color: #7A1A1A;
    border: 1px solid #F3C4C4;
}

/* ============================================================
   Floating contact actions — أزرار دائرية عصرية
   ============================================================ */
.s123-float-wrap {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 45;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.s123-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(10, 28, 25, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    animation: s123-wiggle 3.5s infinite ease-in-out;
    -webkit-tap-highlight-color: transparent;
}

.s123-float-btn:hover,
.s123-float-btn:focus-visible {
    transform: scale(1.1);
    color: #ffffff;
    filter: brightness(1.06);
    box-shadow: 0 14px 32px rgba(10, 28, 25, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.36);
    animation: none;
}

.s123-wa {
    background: linear-gradient(140deg, #2ED573 0%, var(--whatsapp-color) 60%, var(--whatsapp-hover) 100%);
}

.s123-call {
    background: linear-gradient(140deg, #14867C 0%, #0F766E 60%, #0B5A54 100%);
    animation-delay: 1.2s;
}

@keyframes s123-wiggle {
    0%,
    82%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    85% {
        transform: translateY(-3px) rotate(-6deg);
    }

    88% {
        transform: translateY(-3px) rotate(6deg);
    }

    91% {
        transform: translateY(-2px) rotate(-4deg);
    }

    94% {
        transform: translateY(0) rotate(0deg);
    }
}

@media (max-width: 639px) {
    .s123-float-wrap {
        bottom: 16px;
        right: 14px;
        gap: 10px;
    }

    .s123-float-btn {
        width: 56px;
        height: 56px;
        font-size: 0.74rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .s123-float-btn {
        animation: none;
    }
}

/* ============================================================
   Area tiles (text only, no images)
   ============================================================ */
.area-tile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 4.5rem;
    padding: 0.9rem 1.1rem;
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(10, 28, 25, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.area-tile:hover,
.area-tile:focus-visible {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 18px 34px rgba(10, 28, 25, 0.11);
}

.area-tile-mark {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
    border-radius: 0.85rem;
    background: var(--surface-soft);
    color: var(--primary-color);
    font-size: 0.95rem;
    transition: background 0.25s ease, color 0.25s ease;
}

.area-tile:hover .area-tile-mark,
.area-tile:focus-visible .area-tile-mark {
    background: var(--primary-color);
    color: #fff;
}

/* ============================================================
   مساحة بيضاء في كل الصفحات — إلغاء أي قسم داكن قديم
   ============================================================ */
[class*="bg-[var(--secondary-color)]"] {
    background-color: var(--background-color) !important;
    background-image: none !important;
    color: var(--text-color) !important;
}

[class*="bg-[var(--secondary-color)]"] [class~="text-white"] {
    color: var(--text-color) !important;
}

[class*="bg-[var(--secondary-color)]"] [class*="text-white/"] {
    color: var(--text-muted) !important;
}

[class*="bg-[var(--secondary-color)]"] a[class*="hover:text-white"] {
    color: var(--link-color) !important;
    font-weight: 800;
}

[class*="bg-[var(--secondary-color)]"] a[class*="hover:text-white"]:hover,
[class*="bg-[var(--secondary-color)]"] a[class*="hover:text-white"]:focus-visible {
    color: var(--primary-hover) !important;
    text-decoration: underline;
}

[class*="bg-[var(--secondary-color)]"] .eyebrow-glass {
    background: var(--surface-soft);
    border-color: var(--border-color);
    color: var(--primary-color);
    backdrop-filter: none;
}

[class*="bg-[var(--secondary-color)]"] .btn-light,
[class*="bg-[var(--secondary-color)]"] .btn-white {
    background: #FFFFFF;
    color: var(--primary-color);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card);
}

[class*="bg-[var(--secondary-color)]"]:not(:has(h1)) {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.footer-glow {
    display: none;
}

/* ============================================================
   روابط المسار والتنقل — لون مميز وواضح على الخلفية البيضاء
   ============================================================ */
.crumb-link {
    color: var(--link-color);
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s ease;
}

.crumb-link:hover,
.crumb-link:focus-visible {
    color: var(--primary-hover);
    text-decoration: underline;
}

@media (min-width: 640px) {
    .s123-float-wrap {
        bottom: 28px;
        right: 28px;
    }
}

/* ============================================================
   إزالة أزرار الاتصال وواتساب من أعلى الصفحات
   تبقى وسائل التواصل متاحة من الأزرار العائمة وأقسام التواصل
   ============================================================ */
.page-hero a[href^="tel:"],
.page-hero a[href*="wa.me"] {
    display: none !important;
}