/* ChaiwalaPro Landing Page — warm tea-inspired palette.
   Historical variable names (--purple*) are kept so the rest of this file
   doesn't need touching, but they now hold amber/terracotta values. */
:root {
    --purple: #D97706;
    --purple-hover: #B45309;
    --purple-soft: #FBBF24;
    --purple-light: #FEF3E2;
    --dark: #1C1410;
    --dark-2: #120D0A;
    --cream: #FFFBF5;
    --muted-bg: #FBF0E1;
    --text: #2A1F17;
    --text-muted: #8A7A68;
    --border: #E8DCC8;
    --green: #10B981;
    --white: #FFFFFF;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(28, 20, 16, 0.07), 0 4px 16px rgba(28, 20, 16, 0.05);
    --container: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

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

.btn-purple:hover {
    background: var(--purple-hover);
    border-color: var(--purple-hover);
}

.btn-outline-purple {
    background: transparent;
    color: var(--purple);
    border-color: var(--purple);
}

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

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 72px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: 24px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: #44403C;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--purple);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #44403C;
    cursor: pointer;
    padding: 6px 8px;
}

.lang-btn:hover {
    color: var(--purple);
}

.navbar .lang-switcher {
    position: relative;
    width: auto;
    flex-shrink: 0;
}

.navbar .lang-pill {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    background: var(--white);
    color: var(--purple);
    border: 2px solid var(--purple);
    border-radius: 8px;
    width: auto;
    padding: 0 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.navbar .lang-pill:hover {
    background: var(--purple);
    color: var(--white);
}

.navbar .lang-pill svg {
    flex-shrink: 0;
}

.navbar .lang-pill .lang-chevron {
    margin-left: 2px;
    opacity: 0.85;
}

.navbar .lang-switcher.open .lang-pill {
    background: var(--purple-light);
    color: var(--purple);
    border-color: var(--purple);
}

.navbar .lang-dropdown {
    position: absolute;
    left: auto;
    right: 0;
    bottom: auto;
    top: calc(100% + 8px);
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(28, 20, 16, 0.14);
    max-height: 320px;
    overflow-y: auto;
    padding: 8px 0;
    z-index: 120;
}

.navbar .lang-region {
    padding: 8px 14px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #ADA294;
    text-transform: uppercase;
}

.navbar .lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #2A1F17;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}

.navbar .lang-option:hover {
    background: var(--purple-light);
    color: var(--purple);
}

.navbar .lang-option.active {
    background: var(--purple-light);
    color: var(--purple);
    font-weight: 600;
}

.navbar .lang-check {
    color: var(--purple);
    font-weight: 700;
    width: 16px;
    text-align: center;
}

.navbar .lang-check-spacer {
    width: 16px;
    display: inline-block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text);
    cursor: pointer;
    margin-left: auto;
}

/* Hero */
.hero {
    background: var(--dark);
    padding: 96px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(36px, 5.5vw, 56px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero h1 .accent {
    color: var(--purple-soft);
}

.hero-sub {
    max-width: 640px;
    margin: 0 auto 36px;
    font-size: 18px;
    color: #ADA294;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.stat-num {
    font-size: 40px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #ADA294;
    font-weight: 500;
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--purple);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text);
}

.section-header p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 16px;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.14);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--purple-light);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

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

.step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--purple);
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Roles */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.role-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    border-top: 4px solid transparent;
}

.role-agency {
    border-top-color: var(--purple);
}

.role-serviceman {
    border-top-color: var(--green);
}

.role-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.role-agency .role-icon {
    background: var(--purple-light);
    color: var(--purple);
}

.role-serviceman .role-icon {
    background: #D1FAE5;
    color: var(--green);
}

.role-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
}

.role-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: #44403C;
    margin-bottom: 14px;
    line-height: 1.45;
}

.role-card ul li i {
    margin-top: 3px;
    flex-shrink: 0;
}

.role-agency ul li i {
    color: var(--purple);
}

.role-serviceman ul li i {
    color: var(--green);
}

/* Product Showcase */
.showcase-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.showcase-text h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 10px 0 16px;
    color: var(--text);
}

.showcase-desc {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.showcase-points {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.showcase-point {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.showcase-point-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--purple-light);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.showcase-point h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.showcase-point p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.showcase-visual {
    display: flex;
    justify-content: center;
}

.mock-card {
    background: var(--dark);
    border-radius: 16px;
    padding: 28px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 50px rgba(28, 20, 16, 0.35);
}

.mock-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.mock-card-title {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
}

.mock-live-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--green);
}

.mock-live-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
    animation: mock-pulse 1.8s infinite;
}

@keyframes mock-pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.mock-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.mock-stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 8px;
    text-align: center;
}

.mock-stat-num {
    color: var(--white);
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 4px;
}

.mock-stat-label {
    color: #ADA294;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mock-activity {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px;
}

.mock-activity-title {
    color: #ADA294;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.mock-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-activity-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.mock-activity-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 2px;
}

.mock-activity-name {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}

.mock-activity-sub {
    color: #ADA294;
    font-size: 12px;
    margin-top: 2px;
}

/* CTA band */
.cta-band {
    background: var(--dark);
    padding: 88px 0;
    text-align: center;
}

.cta-inner h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.cta-inner p {
    color: #ADA294;
    font-size: 17px;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* Footer */
.footer {
    background: var(--dark-2);
    padding: 28px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer p {
    font-size: 14px;
    color: #ADA294;
}

.footer strong {
    color: #E7DFD3;
}

.footer a {
    color: #ADA294;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--purple-soft);
}

.footer .sep {
    margin: 0 8px;
    color: #5C5347;
}

/* Responsive */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .showcase-visual {
        order: -1;
    }

    .hero-stats {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links,
    .nav-actions {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 12px;
        align-items: stretch;
    }

    .nav-links.open {
        display: flex;
        top: 72px;
    }

    .nav-actions.open {
        display: flex;
        top: calc(72px + 140px);
        margin-left: 0;
    }

    .nav-actions .btn {
        width: 100%;
    }

    .nav-actions .lang-switcher,
    .nav-actions .lang-pill {
        width: 100%;
    }

    .nav-actions .lang-pill {
        justify-content: center;
    }

    .nav-actions .lang-dropdown {
        left: 0;
        right: 0;
        min-width: 0;
    }

    .nav-inner {
        position: relative;
    }

    .hero {
        padding: 64px 0 56px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 48px;
    }

    .hero-ctas .btn {
        width: 100%;
    }

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

    .section {
        padding: 64px 0;
    }

    .cta-band {
        padding: 64px 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .footer .sep {
        display: none;
    }

    .footer a {
        display: inline-block;
        margin: 4px 8px;
    }
}

/* WhatsApp floating order button */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow);
    z-index: 999;
    transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
    background: #1EBE5A;
    transform: scale(1.08);
    color: var(--white);
}

.whatsapp-tooltip {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    margin-right: 12px;
    background: var(--dark);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--dark);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}
