/*
Theme Name: Alhakmii V9 Flat
Theme URI: http://alhakmii.com/
Author: Antigravity AI
Description: Custom theme for Alhakmii - Flattened Structure.
Version: 1.0
*/
:root {
    --primary-color: #0B2545; /* Dark Navy Blue */
    --secondary-color: #C5A880; /* Gold / Bronze */
    --text-color: #333333;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Tajawal', sans-serif; color: var(--text-color); background-color: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Topbar */
.topbar { background-color: #000; color: #fff; padding: 10px 0; font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.contact-info span { margin-left: 20px; }
.contact-info i { color: var(--secondary-color); margin-left: 5px; }
.social-links a { color: #fff; margin-right: 15px; font-size: 16px; transition: var(--transition); }
.social-links a:hover { color: var(--secondary-color); }

/* Header */
.main-header { background-color: var(--primary-color); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo img { height: 60px; background: #fff; padding: 5px; border-radius: 5px; }
.main-nav ul { display: flex; gap: 25px; }
.main-nav a { color: var(--white); font-weight: 500; font-size: 1.1rem; transition: var(--transition); }
.main-nav a:hover { color: var(--secondary-color); }
.header-actions { display: flex; gap: 10px; }
.btn { padding: 10px 20px; border-radius: 5px; font-weight: 700; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; text-align: center; justify-content: center; border: 2px solid transparent;}
.btn-call { background-color: var(--secondary-color); color: var(--white); }
.btn-call:hover { background-color: transparent; color: var(--secondary-color); border-color: var(--secondary-color); }
.btn-whatsapp { background-color: #25D366; color: var(--white); }
.btn-whatsapp:hover { background-color: transparent; color: #25D366; border-color: #25D366; }
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* Hero */
.hero { height: 80vh; position: relative; display: flex; align-items: center; overflow: hidden; background-color: var(--primary-color); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: heroZoom 20s infinite alternate linear; z-index: 0; }
@keyframes heroZoom { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
.hero-overlay { position: absolute; inset: 0; background: rgba(11,37,69,0.75); z-index: 1; }
.hero-pattern { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px); background-size: 20px 20px; z-index: 2; opacity: 0.6; pointer-events: none; }
.hero-content { position: relative; z-index: 3; text-align: center; color: #fff; max-width: 800px; margin: 0 auto; padding: 0 20px; }
.hero-content h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; color: var(--secondary-color); }
.hero-content p { font-size: 1.5rem; margin-bottom: 30px; }
.hero-btns { display: flex; justify-content: center; gap: 15px; }
.btn-gold { background: linear-gradient(135deg, var(--secondary-color), #D6B990); color: #fff; font-size: 1.1rem; padding: 12px 30px; box-shadow: 0 5px 15px rgba(197,168,128,0.4); border: none; }
.btn-gold:hover { background: linear-gradient(135deg, #D6B990, var(--secondary-color)); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(197,168,128,0.6); color: #fff; }
.btn-outline { background-color: transparent; border-color: #fff; color: #fff; font-size: 1.1rem; padding: 12px 30px; }
.btn-outline:hover { background-color: #fff; color: var(--primary-color); transform: translateY(-3px); }

/* Typography */
.section-heading { font-size: 2.5rem; color: var(--primary-color); text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: #666; margin-bottom: 40px; font-size: 1.1rem; }
.text-white { color: #fff; }
.text-white-sub { color: #ccc; text-align: center; margin-bottom: 40px; font-size: 1.1rem; }

/* Services Grid */
.services-section { padding: 80px 0; position: relative; background-image: url('hero-bg.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
.services-section::before { content: ''; position: absolute; inset: 0; background: rgba(11,37,69, 0.85); z-index: 1; }
.services-section::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px); background-size: 20px 20px; z-index: 2; opacity: 0.5; pointer-events: none; }
.services-section .container { position: relative; z-index: 3; }
.services-section .section-heading { color: var(--secondary-color); text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.services-section .section-sub { color: #ddd; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.svc-card { background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.1); cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; }
.svc-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 35px rgba(0,0,0,0.3); border-color: var(--secondary-color); z-index: 10; position: relative; }
.svc-card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.6s ease; }
.svc-card:hover img { transform: scale(1.08); }
.svc-label { padding: 15px; text-align: center; font-weight: 800; color: var(--primary-color); font-size: 1.15rem; flex-grow: 1; display: flex; align-items: center; justify-content: center;}

/* Stats Bar */
.stats-bar { background: var(--white); padding: 0; margin-top: -50px; position: relative; z-index: 10; }
.stats-bar-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--white); border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.12); overflow: hidden; }
.stat-item { text-align: center; padding: 35px 20px; border-left: 1px solid #eee; transition: all 0.3s ease; }
.stat-item:last-child { border-left: none; }
.stat-item:hover { background: var(--primary-color); color: #fff; }
.stat-item:hover .stat-num, .stat-item:hover i { color: var(--secondary-color); }
.stat-item:hover p { color: #ccc; }
.stat-item i { font-size: 2rem; color: var(--secondary-color); margin-bottom: 10px; display: block; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--primary-color); display: block; margin-bottom: 5px; }
.stat-item p { color: #666; font-weight: 600; font-size: 0.95rem; margin: 0; }

/* About */
.about-section { padding: 80px 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { margin-bottom: 20px; color: var(--primary-color); }
.about-text p { font-size: 1.15rem; color: #555; margin-bottom: 20px; line-height: 1.8; }
.about-img img { width: 100%; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: 4px solid var(--white); }

/* Why Us */
.why-us-section { padding: 80px 0; background: var(--primary-color); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; margin-top: 10px; }
.why-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 35px 20px; text-align: center; color: #fff; transition: all 0.4s ease; }
.why-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-8px); border-color: var(--secondary-color); }
.why-card i { font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 15px; display: block; }
.why-card h4 { font-size: 1.2rem; margin-bottom: 10px; color: var(--secondary-color); }
.why-card p { font-size: 0.95rem; color: #bbb; line-height: 1.7; margin: 0; }
/* Promo Banner */
.promo-banner { padding: 40px 0; background: var(--light-bg); }
.promo-box { background: linear-gradient(to left, var(--primary-color) 30%, rgba(11, 37, 69, 0.8) 65%, rgba(11, 37, 69, 0) 100%), url('banner-promo.jpg') no-repeat center left / cover; border-radius: 20px; padding: 50px 50px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 15px 40px rgba(11, 37, 69, 0.15); position: relative; overflow: hidden; border-right: 5px solid var(--secondary-color); }
.promo-text { max-width: 65%; position: relative; z-index: 2; }
.promo-text h2 { color: #fff; font-size: 2.2rem; font-weight: 800; margin-bottom: 15px; }
.promo-text p { color: #ccc; font-size: 1.1rem; line-height: 1.7; margin-bottom: 0; }
.promo-action { position: relative; z-index: 2; }

/* Projects Gallery */
.projects-section { padding: 80px 0; background: var(--light-bg); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.project-card { position: relative; border-radius: 12px; overflow: hidden; height: 280px; cursor: pointer; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover img { transform: scale(1.1); }
.project-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(11,37,69,0.9)); padding: 25px 20px 20px; color: #fff; transform: translateY(100%); transition: transform 0.4s ease; }
.project-card:hover .project-overlay { transform: translateY(0); }
.project-overlay h4 { font-size: 1.15rem; margin-bottom: 5px; color: var(--secondary-color); }
.project-overlay p { font-size: 0.9rem; color: #ccc; margin: 0; }

/* Video Section */
.video-section { padding: 80px 0; background: #0a1f3a; }
.video-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.video-text h2 { margin-bottom: 20px; }
.video-text p { color: #bbb; font-size: 1.1rem; line-height: 1.8; margin-bottom: 30px; }
.video-placeholder { position: relative; border-radius: 15px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.3); }
.video-placeholder img { width: 100%; height: 300px; object-fit: cover; display: block; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; background: rgba(197,168,128,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; }
.play-btn i { color: #fff; font-size: 1.8rem; margin-right: -3px; }
.play-btn:hover { background: var(--secondary-color); transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 30px rgba(197,168,128,0.5); }

/* Clients */
.clients-section { padding: 80px 0; background: var(--white); }
.clients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
.client-logo { background: var(--light-bg); border-radius: 12px; padding: 30px 15px; text-align: center; transition: all 0.3s ease; border: 2px solid transparent; }
.client-logo:hover { border-color: var(--secondary-color); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.client-logo i { font-size: 2.5rem; color: var(--primary-color); display: block; margin-bottom: 10px; }
.client-logo span { font-weight: 700; color: var(--primary-color); font-size: 0.9rem; }

/* Testimonials */
.testimonials-section { padding: 80px 0; background: var(--light-bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.testimonial-card { background: var(--white); border-radius: 12px; padding: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.06); transition: all 0.3s ease; border-top: 3px solid var(--secondary-color); }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.stars { margin-bottom: 15px; }
.stars i { color: #FFB800; font-size: 1.1rem; margin-left: 2px; }
.testimonial-card > p { color: #555; font-size: 1rem; line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 45px; height: 45px; border-radius: 50%; background: var(--primary-color); display: flex; align-items: center; justify-content: center; }
.author-avatar i { color: var(--secondary-color); font-size: 1.2rem; }
.testimonial-author strong { display: block; color: var(--primary-color); font-size: 0.95rem; }
.testimonial-author span { color: #888; font-size: 0.85rem; }

/* Work Steps */
.steps-section { padding: 80px 0; background: var(--primary-color); position: relative; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.step-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 35px 20px; text-align: center; color: #fff; transition: all 0.4s ease; position: relative; }
.step-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-8px); }
.step-num { position: absolute; top: -15px; right: 20px; width: 35px; height: 35px; background: var(--secondary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; color: #fff; }
.step-card i { font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 15px; display: block; }
.step-card h4 { font-size: 1.15rem; margin-bottom: 10px; }
.step-card p { font-size: 0.9rem; color: #bbb; line-height: 1.6; margin: 0; }

/* Blog */
.blog-section { padding: 80px 0; background: var(--white); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.blog-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.06); transition: all 0.4s ease; border: 1px solid #eee; }
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover img { transform: scale(1.05); }
.blog-body { padding: 25px; }
.blog-date { color: var(--secondary-color); font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 10px; }
.blog-date i { margin-left: 5px; }
.blog-body h4 { color: var(--primary-color); font-size: 1.15rem; margin-bottom: 10px; line-height: 1.5; }
.blog-body p { color: #666; font-size: 0.95rem; line-height: 1.7; margin-bottom: 15px; }
.blog-link { color: var(--secondary-color); font-weight: 700; font-size: 0.95rem; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 5px; }
.blog-link:hover { color: var(--primary-color); gap: 10px; }

/* Contact */
.contact-section { padding: 80px 0; background-color: var(--primary-color); }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.contact-card { background: rgba(255,255,255,0.1); padding: 40px 20px; border-radius: 15px; text-align: center; color: #fff; transition: var(--transition); border: 1px solid rgba(255,255,255,0.1); }
.contact-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-5px); }
.contact-card i { font-size: 3rem; color: var(--secondary-color); margin-bottom: 20px; }
.contact-card h4 { font-size: 1.3rem; margin-bottom: 10px; }
.whatsapp-card { background: rgba(37, 211, 102, 0.1); border-color: rgba(37, 211, 102, 0.3); }
.whatsapp-card:hover { background: rgba(37, 211, 102, 0.2); }
.whatsapp-card i { color: #25D366; }

/* Footer */
.main-footer { background-color: #000; padding: 40px 0; text-align: center; color: #888; }
.footer-logo { height: 60px; margin-bottom: 20px; opacity: 0.6; filter: grayscale(100%); }

/* Floating WA */
.float-whatsapp { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; box-shadow: 0 5px 15px rgba(37,211,102,0.4); z-index: 1000; transition: transform var(--transition); }
.float-whatsapp:hover { transform: scale(1.1); color: #fff; }

/* Service Detail Modal */
.svc-modal { display: none; position: fixed; inset: 0; background: rgba(11,37,69,0.7); z-index: 9999; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(10px); }
.svc-modal.show { display: flex; }
.svc-modal-box { background: var(--white); border-radius: 15px; width: 100%; max-width: 900px; position: relative; animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
@keyframes popIn { from { opacity: 0; transform: scale(0.8) translateY(30px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.svc-close { position: absolute; top: 15px; left: 15px; font-size: 30px; color: #fff; background: rgba(0,0,0,0.5); width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; border-radius: 50%; cursor: pointer; z-index: 10; transition: var(--transition); }
.svc-close:hover { background: var(--primary-color); }
.svc-modal-body { display: flex; flex-direction: row; }
.svc-modal-body img { width: 45%; object-fit: cover; min-height: 400px; }
.svc-info { width: 55%; padding: 40px; }
.svc-info h2 { color: var(--primary-color); font-size: 2rem; margin-bottom: 15px; }
.svc-info p { color: #555; font-size: 1.1rem; line-height: 1.8; margin-bottom: 25px; }
.svc-info ul { margin-bottom: 30px; }
.svc-info ul li { margin-bottom: 12px; color: #444; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.svc-info ul i { color: var(--secondary-color); font-size: 1.2rem; }
.btn-wa { background: #25D366; color: #fff; width: 100%; font-size: 1.2rem; padding: 15px; border-radius: 8px; }
.btn-wa:hover { background: #128C7E; border-color: #128C7E; color: #fff;}

/* Responsive */
@media(max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-text h2 { text-align: center !important; }
    .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
    .svc-modal-body { flex-direction: column; }
    .svc-modal-body img { width: 100%; min-height: 250px; max-height: 300px;}
    .svc-info { width: 100%; padding: 30px 20px; }
    .video-inner { grid-template-columns: 1fr; }
    .video-text h2 { text-align: center !important; }
    .video-text { text-align: center; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 768px) {
    .topbar { display: none; }
    .main-nav { display: none; position: absolute; top: 80px; left: 0; width: 100%; background: var(--primary-color); padding: 20px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 15px; text-align: center; }
    .header-actions { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; }
    .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-item { padding: 25px 15px; }
    .stat-num { font-size: 2rem; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .promo-banner { padding: 40px 15px; }
    .promo-box { background: linear-gradient(to bottom, var(--primary-color) 50%, rgba(11, 37, 69, 0.4) 100%), url('banner-promo.jpg') no-repeat center / cover; flex-direction: column; text-align: center; padding: 40px 20px; }
    .promo-text { max-width: 100%; margin-bottom: 25px; }
    .promo-text h2 { font-size: 1.8rem; }
}
@media(max-width: 480px) {
    .stats-bar-inner { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
}
