/* ========================================
   KAPISA STORE
   Main Stylesheet
   Mobile First
======================================== */


/* ========================================
   1. RESET
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Tahoma,
        Arial,
        sans-serif;

    background: #f8fafc;
    color: #0f172a;

    line-height: 1.8;

    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* ========================================
   2. VARIABLES
======================================== */

:root {

    --primary: #2563eb;
    --primary-dark: #1d4ed8;

    --whatsapp: #16a34a;
    --whatsapp-dark: #15803d;

    --dark: #0f172a;
    --dark-2: #1e293b;

    --text: #334155;
    --muted: #64748b;

    --white: #ffffff;

    --background: #f8fafc;
    --surface: #ffffff;

    --border: #e2e8f0;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm:
        0 4px 15px rgba(15, 23, 42, 0.06);

    --shadow-md:
        0 10px 30px rgba(15, 23, 42, 0.10);

    --container: 1180px;
}


/* ========================================
   3. CONTAINER
======================================== */

.container {
    width: min(
        100% - 32px,
        var(--container)
    );

    margin-inline: auto;
}


/* ========================================
   4. HEADER
======================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.95);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 70px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 10px;

    padding-block: 12px;
}


/* Logo */

.logo {
    font-size: 1.35rem;
    font-weight: 900;

    color: var(--primary);

    letter-spacing: -0.5px;
}


/* Navigation */

.main-nav {
    width: 100%;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 6px;

    overflow-x: auto;

    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav a {
    flex-shrink: 0;

    padding: 7px 10px;

    border-radius: 8px;

    color: var(--text);

    font-size: 0.85rem;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary);
    background: #eff6ff;
}


/* ========================================
   5. HERO
======================================== */

.hero {
    position: relative;

    padding: 70px 0 80px;

    background:
        radial-gradient(
            circle at top right,
            #dbeafe 0,
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #f8fafc,
            #eff6ff
        );

    overflow: hidden;
}

.hero-content {
    text-align: center;

    max-width: 850px;
}


/* Badge */

.hero-badge {
    display: inline-block;

    margin-bottom: 18px;

    padding: 7px 14px;

    border-radius: 999px;

    background: #dbeafe;

    color: #1d4ed8;

    font-size: 0.82rem;

    font-weight: 700;
}


/* Hero title */

.hero h1 {
    max-width: 800px;

    margin-inline: auto;

    margin-bottom: 20px;

    font-size: clamp(
        2rem,
        7vw,
        4rem
    );

    line-height: 1.25;

    font-weight: 900;

    letter-spacing: -1px;
}


/* Hero paragraph */

.hero p {
    max-width: 680px;

    margin: 0 auto 30px;

    color: var(--muted);

    font-size: 1rem;
}


/* Hero buttons */

.hero-buttons {
    display: flex;

    flex-direction: column;

    gap: 12px;

    align-items: stretch;
}


/* ========================================
   6. BUTTONS
======================================== */

.btn {
    display: inline-flex;

    justify-content: center;
    align-items: center;

    min-height: 48px;

    padding: 11px 20px;

    border: none;

    border-radius: var(--radius-sm);

    font-size: 0.95rem;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

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

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

    background: var(--primary);

    box-shadow:
        0 7px 20px rgba(37, 99, 235, 0.22);
}

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

.btn-whatsapp {
    color: var(--white);

    background: var(--whatsapp);

    box-shadow:
        0 7px 20px rgba(22, 163, 74, 0.20);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
}


/* ========================================
   7. SECTIONS
======================================== */

.section {
    padding: 70px 0;
}

.section-heading {
    max-width: 700px;

    margin: 0 auto 40px;

    text-align: center;
}

.section-heading > span {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--primary);

    font-size: 0.85rem;

    font-weight: 800;
}

.section-heading h2 {
    margin-bottom: 12px;

    font-size: 1.8rem;

    line-height: 1.35;
}

.section-heading p {
    color: var(--muted);

    font-size: 0.95rem;
}


/* ========================================
   8. CATEGORY CARDS
======================================== */

.category-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 20px;
}

.category-card {
    display: flex;

    flex-direction: column;

    overflow: hidden;

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-md);
}


/* Image */

.category-image {
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #e2e8f0;
}

.category-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}

.category-card:hover
.category-image img {
    transform: scale(1.04);
}


/* Content */

.category-content {
    display: flex;

    flex-direction: column;

    align-items: stretch;

    padding: 22px;
}

.category-content h3 {
    margin-bottom: 8px;

    font-size: 1.25rem;
}

.category-content p {
    min-height: 58px;

    margin-bottom: 20px;

    color: var(--muted);

    font-size: 0.92rem;
}

.category-content .btn {
    width: 100%;
}


/* ========================================
   9. WHY US
======================================== */

.why-us {
    background: var(--white);
}

.features-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 18px;
}

.feature {
    padding: 25px;

    text-align: center;

    background: var(--background);

    border:
        1px solid var(--border);

    border-radius: var(--radius-md);
}

.feature-icon {
    display: flex;

    justify-content: center;
    align-items: center;

    width: 55px;
    height: 55px;

    margin: 0 auto 15px;

    border-radius: 50%;

    background: #dbeafe;

    font-size: 1.5rem;
}

.feature h3 {
    margin-bottom: 8px;

    font-size: 1.1rem;
}

.feature p {
    color: var(--muted);

    font-size: 0.9rem;
}


/* ========================================
   10. HOW TO ORDER
======================================== */

.how-order {
    background: #f8fafc;
}

.steps {
    display: grid;

    grid-template-columns: 1fr;

    gap: 20px;
}

.step {
    position: relative;

    padding: 25px;

    text-align: center;

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);
}

.step > span {
    display: flex;

    justify-content: center;
    align-items: center;

    width: 48px;
    height: 48px;

    margin: 0 auto 15px;

    border-radius: 50%;

    background: var(--primary);

    color: var(--white);

    font-weight: 900;
}

.step h3 {
    margin-bottom: 8px;

    font-size: 1.05rem;
}

.step p {
    color: var(--muted);

    font-size: 0.9rem;
}


/* ========================================
   11. CTA
======================================== */

.cta {
    padding: 70px 0;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #1e293b
        );

    color: var(--white);
}

.cta h2 {
    margin-bottom: 12px;

    font-size: 1.8rem;
}

.cta p {
    max-width: 600px;

    margin: 0 auto 25px;

    color: #cbd5e1;

    font-size: 0.95rem;
}

.cta .btn {
    min-width: 190px;
}


/* ========================================
   12. FOOTER
======================================== */

.site-footer {
    background: #020617;

    color: var(--white);
}

.footer-content {
    display: grid;

    grid-template-columns: 1fr;

    gap: 35px;

    padding: 55px 0;
}

.site-footer h2 {
    margin-bottom: 10px;

    font-size: 1.35rem;
}

.site-footer h3 {
    margin-bottom: 12px;

    font-size: 1rem;
}

.site-footer p {
    color: #94a3b8;

    font-size: 0.9rem;
}

.footer-links,
.footer-contact {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 7px;
}

.footer-links a,
.footer-contact a {
    color: #cbd5e1;

    font-size: 0.9rem;

    transition:
        color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #60a5fa;
}


/* Bottom */

.footer-bottom {
    padding: 20px;

    text-align: center;

    border-top:
        1px solid #1e293b;
}

.footer-bottom p {
    font-size: 0.8rem;
}


/* ========================================
   13. TABLET
======================================== */

@media (width >= 600px) {

    .container {
        width: min(
            100% - 48px,
            var(--container)
        );
    }


    .header-inner {
        flex-direction: row;

        justify-content: space-between;

        padding-block: 10px;
    }


    .main-nav {
        width: auto;

        justify-content: flex-end;
    }


    .hero {
        padding:
            90px
            0
            100px;
    }


    .hero-buttons {
        flex-direction: row;

        justify-content: center;

        align-items: center;
    }


    .hero-buttons .btn {
        min-width: 180px;
    }


    .category-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .features-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .steps {
        grid-template-columns:
            repeat(3, 1fr);
    }


    .footer-content {
        grid-template-columns:
            1.5fr 1fr 1fr;
    }
}


/* ========================================
   14. DESKTOP
======================================== */

@media (width >= 900px) {

    .section {
        padding: 90px 0;
    }


    .section-heading {
        margin-bottom: 50px;
    }


    .section-heading h2 {
        font-size: 2.2rem;
    }


    .category-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }


    .features-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }


    .category-content {
        padding: 25px;
    }
}


/* ========================================
   15. LARGE DESKTOP
======================================== */

@media (width >= 1200px) {

    .hero {
        padding:
            120px
            0
            130px;
    }


    .hero p {
        font-size: 1.08rem;
    }


    .category-grid {
        gap: 25px;
    }


    .features-grid {
        gap: 25px;
    }
}


/* ========================================
   16. ACCESSIBILITY
======================================== */

:focus-visible {
    outline:
        3px solid
        rgba(37, 99, 235, 0.45);

    outline-offset: 3px;
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   PRODUCT PAGE
======================================== */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    color: var(--muted);

    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--primary);
}

.product-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;

    align-items: center;
}

.product-image {
    overflow: hidden;

    border-radius: var(--radius-lg);

    background: #e2e8f0;

    box-shadow: var(--shadow-md);
}

.product-image img {
    width: 100%;
    height: auto;
}

.product-info h1 {
    margin: 15px 0;

    font-size: clamp(
        2rem,
        7vw,
        3rem
    );

    line-height: 1.3;
}

.product-info > p {
    color: var(--muted);

    font-size: 1rem;
}

.product-highlights {
    display: flex;
    flex-direction: column;

    gap: 10px;

    margin-top: 25px;
}

.product-highlights div {
    padding: 12px 15px;

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);

    background: var(--white);

    font-weight: 700;
}


/* Package Grid */

.package-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 18px;
}

.package-card {
    padding: 25px;

    text-align: center;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.package-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-md);
}

.package-icon {
    display: flex;

    justify-content: center;
    align-items: center;

    width: 65px;
    height: 65px;

    margin: 0 auto 15px;

    border-radius: 50%;

    background: #dbeafe;

    font-size: 2rem;
}

.package-card h3 {
    margin-bottom: 8px;

    font-size: 1.15rem;
}

.package-description {
    margin-bottom: 15px;

    color: var(--muted);

    font-size: 0.85rem;
}

.package-price {
    margin-bottom: 20px;

    font-size: 2rem;

    font-weight: 900;

    color: var(--primary);
}

.package-price span {
    font-size: 0.85rem;

    font-weight: 700;

    color: var(--text);
}

.package-card .btn {
    width: 100%;
}


/* SEO Content */

.seo-content {
    max-width: 850px;

    margin-inline: auto;

    padding: 25px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);
}

.seo-content p {
    margin-bottom: 15px;

    color: var(--text);
}

.seo-content p:last-child {
    margin-bottom: 0;
}


/* FAQ */

.faq {
    max-width: 850px;

    margin-inline: auto;
}

.faq details {
    margin-bottom: 12px;

    padding: 18px 20px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-md);
}

.faq summary {
    cursor: pointer;

    font-weight: 800;
}

.faq details p {
    margin-top: 15px;

    color: var(--muted);

    font-size: 0.92rem;
}


/* Product responsive */

@media (width >= 700px) {

    .product-main {
        grid-template-columns:
            1fr 1fr;
    }

    .package-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (width >= 1000px) {

    .package-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}

/* تنظیم لوگو */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  width: 120px;
  height: auto;
  max-height: 70px;
  object-fit: contain;
}

/* موبایل */
@media (max-width: 600px) {
  .logo img {
    width: 100px;
    max-height: 60px;
  }
}
