/*
Theme Name: Al Manal Furnitures
Theme URI: https://example.com/al-manal
Author: Antigravity
Author URI: https://google.com
Description: Custom WordPress theme for Al Manal Furnitures converted from static prototype.
Version: 1.0
License: GPU
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    /* Color Palette - Premium & Luxury */
    --primary-color: #0F172A;
    --primary-light: #1E293B;
    --secondary-color: #FFFFFF;
    --accent-color: #D4AF37;
    --accent-hover: #B5952F;
    --accent-light: #FDFCF0;
    --accent-soft: rgba(212, 175, 55, 0.1);

    /* Text Colors */
    --text-dark: #0F172A;
    --text-medium: #334155;
    --text-light: #475569;
    --text-muted: #64748B;
    --text-white: #F8FAFC;

    /* Backgrounds */
    --bg-body: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-dark: #0F172A;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-overlay: rgba(15, 23, 42, 0.7);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing System */
    --space-unit: 1rem;
    --space-xs: calc(var(--space-unit) * 0.5);
    --space-sm: var(--space-unit);
    --space-md: calc(var(--space-unit) * 2);
    --space-lg: calc(var(--space-unit) * 4);
    --space-xl: calc(var(--space-unit) * 8);

    /* Shadows - Modern & Soft */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 10px 20px -5px rgba(212, 175, 55, 0.3);

    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--space-sm);
    color: var(--text-medium);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--space-lg) 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-white {
    color: var(--text-white) !important;
}

.text-gold {
    color: var(--accent-color) !important;
}

.text-light {
    color: var(--text-light) !important;
}

/* Flex Utilities */
.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

/* Spacing Utilities */
.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition-normal);
    cursor: pointer;
    font-size: 0.85rem;
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Navbar */
.navbar {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--secondary-color);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Dropdown Menu Styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-dark);
    min-width: 220px;
    padding: 1rem 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1001;
    pointer-events: none;
}

.dropdown-menu li a {
    padding: 0.75rem 1.5rem;
    display: block;
    text-transform: none;
    font-size: 0.95rem;
    opacity: 0.7;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 2rem;
}

/* Show Dropdown on Hover (Desktop) */
@media (min-width: 769px) {
    .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: all !important;
    }
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(var(--bg-overlay), var(--bg-overlay)), url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--accent-soft);
    color: var(--accent-color);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 25px auto 0;
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.category-card {
    position: relative;
    height: 500px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover img {
    transform: scale(1.15);
}

.category-card-content {
    padding: 3rem 2rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    transition: var(--transition-normal);
}

.category-card:hover .category-card-content {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
}

.product-category {
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.category-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.category-link i {
    transition: transform 0.3s ease;
}

.category-link:hover i {
    transform: translateX(5px);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.feature-item {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-body);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
    border-radius: var(--radius-sm);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 3rem 2rem;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.testimonial-stars {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.testimonial-author strong {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* CTA Section Styles */
.cta-section {
    padding: var(--space-lg) 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* Sidebar Layout */
.sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
}

@media (max-width: 992px) {
    .sidebar-layout {
        grid-template-columns: 1fr;
    }
}

.sidebar {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    height: fit-content;
}

.sidebar h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-soft);
    padding-bottom: 0.5rem;
}

/* FAQ Grid Fixes */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--bg-body);
    padding: 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    display: none;
}

.faq-item.active p {
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-light);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-dark);
        display: flex;
        flex-direction: column;
        padding: 8rem 2rem 2rem;
        gap: 1.5rem;
        transition: var(--transition-normal);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border: none;
    }

    .nav-item.dropdown.active .dropdown-menu {
        max-height: 500px;
        margin-top: 1rem;
        padding-left: 1rem;
        border-left: 1px solid var(--accent-soft);
    }

    .dropdown-toggle i {
        transition: transform 0.3s ease;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }
}
/* Standardized Hero & Form Classes */
.hero-page {
    height: 40vh;
    min-height: 300px;
}

.hero-category {
    height: 50vh;
    min-height: 400px;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.contact-form form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.nav-links a.active {
    color: var(--accent-color);
    opacity: 1;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}
