
@import url('color.css');

/* ==========================================
   BASE STYLES
   ========================================== */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(120deg, var(--stone-grey) 0%, var(--muted-yellow) 100%);
    color: var(--primary-green);
}

a {
    color: var(--earth-brown);
    transition: color 0.2s;
}

    a:hover {
        color: var(--primary-green);
    }

    a.navbar-brand {
        white-space: normal;
        text-align: center;
        word-break: break-all;
    }

/* ==========================================
   BUTTONS AND FORMS
   ========================================== */

.btn {
    border-radius: 8px;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-success {
    background-color: var(--primary-green);
    border-color: var(--earth-brown);
    color: #fff;
    box-shadow: var(--nature-shadow);
}

    .btn-success:hover {
        background-color: var(--earth-brown);
        border-color: var(--primary-green);
        color: var(--muted-yellow);
    }

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.nav-menu {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 1rem;
}

    .nav-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }

    .nav-menu li {
        display: block;
    }

    .nav-menu a {
        text-decoration: none;
        color: #333;
        font-weight: 500;
        padding: 0.5rem 0.75rem;
        border-radius: 4px;
        transition: background 0.2s;
    }

        .nav-menu a:hover {
            background: #f0f0f0;
        }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* ==========================================
   PRODUCT CARDS
   ========================================== */

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

.product-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

/* ==========================================
   SERVICE MANAGEMENT
   ========================================== */

.service-table th,
.service-table td {
    padding: 0.85rem;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.service-name {
    font-weight: 600;
    text-decoration: none;
}

    .service-name:hover {
        text-decoration: underline;
    }

.service-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    background: var(--bs-body-bg);
    overflow: hidden;
}

    .service-card .service-description {
        max-width: 100%;
        max-height: 90px;
    }

    .service-card .service-images {
        max-width: 100%;
        max-height: 220px;
    }

        .service-card .service-images img {
            max-width: 110px;
            max-height: 110px;
        }

.service-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    color: var(--bs-secondary-color);
    margin-bottom: 0.35rem;
}

.service-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

    .service-actions .btn {
        white-space: nowrap;
    }

.service-toolbar {
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 1rem;
}

.service-search {
    max-width: 420px;
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */

.min-vh-50 {
    min-height: 50vh !important;
}

.min-vh-40 {
    min-height: 40vh !important;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    background: linear-gradient(90deg, var(--earth-brown) 60%, var(--stone-grey) 100%);
    color: var(--primary-green);
    box-shadow: var(--nature-shadow);
}

/* ==========================================
   HOME / LANDING PAGE
   ========================================== */

.hero-section {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.feature-card {
    transition: all 0.2s ease;
    border-radius: 12px;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    }

.icon-circle {
    width: 60px;
    height: 60px;
    background: #198754;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.section-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==========================================
   BLOG
   ========================================== */

.blog-hero {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.blog-card {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

    .blog-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    }

.blog-title {
    font-weight: 700;
    color: #005a9e;
}

.blog-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.blog-excerpt {
    color: #444;
}

.btn-read {
    font-weight: 600;
    color: #005a9e;
    text-decoration: none;
}

    .btn-read:hover {
        text-decoration: underline;
    }

/* ==========================================
   RESPONSIVE - TABLET AND DESKTOP
   ========================================== */

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE NAVIGATION
   ========================================== */

@media (max-width: 600px) {
    .nav-menu ul {
        flex-direction: column;
        display: none;
        width: 100%;
    }

        .nav-menu ul.open {
            display: flex;
        }

    .nav-toggle {
        display: block;
        margin-bottom: 0.5rem;
    }
}

/* ==========================================
   RESPONSIVE - SERVICE MANAGEMENT
   ========================================== */

@media (max-width: 767.98px) {
    .service-toolbar {
        padding: 0.75rem;
    }

    .service-search {
        max-width: 100%;
        width: 100%;
    }

    .service-toolbar-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
    }

        .service-toolbar-actions .btn {
            width: 100%;
        }

    .service-card .card-body {
        padding: 1rem;
    }

    .service-card .service-actions .btn {
        flex: 1;
        padding: 0.6rem;
    }
}


/* ========================================
   Subscription Promotional Popup
   ======================================== */

.promo-modal {
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
}

    .promo-modal .modal-body {
        background: linear-gradient( 180deg, #f0faed 0%, #ffffff 45% );
    }

    .promo-modal .btn-close {
        z-index: 5;
    }

.promo-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e2f3df;
    color: #198754;
    font-size: 34px;
}

.promo-title {
    color: #397b35;
    font-size: 26px;
    line-height: 1.25;
}

.promo-price-box {
    background: #f0faed;
    border: 2px solid #c8e6c9;
    border-radius: 14px;
    padding: 20px 10px;
}

.promo-price {
    color: #198754;
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.promo-dollar {
    font-size: 28px;
    vertical-align: top;
    line-height: 1.4;
}

.promo-period {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: normal;
    color: #666;
}

.promo-benefits {
    max-width: 330px;
}

    .promo-benefits > div {
        margin-bottom: 11px;
        font-size: 14px;
        color: #444;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .promo-benefits i {
        color: #198754;
        font-size: 16px;
        flex-shrink: 0;
    }

.promo-modal .btn-success {
    padding: 14px 20px;
    border-radius: 10px;
    background: #198754;
    border-color: #198754;
}

    .promo-modal .btn-success:hover {
        background: #146c43;
        border-color: #146c43;
    }

@media (max-width: 575.98px) {
    .promo-title {
        font-size: 22px;
    }

    .promo-price {
        font-size: 44px;
    }

    .promo-modal .modal-body {
        padding: 25px 20px !important;
    }
}
