/* Curevia main style */
:root {
    --primary: #092B44;
    --primary-hover: #061d30;
    --accent: #C89550;
    --bg-light: #f5f0e9;
    --bg-soft: #fbf8f3;
    --text-muted: #40566b;
    --border-light: #ded8ce;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
html[dir="rtl"] body { direction: rtl; }
html[dir="ltr"] body { direction: ltr; }

body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-family: 'Tajawal', sans-serif;
    background: #fff;
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
h4,
p,
a,
span,
li,
label,
button {
    overflow-wrap: break-word;
}

section {
    width: 100%;
    max-width: 100%;
    scroll-margin-top: 84px;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 2px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-1px); }

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 0.8rem 1.5rem;
    border-radius: 2px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.btn-outline.slim { min-height: auto; padding: 0.55rem 1rem; border-color: var(--accent); color: var(--accent); font-size: 0.9rem; }
.btn-outline.slim:hover { background: var(--accent); color: #fff; }
.w-full { width: 100%; }

/* Shared titles */
.section-subtitle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: 800;
    font-size: 0.88rem;
}
.section-subtitle .line { width: 48px; height: 1.5px; background: var(--accent); }
.section-subtitle.center { justify-content: center; }

.section-title {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.25;
}
.text-white .section-title { color: #fff; }
.title-line { width: 60px; height: 2px; background: var(--accent); margin: 1.5rem auto; }
.title-line.right { margin: 1.5rem 0 1.5rem auto; }
.section-header.center { text-align: center; margin-bottom: 3.5rem; }
.no-wrap-desktop { white-space: nowrap; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 14px rgba(9,43,68,0.08);
    z-index: 1000;
    min-height: 75px;
    display: flex;
    align-items: center;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; position: relative; }
.logo img { height: 46px; display: block; }
.nav-links { display: flex; gap: 1.65rem; align-items: center; }
.nav-links a { font-weight: 700; color: var(--primary); font-size: 0.96rem; }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; gap: 0.8rem; align-items: center; }
.nav-cta { padding-inline: 1.1rem; }

.language-menu { position: relative; }
.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: #fff;
    padding: 0.55rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    min-height: 42px;
}
.globe-icon { flex: 0 0 auto; }
.language-dropdown {
    position: absolute;
    top: calc(100% + 0.45rem);
    inset-inline-end: 0;
    min-width: 145px;
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: 0 12px 26px rgba(9,43,68,0.12);
    border-radius: 6px;
    padding: 0.35rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
}
.language-menu.open .language-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.language-dropdown button {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--primary);
    padding: 0.62rem 0.75rem;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: start;
}
.language-dropdown button:hover { background: var(--bg-light); color: var(--accent); }

.mobile-menu-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: #fff;
    color: var(--primary);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.9rem);
    inset-inline: clamp(1rem, 4vw, 1.5rem);
    background: #fff;
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--accent);
    box-shadow: 0 18px 36px rgba(9,43,68,0.14);
    border-radius: 8px;
    padding: 0.75rem;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    max-height: calc(100vh - 98px);
    overflow-y: auto;
}

.mobile-menu-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0.75rem 0.95rem;
    border-radius: 6px;
    color: var(--primary);
    font-weight: 800;
}

.mobile-menu-panel a:hover {
    background: var(--bg-light);
    color: var(--accent);
}

.mobile-menu-panel .mobile-menu-cta {
    margin-top: 0.55rem;
    color: #fff;
    justify-content: center;
}

.mobile-menu-panel .mobile-menu-cta:hover {
    color: #fff;
    background: var(--primary-hover);
}

/* Home hero */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    padding-top: 80px;
}
.hero-bg-image {
    position: absolute;
    left: 0; top: 0; width: 55%; height: 100%;
    background-size: cover; background-position: center;
}
.hero-bg-overlay {
    position: absolute;
    left: 0; top: 0; width: 55%; height: 100%;
    background: linear-gradient(to right, rgba(245,240,233,0.08), var(--bg-light));
}
.hero-content { position: relative; z-index: 2; padding: 5.5rem 0 8rem; }
.hero-text-box { max-width: 620px; }
.hero-title {
    font-size: clamp(2.45rem, 4.9vw, 3.8rem);
    font-weight: 900;
    color: var(--primary);
    line-height: 1.18;
}
.hero-title-italic {
    font-size: clamp(2.15rem, 4.1vw, 3.65rem);
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}
.hero-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.4rem; line-height: 1.9; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-bottom-bar { position: absolute; bottom: 0; left: 0; right: 0; background: var(--primary); z-index: 3; }
.bottom-bar-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 1.5rem 0; text-align: center; color: var(--accent); font-weight: 800; font-size: 0.95rem; }

/* About */
.about-section { padding: 6rem 0; background: #fff; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.about-card { padding: 2.5rem; border-radius: 3px; border-top: 3px solid; box-shadow: 0 8px 22px rgba(9,43,68,0.06); }
.vision-card { border-top-color: var(--accent); background: #fff; }
.mission-card { border-top-color: var(--primary); background: var(--bg-light); }
.card-badge { font-size: 0.82rem; font-weight: 800; margin-bottom: 1rem; }
.vision-card .card-badge { color: var(--accent); }
.mission-card .card-badge { color: var(--primary); }
.about-card h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 1rem; line-height: 1.45; }
.about-card p { color: var(--text-muted); line-height: 1.9; }

/* Services */
.services-section { padding: 6rem 0; background: var(--bg-light); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-card { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 8px 24px rgba(9,43,68,0.07); }
.service-card.featured { border: 2px solid var(--accent); }
.service-img { height: 220px; background-size: cover; background-position: center; position: relative; }
.service-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(9,43,68,.64), rgba(9,43,68,.08)); }
.service-tag { position: absolute; bottom: 1rem; right: 1rem; z-index: 2; color: #fff; font-weight: 800; font-size: 0.88rem; }
.featured-badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; background: var(--accent); color: #fff; padding: 0.3rem 0.8rem; border-radius: 4px; font-size: 0.78rem; font-weight: 800; }
.service-content { padding: 2rem; }
.service-content h3 { font-size: 1.35rem; font-weight: 900; margin-bottom: 1rem; line-height: 1.45; }
.service-content p { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.9; }
.service-list { list-style: none; margin-bottom: 1.5rem; }
.service-list li { position: relative; padding-right: 1.2rem; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.92rem; }
.service-list li::before { content: ''; position: absolute; right: 0; top: 0.65rem; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.learn-more { color: var(--accent); font-weight: 900; font-size: 0.95rem; }
.learn-more:hover { color: var(--primary); }

/* CEO */
.ceo-section { padding: 6rem 0; background: #fff; }
.ceo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4rem; align-items: center; }
.ceo-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0.75rem;
    background: #fff;
    border: 2px solid rgba(200,149,80,0.75);
    box-shadow: 0 14px 35px rgba(9,43,68,0.10);
}
.ceo-image-backdrop { display: none; }
.ceo-image-container { position: relative; z-index: 1; aspect-ratio: 3/4; max-height: 520px; border-radius: 2px; overflow: hidden; background: var(--bg-light); }
.ceo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ceo-name-badge { position: absolute; bottom: 1.5rem; left: 1.5rem; background: var(--primary); padding: 1rem 1.5rem; z-index: 2; border-radius: 2px; }
.ceo-name { color: var(--accent); font-weight: 800; font-size: 0.9rem; }
.ceo-title { color: #fff; font-weight: 900; font-size: 1rem; margin-top: 0.2rem; }
.ceo-heading { font-size: clamp(1.9rem, 3.6vw, 2.55rem); font-weight: 900; color: var(--primary); margin-bottom: 0.5rem; }
.ceo-quote-wrapper { padding-right: 1.5rem; border-right: 3px solid var(--accent); margin-bottom: 2rem; }
.ceo-quote { font-size: 1.05rem; font-style: italic; color: var(--primary); line-height: 2; }
.ceo-text { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 2; }
.ceo-signature { color: var(--accent); font-weight: 800; font-style: italic; margin-top: 1rem; }

/* Features */
.features-section { background: var(--primary); padding: 6rem 0; color: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; }
.feature-card { padding: 2rem; border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; background: rgba(255,255,255,0.02); }
.feature-line { width: 40px; height: 2px; background: var(--accent); margin-bottom: 1rem; }
.feature-card h4 { font-size: 1.12rem; margin-bottom: 1rem; font-weight: 900; color: #fff; }
.feature-card p { color: rgba(255,255,255,0.72); font-size: 0.92rem; line-height: 1.85; }

/* Contact */
.contact-section { background: var(--bg-light); padding: 6rem 0; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4rem; }
.contact-desc { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.9; }
.contact-methods { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-method { display: flex; align-items: center; gap: 1rem; color: var(--text-muted); font-weight: 700; }
.icon-circle { width: 40px; height: 40px; background: var(--primary); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.contact-form-wrapper { background: #fff; padding: 2.5rem; border-top: 3px solid var(--accent); box-shadow: 0 12px 34px rgba(9,43,68,0.07); }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--border-light); border-radius: 4px; font-family: inherit; font-size: 0.95rem; color: var(--primary); background: #fff; }
.form-group textarea { resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(9,43,68,0.08); }
.hidden-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; pointer-events: none; }

/* Wellness page */
.wellness-hero-section { position: relative; min-height: 760px; display: flex; align-items: stretch; background: var(--bg-light); padding-top: 75px; overflow: hidden; }
.wellness-hero-image { position: absolute; left: 0; top: 75px; width: 48%; height: calc(100% - 75px); background-size: cover; background-position: center; }
.wellness-hero-image::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.42); }
.wellness-hero-fade { position: absolute; left: 0; top: 75px; width: 58%; height: calc(100% - 75px); background: linear-gradient(to right, rgba(245,240,233,0.08), var(--bg-light)); }
.wellness-hero-content { position: relative; z-index: 2; display: flex; align-items: center; justify-content: flex-end; padding-block: 5rem; }
.wellness-hero-box { width: min(610px, 100%); text-align: center; margin-inline-start: auto; }
.wellness-hero-title { font-size: clamp(2.6rem, 5.5vw, 4.8rem); line-height: 1.25; color: var(--primary); font-weight: 900; margin-bottom: 1.7rem; }
.wellness-hero-desc { color: var(--text-muted); font-size: 1.12rem; line-height: 2.05; max-width: 640px; margin: 0 auto 2rem; }
.wellness-buttons { justify-content: center; }
.center-buttons { justify-content: center; }

.wellness-stats-section { background: var(--primary); color: #fff; padding: 2.2rem 0; }
.wellness-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; text-align: center; gap: 2rem; }
.wellness-stat strong { display: block; color: var(--accent); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; letter-spacing: 1px; line-height: 1; margin-bottom: 0.7rem; }
.wellness-stat span { font-weight: 700; font-size: 0.95rem; color: rgba(255,255,255,0.85); }

.wellness-how-section { padding: 7rem 0 6rem; background: #fff; }
.wellness-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.wellness-step-card { border: 1px solid var(--border-light); border-top: 3px solid var(--accent); min-height: 290px; padding: 2.4rem 2rem; text-align: center; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wellness-card-icon { color: var(--accent); font-size: 2rem; line-height: 1; margin-bottom: 1.4rem; }
.wellness-step-card h3 { font-size: 1.35rem; font-weight: 900; margin-bottom: 0.2rem; color: var(--primary); }
.wellness-step-card em { color: var(--accent); font-style: italic; margin-bottom: 1.15rem; font-size: 0.92rem; }
.wellness-step-card p { color: var(--text-muted); line-height: 1.9; }

.wellness-challenges-section { background: var(--bg-light); padding: 6rem 0; }
.wellness-challenges-header { text-align: start; margin-bottom: 2rem; }
.challenge-list { display: flex; flex-direction: column; gap: 2rem; }
.challenge-item { background: #fff; border: 1px solid var(--border-light); min-height: 150px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding: 2.2rem 2.5rem; position: relative; }
.challenge-number { color: rgba(9,43,68,0.18); font-size: 3rem; font-weight: 900; min-width: 48px; text-align: center; }
.challenge-text h3 { color: var(--primary); font-size: 1.18rem; font-weight: 900; margin-bottom: 0.65rem; }
.challenge-text p { color: var(--text-muted); line-height: 1.85; }

.wellness-activities-section { background: var(--primary); color: #fff; padding: 6.5rem 0; }
.wellness-activities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.activity-card { border: 1px solid rgba(255,255,255,0.12); padding: 2.4rem 2rem; min-height: 250px; text-align: center; background: rgba(255,255,255,0.02); }
.activity-icon { font-size: 2rem; margin-bottom: 1.6rem; }
.activity-card h3 { color: var(--accent); font-size: 1.08rem; font-weight: 900; margin-bottom: 1.1rem; }
.activity-card p { color: rgba(255,255,255,0.76); line-height: 1.85; font-size: 0.92rem; }

.wellness-cta-section { background: var(--bg-light); padding: 6rem 0; }
.wellness-cta-box { text-align: center; max-width: 860px; }
.wellness-cta-box p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }

/* Footer */
.footer { background: var(--primary); color: #fff; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { height: 46px; filter: brightness(0) invert(1); margin-bottom: 1.5rem; }
.footer-brand p { color: rgba(255,255,255,0.72); font-size: 0.92rem; line-height: 1.9; max-width: 430px; }
.footer-links h4, .footer-contact h4 { color: var(--accent); font-size: 0.95rem; margin-bottom: 1.5rem; }
.footer-links a, .footer-contact p { display: block; color: rgba(255,255,255,0.72); margin-bottom: 0.8rem; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; color: rgba(255,255,255,0.55); }
.footer-bottom a { color: var(--accent); }

/* LTR refinements */
html[dir="ltr"] .hero-bg-image,
html[dir="ltr"] .hero-bg-overlay { left: auto; right: 0; }
html[dir="ltr"] .hero-bg-overlay { background: linear-gradient(to left, rgba(245,240,233,0.08), var(--bg-light)); }
html[dir="ltr"] .title-line.right { margin: 1.5rem auto 1.5rem 0; }
html[dir="ltr"] .service-tag { right: auto; left: 1rem; }
html[dir="ltr"] .featured-badge { left: auto; right: 1rem; }
html[dir="ltr"] .service-list li { padding-right: 0; padding-left: 1.2rem; }
html[dir="ltr"] .service-list li::before { right: auto; left: 0; }
html[dir="ltr"] .ceo-image-backdrop { right: auto; left: -20px; }
html[dir="ltr"] .ceo-name-badge { left: auto; right: 1.5rem; }
html[dir="ltr"] .ceo-quote-wrapper { padding-right: 0; padding-left: 1.5rem; border-right: none; border-left: 3px solid var(--accent); }
html[dir="ltr"] .wellness-hero-image { left: auto; right: 0; }
html[dir="ltr"] .wellness-hero-fade { left: auto; right: 0; background: linear-gradient(to left, rgba(245,240,233,0.08), var(--bg-light)); }
html[dir="ltr"] .wellness-hero-content { justify-content: flex-start; }
html[dir="ltr"] .wellness-hero-box { margin-inline-start: 0; margin-inline-end: auto; }

/* Responsive */
@media (max-width: 1200px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .nav-cta {
        padding-inline: 0.95rem;
    }

    .hero-text-box,
    .wellness-hero-box {
        width: min(100%, 560px);
    }

    .services-grid,
    .features-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .navbar {
        min-height: 72px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .mobile-menu-panel {
        display: flex;
        flex-direction: column;
    }

    .mobile-menu-checkbox:checked ~ .mobile-menu-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .mobile-menu-checkbox:checked ~ .nav-actions .mobile-menu-button .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-checkbox:checked ~ .nav-actions .mobile-menu-button .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-checkbox:checked ~ .nav-actions .mobile-menu-button .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-section {
        min-height: 820px;
    }

    .hero-bg-image,
    .hero-bg-overlay {
        width: 50%;
    }

    .hero-content {
        padding: 5rem 0 7.5rem;
    }

    .about-section,
    .services-section,
    .ceo-section,
    .features-section,
    .contact-section,
    .wellness-how-section,
    .wellness-challenges-section,
    .wellness-activities-section,
    .wellness-cta-section {
        padding-block: 5rem;
    }

    .ceo-grid,
    .contact-grid {
        gap: 3rem;
    }

    .wellness-how-grid,
    .wellness-activities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .challenge-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    section {
        scroll-margin-top: 76px;
    }

    .navbar {
        min-height: 68px;
    }

    .nav-container {
        gap: 0.75rem;
    }

    .nav-actions {
        gap: 0.55rem;
    }

    .nav-cta {
        display: none;
    }

    .logo img {
        height: 40px;
    }

    .language-toggle {
        padding: 0.5rem 0.65rem;
        min-width: 42px;
        justify-content: center;
    }

    .language-dropdown {
        inset-inline-end: 0;
        min-width: 132px;
    }

    .current-language {
        display: none;
    }

    .hero-section {
        min-height: auto;
        padding-top: 68px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-bg-image {
        width: 100%;
        height: 100%;
        opacity: 0.17;
    }

    .hero-bg-overlay {
        width: 100%;
        height: 100%;
        background: var(--bg-light);
        opacity: 0.86;
    }

    .hero-content {
        width: 100%;
        padding: 3.8rem 0 3rem;
    }

    .hero-text-box {
        max-width: none;
    }

    .no-wrap-desktop {
        white-space: normal;
    }

    .hero-title,
    .hero-title-italic {
        font-size: clamp(2.15rem, 8vw, 2.65rem);
    }

    .hero-desc {
        font-size: 1rem;
        line-height: 1.85;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
    }

    .hero-bottom-bar {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
    }

    .bottom-bar-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        padding: 1rem 0;
    }

    .section-header.center {
        margin-bottom: 2.25rem;
    }

    .section-subtitle {
        flex-wrap: wrap;
    }

    .section-subtitle.center {
        gap: 0.55rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 8vw, 2.3rem);
    }

    .about-section,
    .services-section,
    .ceo-section,
    .features-section,
    .contact-section,
    .wellness-how-section,
    .wellness-challenges-section,
    .wellness-activities-section,
    .wellness-cta-section {
        padding-block: 4rem;
    }

    .about-grid,
    .services-grid,
    .features-grid,
    .contact-grid,
    .ceo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-card,
    .service-content,
    .feature-card,
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .service-img {
        height: 200px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-method {
        align-items: flex-start;
        word-break: break-word;
    }

    .ceo-image-backdrop {
        top: -12px;
        right: -10px;
    }

    .ceo-image-container {
        max-height: none;
    }

    .ceo-name-badge {
        bottom: 1rem;
        left: 1rem;
    }

    html[dir="ltr"] .ceo-name-badge {
        right: 1rem;
        left: auto;
    }

    .ceo-quote-wrapper {
        padding-right: 1rem;
    }

    html[dir="ltr"] .ceo-quote-wrapper {
        padding-left: 1rem;
    }

    .wellness-hero-section {
        min-height: auto;
        padding-top: 68px;
        display: flex;
        flex-direction: column;
    }

    .wellness-hero-image,
    .wellness-hero-fade {
        top: 68px;
        height: calc(100% - 68px);
        width: 100%;
        opacity: 0.16;
    }

    .wellness-hero-fade {
        background: var(--bg-light);
        opacity: 0.9;
    }

    .wellness-hero-content {
        padding-block: 4rem;
        width: 100%;
    }

    .wellness-hero-box {
        text-align: center;
        width: 100%;
    }

    .wellness-hero-title {
        font-size: clamp(2.05rem, 9vw, 2.75rem);
    }

    .wellness-hero-desc {
        font-size: 1rem;
        line-height: 1.9;
    }

    .wellness-stats-grid,
    .wellness-how-grid,
    .wellness-activities-grid {
        grid-template-columns: 1fr;
    }

    .wellness-step-card,
    .activity-card {
        min-height: auto;
        padding: 1.75rem 1.35rem;
    }

    .challenge-item {
        padding: 1.5rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .container {
        padding-inline: 1rem;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        padding-inline: 1rem;
        text-align: center;
    }

    .mobile-menu-panel {
        inset-inline: 1rem;
    }

    .hero-content {
        padding: 3.25rem 0 2.4rem;
    }

    .hero-title,
    .hero-title-italic {
        font-size: clamp(1.95rem, 10vw, 2.35rem);
    }

    .hero-title-italic {
        margin-bottom: 1rem;
    }

    .bottom-bar-grid {
        font-size: 0.88rem;
    }

    .about-card h3,
    .service-content h3,
    .wellness-step-card h3 {
        font-size: 1.22rem;
    }

    .service-img {
        height: 185px;
    }

    .featured-badge,
    .service-tag {
        font-size: 0.74rem;
    }

    .contact-form-wrapper {
        padding: 1.25rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.92rem;
        padding: 0.8rem 0.9rem;
    }

    .wellness-stats-section {
        padding: 1.8rem 0;
    }

    .wellness-stat strong {
        font-size: 2rem;
    }

    .challenge-number {
        font-size: 2.35rem;
    }
}

@media (max-width: 420px) {
    .logo img {
        height: 36px;
    }

    .language-toggle,
    .mobile-menu-button {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }

    .globe-icon {
        width: 17px;
        height: 17px;
    }

    .hero-title,
    .hero-title-italic,
    .wellness-hero-title {
        font-size: clamp(1.75rem, 11vw, 2.1rem);
    }

    .section-title,
    .ceo-heading {
        font-size: clamp(1.55rem, 9vw, 1.95rem);
    }

    .section-subtitle .line {
        width: 34px;
    }

    .about-card,
    .service-content,
    .feature-card,
    .contact-form-wrapper,
    .wellness-step-card,
    .activity-card {
        padding: 1.15rem;
    }

    .service-img {
        height: 170px;
    }

    .ceo-name-badge {
        left: 0.75rem;
        bottom: 0.75rem;
        padding: 0.8rem 1rem;
    }

    html[dir="ltr"] .ceo-name-badge {
        right: 0.75rem;
        left: auto;
    }
}


/* Mobile and tablet overflow fix */
@media (max-width: 992px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .navbar,
    .hero-section,
    .about-section,
    .services-section,
    .ceo-section,
    .features-section,
    .contact-section,
    .wellness-hero-section,
    .wellness-stats-section,
    .wellness-how-section,
    .wellness-challenges-section,
    .wellness-activities-section,
    .wellness-cta-section,
    .footer {
        width: 100%;
        max-width: 100%;
    }

    .container {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-section {
        min-height: auto;
        padding-top: 72px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-bg-image,
    .hero-bg-overlay {
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
    }

    html[dir="ltr"] .hero-bg-image,
    html[dir="ltr"] .hero-bg-overlay {
        left: 0;
        right: 0;
    }

    .hero-bg-image {
        opacity: 0.15;
    }

    .hero-bg-overlay {
        background: var(--bg-light);
        opacity: 0.9;
    }

    .hero-content {
        width: 100%;
        padding: 4rem 0 3rem;
    }

    .hero-text-box {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .hero-text-box .section-subtitle {
        justify-content: center;
    }

    .no-wrap-desktop {
        white-space: normal;
    }

    .hero-title,
    .hero-title-italic {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-bottom-bar {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
    }

    .about-grid,
    .services-grid,
    .features-grid,
    .contact-grid,
    .ceo-grid,
    .wellness-how-grid,
    .wellness-activities-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-card,
    .service-card,
    .feature-card,
    .contact-form-wrapper,
    .wellness-step-card,
    .activity-card,
    .challenge-item {
        width: 100%;
        max-width: 100%;
    }

    .wellness-hero-section {
        min-height: auto;
        padding-top: 72px;
        display: flex;
        flex-direction: column;
    }

    .wellness-hero-image,
    .wellness-hero-fade {
        left: 0;
        right: 0;
        top: 72px;
        width: 100%;
        height: calc(100% - 72px);
    }

    html[dir="ltr"] .wellness-hero-image,
    html[dir="ltr"] .wellness-hero-fade {
        left: 0;
        right: 0;
    }

    .wellness-hero-image {
        opacity: 0.15;
    }

    .wellness-hero-fade {
        background: var(--bg-light);
        opacity: 0.9;
    }

    .wellness-hero-content {
        width: 100%;
        justify-content: center;
        padding-block: 4rem;
    }

    html[dir="ltr"] .wellness-hero-content {
        justify-content: center;
    }

    .wellness-hero-box {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .ceo-image-wrapper {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .ceo-image-backdrop {
        display: none;
    }

    .ceo-name-badge {
        left: 1.5rem;
        bottom: 1.5rem;
    }

    html[dir="ltr"] .ceo-name-badge {
        right: 1.5rem;
        left: auto;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-content {
        padding-top: 3.25rem;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline,
    .wellness-buttons .btn-primary,
    .wellness-buttons .btn-outline,
    .center-buttons .btn-primary,
    .center-buttons .btn-outline {
        width: 100%;
    }

    .about-grid,
    .services-grid,
    .features-grid,
    .contact-grid,
    .ceo-grid,
    .wellness-how-grid,
    .wellness-activities-grid {
        max-width: 100%;
    }

    .ceo-image-wrapper {
        padding: 0.55rem;
    }

    .ceo-name-badge {
        left: 1rem;
        bottom: 1rem;
        padding: 0.85rem 1rem;
    }

    html[dir="ltr"] .ceo-name-badge {
        right: 1rem;
        left: auto;
    }
}

/* Final CEO image frame correction - keeps the image inside an elegant close frame */
.ceo-grid {
    align-items: center;
}

.ceo-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}

.ceo-image-backdrop {
    display: block !important;
    position: absolute;
    inset: -12px;
    border: 1.5px solid rgba(200, 149, 80, 0.85);
    border-radius: 7px;
    z-index: 0;
    pointer-events: none;
    background: transparent;
}

.ceo-image-container {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: none;
    padding: 12px;
    background: #ffffff;
    border: 1px solid rgba(200, 149, 80, 0.55);
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(9, 43, 68, 0.12);
}

.ceo-image-container::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(200, 149, 80, 0.32);
    border-radius: 4px;
    z-index: 2;
    pointer-events: none;
}

.ceo-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
}

.ceo-name-badge {
    position: absolute;
    bottom: 28px;
    inset-inline-start: -18px;
    left: auto;
    right: auto;
    min-width: 185px;
    background: var(--primary);
    padding: 1.05rem 1.65rem;
    z-index: 3;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 12px 28px rgba(9, 43, 68, 0.2);
}

.ceo-name {
    color: var(--accent);
    font-weight: 900;
    font-size: 1rem;
    line-height: 1.4;
}

.ceo-title {
    color: #ffffff;
    font-weight: 900;
    font-size: 1.1rem;
    margin-top: 0.35rem;
    line-height: 1.4;
}

html[dir="ltr"] .ceo-name-badge {
    inset-inline-start: auto;
    inset-inline-end: -18px;
    left: auto;
    right: auto;
}

@media (max-width: 992px) {
    .ceo-image-wrapper {
        max-width: 520px;
        margin-inline: auto;
    }

    .ceo-image-backdrop {
        display: block !important;
        inset: -10px;
    }

    .ceo-name-badge {
        bottom: 24px;
        inset-inline-start: 12px;
        left: auto;
        right: auto;
    }

    html[dir="ltr"] .ceo-name-badge {
        inset-inline-start: auto;
        inset-inline-end: 12px;
        left: auto;
        right: auto;
    }
}

@media (max-width: 768px) {
    .ceo-image-wrapper {
        max-width: min(92vw, 500px);
        margin-top: 1rem;
        margin-bottom: 2.25rem;
    }

    .ceo-image-backdrop {
        inset: -8px;
        border-radius: 6px;
    }

    .ceo-image-container {
        padding: 10px;
        aspect-ratio: 4 / 5;
        border-radius: 6px;
    }

    .ceo-image-container::before {
        inset: 10px;
        border-radius: 4px;
    }

    .ceo-name-badge {
        bottom: 22px;
        inset-inline-start: 16px;
        min-width: 155px;
        padding: 0.85rem 1.1rem;
    }

    html[dir="ltr"] .ceo-name-badge {
        inset-inline-start: auto;
        inset-inline-end: 16px;
    }

    .ceo-name {
        font-size: 0.9rem;
    }

    .ceo-title {
        font-size: 1rem;
    }
}

@media (max-width: 420px) {
    .ceo-image-wrapper {
        max-width: 90vw;
    }

    .ceo-image-backdrop {
        inset: -6px;
    }

    .ceo-image-container {
        padding: 8px;
    }

    .ceo-image-container::before {
        inset: 8px;
    }

    .ceo-name-badge {
        bottom: 18px;
        inset-inline-start: 12px;
        min-width: 138px;
        padding: 0.75rem 0.9rem;
    }

    html[dir="ltr"] .ceo-name-badge {
        inset-inline-start: auto;
        inset-inline-end: 12px;
    }
}

/* =========================================================
   Curevia final layout correction
   Fixes: logo on the left side, hero blank space, desktop/tablet/mobile scaling
   This block is intentionally placed at the end to override earlier rules
   without deleting or shortening any previous CSS lines.
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    overflow-x: hidden;
}

body {
    position: relative;
}

.navbar {
    width: 100%;
    max-width: 100%;
    min-height: 75px;
    overflow: visible;
}

.navbar .container.nav-container {
    direction: ltr;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1320px;
    min-height: 75px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 3vw, 2rem);
    padding-right: clamp(1rem, 3vw, 2rem);
}

.logo {
    order: 1;
    flex: 0 0 auto;
    margin-left: 0;
    margin-right: 0;
}

.logo img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
}

.nav-links {
    order: 2;
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: clamp(1rem, 2vw, 2rem);
    margin-left: clamp(1rem, 3vw, 2.5rem);
    margin-right: clamp(1rem, 3vw, 2.5rem);
}

.nav-actions {
    order: 3;
    direction: rtl;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mobile-menu-checkbox {
    order: 4;
}

.mobile-menu-panel {
    direction: rtl;
}

html[dir="ltr"] .navbar .container.nav-container {
    direction: ltr;
}

html[dir="ltr"] .nav-links,
html[dir="ltr"] .nav-actions,
html[dir="ltr"] .mobile-menu-panel {
    direction: ltr;
}

/* Full-width hero without the large empty side space */
.hero-section {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    padding-top: 75px;
    background: var(--bg-light);
}

.hero-bg-image {
    position: absolute !important;
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    opacity: 0.92;
}

.hero-bg-overlay {
    position: absolute !important;
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    background: linear-gradient(
        to left,
        rgba(245, 240, 233, 0.98) 0%,
        rgba(245, 240, 233, 0.92) 30%,
        rgba(245, 240, 233, 0.70) 52%,
        rgba(245, 240, 233, 0.35) 72%,
        rgba(245, 240, 233, 0.10) 100%
    ) !important;
    opacity: 1 !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1320px;
    min-height: calc(100vh - 75px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 3vw, 2rem);
    padding-right: clamp(1rem, 3vw, 2rem);
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(7rem, 10vw, 9rem);
}

.hero-text-box {
    width: min(620px, 100%);
    max-width: 620px;
    margin-inline-start: auto;
    margin-inline-end: 0;
    text-align: right;
}

.hero-text-box .section-subtitle {
    justify-content: flex-start;
}

.hero-buttons {
    justify-content: flex-start;
}

.hero-bottom-bar {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
}

html[dir="ltr"] .hero-bg-overlay {
    background: linear-gradient(
        to right,
        rgba(245, 240, 233, 0.98) 0%,
        rgba(245, 240, 233, 0.92) 30%,
        rgba(245, 240, 233, 0.70) 52%,
        rgba(245, 240, 233, 0.35) 72%,
        rgba(245, 240, 233, 0.10) 100%
    ) !important;
}

html[dir="ltr"] .hero-content {
    justify-content: flex-start;
}

html[dir="ltr"] .hero-text-box {
    margin-inline-start: 0;
    margin-inline-end: auto;
    text-align: left;
}

html[dir="ltr"] .hero-text-box .section-subtitle,
html[dir="ltr"] .hero-buttons {
    justify-content: flex-start;
}

/* Prevent any section from creating horizontal blank space */
.navbar,
.hero-section,
.about-section,
.services-section,
.ceo-section,
.features-section,
.contact-section,
.wellness-hero-section,
.wellness-stats-section,
.wellness-how-section,
.wellness-challenges-section,
.wellness-activities-section,
.wellness-cta-section,
.footer {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.about-grid,
.services-grid,
.ceo-grid,
.features-grid,
.contact-grid,
.wellness-how-grid,
.wellness-activities-grid,
.wellness-stats-grid,
.challenge-list,
.footer-grid {
    width: 100%;
    min-width: 0;
}

.about-card,
.service-card,
.ceo-image-wrapper,
.ceo-content,
.feature-card,
.contact-info,
.contact-form-wrapper,
.wellness-step-card,
.activity-card,
.challenge-item,
.footer-brand,
.footer-links,
.footer-contact {
    min-width: 0;
}

@supports not (overflow: clip) {
    .navbar,
    .hero-section,
    .about-section,
    .services-section,
    .ceo-section,
    .features-section,
    .contact-section,
    .wellness-hero-section,
    .wellness-stats-section,
    .wellness-how-section,
    .wellness-challenges-section,
    .wellness-activities-section,
    .wellness-cta-section,
    .footer {
        overflow-x: hidden;
    }
}

@media (max-width: 1200px) {
    .navbar .container.nav-container {
        max-width: 100%;
    }

    .logo img {
        height: 48px;
        max-width: 210px;
    }

    .nav-links {
        gap: 1rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .nav-actions {
        gap: 0.65rem;
    }

    .nav-cta {
        padding-inline: 0.95rem;
        white-space: nowrap;
    }
}

@media (max-width: 992px) {
    .navbar {
        min-height: 68px;
    }

    .navbar .container.nav-container {
        min-height: 68px;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .logo {
        order: 1;
    }

    .logo img {
        height: 42px;
        max-width: 190px;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        order: 2;
        margin-left: auto;
        margin-right: 0;
        gap: 0.55rem;
    }

    .mobile-menu-panel {
        top: calc(100% + 0.65rem);
        left: 1rem;
        right: 1rem;
        inset-inline: auto;
        width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
    }

    .hero-section {
        min-height: auto;
        display: block;
        padding-top: 68px;
        background: var(--bg-light);
    }

    .hero-bg-image {
        opacity: 0.18;
        background-position: center center !important;
    }

    .hero-bg-overlay,
    html[dir="ltr"] .hero-bg-overlay {
        background: var(--bg-light) !important;
        opacity: 0.93 !important;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        display: block;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 4rem;
        padding-bottom: 3rem;
    }

    .hero-text-box,
    html[dir="ltr"] .hero-text-box {
        width: 100%;
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
        margin-inline-start: auto;
        margin-inline-end: auto;
        text-align: center;
    }

    .hero-text-box .section-subtitle,
    html[dir="ltr"] .hero-text-box .section-subtitle,
    .hero-buttons,
    html[dir="ltr"] .hero-buttons {
        justify-content: center;
    }

    .hero-title,
    .hero-title-italic {
        width: 100%;
        max-width: 100%;
    }

    .hero-desc {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-bottom-bar {
        position: relative;
        right: auto;
        left: auto;
        bottom: auto;
    }

    .bottom-bar-grid {
        width: 100%;
        max-width: 100%;
    }

    .about-grid,
    .services-grid,
    .ceo-grid,
    .features-grid,
    .contact-grid,
    .wellness-how-grid,
    .wellness-activities-grid {
        grid-template-columns: 1fr;
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .navbar .container.nav-container {
        padding-left: 0.95rem;
        padding-right: 0.95rem;
    }

    .logo img {
        height: 40px;
        max-width: 170px;
    }

    .language-toggle {
        min-width: 42px;
        width: 42px;
        height: 42px;
        padding: 0;
    }

    .mobile-menu-button {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }

    .hero-section {
        padding-top: 68px;
    }

    .hero-content {
        padding-top: 3.5rem;
        padding-bottom: 2.75rem;
    }

    .hero-title,
    .hero-title-italic {
        font-size: clamp(2.05rem, 8.5vw, 2.7rem);
        line-height: 1.18;
    }

    .hero-desc {
        font-size: 1rem;
        line-height: 1.85;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .navbar .container.nav-container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .logo img {
        height: 36px;
        max-width: 150px;
    }

    .nav-actions {
        gap: 0.45rem;
    }

    .language-toggle,
    .mobile-menu-button {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .mobile-menu-panel {
        left: 0.85rem;
        right: 0.85rem;
        width: calc(100% - 1.7rem);
        max-width: calc(100% - 1.7rem);
    }

    .hero-content {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 3.1rem;
        padding-bottom: 2.4rem;
    }

    .hero-title,
    .hero-title-italic {
        font-size: clamp(1.85rem, 10vw, 2.35rem);
    }

    .bottom-bar-grid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 420px) {
    .logo img {
        height: 34px;
        max-width: 138px;
    }

    .language-toggle,
    .mobile-menu-button {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    .globe-icon {
        width: 16px;
        height: 16px;
    }

    .hamburger-line {
        width: 18px;
    }

    .hero-content {
        padding-top: 2.8rem;
    }
}

/* =========================================================
   Curevia final header + hero text direction fix
   Requested: keep logo on the left, move language/CTA to the left side
   after "Contact us", and align the hero text to the right.
   This block is appended at the end to override earlier rules without
   deleting, shortening, or removing any previous CSS lines.
   ========================================================= */

@media (min-width: 993px) {
    .navbar .container.nav-container {
        direction: ltr;
        justify-content: flex-start;
        gap: clamp(1.25rem, 2.4vw, 2.75rem);
        flex-wrap: nowrap;
    }

    .logo {
        order: 1;
        margin-left: 0;
        margin-right: clamp(1.5rem, 3vw, 3.5rem);
    }

    .nav-actions {
        order: 2;
        direction: rtl;
        flex: 0 0 auto;
        margin-left: 0;
        margin-right: 0;
        justify-content: flex-start;
    }

    .nav-links {
        order: 3;
        direction: rtl;
        flex: 0 1 auto;
        justify-content: flex-start;
        margin-left: 0;
        margin-right: 0;
    }

    .nav-links a,
    .nav-actions a,
    .nav-actions button {
        white-space: nowrap;
    }

    html[dir="ltr"] .navbar .container.nav-container {
        direction: ltr;
    }

    html[dir="ltr"] .logo {
        order: 1;
        margin-left: 0;
        margin-right: clamp(1.5rem, 3vw, 3.5rem);
    }

    html[dir="ltr"] .nav-actions {
        order: 3;
        direction: ltr;
    }

    html[dir="ltr"] .nav-links {
        order: 2;
        direction: ltr;
    }
}

/* Hero Arabic alignment: keep the content on the right side */
html[dir="rtl"] .hero-content {
    direction: rtl;
    justify-content: flex-start;
    text-align: right;
}

html[dir="rtl"] .hero-text-box {
    text-align: right;
    margin-right: 0;
    margin-left: auto;
    margin-inline-start: 0;
    margin-inline-end: auto;
}

html[dir="rtl"] .hero-text-box .section-subtitle {
    justify-content: flex-start;
    text-align: right;
}

html[dir="rtl"] .hero-buttons {
    justify-content: flex-start;
}

html[dir="rtl"] .hero-desc {
    margin-right: 0;
    margin-left: auto;
    text-align: right;
}

html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-title-italic {
    text-align: right;
}

/* Keep the English layout clean when switching to LTR */
html[dir="ltr"] .hero-content {
    direction: ltr;
    justify-content: flex-start;
    text-align: left;
}

html[dir="ltr"] .hero-text-box {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
    margin-inline-start: 0;
    margin-inline-end: auto;
}

html[dir="ltr"] .hero-text-box .section-subtitle,
html[dir="ltr"] .hero-buttons {
    justify-content: flex-start;
}

html[dir="ltr"] .hero-desc,
html[dir="ltr"] .hero-title,
html[dir="ltr"] .hero-title-italic {
    text-align: left;
}

@media (max-width: 992px) {
    .navbar .container.nav-container {
        direction: ltr;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .logo {
        order: 1;
        margin-left: 0;
        margin-right: 0;
    }

    .nav-actions {
        order: 2;
        margin-left: auto;
        margin-right: 0;
    }

    html[dir="rtl"] .hero-content {
        direction: rtl;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        text-align: right;
    }

    html[dir="rtl"] .hero-text-box {
        width: min(100%, 760px);
        max-width: 760px;
        margin-right: 0;
        margin-left: auto;
        margin-inline-start: 0;
        margin-inline-end: auto;
        text-align: right;
    }

    html[dir="rtl"] .hero-text-box .section-subtitle,
    html[dir="rtl"] .hero-buttons {
        justify-content: flex-start;
    }

    html[dir="rtl"] .hero-desc {
        margin-right: 0;
        margin-left: auto;
        text-align: right;
    }
}

@media (max-width: 768px) {
    html[dir="rtl"] .hero-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    html[dir="rtl"] .hero-text-box {
        width: 100%;
        max-width: 100%;
    }

    html[dir="rtl"] .hero-buttons {
        align-items: stretch;
    }
}
