/* ========================================
   Personal Training Website - Dark Blue Theme
   Mobile-First Responsive Design
   ======================================== */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-navy: #0A1929;
    --accent-blue: #2196F3;
    --dark-bg: #0D1B2A;
    --card-bg: #1B263B;
    --text-light: #E0E1DD;
    --text-muted: #B8BDC5;
    --border-color: #2D3748;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--primary-navy);
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* Responsive Typography */
h1 {
    font-size: clamp(1.875rem, 5vw, 3rem);
    max-width: 100%;
    word-wrap: break-word;
}

h2 {
    font-size: clamp(1.625rem, 4vw, 2.25rem);
    max-width: 100%;
    word-wrap: break-word;
}

h3 {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    max-width: 100%;
    word-wrap: break-word;
}

h4 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    max-width: 100%;
    word-wrap: break-word;
}

p {
    margin-bottom: 1rem;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.7;
    color: var(--text-muted);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #64B5F6;
}

/* ===== NAVIGATION ===== */
.navbar {
    background-color: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar.scrolled::after {
    opacity: 1;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-light) !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    color: var(--accent-blue);
    margin-right: 0.5rem;
}

.navbar-brand > span {
    padding-left: 30px;
}

.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    transform: scale(1.8);
    transform-origin: left center;
    /* Extra margin so scaled logo doesn't overlap "Atom Fitness" text */
    margin-right: 3rem;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    /* Minimum tap target 44x44px */
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--accent-blue) !important;
}

.btn-book {
    background: linear-gradient(135deg, var(--accent-blue), #1976D2);
    color: white !important;
    font-weight: 600;
    padding: 0.5rem 1.5rem !important;
    border-radius: 25px;
    margin-left: 0.5rem;
}

.btn-book i {
    margin-right: 0.5rem;
}

.btn-book:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

/* Book Now on current page (booking): keep solid CTA look, highlighted border */
.nav-link.btn-book.active {
    background: linear-gradient(135deg, #2196F3, #1976D2) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.45);
}

/* Mobile Navigation */
.navbar-toggler {
    border: 2px solid var(--accent-blue);
    padding: 0.5rem;
    /* Minimum tap target */
    min-width: 44px;
    min-height: 44px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Better mobile menu spacing */
@media (max-width: 991px) {
    .navbar-collapse {
        padding-top: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .btn-book {
        margin-top: 0.5rem;
        text-align: center;
        display: block;
        margin-left: 0 !important;
    }
}

/* ===== MAIN CONTENT ===== */
main {
    margin-top: 70px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* ===== FLASH MESSAGES ===== */
.flash-messages {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: 90%;
    max-width: 600px;
}

.flash-messages .alert {
    background-color: var(--card-bg);
    border-left: 4px solid var(--accent-blue);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===== BUTTONS ===== */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: none;
    position: relative;
    overflow: hidden;
}

/* Ripple effect */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #1976D2);
    color: white;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.5);
    color: white;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-outline-primary {
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
}

.btn-lg {
    padding: 0.9rem 2.25rem;
    font-size: 1.05rem;
}

/* ===== CARDS ===== */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.25);
    border-color: rgba(33, 150, 243, 0.3);
}

/* Ensure child elements don't block hover on parent */
.card * {
    pointer-events: none;
}

/* Re-enable pointer events for interactive elements */
.card a,
.card button,
.card input,
.card select,
.card textarea {
    pointer-events: auto;
}

.card-body {
    padding: 1.75rem;
}

.card-title {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Training Programs: align buttons to bottom of each card */
.training-programs .card {
    display: flex;
    flex-direction: column;
}
.training-programs .card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.training-programs .card .card-body .btn {
    margin-top: auto;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--dark-bg) 100%);
    padding: 3rem 0 2.5rem;
    min-height: 450px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgba(33,150,243,0.05);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(33,150,243,0);stop-opacity:1" /></linearGradient></defs><circle cx="200" cy="100" r="150" fill="url(%23grad)"/><circle cx="900" cy="400" r="200" fill="url(%23grad)"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.hero .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-light);
}

.hero .highlight {
    color: var(--accent-blue);
}

/* ===== SECTIONS ===== */
.section {
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

@media (min-width: 992px) {
    .section {
        padding: 5rem 0;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), #64B5F6);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-title--tagged {
    display: inline-block;
    position: relative;
    left: auto;
    transform: none;
    width: auto;
    margin-bottom: 2.5rem;
}

.section-title-tag {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    white-space: nowrap;
    line-height: 1.4;
    position: absolute;
    top: -15px;
    left: 100%;
    margin-left: 15px;
    vertical-align: top;
}

/* ===== PRICING CARDS ===== */
.pricing-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.pricing-card p {
    color: var(--text-muted);
}

.pricing-card .text-muted {
    color: var(--text-muted) !important;
}

.pricing-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(33, 150, 243, 0.25);
}

/* Ensure child elements don't block hover on parent */
.pricing-card * {
    pointer-events: none;
}

/* Re-enable pointer events for interactive elements */
.pricing-card a,
.pricing-card button,
.pricing-card input,
.pricing-card select,
.pricing-card textarea {
    pointer-events: auto;
}

.pricing-badge {
    background: linear-gradient(135deg, var(--accent-blue), #1976D2);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.pricing-badge.popular {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.pricing-badge.budget {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.premium-title-word {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 700;
    background: linear-gradient(135deg, #F59E0B, #FCD34D);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 10px rgba(245, 158, 11, 0.2);
}

.pricing-price {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin: 0.75rem 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.pricing-price small {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.8rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    flex-grow: 1;
}

.pricing-savings {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(5, 150, 105, 0.18));
    color: #7eeec5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    width: fit-content;
    white-space: nowrap;
}

.pricing-savings i {
    font-size: 0.72rem;
    opacity: 0.95;
}

.pricing-card .btn {
    margin-top: auto !important;
}

.pricing-features li {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(45, 55, 72, 0.5);
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--accent-blue);
    margin-right: 0.75rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    position: relative;
    border-left: 3px solid var(--accent-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.2);
}

/* Ensure child elements don't block hover on parent */
.testimonial-card * {
    pointer-events: none;
}

/* Re-enable pointer events for interactive elements */
.testimonial-card a,
.testimonial-card button,
.testimonial-card input,
.testimonial-card select,
.testimonial-card textarea,
.testimonial-card img {
    pointer-events: auto;
}

.testimonial-rating {
    color: #FFD700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-light);
    font-size: 1.05rem;
}

.testimonial-type {
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 500;
}

.testimonial-photos {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}

/* One photo: featured, full width, balanced height so no empty space */
.testimonial-photos--count-1 {
    grid-template-columns: 1fr;
}

.testimonial-photos--count-1 .testimonial-photo img {
    height: 240px;
}

/* Two photos: side-by-side, equal columns, same height */
.testimonial-photos--count-2 {
    grid-template-columns: 1fr 1fr;
}

.testimonial-photos--count-2 .testimonial-photo img {
    height: 220px;
}

/* Three photos: three equal columns */
.testimonial-photos--count-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.testimonial-photos--count-3 .testimonial-photo img {
    height: 200px;
}

/* Four or more: 2x2 grid */
.testimonial-photos--count-many {
    grid-template-columns: 1fr 1fr;
}

.testimonial-photos--count-many .testimonial-photo img {
    height: 180px;
}

/* Responsive: on narrow screens keep 2-col for 2 photos; stack 3/many into 2 cols so images stay usable */
@media (max-width: 480px) {
    .testimonial-photos--count-3 {
        grid-template-columns: 1fr 1fr;
    }
    .testimonial-photos--count-3 .testimonial-photo img {
        height: 180px;
    }
}

.testimonial-photo {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.testimonial-photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.testimonial-photo:hover img {
    transform: scale(1.05);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 0.5rem;
    font-size: 0.85rem;
    text-align: center;
}

/* ===== FORMS ===== */
.form-control {
    background-color: rgba(27, 38, 59, 0.8);
    border: 2px solid var(--border-color);
    color: var(--text-light);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    /* Minimum tap target height */
    min-height: 44px;
    font-size: 1rem;
}

.form-control:focus {
    background-color: rgba(27, 38, 59, 0.9);
    border-color: var(--accent-blue);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-select {
    background-color: rgba(27, 38, 59, 0.8);
    border: 2px solid var(--border-color);
    color: var(--text-light);
    border-radius: 10px;
    min-height: 44px;
}

.form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Date & time input styling for dark theme */
input[type="date"].form-control,
input[type="time"].form-control {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    padding-right: 2.75rem;
    background-color: rgba(27, 38, 59, 0.8);
    color: var(--text-light);
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.3px;
}

input[type="date"].form-control:focus,
input[type="time"].form-control:focus {
    background-color: rgba(27, 38, 59, 0.95);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

/* Invert the native calendar / clock icons so they are visible on dark bg */
input[type="date"].form-control::-webkit-calendar-picker-indicator,
input[type="time"].form-control::-webkit-calendar-picker-indicator {
    filter: invert(0.85) sepia(0.3) saturate(3) hue-rotate(185deg);
    cursor: pointer;
    opacity: 0.8;
    padding: 4px;
    border-radius: 4px;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator:hover,
input[type="time"].form-control::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    background-color: rgba(33, 150, 243, 0.15);
}

/* Firefox: style the inner text to match */
input[type="date"].form-control::-moz-datetime-edit,
input[type="time"].form-control::-moz-datetime-edit {
    color: var(--text-light);
}

input[type="date"].form-control::-moz-datetime-edit-fields-wrapper,
input[type="time"].form-control::-moz-datetime-edit-fields-wrapper {
    color: var(--text-light);
}

/* Placeholder / empty state text */
input[type="date"].form-control:invalid::-webkit-datetime-edit,
input[type="time"].form-control:invalid::-webkit-datetime-edit {
    color: var(--text-muted);
}

/* Dark-themed form check inputs (checkboxes) */
.form-check-input {
    background-color: rgba(27, 38, 59, 0.8);
    border: 2px solid var(--border-color);
    width: 1.15em;
    height: 1.15em;
    margin-top: 0.2em;
}

.form-check-input:checked {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.form-check-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

.form-check-label {
    color: var(--text-light);
    cursor: pointer;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-bg);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.footer h5, .footer h6 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
    transform: scale(1.6);
    transform-origin: left center;
}

.footer h5 span {
    padding-left: 20px;
}

.footer-text {
    color: var(--text-muted);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--accent-blue);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.social-links a:hover {
    background-color: var(--accent-blue);
    color: white;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-blue);
    padding-left: 0.5rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-contact i {
    color: var(--accent-blue);
    margin-right: 0.75rem;
    width: 20px;
}

.footer-divider {
    border-color: var(--border-color);
    margin: 2rem 0 1rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== UTILITIES ===== */
.bg-dark-custom {
    background-color: var(--dark-bg);
}

.text-accent {
    color: var(--accent-blue);
}

.lead {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-light);
}

/* Section subtitles */
.section-title + p,
.section-title + .text-center {
    color: var(--text-muted);
}

/* Better contrast for all text-muted in sections */
.section .text-muted,
.text-center.text-muted {
    color: var(--text-muted) !important;
}

/* Spacing utilities */
.gap-3 {
    gap: 1rem;
}

@media (max-width: 767px) {
    .gap-3 {
        gap: 0.75rem;
    }
}

/* ===== ANIMATIONS ===== */

/* Fade in from bottom */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in from left */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade in from right */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale in */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse animation for CTAs */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Bounce animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Gradient animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Float animation for icons */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Apply animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Scale animation variant */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero animations */
.hero h1 {
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.hero .lead {
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

.hero .btn:first-of-type {
    animation: fadeInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}

.hero .btn:last-of-type {
    animation: fadeInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}

/* Icon float animation */
.icon-box {
    animation: float 3s ease-in-out infinite;
}

.icon-box:hover {
    animation: none;
    transform: scale(1.1) rotate(5deg);
}

/* Card entrance - will be triggered by scroll observer */
.card.animated {
    animation: fadeInUp 0.6s ease-out both;
}

/* Pricing badge shine */
.pricing-badge {
    position: relative;
    overflow: hidden;
}

.pricing-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.pricing-card:hover .pricing-badge::before {
    left: 100%;
}

/* Button pulse on hover */
.btn-primary:hover {
    animation: pulse 1.5s infinite;
}

/* Testimonial rating stars animation */
.testimonial-rating i {
    display: inline-block;
    animation: scaleIn 0.4s ease-out both;
}

.testimonial-rating i:nth-child(1) { animation-delay: 0.1s; }
.testimonial-rating i:nth-child(2) { animation-delay: 0.2s; }
.testimonial-rating i:nth-child(3) { animation-delay: 0.3s; }
.testimonial-rating i:nth-child(4) { animation-delay: 0.4s; }
.testimonial-rating i:nth-child(5) { animation-delay: 0.5s; }

/* Progress on page load */
.section-title {
    animation: fadeInUp 0.8s ease-out both;
}

/* Social links hover animation */
.social-links a {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-links a:hover {
    animation: bounce 0.6s ease;
}

/* Navbar slide down on load */
.navbar {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Gradient animation for CTA sections */
.gradient-animated {
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

.icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-blue), #1976D2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Certification logo placement (e.g. ISSA badge) */
.cert-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}
.cert-logo img {
    width: 100%;
    height: auto;
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    display: block;
}
.cert-logo--issa img {
    max-width: 90px;
    max-height: 90px;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   Mobile First Approach
   ======================================== */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero {
        padding: 4rem 0 3.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero {
        padding: 5rem 0 4.5rem;
        min-height: 550px;
    }
    
    .navbar-nav {
        align-items: center;
    }
    
    .card-body {
        padding: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero {
        padding: 6rem 0 5.5rem;
        min-height: 600px;
    }
    
    .pricing-card {
        margin-bottom: 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero {
        min-height: 650px;
    }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
.btn:focus,
.form-control:focus,
.navbar-toggler:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .footer,
    .btn,
    .flash-messages {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
