/* ===== Custom Properties ===== */
:root {
    --primary: #526f63; /* Sage Green */
    --primary-light: #7c9b8f;
    --primary-dark: #3a5047;
    --secondary: #d6cfc4; /* Warm Stone Beige */
    --accent: #b08d6a; /* Soft Terracotta */
    --bg-light: #f9f8f6;
    --bg-dark: #1f2321;
    --text-dark: #2c302e;
    --text-light: #f0f0f0;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    --font-main: 'Heebo', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    --shadow-soft: 0 10px 30px rgba(82, 111, 99, 0.1);
    --shadow-hover: 0 20px 40px rgba(82, 111, 99, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    direction: rtl;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

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

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

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

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

/* ===== Typography & Utilities ===== */
.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section {
    padding: 5rem 0;
}

.bg-light { background-color: rgba(214, 207, 196, 0.2); }

/* ===== Buttons ===== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgba(82, 111, 99, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(82, 111, 99, 0.4);
    color: var(--white);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(82, 111, 99, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(82, 111, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(82, 111, 99, 0); }
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(249, 248, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    padding: 0.8rem 2rem;
}

.navbar.scrolled .logo, .navbar.scrolled .nav-links a:not(.btn-primary) {
    color: var(--primary-dark);
}

.navbar.scrolled .btn-primary {
    padding: 0.6rem 1.5rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-primary) {
    color: var(--white);
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

.navbar.scrolled .mobile-toggle span {
    background-color: var(--primary-dark);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem;
    gap: 2rem;
    z-index: 999;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 80, 71, 0.8) 0%, rgba(82, 111, 99, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 2rem;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary);
    z-index: -1;
    transition: var(--transition);
    opacity: 0.05;
}

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

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* ===== Reviews Section ===== */
.reviews-section {
    background: linear-gradient(to bottom, #f9f8f6, #e9ecea);
}

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

.review-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.stars {
    color: #eab308;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #444;
}

.reviewer {
    font-weight: 600;
    color: var(--primary-dark);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 8rem 0;
    background: var(--primary-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 155, 143, 0.2) 0%, transparent 70%);
    transform: rotate(30deg);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-info > p {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-details p a:hover {
    color: var(--accent);
}

.footer-socials p {
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== Animations ===== */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.2rem; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    
    .hero h1 { font-size: 2.3rem; margin-top: 1rem; }
    .hero p { font-size: 1rem; padding: 0 5px; margin-bottom: 2rem; }
    .hero-buttons { flex-direction: column; gap: 1rem; width: 100%; align-items: stretch; }
    .hero-buttons a { width: 100%; }
    
    .section { padding: 3.5rem 0; }
    .section-title { font-size: 2.2rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }
    
    .services-grid { gap: 1.5rem; }
    .service-card { padding: 2rem 1.5rem; }
    
    .reviews-wrapper { grid-template-columns: 1fr; gap: 1.5rem; }
    
    .cta-section { padding: 5rem 0; }
    .cta-section h2 { font-size: 2rem; }
    
    .footer-content { flex-direction: column; gap: 2rem; text-align: right; }
    .footer-info { width: 100%; }
    
    /* Float button mobile adjustments */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 24px;
    }
    
    /* Accessibility mobile adjustments */
    .accessibility-widget {
        bottom: 20px;
        left: 80px;
    }
    .acc-toggle {
        width: 50px;
        height: 50px;
    }
    .acc-menu {
        width: 170px;
        left: 0;
        bottom: 60px;
        padding: 0.8rem;
    }
    .acc-action { font-size: 0.85rem; padding: 0.4rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .cta-section h2 { font-size: 1.8rem; }
    .logo { font-size: 1.2rem; }
    
    .whatsapp-float { bottom: 15px; left: 15px; width: 45px; height: 45px; }
}

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px; /* left side since RTL */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.whatsapp-float:hover {
    background-color: #128C7E;
    color: #fff;
    transform: scale(1.1);
}

/* ===== Accessibility Widget ===== */
.accessibility-widget {
    position: fixed;
    bottom: 40px;
    left: 110px;
    z-index: 100;
}
.acc-toggle {
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
}
.acc-toggle:hover {
    background-color: #333;
    transform: scale(1.1);
}
.acc-menu {
    position: absolute;
    bottom: 70px;
    left: 0;
    background: var(--white);
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 1rem;
    width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}
.acc-menu.active {
    display: flex;
}
.acc-menu h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-dark);
}
.acc-action {
    background: #f0f0f0;
    color: var(--text-dark);
    border: 1px solid #ddd;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: 0.2s;
    font-size: 0.95rem;
}
.acc-action:hover {
    background: #e0e0e0;
}

/* Accessibility States */
body.acc-high-contrast,
body.acc-high-contrast * {
    background-color: #000 !important;
    background-image: none !important;
    color: #fff !important;
    border-color: #fff !important;
}
body.acc-large-text {
    font-size: 120%;
}
body.acc-highlight-links a {
    text-decoration: underline !important;
    background: yellow !important;
    color: black !important;
}
