/* ============================================================
   Baytoria Frontend — Shared UI Tokens & Primitives
   مرجع التصميم: frontend/home.blade.php
   ============================================================ */

:root {
    /* Brand */
    --bt-primary:        #1B3B5A;
    --bt-primary-hover:  #234b73;
    --bt-text:           #0d2321;
    --bt-text-muted:     #6b7280;   /* gray-500 */
    --bt-text-soft:      #4b5563;   /* gray-600 */

    /* Accents */
    --bt-gold:           #D4B265;
    --bt-gold-soft:      #EBCAA3;
    --bt-teal:           #0f6b66;
    --bt-teal-hover:     #0c5652;
    --bt-mint:           #e6f3f2;

    /* Surfaces */
    --bt-surface:        #ffffff;
    --bt-surface-alt:    #f9fafb;   /* gray-50 */
    --bt-border:         #e5e7eb;   /* gray-200 */

    /* Radii */
    --bt-radius-sm:      0.5rem;
    --bt-radius-md:      0.75rem;
    --bt-radius-lg:      1rem;
    --bt-radius-xl:      1.25rem;
    --bt-radius-pill:    9999px;

    /* Shadows */
    --bt-shadow-sm:      0 1px 2px rgba(0, 0, 0, .04);
    --bt-shadow-md:      0 4px 12px rgba(0, 0, 0, .06);
    --bt-shadow-lg:      0 12px 28px rgba(0, 0, 0, .10);

    /* Container */
    --bt-container:      1200px;
}

/* ============================================================
   Section spacing — مطابق لـ home/about
   ============================================================ */
.bt-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) { .bt-section { padding-top: 3.5rem; padding-bottom: 3.5rem; } }
@media (min-width: 768px) { .bt-section { padding-top: 4rem;   padding-bottom: 4rem; } }
@media (min-width: 1024px){ .bt-section { padding-top: 5rem;   padding-bottom: 5rem; } }

.bt-section--alt   { background: var(--bt-surface-alt); }
.bt-section--brand { background: var(--bt-mint); }

.bt-container {
    width: 100%;
    max-width: var(--bt-container);
    margin-inline: auto;
}

/* ============================================================
   Heading (مع شرطة ذهبية أسفله — كما في home services)
   ============================================================ */
.bt-heading {
    display: inline-block;
    position: relative;
    color: var(--bt-primary);
    font-weight: 700;
    line-height: 1.2;
    font-size: 1.5rem;
}
@media (min-width: 640px) { .bt-heading { font-size: 1.875rem; } }
@media (min-width: 768px) { .bt-heading { font-size: 2.25rem; } }

.bt-heading::after {
    content: "";
    display: block;
    height: 4px;
    width: 4rem;
    margin: 0.5rem auto 0;
    border-radius: 9999px;
    background: rgba(212, 178, 101, 0.8); /* gold/80 */
}
.bt-heading--start::after { margin-inline-start: 0; margin-inline-end: auto; }

.bt-subheading {
    color: var(--bt-gold);
    margin-top: 0.75rem;
    font-size: 1rem;
}
@media (min-width: 640px) { .bt-subheading { font-size: 1.125rem; margin-top: 1rem; } }

/* ============================================================
   Card — موحّد عبر الصفحات
   ============================================================ */
.bt-card {
    background: var(--bt-surface);
    border-radius: var(--bt-radius-xl);
    padding: 1.5rem;
    box-shadow: var(--bt-shadow-sm);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), var(--bt-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}
.bt-card:hover {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), var(--bt-shadow-lg);
    transform: translateY(-4px);
}
.bt-card--bordered {
    border: 1px solid var(--bt-border);
    box-shadow: none;
}
.bt-card--bordered:hover { box-shadow: var(--bt-shadow-md); transform: none; }

/* أيقونة كرت دائرية بخلفية نعناعية (مطابقة about) */
.bt-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--bt-radius-md);
    background: var(--bt-mint);
}
@media (min-width: 640px) { .bt-card-icon { width: 3.5rem; height: 3.5rem; } }

/* ============================================================
   Buttons
   ============================================================ */
.bt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--bt-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
    cursor: pointer;
    text-decoration: none;
    border: 0;
}
.bt-btn:focus-visible {
    outline: 2px solid var(--bt-gold);
    outline-offset: 2px;
}

.bt-btn--primary { background: var(--bt-primary); color: #fff; }
.bt-btn--primary:hover { background: var(--bt-primary-hover); }

.bt-btn--accent  { background: var(--bt-teal); color: #fff; border-radius: var(--bt-radius-pill); padding-inline: 1.25rem; }
.bt-btn--accent:hover { background: var(--bt-teal-hover); }

.bt-btn--ghost {
    background: transparent;
    color: var(--bt-primary);
    border: 1px solid var(--bt-border);
}
.bt-btn--ghost:hover { background: var(--bt-surface-alt); }

.bt-btn--block { width: 100%; }

/* ============================================================
   Form fields — بنفس مقاس فلتر home
   ============================================================ */
.bt-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--bt-radius-sm);
    border: 1px solid var(--bt-border);
    background: #fff;
    color: var(--bt-text);
    font-size: 0.95rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.bt-field:focus {
    outline: none;
    border-color: var(--bt-primary);
    box-shadow: 0 0 0 3px rgba(27, 59, 90, .12);
}

.bt-label {
    display: block;
    font-size: 0.875rem;
    color: var(--bt-text-soft);
    margin-bottom: 0.375rem;
}

[dir="rtl"] .bt-field,
[dir="rtl"] .bt-text-start { text-align: right; }
[dir="ltr"] .bt-field,
[dir="ltr"] .bt-text-start { text-align: left; }

/* ============================================================
   Hero (overlay + خلفية صورة) — مطابق home/about
   ============================================================ */
.bt-hero {
    position: relative;
    overflow: hidden;
}
.bt-hero__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.bt-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}
.bt-hero__content {
    position: relative;
    z-index: 10;
    color: #fff;
    height: 100%;
    display: flex;
    align-items: center;
}
