/* 
 * RIXANA CARE - Premium Haircare Brand
 * Main Stylesheet
 */

:root {
    /* Colors */
    --color-primary: #06402B;
    /* Deep Forest Green */
    --color-primary-dark: #032A1C;
    --color-secondary: #D4AF37;
    /* Premium Gold */
    --color-secondary-light: #F3E5AB;
    --color-text: #1A1A1A;
    --color-text-light: #666666;
    --color-white: #FFFFFF;
    --color-off-white: #F9F9F9;
    --color-black: #000000;

    /* Fonts */
    --font-en: 'Poppins', 'Inter', sans-serif;
    --font-ar: 'Tajawal', 'Cairo', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-en);
    background-color: var(--color-white);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    direction: ltr;
    /* Default */
}

/* Lang PT overrides if needed */
body.lang-pt {
    font-family: var(--font-en);
}

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

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

ul {
    list-style: none;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: 1rem;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--color-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

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

.btn-outline {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

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

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(6, 64, 43, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    /* filter removed to show original gold logo */
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition-fast);

    /* LTR animation default */
    left: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.lang-toggle {
    color: var(--color-white);
    cursor: pointer;
    font-weight: 700;
    border: 1px solid var(--color-secondary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.lang-toggle:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

/* Hero Slider */
#home {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* .slide::before removed to clear image overlay */

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centered by default */
    text-align: center;
    color: var(--color-white);
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

/* Adjust alignment based on language if needed, but center works well for Hero */

.slide-logo {
    width: 150px;
    margin: 0 auto 2rem;
    filter: brightness(0) invert(1);
}

.slide-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.9;
}

.slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: transparent;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

/* Philosophy Section */
#philosophy {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-off-white);
}

.philosophy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.philosophy-text-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.philosophy-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: var(--spacing-lg);
}

.philosophy-image-col {
    flex: 1;
}

.philosophy-image-col img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 0 var(--color-secondary-light);
}

.philosophy-content-col {
    flex: 1;
}

/* Adjust text alignment when in flex wrapper */
.philosophy-wrapper .section-title {
    text-align: right;
}

.philosophy-wrapper .section-title::after {
    left: auto;
    right: 0;
    transform: none;
}

.philosophy-wrapper .philosophy-text-block {
    text-align: right;
    margin: 0 0 2rem;
}

@media (max-width: 900px) {
    .philosophy-wrapper {
        flex-direction: column;
    }

    .philosophy-wrapper .section-title {
        text-align: center;
    }

    .philosophy-wrapper .section-title::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .philosophy-wrapper .philosophy-text-block {
        text-align: center;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--color-white);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--color-secondary);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.feature-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Products Section */
#products {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-fast);
    background: #fff;
}

.product-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 350px;
    padding: 2rem;
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

/* Product Gallery */
.product-gallery {
    height: 350px;
    background-color: #f4f4f4;
    position: relative;
    overflow: hidden;
}

.gallery-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: 100%;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.gallery-scroll-container::-webkit-scrollbar {
    display: none;
}

.gallery-slide {
    flex: 0 0 100%;
    /* Full width of container */
    height: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.gallery-slide img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.gallery-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.gallery-dot.active {
    background-color: var(--color-primary);
}

.product-card:hover .gallery-slide img {
    transform: scale(1.05);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 2rem;
    text-align: center;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.product-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    min-height: 60px;
}

.product-expand {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    text-align: right;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 1rem;

    [dir="ltr"] & {
        text-align: left;
    }
}

.product-expand.open {
    max-height: 500px;
    /* Arbitrary large number */
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.expand-btn {
    color: var(--color-secondary);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-decoration: underline;
}

/* Salons Section */
#salons {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    background-image: url('../images/banner-2.jpg');
    /* Use salon image */
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

#salons::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 64, 43, 0.9);
    /* Green overlay */
}

.salons-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.salons-content h2,
.salons-content h3 {
    color: var(--color-secondary);
}

.salon-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-pill {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Testimonials */
#testimonials {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-off-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonial-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--color-secondary-light);
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: serif;

    [dir="ltr"] & {
        right: auto;
        left: 20px;
    }
}

.t-author {
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.t-role {
    font-size: 0.85rem;
    color: var(--color-secondary);
}

/* Contact */
#contact {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-white);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-block {
    padding: 2rem;
    background: var(--color-off-white);
    border-radius: 12px;
}

.info-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--color-secondary);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    font-size: 1.2rem;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Mobile menu implementation if needed, or simple stacking */
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .slide-title {
        font-size: 2.2rem;
    }

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

    .nav-container {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu-mobile {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.8rem;
    }
}