/* WTHOA Custom Styles - Wilderness Theme */

:root {
    /* Primary Colors - WTHOA Logo Theme */
    --primary-green: #006633; /* Dark green from logo text & tree */
    --primary-green-light: #4ca64c; /* Lighter green from gradient */
    --primary-green-dark: #004020;
    
    /* Accent Colors - Sunburst Theme */
    --accent-gold: #FFD700; /* Bright yellow/gold from sunburst */
    --accent-gold-dark: #DAA520;
    
    /* Secondary Greens */
    --moss-green: #6b8e3d;
    --sage-green: #8ba888;
    --forest-green: #3d5a3d;
    
    /* Grays - Stone/Bark Theme */
    --gray-dark: #3a4240;
    --gray-medium: #5f6c6a;
    --gray-light: #8a9491;
    --gray-lighter: #c5ccc9;
    --gray-bg: #f4f6f5;
    
    /* Text Colors */
    --text-dark: #2a2f2e;
    --text-medium: #4a5250;
    --text-light: #6b7370;
    
    /* Utility */
    --white: #ffffff;
    --border-color: #d4dbd7;
    --shadow-color: rgba(0, 102, 51, 0.15);
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--gray-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    color: var(--primary-green-dark);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: var(--primary-green);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    font-size: 0.875rem;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: var(--white) !important;
    border-bottom: 3px solid var(--accent-gold); /* Pop of gold */
}

.navbar-brand {
    font-weight: 600;
}

.brand-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    width: 260px;
    height: 58px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-main {
    font-family: 'Lexend', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    background: linear-gradient(180deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-medium);
    font-weight: 500;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark) !important;
    padding: 0.5rem 0.65rem !important;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

.nav-link.active {
    color: var(--primary-green) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.65rem;
    right: 0.65rem;
    height: 3px;
    background: var(--accent-gold); /* Gold indicator */
    border-radius: 3px;
}

/* Bootstrap's nav-pills (e.g. the filter tabs on admin/acc.php) default to
   a blue active background that clashes with the site's green text above -
   swap it for a light green tint instead. */
.nav-pills .nav-link.active {
    background-color: rgba(0, 102, 51, 0.12);
}

.nav-pills .nav-link.active::after {
    content: none; /* the underline indicator is redundant on a filled pill */
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    border-radius: 8px;
    padding: 0.5rem 0;
    border-top: 3px solid var(--accent-gold);
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background-color: var(--gray-bg);
    color: var(--primary-green);
}

/* Hero Section: image visible at top, gradient darkening across the bottom
   half so heading text stays readable (piloted on helpful-information.php
   2026-07-13, rolled out site-wide 2026-07-14). */
.hero {
    background: url('../img/hero-background.png') center/cover;
    color: white;
    padding: 5rem 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0, 64, 32, 0) 0%,
        rgba(0, 64, 32, 0.3) 18%,
        rgba(0, 64, 32, 0.7) 42%,
        rgba(0, 64, 32, 0.88) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Circular badge straddling the hero/content boundary. A sibling of .hero
   (not a child), so .hero's overflow:hidden can't clip it. Each page picks
   an icon matching its own hero heading. */
.hero-badge-wrap {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: -2.25rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--primary-green);
    color: white;
    font-size: 1.6rem;
    border: 4px solid var(--gray-bg);
    box-shadow: 0 4px 10px var(--shadow-color);
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: all 0.3s ease;
    overflow: hidden;
    background-color: var(--white);
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 102, 51, 0.2);
    transform: translateY(-4px);
    border-color: var(--accent-gold);
}

/* Solid header (same green as the top bar/footer, so it blends rather than
   introducing an off-tone) with a plain gold wireframe icon inline with the title. */
.card-header {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.card-header i {
    color: var(--accent-gold); /* Gold icons in headers */
}

.card-body {
    padding: 1.5rem;
}

.card-header .header-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
}

/* Small icon bullet in front of a list item (e.g. helpful-information.php's
   contact rows) - opt-in, most pages don't use it. */
.item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(0, 102, 51, 0.1);
    color: var(--primary-green);
    font-size: 0.9rem;
    flex: 0 0 auto;
    margin-right: 0.6rem;
}

/* Directory-style label/number row: label wraps freely, number never does */
.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 0.75rem;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 51, 0.3);
}

.btn-outline-primary {
    color: var(--primary-green);
    border-color: var(--primary-green);
    border-width: 2px;
}

.btn-outline-primary:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-green);
    border: none;
}

.btn-light:hover {
    background-color: var(--accent-gold);
    color: var(--primary-green-dark);
}

.btn-outline-light {
    border-color: white;
    border-width: 2px;
    color: white;
}

.btn-outline-light:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-green-dark);
}

/* Alert Boxes */
.alert {
    border-radius: 8px;
    border: none;
    border-left: 4px solid;
}

.alert-info {
    background-color: #e8f5e9;
    border-left-color: var(--primary-green);
    color: var(--text-dark);
}

.alert-warning {
    background-color: #fff8e1;
    border-left-color: var(--accent-gold);
    color: var(--text-dark);
}

.alert-success {
    background-color: #e8f5e9;
    border-left-color: var(--primary-green);
    color: var(--text-dark);
}

.alert-danger {
    background-color: #ffebee;
    border-left-color: #c62828;
    color: var(--text-dark);
}

/* Document/Event Lists */
.document-item, .event-item {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    background-color: var(--white);
}

.document-item:hover, .event-item:hover {
    background: var(--gray-bg);
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-gold);
}

.document-item:last-child, .event-item:last-child {
    border-bottom: none;
}

.document-icon, .event-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: var(--accent-gold); /* Gold icon inside green box */
    border-radius: 10px;
    font-size: 1.5rem;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 51, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Badge */
.badge {
    padding: 0.5rem 0.875rem;
    font-weight: 500;
    border-radius: 6px;
}

.bg-primary {
    background-color: var(--primary-green) !important;
}

.text-primary {
    color: var(--primary-green) !important;
}

.bg-success {
    background-color: var(--moss-green) !important;
}

.text-success {
    color: var(--primary-green) !important;
}

/* Footer */
footer {
    background: linear-gradient(180deg, var(--gray-dark) 0%, var(--primary-green-dark) 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 5px solid var(--accent-gold);
}

footer h5 {
    color: var(--accent-gold);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent-gold);
}

footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--accent-gold);
    color: var(--primary-green-dark);
    transform: translateY(-3px);
}

/* Nature-themed decorative elements.
   No background here on purpose: the G3 original painted the centered
   container white against the sage page body, which read as a white column
   with sage side margins. The body's sage now shows uniformly and the
   white cards provide the contrast. */
.section-padding {
    padding: 3rem 0;
}

/* Utility Classes */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
}

.bg-light-green {
    background-color: #f1f8f4;
}

.text-primary-custom {
    color: var(--primary-green) !important;
}

.text-forest {
    color: var(--forest-green) !important;
}

.border-green {
    border-color: var(--primary-green) !important;
}

/* Icon colors for nature theme */
.bi {
    color: inherit;
}

.text-success .bi,
.alert-success .bi {
    color: var(--primary-green);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .brand-main {
        font-size: 1.25rem;
    }

    .brand-logo {
        width: 180px;
        height: 40px;
    }
}
/* --- WTHOA-AI_TEST additions (not in the G3 original) --- */

/* Honeypot field - hidden from humans, present for bots */
.hp {
    display: none;
}

/* Compatibility aliases used by earlier pages */
.wthoa-heading {
    color: var(--primary-green-dark);
}

hr.wthoa-rule {
    border-top: 4px solid var(--primary-green);
    opacity: 1;
}
