/* ====================================================
   Hamat Elementor Widgets - Stylesheet
   ==================================================== */

/* CSS Variables (set via Elementor color controls) */
.hamat-widget {
    --hamat-dark:       #0B1F33;
    --hamat-accent:     #C9A24D;
    --hamat-light:      #F5F7FA;
    --hamat-text:       #2B2B2B;
    --hamat-text-light: #6B7280;
    --hamat-white:      #ffffff;
    --hamat-border:     #E5E7EB;
    --hamat-radius:     16px;
    --hamat-shadow:     0 2px 10px rgba(0,0,0,0.06);
    --hamat-transition: all 0.3s ease;

    font-family: 'Tajawal', 'Montserrat', sans-serif;
    background: var(--hamat-light);
    color: var(--hamat-text);
}

.hamat-widget.hamat-en {
    font-family: 'Montserrat', 'Tajawal', sans-serif;
}

/* ── Tabs Bar ─────────────────────────────────────── */
.hamat-tabs-bar {
    background: var(--hamat-white);
    border-bottom: 1px solid var(--hamat-border);
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: var(--hamat-shadow);
}

.hamat-city-tab {
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--hamat-transition);
    font-family: inherit;
}

.hamat-city-tab:hover {
    background: #e2e8f0;
}

.hamat-city-tab.hamat-tab-active {
    background: var(--hamat-accent) !important;
    color: var(--hamat-dark) !important;
    box-shadow: 0 4px 14px rgba(201,162,77,0.4);
}

.hamat-city-tab.hamat-tab-active i {
    color: var(--hamat-dark) !important;
}

.hamat-city-tab i {
    font-size: 12px;
    color: #94a3b8;
}

/* ── SEO Box ──────────────────────────────────────── */
.hamat-seo-box {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 13px;
}

.hamat-seo-badge {
    background: #d97706;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 8px;
}

.hamat-seo-box p {
    margin: 4px 0;
    color: #374151;
}

/* ── Main Grid ────────────────────────────────────── */
.hamat-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    padding: 40px 0;
    align-items: start;
}

@media (max-width: 1024px) {
    .hamat-main-grid {
        grid-template-columns: 1fr;
    }
    .hamat-sidebar-col {
        order: -1;
    }
}

/* ── City Panels ─────────────────────────────────── */
.hamat-city-panel {
    display: none;
    animation: hamatFadeIn 0.4s ease;
}

.hamat-city-panel.hamat-panel-active {
    display: block;
}

@keyframes hamatFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Heading Block ───────────────────────────────── */
.hamat-heading-block {
    margin-bottom: 40px;
}

.hamat-heading {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--hamat-dark);
    line-height: 1.3;
    margin: 0 0 20px;
}

.hamat-body-text {
    color: var(--hamat-text-light);
    line-height: 1.9;
    font-size: 1.05rem;
}

.hamat-body-text p { margin: 0 0 12px; }

.hamat-quote {
    margin: 28px 0 0;
    border-right: 4px solid var(--hamat-accent);
    background: var(--hamat-white);
    padding: 20px 24px;
    border-radius: 0 var(--hamat-radius) var(--hamat-radius) 0;
    box-shadow: var(--hamat-shadow);
    font-style: italic;
    font-weight: 600;
    font-size: 1rem;
    color: var(--hamat-dark);
}

.hamat-quote-ltr {
    border-right: none;
    border-left: 4px solid var(--hamat-accent);
    border-radius: var(--hamat-radius) 0 0 var(--hamat-radius);
}

/* ── Section Titles ──────────────────────────────── */
.hamat-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--hamat-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 28px;
}

.hamat-section-title i {
    color: var(--hamat-accent);
}

/* ── Services Grid ───────────────────────────────── */
.hamat-services-block {
    margin-bottom: 48px;
}

.hamat-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 640px) {
    .hamat-services-grid {
        grid-template-columns: 1fr;
    }
}

.hamat-service-card {
    background: var(--hamat-white);
    border: 1px solid var(--hamat-border);
    border-radius: var(--hamat-radius);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: var(--hamat-transition);
    box-shadow: var(--hamat-shadow);
}

.hamat-service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: transparent;
    transition: var(--hamat-transition);
}

.hamat-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

.hamat-service-card:hover::before {
    background: var(--hamat-accent);
}

/* ── Icon Wrapper ────────────────────────────────── */
.hamat-icon-wrap {
    background: #e6eaf0;
    color: var(--hamat-accent);
    width: 54px; height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    transition: var(--hamat-transition);
    flex-shrink: 0;
}

.hamat-icon-wrap i, .hamat-icon-wrap svg {
    font-size: 22px;
    color: var(--hamat-accent);
    fill: var(--hamat-accent);
}

.hamat-service-card:hover .hamat-icon-wrap {
    background: var(--hamat-dark);
}

.hamat-icon-sm {
    width: 44px; height: 44px;
    font-size: 18px;
    margin-bottom: 0 !important;
}

.hamat-service-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--hamat-dark);
    margin: 0 0 10px;
}

.hamat-service-desc {
    font-size: 0.875rem;
    color: var(--hamat-text-light);
    line-height: 1.7;
    margin: 0;
}

/* ── FAQ ─────────────────────────────────────────── */
.hamat-faq-block { margin-bottom: 40px; }

.hamat-faq-list { display: flex; flex-direction: column; gap: 12px; }

.hamat-faq-item {
    background: var(--hamat-white);
    border: 1px solid var(--hamat-border);
    border-radius: var(--hamat-radius);
    overflow: hidden;
    box-shadow: var(--hamat-shadow);
    transition: var(--hamat-transition);
}

.hamat-faq-btn {
    width: 100%;
    background: var(--hamat-light);
    border: none;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--hamat-dark);
    text-align: right;
    font-family: inherit;
    transition: var(--hamat-transition);
}

.hamat-en .hamat-faq-btn { text-align: left; }

.hamat-faq-btn:hover { background: #e8edf3; }

.hamat-faq-icon {
    font-size: 12px;
    color: var(--hamat-text-light);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.hamat-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-top: 0px solid transparent;
}

.hamat-faq-item.hamat-faq-open .hamat-faq-answer {
    max-height: 300px;
    border-top: 1px solid var(--hamat-border);
}

.hamat-faq-item.hamat-faq-open .hamat-faq-icon {
    transform: rotate(180deg);
    color: var(--hamat-accent);
}

.hamat-faq-answer p {
    padding: 18px 20px;
    color: var(--hamat-text-light);
    line-height: 1.8;
    margin: 0;
    font-size: 0.9rem;
}

/* ── City Image Card ─────────────────────────────── */
.hamat-city-img-card {
    border-radius: 18px;
    overflow: hidden;
    height: 340px;
    position: relative;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.hamat-img-panel {
    display: none;
    position: absolute;
    inset: 0;
}

.hamat-img-panel.hamat-panel-active {
    display: block;
    animation: hamatFadeIn 0.5s ease;
}

.hamat-city-bg-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hamat-city-img-card:hover .hamat-city-bg-img {
    transform: scale(1.07);
}

.hamat-city-bg-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--hamat-dark), #1a365d);
}

.hamat-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(11,31,51,0.90), rgba(11,31,51,0.45) 50%, transparent);
}

.hamat-img-grid-lines {
    position: absolute; inset: 0;
    opacity: 0.10;
    background-image: linear-gradient(to right, #C9A24D 1px, transparent 1px),
                      linear-gradient(to bottom, #C9A24D 1px, transparent 1px);
    background-size: 24px 24px;
}

.hamat-img-content {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    z-index: 2;
}

.hamat-img-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,162,77,0.2);
    color: var(--hamat-accent);
    border: 1px solid rgba(201,162,77,0.35);
    width: fit-content;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hamat-img-badge i, .hamat-img-badge svg {
    font-size: 13px;
    color: var(--hamat-accent);
}

.hamat-img-title {
    color: var(--hamat-white);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ── Why Us Card ─────────────────────────────────── */
.hamat-why-card {
    background: var(--hamat-white);
    border: 1px solid var(--hamat-border);
    border-radius: var(--hamat-radius);
    padding: 28px;
    box-shadow: var(--hamat-shadow);
}

.hamat-why-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--hamat-dark);
    border-bottom: 1px solid var(--hamat-border);
    padding-bottom: 16px;
    margin: 0 0 20px;
}

.hamat-why-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.hamat-why-item:last-child { margin-bottom: 0; }

.hamat-why-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--hamat-dark);
    margin-bottom: 4px;
}

.hamat-why-item span {
    font-size: 0.85rem;
    color: var(--hamat-text-light);
    line-height: 1.6;
}
