/* ===================================
   GLANZWERK SERVICE - Main CSS
   Colors: Navy #0d1b4b | Gold #c9a227
   =================================== */
   :root {
    --navy: #0d1b4b;
    --navy-light: #1a2d6b;
    --gold: #c9a227;
    --gold-light: #e8c347;
    --white: #ffffff;
    --light: #f8f9fa;
    --gray: #6c757d;
    --dark: #212529;
    --shadow: 0 10px 40px rgba(13,27,75,0.12);
    --shadow-hover: 0 20px 60px rgba(13,27,75,0.2);
    --radius: 12px;
    --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--dark); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 18px 0;
    background: rgba(13,27,75,0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}
.navbar.scrolled {
    padding: 12px 0;
    background: var(--navy);
    border-bottom-color: var(--gold);
    box-shadow: var(--shadow);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

/* Logo */
.logo-wrapper { display: flex; flex-direction: column; line-height: 1.2; }
.logo-glanz { font-size: 1.5rem; font-weight: 800; color: var(--white); letter-spacing: 1px; }
.logo-werk  { font-size: 1.5rem; font-weight: 800; color: var(--gold);  letter-spacing: 1px; }
.logo-wrapper small { 
    font-size: 0.65rem; 
    color: var(--gold); 
    letter-spacing: 3px; 
    text-transform: uppercase; 
    font-weight: 600;
    margin-top: 1px;
}

/* Nav Menu */
.nav-menu { list-style: none; display: flex; align-items: center; gap: 8px; }
.nav-menu a { color: var(--white); padding: 8px 16px; border-radius: 6px; font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.nav-menu a:hover, .nav-menu a.active { color: var(--gold); }
.btn-nav {
    background: var(--gold) !important; color: var(--navy) !important;
    font-weight: 700 !important; border-radius: 50px !important;
    padding: 10px 22px !important;
}
.btn-nav:hover { background: var(--gold-light) !important; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,162,39,0.4); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + 10px); left: 0;
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); min-width: 230px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: var(--transition); z-index: 100;
    border-top: 3px solid var(--gold);
    list-style: none; padding: 8px 0;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { color: var(--navy) !important; padding: 10px 20px !important; font-size: 0.85rem !important; display: block; }
.dropdown-menu a:hover { background: var(--light); color: var(--gold) !important; padding-left: 28px !important; }

/* Mobile Toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.nav-toggle span { width: 25px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #0a1535 100%);
    position: relative; overflow: hidden; padding-top: 80px;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a227' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(201,162,39,0.15); border: 1px solid rgba(201,162,39,0.3); color: var(--gold); padding: 8px 18px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: 3.5rem; font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; line-height: 1.8; margin-bottom: 35px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-primary { background: var(--gold); color: var(--navy); padding: 15px 35px; border-radius: 50px; font-weight: 700; font-size: 1rem; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(201,162,39,0.4); }
.btn-outline { border: 2px solid rgba(255,255,255,0.5); color: var(--white); padding: 15px 35px; border-radius: 50px; font-weight: 600; font-size: 1rem; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }

/* Hero Stats */
.hero-stats { display: flex; gap: 30px; margin-top: 40px; }
.stat-item { text-align: center; }
.stat-item .number { font-size: 2rem; font-weight: 800; color: var(--gold); display: block; }
.stat-item .label { font-size: 0.75rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }

/* Hero Image / Visual */
.hero-visual { position: relative; }
.hero-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 20px; padding: 40px;
    backdrop-filter: blur(10px);
    animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.hero-card .card-title { color: var(--gold); font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.service-list-preview li { color: rgba(255,255,255,0.85); padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); list-style: none; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.service-list-preview li:last-child { border-bottom: none; }
.service-list-preview li span { font-size: 1.2rem; }

/* ===== SECTIONS ===== */
section { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label { color: var(--gold); font-size: 0.85rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; display: block; margin-bottom: 12px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; color: var(--navy); margin-bottom: 15px; }
.section-header p { color: var(--gray); max-width: 600px; margin: 0 auto; font-size: 1.05rem; line-height: 1.8; }
.section-divider { width: 60px; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 2px; margin: 20px auto 0; }

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 300px;
    display: block;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* صورة الخلفية */
.service-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-bg {
    transform: scale(1.08);
}

/* طبقة التعتيم */
.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13, 27, 75, 0.92) 0%,
        rgba(13, 27, 75, 0.5) 50%,
        rgba(13, 27, 75, 0.2) 100%
    );
    transition: var(--transition);
}

.service-card:hover .service-card-overlay {
    background: linear-gradient(
        to top,
        rgba(13, 27, 75, 0.97) 0%,
        rgba(13, 27, 75, 0.7) 50%,
        rgba(13, 27, 75, 0.4) 100%
    );
}

/* محتوى الكارد */
.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    transform: translateY(0);
    transition: var(--transition);
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: block;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.service-card:hover p {
    max-height: 60px;
    opacity: 1;
    margin-bottom: 10px;
}

.service-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.service-card:hover .read-more {
    opacity: 1;
    transform: translateY(0);
}

/* شريط ذهبي في الأسفل */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: width 0.4s ease;
}

.service-card:hover::after {
    width: 100%;
}

/* ===== WHY US ===== */
.why-section { background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.why-card { text-align: center; padding: 35px 20px; }
.why-icon { width: 70px; height: 70px; background: rgba(201,162,39,0.15); border: 2px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.8rem; transition: var(--transition); }
.why-card:hover .why-icon { background: var(--gold); transform: scale(1.1); }
.why-card h3 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.why-card p { color: rgba(255,255,255,0.65); font-size: 0.85rem; line-height: 1.7; }

/* ===== CTA SECTION ===== */
.cta-section { background: var(--gold); padding: 70px 0; text-align: center; }
.cta-section h2 { font-size: 2.2rem; font-weight: 800; color: var(--navy); margin-bottom: 15px; }
.cta-section p { color: rgba(13,27,75,0.8); font-size: 1.05rem; margin-bottom: 30px; }
.btn-navy { background: var(--navy); color: var(--white); padding: 15px 40px; border-radius: 50px; font-weight: 700; font-size: 1rem; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(13,27,75,0.3); }

/* ===== CONTACT FORM ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.contact-info p { color: var(--gray); line-height: 1.8; margin-bottom: 30px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.contact-item .ci-icon { width: 45px; height: 45px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--navy); font-size: 1.1rem; flex-shrink: 0; }
.contact-item .ci-text strong { display: block; color: var(--navy); font-weight: 700; margin-bottom: 3px; }
.contact-item .ci-text span { color: var(--gray); font-size: 0.9rem; }

.form-card { background: var(--white); border-radius: 20px; padding: 45px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 8px; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px 18px; border: 2px solid #e9ecef; border-radius: 10px;
    font-family: 'Poppins', sans-serif; font-size: 0.9rem; transition: var(--transition);
    background: var(--light); color: var(--dark);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--gold); background: var(--white);
    box-shadow: 0 0 0 4px rgba(201,162,39,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* ===== FOOTER ===== */
.footer { background: var(--navy); color: var(--white); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.8; margin-top: 15px; }
.footer-tagline { color: var(--gold) !important; font-weight: 700; font-style: italic; margin-top: 10px !important; }
.footer h4 { color: var(--gold); font-size: 0.95rem; font-weight: 700; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.footer-contact p { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 12px; }
.footer-contact a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-contact a:hover { color: var(--gold); }
.footer-contact i { color: var(--gold); width: 16px; margin-top: 2px; }
.footer-bottom { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p, .footer-bottom a { color: rgba(255,255,255,0.45); font-size: 0.85rem; }
.footer-bottom a:hover { color: var(--gold); }
.footer-logo .logo-glanz { font-size: 1.3rem; font-weight: 800; color: var(--white); }
.footer-logo .logo-werk  { font-size: 1.3rem; font-weight: 800; color: var(--gold); }
.footer-logo small { font-size: 0.6rem; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; font-weight: 600; margin-top: 1px; }

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    background: #25D366; color: var(--white);
    padding: 14px 22px; border-radius: 50px;
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 0.9rem;
    box-shadow: 0 8px 25px rgba(37,211,102,0.4);
    transition: var(--transition);
    animation: pulse-wa 2.5s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.05); box-shadow: 0 12px 35px rgba(37,211,102,0.5); color: var(--white); }
.whatsapp-float i { font-size: 1.4rem; }
@keyframes pulse-wa {
    0%,100% { box-shadow: 0 8px 25px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 8px 35px rgba(37,211,102,0.7); }
}

/* ===== Scroll Top ===== */
.scroll-top {
    position: fixed; bottom: 100px; right: 32px; z-index: 999;
    background: var(--navy); color: var(--white);
    width: 45px; height: 45px; border-radius: 50%;
    border: 2px solid var(--gold); cursor: pointer;
    opacity: 0; visibility: hidden; transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

/* ===== Alert / Flash ===== */
.alert-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; padding: 15px 20px; border-radius: 10px; margin-bottom: 20px; font-size: 0.9rem; }
.alert-error   { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; padding: 15px 20px; border-radius: 10px; margin-bottom: 20px; font-size: 0.9rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.5rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--navy); flex-direction: column; align-items: flex-start;
        padding: 80px 30px 30px; gap: 5px; transition: var(--transition);
        box-shadow: -5px 0 30px rgba(0,0,0,0.3);
    }
    .nav-menu.open { right: 0; }
    .nav-menu a { font-size: 1rem; width: 100%; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-stats { flex-wrap: wrap; justify-content: center; }
    .whatsapp-float span { display: none; }
    .whatsapp-float { border-radius: 50%; width: 55px; height: 55px; padding: 0; justify-content: center; }
}