/* ==========================================================================
   HASSAN KEY MAKER - Premium Modern Design System
   Location: Abu obaidah Ibn Al Jarrah Road, Al Fayha, Riyadh 14254, Saudi Arabia
   ========================================================================== */

:root {
    --primary-gold: #f59e0b;       /* Vibrant Amber/Gold */
    --primary-gold-hover: #d97706;
    --primary-gold-light: rgba(245, 158, 11, 0.15);
    
    --bg-dark-navy: #0b0f19;       /* Deep Luxury Navy Background */
    --bg-card-navy: #161e2e;       /* Card & Container Background */
    --bg-card-hover: #1e293b;
    
    --accent-blue: #2563eb;        /* Royal Blue Accent */
    --whatsapp-green: #25d366;     /* WhatsApp Brand Green */
    --whatsapp-hover: #1da851;
    
    --text-white: #ffffff;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    --border-subtle: rgba(255, 255, 255, 0.12);
    --border-gold: rgba(245, 158, 11, 0.35);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.45);
    --shadow-gold: 0 10px 25px rgba(245, 158, 11, 0.3);
    
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark-navy);
    color: var(--text-main);
}

body {
    line-height: 1.7;
    font-size: 1rem;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

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

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

.text-muted {
    color: var(--text-muted);
}

.tagline-bold {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff 20%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

/* Top Announcement Bar */
.top-bar {
    background-color: #050811;
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-item i {
    color: var(--primary-gold);
}

.top-contacts {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-contacts a:hover {
    color: var(--primary-gold);
}

/* Navigation Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 18px 0;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-badge {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-hover));
    color: #000;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-gold);
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gold);
    border-radius: 2px;
}

.header-cta-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-gold {
    background: linear-gradient(135deg, var(--primary-gold), #eab308);
    color: #000;
}

.btn-gold:hover {
    background: var(--primary-gold-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-whatsapp {
    background: var(--whatsapp-green);
    color: #fff;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--primary-gold);
}

.btn-outline:hover {
    background: var(--primary-gold-light);
    color: #fff;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

/* Smooth Hero Carousel / Slider */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 78vh;
    min-height: 550px;
    max-height: 750px;
    overflow: hidden;
    background: #000;
}

.slider-container {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    width: 33.3333%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
}

.slide-content-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: radial-gradient(circle, rgba(11,15,25,0.4) 0%, rgba(11,15,25,0.85) 100%);
}

.hero-text-box {
    max-width: 920px;
    z-index: 10;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Slider Arrow Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 54px;
    height: 54px;
    background: rgba(16, 24, 39, 0.75);
    border: 1px solid var(--border-gold);
    color: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.slider-arrow:hover {
    background: var(--primary-gold);
    color: #000;
    box-shadow: var(--shadow-gold);
}

.arrow-prev {
    left: 25px;
}

.arrow-next {
    right: 25px;
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    gap: 12px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-gold);
    width: 36px;
    border-radius: 10px;
}

/* Section Wrapper */
.section {
    padding: 95px 0;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
}

.badge-tag {
    display: inline-block;
    color: var(--primary-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.88rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding: 4px 14px;
    background: var(--primary-gold-light);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-gold);
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.7rem);
    margin-bottom: 18px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.08rem;
}

/* Cards & Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 32px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.card-box {
    background: var(--bg-card-navy);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-box:hover {
    transform: translateY(-8px);
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 65px;
    height: 65px;
    background: var(--primary-gold-light);
    border: 1px solid var(--border-gold);
    color: var(--primary-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.card-box h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.card-box p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Rich SEO Text Content Block */
.content-rich-block {
    background: var(--bg-card-navy);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 50px 45px;
    margin-bottom: 60px;
}

.content-rich-block h2 {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    margin-top: 30px;
}

.content-rich-block h2:first-child {
    margin-top: 0;
}

.content-rich-block h3 {
    font-size: 1.4rem;
    color: var(--text-white);
    margin-top: 25px;
    margin-bottom: 12px;
}

.content-rich-block p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 18px;
    line-height: 1.8;
}

.content-rich-block ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.content-rich-block ul li {
    color: var(--text-muted);
    margin-bottom: 10px;
    position: relative;
    list-style-type: disc;
}

/* Gallery Section Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.gallery-card {
    background: var(--bg-card-navy);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.gallery-card:hover {
    transform: scale(1.02);
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-lg);
}

.gallery-img-box {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-card-content {
    padding: 24px;
}

.gallery-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.gallery-card-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Contact Page Form & Map */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-card {
    background: var(--bg-card-navy);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 45px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.contact-item-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-gold-light);
    border: 1px solid var(--border-gold);
    color: var(--primary-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-white);
}

.contact-item p, .contact-item a {
    color: var(--text-muted);
    font-size: 1rem;
}

.contact-item a:hover {
    color: var(--primary-gold);
}

.social-links-group {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.social-btn {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
    transform: translateY(-3px);
}

.contact-form-box {
    background: var(--bg-card-navy);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 45px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: #0b0f19;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

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

.map-wrapper {
    margin-top: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    height: 400px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
.main-footer {
    background-color: #050811;
    border-top: 1px solid var(--border-subtle);
    padding: 75px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 45px;
    margin-bottom: 60px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 16px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1.15rem;
    margin-bottom: 22px;
    color: var(--primary-gold);
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Floating WhatsApp Pulsing Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 62px;
    height: 62px;
    background-color: var(--whatsapp-green);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    transition: var(--transition);
    animation: pulse-ring 2s infinite;
}

.whatsapp-float-btn:hover {
    transform: scale(1.12);
    background-color: var(--whatsapp-hover);
    color: #ffffff;
}

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

/* Mobile Responsive Adjustments */
@max-width-992 {
    .contact-grid, .footer-grid, .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .contact-grid, .footer-grid, .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero-slider-section {
        height: 65vh;
    }
}

@media (max-width: 768px) {
    .top-contacts {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card-navy);
        flex-direction: column;
        padding: 25px;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-cta-group .btn {
        display: none;
    }

    .slider-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .arrow-prev {
        left: 10px;
    }

    .arrow-next {
        right: 10px;
    }

    .tagline-bold {
        font-size: 1.8rem;
    }

    .content-rich-block {
        padding: 30px 20px;
    }
}
