/* ==========================================================================
   Rawahel Holding Company - Main Stylesheet
   ========================================================================== */

/* CSS Variables */
:root {
    --color-primary: #D4AF37;
    --color-dark: #11100f;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray: #f5f5f5;
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #555555;
    --color-border: rgba(212, 175, 55, 0.4);
    --font-heading: 'Familjen Grotesk', sans-serif;
    --font-body: 'Arimo', sans-serif;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --max-width: 1200px;
    --border-radius: 6px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-group img {
    width: 48px;
    height: auto;
}

.site-title {
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    font-weight: 600;
    color: var(--color-text);
}

.site-title a:hover {
    color: var(--color-primary);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: 0.3s;
}

/* CTA Button */
.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-black);
}

.btn-primary:hover {
    background-color: #c9a432;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-black);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding-top: calc(80px + var(--spacing-xl));
    padding-bottom: var(--spacing-xl);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-image img {
    border-radius: 1000px 1000px 0 0;
    aspect-ratio: 3/4;
    object-fit: cover;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.hero-content .section-label {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.hero-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    text-align: justify;
}

/* ==========================================================================
   Board of Directors Section
   ========================================================================== */
.board-section {
    padding: var(--spacing-xl) 0;
}

.board-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.board-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.board-content > p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.board-table td {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-weight: 600;
    font-size: 0.9rem;
}

.board-table tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.board-image img {
    width: 100%;
    border-radius: var(--border-radius);
}

/* ==========================================================================
   Shareholders Section
   ========================================================================== */
.shareholders-section {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    background-color: var(--color-gray);
}

.shareholders-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
}

.shareholders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
}

.shareholders-list p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

/* ==========================================================================
   Gallery Slider Section
   ========================================================================== */
.gallery-section {
    padding: var(--spacing-lg) 0;
}

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0a0a0a;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* RTL: slides are laid out right-to-left, JS uses positive translateX */
}

.slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    display: block;
}

/* Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
    background: var(--color-primary);
    color: var(--color-black);
}

.slider-prev {
    right: 1rem;
}

.slider-next {
    left: 1rem;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 5;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--color-primary);
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .slide img {
        height: 300px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    padding: var(--spacing-xl) 0;
}

.services-section > .container > h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.service-card {
    background: var(--color-gray);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    aspect-ratio: 1;
}

.service-card-content {
    padding: 1.5rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.service-card .price-info {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.service-card .description {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.contact-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.contact-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
}

.contact-header p {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    text-align: left;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-logo {
    width: 100px;
    margin: 0 auto var(--spacing-sm);
}

.footer-company-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.footer-address,
.footer-details {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: var(--spacing-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-primary);
    color: var(--color-black);
    transform: scale(1.1);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-phone {
    color: var(--color-primary);
    font-weight: 600;
    direction: ltr;
    display: inline-block;
}

.footer-phone:hover {
    text-decoration: underline;
}

.footer-copyright {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-section {
    padding: var(--spacing-lg) 0;
    background: var(--color-dark);
    color: var(--color-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(212, 175, 55, 0.3);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

/* ==========================================================================
   Floating Contact Buttons
   ========================================================================== */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 900;
}

.float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.float-whatsapp {
    background: #25D366;
}

.float-call {
    background: var(--color-primary);
    color: var(--color-black);
}

/* ==========================================================================
   Scroll To Top
   ========================================================================== */
.scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--color-dark);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 900;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--color-primary);
    color: var(--color-black);
}

/* Active nav link */
.nav-links a.active {
    color: var(--color-primary);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 350px;
    }

    .board-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav.active .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #ffffff;
        padding: 2rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.3);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .hero {
        padding-top: calc(70px + var(--spacing-lg));
        min-height: auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .board-table td {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .header-inner {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 1.25rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 4rem;
    }

    .site-title {
        font-size: 0.85rem;
    }

    .hero-image img {
        max-width: 280px;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
