/* =====================================================================
   Lemonhead — styles.css
   Layout, nav, banner, page-title, sections, base components
   ===================================================================== */

/* --- Custom Properties --- */
:root {
    --lh-green:        #2D6A2D;
    --lh-green-dark:   #1C4A1C;
    --lh-accent:       #C8860A;
    --lh-accent-hover: #A06A08;
    --lh-bg:           #FEFDE8;
    --lh-light:        #F5F5E0;
    --lh-border:       #C8C87A;
    --lh-text:         #1C2B1C;
    --lh-text-muted:   #5A6A3A;
    --header-h:        64px;
    --maxw:            1100px;
    --radius:          6px;
    --shadow:          0 2px 8px rgba(0,0,0,0.15);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--lh-text);
    background-color: var(--lh-bg);
    background-image: url('/images/lemonmanBackGround1.jpg');
    background-repeat: repeat;
    padding-top: var(--header-h);
}
a { color: var(--lh-accent); text-decoration: none; }
a:hover { color: var(--lh-accent-hover); text-decoration: underline; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Layout --- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
main { padding: 0.5rem 0 2rem; }

/* --- Navbar --- */
.navbar {
    background: var(--lh-green);
    height: var(--header-h);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.nav-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.nav-brand { text-decoration: none; display: flex; align-items: center; }
.nav-brand-text { font-size: 1.4rem; font-weight: bold; color: #fff; letter-spacing: 0.04em; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; list-style: none; }

.nav-item > a,
.dropdown-toggle {
    display: block;
    padding: 0.45rem 0.85rem;
    color: #fff;
    font-size: 0.95rem;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}
.nav-item > a:hover,
.dropdown-toggle:hover,
.nav-item > a.is-active,
.dropdown-toggle.is-active {
    background: var(--lh-accent);
    color: #fff;
    text-decoration: none;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px; height: 20px;
    background: none; border: none; cursor: pointer; padding: 0;
}
.hamburger span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: all 0.2s; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; right: 0;
    background: var(--lh-green-dark);
    min-width: 180px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    z-index: 200;
    list-style: none;
    padding: 0.25rem 0;
}
.dropdown-menu li a,
.logout-btn {
    display: block;
    width: 100%;
    padding: 0.55rem 1rem;
    color: #fff;
    font-size: 0.9rem;
    font-family: Arial, Helvetica, sans-serif;
    background: none; border: none; cursor: pointer; text-align: left;
    white-space: nowrap; transition: background 0.15s;
}
.dropdown-menu li a:hover,
.logout-btn:hover { background: var(--lh-accent); text-decoration: none; }
.logout-form { margin: 0; }
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu { display: block; }
.caret { font-size: 0.7em; margin-left: 0.2em; }

/* --- Banner --- */
.site-banner { position: relative; height: 140px; overflow: hidden; background: var(--lh-green-dark); }
.banner-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.banner-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); max-height: 120px; width: auto; }

/* --- Page Title --- */
.page-title { background: var(--lh-green); padding: 1.5rem 0; text-align: center; }
.page-title h1 { color: #fff; font-size: 2rem; font-weight: bold; margin-bottom: 0.25rem; }
.page-title p  { color: rgba(255,255,255,0.85); font-size: 1rem; }
.page-title-error { background: #8B0000; }

/* --- Sections --- */
.section     { padding: 3rem 0; margin: 1.25rem 0; background: rgba(255,253,220,0.72); border-radius: 4px; }
.section-alt { background: rgba(240,240,210,0.72); }
.section h2 {
    font-size: 1.6rem; color: var(--lh-green); margin-bottom: 1rem;
    padding-bottom: 0.4rem; border-bottom: 3px solid var(--lh-accent); display: inline-block;
}
.section h3 { font-size: 1.2rem; color: var(--lh-green); margin: 1.25rem 0 0.5rem; }
.lead { font-size: 1.15rem; color: var(--lh-text); margin-bottom: 1.25rem; }
p { margin-bottom: 1rem; }
ul.impact-list { list-style: disc; padding-left: 1.75rem; margin-bottom: 1rem; }
ul.impact-list li { margin-bottom: 0.35rem; }
ol.facts-list { padding-left: 1.75rem; margin: 1rem 0 1.25rem; }
ol.facts-list li { margin-bottom: 0.6rem; line-height: 1.6; }
ol.facts-list li::marker { color: var(--lh-accent); font-weight: bold; }
.text-muted { color: var(--lh-text-muted); font-size: 0.9rem; }

/* --- Contact Table --- */
.contact-table { border-collapse: collapse; margin: 1rem 0 2rem; }
.contact-table td { padding: 0.5rem 1.5rem 0.5rem 0; vertical-align: top; }
.contact-label { font-weight: bold; color: var(--lh-green); white-space: nowrap; min-width: 110px; }
.contact-table a { color: var(--lh-accent); }
.contact-table a:hover { color: var(--lh-accent-hover); }

/* --- Address Block --- */
.address-block {
    background: rgba(255,255,255,0.7);
    border-left: 4px solid var(--lh-accent);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.address-block p { margin: 0; line-height: 1.8; }

/* --- Cards --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 3px solid var(--lh-accent); padding: 1.5rem; }
.card h3 { color: var(--lh-green); margin-bottom: 0.5rem; }
.card p  { color: var(--lh-text); font-size: 0.95rem; margin-bottom: 0.75rem; }
.card-link { color: var(--lh-accent); font-weight: bold; }
.card-link:hover { color: var(--lh-accent-hover); }

/* --- Gallery --- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.gallery figure { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--lh-border); }
.gallery figure img { width: 100%; height: 200px; object-fit: cover; }
.gallery figcaption { padding: 0.6rem 0.8rem; font-size: 0.85rem; color: var(--lh-text-muted); text-align: center; }
.gallery-placeholder { color: var(--lh-text-muted); font-style: italic; margin-top: 1rem; }

/* --- Article --- */
.article { max-width: 780px; }
.article h3 { margin-top: 1.5rem; }

/* --- Floated page images --- */
.img-float-right {
    float: right;
    margin: 0 0 1.25rem 1.75rem;
    max-width: 220px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.img-float-left {
    float: left;
    margin: 0 1.75rem 1.25rem 0;
    max-width: 220px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.clearfix::after { content: ''; display: table; clear: both; }
.img-caption { font-size: 0.82rem; color: var(--lh-text-muted); text-align: center; margin-top: 0.3rem; }
.pull-quote {
    border-left: 4px solid var(--lh-accent);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--lh-green-dark);
    background: rgba(255,255,255,0.5);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* --- Alerts --- */
.alert { padding: 0.85rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.95rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* --- Button --- */
.btn {
    display: inline-block; padding: 0.65rem 1.5rem;
    background: var(--lh-accent); color: #fff;
    border: none; border-radius: var(--radius);
    font-size: 1rem; font-family: Arial, Helvetica, sans-serif; font-weight: bold;
    cursor: pointer; transition: background 0.18s; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--lh-accent-hover); color: #fff; text-decoration: none; }
.btn-full { width: 100%; display: block; }
.btn-sm   { padding: 0.3rem 0.7rem; font-size: 0.82rem; }
.btn-green { background: var(--lh-green); }
.btn-green:hover  { background: var(--lh-green-dark); }
.btn-amber { background: var(--lh-accent); }
.btn-amber:hover  { background: var(--lh-accent-hover); }
.btn-red   { background: #c0392b; }
.btn-red:hover    { background: #922b21; }

/* --- Footer --- */
.site-footer { background: var(--lh-green-dark); color: #fff; padding: 2.5rem 0 1.5rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.footer-gif-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.footer-gif-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.footer-gif { max-height: 90px; width: auto; margin: 0 auto; }
.footer-gif-card p { font-size: 0.82rem; color: rgba(255,255,255,0.88); line-height: 1.55; margin: 0; }
.footer-nav { text-align: center; margin-bottom: 0.75rem; }
.footer-nav a { color: rgba(255,255,255,0.85); font-size: 0.9rem; font-family: Arial, Helvetica, sans-serif; transition: color 0.15s; }
.footer-nav a:hover { color: var(--lh-accent); text-decoration: none; }
.footer-sep { color: rgba(255,255,255,0.35); margin: 0 0.5rem; }
.footer-copy { text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.55); margin: 0; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .footer-gif-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .hamburger { display: flex; }
    .nav-list {
        display: none; flex-direction: column; align-items: stretch;
        position: absolute; top: var(--header-h); left: 0; right: 0;
        background: var(--lh-green-dark); padding: 0.5rem 0; z-index: 150; gap: 0;
    }
    .nav-list.open { display: flex; }
    .nav-item > a, .dropdown-toggle { padding: 0.75rem 1.25rem; border-radius: 0; }
    .dropdown-menu { position: static; display: none; box-shadow: none; border-radius: 0; background: rgba(0,0,0,0.2); }
    .has-dropdown.open .dropdown-menu { display: block; }
    .footer-gif-row { grid-template-columns: 1fr; }
    .page-title h1 { font-size: 1.5rem; }
    .section h2    { font-size: 1.3rem; }
}
