/* ============================================================
   Good Place Veteriner Kliniği — Main Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #3ab54a;
    --primary-dark: #2e9a3d;
    --primary-light: #e8f8eb;
    --secondary: #030303;
    --bg: #ffffff;
    --bg-soft: #f7faf8;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
    --shadow-green: 0 4px 24px rgba(58,181,74,.25);
    --transition: all .25s cubic-bezier(.4,0,.2,1);
    --font: 'Inter', sans-serif;
    --navbar-h: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
body.rtl { direction: rtl; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 580px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header .section-subtitle { margin: 0 auto; }

section { padding: 96px 0; }
section:nth-child(even) { background: var(--bg-soft); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: .95rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-green);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(58,181,74,.35); }

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.6);
    backdrop-filter: blur(8px);
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-ghost:hover { background: var(--primary-light); }

/* ---------- NAVBAR ---------- */
#navbar {
    position: fixed;
    top: 12px; left: 12px; right: 12px;
    z-index: 1000;
    height: var(--navbar-h);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

#navbar.transparent {
    background: transparent;
}

#navbar.solid {
    top: 0; left: 0; right: 0;
    border-radius: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--navbar-h);
}

.nav-logo img {
    height: 64px;
    width: auto;
    transition: var(--transition);
}

#navbar.solid .nav-logo img {
    filter: brightness(0) saturate(100%) invert(56%) sepia(52%) saturate(452%) hue-rotate(88deg) brightness(97%);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    font-size: .9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: var(--transition);
}
.nav-links a:hover { background: var(--primary-light); color: var(--primary-dark); }

#navbar.transparent .nav-links a { color: #fff; }
#navbar.transparent .nav-links a:hover { background: rgba(255,255,255,.2); color: #fff; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--primary);
    padding: 0 16px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    transition: var(--transition);
}
.nav-phone:hover { background: var(--primary); color: #fff; }
#navbar.transparent .nav-phone { background: rgba(255,255,255,.15); color: #fff; }
#navbar.transparent .nav-phone:hover { background: var(--primary); }

.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 600;
    color: var(--text);
    background: var(--border);
    transition: var(--transition);
}
.lang-btn:hover { background: var(--primary-light); color: var(--primary-dark); }
#navbar.transparent .lang-btn { background: rgba(255,255,255,.15); color: #fff; }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    min-width: 140px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 100;
}
.lang-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text);
    transition: background .15s;
}
.lang-dropdown a:hover { background: var(--primary-light); color: var(--primary-dark); }
.lang-dropdown a.active { color: var(--primary); font-weight: 700; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}
#navbar.transparent .hamburger span { background: #fff; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--navbar-h);
    left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    padding: 20px 24px;
    flex-direction: column;
    gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    transition: background .15s;
}
.mobile-nav a:hover { background: var(--primary-light); color: var(--primary-dark); }
.mobile-nav .mobile-phone {
    margin-top: 12px;
    padding: 14px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 700;
}
.mobile-nav .mobile-langs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.mobile-nav .mobile-langs a {
    padding: 8px 14px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    font-size: .85rem;
}
.mobile-nav .mobile-langs a.active { background: var(--primary); color: #fff; }

/* ---------- HERO SLIDER ---------- */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    padding: 0;
    background: var(--secondary);
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform .8s cubic-bezier(.77,0,.175,1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 6s ease;
    filter: blur(4px) brightness(0.88);
}

.slide.active .slide-bg { transform: scale(1); }

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(3,3,3,.78) 0%,
        rgba(3,3,3,.52) 50%,
        rgba(58,181,74,.28) 100%
    );
}

.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 24px;
    max-width: 800px;
    margin: 0 auto;
    left: 0; right: 0;
    text-align: center;
    color: #fff;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s .3s, transform .6s .3s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(58,181,74,.9);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin: 0 auto 20px;
}

.slide-title {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-bottom: 16px;
    text-shadow: 0 2px 16px rgba(0,0,0,.3);
}

.slide-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 400;
    opacity: .9;
    margin-bottom: 36px;
}

.slide-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Slider controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.1rem;
    border: 1.5px solid rgba(255,255,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.slider-arrow:hover { background: var(--primary); border-color: var(--primary); }
.slider-prev { left: 24px; }
.slider-next { right: 24px; }

.slider-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: var(--transition);
}
.slider-dot.active { width: 28px; background: var(--primary); }

/* ---------- SERVICES ---------- */
#services {
    background: var(--bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.service-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform .3s;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.service-card p {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Mobile services carousel */
.services-carousel-wrapper {
    display: none;
    position: relative;
    overflow: hidden;
}

.services-mobile-grid {
    display: none;
}

.services-carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 24px 16px;
    cursor: grab;
}
.services-carousel-track::-webkit-scrollbar { display: none; }
.services-carousel-track.dragging { cursor: grabbing; }

.services-carousel-track .service-card {
    min-width: calc(100% - 48px);
    max-width: calc(100% - 48px);
    scroll-snap-align: center;
    flex-shrink: 0;
    white-space: normal;
    word-break: break-word;
    padding: 20px 14px 18px;
}

.services-carousel-track .service-card h3 { font-size: .88rem; }
.services-carousel-track .service-card p  { font-size: .78rem; }

.services-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.services-carousel-dots span {
    width: 6px;
    height: 6px;
    border-radius: 100px;
    background: var(--border);
    transition: var(--transition);
    cursor: pointer;
}
.services-carousel-dots span.active {
    width: 20px;
    background: var(--primary);
}

/* ---------- ABOUT ---------- */
#about {
    background: var(--bg-soft);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    background: var(--primary-light);
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: .9rem;
    box-shadow: var(--shadow-green);
}

.about-content .section-subtitle {
    margin: 0 0 24px;
    max-width: 100%;
}

.about-body {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 36px;
}
.about-body p { margin-bottom: 14px; }
.about-body strong { color: var(--text); }

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.about-feature:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }

.about-feature i {
    font-size: 1.1rem;
    color: var(--primary);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* ---------- INSTAGRAM ---------- */
#instagram {
    background: var(--bg);
}

.instagram-widget-container {
    margin-top: 8px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 320px;
}

.instagram-footer {
    text-align: center;
    margin-top: 32px;
}

/* ---------- FAQ ---------- */
#faq {
    background: var(--bg-soft);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color .2s;
}
.faq-item.open { border-color: var(--primary); }

.faq-question {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    transition: color .2s;
}
.rtl .faq-question { text-align: right; }

.faq-item.open .faq-question { color: var(--primary); }

.faq-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: .8rem;
    transition: var(--transition);
}
.faq-item.open .faq-icon { background: var(--primary); color: #fff; transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .3s;
    padding: 0 24px;
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 24px 20px; }

/* ---------- REVIEWS ---------- */
#reviews {
    background: var(--bg);
}

.reviews-widget-container {
    min-height: 260px;
}

.reviews-fallback {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.review-card {
    background: var(--bg-soft);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.review-stars {
    color: #f59e0b;
    font-size: .9rem;
    margin-bottom: 12px;
}

.review-text {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}

.review-name { font-weight: 700; font-size: .88rem; }
.review-date { font-size: .78rem; color: var(--text-muted); }

.reviews-cta { text-align: center; margin-top: 32px; }

.reviews-google-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.reviews-google-btn:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.reviews-google-btn .google-icon { font-size: 1.1rem; color: #ea4335; }

/* ---------- FOOTER ---------- */
footer {
    background: var(--secondary);
    color: rgba(255,255,255,.8);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand img {
    height: auto;
    max-height: 56px;
    width: auto;
    max-width: 180px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.footer-brand p {
    font-size: .9rem;
    line-height: 1.7;
    color: rgba(255,255,255,.6);
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

.footer-col h4 {
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: .9rem;
    color: rgba(255,255,255,.6);
    transition: color .2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col ul li a:hover { color: var(--primary); }
.footer-col ul li a i { width: 14px; font-size: .85rem; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: .9rem;
    color: rgba(255,255,255,.6);
}
.footer-contact-item i {
    color: var(--primary);
    font-size: .9rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.footer-contact-item a { color: inherit; transition: color .2s; }
.footer-contact-item a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    font-size: .83rem;
    color: rgba(255,255,255,.4);
}

.footer-lang-links {
    display: flex;
    gap: 6px;
}

.footer-lang-links a {
    font-size: .8rem;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.5);
    transition: var(--transition);
}
.footer-lang-links a:hover, .footer-lang-links a.active { background: var(--primary); color: #fff; }

/* ---------- WhatsApp FAB ---------- */
#whatsapp-fab {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    padding: 14px 20px 14px 16px;
    border-radius: 100px;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: 0 4px 24px rgba(37,211,102,.4);
    transition: var(--transition);
    animation: fabPulse 3s ease-in-out infinite;
}

#whatsapp-fab:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 32px rgba(37,211,102,.55);
    animation: none;
}

#whatsapp-fab .fab-icon { font-size: 1.4rem; }
#whatsapp-fab .fab-text { display: block; }

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,.4); }
    50% { box-shadow: 0 4px 32px rgba(37,211,102,.7); }
}

/* ---------- Scroll to top ---------- */
#scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-green);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
}
#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
.rtl #whatsapp-fab { left: auto; right: 28px; }
.rtl #scroll-top { right: auto; left: 28px; }

/* ---------- Glassmorphism stat bar ---------- */
.stats-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 32px 0;
}

.stats-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-num {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: .85rem;
    opacity: .85;
    margin-top: 4px;
}

/* ---------- Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ---------- Placeholder SVG background for slides ---------- */
.slide-bg-placeholder {
    background: linear-gradient(135deg, #1a4a26 0%, #0d2a17 50%, #030303 100%);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image-wrap { aspect-ratio: 16/9; }
    .services-grid { display: none; }
    .services-mobile-grid { display: none; }
    .services-carousel-wrapper { display: block; }
    #services .container { padding-left: 16px; padding-right: 16px; }
    .reviews-fallback { grid-template-columns: 1fr 1fr; }
    section { padding: 72px 0; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .reviews-fallback { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .about-features { grid-template-columns: 1fr; }
    .slide-ctas { flex-direction: column; align-items: center; }
    .stats-bar .container { flex-direction: row; gap: 32px; }
    #whatsapp-fab .fab-text { display: none; }
    #whatsapp-fab { padding: 16px; border-radius: 50%; left: 28px; bottom: 28px; }
    #scroll-top { bottom: 28px; right: 28px; }
    .nav-phone { display: none; }
}

/* ---------- RTL Overrides ---------- */
.rtl .footer-grid { direction: rtl; }
.rtl .about-grid { direction: rtl; }
.rtl .nav-inner { flex-direction: row-reverse; }
.rtl .footer-bottom { flex-direction: row-reverse; }
.rtl .slider-prev { left: auto; right: 24px; }
.rtl .slider-next { right: auto; left: 24px; }
.rtl .lang-dropdown { right: auto; left: 0; }
.rtl .section-subtitle { text-align: right; margin-right: 0; margin-left: auto; }
.rtl .section-header .section-subtitle { text-align: center; margin: 0 auto; }
