:root {
    --bg-dark: #2D241E;   /* Dark Grizzly Fur */
    --bg-medium: #4A3B32; /* Medium Brown */
    --bg-light: #F3EFEA;  /* Paper / Snowish */
    
    --accent-color: #D35400; /* Rust/Amber Accent */
    --text-main: #2D241E;
    --text-light: #F3EFEA;
    
    --border-color: #5D4037;
    --terminal-green: #4CAF50; /* Tech touch */
    
    --font-mono: 'DM Mono', monospace;
}

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

body {
    font-family: var(--font-mono);
    background-color: var(--bg-light);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

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

/* --- Top Bar --- */
#top-bar {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 5px 0;
    font-size: 0.8rem;
}

.top-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end; /* Align right since left side is empty now */
    padding: 0 15px;
}

.util-btn {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-mono);
    margin-left: 10px;
    padding: 2px 5px;
    color: var(--text-main);
}

.util-btn:hover {
    border: 1px solid var(--border-color);
}

/* --- Navigation & Header --- */
#main-header {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 10px 0;
}

.header-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 150px 1fr 60px;
    gap: 20px;
    padding: 0 15px;
    align-items: center;
}

.logo-text {
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.2;
    border: 2px solid var(--text-light);
    padding: 10px;
    display: inline-block;
    color: var(--text-light);
}

.center-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pub-banner {
    background-color: var(--bg-medium);
    padding: 5px 10px;
    font-size: 0.85rem;
    text-align: center;
    border: 1px dashed rgba(255,255,255,0.2);
}

.pub-tag {
    color: var(--accent-color);
    font-weight: bold;
}

.main-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
}

.primary-nav a {
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.separator {
    color: var(--border-color);
    margin: 0 5px;
}

.search-bar {
    display: flex;
}

.search-bar input {
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    font-family: var(--font-mono);
    padding: 5px;
}

.search-bar button {
    background: var(--text-light);
    border: none;
    cursor: pointer;
    padding: 0 10px;
}

/* Hamburger */
#hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-light);
}

/* --- Secondary Nav --- */
.secondary-nav-bar {
    background-color: var(--bg-medium);
    color: var(--text-light);
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 4px solid var(--bg-dark); /* Thick border like wireframe */
}

.secondary-nav-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.secondary-nav-bar .current {
    font-weight: bold;
    text-decoration: underline;
}

/* --- Main Layout --- */
.layout-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr 250px; /* Main content + Sidebar */
    gap: 20px;
    flex-grow: 1;
}

.main-content {
    background-color: #e3ded9;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 5px 5px 0px var(--bg-medium); /* Brutalist shadow */
}

.hero-section h1 {
    font-size: 2.2rem; /* Reduced from 3rem */
    margin-bottom: 20px;
    color: var(--bg-dark);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white; /* Ensure visible text */
    padding: 15px 30px;
    margin: 30px 0;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid var(--bg-dark);
    box-shadow: 4px 4px 0px var(--bg-dark);
    transition: transform 0.1s, box-shadow 0.1s;
}

.cta-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--bg-dark);
    /* Removed background change so text stays readable */
}

.cta-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--bg-dark);
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* --- Content Placeholder & Services List --- */
.content-placeholder {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.content-placeholder h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.services-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.services-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 0.95rem;
}

.services-list li:last-child {
    border-bottom: none;
}

.services-list strong {
    color: var(--accent-color);
}

/* --- Sidebar --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background-color: var(--bg-medium);
    color: var(--text-light);
    padding: 20px;
    border-left: 5px solid var(--accent-color);
}

.widget h3 {
    border-bottom: 1px dashed rgba(255,255,255,0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 10px;
}

.widget a {
    color: #e0e0e0;
}

.widget a:hover {
    color: var(--accent-color);
    padding-left: 5px; /* Slight movement */
}

.widget-placeholder {
    font-size: 0.85rem;
    color: #aaa;
    font-style: italic;
}

/* --- ChatBot Toggle --- */
#chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: var(--bg-light);
    border: 2px solid var(--bg-dark);
    box-shadow: -5px -5px 0px var(--accent-color); /* Reverse shadow */
    z-index: 100;
}

.chatbot-header {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.chatbot-header .minimize-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.chatbot-body {
    height: 150px;
    padding: 15px;
    font-size: 0.9rem;
    overflow-y: auto;
    border-bottom: 1px solid var(--border-color);
}

.bot-msg {
    color: var(--terminal-green);
}

.chatbot-input input {
    width: 100%;
    padding: 10px;
    border: none;
    font-family: var(--font-mono);
    outline: none;
}

/* --- Cookies --- */
#cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-medium);
    color: white;
    padding: 15px;
    text-align: center;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

#accept-cookies {
    background-color: var(--accent-color);
    border: none;
    padding: 5px 15px;
    margin-left: 15px;
    font-family: var(--font-mono);
    font-weight: bold;
    cursor: pointer;
    color: white;
}

/* --- Footer --- */
#main-footer {
    background-color: var(--bg-medium);
    color: white; /* As visually shown darker content block */
    padding: 40px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    align-items: flex-end;
    font-size: 0.9rem;
}

.footer-center a {
    margin: 0 5px;
    color: #ccc;
}

.social-icon {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(255,255,255,0.1);
    margin-left: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

.social-icon:hover {
    background: var(--accent-color);
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: #aaa;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .header-grid {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    .logo-area {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 10px;
    }

    .center-area {
        grid-column: 1 / 2;
    }
    
    .menu-area {
        display: none; /* Logic handled by JS, but visually we adapt */
    }

    /* Mobile Nav */
    .main-nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .layout-container {
        grid-template-columns: 1fr; /* Stack sidebar below content */
    }

    .sidebar {
        margin-top: 40px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }
}

/* --- ChatBot Toggle --- */
#chatbot-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    color: white;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 110;
}

#chatbot-widget {
    /* Existing style remains, need to manage visibility state */
    display: none; /* Hidden by default via class */
}

#chatbot-widget.visible {
    display: block;
}

.hidden {
    display: none !important;
}

/* --- Toast Notification --- */
#toast-notification {
    position: fixed;
    bottom: 80px; /* Above cookies/chatbot */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2000;
    font-size: 0.9rem;
    text-align: center;
    min-width: 300px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

#toast-notification.show {
    opacity: 1;
}
