/* ============================================
   K I F HOME — مراتب ومفروشات
   Design Tokens & Styles
   ============================================ */

:root {
    /* Brand palette */
    --navy: #1a2a4a;
    --navy-dark: #0f1a30;
    --navy-light: #2a3f6a;
    --orange: #ff8c42;
    --orange-dark: #e67a30;
    --orange-light: #ffa96e;
    --white: #ffffff;
    --off-white: #f8f9fb;
    --gray-100: #f0f2f5;
    --gray-200: #e2e6eb;
    --gray-400: #9ba3b0;
    --gray-600: #5a6370;
    --gray-800: #2d3440;
    --text: #1a1f29;
    --text-light: #5a6370;
    --text-on-dark: #e8ecf2;
    
    /* Typography */
    --font-heading: 'Cairo', 'Tajawal', sans-serif;
    --font-body: 'Tajawal', 'Cairo', sans-serif;
    
    /* Spacing */
    --section-py: 80px;
    --container-max: 1200px;
    --container-px: 24px;
    
    /* Effects */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(26, 42, 74, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 42, 74, 0.12);
    --shadow-lg: 0 12px 40px rgba(26, 42, 74, 0.16);
    --shadow-xl: 0 20px 60px rgba(26, 42, 74, 0.2);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    white-space: nowrap;
    text-align: center;
    justify-content: center;
}
.btn-primary {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(255, 140, 66, 0.4);
}
.btn-primary:hover {
    background: var(--orange-dark);
    box-shadow: 0 6px 24px rgba(255, 140, 66, 0.5);
    transform: translateY(-2px);
}
.btn-outline {
    border: 2px solid var(--navy);
    color: var(--navy);
}
.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}
.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--navy);
}
.btn-whatsapp {
    background: #25d366;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}
.btn-block { width: 100%; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
}
.logo-mark {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 24px;
    color: var(--navy);
    letter-spacing: -0.5px;
}
.logo-sub {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--orange);
    letter-spacing: 3px;
}
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: var(--navy);
    transition: var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--orange); }
.nav-cta {
    background: var(--orange);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}
.nav-cta:hover { background: var(--orange-dark); }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 72px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(26, 42, 74, 0.85) 0%, rgba(26, 42, 74, 0.65) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 80px var(--container-px);
    color: var(--white);
}
.hero-tag {
    display: inline-block;
    background: rgba(255, 140, 66, 0.2);
    border: 1px solid rgba(255, 140, 66, 0.5);
    color: var(--orange-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
}
.highlight {
    color: var(--orange);
}
.hero-desc {
    font-size: 18px;
    color: var(--text-on-dark);
    max-width: 560px;
    margin-bottom: 32px;
    line-height: 1.8;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.hero-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
}
.hero-meta span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}
.hero-meta strong {
    display: block;
    font-size: 22px;
    color: var(--white);
    font-weight: 800;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: var(--section-py) 0;
    background: var(--off-white);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.section-tag {
    display: inline-block;
    background: rgba(255, 140, 66, 0.1);
    color: var(--orange);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}
.about-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 16px;
}
.about-text p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.8;
}
.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}
.feature {
    display: flex;
    align-items: center;
    gap: 14px;
}
.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 140, 66, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    flex-shrink: 0;
}
.feature h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}
.feature p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}
.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
    padding: var(--section-py) 0;
    background: var(--white);
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
}
.section-header p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.product-image {
    position: relative;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.06);
}
.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--orange);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    z-index: 1;
}
.product-info {
    padding: 20px 22px 24px;
}
.product-info h3 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}
.product-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 14px;
}
.product-price {
    font-size: 14px;
    color: var(--gray-600);
}
.product-price strong {
    font-size: 20px;
    color: var(--orange);
    font-weight: 800;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}
.cta-bg {
    position: absolute;
    inset: 0;
}
.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 42, 74, 0.9) 0%, rgba(26, 42, 74, 0.75) 100%);
}
.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 var(--container-px);
    color: var(--white);
}
.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
}
.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.7;
}
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: var(--section-py) 0;
    background: var(--off-white);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-info h2 {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 12px;
}
.contact-info > p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 28px;
    line-height: 1.7;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 140, 66, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    flex-shrink: 0;
}
.contact-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--navy);
    margin-bottom: 2px;
}
.contact-item p {
    font-size: 14px;
    color: var(--text-light);
}
.contact-form {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}
.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    background: var(--off-white);
    direction: rtl;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy-dark);
    color: var(--text-on-dark);
    padding: 56px 0 24px;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .logo-mark {
    color: var(--white);
    font-size: 28px;
}
.footer-brand .logo-sub {
    color: var(--orange);
    font-size: 18px;
}
.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
}
.footer h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}
.footer-links ul li {
    margin-bottom: 10px;
}
.footer-links ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}
.footer-links ul li a:hover { color: var(--orange); }
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}
.social-link:hover {
    background: var(--orange);
    color: var(--white);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.float-wa {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition);
}
.float-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-image img { height: 320px; }
}

@media (max-width: 768px) {
    :root {
        --section-py: 60px;
        --container-px: 16px;
    }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 16px;
    }
    .hero-content { padding: 60px var(--container-px); }
    .hero h1 { font-size: clamp(28px, 8vw, 42px); }
    .hero-desc { font-size: 16px; }
    .hero-meta { gap: 20px; }
    .hero-meta strong { font-size: 18px; }
    .products-grid { grid-template-columns: 1fr; }
    .about-features { gap: 12px; }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 28px;
    }
    .cta-section { padding: 70px 0; }
    .contact-form { padding: 24px; }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn { width: 100%; }
    .hero-meta { flex-direction: column; gap: 12px; }
}
