/* ==========================================================================
   ALL SCRAP BUYER - DAMMAM, SAUDI ARABIA
   Components & Responsive Layouts (Lite Theme & Clean Styling)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOP UTILITY HEADER
   -------------------------------------------------------------------------- */
.top-bar {
    background-color: var(--bg-surface-alt);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.5rem 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.top-bar-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-item i {
    color: var(--primary);
    font-size: 0.85rem;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-switch-btn {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.lang-switch-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #FFFFFF;
}

/* --------------------------------------------------------------------------
   2. MAIN NAVIGATION HEADER
   -------------------------------------------------------------------------- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-normal);
}

.main-header.scrolled {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1.25rem;
    flex-wrap: nowrap; /* Prevent double line wrapping */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1.3rem;
}

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

.logo-brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.1;
    white-space: nowrap;
}

.logo-brand span {
    color: var(--primary);
}

.logo-location {
    font-size: 0.68rem;
    color: var(--accent-emerald);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
    flex-wrap: nowrap; /* Strictly single line on desktop */
    margin: 0;
    padding: 0;
}

.nav-menu li {
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    padding: 0.4rem 0;
    position: relative;
    white-space: nowrap; /* Prevent menu item text from wrapping to 2 lines */
    display: block;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--primary);
    transition: var(--transition-fast);
    border-radius: 2px;
}

[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.nav-mobile-cta {
    display: none; /* Only visible inside mobile drawer */
}

/* Backdrop Overlay for Mobile Navigation Drawer */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Medium Desktop / Laptops (1025px to 1240px) */
@media (min-width: 1025px) and (max-width: 1240px) {
    .navbar {
        gap: 0.85rem;
    }

    .nav-menu {
        gap: 0.9rem;
    }

    .nav-link {
        font-size: 0.84rem;
    }

    .logo-brand {
        font-size: 1.15rem;
    }

    .nav-actions .btn {
        padding: 0.65rem 1.1rem;
        font-size: 0.85rem;
    }
}

.mobile-toggle {
    display: none;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.mobile-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   3. LIVE SCRAP MARKET TICKER
   -------------------------------------------------------------------------- */
.market-ticker {
    background: var(--bg-surface-alt);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ticker-label {
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    z-index: 2;
}

.ticker-items-container {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    animation: tickerScroll 32s linear infinite;
}

.ticker-items-container:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

[dir="rtl"] @keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.ticker-item strong {
    color: var(--text-primary);
}

.ticker-price {
    color: var(--primary);
    font-weight: 700;
}

.ticker-change {
    font-size: 0.72rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-weight: 600;
}

.ticker-change.up {
    color: #065F46;
    background: var(--accent-emerald-light);
}

/* --------------------------------------------------------------------------
   4. HERO SECTION
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   4. HERO SECTION WITH BACKGROUND SLIDER & CENTERED ALIGNMENT
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 6rem 0 6.5rem 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s ease-in-out, transform 7s ease-out;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.70) 0%, rgba(3, 7, 18, 0.88) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-content .badge-gold {
    background: rgba(15, 23, 42, 0.85);
    color: #FDE047;
    border: 1px solid rgba(253, 224, 71, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.15;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    color: #FFFFFF !important;
    text-align: center;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95);
}

.hero-content h1 .text-gradient-gold {
    color: #FDE047 !important;
    background: linear-gradient(135deg, #FFFFFF 0%, #FEF08A 45%, #FACC15 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.95));
}

.hero-content p {
    font-size: 1.15rem;
    color: #F8FAFC !important;
    margin-bottom: 2rem;
    max-width: 680px;
    line-height: 1.65;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    width: 100%;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-size: 1.9rem;
    color: #FDE047;
    margin-bottom: 0.2rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.stat-item p {
    font-size: 0.88rem;
    color: #E2E8F0;
    margin-bottom: 0;
    font-weight: 600;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
    z-index: 4;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dots .dot.active,
.slider-dots .dot:hover {
    background: var(--accent-gold);
    width: 32px;
    border-radius: 10px;
}

/* Quick Quote Card inside Hero */
.hero-quote-card {
    padding: 2rem;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.hero-quote-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.hero-quote-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

select.form-control {
    background-color: #FFFFFF;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. CALCULATOR SECTION
   -------------------------------------------------------------------------- */
.calculator-section {
    padding: 5rem 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-subtle);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: stretch;
}

.calc-box {
    padding: 2rem;
    background: var(--bg-body);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.calc-result-box {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.calc-price-display {
    font-size: clamp(2.2rem, 4vw, 2.9rem);
    font-weight: 800;
    color: var(--accent-emerald);
    margin: 0.75rem 0;
    font-feature-settings: "tnum";
    letter-spacing: -0.02em;
}

.calc-breakdown {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #DCFCE7;
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    margin: 1.25rem 0;
    text-align: left;
}

[dir="rtl"] .calc-breakdown {
    text-align: right;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-bottom: 1px solid #F1F5F9;
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row strong {
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   6. ABOUT & WHO WE ARE
   -------------------------------------------------------------------------- */
.about-section {
    padding: 5rem 0;
    background: var(--bg-surface-alt);
    border-bottom: 1px solid var(--border-subtle);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
}

.about-badge-card {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: #FFFFFF;
    border: 1px solid #FDE68A;
    padding: 1rem 1.4rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

[dir="rtl"] .about-badge-card {
    right: auto;
    left: -15px;
}

.about-badge-card i {
    font-size: 1.8rem;
    color: var(--primary);
}

.about-badge-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.about-badge-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    margin: 1.75rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.feature-item i {
    color: var(--accent-emerald);
    font-size: 1rem;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   7. TYPES OF SCRAP METAL (CATALOG)
   -------------------------------------------------------------------------- */
.materials-section {
    padding: 5rem 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-subtle);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-full);
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    background: #E2E8F0;
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.materials-filter-bar {
    max-width: 480px;
    margin: 0 auto 2.5rem auto;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.material-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
}

.material-card:hover {
    transform: translateY(-3px);
    border-color: #CBD5E1;
    box-shadow: var(--shadow-md);
}

.material-img-wrapper {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: var(--bg-surface-alt);
}

.material-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.material-card:hover .material-img {
    transform: scale(1.04);
}

.material-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xs);
}

[dir="rtl"] .material-tag {
    left: auto;
    right: 0.75rem;
}

.material-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.material-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.material-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    line-height: 1.55;
}

.material-specs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-subtle);
}

.material-price {
    font-weight: 700;
    color: var(--accent-emerald);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   8. SERVICES SECTION
   -------------------------------------------------------------------------- */
.services-section {
    padding: 5rem 0;
    background: var(--bg-surface-alt);
    border-bottom: 1px solid var(--border-subtle);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.service-card {
    padding: 2.2rem 1.8rem;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: var(--transition-normal);
}

.service-card:hover {
    border-color: #CBD5E1;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. SAUDI VISION 2030 BANNER
   -------------------------------------------------------------------------- */
.vision-banner {
    padding: 4.5rem 0;
    background: #ECFDF5;
    border-bottom: 1px solid #A7F3D0;
    position: relative;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.vision-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    color: #064E3B;
    margin-bottom: 0.85rem;
}

.vision-content p {
    font-size: 1.05rem;
    color: #047857;
    margin-bottom: 1.75rem;
    max-width: 800px;
    line-height: 1.65;
}

.compliance-badges {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.compliance-box {
    background: #FFFFFF;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid #A7F3D0;
    box-shadow: var(--shadow-xs);
}

.compliance-box h5 {
    color: #065F46;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.compliance-box span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. LEADERSHIP & CEO SECTION
   -------------------------------------------------------------------------- */
.ceo-section {
    padding: 5rem 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-subtle);
}

.ceo-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 3.5rem;
    align-items: center;
}

.ceo-grid img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
}

.ceo-card {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
}

.ceo-quote-icon {
    font-size: 3rem;
    color: #E2E8F0;
    position: absolute;
    top: 1.25rem;
    right: 1.75rem;
}

[dir="rtl"] .ceo-quote-icon {
    right: auto;
    left: 1.75rem;
}

.ceo-message {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.ceo-info h4 {
    font-size: 1.15rem;
    color: var(--primary);
}

.ceo-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. PICKUP REQUEST MODAL
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

[dir="rtl"] .modal-close {
    right: auto;
    left: 1.25rem;
}

.modal-close:hover {
    background: #EF4444;
    color: #FFFFFF;
    border-color: #EF4444;
}

.photo-upload-zone {
    border: 2px dashed #CBD5E1;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    background: var(--bg-surface-alt);
    transition: var(--transition-fast);
}

.photo-upload-zone:hover {
    border-color: var(--primary);
    background: #FFFBEB;
}

.photo-upload-zone i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

/* --------------------------------------------------------------------------
   12. FLOATING CONTACT ACTIONS
   -------------------------------------------------------------------------- */
.floating-actions {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

[dir="rtl"] .floating-actions {
    right: auto;
    left: 1.5rem;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
    transition: var(--transition-fast);
    text-decoration: none;
}

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

.float-wa {
    background: #16A34A;
}

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

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--bg-surface-alt);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem 0;
    color: var(--text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   14. COMPREHENSIVE RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

/* Laptops & Tablets Landscape (<= 1024px) */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .calc-grid, 
    .about-grid, 
    .ceo-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Tablets Landscape, Portrait & Mobile Drawer (<= 1024px) */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-subtle);
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 1.25rem 1.5rem 1.5rem 1.5rem;
        z-index: 999;

        /* Smooth drawer slide/fade animation */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 0.75rem;
        font-size: 1rem;
        color: var(--text-primary);
        border-bottom: 1px solid var(--border-subtle);
        border-radius: var(--radius-sm);
        transition: var(--transition-fast);
        white-space: nowrap;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: var(--primary-light);
        color: var(--primary);
        padding-left: 1rem;
        padding-right: 1rem;
    }

    [dir="rtl"] .nav-link:hover,
    [dir="rtl"] .nav-link.active {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-mobile-cta {
        display: block;
        margin-top: 1rem;
        padding-top: 0.5rem;
    }

    .nav-mobile-cta .btn {
        width: 100%;
        padding: 0.85rem;
        font-size: 0.95rem;
        box-shadow: var(--shadow-md);
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .nav-actions .btn-primary {
        padding: 0.5rem 0.85rem;
        font-size: 0.82rem;
    }
}

/* Mobile Screens (<= 640px) */
@media (max-width: 640px) {
    .nav-actions .btn-primary {
        display: none; /* Hide header CTA on mobile screens; mobile drawer provides full-width CTA */
    }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    .top-bar-info {
        gap: 0.8rem;
    }

    .top-bar-item:nth-child(3) {
        display: none; /* Hide hours on mobile to keep top-bar concise */
    }

    .hero {
        padding: 3rem 0 3.5rem 0;
    }

    .hero-content h1 {
        font-size: 1.85rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .about-img, 
    .ceo-grid img {
        height: 250px;
    }

    .about-badge-card {
        position: relative;
        bottom: auto;
        right: auto;
        left: auto;
        margin-top: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Small Mobile Screens (<= 480px) */
@media (max-width: 480px) {
    .navbar {
        height: 64px;
    }

    .nav-menu {
        top: 64px;
    }

    .logo-brand {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .nav-actions .btn-primary {
        display: none; /* Hide duplicate quote button on ultra-small screens, hamburger remains */
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .materials-grid {
        grid-template-columns: 1fr;
    }

    .hero-quote-card, 
    .calc-box, 
    .calc-result-box, 
    .ceo-card, 
    .modal-container {
        padding: 1.25rem;
    }

    .calc-price-display {
        font-size: 2rem;
    }

    .floating-actions {
        bottom: 1rem;
        right: 1rem;
    }

    [dir="rtl"] .floating-actions {
        right: auto;
        left: 1rem;
    }

    .float-btn {
        width: 46px;
        height: 46px;
    }
}
