/* =====================================================
   بطاطس ابو رباح - Abo Rabah Potatoes Website
   Brown & Gold Theme - RTL Arabic Design (Earth Tones)
   ===================================================== */

/* CSS Variables */
:root {
    --primary: #6D4C41;
    --primary-dark: #4E342E;
    --primary-light: #8D6E63;
    --gold: #D4A017;
    --gold-light: #F5D547;
    --gold-dark: #B8860B;
    --accent: #A1887F;
    --background: #FBF9F7;
    --background-alt: #F5F0EB;
    --text-dark: #3E2723;
    --text-light: #5D4037;
    --text-muted: #8D6E63;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(62, 39, 35, 0.1);
    --shadow-lg: 0 10px 25px rgba(62, 39, 35, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* =====================================================
   Header
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary);
}

.nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 999;
}

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

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-menu a {
    padding: 15px 0;
    border-bottom: 1px solid var(--background-alt);
    font-weight: 500;
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 25px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* =====================================================
   Products Section
   ===================================================== */
.products {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

/* Product Gallery */
.product-gallery {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-img.active {
    opacity: 1;
}

.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

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

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Product Info */
.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.product-desc {
    color: var(--text-light);
    margin-bottom: 15px;
}

.product-features {
    list-style: none;
    margin-bottom: 20px;
}

.product-features li {
    padding: 8px 0;
    padding-right: 25px;
    position: relative;
    color: var(--text-dark);
    border-bottom: 1px solid var(--background-alt);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li::before {
    content: '\2713';
    position: absolute;
    right: 0;
    color: var(--primary);
    font-weight: bold;
}

.product-sizes {
    margin-bottom: 20px;
}

.size-label {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.sizes {
    display: flex;
    gap: 10px;
}

.size {
    padding: 8px 18px;
    background: var(--background-alt);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.size.selectable {
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.size.selectable:hover {
    background: var(--gold-light);
    color: var(--text-dark);
}

.size.selectable.selected {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold-dark);
    font-weight: 600;
}

.size-label small {
    color: var(--text-muted);
    font-weight: 400;
}

/* =====================================================
   Features Section
   ===================================================== */
.features {
    padding: 80px 0;
    background: var(--background-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =====================================================
   Order Section
   ===================================================== */
.order-section {
    padding: 80px 0;
    background: var(--white);
}

.order-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--background-alt);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.required {
    color: #e53935;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-group input[dir="ltr"] {
    text-align: left;
}

.form-actions {
    margin-top: 25px;
    text-align: center;
}

.form-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 15px;
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    font-size: 1.5rem;
}

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

.contact-item a:hover {
    text-decoration: underline;
}

.contact-cta {
    text-align: center;
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

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

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =====================================================
   Floating WhatsApp Button
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        align-items: center;
    }
}

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

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

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .order-form {
        padding: 25px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-badges {
        gap: 10px;
    }

    .badge {
        font-size: 0.85rem;
        padding: 6px 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        font-size: 1.4rem;
    }

    .btn {
        padding: 12px 24px;
    }

    .btn-large {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
    }
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

/* =====================================================
   FAQ Section
   ===================================================== */
.faq-section {
    padding: 80px 0;
    background: var(--background);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--background-alt);
}

.faq-question[aria-expanded="true"] {
    background: var(--primary);
    color: var(--white);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gold);
    transition: var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    color: var(--white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--background-alt);
}

.faq-answer.active {
    max-height: 300px;
}

.faq-answer p,
.faq-answer ul {
    padding: 20px 25px;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-answer ul {
    padding-top: 0;
    padding-right: 45px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer a {
    color: var(--gold-dark);
    font-weight: 600;
}

.faq-answer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 1rem;
        padding: 18px 20px;
    }

    .faq-answer p,
    .faq-answer ul {
        padding: 15px 20px;
    }
}
