/* ---
Root Variables & Basic Setup
--- */
:root {
    --bg-color: #FFFFFF;
    --soft-pink: #FCE7F3;
    --light-blue: #E0F2FE;
    --dark-text: #374151;
    --primary-blue: #3B82F6;
    --sub-heading-color: #A5B4FC;
    --whatsapp-green: #25D366;
    --border-color: #e5e7eb;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --font-body: 'Heebo', sans-serif;
    --font-heading: 'Rubik', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--dark-text);
    background-color: var(--bg-color);
    text-align: right; /* RTL default */
}

.page-wrapper {
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

/* ---
Accessibility & Utility
--- */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
    background-color: var(--primary-blue);
    color: white;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
}

.skip-to-content:focus, .skip-to-content:active {
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    overflow: auto;
    z-index: 10000;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

/* ---
Typography
--- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--sub-heading-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 3rem;
}

/* ---
Buttons
--- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}
.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: var(--bg-color);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}
.btn-secondary:hover {
    background-color: #eff6ff;
}

/* ---
Header
--- */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    text-decoration: none;
}

.main-nav {
    display: none; /* Hidden on mobile */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.whatsapp-btn {
    color: var(--whatsapp-green);
    display: none; /* Hidden on mobile, shown on desktop */
}
.whatsapp-btn svg {
    transition: transform 0.3s ease;
}
.whatsapp-btn:hover svg {
    transform: scale(1.1);
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

/* ---
Sections General Styling
--- */
section {
    padding: 4rem 0;
}

main {
    display: block; /* Ensure main is a block element */
}

/* --- Hero Section --- */
.hero-section {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.9) 50%, white 100%), url('../img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- Demo Banner --- */
.demo-banner {
    background-color: var(--soft-pink);
    padding: 1rem 0;
    text-align: center;
}
.demo-banner p {
    margin: 0;
}
.demo-banner a {
    color: var(--primary-blue);
    font-weight: 500;
}
.demo-banner-alt {
    background-color: var(--light-blue);
}

/* --- About Section --- */
.about-section {
    background-color: var(--bg-color);
}
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.about-image .profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-color);
    box-shadow: var(--card-shadow);
}
.about-text {
    text-align: center;
}
.about-text p {
    max-width: 700px;
    margin: 0 auto 1rem;
}

/* --- Philosophy Section --- */
.philosophy-section {
    background-color: var(--light-blue);
}
.philosophy-icon {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}
.philosophy-text {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}


/* --- Services Section --- */
.services-section {
    background-color: #f9fafb;
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.service-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}
.service-icon {
    margin-bottom: 1rem;
    color: var(--primary-blue);
}
.service-title {
    margin-bottom: 0.5rem;
}

/* --- How It Works Section --- */
.how-it-works-section {
    background-color: var(--bg-color);
}
.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.step {
    text-align: center;
}
.step-number {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.step-title {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--light-blue);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.testimonial-card {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}
.testimonial-author {
    font-weight: 500;
    color: var(--primary-blue);
}
.testimonial-author::before {
    content: '— ';
}

/* --- FAQ Section --- */
.faq-section {
    background-color: #f9fafb;
}
.faq-accordion {
    max-width: 700px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-align: right;
    cursor: pointer;
}
.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-right: 1rem;
}
.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}
.faq-answer p {
    padding: 0 0 1.5rem;
    line-height: 1.8;
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--bg-color);
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}
.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    display: none;
    margin-top: 0.25rem;
}
.form-group.invalid .error-message {
    display: block;
}
.form-group.invalid input,
.form-group.invalid textarea {
    border-color: #ef4444;
}
.form-success {
    background-color: #dcfce7;
    color: #166534;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1.5rem;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--soft-pink);
    padding: 3rem 0;
    color: var(--dark-text);
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}
.footer-title {
    margin-bottom: 1rem;
}
.footer-credit {
    margin-top: 1rem;
    font-size: 0.9rem;
}
.footer-credit a {
    color: var(--primary-blue);
    text-decoration: none;
}
.contact-list {
    list-style: none;
    padding: 0;
}
.contact-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.contact-list a {
    color: var(--dark-text);
    text-decoration: none;
}
.contact-list a:hover {
    text-decoration: underline;
}

/* ---
Media Queries (Desktop First - Mobile-First approach)
--- */

/* Tablet */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }

    .mobile-menu-toggle { display: none; }
    .main-nav { display: block; }
    .whatsapp-btn { display: block; }

    .about-content {
        flex-direction: row;
        text-align: right;
        gap: 3rem;
    }
    .about-text { text-align: right; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-container { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    
    .contact-form { grid-template-columns: 1fr 1fr; }

    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        text-align: right;
    }
    .contact-list li { justify-content: flex-start; }
}

/* Desktop */
@media (min-width: 1024px) {
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile Menu (when active) */
.main-nav.mobile-active {
    display: block;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    padding: 1rem 0;
}
.main-nav.mobile-active .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.main-nav.mobile-active .nav-links li {
    width: 100%;
}
.main-nav.mobile-active .nav-link {
    display: block;
    padding: 1rem;
    text-align: center;
    width: 100%;
}
.main-nav.mobile-active .nav-link:hover {
    background-color: #f9fafb;
}
.main-nav.mobile-active .nav-link::after {
    display: none;
}

/* AOS animation adjustments */
[data-aos="fade-up"] {
    transform: translateY(20px);
    opacity: 0;
    transition-property: transform, opacity;
}
