/* Base styles for Carbon Sink Calculator */

/* Reset and base typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    margin-bottom: 1rem;
}

b {
    font-weight: 400;
}

/* Container */
.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    background-color: #28a745;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
}
.logo-container {
    margin: 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.logo-container img {
    width: auto;
    flex-shrink: 0;
}
.navbar-brand {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-left: 3rem;
}

.navbar-brand:hover {
    color: #f8f9fa;
    text-decoration: none;
}

.navbar-brand i {
    margin-right: 1rem;
    font-size: 2.2rem;
}

/* Hamburger menu button */
.menu-toggle {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: inline-block;
    width: 28px;
    height: 20px;
    position: relative;
}
.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { bottom: 0; }

/* Dropdown menu - vertical strip on right */
.nav-menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background: #1f7a36;
    transition: right 0.3s ease;
    z-index: 1010;
    padding-top: 2rem;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}
.nav-menu.open { 
    right: 0; 
}
.nav-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s ease;
}
.nav-menu a:hover { 
    background: rgba(0,0,0,0.15); 
}

/* Overlay when menu is open */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Main content */
main {
    flex: 1;
    padding: 2rem 0;
}

/* Ensure main container spans full width inside flex body */
main.container {
    width: 100%;
}

/* Footer */
footer {
    background-color: #166028;
    border-top: 1px solid #dee2e6;
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-text {
    color: #6c757d;
    text-align: center;
    margin: 0;
    font-size: 0.9rem;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.py-3 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.mb-0 {
    margin-bottom: 0;
}
