/* Updated Design System for DreamFabs (Branded Colors) */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
    --primary-green: #6B8E4E;
    --primary-green-light: #8ba972;
    --secondary-beige: #C4B495;
    --bg-light: #FCFCFC;
    --text-dark: #222222;
    --text-muted: #555555;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    direction: rtl; /* Arabic RTL */
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Mobile-First Layout Hacks */
.container {
    padding: 0 1rem;
    max-width: 500px; /* Mobile focused maxWidth */
    margin: 0 auto;
}

section {
    padding: 3rem 0;
}

/* Header & Nav */
nav {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-content {
    display: flex;
    justify-content: center; /* Center logo for mobile */
    align-items: center;
}

.logo-img {
    height: 40px;
}

/* Hero Section */
.hero {
    text-align: center;
    background: linear-gradient(to bottom, #f0f3ed, var(--bg-light));
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Slideshow Styles */
.hero-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    background: #f3f4f6;
}

.hero-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.hero-slideshow img.active {
    opacity: 1;
    transform: scale(1);
}

/* Features */
.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border-right: 4px solid var(--primary-green);
}

.feature-item span {
    font-size: 1.5rem;
}

/* Order Form Section */
.order-section {
    background: var(--white);
}

.size-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.size-btn {
    padding: 1rem 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.size-btn.active {
    border-color: var(--primary-green);
    background: var(--primary-green);
    color: var(--white);
}

.size-btn div {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Contact Form */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(107, 142, 78, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 1.125rem;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(107, 142, 78, 0.3);
    transition: var(--transition);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Success Message */
.success-msg {
    display: none;
    background: #ecfdf5;
    color: #065f46;
    padding: 2rem;
    text-align: center;
    border-radius: 1rem;
    border: 1px solid #a7f3d0;
}

/* Footer Focus */
footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid #eee;
}

/* Sticky Float Button for Mobile */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: center;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
    z-index: 999;
}

.sticky-cta-btn {
    width: 100%;
    max-width: 500px;
    background: var(--primary-green);
    color: var(--white);
    text-decoration: none;
    text-align: center;
    padding: 0.875rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}
