﻿/* Brand section styling - SUBTLE VERSION */
.brand-section {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    user-select: none;
    margin-right: 10px; /* small gap before links */
}

.brand-section:hover {
    background-color: rgba(0,0,0,0.04);
}

.brand-logo {
    height: 32px; /* Reduced from 38px for subtle branding */
    width: auto;
    display: block;
    filter: none;
    opacity: 1;
}

.brand-name {
    font-size: 1.15rem; /* Reduced from 1.4rem for subtle branding */
    font-weight: 700; /* Reduced from 700 */
    color: var(--jp-green);
    letter-spacing: 0.3px;
    text-shadow: none;
}

.brand-badge {    
    display:flex;align-items:center;gap:.5rem;margin-right:1rem;cursor:pointer;user-select:none;
}
.brand-badge img {height:34px;width:auto;display:block;filter:drop-shadow(0 2px 3px rgba(0,0,0,.4));}
.brand-badge span {font-size:1.15rem;font-weight:600;color:#F8EDE3;letter-spacing:.5px;}

/* New hero redesign */
.home-hero {    
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1250px;
    margin: 1rem auto 0;
    padding: 1rem 1.25rem 2rem 1.25rem;
    display: flex;
    flex-direction: column;    
}
.hero-intro {    
    color: #F8F4E6;
    text-align: center;
    margin-bottom: 2rem;
}
.hero-intro h1 {    
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}
.hero-sub {    
    font-size: clamp(1.25rem, 2.8vw, 1.75rem);
    font-weight: 400;
    margin: 0;
    opacity: .96;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    letter-spacing: -0.01em;
}
.hero-cards {    
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}
.hero-card {    
    background: #FFFEFA;
    border-radius: 12px;
    padding: 1.8rem 1.8rem 2rem 1.8rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.hero-card-primary {    
    background: linear-gradient(180deg,#FFFBF5 0%,#FFF7EC 100%);
    border: 1px solid #E8D8BE;
    padding: 2rem 2rem 2.2rem 2rem;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    min-height:480px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}
.hero-lead-text {font-size:1rem;line-height:1.5;}
.hero-card-large {    
    flex: 1.15;
    display: flex;
    flex-direction: column;
}
.hero-side-stack {    
    flex: .95;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.hero-free-header {    
    font-weight: 700;
    margin-bottom: .8rem;
    color: #2d3d2e;
    font-size:1.2rem;
}
.hero-heading-row{display:flex;align-items:center;gap:.9rem;margin-bottom:1rem;}
.hero-accent-icon{width:12px;height:32px;border-radius:5px;background:#3d5440;box-shadow:0 0 0 3px #32453622;display:inline-block;}
.hero-free-header-text{font-size:2.2rem;}
.hero-lead-wrapper{margin-top:.8rem;margin-bottom:1rem;}
.hero-lead-strong{font-size:1.15rem;font-weight:600;margin:0;color:#1a1c19;line-height:1.4;}
.hero-primary-btn{
    background:#5B7553 !important;
    border-radius:10px !important;
    padding:1rem 2rem !important;
    font-size:1.15rem !important;
    font-weight:600 !important;
    box-shadow:0 3px 8px rgba(0,0,0,.22) !important;
    text-transform:none !important;
    letter-spacing:0 !important;
}
.hero-primary-btn:hover{background:#4a6043 !important;box-shadow:0 4px 12px rgba(0,0,0,.28) !important;}
.hero-secondary-links{margin-top:2rem;padding-top:1.5rem;border-top:1px solid #e8dcc8;}
.hero-secondary-links h3{margin:0 0 .5rem;font-size:1.2rem;font-weight:600;color:#2d3d2e;}
.hero-secondary-links .separator{margin:0 .4rem;color:#8a8a8a;font-weight:400;}
.hero-inline-link{font-size:1.05rem;font-weight:500;text-decoration:underline !important;color:#5B7553 !important;}
.hero-inline-link:hover{text-decoration:none !important;}
.hero-list {    
    padding-left: 1.3rem;
    margin: .5rem 0 1.2rem 0;
    font-size: 1rem;
    color: #3d3d3d;
    line-height: 1.6;
    font-weight: 500;
}
.hero-list li {    
    margin-bottom: .85rem;
}
.hero-list li strong {
    font-weight: 700;
}
.brand-inline {    
    font-weight: 800;
    color: #2d2d2d;
}
.stats-card {    
    display: flex;
    flex-direction: column;
}
.stats-card .mud-typography-subtitle1 {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #3d3d3d !important;
}
.stats-grid {    
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem 1.5rem;
}
.stat-item {    
    text-align: center;
}
.stat-value {    
    font-size: 3.2rem;
    font-weight: 700;
    color: #3d3d3d;
    line-height: 1;
    margin-bottom: .3rem;
}
.stat-label {    
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 600;
    color: #5d5d5d;
    line-height: 1.35;
}
.hunter-card {    
    display: flex;
    flex-direction: column;
}
.hunter-card .mud-typography-subtitle1 {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #3d3d3d !important;
}
.hunter-card .mud-typography-body2 {
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
    color: #3d3d3d !important;
}
.hunter-card .mud-button-outlined {
    border: 2px solid #5B7553 !important;
    color: #5B7553 !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    padding: .9rem 1.6rem !important;
    border-radius: 10px !important;
    text-transform: none !important;
}
.hunter-card .mud-button-outlined:hover {
    background: #5B7553 !important;
    color: #fff !important;
}
.hero-alt-link {    
    font-size: .85rem;
    margin-top: 1.3rem;
}
.hero-alt-link a {    
    color: #394F39;
}
.below-hero-nav {    
    margin-top: 2.5rem;
    background: rgba(255,255,250,0.92);
    padding: 1rem 1.3rem;
    border-radius: 50px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    align-self: flex-start;
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.below-hero-link {    
    text-decoration: none;
    color: #1f1f1f;
    font-weight: 600;
    white-space: nowrap;
}
.below-hero-link:hover {    
    text-decoration: underline;
}
.below-hero-icon {    
    color: #5B7553;
    font-size: 1.3rem !important;
}

/* Restore header container & overlay styles */
.customheader {
    position: relative;
    width: 100%;
    height: 900px;
    background-image: url('../20241229_092626.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
.subpageheader { height: 500px; }
.customheader.subpageheader { height: 200px; }
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

/* Hide auth-dropdown by default (desktop) */
.auth-dropdown { display:none; }

/* Nav styles - Updated */
.topnav {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* left align all items */
    padding: 0 24px; /* a bit more horizontal padding */
    width: 100%;
    font-weight: 600;
    background-color: #F8F4E6; /* solid light background per mockup */
    /* removed translucent + blur */
    position: relative;
    z-index: 5;
    top: 0;
    box-sizing: border-box;
    min-height: 70px; /* restore slightly taller feel */
    overflow: visible;
    border-bottom: 1px solid #E4DAC7; /* subtle separator */
}

.left-links,
.right-links {
    display: flex;
    align-items: center;
}

.left-links { display:flex; align-items:center; gap:4px; margin-right: 0; }
.left-links a,
.left-links .mud-navlink {
    text-decoration: none;
    color: #000 !important; /* dark text */
    padding: 18px 16px;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    transition: background-color 0.15s ease, color .15s ease;
    border-radius: 6px;
    text-shadow: none;
}
.left-links a:hover,
.left-links .mud-navlink:hover { background-color: rgba(0,0,0,0.06); }

/* push auth section to right */
.right-links { margin-left: auto; display:flex; align-items:center; }

/* Desktop auth buttons - Multiple selector approaches for better targeting */
.right-links .mud-button-root,
.right-links button.auth-btn,
.desktop-auth.mud-button-root {
    color: #000 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-right: 4px !important;
    padding: 18px 14px !important;
    text-transform: none !important;
    border-radius: 6px !important;
    min-width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color .15s ease !important;
    text-shadow: none !important;
}
.right-links .mud-button-root:hover,
.right-links button.auth-btn:hover,
.desktop-auth.mud-button-root:hover { background-color: rgba(0,0,0,0.06) !important; }

/* User name styling - fix overlap issues */
.user-name {
    font-weight: 600 !important; /* Increased font weight */
    font-size: 18px !important; /* was 20px */
    margin-right: 4px !important;
    white-space: nowrap !important;
    color: #000 !important;
    padding: 18px 14px !important;
    text-shadow: none !important;
}

/* Theme color constant applied */
:root { --jp-green:#5B7553; }

.brand-name { font-size:1.15rem; font-weight:700; color:var(--jp-green); }
.left-links a { color:#000 !important; }
.right-links .mud-button-root,
.right-links button.auth-btn,
.desktop-auth.mud-button-root,
.user-name { color:#000 !important; }

/* Mobile adjustments override colors */
@media screen and (max-width:900px){
  .left-links a{color:#000 !important;}  
  .auth-item{color:#000 !important;}  
  .auth-item.user-greeting{color:#000 !important;}  
  /* Solid background (no transparency) - Updated for 5 nav items */
  .topnav.responsive::before{content:"";position:fixed;top:0;left:0;right:0;height:calc(70px + (5 * 58px) + (2 * 58px) + 44px);background:#F8F4E6;z-index:1005;}
}

/* NAV MOBILE BREAKPOINT ADJUSTED TO 900PX */
@media screen and (max-width: 900px) {
    .topnav { 
        position:fixed;
        top:0;left:0;right:0;min-height:70px;padding:0 16px;background:#F8F4E6;z-index:1000;
    }
    .topnav .icon { 
        display:flex !important;position:absolute;right:14px;top:50%;transform:translateY(-50%);background:#2c2e2b;color:#F8F4E6;border:2px solid #2c2e2b;width:50px;height:50px;align-items:center;justify-content:center;border-radius:10px;font-size:26px;z-index:1050;transition:background .15s ease,border-color .15s ease,transform .15s ease;
    }
    .topnav .icon:hover { background:#394037;border-color:#394037; }
    .right-links { display:none !important; }
    .topnav.responsive .brand-section { display:none; }
    .left-links { display:none;flex-direction:column;width:100%;position:fixed;top:70px;left:0;right:0;background:#F8F4E6;z-index:1010;box-shadow:0 8px 18px rgba(0,0,0,.12);animation:slideDown .28s ease; }
    .left-links a { width:100%;box-sizing:border-box;border-bottom:1px solid #E4DAC7;padding:18px 22px;font-size:19px;line-height:1.2;color:var(--jp-green); }
    .left-links a:last-child { border-bottom:none; }
    .auth-dropdown { display:none;flex-direction:column;position:fixed;left:0;right:0;background:#F8F4E6;z-index:1010;box-shadow:0 12px 24px rgba(0,0,0,.15);animation:slideFade .28s ease; }
    .auth-item { padding:18px 22px;font-size:19px;border-bottom:1px solid #E4DAC7;line-height:1.25;display:flex;align-items:center;color:var(--jp-green);cursor:pointer; }
    .auth-item:last-child { border-bottom:none; }
    .auth-item.user-greeting { background:#F8F4E6;font-weight:600;border-bottom:1px solid #E4DAC7;cursor:default; }
    .topnav.responsive .left-links { display:flex; }
    .topnav.responsive .auth-dropdown { display:flex;top:calc(70px + (5 * 58px) + 30px); }
    .topnav.responsive .icon { transform:translateY(-50%) rotate(90deg); }
    .topnav.responsive::before { content:"";position:fixed;top:0;left:0;right:0;height:calc(70px + (5 * 58px) + (2 * 58px) + 44px);background:#F8F4E6;z-index:1005; }

    /* Taller header background for mobile so cards don't overlap forest image */
    .customheader:not(.subpageheader) { height:1150px; }
    .home-hero { padding-top: 5.2rem; }
}
@media screen and (min-width: 901px) { .topnav .icon { display:none !important; }}

/* Hero cards responsive stacking (separate breakpoint from nav) */
@media (max-width: 930px) {
  .hero-cards { flex-direction: column !important; }
  .hero-card-large, .hero-side-stack { flex: 1 1 auto; }
  .customheader:not(.subpageheader){height:auto; min-height:820px;}
}

/* Desktop hero size adjustments */
.hero-free-header-text{font-size:2.2rem;}
.hero-lead-strong{font-size:1.15rem;}
.hero-list{font-size:1rem;}
.hero-intro h1{font-size:clamp(1.9rem,4vw,2.7rem);} 

/* Mobile (<=600px) tighter typography */
@media (max-width:600px){
  .hero-intro h1{font-size:1.55rem;}
  .hero-sub{font-size:.95rem;}
  .hero-free-header-text{font-size:1.45rem;}
  .hero-lead-strong{font-size:1.05rem;}
  .hero-list{font-size:.9rem;}
  .hero-primary-btn{font-size:1rem !important;padding:.85rem 1.4rem !important;}
}

/* Mid-size devices (601px-930px) */
@media (min-width:601px) and (max-width:930px){
  .hero-free-header-text{font-size:1.75rem;}
  .hero-lead-strong{font-size:1.1rem;}
  .hero-list{font-size:.95rem;}
}

/* Improve mobile stats card readability: stack stats vertically under 500px, reduce font size and prevent overflow */
@media (max-width:500px){
  .stats-grid{grid-template-columns:1fr !important;gap:1rem !important;}
  .stat-item{padding:0 .25rem;}
  .stat-value{font-size:2.4rem;}
  .stat-label{font-size:.65rem;word-break:break-word;white-space:normal;}
  .stats-card .mud-typography-subtitle1{font-size:1.15rem !important;}
}
