:root {
    --primary-green: #7BAF42;
    --text-dark: #2B2B2B;
    --background-light: #F5F5F5;
    --background-white: #FFFFFF;
    --gradient-start: #9CCC65;
    --gradient-end: #558B2F;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: var(--text-dark);
    background-color: var(--background-white);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
}

section {
    padding: 6rem 0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--background-white);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background-color: #6a9c39;
    border-color: #6a9c39;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--background-white);
}

/* ===========================
   NAVIGATION SHELL
   =========================== */
.nav-shell {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Row */
.header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

/* Logo */
.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

/* Logo text - ID for high specificity */
#logoText {
    display: inline;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

/* Search */
.nav-search {
    flex: 1;
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #6b7280;
    pointer-events: none;
}

.search-input {
    flex: 1;
    height: 46px;
    padding: 0 16px 0 44px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background-color: #f6f7f9;
    font-size: 0.9375rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    outline: none;
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-input:focus {
    background-color: #fff;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(123, 175, 66, 0.1);
}

/* Search Button */
.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background-color: var(--primary-green);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

.search-btn:hover {
    background-color: #6a9a38;
    transform: scale(1.05);
}

.search-btn:active {
    transform: scale(0.98);
}

/* Right Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: var(--primary-green);
    background: #f9fafb;
}

.lang-chevron {
    width: 14px;
    height: 14px;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.lang-btn[aria-expanded="true"] .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 72px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 200;
}

.lang-dropdown[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.lang-option:hover {
    background: #f3f4f6;
}

/* Hamburger Menu Button */
.menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-btn:hover {
    border-color: var(--primary-green);
    background: #f9fafb;
}

.menu-icon {
    width: 20px;
    height: 20px;
    color: var(--text-dark);
}

/* Services Row */
.services-row {
    border-top: 1px solid rgba(0,0,0,0.04);
    padding: 8px 0 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.services-row::-webkit-scrollbar {
    display: none;
}

.services-scroll {
    display: flex;
    gap: 4px;
    width: max-content;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 76px;
    padding: 10px 12px;
    text-decoration: none;
    color: #6b7280;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
}

.service-item:hover {
    background: #f9fafb;
    color: var(--text-dark);
}

.service-item:active {
    transform: scale(0.97);
}

.service-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.service-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}

/* Active Service */
.service-item.active {
    color: var(--text-dark);
}

.service-item.active .service-label {
    font-weight: 600;
}

.service-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-green);
    border-radius: 1px;
}

/* Drawer Menu */
/* ===========================
   PREMIUM APP DRAWER
   =========================== */
.menu-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.menu-drawer[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

.menu-drawer[aria-hidden="false"] .drawer-overlay {
    opacity: 1;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 20px 0 0 20px;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.25s ease-out;
    display: flex;
    flex-direction: column;
    display: flex;
    flex-direction: column;
}

.menu-drawer[aria-hidden="false"] .drawer-panel {
    transform: translateX(0);
}

/* Drawer Header - Branded */
.drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
}

.drawer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drawer-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1.2;
}

.drawer-brand-tagline {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.3;
}

.drawer-close {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.drawer-close svg {
    width: 16px;
    height: 16px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.drawer-close:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: var(--text-dark);
}

.drawer-close:active {
    transform: scale(0.95);
}

/* Drawer Navigation */
.drawer-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.drawer-link:last-child {
    margin-bottom: 0;
}

.drawer-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.drawer-link:hover {
    background: rgba(123, 175, 66, 0.08);
}

.drawer-link:hover .drawer-icon {
    color: var(--primary-green);
}

.drawer-link:hover span {
    color: var(--primary-green);
}

.drawer-link:active {
    background: rgba(123, 175, 66, 0.12);
    transform: scale(0.98);
}

/* Drawer Footer */
.drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

.drawer-version {
    font-size: 0.75rem;
    color: #9ca3af;
}

body.drawer-open {
    overflow: hidden;
}

/* ===========================
   RESPONSIVE BREAKPOINTS
   =========================== */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .nav-inner {
        max-width: 992px;
    }
    
    /* Hide logo text on tablet/mobile */
    #logoText {
        display: none;
    }

    /* Hide search button on tablet/mobile - input only */
    .search-btn {
        display: none;
    }

    /* Search input spans full width, clean pill shape */
    .nav-search {
        gap: 0;
    }

    .search-input {
        border-radius: 24px;
        width: 100%;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .nav-inner {
        max-width: 100%;
        padding: 0 16px;
    }

    .header-row {
        gap: 10px;
        padding: 10px 0;
    }

    .nav-logo img {
        width: 40px;
        height: 40px;
    }

    .search-input {
        height: 42px;
        font-size: 0.875rem;
    }

    .lang-btn {
        height: 34px;
        padding: 0 10px;
    }

    .menu-btn {
        width: 40px;
        height: 40px;
    }

    .services-row {
        padding: 6px 0 10px;
    }

    .service-item {
        min-width: 70px;
        padding: 8px 10px;
    }

    .service-icon {
        width: 22px;
        height: 22px;
    }

    .service-label {
        font-size: 0.6875rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .nav-inner {
        padding: 0 12px;
    }

    .header-row {
        gap: 8px;
    }

    .nav-logo img {
        width: 36px;
        height: 36px;
    }

    .search-input {
        height: 40px;
        padding-left: 40px;
    }

    .search-icon {
        left: 12px;
        width: 16px;
        height: 16px;
    }

    .service-item {
        min-width: 64px;
        padding: 8px 8px;
    }

    .service-icon {
        width: 20px;
        height: 20px;
    }

    .service-label {
        font-size: 0.625rem;
    }
}

/* Desktop (min-width: 993px) - Compact, Premium Header */
@media (min-width: 993px) {
    .header-row {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 16px;
        padding: 12px 0;
        align-items: center;
    }

    /* Search - wider and visually centered */
    .nav-search {
        max-width: 580px;
        min-width: 480px;
        justify-self: center;
        gap: 0;
    }

    /* Show search button on desktop */
    .search-btn {
        display: flex;
    }

    /* Connected pill-style search input + button */
    .nav-search .search-input {
        border-radius: 24px 0 0 24px;
        border-right: none;
        padding-right: 16px;
    }

    .nav-search .search-btn {
        border-radius: 0 24px 24px 0 !important;
        width: 56px;
        height: 46px;
        margin-left: -1px;
    }

    /* Tighter right controls */
    .nav-controls {
        gap: 6px;
    }

    .services-scroll {
        justify-content: center;
        width: 100%;
    }

    .service-item {
        min-width: 84px;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 0;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #555;
}

.store-buttons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--background-light);
    border: 1px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.store-btn:hover {
    background-color: #e9e9e9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.store-btn img {
    height: 32px;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.3;
}

.store-btn-subtitle {
    font-size: 0.8rem;
    color: #555;
}

.store-btn-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    opacity: 0.2;
    z-index: 1;
}


/* How It Works Section */
#how-it-works {
    background-color: var(--background-light);
}

.steps-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 2rem;
}

.step {
    max-width: 300px;
}

.step img {
    height: 80px;
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: #555;
}

/* Why Bizi Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.benefit img {
    height: 50px;
    margin-top: 5px;
}

.benefit h3 {
    margin-bottom: 0.25rem;
}

.benefit p {
    margin: 0;
    color: #555;
}

/* Provider Section */
#for-providers {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: white;
    text-align: center;
}

#for-providers h2, #for-providers p {
    color: white;
}

#for-providers .btn-primary {
    background: white;
    color: var(--primary-green);
    border-color: white;
}

#for-providers .btn-primary:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
}

#for-providers p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.provider-mockup {
    display: block;
    max-width: 70%;
    margin: 3rem auto 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Testimonials Section */
#testimonials {
    background-color: var(--background-light);
}

.testimonials-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.testimonial-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 320px;
    text-align: center;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-green);
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
}

.testimonial-card .name {
    font-weight: 700;
    color: var(--text-dark);
}

/* FAQ Section */
.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-green);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    margin: 0;
}

/* Footer */
footer {
    background-color: var(--primary-green);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons img {
    height: 40px;
    width: 40px;
    /*filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);*/
}

.footer-contact p {
    margin: 0.5rem 0;
}

/* --- GLOBAL RASMLAR: overflow bo'lmasin --- */
img {
    max-width: 100%;
    height: auto;
}



/* --- 992px dan kichik (planshet) --- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    /* Hero matnini biroz ixchamroq */
    .hero-content p {
        font-size: 1.1rem;
        max-width: 640px;
    }

    /* “How it works” kartochkalari qatorga o‘ralsin */
    .steps-container {
        flex-wrap: wrap;
    }

    .step {
        flex: 1 1 260px;
        max-width: 100%;
    }
}

/* --- 768px dan kichik (telefon) --- */
@media (max-width: 768px) {
    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    /* Hero rasmini haddan oshirmaymiz */
    .hero {
        padding: 3.5rem 0;
    }

    .hero-bg {
        max-width: 520px;
        opacity: .12;
    }

    /* Store tugmalari kattaroq tap target */
    .store-btn {
        min-width: 230px;
        padding: 12px 16px;
    }

    /* Benefits: 1 ustun */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Testimonials: o‘ralsin */
    .testimonials-container {
        flex-wrap: wrap;
    }

    /* Provider skrinshoti: ekranga mos */
    .provider-mockup {
        max-width: 100%;
        margin-top: 2rem;
    }
}

/* --- 480px dan kichik (kichik telefonlar) --- */
@media (max-width: 480px) {
    .container {
        width: 92%;
    }

    .hero-content p {
        font-size: 1rem;
    }

}
