/* ==========================================================================
   Al-Rehal Shared Stylesheet (CSS)
   Colors: Deep Navy Blue (#0F2C59) & Premium Gold/Bronze (#C5A059)
   Font: Tajawal (Google Fonts)
   ========================================================================== */

:root {
    --primary: #0F2C59;       /* Navy Blue from logo */
    --primary-light: #1E4680;
    --primary-dark: #071936;
    --gold: #C5A059;          /* Gold from logo */
    --gold-light: #DFBF82;
    --gold-dark: #A47E3B;
    --bg-light: #F8FAFC;      /* Soft light background */
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --font-family: 'Tajawal', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(15, 44, 89, 0.05);
    --shadow-md: 0 10px 25px rgba(15, 44, 89, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 44, 89, 0.12);
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--gold);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 105px; /* Increased size as requested to leave strong impression */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.03);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: var(--gold-dark);
    font-weight: 700;
}

nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--gold);
    transition: var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

.btn-contact {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    padding: 8px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(15, 44, 89, 0.2);
}

.btn-contact:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(197, 160, 89, 0.3);
}

/* Page Hero for Subpages */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    position: relative;
    padding: 60px 20px 80px;
    text-align: center;
    overflow: hidden;
}

.page-hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--white);
}

.page-hero-subtitle {
    font-size: 1.1rem;
    color: var(--gold-light);
    font-weight: 500;
}

.page-hero-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.page-hero-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 35px;
}

.page-hero-divider .shape-fill {
    fill: var(--bg-light);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--gold);
    border-radius: 2px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Positioned at bottom-left in RTL to prevent blocking right elements */
    background-color: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #20BA5A;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Pulse animation for WhatsApp */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: inherit;
    opacity: 0.7;
    z-index: -1;
    animation: wave 2s infinite;
}

@keyframes wave {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Common Layouts & Cards */
.container {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

/* Image Placeholder Box */
.img-placeholder {
    width: 100%;
    background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    gap: 10px;
    border: 2px dashed #94A3B8;
    transition: var(--transition);
    aspect-ratio: 16/10;
}

.img-placeholder svg {
    width: 45px;
    height: 45px;
    fill: #94A3B8;
    transition: var(--transition);
}

/* Contact Footer Section */
.contact-section {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 70px 20px 40px;
    position: relative;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-logo {
    height: 110px;
    align-self: flex-start;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.contact-lead {
    font-size: 1.2rem;
    color: var(--gold-light);
    font-weight: 700;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold);
}

.contact-icon-box svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.contact-value {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
}

.contact-value:hover {
    color: var(--gold-light);
}

.social-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.social-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    border-right: 4px solid var(--gold);
    padding-right: 15px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--gold);
    color: var(--primary-dark);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.direct-call-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--primary-dark);
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.direct-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
    filter: brightness(1.1);
}

.direct-call-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-brand {
    font-weight: 700;
    color: var(--gold-light);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    .logo-img {
        height: 80px;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
