/* ===========================
   Expedition Tracker - Unified Theme
   =========================== */

/* Colors */
:root {
    --expedition-primary: #4DA3E3; /* Sky Blue */
    --expedition-secondary: #1B4F91; /* Deep Blue */
    --expedition-light: #ffffff; /* White */
}

/* Base */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth; /* enables smooth scrolling */
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--expedition-light);
    color: #212529;
}

/* Links */
a {
    color: var(--expedition-primary);
    text-decoration: none;
}

    a:hover {
        color: var(--expedition-secondary);
        text-decoration: none;
    }

/* Navbar */
.navbar {
    background-color: var(--expedition-secondary) !important;
}

.navbar-brand,
.nav-link {
    color: #fff !important;
}

/* Hero (home page only) with fade */
.header-image {
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('/images/expendition_bg1.jpg') no-repeat center center;
    background-size: cover;
}

    .header-image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(255,255,255,0) 70%, #ffffff 100%);
    }

    .header-image .text-center {
        position: relative;
        z-index: 1;
    }

    .header-image h1, .header-image p {
        text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    }

/* Page headers (non-home pages) */
.page-header {
    background: linear-gradient(135deg, rgba(77,163,227,0.85), rgba(27,79,145,0.85)), url('/images/expendition_bg1.jpg') center/cover no-repeat;
    color: white;
    padding: 80px 0;
    text-align: center;
}

    .page-header h1 {
        font-size: 2.5rem;
        font-weight: 700;
    }

    .page-header p {
        font-size: 1.25rem;
        margin-top: 0.5rem;
    }

/* Features section */
.features-section {
    background-color: #fff;
}

.feature-icon {
    font-size: 3rem;
    color: var(--expedition-primary);
}

.box-shadow {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .box-shadow:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    }

/* Footer */
footer {
    background-color: var(--expedition-secondary);
    color: #fff;
}

.footer-section {
    margin-top: 0; /* remove gap */
}

.footer-main {
    padding: 3rem 0; /* internal padding */
}

.footer-bottom {
    padding: 1rem 0;
    background: #0f2f5c;
}

/* Privacy & Terms Page */
.privacy-section .card,
.terms-section .card {
    border-radius: 8px;
    border: none;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

/* Tips Page */
.tips-category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .tips-category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    }

/* Ensure anchor links offset header height */
section[id] {
    scroll-margin-top: 80px;
}
