@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    --primary-color: #1A1A1A;
    --primary-contrast: #FFFFFF;
    --bg-color: #FDF7F5;
    --bg-alt: #F5E6E0;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #DBC8C0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
    font-family: 'Lora', "Georgia", serif;
    color: var(--text-color);
    font-weight: normal;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: transparent;
    position: sticky;
    top: 0;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}


.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.logo-area, .nav-actions, .menu-btn {
    position: relative;
    z-index: 101;
}

.nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -260px;
    bottom: 0;
    width: 250px;
    background-color: var(--bg-color);
    border-left: 1px solid var(--border-color);
    padding: 7.5rem 1.5rem 2rem;
    gap: 1.5rem;
    z-index: 99;
    overflow-y: auto;
    transition: right 0.3s ease-in-out, left 0.3s ease-in-out;
    box-shadow: -4px 0 15px rgba(0,0,0,0.05);
}

.nav-links.active {
    right: 0;
}

body.menu-open {
    overflow: hidden;
}

/* Hebrew RTL Adjustments */
html[dir="rtl"] .nav-links {
    right: auto;
    left: -260px;
    border-left: none;
    border-right: 1px solid var(--border-color);
    box-shadow: 4px 0 15px rgba(0,0,0,0.05);
}

html[dir="rtl"] .nav-links.active {
    right: auto;
    left: 0;
}

/* Hebrew pages: text is aligned right-to-left at every screen size */
html[dir="rtl"] .hero-content {
    text-align: right;
}


.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-family: "Georgia", serif;
    font-size: 1.1rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switcher {
    display: none;
    font-family: system-ui, sans-serif;
    font-size: 0.95rem;
    color: var(--text-color);
}

.mobile-lang-switcher {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    color: var(--text-color);
}


.logo-area {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-right: 1rem;
}

.logo {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.1;
    white-space: nowrap;
}

.logo-subheading {
    font-size: clamp(0.9rem, 3vw, 1rem);
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.menu-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    background-color: var(--text-color);
    inset-inline-start: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    padding: 3rem 1.5rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(166, 123, 91, 0.1); /* Subtle shadow using primary color */
}

h1,
.hero-content > h2 {
    font-family: "Georgia", serif;
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    color: var(--primary-color);
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.hero-content p {
    font-size: clamp(1.15rem, 5vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.text-content p {
    font-size: clamp(1.1rem, 4vw, 1.25rem);
    color: var(--text-color);
    margin-bottom: 0;
    line-height: 1.7;
}

.text-content h2 {
    font-family: "Georgia", serif;
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0;
    line-height: 1.2;
    font-weight: normal;
}

/* Clinic line in the Contact section: slightly separated, with a map pin */
.clinic-line {
    display: block;
    margin-top: 0.6rem;
}

.map-pin {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    margin-inline-end: 0.2em;
}

@media (min-width: 768px) {
    .navbar {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas: 
            "logo logo"
            "links actions";
        padding: 3rem 2rem 2rem;
        gap: 1.5rem 2.5rem;
        align-items: center;
    }

    .logo-area {
        grid-area: logo;
        align-items: flex-start;
        text-align: left;
        padding-right: 0;
    }

    .nav-actions {
        grid-area: actions;
        position: static;
        justify-content: flex-end;
    }

    .nav-links {
        grid-area: links;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        gap: 2.5rem;
        box-shadow: none;
        z-index: 101;
        overflow: visible;
    }

    html[dir="rtl"] .logo-area {
        text-align: right;
    }

    html[dir="rtl"] .nav-actions {
        left: auto;
        right: auto;
    }

    html[dir="rtl"] .nav-links {
        right: auto;
        left: auto;
        border: none;
        box-shadow: none;
    }

    .menu-btn, .mobile-lang-switcher {
        display: none;
    }

    .lang-switcher {
        display: inline-block;
    }

    .hero-content {
        padding: 4rem 2rem;
        align-items: flex-start;
    }
}

/* Contact Section */
.contact-section {
    padding: 5rem 1.5rem;
    background-color: var(--bg-alt);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-container h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 1.5fr;
        gap: 4rem;
    }
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    font-family: inherit;
    font-size: 1rem;
    border-radius: 4px;
    color: var(--text-color);
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
