/* ==========================================================================
   Appy.ge — გლობალური სტილები (გაწმენდილი 2026-07)
   ⚠️ საჯარო „cosmic" თემა (hero, glass, btn-cosmic, ...) base.html-ის
      #appy-pub-theme ბლოკშია. აქ რჩება მხოლოდ საერთო/დაფაშბორდის საბაზისო
      სტილები. მოცილდა homepage-ის ძველი (გამოუყენებელი) წესები:
      .hero* , .feature-box , .icon-box , #particle-canvas , .bouncing-text ,
      .footer-social , .project-image , .btn-outline-light , hero-video/overlay —
      ეს კლასები აღარ გამოიყენება არცერთ template-ში (გადამოწმებულია).
   ========================================================================== */

/* 1. შრიფტები */
@font-face {
    font-family: 'BPGSupersquare';
    src: url('../fonts/bpg-supersquare-mtavruli-webfont.woff2') format('woff2'),
         url('../fonts/bpg-supersquare-mtavruli-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* ტექსტი მაშინვე ჩანს, სანამ შრიფტი იტვირთება (FOIT-ის თავიდან აცილება) */
    ascent-override: 85%; descent-override: 15%; line-gap-override: 0%;
}

:root {
    --primary-blue: #0b5fb4;
    --primary-teal: #0ebc85;
    --gradient-logo: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-teal) 100%);
    --text-color: #555555;
    --heading-color: #222222;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'BPGSupersquare', sans-serif!important;
    color: var(--text-color);
    line-height: 1.7;
    background-color: #ffffff;
}
html, body {
    /* ⚠️ 2026-07 ფიქსი: overflow-x:hidden html/body-ზე Chrome/Firefox/Safari-ში
       ატეხავს position:sticky-ს (ნავბარი "sticky-top" საერთოდ ქრებოდა სქროლზე,
       რადგან overflow!=visible ნებისმიერ წინაპარზე ცვლის sticky-ს containing block-ს).
       overflow-x:clip იგივეს აკეთებს (ჰორიზონტალურ overflow-ს მალავს, scrollbar არ
       უჩნდება), მაგრამ scroll-კონტეინერად არ ითვლება — sticky ხელუხლებელი რჩება. */
    overflow-x: clip !important;
    width: 100%;
    position: relative;
}

/* FontAwesome აიქონების დაცვა გადაფარვისგან */
i[class^="fa-"], i[class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

h1, h2, h3, h4, h5, h6 { color: var(--heading-color); font-weight: 700; }

/* მუქი ფონის ბარათებზე (დეშბორდის სტატისტიკა) სათაურები თეთრი უნდა იყოს */
.stat-card h1, .stat-card h2, .stat-card h3, .stat-card h4, .stat-card h5, .stat-card h6,
.billing-stat-card h1, .billing-stat-card h2, .billing-stat-card h3, .billing-stat-card h4, .billing-stat-card h5, .billing-stat-card h6,
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6 {
    color: #fff;
}

/* 2. ფერები და ღილაკები (დაფაშბორდი/Bootstrap-ის სოლიდ ღილაკები) */
.text-primary { color: var(--primary-teal) !important; }
.bg-primary { background: var(--primary-blue) !important; }

/* მთავარი ღილაკი (შესვლა, დავიწყოთ) — სუფთა ფირუზისფერი */
.btn-primary {
    background: var(--primary-teal) !important;
    border: 2px solid var(--primary-teal) !important;
    color: #fff !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 188, 133, 0.3) !important;
}
.btn-primary:hover {
    background: transparent !important;
    color: var(--primary-teal) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(14, 188, 133, 0.2) !important;
}

/* სტანდარტული გამჭვირვალე ღილაკი (ვრცლად ნახვა ბარათებზე) */
.btn-outline-primary {
    border: 2px solid var(--primary-blue) !important;
    color: var(--primary-blue) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background: var(--primary-blue) !important;
    color: #fff !important;
    transform: translateY(-3px);
}

/* ბარათები (დაფაშბორდი) */
.card {
    border-radius: 16px !important;
    background: #fff;
    border: 1px solid #f0f0f0 !important;
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(11, 95, 180, 0.1) !important;
    border-color: rgba(14, 188, 133, 0.3) !important;
}

/* სტატისტიკის რიცხვები */
.counter { font-weight: 800; }

/* მოდალის დახურვის თეთრი ღილაკი */
.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    background-color: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 50%;
}

/* ==========================================================================
   მობილური ოპტიმიზაცია (Responsive)
   ========================================================================== */
@media (max-width: 768px) {
    /* სექციების სათაურები და პედინგები */
    h2.display-6 { font-size: 2rem !important; }
    section { padding-top: 3rem !important; padding-bottom: 3rem !important; }

    /* ბარათების შიდა სივრცე */
    .card-body { padding: 2rem !important; }

    /* აიქონების ზომები */
    .fa-4x { font-size: 3em !important; }
    .fa-3x { font-size: 2em !important; }
}

@media (max-width: 991px) {
    /* ნავიგაციის მენიუ მობილურზე (დაფაშბორდი — თეთრი პანელი) */
    .navbar-collapse {
        background: #ffffff;
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-top: 15px;
        border: 1px solid #f0f0f0;
    }
}

@media (max-width: 767px) {
    /* კონტაქტის ბლოკის გამყოფი ხაზი მობილურზე (ქვემოთ) */
    .custom-contact-divider {
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 30px;
        margin-bottom: 10px;
    }
}

@media (min-width: 768px) {
    /* კონტაქტის ბლოკის გამყოფი ხაზი დესკტოპზე (მარჯვნივ) */
    .custom-contact-divider {
        border-right: 1px solid #e2e8f0;
    }
}
