/* ===== CSS RESET & BASE ===== */
        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-red: #dc3427;  /* darkened: white text on #E04A3F was 4.02:1, now clears 4.5:1 */
            --primary-red-hover: #e53935;
            --dark-navy: #2a0f0f;
            --dark-navy-light: #2a0f0f;
            --bg-warm: #F5F0EB;
            --bg-white: #FFFFFF;
            --text-dark: #1A1A1A;
            --text-gray: #666d7a;  /* darkened: was 4.27:1 on cream, now clears 4.5:1 */
            --text-light-gray: #6c7686;  /* darkened: was 2.54:1 on white, now clears 4.5:1 */
            --border-light: #E5E7EB;
            --gold-accent: #e53935;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
            --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
            --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
            --transition: all 0.3s ease;
            --font-primary: 'Inter', sans-serif;
            --font-display: 'Inter', sans-serif;
            --transition-base: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
            --red-hover: #e53935;
            --red-accent: #c62828;
            --white: #ffffff;
            --transition-smooth: all 0.3s ease;
            --light-bg: #f8f8f8;
            --whatsapp-green: #25D366;
            --whatsapp-hover: #20BD5A;
            
        }

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

        body {
            font-family: var(--font-primary);
            color: var(--text-dark);
            background-color: var(--bg-warm);
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

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

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

        ul {
            list-style: none;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ===== HEADER ===== */
.header {
  position: fixed; top: 0; 
  left: 0; right: 0; 
  z-index: 1000;
  background: var(--bg-warm); 
  padding: 0 40px; 
  height: 64px;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); height: 56px; }
.header-logo { display: flex; align-items: center; gap: 8px; transition: var(--transition-smooth); }
.header-logo:hover { transform: scale(1.05); }
.header-logo img { height: 60px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a { font-size: 13px; font-weight: 500; color: #333; position: relative; padding: 4px 0; }
.header-nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--red-accent); transition: width 0.3s ease; }
.header-nav a:hover::after { width: 100%; }
.header-nav a:hover { color: var(--red-accent); }

/* Dropdown Menu */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--white); min-width: 220px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-top: 3px solid var(--red-accent);
  opacity: 0; visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-smooth);
  z-index: 1001;
}
.dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block; padding: 12px 20px;
  font-size: 13px; color: #333;
  border-bottom: 1px solid #f0f0f0;
}
.dropdown-menu a:hover {
  background: var(--light-bg);
  color: var(--red-accent);
  padding-left: 24px;
}
.dropdown-menu a:last-child { border-bottom: none; }

.header-right { 
  display: flex; 
  align-items: center; 
  gap: 20px;
  height: 100%;
}
.header-phone { 
  font-size: 13px; 
  color: #555; 
  font-weight: 500; 
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  height: fit-content;
  margin: auto 0;
}
.header-phone:hover { color: var(--red-accent); }
.btn-header {
  background: var(--red-accent); color: var(--white); padding: 10px 22px;
  font-size: 13px; font-weight: 600; border: none; cursor: pointer;
  transition: var(--transition-smooth); display: inline-block; border-radius: 2px;
  align-self: center;
  margin: auto 0;
}
.btn-header:hover { background: var(--red-hover); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(198,40,40,0.4); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; z-index: 1001; }
.hamburger span { width: 24px; height: 2px; background: #333; transition: var(--transition-smooth); transform-origin: center; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== MOBILE NAV ===== */
.mobile-nav{
    display:flex;
    flex-direction:column;
    position:fixed;
    top:60px;
    left:0;
    width:100%;
    background:#fff;
    max-height:0;
    overflow:hidden;
    transition:max-height .4s ease;
    z-index:999;
}
.mobile-nav.open { max-height: 500px; padding: 20px 40px; }
.mobile-nav a { font-size: 15px; font-weight: 500; color: #333; padding: 12px 0; border-bottom: 1px solid #eee; }
.mobile-nav a:hover { color: var(--red-accent); padding-left: 8px; }
.mobile-nav .btn-header { margin-top: 12px; text-align: center; }
.mobile-dropdown{
    max-height:0;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    padding-left:16px;
    transition:max-height .4s ease;
}

.mobile-dropdown.open{
    max-height:300px;
}
.mobile-dropdown a { font-size: 14px; padding: 8px 0; border: none; }

        /* ===== HERO SECTION ===== */
        .hero {
            position: relative;
            height: 420px;
            margin-top: 64px;
            overflow: hidden;
            display: flex;
            align-items: flex-end;
        }

        .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('../../images/projects/Rabigh-3-Independent-Water-Plant.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }


        .hero-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
        }

        .hero-content {
            position: relative;
            z-index: 2;
            padding: 0 48px 48px;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
        }

        .hero-badge {
            display: inline-block;
            padding: 6px 16px;
            background: var(--primary-red);
            color: white;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            border-radius: 4px;
            margin-bottom: 16px;
        }

        .hero-title {
            font-family: var(--font-display);
            font-size: 3rem;
            font-weight: 800;
            color: white;
            line-height: 1.15;
            margin-bottom: 12px;
        }

        .hero-location {
            display: flex;
            align-items: center;
            gap: 8px;
            color: rgba(255,255,255,0.85);
            font-size: 0.9rem;
        }

        .hero-location svg {
            width: 16px;
            height: 16px;
            fill: var(--primary-red);
        }

        /* ===== PROJECT OVERVIEW SECTION ===== */
        .project-section {
            padding: 64px 0;
        }

        .project-grid {
            display: grid;
            grid-template-columns: 1fr 340px;
            gap: 48px;
            align-items: start;
        }

        .section-heading {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 16px;
        }

        .section-text {
            font-size: 0.9rem;
            color: var(--text-gray);
            line-height: 1.7;
            margin-bottom: 32px;
        }

        /* Info Cards */
        .info-cards {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 40px;
        }

        .info-card {
            background: var(--bg-white);
            border: 1px solid var(--border-light);
            border-radius: 12px;
            padding: 20px 24px;
            transition: var(--transition);
        }

        .info-card:hover {
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }

        .info-card-label {
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: var(--text-light-gray);
            margin-bottom: 6px;
        }

        .info-card-value {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-dark);
        }

        /* Project Description */
        .project-description {
            margin-bottom: 40px;
        }

        .project-description .section-heading {
            margin-bottom: 16px;
        }

        .project-description p {
            font-size: 0.9rem;
            color: var(--text-gray);
            line-height: 1.8;
            margin-bottom: 16px;
        }














        /* Location */
        .location-section .section-heading {
            margin-bottom: 12px;
        }

        .location-section p {
            font-size: 0.9rem;
            color: var(--text-gray);
            line-height: 1.8;
        }

        /* ===== SIDEBAR ===== */
        .sidebar {
            position: sticky;
            top: 88px;
        }

        .sidebar-card {
            border-radius: 16px;
            padding: 32px 28px;
            margin-bottom: 16px;
        }

        .sidebar-highlights {
            background: var(--dark-navy);
            color: white;
        }

        .sidebar-label {
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--gold-accent);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .sidebar-label::before,
        .sidebar-label::after {
            content: '';
            width: 20px;
            height: 1px;
            background: var(--gold-accent);
        }

        .sidebar-card-title {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .highlight-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .highlight-item {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 0.85rem;
            color: rgba(255,255,255,0.85);
        }

        .highlight-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .highlight-icon svg {
            width: 12px;
            height: 12px;
            fill: var(--gold-accent);
        }

        .btn-quote {
            display: block;
            width: 100%;
            padding: 14px 24px;
            background: var(--primary-red);
            color: white;
            font-size: 0.9rem;
            font-weight: 600;
            text-align: center;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: var(--transition);
            margin-bottom: 16px;
        }

        .btn-quote:hover {
            background: var(--primary-red-hover);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(224, 74, 63, 0.3);
        }

        .sidebar-services {
            background: var(--bg-white);
            border: 1px solid var(--border-light);
        }

        .services-label {
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--text-light-gray);
            margin-bottom: 16px;
        }

        .services-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .services-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.85rem;
            color: var(--text-dark);
        }

        .services-item svg {
            width: 16px;
            height: 16px;
            fill: var(--primary-red);
            flex-shrink: 0;
        }

        /* ===== FAQ SECTION ===== */
        .faq-section {
            background: var(--dark-navy);
            padding: 80px 0;
            position: relative;
            overflow: hidden;
        }

        .faq-section::before {
            content: '';
            position: absolute;
            top: -100px;
            right: -100px;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
            border-radius: 50%;
        }

        .faq-header {
            text-align: center;
            margin-bottom: 48px;
        }

        .faq-label {
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--gold-accent);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            margin-bottom: 12px;
        }

        .faq-label::before,
        .faq-label::after {
            content: '';
            width: 40px;
            height: 1px;
            background: var(--gold-accent);
        }

        .faq-title {
            font-size: 2rem;
            font-weight: 700;
            color: white;
        }

        .faq-list {
            max-width: 800px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .faq-item {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px;
            overflow: hidden;
            transition: var(--transition);
        }

        .faq-item:hover {
            border-color: rgba(255,255,255,0.15);
        }

        .faq-item.active {
            border-color: var(--gold-accent);
            background: rgba(255,255,255,0.05);
        }

        .faq-question {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 24px;
            cursor: pointer;
            background: none;
            border: none;
            width: 100%;
            text-align: left;
            color: white;
            font-size: 0.9rem;
            font-weight: 500;
            font-family: var(--font-primary);
            transition: var(--transition);
        }

        .faq-question:hover {
            color: var(--gold-accent);
        }

        .faq-arrow {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: var(--transition);
        }

        .faq-item.active .faq-arrow {
            background: var(--gold-accent);
            transform: rotate(180deg);
        }

        .faq-arrow svg {
            width: 14px;
            height: 14px;
            fill: white;
            transition: var(--transition);
        }

        .faq-item.active .faq-arrow svg {
            fill: var(--dark-navy);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease, padding 0.3s ease;
        }

        .faq-item.active .faq-answer {
            max-height: 200px;
        }

        .faq-answer-inner {
            padding: 0 24px 20px;
            font-size: 0.85rem;
            color: rgba(255,255,255,0.7);
            line-height: 1.7;
        }

        /* ===== NAVIGATION CARDS ===== */
        .nav-cards {
            padding: 48px 0;
            background: var(--bg-warm);
        }

        .nav-cards-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            max-width: 900px;
            margin: 0 auto;
        }

        .nav-card {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 20px 24px;
            background: var(--bg-white);
            border: 1px solid var(--border-light);
            border-radius: 12px;
            cursor: pointer;
            transition: var(--transition);
        }

        .nav-card:hover {
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
            border-color: var(--primary-red);
        }

        .nav-card-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--bg-warm);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: var(--transition);
        }

        .nav-card:hover .nav-card-icon {
            background: var(--primary-red);
        }

        .nav-card-icon svg {
            width: 16px;
            height: 16px;
            fill: var(--text-dark);
            transition: var(--transition);
        }

        .nav-card:hover .nav-card-icon svg {
            fill: white;
        }

        .nav-card-label {
            font-size: 0.65rem;
            font-weight: 600;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: var(--text-light-gray);
            margin-bottom: 2px;
        }

        .nav-card-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-dark);
        }

        .nav-card.next {
            flex-direction: row-reverse;
            text-align: right;
        }

        /* ===== FOOTER ===== */
        .footer {
            background: #0A0A0A;
            color: white;
            padding: 64px 0 0;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr;
            gap: 48px;
            padding-bottom: 48px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }

        .footer-logo img { 
    height: 80px; 
    margin-bottom: 16px; 
    transition: var(--transition-smooth);
}
.footer-logo:hover img { transform: scale(1.05); }

        .footer-desc {
            font-size: 0.85rem;
            color: rgba(255,255,255,0.5);
            line-height: 1.7;
            margin-bottom: 16px;
        }

        .footer-cr {
            font-size: 0.75rem;
            color: rgba(255,255,255,0.3);
        }

        .footer-heading {
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: rgba(255,255,255,0.62);
            margin-bottom: 20px;
        }

        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .footer-links a {
            font-size: 0.85rem;
            color: rgba(255,255,255,0.6);
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--primary-red);
            padding-left: 4px;
        }

        .footer-contact-item {
            font-size: 0.85rem;
            color: rgba(255,255,255,0.6);
            margin-bottom: 10px;
            line-height: 1.5;
        }

        .footer-bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 0;
            font-size: 0.75rem;
            color: rgba(255,255,255,0.62);  /* was 0.3 (2.59:1 on near-black); clears 4.5:1 */
        }

        .footer-bottom a {
            /* var(--primary-red) is tuned for the .btn-quote fill (dark,
               so white text passes); as ink directly on this near-black
               footer it only reached 4.3:1. Same red-on-dark tint used
               site-wide for text-on-dark. */
            color: #e8635f;
        }

        .footer-bottom a:hover {
            text-decoration: underline;
        }

      /* ===== WHATSAPP ===== */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; z-index: 998; display: flex; align-items: center; gap: 12px; }
.whatsapp-btn {
  width: 60px; height: 60px; background: var(--whatsapp-green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: var(--transition-smooth); box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  position: relative; text-decoration: none;
}
.whatsapp-btn::before {
  content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%;
  background: var(--whatsapp-green); animation: wa-pulse 2s ease-out infinite; z-index: -1;
}
.whatsapp-btn:hover { background: var(--whatsapp-hover); transform: scale(1.1); box-shadow: 0 6px 25px rgba(37,211,102,0.6); }
.whatsapp-btn svg { width: 30px; height: 30px; fill: var(--white); }
.whatsapp-tooltip {
  background: var(--white); color: var(--text-dark); padding: 10px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  white-space: nowrap; opacity: 0; transform: translateX(10px);
  transition: var(--transition-smooth); pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.8); opacity: 0; } }

        /* ===== SCROLL REVEAL ===== */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
        }

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

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .project-grid {
                grid-template-columns: 1fr;
            }

            .sidebar {
                position: static;
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 16px;
            }

            .sidebar-card {
                margin-bottom: 0;
            }

            .btn-quote {
                grid-column: 1 / -1;
            }
        }

        @media (max-width:768px){

    .header{
    padding:0 15px;
}

.header-logo img{
    height:55px;
}

.mobile-nav.open{
    padding:20px;
}

    .header-nav{
        display:none;
    }

    .header-right{
        display:none;
    }

    .hamburger{
        display:flex;
    }

    .mobile-nav{
        display:flex;
    }

            .header-phone {
                display: none;
            }

            .hamburger {
                display: flex;
            }


            .hero {
                height: 340px;
            }

            .hero-content {
                padding: 0 24px 32px;
            }

            .hero-title {
                font-size: 2rem;
            }

            .info-cards {
                grid-template-columns: 1fr;
            }






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

            .nav-cards-grid {
                grid-template-columns: 1fr;
            }

            .footer-grid {
                grid-template-columns: 1fr;
                gap: 32px;
            }

            .faq-title {
                font-size: 1.5rem;
            }

            .project-section {
                padding: 40px 0;
            }

            .faq-section {
                padding: 60px 0;
            }
        }

        @media (max-width:480px) {
            .hero-title {
                font-size: 1.6rem;
            }
            .container{
    padding-left:15px;
    padding-right:15px;
}

.hero-content{
    padding:0 15px 25px;
}

.hero-title{
    font-size:1.5rem;
    line-height:1.3;
}

.header{
    padding:0 12px;
}

.header-logo img{
    height:48px;
}

            .hero {
                height: 280px;
            }




            .nav-card {
                flex-direction: column;
                text-align: center;
            }

            .nav-card.next {
                flex-direction: column;
                text-align: center;
            }
        }

        @media (min-width: 1400px) {
            .container {
                max-width: 1320px;
            }
        }
        .hero-title{
}

@keyframes heroFloat{
    0%,100%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-10px);
    }
}
.hero-title{
    opacity:0;
    animation: heroTitleReveal 420ms var(--ease-out) forwards;
    animation-delay:0.4s;
}

@keyframes heroTitleReveal{

    0%{
        opacity:0;
        transform:translateY(16px);
    }

    100%{
        opacity:1;
        transform:translateY(0) scale(1);
        filter:blur(0);
    }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed; bottom: 100px; right: 36px; width: 44px; height: 44px;
  background: var(--red-accent); color: var(--white); border: none; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 998;
  box-shadow: 0 4px 15px rgba(198,40,40,0.4);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--red-hover); transform: translateY(-3px); }
@media (max-width: 768px) {
  .scroll-top { bottom: 100px; right: 24px; width: 40px; height: 40px; }
}
