/* --- General Setup & Variables --- */
:root {
    --bg-color: #FAF7F3;
    --primary-green: #B8C3B2;
    --accent-nude: #E7C9B1;
    --text-color: #555;
    --gold-accent: #C7A77B;
    --white: #FFFFFF;
    --font-heading: 'Heebo', sans-serif;
    --font-body: 'Assistant', sans-serif;
    --header-height: 80px;
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    direction: rtl;
}

/* --- Accessibility --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-accent);
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.3s ease-in-out;
}
.skip-link:focus {
    top: 10px;
}

/* --- Typography & Helpers --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: #444;
}

h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
a { color: var(--gold-accent); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #a88a61; }

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: #777;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.btn-primary {
    background-color: var(--gold-accent);
    color: var(--white);
}
.btn-primary:hover {
    background-color: #a88a61;
    transform: scale(1.05);
}
.btn-secondary {
    background-color: transparent;
    color: var(--gold-accent);
    border-color: var(--gold-accent);
}
.btn-secondary:hover {
    background-color: rgba(199, 167, 123, 0.1);
    transform: scale(1.05);
}

/* --- Header --- */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent; /* Start transparent */
    height: var(--header-height);
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease, height 0.4s ease;
}
.main-header.scrolled {
    background-color: rgba(250, 247, 243, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    height: calc(var(--header-height) - 10px); /* Compact header on scroll */
}
.main-header.scrolled .logo {
    font-size: 1.6rem; /* Slightly smaller logo on scroll */
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-color);
    transition: font-size 0.4s ease;
}
.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 2rem; }
.main-nav li { position: relative; }
.main-nav a { font-size: 1rem; font-weight: 400; color: var(--text-color); display: flex; align-items: center; gap: 0.3rem; padding: 5px 0; transition: color 0.3s ease; }

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold-accent);
}

.dropdown-icon { transition: transform 0.3s ease; }

/* --- Dropdown Menu --- */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 10px;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.has-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a { padding: 0.75rem 1.5rem; width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn svg { width: 22px; height: 22px; }

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    color: var(--text-color);
}

/* --- Mobile Menu (Off-canvas) --- */
.main-nav.mobile-active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    transform: translateX(100%);
    animation: slideIn 0.4s forwards ease-out;
}
.main-nav.mobile-active.closing {
    animation: slideOut 0.4s forwards ease-in;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideOut { from { transform: translateX(0); } to { transform: translateX(100%); } }

.main-nav.mobile-active ul {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}
.main-nav.mobile-active a { font-size: 1.5rem; }
.main-nav.mobile-active .has-dropdown > a { justify-content: center; }
.main-nav.mobile-active .dropdown-menu {
    display: none; /* Hidden by default */
    position: static;
    background: none;
    box-shadow: none;
    padding: 1rem 0 0 0;
    transform: none; opacity: 1; visibility: visible;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    padding: 6rem 0;
    text-align: center;
    background: url('../img/hero-background.webp') no-repeat center center/cover;
    color: var(--text-color);
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
}
.hero-section .container { position: relative; z-index: 2; }
.hero-section h1 { font-weight: 300; }
.hero-section p { font-size: 1.2rem; max-width: 500px; margin: 1rem auto 2rem auto; }
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; align-items: center; }

/* --- Demo Banner --- */
.demo-banner {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 1rem 0;
    text-align: center;
}
.demo-banner p { margin: 0; }
.demo-banner a { color: var(--white); font-weight: 600; text-decoration: underline; }

/* --- Sections General Styling --- */
section { padding: 4rem 0; }

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.service-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(184, 195, 178, 0.2);
}
.service-card svg {
    color: var(--primary-green);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}
.service-card:hover svg {
    color: var(--gold-accent);
}
.service-card p { font-size: 0.95rem; color: #666; flex-grow: 1; }
.read-more {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-green);
    transition: color 0.3s ease;
}
.service-card:hover .read-more {
    color: var(--gold-accent);
}

/* --- About Section --- */
.about-section { background-color: var(--white); }
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
}
.about-text { text-align: center; }

/* --- Our Philosophy Section --- */
.our-philosophy-section {
    background-color: var(--white);
}
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.philosophy-card {
    background-color: #FAF7F3;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #E7C9B140;
}
.philosophy-icon {
    margin-bottom: 1.5rem;
}
.philosophy-icon svg {
    color: var(--gold-accent);
}
.philosophy-card h3 {
    margin-bottom: 1rem;
}
.philosophy-card p {
    font-size: 0.95rem;
    color: #666;
}

/* --- Gallery Section (Swiper) --- */
.gallery-section { background-color: var(--white); }
.swiper { width: 100%; padding-bottom: 40px; }
.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 400px;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.swiper-pagination-bullet-active { background-color: var(--gold-accent); }
.swiper-button-next, .swiper-button-prev { color: var(--gold-accent); }

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-right: 4px solid var(--accent-nude);
}
.testimonial-card .stars { color: var(--gold-accent); font-size: 1.2rem; margin-bottom: 1rem; }
.testimonial-card p { font-style: italic; margin-bottom: 1rem; }
.testimonial-card h4 { text-align: left; font-weight: 600; }

/* --- FAQ Section --- */
.faq-accordion { max-width: 700px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid #e0d9d1;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: right;
    padding: 1.5rem 0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}
.faq-icon { transition: transform 0.3s ease; }
.faq-question.active .faq-icon { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.faq-answer p { padding: 0 0 1.5rem 1rem; margin: 0; color: #666; }

/* --- Contact Section --- */
.contact-section { background-color: var(--white); }
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0 auto;
    padding: 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.form-group {
    position: relative;
    margin-bottom: 2rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-color);
    background: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    outline: none;
}
.form-group label {
    position: absolute;
    top: 10px;
    right: 0;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: 0.3s ease all;
}
.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -15px;
    font-size: 0.8rem;
    color: var(--gold-accent);
}
.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.form-group-checkbox label { font-size: 0.9rem; }
#form-message { margin-top: 1rem; text-align: center; }
.form-message.success { color: green; }
.form-message.error { color: red; }

/* --- Footer --- */
.main-footer {
    background-color: #F4F0EB;
    padding: 4rem 0 2rem 0;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 1rem;
    color: #333;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-color); }
.footer-col a:hover { color: var(--gold-accent); }
.social-icons { display: flex; gap: 1rem; }
.social-icons a { color: var(--text-color); }
.social-icons a:hover { color: var(--gold-accent); }
.footer-bottom {
    border-top: 1px solid #e0d9d1;
    padding-top: 2rem;
    text-align: center;
}
.weblite-credit a { font-weight: 600; }

/* --- Media Queries (Desktop First) --- */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    section { padding: 6rem 0; }
    
    .hero-buttons { flex-direction: row; justify-content: center; }
    
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    
    .about-content { flex-direction: row; text-align: right; gap: 3rem; }
    .about-image { flex: 1; }
    .about-text { flex: 1.2; }

    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    
    .philosophy-grid { grid-template-columns: repeat(3, 1fr); }
    
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .mobile-menu-toggle { display: none; }
    .main-nav { display: block; }
    
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    
    .footer-grid { grid-template-columns: 2fr 1fr 1.5fr 1fr; }
    .footer-bottom { display: flex; justify-content: space-between; align-items: center; }
}
