/* css/global.css */
@import url("header.css");
@import url("footer.css");

/*
 * FONT DEFINITIONS
 * -----------------
 * Note: Amiri Arabic font is now loaded via <link> in the HTML head for performance.
 */

/* Inter Font Family */
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-Regular.woff2') format('woff2'),
         url('/assets/fonts/Inter-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Manrope Font Family */
@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/Manrope-Bold.woff2') format('woff2'),
         url('/assets/fonts/Manrope-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* MODIFIED: Reduced base font size */
html {
    font-size: 13px; /* Base for mobile */
}

@media (min-width: 768px) {
    html {
        font-size: 15px; /* Reduced base for tablets and desktops */
    }
}

body {
    background-color: #fff0e1; /* Brand color */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; /* Use Inter as primary font */
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    color: #374151; /* Default text color (text-gray-700) */
}

/* NEW OR MODIFIED: Inner content container */
.content-container { /* This will be used INSIDE full-width sections */
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.75rem;  /* Horizontal padding for content */
    padding-right: 0.75rem; /* Horizontal padding for content */
}

/* Ensure sections themselves don't have conflicting padding if they are to be full-width */
section {
    padding-top: 3rem; /* Vertical padding can remain on the section */
    padding-bottom: 3rem; /* Vertical padding can remain on the section */
}

/* Special case for sections that have their own background color and need padding inside */
section.full-bleed-bg {
    padding-left: 0;
    padding-right: 0;
}

/* General heading styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #ad5207;
    font-weight: 700;
    line-height: 1.2;
    margin: 1.5rem 0 1rem;
}

/* MODIFIED: Reduced Responsive Typographic Scale */
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.0rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.7rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); }
h5 { font-size: 1.05rem; }
h6 { font-size: 1rem; }


/* MODIFIED: Arabic text styling - Using imported Amiri font for superior readability */
.arabic-text, .item-arabic, .arabic-title {
    font-family: 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif;
    font-weight: 700;
    /* Removed direction: rtl here to rely only on the class in blog-post.css
       or the HTML lang/dir attribute inserted by TinyMCE. */
}

/* General text elements */
p, span, div, li, a, button, input, textarea, select {
    font-family: inherit;
}

/* Primary Button Style */
.btn-primary {
    background-color: #ad5207;
    color: white;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    transition-property: background-color, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}
.btn-primary:hover {
    background-color: #e88e07;
    transform: scale(1.05);
}

/* Brand Color Utilities */
.text-brand-primary { color: #ad5207; }
.bg-brand-primary { background-color: #ad5207; }
.text-brand-secondary { color: #e88e07; }
.bg-brand-background { background-color: #fff0e1; }
.text-gray-600 { color: #4B5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1F2937; }
.text-white { color: #ffffff; }

/* Form Input Styles */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #D1D5DB;
    box-sizing: border-box;
    font-family: inherit;
}
.form-input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: #e88e07;
    box-shadow: 0 0 0 2px #e88e07;
}
label.form-label {
    display: block;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: inherit;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group.message-group {
     margin-bottom: 1.5rem;
}
textarea.form-input {
    resize: vertical;
    font-family: inherit;
}


/* WhatsApp Floating Button Styles */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20b954;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 26px;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover i {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    }
}

.whatsapp-float::before {
    content: "Chat with us!";
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #374151;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
}

.whatsapp-float::after {
    content: "";
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #374151;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
}

.whatsapp-popup-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1001;
    font-family: inherit;
    display: none;
}
.whatsapp-popup-header {
    background-color: #ad5207;
    color: white;
    padding: 10px 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.whatsapp-popup-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}
.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
.whatsapp-popup-body {
    padding: 15px;
}
.whatsapp-popup-body p {
    font-size: 0.9rem;
    color: #4B5563;
    margin-top: 0;
}
.prefilled-messages {
    list-style: none;
    padding: 0;
    margin: 0;
}
.prefilled-messages li {
    margin-bottom: 10px;
}
.prefilled-messages a {
    display: block;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
    color: #374151;
    transition: background-color 0.3s;
}
.prefilled-messages a:hover {
    background-color: #e0e0e0;
}
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 30px;
    }
    #whatsapp-popup {
        bottom: 90px;
        right: 15px;
        width: calc(100% - 30px);
    }
    .whatsapp-float i {
        font-size: 24px;
    }
    .whatsapp-float::before,
    .whatsapp-float::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 10px;
        right: 10px;
        font-size: 20px;
    }
    .whatsapp-float i {
        font-size: 22px;
    }
}

/* ========================================
   UNIFIED BREADCRUMB STYLING
   ======================================== */

/* Base breadcrumb container */
.breadcrumb-nav {
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Base breadcrumb list */
.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Base breadcrumb items */
.breadcrumb li {
    color: #6b7280;
    transition: color 0.2s ease;
}

/* Breadcrumb separators */
.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: #9ca3af;
    font-weight: 400;
    font-size: 1rem;
}

/* Breadcrumb links */
.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

.breadcrumb a:hover {
    color: #ad5207;
    background-color: rgba(173, 82, 7, 0.1);
    text-decoration: none;
}

/* Current page (last item) styling */
.breadcrumb li:last-child {
    color: #374151;
    font-weight: 600;
}

/* ========================================
   DARK BACKGROUND BREADCRUMB VARIANT
   ======================================== */

/* Dark background breadcrumb container */
.breadcrumb-dark-bg .breadcrumb-nav {
    margin-bottom: 0;
    padding-top: 20px; /* Updated padding */
}

/* Dark background breadcrumb styling */
.breadcrumb-dark-bg .breadcrumb {
    font-size: 0.9rem;
    font-weight: 500;
}

.breadcrumb-dark-bg .breadcrumb li {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.breadcrumb-dark-bg .breadcrumb li:not(:last-child)::after {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.breadcrumb-dark-bg .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.breadcrumb-dark-bg .breadcrumb a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.breadcrumb-dark-bg .breadcrumb li:last-child {
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ========================================
   RESPONSIVE BREADCRUMB STYLING
   ======================================== */

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.8rem;
        gap: 0.375rem;
    }
    
    .breadcrumb li:not(:last-child)::after {
        font-size: 0.875rem;
        margin-left: 0.375rem;
    }
    
    .breadcrumb a {
        padding: 0.125rem 0.25rem;
    }
    
    .breadcrumb-dark-bg .breadcrumb {
        font-size: 0.8rem;
    }
    
    .breadcrumb-dark-bg .breadcrumb a {
        padding: 0.125rem 0.375rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        margin-bottom: 1rem;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
    }
    
    .breadcrumb-dark-bg .breadcrumb-nav {
        padding-top: 0.75rem;
    }
    
    .breadcrumb-dark-bg .breadcrumb {
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .cta-section,
    .whatsapp-float {
        display: none;
    }
    
    .page-title-section,
    .stats-section {
        background: white !important;
        color: black !important;
    }
}