/* OrderOK - Global Styles */
:root {
    --color-primary: #D97858;
    --color-primary-dark: #C67955;
    --color-primary-light: #F0A882;
    --color-success: #4CAF50;
    --color-danger: #E53935;
    --color-info: #2E7BE8;
    --color-warning: #FF9800;
    --color-dark: #2C2C2C;
    --color-gray: #6C757D;
    --color-light-gray: #F5F5F5;
    --color-beige: #F5F1E8;
    --color-border: #E0E0E0;
}

/* Base */
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
}

/* Primary Color Utilities */
.bg-primary-custom { background-color: var(--color-primary) !important; }
.text-primary-custom { color: var(--color-primary) !important; }
.border-primary-custom { border-color: var(--color-primary) !important; }

/* Buttons */
.btn-primary-custom {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-primary-custom:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217,120,88,0.3);
}

.btn-outline-primary-custom {
    border-color: var(--color-primary);
    color: var(--color-primary);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-outline-primary-custom:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Cards */
.card {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Form Controls */
.form-control:focus, .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(217,120,88,0.25);
}

/* Badge */
.badge-vip { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); color: white; }
.badge-normal { background: #E8F5E9; color: #2E7D32; }
.badge-blocked { background: #FFEBEE; color: #C62828; }

/* Status badges */
.status-pending { background: #FFF3CD; color: #856404; }
.status-confirmed { background: #D1ECF1; color: #0C5460; }
.status-completed { background: #D4EDDA; color: #155724; }
.status-cancelled { background: #F8D7DA; color: #721C24; }
.status-noshow { background: #E2E3E5; color: #383D41; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* Transitions */
.transition-all { transition: all 0.2s ease; }

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Alpine.js */
[x-cloak] { display: none !important; }

/* =====================================================
   CIS Homepage Styles (hp- prefix, scoped to homepage)
   ===================================================== */

/* --- Navbar --- */
.hp-navbar {
    background: #ffffff;
    border-bottom: 2px solid #dcfce7;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1020;
}
.hp-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.hp-navbar-badge {
    background: #14532d;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
}
.hp-navbar-title {
    color: #14532d;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}
.hp-nav-link {
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.hp-nav-link:hover {
    color: #166534;
    background: #f0fdf4;
}
.hp-btn-login {
    border: 1.5px solid #166534;
    color: #166534;
    background: transparent;
    padding: 0.35rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.hp-btn-login:hover {
    background: #f0fdf4;
    color: #14532d;
}
.hp-btn-trial {
    background: #15803d;
    color: white;
    padding: 0.35rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}
.hp-btn-trial:hover {
    background: #166534;
    color: white;
    transform: translateY(-1px);
}

/* --- Hero --- */
.hp-hero {
    background: linear-gradient(135deg, #14532d 0%, #166534 50%, #15803d 100%);
    color: white;
    padding: 5rem 1.5rem;
    text-align: center;
}
.hp-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    padding: 0.3rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}
.hp-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hp-hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
.hp-hero-ctas {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hp-btn-hero-primary {
    background: white;
    color: #15803d;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.hp-btn-hero-primary:hover {
    color: #14532d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.hp-btn-hero-outline {
    border: 2px solid rgba(255,255,255,0.7);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s;
}
.hp-btn-hero-outline:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.hp-hero-v2 {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 84% 12%, rgba(34, 197, 94, 0.22), transparent 46%), radial-gradient(circle at 15% 84%, rgba(59, 130, 246, 0.09), transparent 42%), linear-gradient(135deg, #f7fff8 0%, #eefbf1 48%, #f7fbff 100%);
    min-height: 580px;
    display: flex;
    align-items: center;
    padding: 2.7rem 1.5rem;
}
.hp-hero-v2-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 3.5rem;
}
.hp-hero-v2-copy {
    position: relative;
    z-index: 2;
    max-width: 40rem;
}
.hp-hero-v2-badge {
    display: inline-block;
    padding: 0.5rem 1.05rem;
    margin-bottom: 1.65rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
}
.hp-hero-v2-copy h1 {
    color: #14532d;
    font-size: clamp(2.3rem, 4.9vw, 4.5rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 1.45rem;
}
.hp-hero-v2-copy h1 span {
    background: linear-gradient(90deg, #16a34a, #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hp-hero-v2-copy p {
    color: #385542;
    font-size: 1.12rem;
    line-height: 1.8;
    max-width: 36rem;
    margin: 0 0 2.2rem;
}
.hp-hero-v2-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.95rem;
}
.hp-hero-v2-btn-primary,
.hp-hero-v2-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.8rem;
    border-radius: 0.9rem;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.hp-hero-v2-btn-primary {
    background: #15803d;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(21, 128, 61, 0.27);
}
.hp-hero-v2-btn-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(21, 128, 61, 0.35);
}
.hp-hero-v2-btn-secondary {
    background: #ffffff;
    color: #166534;
    border: 1px solid #c9e9d2;
    box-shadow: 0 8px 20px rgba(22, 101, 52, 0.08);
}
.hp-hero-v2-btn-secondary:hover {
    color: #14532d;
    background: #f5fff7;
    transform: translateY(-2px);
}
.hp-hero-v2-arrow {
    transition: transform 0.22s ease;
}
.hp-hero-v2-btn-primary:hover .hp-hero-v2-arrow {
    transform: translateX(4px);
}
.hp-hero-v2-art {
    position: relative;
    min-height: 22rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hp-co2-glow {
    position: absolute;
    inset: 10% 12%;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.36), rgba(22, 163, 74, 0.08) 46%, transparent 72%);
    filter: blur(38px);
}
.hp-co2-system {
    position: relative;
    width: min(20rem, 78%);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}
.hp-co2-center {
    position: absolute;
    z-index: 4;
    width: min(8.5rem, 43%);
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 25%, #34d399, #15803d 72%);
    color: #ffffff;
    font-weight: 900;
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
    box-shadow: 0 18px 40px rgba(21, 128, 61, 0.38);
}
.hp-co2-orbit {
    position: relative;
    border: 1px dashed rgba(22, 163, 74, 0.45);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hp-co2-orbit-a {
    width: 100%;
    height: 100%;
    animation: hpCo2Orbit 13s linear infinite;
}
.hp-co2-orbit-b {
    position: absolute;
    width: 76%;
    height: 76%;
    animation: hpCo2OrbitReverse 9s linear infinite;
}
.hp-co2-orbit-c {
    position: absolute;
    width: 56%;
    height: 56%;
    animation: hpCo2Orbit 6.4s linear infinite;
}
.hp-co2-dot {
    position: absolute;
    top: -0.52rem;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.65);
}
.hp-co2-dot-a { background: #22c55e; }
.hp-co2-dot-b { background: #16a34a; }
.hp-co2-dot-c { background: #86efac; }
@keyframes hpCo2Orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes hpCo2OrbitReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* --- Section shared --- */
.hp-section {
    padding: 5rem 1.5rem;
}
.hp-section-light { background: #f0fdf4; }
.hp-section-white { background: #ffffff; }
.hp-section-label {
    color: #166534;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.hp-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #14532d;
    margin-bottom: 0.75rem;
}
.hp-section-sub {
    color: #4b5563;
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* --- Features --- */
.hp-feature-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1040px;
    margin: 0 auto 4rem;
}
.hp-feature-row:last-child { margin-bottom: 0; }
.hp-feature-row.reverse { flex-direction: row-reverse; }
.hp-feature-text { flex: 1; }
.hp-feature-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #14532d;
    margin-bottom: 0.75rem;
}
.hp-feature-text p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.hp-feature-tag {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}
.hp-mock-ui {
    flex: 1;
    background: white;
    border: 1px solid #d1fae5;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 4px 24px rgba(22,163,74,0.1);
    min-height: 220px;
}
.hp-mock-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hp-mock-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}
.hp-mock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hp-mock-label { color: #374151; flex: 1; }
.hp-mock-val { color: #166534; font-weight: 600; }
.hp-mock-bar-wrap {
    background: #e5e7eb;
    border-radius: 4px;
    height: 8px;
    flex: 1;
}
.hp-mock-bar-fill {
    background: #16a34a;
    height: 100%;
    border-radius: 4px;
}
.hp-mock-kpi-row {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}
.hp-mock-kpi {
    flex: 1;
    background: #f0fdf4;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    text-align: center;
}
.hp-mock-kpi-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: #166534;
}
.hp-mock-kpi-label {
    font-size: 0.7rem;
    color: #6b7280;
}
.hp-mock-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
    margin-top: 0.5rem;
}
.hp-mock-chart-bar {
    flex: 1;
    background: #86efac;
    border-radius: 3px 3px 0 0;
    transition: background 0.2s;
}
.hp-mock-chart-bar.active { background: #16a34a; }
.hp-mock-progress-wrap {
    margin-bottom: 0.6rem;
}
.hp-mock-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}
.hp-mock-progress-label { color: #374151; }
.hp-mock-progress-pct { color: #166534; font-weight: 600; }
.hp-mock-progress-bar {
    background: #e5e7eb;
    border-radius: 4px;
    height: 10px;
}
.hp-mock-progress-fill {
    background: linear-gradient(90deg, #16a34a, #22c55e);
    height: 100%;
    border-radius: 4px;
}
.hp-mock-alert {
    background: #fef9c3;
    border-left: 3px solid #ca8a04;
    border-radius: 0 6px 6px 0;
    padding: 0.4rem 0.6rem;
    font-size: 0.78rem;
    color: #92400e;
    margin-top: 0.5rem;
}
.hp-mock-btn-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}
.hp-mock-btn {
    background: #15803d;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    border: none;
    cursor: default;
}
.hp-mock-btn.outline {
    background: white;
    color: #166534;
    border: 1.5px solid #166534;
}
.hp-navbar-toggler {
    border-color: #86efac;
}
.hp-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(21,128,61,0.25);
}
.hp-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2820,83,45,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Standards --- */
.hp-standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}
.hp-standard-card {
    background: white;
    border: 1px solid #d1fae5;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(22,163,74,0.07);
    transition: transform 0.15s, box-shadow 0.15s;
}
.hp-standard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(22,163,74,0.15);
}
.hp-standard-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}
.hp-standard-name {
    font-weight: 700;
    color: #14532d;
    margin-bottom: 0.3rem;
}
.hp-standard-desc {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.5;
}

/* --- Audiences --- */
.hp-audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.hp-audience-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.hp-audience-card:hover {
    border-color: #86efac;
    box-shadow: 0 4px 16px rgba(22,163,74,0.1);
}
.hp-audience-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}
.hp-audience-title {
    font-weight: 700;
    color: #14532d;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.hp-audience-desc {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- CTA Banner --- */
.hp-cta-banner {
    background: linear-gradient(135deg, #15803d, #16a34a);
    color: white;
    padding: 4.5rem 1.5rem;
    text-align: center;
}
.hp-cta-banner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.hp-cta-banner p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
}

/* --- Footer --- */
.hp-footer {
    background: #14532d;
    color: rgba(255,255,255,0.8);
    padding: 3.5rem 1.5rem 2rem;
}
.hp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1040px;
    margin: 0 auto 2.5rem;
}
.hp-footer-brand-badge {
    background: #16a34a;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 0.75rem;
}
.hp-footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.65);
}
.hp-footer-col-title {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.hp-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hp-footer-links li { margin-bottom: 0.4rem; }
.hp-footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}
.hp-footer-links a:hover { color: #86efac; }
.hp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    max-width: 1040px;
    margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hp-hero-v2 {
        min-height: auto;
        padding-top: 2.6rem;
        padding-bottom: 2.6rem;
    }
    .hp-hero-v2-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    .hp-hero-v2-copy {
        text-align: center;
    }
    .hp-hero-v2-copy p {
        margin-left: auto;
        margin-right: auto;
    }
    .hp-hero-v2-actions {
        justify-content: center;
    }
    .hp-hero-v2-art {
        min-height: 14rem;
    }
    .hp-co2-system {
        width: min(15rem, 78%);
    }
    .hp-co2-dot {
        width: 0.72rem;
        height: 0.72rem;
    }
    .hp-feature-row,
    .hp-feature-row.reverse {
        flex-direction: column;
    }
    .hp-navbar-title {
        font-size: 0.9rem;
    }
    .hp-nav-links-desktop {
        margin-top: 0.75rem;
        margin-bottom: 0.5rem;
        flex-direction: column;
        align-items: flex-start !important;
    }
    .hp-nav-link {
        padding-left: 0;
    }
    .hp-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 575px) {
    .hp-footer-grid {
        grid-template-columns: 1fr;
    }
}
