/* =====================================================
   COMFORT TIME CENTER - Main Stylesheet
   ===================================================== */

/* CSS Variables */
:root {
    --primary-green: #337503;
    --primary-green-dark: #265802;
    --primary-green-light: #82B75D;
    --secondary-green: #82B75D;
    --dark-green: #2d5016;
    --header-text: #50554D;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --white: #ffffff;
    --off-white: #f9f9f9;
    --light-gray: #f5f5f5;
    --border-gray: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Tenor Sans', 'Segoe UI', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* RTL Support */
[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

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

ul {
    list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   TOP HEADER BAR
   ===================================================== */
.top-header {
    background-color: var(--primary-green-light);
    color: var(--header-text);
    padding: 12px 0;
    font-size: 13px;
}

.top-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.top-header-info {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.top-header-info a,
.top-header-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--header-text);
}

.top-header-info a:hover {
    color: var(--dark-green);
}

.top-header-info i {
    color: var(--header-text);
}

.top-header-social {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    right: 20px;
}

.top-header .container {
    position: relative;
}

.top-header-social a {
    color: var(--header-text);
    font-size: 15px;
    transition: var(--transition);
}

.top-header-social a:hover {
    color: var(--dark-green);
    transform: scale(1.1);
}

/* =====================================================
   MAIN NAVIGATION
   ===================================================== */
.main-nav {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 83px;
    width: auto;
}

.logo-text {
    display: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu a {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-green);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
    border: none;
    padding: 0;
}

.lang-switcher i {
    display: none;
}

.lang-switcher:hover {
    color: var(--primary-green);
}

.phone-button {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.phone-button .phone-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
}

.phone-button:hover {
    color: var(--primary-green);
}

.phone-button:hover .phone-icon {
    background-color: var(--primary-green-dark);
    box-shadow: var(--shadow);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* =====================================================
   HERO SLIDER
   ===================================================== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin: 20px;
    border-radius: 25px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 8s ease-out;
}

.slide.active .slide-image {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(75, 95, 65, 0.92) 0%, rgba(75, 95, 65, 0.85) 30%, rgba(75, 95, 65, 0.5) 60%, rgba(75, 95, 65, 0.1) 85%, transparent 100%);
    display: flex;
    align-items: center;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 80px;
    transform: translateY(-50%);
    max-width: 600px;
    color: var(--white);
}

/* "Comfort Time Center" — promoted to the slide's primary title.
   Was a 13px uppercase eyebrow; now a large display heading. */
.slide-subtitle {
    font-size: 52px;
    font-family: var(--font-heading);
    line-height: 1.05;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.2s;
}

.slide.active .slide-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* "Best Place for Rehabilitation" — medium subtitle, sits between
   the title and the descriptive heading. Italic Tenor Sans gives
   it a tagline feel without competing with the title above. */
.slide-subtitle-line2 {
    font-size: 24px;
    font-family: var(--font-heading);
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.3s;
}

.slide.active .slide-subtitle-line2 {
    opacity: 0.9;
    transform: translateY(0);
}

/* The longer marketing sentence — demoted from h1/48px to h4/20px
   per client request ("h4 or h5"). Still uses the heading font for
   consistency with the rest of the slide stack. */
.slide-title {
    font-size: 20px;
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease 0.4s;
}

.slide.active .slide-title {
    opacity: 1;
    transform: translateY(0);
}

.slide-description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease 0.5s;
    max-width: 520px;
}

.slide.active .slide-description {
    opacity: 0.9;
    transform: translateY(0);
}

.slide-content .btn {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease 0.6s, background-color 0.3s ease, color 0.3s ease;
}

.slide.active .slide-content .btn {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--white);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-green {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-green:hover {
    background-color: var(--primary-green-dark);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-secondary-green {
    background-color: var(--secondary-green);
    color: var(--white);
}

.btn-secondary-green:hover {
    background-color: #6fa049;
    box-shadow: var(--shadow-lg);
}

.slider-dots {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
    background-color: var(--white);
    border-color: var(--white);
    transform: scale(1.2);
}

/* =====================================================
   INFO CARDS SECTION (After Slider)
   ===================================================== */
.info-cards-section {
    padding: 60px 20px;
    background-color: var(--white);
}

.info-cards-section .container {
    max-width: 1400px;
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 25px;
    align-items: stretch;
}

/* Recovery Card with Appointment Inside */
.recovery-appointment-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    min-height: 420px;
}

.recovery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 420px;
}

.recovery-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recovery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px;
    /* Reserve enough horizontal space on the right for the .appointment-card.
       The card is at most min(48%, 380px) wide and sits at right: 25px,
       so the actual horizontal footprint = min(48%, 380px) + 25px.
       Adding another 25px of breathing room gives +50px total. The previous
       value (52%) accounted for max-width but not the absolute 25px offset,
       so on narrower viewports — where the recovery card is small enough
       that 25px is a meaningful fraction of its width — the text slid under
       the card. The min() function adapts to whichever card-width constraint
       (the 48% max or the 380px fixed width) is active at the current size. */
    padding-right: calc(min(48%, 380px) + 50px);
}

.recovery-card-subtitle {
    font-size: 32px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 18px;
}

.recovery-card-title {
    font-size: 18px;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.92);
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 25px;
}

.recovery-card .btn-outline-white {
    background-color: transparent;
    color: var(--white);
    padding: 12px 25px;
    font-size: 11px;
    border-radius: 25px;
    border: 2px solid var(--white);
    width: fit-content;
}

.recovery-card .btn-outline-white:hover {
    background-color: var(--white);
    color: var(--text-dark);
}

/* Appointment Card - Inside Recovery Card */
.appointment-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    max-width: 48%;
    z-index: 5;
}

.appointment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.appointment-card-title {
    font-size: 26px;
    font-family: var(--font-heading);
    color: #6a7557;
}

.appointment-card-icon {
    width: 40px;
    height: 40px;
}

.appointment-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.appointment-card-divider {
    width: 100%;
    height: 1px;
    background-color: var(--border-gray);
    margin-bottom: 20px;
}

.appointment-card-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

.appointment-card-phone {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.appointment-card-phone .phone-icon {
    width: 35px;
    height: 35px;
    background-color: var(--secondary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    flex-shrink: 0;
}

.appointment-card-phone-numbers {
    display: flex;
    flex-direction: column;
}

.appointment-card-phone-label {
    font-size: 11px;
    color: var(--secondary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.appointment-card-phone-number {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    line-height: 1.5;
}

.appointment-card-phone-number:hover {
    color: var(--primary-green);
}

.appointment-card-link {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-top: auto;
    font-weight: 500;
}

.appointment-card-link:hover {
    color: var(--primary-green);
}

/* Visit Card */
.visit-card {
    background-color: #eaf3ee;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.visit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.visit-card-title {
    font-size: 22px;
    font-family: var(--font-heading);
    color: #6a7557;
}

.visit-card-icon {
    width: 40px;
    height: 40px;
}

.visit-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.visit-card-divider {
    width: 100%;
    height: 1px;
    background-color: var(--border-gray);
    margin-bottom: 20px;
}

.visit-card-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

.visit-card-location-title {
    font-size: 16px;
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 10px;
}

.visit-card-address {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

.visit-card-link {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-weight: 500;
}

.visit-card-link:hover {
    color: var(--primary-green);
}

/* Hours Card */
.hours-card {
    background-color: var(--primary-green);
    border-radius: 20px;
    padding: 30px;
    color: var(--white);
    display: flex;
    flex-direction: column;
}

.hours-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.hours-card-title {
    font-size: 22px;
    font-family: var(--font-heading);
    color: var(--white);
}

.hours-card-icon {
    width: 40px;
    height: 40px;
}

.hours-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.hours-card-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-bottom: 25px;
}

.hours-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hours-card-row:last-of-type {
    border-bottom: none;
}

.hours-card-day {
    font-size: 14px;
    color: var(--white);
}

.hours-card-time {
    font-size: 14px;
    color: var(--white);
    font-weight: 500;
}

.hours-card-closed {
    color: rgba(255, 255, 255, 0.7);
}

.hours-card-link {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    font-weight: 500;
}

.hours-card-link:hover {
    opacity: 0.8;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    padding: 0;
    padding-right: 15px;
    padding-bottom: 15px;
    max-width: 85%;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 40px;
    right: 0;
    bottom: 0;
    background-color: #b8d9c2;
    border-radius: 0 0 130px 0;
    z-index: 0;
}

.about-image::after {
    display: none;
}

.about-image img {
    position: relative;
    z-index: 2;
    border-radius: 130px 0 130px 0;
    box-shadow: var(--shadow-lg);
    max-width: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.about-image-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}

.section-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.section-title {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-text {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.about-feature-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.about-feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-feature h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.about-feature p {
    font-size: 14px;
    color: var(--text-gray);
}

/* =====================================================
   SERVICES BAR (Our Departments)
   ===================================================== */
.services-bar {
    background-color: var(--primary-green);
    padding: 60px 0;
}

.services-bar .container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.services-intro {
    color: var(--white);
}

.services-intro-title {
    /* Inherit font-family from body so it matches other section titles
       on the page (e.g. "Why Choose Us" / "لماذا تختارنا" which uses
       .section-title). Setting var(--font-heading) explicitly was
       producing a different fallback chain for Arabic than the rest of
       the page's section headings. */
    font-size: 38px;
    color: var(--white);
    margin-bottom: 20px;
}

/* Subtitle under "Our Departments" — bumped to 18px so it reads as
   a proper subtitle rather than fine-print copy. Line-height kept
   loose for the longer Arabic phrase that wraps across two lines. */
.services-intro-text {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 60px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    padding: 8px 0;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateX(5px);
}

.service-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-item-icon i {
    font-size: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item span {
    font-size: 22px;
    font-family: 'Tenor Sans', serif;
    font-weight: 400;
}

/* =====================================================
   WHY CHOOSE US SECTION
   ===================================================== */
.why-choose-section {
    padding: 80px 0;
    background-color: var(--white);
}

.why-choose-section .section-title {
    text-align: center;
    margin-bottom: 50px;
    font-family: var(--font-heading);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: start;
}

.why-choose-card {
    padding: 30px 20px;
    border-radius: 10px;
    background-color: var(--white);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-choose-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.why-choose-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.why-choose-icon.dark-green {
    background-color: #337503;
}

.why-choose-icon.light-green {
    background-color: #82B75D;
}

.why-choose-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.why-choose-card h3 {
    font-size: 18px;
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.why-choose-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* =====================================================
   VIDEO SECTION
   ===================================================== */
.video-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.video-section .container {
    max-width: none;
    padding: 0;
}

.video-wrapper {
    width: 75%;
    max-width: 1400px;
    margin: 0 auto;
}

.video-container {
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-container video,
.video-container iframe {
    width: 100%;
    display: block;
}

.video-stats {
    background-color: #337503;
    padding: 30px 40px;
    border-radius: 0 0 15px 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    justify-content: center;
}

.video-stat-icon {
    font-size: 28px;
    opacity: 0.9;
}

.video-stat-number {
    font-size: 48px;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1;
}

.video-stat-number sup {
    font-size: 24px;
    font-weight: 400;
}

.video-stat-text {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.4;
}

.video-stat-text span {
    color: rgba(255, 255, 255, 0.9);
}

/* =====================================================
   FAQ SECTION
   ===================================================== */
.faq-section {
    padding: 80px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.faq-intro .section-subtitle {
    margin-bottom: 10px;
    color: #337503;
    font-weight: 700;
}

.faq-intro .section-title {
    margin-bottom: 20px;
}

.faq-intro p {
    color: var(--text-gray);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid #e5e5e5;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    background-color: #e8f5e0;
    border-color: #337503;
    border-bottom: 4px solid #337503;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(51, 117, 3, 0.05);
}

.faq-question h4 {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
    font-family: 'Tenor Sans', serif;
    transition: var(--transition);
}

.faq-question i {
    color: var(--text-gray);
    font-size: 18px;
    transition: var(--transition);
}

.faq-item.active .faq-question h4 {
    color: #337503;
}

.faq-item.active .faq-question i {
    color: var(--text-dark);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px 25px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
    font-family: 'Tenor Sans', serif;
    font-weight: 300;
}

/* =====================================================
   TESTIMONIALS SECTION
   ===================================================== */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.testimonials-intro .section-subtitle {
    margin-bottom: 10px;
}

.testimonials-intro .section-title {
    margin-bottom: 20px;
}

.testimonials-intro p {
    color: var(--text-gray);
    margin-bottom: 25px;
}

.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonials-slider-wrapper {
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    max-height: 420px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonials-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.testimonials-slider {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonials-slider .testimonial-card {
    flex-shrink: 0;
}

.testimonial-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial-stars {
    color: #FFB800;
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--text-gray);
    font-size: 15px;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-dark);
}

/* =====================================================
   BOOKING SECTION
   ===================================================== */
.booking-section {
    padding: 80px 0;
    background: linear-gradient(to right, var(--white) 50%, var(--primary-green) 50%);
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.booking-intro .section-title {
    margin-bottom: 20px;
}

.booking-intro p {
    color: var(--text-gray);
    margin-bottom: 25px;
}

.booking-form-wrapper {
    background-color: var(--primary-green);
    padding: 40px;
    border-radius: 15px;
}

.booking-form h3 {
    color: var(--white);
    font-size: 42px;
    font-family: 'Tenor Sans', serif;
    font-style: italic;
    margin-bottom: 10px;
    text-align: center;
}

.booking-form>p {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-primary);
    background-color: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.booking-form .btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
    background-color: var(--dark-green);
    color: var(--white);
}

.booking-form .btn:hover {
    background-color: #1e3a0f;
}

.booking-form .btn-booking {
    background-color: var(--white);
    color: var(--primary-green);
    font-family: 'Tenor Sans', serif;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 30px;
    padding: 18px 40px;
}

.booking-form .btn-booking:hover {
    background-color: #f0f0f0;
}

.booking-form .form-row {
    margin-bottom: 15px;
}

.booking-form .form-row .form-group {
    margin-bottom: 0;
}

.booking-form .booking-form-wide .form-group input,
.booking-form .booking-form-wide .form-group select {
    border-radius: 30px;
    padding: 15px 20px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background-color: #337503;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo img {
    height: 88px;
    width: auto;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-contact-item i {
    color: var(--white);
    width: 20px;
}

.footer h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-green);
    transform: translateY(-3px);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1200px) {
    .appointment-card {
        width: 300px;
        padding: 25px;
    }

    /* Match the base calc() formula so the appointment card's
       25px right offset is properly accounted for. With width:300px
       and max-width:48%, min() picks whichever is smaller at the
       current viewport. +50px = 25px offset + 25px breathing room. */
    .recovery-card-overlay {
        padding-right: calc(min(48%, 300px) + 50px);
    }
}

@media (max-width: 1024px) {

    .about-grid,
    .faq-grid,
    .testimonials-grid,
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .info-cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .recovery-appointment-wrapper {
        grid-column: span 2;
    }

    .appointment-card {
        width: 320px;
        max-width: 42%;
    }

    /* Match the calc() pattern: card is min(42%, 320px) wide at this
       breakpoint and still sits at right: 25px (no override exists for
       the offset), so reserve min(42%, 320px) + 50px on the overlay. */
    .recovery-card-overlay {
        padding-right: calc(min(42%, 320px) + 50px);
    }

    .recovery-card {
        min-height: 380px;
    }

    .services-bar .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-section {
        background: var(--white);
    }

    .slide-subtitle {
        font-size: 42px;
    }

    .slide-subtitle-line2 {
        font-size: 22px;
    }

    .slide-title {
        font-size: 19px;
    }
}

@media (max-width: 768px) {
    .top-header .container {
        justify-content: center;
        text-align: center;
    }

    .top-header-info {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    .top-header-social {
        position: static;
        margin-top: 10px;
    }

    .logo img {
        height: 55px;
    }

    .footer-brand .logo img {
        height: 60px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 0;
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        display: block;
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-gray);
        text-transform: uppercase;
        color: var(--text-dark);
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--primary-green);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .phone-button {
        display: none;
    }

    .lang-switcher {
        font-size: 12px;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    .recovery-appointment-wrapper {
        grid-column: span 1;
        min-height: 580px;
    }

    .recovery-card {
        min-height: 580px;
    }

    .recovery-card-overlay {
        padding: 30px;
        padding-right: 30px;
        padding-bottom: 320px;
        justify-content: flex-start;
        padding-top: 40px;
    }

    .recovery-card-title {
        font-size: 15px;
    }

    .recovery-card-subtitle {
        font-size: 26px;
        letter-spacing: 0.5px;
    }

    .appointment-card {
        position: absolute;
        right: 20px;
        left: 20px;
        bottom: 20px;
        top: auto;
        transform: none;
        width: auto;
        max-width: none;
    }

    .services-bar .container {
        text-align: center;
    }

    .services-intro-title {
        font-size: 30px;
    }

    .services-intro-text {
        font-size: 16px;
    }

    .service-item span {
        font-size: 19px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px 30px;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .video-wrapper {
        max-width: 100%;
    }

    .video-stats {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px 20px;
    }

    .video-stat-item {
        justify-content: flex-start;
    }

    .video-stat-number {
        font-size: 36px;
    }

    .hero-slider {
        height: 450px;
        margin: 15px;
        border-radius: 20px;
    }

    .slide-content {
        left: 30px;
        max-width: 90%;
    }

    .slide-subtitle {
        font-size: 36px;
    }

    .slide-subtitle-line2 {
        font-size: 20px;
    }

    .slide-title {
        font-size: 18px;
    }

    .slider-dots {
        display: none;
    }

    .section-title {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 400px;
        margin: 10px;
        border-radius: 15px;
    }

    .slide-content {
        left: 20px;
        right: 20px;
    }

    .slide-subtitle {
        font-size: 30px;
    }

    .slide-subtitle-line2 {
        font-size: 18px;
    }

    .slide-title {
        font-size: 16px;
    }

    .slide-description {
        font-size: 14px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 24px;
        font-size: 12px;
    }

    .booking-form-wrapper {
        padding: 25px;
    }

    .slider-dots {
        display: none;
    }
}

/* Very narrow screens (Galaxy Flip, etc.) */
@media (max-width: 380px) {
    .hero-slider {
        height: auto;
        min-height: 280px;
        overflow: visible;
    }

    .slide {
        position: relative;
        height: auto;
        min-height: 280px;
    }

    .slide-content {
        position: relative;
        top: auto;
        transform: none;
        padding: 30px 20px 40px;
    }

    .slide-subtitle {
        font-size: 26px;
        margin-bottom: 6px;
    }

    .slide-subtitle-line2 {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .slide-title {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .slide-description {
        display: none;
    }

    .slide-content .btn {
        padding: 10px 20px;
        font-size: 11px;
        position: relative;
        z-index: 10;
    }

    .info-cards-section {
        margin-top: 0;
    }
}

/* =====================================================
   RTL SPECIFIC STYLES
   ===================================================== */
[dir="rtl"] .slide-content {
    text-align: right;
}

[dir="rtl"] .about-image-badge {
    left: auto;
    right: 20px;
}

[dir="rtl"] .faq-question i {
    transform: scaleX(-1);
}

[dir="rtl"] .faq-item.active .faq-question i {
    transform: scaleX(-1) rotate(180deg);
}

[dir="rtl"] .btn i {
    transform: scaleX(-1);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* WhatsApp Floating Button - Removed, now in top header */
.whatsapp-float {
    display: none;
}

/* Page Header for Inner Pages */
.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-header .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    opacity: 0.9;
}

.page-header .breadcrumb a:hover {
    text-decoration: underline;
}
/* =====================================================
   ABOUT US HEADING (home page)
   The "About Us" / "من نحن" subtitle was promoted from <p>
   to <h3> per client request. This is the only style change
   from the paragraph-enlargement work that's been kept —
   all body text sizes are back to the v75 originals.
   ===================================================== */
.about-section .section-subtitle.about-us-heading {
    font-size: 24px;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    font-weight: 400;
    line-height: 1.3;
}


/* =====================================================
   ENGLISH PROSE — TARGETED SIZE BUMPS
   Per the v90 lesson: NO global body font-size change
   (it cascades and breaks layouts). Instead, +1px on
   only the smallest body-prose classes that read as
   too small in screenshots — flow paragraphs in cards
   and feature blocks, not labels in fixed containers.
   ===================================================== */

.visit-card-text,
.visit-card-address,
.appointment-card-text,
.about-feature p {
    font-size: 15px;        /* was 14px */
}

.faq-answer p,
.testimonial-text {
    font-size: 16px;        /* was 15px */
}

.about-intro-text {
    font-size: 16px;        /* was 15px */
}

.vision-content p,
.mission-content p {
    font-size: 17px;        /* was 16px */
}


/* =====================================================
   BACK-TO-TOP BUTTON
   Fixed-position circular button in the bottom-right
   corner. Hidden by default; the JS in main.js adds the
   .visible class once the user has scrolled down past
   ~300px, fading the button in. Clicking smoothly
   scrolls back to the top of the page.

   Color: brand primary green to match the rest of the site.
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-green);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* Hidden state: invisible, slightly nudged down, can't be
       interacted with via mouse or keyboard. Smooth fade+slide
       transition on the visible state below. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background-color 0.2s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-green-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.back-to-top:focus-visible {
    outline: 3px solid var(--primary-green-light);
    outline-offset: 3px;
}

/* RTL: mirror to the bottom-left corner. */
[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

/* Mobile: smaller button, tighter to the corner. */
@media (max-width: 480px) {
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
    [dir="rtl"] .back-to-top {
        left: 20px;
    }
}
