/* ================================================
   MCA Ventures - Custom Styles
   Brand Colors:
   - Teal Green: #0F756A
   - Golden Yellow: #F2C233
   - Charcoal: #2C3E50
   ================================================ */

/* Root Variables */
:root {
    --teal: #0F756A;
    --golden: #F2C233;
    --charcoal: #2C3E50;
    --light-gray: #F8F9FA;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    overflow-x: hidden;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="ltr"] {
    text-align: left;
}

/* Header Styles */
#header {
    transition: var(--transition);
}

#header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-link {
    position: relative;
    color: var(--charcoal);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 3px;
    background: var(--golden);
    transition: var(--transition);
    transform: translateX(50%);
}

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

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

/* Language Switcher */
.lang-switcher {
    background: var(--teal);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    border: 2px solid var(--teal);
    transition: var(--transition);
    cursor: pointer;
}

.lang-switcher:hover {
    background: var(--golden);
    border-color: var(--golden);
    color: var(--charcoal);
}

/* Mobile Menu */
.mobile-nav-link {
    display: block;
    padding: 1rem;
    color: var(--charcoal);
    border-bottom: 1px solid #e5e7eb;
    transition: var(--transition);
    text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--light-gray);
    color: var(--teal);
    padding-right: 1.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--golden);
    color: var(--charcoal);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid var(--golden);
    box-shadow: 0 4px 15px rgba(242, 194, 51, 0.3);
}

.btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 194, 51, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--teal);
    transform: translateY(-3px);
}

.btn-outline-white {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--charcoal);
    transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out 0.2s both;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease-out 0.5s both;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.8s both;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--golden);
    box-shadow: 0 8px 25px rgba(15, 117, 106, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--teal), var(--golden));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid #e5e7eb;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--teal);
    box-shadow: 0 10px 30px rgba(15, 117, 106, 0.2);
}

.service-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--teal), #0a5248);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon-large {
    background: linear-gradient(135deg, var(--golden), #d4a82d);
    transform: scale(1.1);
}

/* Trust Indicators */
.trust-indicator {
    transition: var(--transition);
}

.trust-indicator:hover {
    transform: scale(1.05);
}

/* Footer */
.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-link:hover {
    color: var(--golden);
    padding-right: 0.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(242, 194, 51, 0.2);
    color: var(--golden);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--golden);
    color: var(--charcoal);
    transform: translateY(-5px);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

[dir="rtl"] .whatsapp-float {
    left: auto;
    right: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--teal);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(15, 117, 106, 0.4);
    z-index: 999;
    transition: var(--transition);
}

[dir="rtl"] .scroll-top {
    left: auto;
    right: 30px;
}

.scroll-top:hover {
    background: var(--golden);
    transform: translateY(-5px);
}

.scroll-top.show {
    display: flex;
}

/* Page Header (for internal pages) */
.page-header {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, var(--teal), var(--charcoal));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(242,194,51,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    opacity: 0.3;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--golden));
    margin: 1rem auto;
    border-radius: 2px;
}

/* Timeline Styles (for How We Work page) */
.timeline-item {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    border-right: 4px solid var(--golden);
    margin-bottom: 2rem;
    transition: var(--transition);
}

[dir="ltr"] .timeline-item {
    border-right: none;
    border-left: 4px solid var(--golden);
}

.timeline-item:hover {
    transform: translateX(-10px);
    box-shadow: 0 8px 25px rgba(15, 117, 106, 0.15);
}

[dir="ltr"] .timeline-item:hover {
    transform: translateX(10px);
}

.timeline-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--teal), var(--golden));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
/* =========================================
   Concrete Mix Design – Engineering Hover
   ========================================= */

.mix-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border-top: 4px solid transparent;
}

.mix-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    border-top-color: var(--teal);
}

.mix-card .quality-icon i {
    transition: transform 0.35s ease;
}

.mix-card:hover .quality-icon i {
    transform: scale(1.05);
}

.timeline-closeout {
    border-left-color: var(--teal);
}

/* =========================================
   Concrete QA/QC – Hover + Icon Motion
   ========================================= */

.qc-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.qc-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.qc-card i {
  transition: transform 0.4s ease, color 0.4s ease;
}

.qc-card:hover i {
  transform: scale(1.15) rotate(-3deg);
  color: var(--golden);
}




/* =========================================
   Concrete QA/QC – Card Surface + Glow
   ========================================= */

.qc-card{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 28px 22px;
  will-change: transform;
}

.qc-card:hover{
  border-color: rgba(15,117,106,0.35);
}

.qc-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   Mix Design Process – Step Cards + Icon Motion
   ========================================= */

.mix-step-card{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 30px 22px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}

.mix-step-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(15, 117, 106, 0.12);
  border-color: rgba(242, 194, 51, 0.45);
}

.mix-step-card i{
  transition: transform 0.35s ease, color 0.35s ease, filter 0.35s ease;
}

.mix-step-card:hover i{
  transform: scale(1.12) rotate(2deg);
  color: var(--golden);
  filter: drop-shadow(0 10px 16px rgba(242,194,51,0.20));
}

/* =========================================
   Benefits – Card Hover + Icon Pop
   ========================================= */

.benefit-card{
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 26px 20px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.benefit-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
  border-color: rgba(242,194,51,0.55);
}

.benefit-icon{
  display: inline-block;
  transition: transform 0.35s ease, color 0.35s ease, filter 0.35s ease;
}

.benefit-card:hover .benefit-icon{
  transform: scale(1.15) rotate(-2deg);
  color: var(--teal) !important;
  filter: drop-shadow(0 10px 16px rgba(15,117,106,0.22));
}



/* =========================================
   Fix: Benefits cards inside teal section
   Parent section uses text-white, so ensure card text is dark on white cards
   ========================================= */
.benefit-card,
.benefit-card h3,
.benefit-card p{
  color: var(--charcoal);
}

.benefit-card p{
  color: #4b5563; /* gray-600 */
}

.benefit-card h3{
  color: var(--teal);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .qc-card, .mix-step-card, .benefit-card,
  .qc-card i, .mix-step-card i, .benefit-icon{
    transition: none !important;
    transform: none !important;
    animation: none !important;
    filter: none !important;
  }
}

/* Project Gallery */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(15, 117, 106, 0.2);
}

.project-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 117, 106, 0.95), transparent);
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(15, 117, 106, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

/* Offer Cards */
.offer-card {
    background: linear-gradient(135deg, var(--teal), #0a5248);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.offer-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(242, 194, 51, 0.2) 0%, transparent 70%);
    transition: var(--transition);
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(15, 117, 106, 0.3);
}

.offer-card:hover::before {
    transform: scale(1.5);
}

.offer-icon {
    font-size: 4rem;
    color: var(--golden);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.offer-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.offer-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Team Member Cards */

/* =========================================
   Founder Card – Redesigned (Desktop + Mobile)
   Scoped only to .founder-card to avoid side effects
   ========================================= */

.founder-card{
  max-width: 760px;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

.founder-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(15,117,106,0.18);
}

/* Header */
.founder-card .founder-header{
  padding: 26px 22px 18px; /* tighter bottom to reduce gap */
  text-align: center;
}

.founder-card .team-icon{
  width: 88px;
  height: 88px;
  font-size: 2.6rem;
  margin: 0 auto 12px;
  border-width: 3px;
}

.founder-card .team-name{
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.founder-card .team-role{
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  opacity: 1;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.30);
}

/* Body */
.founder-card .founder-body{
  padding: 18px 22px 22px; /* brings content closer to header */
  text-align: start; /* respects rtl/ltr */
}

.founder-tagline{
  margin-top: 0;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--charcoal);
}

.founder-bio{
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.85;
  color: #4b5563; /* gray-600 */
}

.founder-divider{
  height: 1px;
  background: rgba(15,117,106,0.12);
  margin: 16px 0 14px;
}

.founder-points{
  margin-top: 0;
}

.founder-points li{
  gap: 10px;
}

.founder-points i{
  margin-top: 3px;
}

/* Better list alignment for RTL */
[dir="rtl"] .founder-card .founder-body{
  text-align: right;
}

[dir="rtl"] .founder-points li{
  flex-direction: row;
}

/* Mobile tuning */
@media (max-width: 768px){
  .founder-card{
    max-width: 520px;
    border-radius: 16px;
  }

  .founder-card .founder-header{
    padding: 22px 18px 16px;
  }

  .founder-card .team-icon{
    width: 76px;
    height: 76px;
    font-size: 2.2rem;
  }

  .founder-card .team-name{
    font-size: 1.35rem;
  }

  .founder-card .founder-body{
    padding: 16px 18px 20px;
  }

  .founder-tagline{
    font-size: 1rem;
  }

  .founder-bio{
    font-size: 0.95rem;
  }
}

.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(15, 117, 106, 0.2);
}

.team-header {
    background: linear-gradient(135deg, var(--teal), var(--golden));
    padding: 2rem;
    color: white;
}

.team-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1rem;
    border: 4px solid white;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 1rem;
    opacity: 0.9;
}

.team-body {
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        left: 20px;
    }
    
    [dir="rtl"] .whatsapp-float {
        left: auto;
        right: 20px;
    }
    
    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 80px;
        left: 20px;
    }
    
    [dir="rtl"] .scroll-top {
        left: auto;
        right: 20px;
    }
}

/* Utility Classes */
.text-teal {
    color: var(--teal) !important;
}

.text-golden {
    color: var(--golden) !important;
}

.bg-teal {
    background-color: var(--teal) !important;
}

.bg-golden {
    background-color: var(--golden) !important;
}

.border-teal {
    border-color: var(--teal) !important;
}

.border-golden {
    border-color: var(--golden) !important;
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Success/Error Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Smooth Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle professional logo animation */
@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.logo-reveal {
  animation: logoReveal 900ms ease-out both;
  animation-delay: 120ms;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .logo-reveal {
    animation: none !important;
  }
}
/* Subtle professional logo animation */
@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.logo-reveal {
  animation: logoReveal 900ms ease-out both;
  animation-delay: 120ms;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .logo-reveal {
    animation: none !important;
  }
}




/* =========================================
   Floating Social Icons – Position Fix (no overlap with Scroll-to-Top)
   ========================================= */

.floating-social{
  position: fixed;
  bottom: 170px;     /* ABOVE scroll-to-top (100px) and WhatsApp (30px) */
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
  align-items: center;
}


/* Base button styles */
.floating-social a,
.floating-social .floating-social-toggle{
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
  background: rgba(44, 62, 80, 0.95);
  color: #fff;
  font-size: 22px;
}

/* Hover */
.floating-social a:hover,
.floating-social .floating-social-toggle:hover{
  background: var(--teal);
  transform: translateY(-3px);
}

/* IMPORTANT: never show the toggle arrow on desktop */
.floating-social .floating-social-toggle{ display:none !important; }

/* Mobile behavior: keep stack ABOVE the back-to-top arrow and away from left corner */
@media (max-width: 768px){
  .floating-social{
    left: auto !important;
    right: 20px !important;
    bottom: 140px;   /* ABOVE scroll-to-top (80px) + safe gap */
    gap: 10px;
  }

  .floating-social a,
  .floating-social .floating-social-toggle{
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  /* show toggle only on mobile */
  .floating-social .floating-social-toggle{
    display:flex !important;
    background: var(--teal) !important;
  }
  .floating-social .floating-social-toggle i{
    color: var(--golden) !important;
  }

  /* collapsed by default (only toggle visible) */
  .floating-social:not(.open) a{ display:none; }
}

/* Toggle arrow rotation */
.floating-social.open .floating-social-toggle i{ transform: rotate(180deg); }
.floating-social .floating-social-toggle i{ transition: transform .2s ease; }

/* Phone tooltip (desktop only) */
@media (min-width: 769px){
  .floating-social a.phone{ position:relative; }
  .floating-social a.phone::after{
    content: "+961 3 481141";
    position:absolute;
    top:50%;
    transform: translateY(-50%);
    white-space:nowrap;
    font-size:12px;
    padding:6px 10px;
    border-radius:999px;
    background: rgba(44,62,80,0.95);
    color:#fff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    opacity:0;
    pointer-events:none;
    transition: opacity .2s ease;
  }
  
  
  .floating-social a.phone:hover::after{ opacity:1; }
}

/* Scroll-to-top arrow (mobile): green circle + golden arrow */
@media (max-width: 768px){
  .scroll-top,
  .back-to-top,
  #backToTop,
  .to-top{
    background: var(--teal) !important;
  }
  .scroll-top i, .scroll-top svg,
  .back-to-top i, .back-to-top svg,
  #backToTop i, #backToTop svg,
  .to-top i, .to-top svg{
    color: var(--golden) !important;
    fill: var(--golden) !important;
  }
}



/* === FINAL OVERRIDE: Direction-aware mobile positioning === */

@media (max-width: 768px){
  
  
}



/* === SIZE REDUCTION: Floating Social Icons === */
.floating-social a{
  width: 42px !important;
  height: 42px !important;
  font-size: 16px !important;
}

@media (max-width: 768px){
  .floating-social a{
    width: 38px !important;
    height: 38px !important;
    font-size: 14px !important;
  }
}



/* === UX IMPROVEMENT: WhatsApp ABOVE scroll-to-top arrow === */
.whatsapp-float{
  bottom: 140px !important; /* above arrow */
}

@media (max-width: 768px){
  .whatsapp-float{
    bottom: 120px !important; /* mobile spacing */
  }
}



/* === ALIGNMENT FIX: Floating stack spacing (social / WhatsApp / arrow) === */

/* Keep ALL floating items on the same x-offset */




/* Vertical lanes (desktop) */
.scroll-top{ bottom: 90px !important; }       /* utility */
.whatsapp-float{ bottom: 150px !important; }  /* primary CTA above arrow */
.floating-social{ bottom: 230px !important; } /* social stack above WhatsApp */

/* Mobile lanes (tighter but still non-overlapping) */
@media (max-width: 768px){
  .scroll-top{ bottom: 75px !important; }
  .whatsapp-float{ bottom: 125px !important; }
  .floating-social{ bottom: 190px !important; }
}



/* === FIX: Phone tooltip number reversed in RTL (force LTR rendering) === */
@media (min-width: 769px){
  .floating-social a.phone::after{
    direction: ltr !important;
    unicode-bidi: bidi-override !important;
    text-align: left !important;
  }
}



/* === UX POLISH: Mobile floating buttons – subtle transparency === */
@media (max-width: 768px){
  .whatsapp-float,
  .scroll-top{
    opacity: 0.75;
    backdrop-filter: blur(2px);
  }

  .whatsapp-float:hover,
  .scroll-top:hover{
    opacity: 1;
  }
}



/* === FINAL POLISH: Arrow matches WhatsApp style exactly (mobile) === */
@media (max-width: 768px){
  .scroll-top{
    opacity: 0.75;
    backdrop-filter: blur(2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  }

  .scroll-top:hover,
  .scroll-top:active{
    opacity: 1;
  }
}



/* === FINAL FIX: Arrow above WhatsApp -> charcoal circle + white arrow (NO spacing change) === */
@media (max-width: 768px){
  /* only style, do NOT touch position */
  .scroll-top{
    background: var(--charcoal) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
  }

  .scroll-top i,
  .scroll-top svg{
    color: #ffffff !important;
    fill: #ffffff !important;
  }

  .scroll-top:hover,
  .scroll-top:active,
  .scroll-top:focus{
    background: var(--charcoal) !important;
    color: #ffffff !important;
  }
}



/* === FINAL TWEAK: Scroll arrow size + color + alignment (NO spacing change) === */
@media (max-width: 768px){
  /* Circle stays charcoal */
  .scroll-top{
    background: var(--charcoal) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Arrow smaller + golden */
  .scroll-top i,
  .scroll-top svg{
    color: var(--golden) !important;
    fill: var(--golden) !important;
    font-size: 16px !important;
    line-height: 1;
  }

  /* Ensure perfect alignment with WhatsApp (same center axis) */
  
  
}



/* === BEHAVIOR: Hide arrow by default, show only after scroll (uses existing .show class) === */
@media (max-width: 768px){
  /* do NOT force display on the button */
  .scroll-top{
    display: none !important;
  }

  /* when JS adds .show, it appears */
  .scroll-top.show{
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}



/* === FINAL STYLE: Scroll-to-top (Mobile) – Teal OUTLINE circle + White Arrow === */
@media (max-width: 768px){
  .scroll-top{
    background: transparent !important;
    border: 2px solid var(--teal) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    box-shadow: none !important;
    opacity: 0.8;
    display: none; /* shown only with .show */
    align-items: center;
    justify-content: center;
  }

  .scroll-top.show{
    display: flex !important;
  }

  .scroll-top i,
  .scroll-top svg{
    color: #ffffff !important;
    fill: #ffffff !important;
    font-size: 16px !important;
    line-height: 1;
  }

  .scroll-top:hover,
  .scroll-top:active,
  .scroll-top:focus{
    opacity: 1;
    background: transparent !important;
  }
}



/* === TWEAK: Arrow color adjusted for white backgrounds === */
@media (max-width: 768px){
  .scroll-top i,
  .scroll-top svg{
    color: var(--charcoal) !important;
    fill: var(--charcoal) !important;
  }
}


/* ===== LOGO SIZE UPGRADE (Brand Consistent) ===== */
.header-logo img,
.navbar-logo img {
    height: 80px !important;
    width: auto;
    max-height: 80px;
}

.footer-logo img {
    height: 70px !important;
    width: auto;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .header-logo img,
    .navbar-logo img {
        height: 80px !important;
        max-height: 80px;
    }

    .footer-logo img {
        height: 80px !important;
    }
}


/* ===== LOGO SIZE FIX (for pages not loading Tailwind utilities) ===== */
/* Header logo */
header .logo-container img,
header img[alt="MCA Ventures Logo"]{
  height: 80px !important;
  width: auto !important;
}

/* Footer logo */
footer img[alt="MCA Ventures"],
footer img[alt="MCA Ventures Logo"],
footer img[alt="MCA Ventures Logo"]{
  height: 70px !important;
  width: auto !important;
  max-width: 100%;
}

/* Larger header logo on medium+ screens */
@media (min-width: 768px){
  header .logo-container img,
  header img[alt="MCA Ventures Logo"]{
    height: 80px !important;
  }
}

/* Mobile */
@media (max-width: 768px){
  header .logo-container img,
  header img[alt="MCA Ventures Logo"]{
    height: 80px !important;
  }
  footer img[alt="MCA Ventures"],
  footer img[alt="MCA Ventures Logo"]{
    height: 80px !important;
  }
}


/* ===== ACTIVE NAV LINK EMPHASIS ===== */
.nav-link.active {
    font-weight: 800;
    color: var(--teal);
}

.nav-link.active::after {
    width: 100%;
    background-color: var(--golden);
}

.mobile-nav-link.active {
    font-weight: 800;
    color: var(--teal);
}

/* ===== HEADER PADDING POLISH (Brand Framing) ===== */
header { padding-top: 14px; padding-bottom: 14px; }
@media (max-width: 768px){ header { padding-top: 18px; padding-bottom: 18px; } }


/* ================================
   Floating buttons direction fix
   ================================ */

/* ENGLISH (LTR) → RIGHT */
html:not([dir="rtl"]) .floating-social,
html:not([dir="rtl"]) .whatsapp-float,
html:not([dir="rtl"]) .scroll-top {
    right: 20px !important;
    left: auto !important;
}

/* ARABIC (RTL) → LEFT */
html[dir="rtl"] .floating-social,
html[dir="rtl"] .whatsapp-float,
html[dir="rtl"] .scroll-top {
    left: 20px !important;
    right: auto !important;
}
