@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

:root {
    --primary-brown: #3E2723;
    --secondary-green: #556B2F;
    --accent-gold: #997B1A;
    --bg-parchment: #F9F9F4;
    --text-main: #333333;
}

html, body {
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
    font-family: 'Lato', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-parchment);
    
    /* IMPORTANT: Padding is now handled by Javascript to be exact */
    padding-top: 0; 
}

/* 2. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3 {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 100 !important;
    color: var(--primary-brown);
}

.text-gold { color: var(--accent-gold) !important; }
.text-brown { color: var(--primary-brown) !important; }
.text-sage { color: var(--secondary-green) !important; }

/* 3. HERO SECTION */
.hero-wrapper {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--primary-brown);
    overflow: hidden;
}

.hero-wrapper h1, 
.hero-wrapper .display-1 {
    color: #ffffff !important; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    position: relative;
    z-index: 20;
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; 
    z-index: 1;
}

/* Gradient Overlay */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom, 
        rgba(62, 39, 35, 0.9) 0%, 
        rgba(62, 39, 35, 0.1) 100%
    );
}

.hero-content { position: relative; z-index: 20; }

/* 4. COMPONENTS */
.btn-custom {
    background-color: var(--secondary-green);
    color: #fff;
    border-radius: 0;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}
.btn-custom:hover {
    background-color: var(--primary-brown);
    color: #fff;
    transform: translateY(-2px);
}

.separator {
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 20px auto;
}

/* Footer Links */
.bg-brown-dark { background-color: #2D1B18; color: #b0b0b0; }
.footer-link { color: #b0b0b0; text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: var(--accent-gold) !important; }


/* --- CUSTOM TABLES --- */
.table-tobacco {
    border-color: #e0e0e0;
}
.table-tobacco thead th {
    background-color: var(--primary-brown);
    color: #ffffff;
    font-weight: 400;
    font-family: 'Lato', sans-serif;
    letter-spacing: 1px;
    border: none;
}
.table-tobacco tbody tr:nth-of-type(odd) {
    background-color: rgba(85, 107, 47, 0.05); /* Very faint Sage Green */
}
.table-tobacco td {
    color: var(--text-main);
    vertical-align: middle;
}

/* --- CHECKBOX CUSTOMIZATION --- */
.form-check-input {
    border: 2px solid var(--secondary-green) !important; /* Thicker border */
    background-color: #f9f9f9;
}

.form-check-input:checked {
    background-color: var(--secondary-green) !important;
    border-color: var(--secondary-green) !important;
    box-shadow: none;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(85, 107, 47, 0.25);
    border-color: var(--primary-brown) !important;
}

/* --- PAGE HEADER WITH BACKGROUND IMAGE --- */
.page-header-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Dark Overlay so white text is readable */
.page-header-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(62, 39, 35, 0.45); /* Dark Brown overlay (75% opacity) */
    z-index: 1;
}

.page-header-bg .container {
    position: relative;
    z-index: 2; /* Sits on top of overlay */
}


/* 5. RESPONSIVE TYPOGRAPHY (Mobile Fixes) */
@media (max-width: 768px) {
    /* Shrink the Hero Title */
    .hero-wrapper h1,
    .display-1 {
        font-size: 3rem !important; /* Was 5rem */
    }
    
    /* Shrink the Brand Name in Navbar */
    .navbar-brand {
        font-size: 1.4rem !important; /* Was 1.8rem */
    }
    
    /* Shrink Lead Text */
    .lead {
        font-size: 1.1rem !important;
    }
    
    /* Adjust Buttons */
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}