/* ======== GLOBAL & TYPOGRAPHY ======== */
:root {
    --bs-primary: #0d6efd;
    --bs-primary-rgb: 13, 110, 253;
    --bs-body-font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Offset for sticky navbar */
}

body {
    font-family: var(--bs-body-font-family);
}

.lead {
    font-weight: 400;
}

/* ======== NAVBAR ======== */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--bs-primary) !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

/* NOTE: The Bootstrap 5 mobile navbar collapse requires JavaScript.
   Without JS, it will stack vertically on mobile screens, which remains functional. */

/* ======== HERO SECTION ======== */
.hero-section {
    background-color: #f8f9fa;
}

/* ======== FEATURE CARDS ======== */
.feature-card {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    border-radius: 50%;
}

/* ======== TESTIMONIAL CARDS ======== */
.testimonial-card {
    background-color: #f8f9fa;
    border: none;
    border-radius: 0.75rem;
}

/* ======== PRICING CARDS ======== */
.pricing-card {
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pricing-card .card-price {
    font-weight: 700;
}

.pricing-card .list-unstyled li {
    margin-bottom: 0.75rem;
    color: #6c757d;
}

.pricing-card .list-unstyled i {
    color: var(--bs-primary);
    margin-right: 8px;
}

/* ======== NEWSLETTER FORM VALIDATION (NO JS) ======== */
.form-control:valid {
    border-color: #198754; /* Bootstrap success green */
}

.form-control:invalid {
    border-color: #dc3545; /* Bootstrap danger red */
}

/* ======== FOOTER ======== */
.footer-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--bs-primary);
}

.social-icons a {
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

/* ======== SCROLL TO TOP BUTTON (BONUS) ======== */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--bs-primary);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    font-size: 1.25rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

/* Show button when user scrolls down (CSS only trick) */
html:not(:first-child) .scroll-to-top {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #0b5ed7; /* Darker blue */
    color: #fff;
}