/* ==========================================================================
   CSS Variables & Tokens 
   ========================================================================== */
:root {
    /* Color Palette */
    --clr-terracotta: #C8793A;
    --clr-sand: #F5ECD7;
    --clr-olive: #2D5016;
    --clr-gold: #D4AF37;
    --clr-offwhite: #FDFAF4;
    --clr-dark: #1F1C18;
    /* Charcoal/Dark Brown for text and footer */
    --clr-whatsapp: #25D366;

    /* Typography */
    --font-heading: 'Amiri', serif;
    --font-body: 'Cairo', sans-serif;

    /* Spacing & Layout */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --border-radius: 12px;
    --site-max-width: 1200px;

    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-offwhite);
    color: var(--clr-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--clr-terracotta);
    margin: 0 auto var(--space-lg) auto;
    position: relative;
    display: table;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--clr-gold);
}

/* Subtle background pattern */
.bg-pattern {
    position: relative;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(var(--clr-terracotta) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

.zellige-bg {
    position: relative;
    z-index: 1;
}

.zellige-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0l20 20-20 20L0 20z' stroke='%23C8793A' stroke-opacity='0.08' stroke-width='1'/%3E%3Cpath d='M10 10h20v20H10z' stroke='%23C8793A' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   Section Dividers
   ========================================================================== */
.section-divider {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-md) 0;
    color: var(--clr-gold);
    background-color: transparent;
    position: relative;
    z-index: 2;
}

.section-divider svg {
    max-width: 250px;
    height: auto;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    background-color: var(--clr-olive);
    /* Changed to olive to contrast gold/cream logo */
    background-image: linear-gradient(30deg, var(--clr-dark) 1px, transparent 1px),
        linear-gradient(150deg, var(--clr-dark) 1px, transparent 1px),
        linear-gradient(30deg, transparent 1px, rgba(0, 0, 0, 0.1) 1px);
    background-size: 60px 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: var(--space-md);
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(45, 80, 22, 0.85), rgba(45, 80, 22, 0.98));
    /* Olive green dark gradient */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-md) 0;
    gap: 25px;
}

.header-social-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.header-social-text {
    font-size: 1.3rem;
    color: var(--clr-sand);
    font-weight: 600;
    margin: 0;
}

.header-socials {
    margin-bottom: 0;
    gap: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.social-name {
    color: var(--clr-gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.header-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.15);
    /* Transparent gold */
    border: 1px solid rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.header-socials a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.header-socials a:hover::before {
    left: 150%;
}

.header-socials a:hover {
    background-color: var(--clr-gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
    border-color: var(--clr-gold);
}

.header-socials .social-icon {
    width: 28px;
    height: 28px;
    color: var(--clr-gold);
    transition: color 0.3s ease, transform 0.3s ease;
}

.header-socials a:hover .social-icon {
    color: var(--clr-olive);
    /* High contrast inside gold circle */
    transform: scale(1.1);
}

.hero-logo {
    height: 180px;
    width: auto;
    filter: drop-shadow(0px 8px 15px rgba(0, 0, 0, 0.3));
    /* Stronger shadow on dark bg */
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: var(--space-xl);
}

.business-name {
    font-size: clamp(2rem, 8vw, 6rem);
    color: var(--clr-sand);
    /* Sand text on olive bg */
    margin-bottom: var(--space-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--clr-gold);
    /* Gold text on olive bg */
    font-weight: 600;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    padding: var(--space-xl) 0;
    background-color: var(--clr-offwhite);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.service-card {
    background-color: #fff;
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 4px solid var(--clr-gold);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--clr-olive);
    font-family: var(--font-body);
    font-weight: 700;
}

.secondary-card {
    opacity: 0.85;
    padding: var(--space-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-bottom-width: 2px;
}

.secondary-card h3 {
    font-size: 1.2rem;
}

.secondary-card .service-icon {
    font-size: 2.5rem;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery {
    padding: var(--space-xl) 0;
    background-color: var(--clr-sand);
}

.slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
    /* WebKit */
}

.gallery-title {
    font-family: 'Aref Ruqaa', 'Amiri', serif;
    font-size: 3.6rem;
    /* Big title */
    color: var(--clr-terracotta);
}

.slide {
    flex: 0 0 85%;
    /* Peek layout on mobile */
    max-width: 400px;
    /* Constrain on desktop */
    scroll-snap-align: center;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background-color: var(--clr-offwhite);
}



.slide img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    /* Slight zoom to crop inherent image borders */
    transition: transform 0.5s ease;
}

.slide:hover img {
    transform: scale(1.08);
    /* Nice slow zoom on hover */
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.85);
    /* Gold */
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: #b5952f;
    transform: translateY(-50%) scale(1.05);
}

.prev-btn {
    right: 15px;
}

/* RTL Context */
.next-btn {
    left: 15px;
}

/* RTL Context */

/* ==========================================================================
   WhatsApp CTA Section
   ========================================================================== */
.whatsapp-cta {
    padding: var(--space-lg) 0;
    background-color: var(--clr-offwhite);
    text-align: center;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: var(--clr-whatsapp);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.btn-whatsapp:hover {
    background-color: #20BA56;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    padding: var(--space-xl) 0;
    background-color: var(--clr-sand);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.contact-info {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.2rem;
}

.info-icon {
    font-size: 2rem;
    background: var(--clr-sand);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-olive);
}

.phone-number {
    font-weight: 700;
    font-size: 1.3rem;
}

.map-container {
    height: 100%;
    min-height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--clr-dark);
    color: var(--clr-sand);
    padding: var(--space-lg) 0 var(--space-md);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer-logo {
    height: 60px;
    margin-bottom: var(--space-sm);
    /* Invert logo purely for visual placeholder consistency until the real logo is uploaded, or keeping its native glow */
    opacity: 0.9;
}

.social-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--clr-gold);
    margin-bottom: 5px;
}

.social-icons {
    display: flex;
    gap: 25px;
    margin-bottom: var(--space-md);
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover .social-icon {
    color: #fff;
    transform: translateY(-3px) scale(1.1);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    width: 100%;
}

/* ==========================================================================
   Mobile Responsiveness
   ========================================================================== */
@media (max-width: 768px) {
    .header-top {
        gap: 15px;
        padding: var(--space-sm) 0;
    }

    .header-socials {
        gap: 15px; /* Tighter gap on smaller screens */
    }

    .hero-logo {
        height: 120px;
        /* Reduce size on small screens */
    }

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

    .slider-btn {
        display: none;
        /* Hide buttons on mobile to encourage swiping */
    }

    /* Contact Info Adjustments for Mobile */
    .contact-info {
        padding: var(--space-md);
        text-align: center;
        align-items: center;
    }

    .info-item {
        flex-direction: column;
        gap: 10px;
        font-size: 1rem;
    }

    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .phone-number {
        font-size: 1.1rem;
    }
}

/*Made by Aymane*/