/* odsantos.com/shared/css/base_style.css */

:root {
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s ease;

    /* Shared Light Neutral Palette */
    --background-primary: #f8fafc;
    --background-secondary: #edf2f7;
    --card-background: #ffffff;
    --card-border: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --nav-text: rgba(255, 255, 255, 0.88);     /* Crisp off-white for dark header backgrounds */
    --nav-text-hover: #ffffff;                 /* Pure white on hover */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.dark-theme {
    /* Shared Dark Neutral Palette */
    --background-primary: #0f172a;       /* Deep canvas background */
    --background-secondary: #162032;     /* Alternate section background */
    --card-background: #1e293b;          /* Elevated card surface */
    --card-border: rgba(255, 255, 255, 0.1); /* Subtle contrast border */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --nav-text: rgba(255, 255, 255, 0.80); /* Soft bright white for dark theme headers */
    --nav-text-hover: #ffffff;             /* Pure white on hover */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

/* 1. Global Layout */
html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    font-family: var(--bs-font-sans-serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--background-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    margin: 0;
    padding-top: 65px;
}

main {
    flex-grow: 1;
}

/* 2. Navbar Structure */
.navbar {
    /* Fixed Positioning */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;

    /* Dynamic Translucent Gradient derived from each domain's --nav-background */
    background: linear-gradient(135deg, color-mix(in srgb, var(--nav-background) 85%, transparent) 0%, color-mix(in srgb, var(--nav-background) 95%, #000 12%) 100%) !important;

    /* Frosted Glass Blur Effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* Subtle Translucent Border & Shadow */
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
}

.navbar-brand .logo-accent-color {
    color: var(--logo-accent-color);
}

.nav-link {
    color: var(--nav-text) !important;
    transition: color 0.3s ease;
}

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

.theme-switcher-btn {
    background: transparent;
    border: none;
    color: var(--nav-text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.theme-switcher-btn:hover {
    color: var(--nav-text-hover);
}

/* Global Link Styling */
a {
    color: var(--accent-color);
    transition: color 0.2s ease-in-out;
}

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

/* 3. Banner Logic */
.banner-container {
    position: relative;
    height: 340px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #000; /* dark fallback */
}

.banner-bg-blur {
    position: absolute;
    inset: -20px; /* pull past edges to prevent unblurred border gaps */
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.5);
    z-index: 0;
}

.banner-container img {
    position: relative;
    z-index: 1;
    height: 100%;
    width: auto;
    /* Softly fade the left and right edges into the blurred background */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

/* 4. Hero & Sections */
.hero-intro {
    padding: 60px 0;
    margin-top: 50px;
    text-align: center;
}

.hero-intro p {
    font-size: 1.15em;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

section {
    padding: 3rem 0;
}

h2 {
    text-align: center;
    font-size: 1.6em;
    margin-bottom: 60px;
    color: var(--text-primary);
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 20px auto 0;
}

section.about-section-info {
    padding: 6rem 0 9rem;
}

/* 5. Components (Buttons, Cards, Features) */
.btn-base {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1em;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--nav-background);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    transform: translateY(-2px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    text-align: center;
}

.card,
.feature {
    background-color: var(--card-background);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
}

.feature {
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.3s;
    text-align: left;
}

.feature:hover {
    border: 1px solid var(--primary-hover);
    transform: translateY(-8px);
}

.feature h2,
.feature h3 {
    text-align: left;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent-color);
}

.feature h2::after {
    display: none;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card {
   color: var(--text-primary);
    height: 100%;
}

.progress-wrapper {
    background-color: var(--background-primary);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 0.8rem;
    margin-top: 2rem;
}

/* 6. Specialized Sections */
#local-trust,
#developer {
    border-radius: 8px;
    padding: 50px 40px;
    margin-bottom: 50px;
    text-align: center;
}

#developer,
#local-trust,
.hero-intro {
    background: var(--background-secondary);
}

/* 7. Responsive Design */
@media (max-width: 768px) {
    .hero-intro h2 {
        font-size: 2rem;
    }

    .banner-container {
        height: 200px;
    }

    .banner-container img {
        max-height: 150px;
    }
}

/* 8. Unified Footer Styling */
.site-footer {
    background-color: #0b1319 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .dim-text {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer h5,
.site-footer h6 {
    letter-spacing: 0.5px;
}

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

.site-footer .footer-links a {
    transition: color 0.2s ease-in-out;
}

.site-footer .footer-links a:hover {
    color: #ffffff !important;
}

body.dark-theme .site-footer {
    background-color: #050a0e !important;
    border-top-color: rgba(255, 255, 255, 0.15);
}