/* ============================================
   Kleaners - Modern Clean Green Theme
   ============================================ */

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

:root {
    --primary: #6fad2b;
    --primary-light: #8bc34a;
    --primary-dark: #558b2f;
    --accent: #aed581;
    --accent-soft: #e8f5e9;
    --text: #3d4f2f;
    --text-light: #6b7b5e;
    --bg-light: #f5f8f2;
    --border: #dde8d4;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(85, 139, 47, 0.08);
    --shadow-hover: 0 10px 35px rgba(85, 139, 47, 0.15);
    --radius: 12px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

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

ul { list-style: none; }
img { max-width: 100%; height: auto; }

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

.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 36px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 173, 43, 0.35);
}

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

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

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

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

.btn-lg {
    padding: 18px 44px;
    font-size: 1rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0;
    background: var(--white);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition);
}

.navbar.scrolled {
    padding: 6px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 52px;
    width: auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-menu li a {
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    transition: all var(--transition);
}

.navbar-menu li a:hover,
.navbar-menu li a.active {
    color: var(--primary);
    background: var(--accent-soft);
}

.btn-nav {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.btn-nav:hover,
.btn-nav.active {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
}

/* Mobile toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
}

.toggle-bar {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text);
    border-radius: 3px;
    transition: all var(--transition);
    transform-origin: center;
}

/* Hamburger -> X animation */
.navbar-toggle.active .toggle-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.navbar-toggle.active .toggle-bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .toggle-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile overlay */
.navbar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition);
}

.navbar-overlay.active {
    display: block;
    opacity: 1;
}

/* Body scroll lock */
body.menu-open {
    overflow: hidden;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../images/groupe.png') center/cover no-repeat;
    margin-top: 72px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.93) 0%, rgba(245,248,242,0.9) 50%, rgba(232,245,233,0.75) 100%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 3;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 60px 0;
}

.hero-content {
    flex: 1;
    max-width: 580px;
}

.hero-image {
    flex: 0 0 400px;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-soft), rgba(111, 173, 43, 0.15));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
}

.hero-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: top center;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: drop-shadow(0 10px 30px rgba(85, 139, 47, 0.15));
}

.hero-badge {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--primary-dark);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.hero-stat-item strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.hero-stat-item span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- Page Header (inner pages) --- */
.page-header {
    position: relative;
    background: url('../images/hero-bg.png') center/cover no-repeat;
    padding: 140px 0 60px;
    text-align: center;
    margin-top: 72px;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(85,139,47,0.88), rgba(111,173,43,0.82));
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 3;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 14px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 550px;
    margin: 0 auto;
}

/* --- Sections --- */
.section {
    padding: 90px 0;
}

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

.section-gray {
    background: var(--bg-light);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 550px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* --- Cards Grid --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    text-align: center;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    background: var(--accent-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all var(--transition);
}

.card:hover .card-icon {
    background: var(--primary);
    color: var(--white);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Steps / Process Section --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-item {
    text-align: center;
}

.step-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}

.step-item h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.step-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* --- Stats Section (green, not black) --- */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item { padding: 20px; }

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    display: inline;
    color: var(--white);
}

.stat-plus {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* --- CTA Box --- */
.cta-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: 16px;
    padding: 60px;
    text-align: center;
    color: var(--white);
}

.cta-box h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-box .section-title::after {
    display: none;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 0 auto 30px;
    font-size: 1.05rem;
}

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

.cta-box .btn-primary:hover {
    background: rgba(255,255,255,0.9);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* --- Services Page --- */
.services-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 28px;
    cursor: pointer;
    transition: background var(--transition);
}

.service-header:hover {
    background: var(--bg-light);
}

.service-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--accent-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all var(--transition);
}

.service-card.open .service-icon {
    background: var(--primary);
    color: var(--white);
}

.service-icon svg { width: 24px; height: 24px; }

.service-header h3 {
    flex: 1;
    font-size: 1.05rem;
}

.service-toggle-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform var(--transition);
    min-width: 24px;
    text-align: center;
}

.service-card.open .service-toggle-icon {
    transform: rotate(45deg);
}

.service-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 28px;
}

.service-card.open .service-body {
    max-height: 500px;
    padding: 0 28px 24px;
}

.service-body p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.service-body ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.service-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

/* --- Services Layout (image + list side by side) --- */
.services-layout {
    display: flex;
    align-items: stretch;
    gap: 80px;
}

.services-showcase {
    flex: 0 0 420px;
    display: flex;
    align-items: center;
    margin-left: -40px;
    overflow: visible;
}

.services-showcase img {
    width: 130%;
    height: 70%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 35px rgba(85, 139, 47, 0.15);
}

.services-layout .services-list {
    flex: 1;
    max-width: none;
}

@media (max-width: 1024px) {
    .services-layout { gap: 50px; }
    .services-showcase { flex: 0 0 320px; }
}

/* --- Clients Grid --- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.client-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 40px 20px;
    text-align: center;
    transition: all var(--transition);
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.client-logo-placeholder {
    width: 160px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.clients-note {
    color: var(--text-light);
    font-style: italic;
    margin-top: 20px;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--bg-light);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(111, 173, 43, 0.12);
    background: var(--white);
}

.form-error { color: #e53935; font-size: 0.85rem; }

.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: var(--accent-soft);
    color: var(--primary-dark);
    border: 1px solid var(--accent);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.info-icon svg { width: 22px; height: 22px; }

.info-card h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 2px;
    font-weight: 600;
}

.info-card p {
    font-weight: 600;
}

/* --- Footer (green, not black) --- */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 60px 0 0;
}

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

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 16px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
    opacity: 0.8;
    font-size: 0.9rem;
    transition: opacity var(--transition);
}

.footer-col ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.85rem;
}

/* --- Animations: Swipe/Slide style --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll:nth-child(even) {
    transform: translateX(40px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered delay for cards/grids */
.cards-grid .animate-on-scroll:nth-child(1),
.steps-grid .animate-on-scroll:nth-child(1),
.stats-grid .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.cards-grid .animate-on-scroll:nth-child(2),
.steps-grid .animate-on-scroll:nth-child(2),
.stats-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.cards-grid .animate-on-scroll:nth-child(3),
.steps-grid .animate-on-scroll:nth-child(3),
.stats-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.stats-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.45s; }

.clients-grid .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.clients-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.clients-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.clients-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.clients-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.1s; }
.clients-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.2s; }
.clients-grid .animate-on-scroll:nth-child(7) { transition-delay: 0.3s; }
.clients-grid .animate-on-scroll:nth-child(8) { transition-delay: 0.4s; }

/* Services slide from left */
.services-list .animate-on-scroll {
    transform: translateX(-40px);
}

.services-list .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.services-list .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.services-list .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.services-list .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* Hero elements slide from left sequentially */
.hero-content .animate-on-scroll {
    transform: translateX(-50px);
}

.hero-content .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.hero-content .animate-on-scroll:nth-child(2) { transition-delay: 0.25s; }
.hero-content .animate-on-scroll:nth-child(3) { transition-delay: 0.4s; }
.hero-content .animate-on-scroll:nth-child(4) { transition-delay: 0.55s; }
.hero-content .animate-on-scroll:nth-child(5) { transition-delay: 0.7s; }

/* Hero image slides from right */
.hero-image.animate-on-scroll {
    transform: translateX(60px);
    transition-delay: 0.3s;
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
    .cards-grid, .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title { font-size: 2.6rem; }
    .hero-image { flex: 0 0 300px; }
    .hero-image img { max-height: 420px; }
    .contact-grid { gap: 30px; }
}

/* Mobile */
@media (max-width: 768px) {
    .container { padding: 0 16px; }

    /* Navbar mobile */
    .navbar-toggle { display: flex; }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 24px 30px;
        gap: 4px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right var(--transition);
        z-index: 1001;
        overflow-y: auto;
    }

    .navbar-menu.open { right: 0; }

    .navbar-menu li a {
        display: block;
        padding: 14px 20px;
        border-radius: 10px;
        font-size: 1rem;
        min-height: 44px;
    }

    .btn-nav {
        margin-top: 10px;
        text-align: center;
    }

    /* Hero mobile */
    .hero {
        min-height: auto;
        padding: 20px 0;
        margin-top: 62px;
    }
    .hero-inner {
        flex-direction: column;
        gap: 30px;
        padding: 30px 0;
    }
    .hero-content {
        padding: 0;
        max-width: 100%;
        text-align: center;
    }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-image {
        flex: none;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    .hero-image::before { display: none; }
    .hero-image img {
        max-height: 280px;
        width: auto;
        max-width: 100%;
        height: auto;
    }
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }
    .hero-stat-item {
        text-align: center;
    }
    .hero-stat-item strong { font-size: 1.5rem; }
    .hero-badge { font-size: 0.8rem; padding: 6px 16px; }

    /* Sections */
    .section { padding: 50px 0; }
    .section-title { font-size: 1.6rem; }
    .section-subtitle { font-size: 0.95rem; margin-bottom: 35px; }
    .page-header { padding: 100px 0 80px; margin-top: 62px; }
    .page-title { font-size: 1.8rem; }
    .page-subtitle { font-size: 0.9rem; padding: 0 10px; }

    /* Grids */
    .cards-grid, .steps-grid { grid-template-columns: 1fr; gap: 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    /* Cards */
    .card { padding: 30px 20px; }
    .step-number { font-size: 2.8rem; }

    /* Stats */
    .stats-section { padding: 40px 0; }
    .stat-number { font-size: 2.2rem; }
    .stat-plus { font-size: 1.4rem; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .info-card { padding: 18px; }
    .info-card h4 { font-size: 0.75rem; }
    .info-card p { font-size: 0.9rem; word-break: break-word; }

    /* Forms - 16px to prevent iOS zoom */
    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 12px 14px;
    }
    .form-group label { font-size: 0.8rem; }

    /* CTA */
    .cta-box { padding: 36px 20px; }
    .cta-box h2 { font-size: 1.5rem; }
    .cta-box p { font-size: 0.95rem; }

    /* Buttons on mobile */
    .btn { padding: 13px 28px; font-size: 0.9rem; }
    .btn-lg { padding: 15px 32px; font-size: 0.95rem; }

    /* Services layout */
    .services-layout {
        flex-direction: column;
        gap: 30px;
    }
    .services-showcase {
        flex: none;
        margin-left: 0;
        text-align: center;
        justify-content: center;
    }
    .services-showcase img {
        width: 200px;
        height: 200px;
        margin: 0 auto;
        display: block;
    }
    .services-layout .services-list { width: 100%; }
    .service-header { padding: 16px 18px; gap: 12px; }
    .service-header h3 { font-size: 0.95rem; }
    .service-body { padding: 0 18px; }
    .service-card.open .service-body { padding: 0 18px 20px; }

    /* Footer */
    .footer { padding: 40px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-col { text-align: center; }
    .footer-col ul { display: flex; flex-direction: column; align-items: center; }
    .footer-bottom { padding: 16px 0; }
    .footer-bottom p { font-size: 0.8rem; }

    /* Animations - reduce movement on mobile */
    .animate-on-scroll { transform: translateY(20px); }
    .animate-on-scroll:nth-child(even) { transform: translateY(20px); }
    .hero-content .animate-on-scroll { transform: translateY(20px); }
    .hero-image.animate-on-scroll { transform: translateY(20px); }
    .services-list .animate-on-scroll { transform: translateY(20px); }
}

/* Small phones */
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .clients-grid { grid-template-columns: 1fr; }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-buttons .btn {
        text-align: center;
        width: 100%;
    }
    .hero-stats { gap: 16px; }
    .hero-stat-item strong { font-size: 1.3rem; }
    .section { padding: 40px 0; }
    .section-title { font-size: 1.4rem; }
    .page-title { font-size: 1.5rem; }
    .cta-box { padding: 28px 16px; }
    .cta-box h2 { font-size: 1.3rem; }
    .card { padding: 24px 16px; }
    .card h3 { font-size: 1.05rem; }
    .info-card { flex-direction: column; text-align: center; }
    .navbar-menu { width: 100%; }
}

/* Very small phones */
@media (max-width: 360px) {
    .hero-title { font-size: 1.5rem; }
    .hero-badge { font-size: 0.75rem; padding: 5px 12px; }
    .btn { padding: 12px 20px; font-size: 0.85rem; }
    .btn-lg { padding: 13px 24px; font-size: 0.9rem; }
    .stat-number { font-size: 1.8rem; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Fix for landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: auto; }
    .hero-inner { padding: 20px 0; }
    .hero-image { display: none; }
    .navbar-menu { padding-top: 60px; }
}
