/* ===== MOBILE-FIRST RESPONSIVE DESIGN ===== */
/* Hacash Website - Optimized for all devices */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100% !important;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #4a90e2;
    --accent-color: #5b8fc7;
    --dark-bg: #0f1419;
    --light-bg: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-color: #ddd;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --green-accent: #00d084;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-y: scroll;
    touch-action: pan-y;
    overscroll-behavior-x: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    touch-action: pan-y;
    overscroll-behavior-x: none;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* ===== NAVIGATION ===== */
.navbar {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    list-style: none;
    border-bottom: 1px solid var(--border-color);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.nav-links.active {
    display: flex;
}

.nav-links li {
    border-bottom: 1px solid var(--border-color);
}

.nav-links a {
    display: block;
    padding: 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== PRICE BANNER ===== */
.price-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 0;
    font-size: 14px;
    text-align: center;
}

.price-banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.price-label {
    font-weight: 600;
}

.price-value {
    font-weight: bold;
    color: var(--green-accent);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    padding: 32px 16px;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.highlight-text {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-highlight-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.highlight-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.highlight-row:last-child {
    margin-bottom: 0;
}

.highlight-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.highlight-value {
    font-size: 14px;
    color: var(--text-light);
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 12px;
    text-align: center;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.4;
    word-wrap: break-word;
}

/* ===== SECTIONS ===== */
section {
    padding: 32px 16px;
}

section h2 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 24px;
    text-align: center;
}

section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

section p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* ===== PROBLEM & SOLUTION SECTION ===== */
.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
}

.problem-card,
.solution-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.problem-card {
    border-left: 4px solid #dc3545;
}

.solution-card {
    border-left: 4px solid var(--success-color);
}

.problem-card h3,
.solution-card h3 {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 16px;
}

/* ===== OVERVIEW CARDS ===== */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

.overview-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.overview-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.overview-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.overview-card p {
    font-size: 13px;
    margin: 0;
}

/* ===== FEATURES SECTION ===== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

.feature-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.feature-item h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 13px;
    margin: 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 16px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    line-height: 1.4;
}

.btn:hover {
    background-color: #0052a3;
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #3a7bc8;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 12px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 32px 16px;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    font-size: 14px;
}

.cta-button {
    background-color: white;
    color: var(--primary-color);
    padding: 12px 24px;
    font-weight: 600;
    margin-top: 12px;
}

.cta-button:hover {
    background-color: #f0f0f0;
}

/* ===== FAQ SECTION ===== */
.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 16px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 13px;
    margin: 0;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 32px 16px;
    text-align: center;
    font-size: 12px;
}

footer p {
    color: white;
    margin-bottom: 8px;
}

footer a {
    color: var(--green-accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== TABLE ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: var(--light-bg);
    font-weight: 600;
}

table tr:hover {
    background-color: #fafafa;
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ===== SCROLL TO TOP BUTTON ===== */
#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    z-index: 999;
    display: none;
    transition: background-color 0.3s;
}

#scrollToTop:hover {
    background-color: #0052a3;
}

/* ===== TABLET (768px+) ===== */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex !important;
        position: static;
        flex-direction: row;
        border: none;
        max-height: none;
        overflow: visible;
        gap: 30px;
        top: auto;
    }

    .nav-links li {
        border: none;
    }

    .nav-links a {
        padding: 0;
        font-size: 15px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .highlight-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .highlight-label {
        flex: 0 0 auto;
        min-width: 120px;
    }

    .highlight-value {
        flex: 1;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    section {
        padding: 48px 24px;
    }

    section h2 {
        font-size: 32px;
    }

    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .problem-solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-section {
        padding: 48px 24px;
    }

    .cta-section h2 {
        font-size: 32px;
    }
}

/* ===== DESKTOP (1200px+) ===== */
@media (min-width: 1200px) {
    .container {
        padding: 0 40px;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .overview-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    section h2 {
        font-size: 40px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .price-banner,
    .cta-section,
    .mobile-menu-toggle,
    #scrollToTop {
        display: none;
    }

    body {
        font-size: 12pt;
    }
}
