/* Explain: Styles for various UI elements including navigation, footers, cards, chat, and forms. */
.site-header {
    background: var(--nav-bg);
    box-shadow: 0 1px 0 rgba(11, 27, 51, 0.04), 0 14px 40px rgba(7, 38, 76, 0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.15rem;
    background: var(--glass-bg);
    padding: 0.4rem 0.8rem;
    box-shadow: 0 12px 28px rgba(7, 38, 76, 0.06);
}

.brand-mark {
    height: 2.7rem;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: start;
}

/* نُخفي اسم الشركة بجانب الشعار في الشاشات المتوسطة فقط، حيث تضيق المساحة على روابط القائمة */
@media (min-width: 1024px) and (max-width: 1279px) {
    .site-header .brand-text {
        display: none;
    }
}

.brand-name {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.brand-sub {
    margin-top: 0.15rem;
    color: var(--gold-dark);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .brand-lockup {
        gap: 0.5rem;
        padding: 0.35rem 0.6rem;
    }

    .brand-mark {
        height: 2.75rem;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .brand-sub {
        font-size: 0.56rem;
    }
}

@media (min-width: 1280px) {
    .brand-lockup {
        gap: 0.65rem;
        padding: 0.4rem 0.9rem;
    }

    .brand-mark {
        height: 3.3rem;
    }

    .brand-name {
        font-size: 1.12rem;
    }

    .brand-sub {
        font-size: 0.64rem;
    }
}

.brand-lockup-lg {
    gap: 0.9rem;
    border-radius: 1.5rem;
    padding: 0.6rem 1.1rem;
}

.brand-lockup-lg .brand-mark {
    height: 3.9rem;
}

.brand-lockup-lg .brand-name {
    font-size: 1.15rem;
}

.brand-lockup-lg .brand-sub {
    font-size: 0.72rem;
}

/* الشعار الدائري — يظهر كاملاً بنسبته المربعة داخل إطار دائري في الترويسة والتذييل */
.brand-logo {
    display: block;
    flex-shrink: 0;
    width: 3.5rem;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    border-radius: 999px;
}

.brand-lockup-lg .brand-logo {
    width: 4.6rem;
}

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

    .brand-lockup-lg .brand-logo {
        width: 5rem;
    }
}

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

.nav-link {
    color: var(--text-color);
    font-weight: 600;
    transition: color 300ms ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-bi {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

.nav-bi .nav-en {
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 300ms ease;
}

.nav-bi:hover .nav-en {
    color: var(--accent-color);
}

.footer-link {
    transition: color 300ms ease;
}

.footer-link:hover {
    color: var(--accent-color);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.section-kicker::before {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--gold-color), var(--gold-soft));
    transform: rotate(45deg);
    content: "";
}

.glass-panel {
    border: 1px solid rgba(192, 160, 90, 0.3);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.62));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.img-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    box-shadow: var(--shadow-soft);
}

.hero-frame {
    position: relative;
    overflow: hidden;
    height: min(70vh, 620px);
    min-height: 400px;
    border: 1px solid rgba(11, 91, 196, 0.18);
    border-radius: 2.75rem 2.75rem 2.75rem 6rem;
    box-shadow: 0 30px 70px rgba(7, 38, 76, 0.12);
}

.stat-float {
    position: absolute;
    bottom: 1.75rem;
    left: -0.75rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(192, 160, 90, 0.35);
    border-radius: 1.5rem;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 255, 0.9));
    padding: 1rem 1.5rem;
    box-shadow: 0 22px 50px rgba(7, 38, 76, 0.12);
    backdrop-filter: blur(14px);
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.85rem;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.62));
    padding: 2.1rem 1.85rem;
    box-shadow: var(--shadow-soft);
    transition: transform 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
}

.service-card::before {
    position: absolute;
    inset-inline: 1.85rem;
    top: 0;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
    opacity: 0;
    transition: opacity 350ms ease;
    content: "";
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(11, 91, 196, 0.32);
    box-shadow: 0 28px 70px rgba(7, 38, 76, 0.12);
}

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

.service-icon {
    display: inline-flex;
    height: 3.35rem;
    width: 3.35rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(11, 91, 196, 0.14);
    border-radius: 1.15rem;
    background: linear-gradient(150deg, #E6EFFB, #F8FBFF);
    color: var(--primary-color);
    font-size: 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.step-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.85rem;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.6));
    padding: 2.15rem 1.85rem;
    box-shadow: var(--shadow-soft);
    transition: transform 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 91, 196, 0.3);
    box-shadow: 0 26px 64px rgba(7, 38, 76, 0.1);
}

.step-number {
    position: absolute;
    top: 1.4rem;
    left: 1.75rem;
    color: rgba(11, 91, 196, 0.22);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 1.85rem;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.62));
    padding: 2.4rem 2rem;
    box-shadow: var(--shadow-soft);
    transition: transform 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
}

.package-card:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 91, 196, 0.3);
    box-shadow: 0 28px 70px rgba(7, 38, 76, 0.1);
}

.package-card.featured {
    border-color: var(--gold-soft);
    background: linear-gradient(165deg, #FFFFFF 0%, #EFF5FE 55%, #FBF5E9 100%);
    box-shadow: 0 32px 80px rgba(11, 91, 196, 0.16);
}

.package-card.featured:hover {
    border-color: var(--gold-color);
}

.package-badge {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-color), var(--gold-dark));
    color: #ffffff;
    padding: 0.35rem 0.95rem;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(138, 101, 48, 0.28);
}

.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 1.85rem;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.6));
    padding: 2.1rem;
    box-shadow: var(--shadow-soft);
    transition: transform 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 91, 196, 0.3);
    box-shadow: 0 26px 64px rgba(7, 38, 76, 0.1);
}

.area-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.7));
    padding: 0.6rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    transition: transform 300ms ease, border-color 300ms ease, background-color 300ms ease, box-shadow 300ms ease;
}

.area-chip:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    background: var(--surface-color);
    box-shadow: 0 14px 30px rgba(7, 38, 76, 0.08);
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 1.6rem;
    padding: 1.1rem 1.3rem;
    transition: border-color 300ms ease, transform 300ms ease;
}

a.contact-row:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.quiet-detail {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(247, 250, 255, 0.62);
    padding: 1.25rem;
}

.quiet-detail span {
    display: inline-flex;
    margin-bottom: 0.7rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.quiet-detail p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.faq-item {
    border-radius: 1.35rem;
    overflow: hidden;
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.faq-item[open] {
    border-color: rgba(11, 91, 196, 0.3);
    box-shadow: 0 18px 44px rgba(7, 38, 76, 0.08);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    transition: transform 300ms ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 700;
}

.field {
    width: 100%;
    min-height: 3rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background-color: var(--field-bg);
    color: var(--text-color);
    padding: 0.75rem 1.25rem;
    font-family: var(--font-body);
    box-shadow: inset 0 1px 2px rgba(8, 45, 40, 0.04);
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.field:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--sage-soft);
}

.field::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

textarea.field {
    border-radius: 1.6rem;
    padding: 1rem 1.25rem;
    min-height: 8rem;
}

select.field {
    padding-inline-end: 2.5rem;
}

.form-status.success {
    color: var(--sage-dark);
}

.form-status.error {
    color: #9B4A3D;
}

.float-actions {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 45;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.float-btn {
    display: inline-flex;
    height: 3.4rem;
    width: 3.4rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 1.6rem;
    box-shadow: var(--shadow-button);
    transition: transform 300ms ease, opacity 300ms ease;
}

.float-btn:hover {
    transform: scale(1.08);
}

.float-call {
    background: var(--primary-color);
}

.float-whatsapp {
    background: #25D366;
}

.float-email {
    background: var(--gold-dark);
}

.float-btn span {
    position: absolute;
    inset-inline-start: calc(100% + 0.75rem);
    display: none;
    white-space: nowrap;
    border-radius: 999px;
    background: var(--text-color);
    color: #ffffff;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.float-btn:hover span,
.float-btn:focus-visible span {
    display: inline-flex;
}

@media (max-width: 400px) {
    .float-actions {
        gap: 0.6rem;
    }

    .float-btn {
        height: 3.1rem;
        width: 3.1rem;
        font-size: 1.45rem;
    }
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 0.45rem;
        height: 0.45rem;
    }

    .stat-float {
        position: relative;
        bottom: auto;
        left: auto;
        margin: -2.5rem auto 0;
        width: max-content;
    }

    .hero-frame {
        height: 460px;
        min-height: 0;
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    background: var(--glass-bg);
    box-shadow: var(--shadow-soft);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(11, 91, 196, 0.45);
    box-shadow: 0 26px 80px rgba(7, 38, 76, 0.14);
}

.blog-thumb {
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.blog-thumb img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.06);
}

.blog-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.6rem;
}

.article-body h2 {
    margin: 2.2rem 0 0.9rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.6;
}

.article-body h3 {
    margin: 1.6rem 0 0.7rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}

.article-body p {
    margin: 0 0 1.1rem;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.3rem;
    padding-inline-start: 1.3rem;
}

.article-body ul {
    list-style: disc;
}

.article-body ol {
    list-style: decimal;
}

.article-body li {
    margin-bottom: 0.6rem;
}

.article-body strong {
    color: var(--text-color);
    font-weight: 700;
}

.article-body a {
    color: var(--accent-color);
    text-decoration: underline;
}

.article-body > *:first-child {
    margin-top: 0;
}

.gallery-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.85rem;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.62));
    box-shadow: var(--shadow-soft);
    transition: transform 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    border-color: rgba(11, 91, 196, 0.32);
    box-shadow: 0 28px 70px rgba(7, 38, 76, 0.12);
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    background: var(--glass-border);
}

.ba-pane {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.ba-pane img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.gallery-card:hover .ba-pane img {
    transform: scale(1.05);
}

.ba-label {
    position: absolute;
    top: 0.6rem;
    inset-inline-start: 0.6rem;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: #ffffff;
    backdrop-filter: blur(6px);
}

.ba-label-before {
    background: rgba(151, 120, 58, 0.92);
}

.ba-label-after {
    background: rgba(11, 91, 196, 0.92);
}

.gallery-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.5rem;
}

.gallery-filter {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass-bg);
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    transition: border-color 300ms ease, background-color 300ms ease, color 300ms ease;
}

.gallery-filter:hover {
    border-color: var(--accent-color);
    background: var(--surface-color);
}

.gallery-filter.is-active {
    border-color: var(--accent-color);
    background: var(--primary-color);
    color: #ffffff;
}

.chat-msg {
    max-width: 86%;
    border-radius: 1.2rem;
    padding: 0.65rem 0.95rem;
    font-size: 0.85rem;
    line-height: 1.9;
    word-break: break-word;
}

.chat-msg-bot {
    align-self: flex-start;
    border: 1px solid var(--glass-border);
    background: var(--surface-color);
    color: var(--text-color);
    border-start-start-radius: 0.35rem;
}

.chat-msg-user {
    align-self: flex-end;
    white-space: pre-line;
    background: var(--primary-color);
    color: #ffffff;
    border-start-end-radius: 0.35rem;
}

.chat-msg strong {
    font-weight: 800;
    color: var(--sage-dark);
}

.chat-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--surface-color);
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-color);
    transition: border-color 300ms ease, background-color 300ms ease;
}

.chat-chip:hover {
    border-color: var(--accent-color);
    background: var(--glass-bg);
}

.chat-input {
    width: 100%;
    min-height: 2.75rem;
    max-height: 6rem;
    resize: none;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background-color: var(--field-bg);
    color: var(--text-color);
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.7;
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.chat-input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--sage-soft);
}

.chat-input::placeholder {
    color: var(--text-muted);
    opacity: 0.75;
}

.upload-thumb {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.upload-thumb-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.img-remove-btn {
    position: absolute;
    top: 0.6rem;
    inset-inline-end: 0.6rem;
    display: inline-flex;
    height: 2.25rem;
    width: 2.25rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(12, 32, 66, 0.78);
    color: #ffffff;
    font-size: 0.9rem;
    box-shadow: 0 6px 18px rgba(12, 32, 66, 0.28);
    transition: background-color 300ms ease, transform 300ms ease;
}

.img-remove-btn:hover {
    background: rgba(12, 32, 66, 0.95);
    transform: scale(1.06);
}

.btn {
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 300ms ease, background-color 300ms ease, color 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}