/**
 * Cashbook Digital - Public Site Styles
 * Custom styles with  prefix to avoid Tabler conflicts
 * Version: 1.0.0
 */

/* ===== Base Overrides ===== */
:root {
    --primary: #0455A4;
    --spacing: 1.5rem;
}

/* ===== Navigation ===== */
.navbar-transparent {
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.navbar-brand-image {
    max-height: 32px;
    width: auto;
}

@media (max-width: 767px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
}

/* ===== Hero Section ===== */
.hero {
    padding: 4rem 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-subheader {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tblr-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--tblr-secondary);
    line-height: 1.6;
}

.hero-img-side {
    position: relative;
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero {
        min-height: auto;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }
}

/* ===== Sections ===== */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--tblr-secondary);
}

.section-light {
    background-color: var(--tblr-bg-surface-secondary);
}

/* ===== Cards ===== */
.card {
    border: 1px solid rgba(98, 105, 118, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    }

.card-feature {
    border: none;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

    .card-feature:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    }

/* ===== Shapes (Icon Containers) ===== */
.shape {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: rgba(4, 85, 164, 0.1);
    color: var(--tblr-primary);
}

.shape-md {
    width: 4rem;
    height: 4rem;
}

.shape-lg {
    width: 5rem;
    height: 5rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
    /* means 28px */
    .feature-icon i {
        font-size: 1.75rem;
    }

/* ===== Buttons ===== */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

    .btn-primary:hover {
        background-color: #034580;
        border-color: #034580;
        transform: translateY(-1px);
        box-shadow: 0 0.25rem 0.5rem rgba(4, 85, 164, 0.3);
    }

/* ===== Modals ===== */
.modal-content {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.modal-header {
    border-bottom: 1px solid rgba(98, 105, 118, 0.16);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.25rem;
}

/* ===== Forms ===== */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--tblr-body-color);
}

.form-control {
    border-color: rgba(98, 105, 118, 0.24);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .form-control:focus {
        border-color: var(--tblr-primary);
        box-shadow: 0 0 0 0.25rem rgba(4, 85, 164, 0.1);
    }

.form-text {
    font-size: 0.875rem;
    color: var(--tblr-secondary);
}

.invalid-feedback {
    font-size: 0.875rem;
}

/* ===== Pricing Cards ===== */
.card-border-primary {
    border-width: 2px;
    border-color: var(--primary) !important;
}

.ribbon {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== Accordion ===== */
.accordion-button {
    font-weight: 600;
    font-size: 1rem;
}

    .accordion-button:not(.collapsed) {
        background-color: rgba(4, 85, 164, 0.05);
        color: var(--tblr-primary);
    }

.accordion-body {
    padding: 1.25rem 1.5rem;
    color: var(--tblr-secondary);
}

/*
 * Custom Font Size Utility Classes for Tabler/Bootstrap
 * Uses a logical rem scale (1rem = 16px default)
 * Note: .fs-6 is typically equivalent to 1rem (default body font size)
*/

.fs-5 {
    font-size: 0.75rem !important; /* ~12px (Small text) */
}

.fs-10 {
    font-size: 1.0rem !important; /* ~16px (Normal/Body text) */
}

.fs-15 {
    font-size: 1.25rem !important; /* ~20px (Larger body text / small subtitle) */
}

.fs-20 {
    font-size: 1.5rem !important; /* ~24px (H4 size) */
}

.fs-24 {
    font-size: 1.75rem !important; /* ~28px (H3 size) */
}

.fs-48 {
    font-size: 3.0rem !important; /* ~48px (Large Title / H1) */
}

.fs-96 {
    font-size: 4.5rem !important; /* ~72px (Extra Large Hero Text) */
}

.fs-100 {
    font-size: 6.0rem !important; /* ~96px (Massive Hero Text) */
}


/* ===== Footer ===== */
.footer {
    background-color: var(--tblr-bg-surface);
    border-top: 1px solid rgba(98, 105, 118, 0.16);
}

    .footer .subheader {
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.05em;
        color: var(--tblr-body-color);
    }

    .footer .list-separated li {
        padding: 0.25rem 0;
    }

.link-secondary {
    color: var(--tblr-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

    .link-secondary:hover {
        color: var(--tblr-primary);
    }

/* ===== Breadcrumb ===== */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--tblr-secondary);
}

/* ===== Avatars ===== */
.avatar {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(4, 85, 164, 0.1);
    color: var(--tblr-primary);
}

.avatar-lg {
    width: 4rem;
    height: 4rem;
}

.avatar-md {
    width: 3rem;
    height: 3rem;
}

/* ===== Utilities ===== */
.text-primary {
    color: var(--primary) !important;
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-facebook {
    background-color: #1877f2;
    border-color: #1877f2;
    color: white;
}

    .btn-facebook:hover {
        background-color: #0c63d4;
        border-color: #0c63d4;
        color: white;
    }

.btn-twitter {
    background-color: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

    .btn-twitter:hover {
        background-color: #0c85d0;
        border-color: #0c85d0;
        color: white;
    }

.btn-linkedin {
    background-color: #0077b5;
    border-color: #0077b5;
    color: white;
}

    .btn-linkedin:hover {
        background-color: #005f8e;
        border-color: #005f8e;
        color: white;
    }

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
    color: white;
}

    .btn-instagram:hover {
        opacity: 0.9;
        color: white;
    }

/* ===== Divider ===== */
.hr-text {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--tblr-secondary);
    font-size: 0.875rem;
}

    .hr-text::before,
    .hr-text::after {
        content: '';
        flex: 1;
        height: 1px;
        background-color: rgba(98, 105, 118, 0.16);
    }

    .hr-text::before {
        margin-right: 1rem;
    }

    .hr-text::after {
        margin-left: 1rem;
    }

/* ===== Spacing Utilities ===== */
.space-y > * + * {
    margin-top: 1rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-5 > * + * {
    margin-top: 2rem;
}

.space-y-6 > * + * {
    margin-top: 2.5rem;
}

/* ===== Container Utilities ===== */
.container-narrow {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.container-tight {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ===== Custom 5-column layout for user roles ===== */
.col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .col-lg-2-4 {
        width: 33.333%;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .col-lg-2-4 {
        width: 50%;
    }
}

@media (max-width: 575px) {
    .section-title {
        font-size: 1.75rem;
    }

    .col-lg-2-4 {
        width: 100%;
    }
}

/* ===== Accessibility ===== */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus styles for keyboard navigation */
.focus-visible:focus-visible {
    outline: 2px solid var(--tblr-primary);
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
    .no-print {
        display: none !important;
    }
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
    :root:not([data-bs-theme="light"]) {
        --primary: #4A9DE8;
    }

        :root:not([data-bs-theme="light"]) .shape {
            background-color: rgba(74, 157, 232, 0.15);
        }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===== Wave Divider ===== */
.section-divider {
    width: 100%;
    height: 28px;
    margin-top: -28px;
    fill: var(--tblr-bg-surface-secondary);
}

.section-light .section-divider {
    fill: white;
}