/* -------------------------------------------------------------
   Barakat Elektrik - Design System & Custom Stylesheet (CSS)
   ------------------------------------------------------------- */

/* Root Variables */
:root {
    --primary: #D71920;
    --primary-hover: #b81218;
    --primary-rgb: 215, 25, 32;
    --secondary: #1A1A1A;
    --secondary-rgb: 26, 26, 26;
    --dark-gray: #333333;
    --light-gray: #666666;
    --bg-light: #F8F9FA;
    --bg-card: #FFFFFF;
    --bg-body: #FFFFFF;
    --white: #FFFFFF;
    
    --success: #25D366; /* WhatsApp Green */
    --success-hover: #1ebd59;
    --info-blue: #0A84FF; /* Cooling/AC blue indicator */
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 8px 20px rgba(215, 25, 32, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    --container-width: 1200px;
}

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Layouts */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

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

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

.w-100 {
    width: 100%;
}

/* Section Header styling */
.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

.sub-title {
    display: inline-block;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 4px 12px;
    background-color: rgba(215, 25, 32, 0.08);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: 38px;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.title-bar {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 0 auto 20px;
    border-radius: var(--radius-full);
}

.section-header.text-left .title-bar {
    margin: 0 0 20px 0;
}

.section-desc-center {
    color: var(--light-gray);
    font-size: 18px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
    .section-desc-center {
        font-size: 16px;
    }
}

/* Custom Buttons styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(215, 25, 32, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}

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

.btn-whatsapp {
    background-color: var(--success);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    background-color: var(--success-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.35);
}

.btn-icon-right {
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon-right {
    transform: translateX(4px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

/* Header / Navigation styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
}

.main-header.scrolled {
    padding: 10px 0;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition-fast);
}

.main-header.scrolled .header-container {
    height: 70px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--primary);
    transition: var(--transition-fast);
}

.main-header.scrolled .brand-logo {
    width: 44px;
    height: 44px;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.accent-text {
    color: var(--primary);
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--dark-gray);
    position: relative;
    padding: 8px 0;
}

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

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

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

.nav-cta-mobile {
    display: none;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--secondary);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

/* Hamburger menu transformation when active */
.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 991px) {
    .btn-call-desktop {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 100px 30px 40px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: right var(--transition-smooth);
        z-index: 1050;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 24px;
    }
    
    .nav-link {
        font-size: 18px;
        display: block;
    }
    
    .nav-cta-mobile {
        display: block;
        margin-top: auto;
    }
    
    .btn-call {
        width: 100%;
    }
}

/* Hero Section styles */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%), 
                url('../images/hero_bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
    color: var(--white);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(215, 25, 32, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--success);
    animation: flash 1.5s infinite;
}

.hero-title {
    font-size: 52px;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.hero-subtitle {
    display: block;
    font-size: 32px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-logo-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform var(--transition-smooth);
}

.hero-logo-card:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-5px);
}

.hero-brand-logo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 4px solid var(--primary);
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.rating-info {
    margin-top: 10px;
}

.stars {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 8px;
}

.stars i {
    width: 18px;
    height: 18px;
    fill: #FFB800;
    color: #FFB800;
}

.rating-info span {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    display: block;
}

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

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

.hero-wave .shape-fill {
    fill: var(--bg-body);
}

@media (max-width: 991px) {
    .hero-section {
        padding-top: 140px;
        padding-bottom: 80px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        justify-content: center;
    }
    
    .hero-logo-card {
        transform: none;
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .btn {
        width: 100%;
    }
}

/* Services Section styles */
.services-section {
    background-color: var(--bg-body);
}

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

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.service-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(215, 25, 32, 0.1);
}

.card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.service-card:hover .card-img {
    transform: scale(1.08);
}

.service-icon-badge {
    position: absolute;
    bottom: -24px;
    right: 24px;
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.service-icon-badge i {
    width: 24px;
    height: 24px;
}

.service-icon-badge.color-red {
    background: linear-gradient(135deg, #FF3B30 0%, #D71920 100%);
}

.service-icon-badge.color-blue {
    background: linear-gradient(135deg, #0A84FF 0%, #0056B3 100%);
}

.service-icon-badge.color-dark {
    background: linear-gradient(135deg, #48484A 0%, #1A1A1A 100%);
}

.service-card-content {
    padding: 40px 30px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.service-summary {
    color: var(--light-gray);
    font-size: 15px;
    margin-bottom: 24px;
}

.service-list {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--dark-gray);
}

.list-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.service-card:nth-child(2) .list-icon {
    color: var(--info-blue); /* Cooling blue icon indicator for AC service */
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary);
    transition: var(--transition-fast);
    font-size: 15px;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 20px;
    margin-top: auto;
}

.card-btn i {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.service-card:hover .card-btn {
    color: var(--primary);
}

.service-card:hover .card-btn i {
    transform: translateX(4px);
}

/* Why Choose Us Section styles */
.why-us-section {
    background-color: var(--bg-light);
}

.why-us-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.why-us-info {
    max-width: 100%;
}

.why-us-desc {
    font-size: 18px;
    color: var(--light-gray);
    margin-bottom: 40px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.advantage-item {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(215, 25, 32, 0.08);
}

.advantage-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: rgba(215, 25, 32, 0.06);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon i {
    width: 24px;
    height: 24px;
}

.advantage-text h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.advantage-text p {
    font-size: 14px;
    color: var(--light-gray);
    line-height: 1.5;
}

/* About Section styles */
.about-section {
    background-color: var(--bg-body);
}

.about-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

@media (max-width: 991px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-image-card {
    position: relative;
    max-width: 480px;
    width: 100%;
}

.about-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 5px solid var(--primary);
    z-index: 5;
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.experience-badge .text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .experience-badge {
        bottom: 15px;
        left: 15px;
        padding: 16px;
    }
    
    .experience-badge .years {
        font-size: 28px;
    }
    
    .experience-badge .text {
        font-size: 10px;
    }
}

.about-content {
    max-width: 550px;
}

.about-content .section-title {
    text-align: left;
}

.about-content .title-bar {
    margin: 0 0 20px 0;
}

.about-lead {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.about-text {
    color: var(--light-gray);
    font-size: 16px;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--light-gray);
    margin-top: 4px;
}

@media (max-width: 480px) {
    .about-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-item {
        width: calc(50% - 10px);
    }
}

/* Contact Section styles */
.contact-section {
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: stretch;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    background-color: var(--secondary);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-card h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 12px;
}

.contact-card-desc {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    margin-bottom: 40px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex-grow: 1;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.info-icon i {
    width: 22px;
    height: 22px;
}

.info-icon.bg-red {
    background-color: var(--primary);
}

.info-icon.bg-whatsapp {
    background-color: var(--success);
}

.info-icon.bg-dark {
    background-color: rgba(255,255,255,0.1);
}

.info-text span {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-text strong {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.contact-socials {
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.contact-socials span {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Contact Form styling */
.contact-form-wrapper {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-title {
    margin-bottom: 30px;
}

.form-title h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.form-title p {
    color: var(--light-gray);
    font-size: 15px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--light-gray);
    pointer-events: none;
}

.textarea-icon {
    top: 16px;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1.5px solid #E5E5E5;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--secondary);
    outline: none;
    transition: var(--transition-fast);
    background-color: #FAFAFA;
}

.input-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.08);
}

.form-alert {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    display: none;
}

.form-alert.success {
    display: block;
    padding: 12px;
    background-color: rgba(37, 211, 102, 0.1);
    color: #1a7f3f;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.form-alert.error {
    display: block;
    padding: 12px;
    background-color: rgba(215, 25, 32, 0.1);
    color: #b81218;
    border: 1px solid rgba(215, 25, 32, 0.2);
}

/* Map Section styles */
.map-section {
    position: relative;
    background-color: var(--bg-body);
}

.map-card-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: -60px;
    z-index: 5;
    background-color: var(--bg-card);
}

.map-iframe-container {
    height: 450px;
    width: 100%;
}

.map-iframe-container iframe {
    filter: grayscale(0.2) contrast(1.1);
}

.map-info-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 320px;
    z-index: 10;
    border: 1px solid rgba(0,0,0,0.05);
}

.map-info-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--primary);
    overflow: hidden;
    margin-bottom: 20px;
}

.map-info-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-info-overlay h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.map-info-overlay p {
    font-size: 14px;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.map-info-overlay p i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.map-info-overlay .btn {
    margin-top: 15px;
}

@media (max-width: 768px) {
    .map-info-overlay {
        position: relative;
        top: 0;
        left: 0;
        max-width: 100%;
        margin: 20px;
        border-radius: var(--radius-md);
    }
    
    .map-iframe-container {
        height: 300px;
    }
}

/* Floating WhatsApp Widget styles */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
    text-decoration: none;
}

.whatsapp-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background-color: var(--success);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: transform var(--transition-fast), background-color var(--transition-fast);
    position: relative;
}

.whatsapp-icon-wrapper i {
    width: 32px;
    height: 32px;
    fill: none;
}

.whatsapp-badge {
    background-color: var(--secondary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    pointer-events: none;
}

.floating-whatsapp:hover .whatsapp-badge {
    opacity: 1;
    transform: translateX(0);
}

.floating-whatsapp:hover .whatsapp-icon-wrapper {
    transform: scale(1.1);
    background-color: var(--success-hover);
}

/* Make WhatsApp text visible by default on mobile for better CTA conversion */
@media (max-width: 768px) {
    .whatsapp-badge {
        opacity: 1;
        transform: none;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .whatsapp-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-icon-wrapper i {
        width: 26px;
        height: 26px;
    }
    
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        gap: 8px;
    }
}

/* Footer Section styles */
.main-footer {
    background-color: var(--secondary);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 120px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 991px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

@media (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.brand-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.brand-col .footer-logo img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--primary);
}

.brand-col .footer-logo span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    color: var(--white);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-socials a:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.links-col ul, .services-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-col a, .services-col a {
    font-size: 14px;
    transition: var(--transition-fast);
}

.links-col a:hover, .services-col a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer-contact-info li i {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-info li div {
    display: flex;
    flex-direction: column;
}

.footer-contact-info span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact-info strong {
    color: var(--white);
    font-size: 15px;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    font-size: 14px;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

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

@media (max-width: 576px) {
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

/* Animations */
@keyframes flash {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.pulse-effect {
    position: relative;
}

.pulse-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Intersection Observer Scroll Animations */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ==========================================
   Language Switcher Styles
   ========================================== */
.lang-switcher {
    display: inline-flex;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 4px;
    border-radius: var(--radius-sm);
    gap: 2px;
    margin-right: 16px;
    align-items: center;
}

.hero-section .lang-switcher {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--secondary);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: calc(var(--radius-sm) - 2px);
    cursor: pointer;
    transition: var(--transition-fast);
}

.hero-section .lang-btn {
    color: rgba(255, 255, 255, 0.8);
}

.lang-btn:hover {
    color: var(--primary);
}

.hero-section .lang-btn:hover {
    color: var(--white);
}

.lang-btn.active {
    background-color: var(--primary);
    color: var(--white) !important;
    box-shadow: var(--shadow-sm);
}

.lang-switcher-wrapper-mobile {
    display: none;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    width: 100%;
}

@media (max-width: 991px) {
    .desktop-switcher {
        display: none;
    }
    
    .lang-switcher-wrapper-mobile {
        display: block;
    }
    
    .mobile-switcher {
        width: 100%;
        margin-right: 0;
        background-color: rgba(0, 0, 0, 0.04);
        padding: 6px;
        border-radius: var(--radius-md);
    }
    
    .mobile-switcher .lang-btn {
        flex: 1;
        text-align: center;
        font-size: 14px;
        padding: 10px 0;
        border-radius: var(--radius-sm);
    }
}

/* ==========================================
   Arabic Typography Override
   ========================================== */
html[lang="ar"] {
    font-family: 'Cairo', var(--font-body);
}

html[lang="ar"] h1, 
html[lang="ar"] h2, 
html[lang="ar"] h3, 
html[lang="ar"] h4, 
html[lang="ar"] h5, 
html[lang="ar"] h6,
html[lang="ar"] .btn,
html[lang="ar"] .brand-text,
html[lang="ar"] .nav-link,
html[lang="ar"] .stat-num {
    font-family: 'Cairo', var(--font-heading);
}

/* ==========================================
   Right-to-Left (RTL) Layout Overrides
   ========================================== */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .main-header {
    left: auto;
    right: 0;
}

html[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] .desktop-switcher {
    margin-right: 0;
    margin-left: 16px;
}

html[dir="rtl"] .btn-call-desktop {
    flex-direction: row-reverse;
}

html[dir="rtl"] .mobile-toggle {
    margin-right: 15px;
    margin-left: 0;
}

html[dir="rtl"] .logo-link {
    flex-direction: row;
}

html[dir="rtl"] .nav-menu {
    right: auto;
    left: -100%;
}

html[dir="rtl"] .nav-menu.active {
    left: 0;
    right: auto;
}

html[dir="rtl"] .hero-badge {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero-title {
    letter-spacing: normal;
}

html[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

html[dir="rtl"] .btn-icon-right {
    transform: scaleX(-1);
    margin-right: 8px;
    margin-left: 0;
}

html[dir="rtl"] .btn:hover .btn-icon-right {
    transform: translateX(-4px) scaleX(-1);
}

html[dir="rtl"] .service-icon-badge {
    right: auto;
    left: 24px;
}

html[dir="rtl"] .service-list li {
    flex-direction: row;
}

html[dir="rtl"] .list-icon {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .card-btn {
    flex-direction: row-reverse;
}

html[dir="rtl"] .card-btn i {
    transform: scaleX(-1);
}

html[dir="rtl"] .service-card:hover .card-btn i {
    transform: translateX(-4px) scaleX(-1);
}

html[dir="rtl"] .advantage-icon {
    align-self: flex-start;
}

html[dir="rtl"] .advantage-text h4 {
    text-align: right;
}

html[dir="rtl"] .about-content .section-title {
    text-align: right;
}

html[dir="rtl"] .about-content .title-bar {
    margin: 0 0 20px auto;
}

html[dir="rtl"] .experience-badge {
    left: auto;
    right: -20px;
    border-left: none;
    border-right: 5px solid var(--primary);
}

@media (max-width: 576px) {
    html[dir="rtl"] .experience-badge {
        left: auto;
        right: 15px;
    }
}

html[dir="rtl"] .info-item {
    flex-direction: row;
}

html[dir="rtl"] .contact-socials {
    text-align: right;
}

html[dir="rtl"] .social-icons {
    justify-content: flex-start;
}

html[dir="rtl"] .input-icon {
    left: auto;
    right: 16px;
}

html[dir="rtl"] .input-wrapper input,
html[dir="rtl"] .input-wrapper select,
html[dir="rtl"] .input-wrapper textarea {
    padding: 14px 48px 14px 16px;
}

html[dir="rtl"] .input-wrapper select {
    background-position: left 16px center;
}

html[dir="rtl"] .map-info-overlay {
    left: auto;
    right: 30px;
    text-align: right;
}

html[dir="rtl"] .map-info-overlay p {
    flex-direction: row;
}

html[dir="rtl"] .map-info-overlay p i {
    margin-left: 8px;
    margin-right: 0;
}

html[dir="rtl"] .map-info-overlay .btn-icon-right {
    margin-left: 0;
    margin-right: 8px;
}

@media (max-width: 768px) {
    html[dir="rtl"] .map-info-overlay {
        right: 0;
        margin: 20px;
    }
}

html[dir="rtl"] .floating-whatsapp {
    right: auto;
    left: 30px;
    flex-direction: row-reverse;
}

html[dir="rtl"] .whatsapp-badge {
    transform: translateX(-10px);
}

html[dir="rtl"] .floating-whatsapp:hover .whatsapp-badge {
    transform: translateX(0);
}

@media (max-width: 768px) {
    html[dir="rtl"] .floating-whatsapp {
        left: 20px;
        right: auto;
    }
}

html[dir="rtl"] .footer-col h4::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .links-col a:hover, 
html[dir="rtl"] .services-col a:hover {
    padding-left: 0;
    padding-right: 4px;
}

html[dir="rtl"] .footer-contact-info li {
    flex-direction: row;
}

html[dir="rtl"] .footer-contact-info li i {
    margin-right: 0;
    margin-left: 16px;
}

html[dir="rtl"] .footer-bottom-container {
    flex-direction: row-reverse;
}
