/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --text-color: #212529;
    --bg-light: #f8f9fa;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --line-height-base: 1.5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    padding-top: 76px; /* Account for fixed navbar */
}

/* Typography - Consistent Font Sizes */
h1, .h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2, .h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h3, .h3 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h4, .h4 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h5, .h5 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

h6, .h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

p, .lead {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin-bottom: 1rem;
}

.lead {
    font-size: var(--font-size-lg);
    font-weight: 300;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
}

.display-5 {
    font-size: 2rem;
    font-weight: 700;
}

/* Navigation */
.navbar {
    min-height: 70px;
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-size: var(--font-size-base);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Buttons - Consistent Sizing */
.btn {
    font-size: var(--font-size-base);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-lg {
    font-size: var(--font-size-lg);
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-light {
    background-color: white;
    color: var(--text-color);
}

.btn-light:hover {
    background-color: #f8f9fa;
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.hero-section h1 {
    color: #000080;
    text-shadow: none;
}

.hero-section p,
.hero-section h2 {
    color: #212529;
}

.hero-main-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Cards - Consistent Styling */
.card {
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--secondary-color);
}

/* Icons - Consistent Sizing */
.bi {
    font-size: 2.5rem;
}

.fs-1 {
    font-size: 3rem !important;
}

/* Sections */
section {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* Forms */
.form-control {
    font-size: var(--font-size-base);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
}

.form-control-lg {
    font-size: var(--font-size-lg);
    padding: 0.875rem 1.125rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.bg-primary .form-control {
    background-color: white;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bg-primary .form-control:focus {
    background-color: white;
    color: var(--text-color);
    border-color: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.bg-primary .form-control::placeholder {
    color: #6c757d;
}

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

/* Lists */
.list-unstyled li {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
}

/* Footer */
footer {
    background-color: #212529 !important;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.social-media-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: brightness(0) invert(1);
}

.social-icon:hover .social-media-img {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Bootstrap Icon in footer social row (e.g. TikTok) — matches 32px PNG icons */
.social-icon .bi-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 1.55rem;
    color: #fff;
    line-height: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover .bi-social {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1, .h1 {
        font-size: 2rem;
    }

    h2, .h2 {
        font-size: 1.75rem;
    }

    h3, .h3 {
        font-size: 1.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .hero-section {
        min-height: 80vh;
        padding: 1rem 0;
    }
    
    .hero-main-image {
        max-width: 400px;
    }

    .btn-lg {
        font-size: var(--font-size-base);
        padding: 0.625rem 1.25rem;
    }

    section {
        padding: 3rem 0;
    }

    .card-body {
        padding: 1.25rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    h1, .h1 {
        font-size: 1.75rem;
    }

    h2, .h2 {
        font-size: 1.5rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: var(--font-size-base);
    }
    
    .hero-main-image {
        max-width: 300px;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn-lg {
        width: 100%;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Image Placeholders - Consistent Sizing */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.card-img-top {
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
}

.navbar-brand img {
    display: inline-block;
    vertical-align: middle;
}

.logo-img {
    height: 32px;
    width: auto;
}

.brand-text {
    display: inline-block;
}

/* Mobile adjustments for logo */
@media (max-width: 991.98px) {
    .logo-img {
        height: 28px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 24px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .brand-text {
        font-size: 0.9rem;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Spacing Consistency */
.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

/* Legal pages (privacy, terms) */
.legal-prose {
    line-height: 1.65;
}

.legal-prose h2 {
    margin-top: 1.75rem;
}

.legal-prose ul {
    padding-left: 1.25rem;
}

.legal-prose li {
    margin-bottom: 0.35rem;
}

