/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Times+New+Roman:wght@400;700&family=Georgia:wght@400;700&display=swap');

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

/* Early 2000s Color Palette */
:root {
    --primary-green: #99ff99;
    --light-green: #ccffcc;
    --pale-yellow: #ffffcc;
    --white: #ffffff;
    --dark-text: #000000;
    --link-blue: #0000ee;
    --visited-purple: #551a8b;
    --red-accent: #ff0000;
}

/* Base Styles */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    background-color: var(--white);
    color: var(--dark-text);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
}

/* Header Styles - Recreating original table layout */
.site-header {
    width: 545px;
    margin: 0 auto;
    border-collapse: collapse;
    border: 1px solid #cccccc;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 150px;
}

/* Row 1: Main header with images */
.header-row-main {
    display: flex;
    height: 150px;
    align-items: flex-start;
    position: relative;
}

.header-spacer {
    width: 1px;
    background-color: var(--white);
}

.lighthouse-cell {
    width: 100px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: var(--white);
    height: 150px;
    overflow: visible;
    padding-top: 0;
}

.lighthouse-img {
    width: 100px;
    height: 150px;
    display: block;
    object-fit: cover;
    object-position: center bottom;
}

.logo-cell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    height: 150px;
    padding: 0;
}

.logo-link {
    text-decoration: none;
    display: block;
}

.header-logo {
    width: 400px;
    height: 150px;
    display: block;
    object-fit: contain;
}

.redwood-cell {
    width: 44px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: var(--white);
    height: 150px;
    overflow: visible;
}

.redwood-img {
    width: 44px;
    height: 150px;
    display: block;
    object-fit: contain;
}

/* Row 2: Navigation buttons */
.nav-row {
    display: flex;
    height: 37px;
    align-items: stretch;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.nav-spacer {
    width: 1px;
    background-color: var(--light-green);
}

.lighthouse-cell-nav {
    width: 100px;
    background-color: var(--light-green);
    height: 37px;
}

.nav-buttons {
    flex: 1;
    display: flex;
    align-items: stretch;
}

.nav-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-green);
    border: 1px solid #999999;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: bold;
    font-size: 11px;
    transition: all 0.2s;
    position: relative;
    box-sizing: border-box;
}

.nav-button:hover {
    background-color: var(--primary-green);
    border: 1px solid #666666;
}

.nav-button .nav-text {
    display: block;
    pointer-events: none;
}

/* Specific widths to match original */
#nav-main { max-width: 47px; }
#nav-about { max-width: 51px; }
#nav-members { max-width: 92px; }
#nav-services { max-width: 65px; }
#nav-resources { max-width: 145px; }

.redwood-cell-nav {
    width: 44px;
    background-color: var(--light-green);
    height: 37px;
}

/* Row 3: Contact info */
.contact-row {
    display: flex;
    height: 23px;
    align-items: stretch;
}

.contact-spacer {
    width: 1px;
    background-color: var(--white);
}

.lighthouse-cell-contact {
    width: 100px;
    background-color: var(--white);
}

.contact-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pale-yellow);
    font-size: 11px;
    color: var(--dark-text);
}

.redwood-cell-contact {
    width: 44px;
    background-color: var(--white);
}

/* Welcome Banner */
.welcome-banner {
    background-color: var(--primary-green);
    border: 1px solid #66cc66;
    text-align: center;
    padding: 8px 15px;
    margin: 10px 0;
}

.banner-text {
    font-weight: bold;
    font-size: 14px;
}

/* Main Content */
.main-content {
    background-color: var(--light-green);
    border: 1px solid #99cc99;
    padding: 15px;
    margin: 10px 0;
}

/* Quick Links Section */
.quick-links {
    margin-bottom: 20px;
}

.announcement {
    text-align: center;
    margin-bottom: 15px;
}

.announcement-link {
    color: var(--red-accent);
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
}

.announcement-link:hover {
    text-decoration: underline;
}

.button-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.action-button {
    display: inline-block;
    background-color: var(--pale-yellow);
    border: 2px outset #cccccc;
    padding: 5px 15px;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: bold;
    font-size: 11px;
    border-radius: 3px;
    transition: all 0.2s;
}

.action-button:hover {
    background-color: #ffffaa;
    border: 2px inset #cccccc;
}

/* Featured Banner */
.featured-banner {
    margin: 20px 0;
    text-align: center;
}

.service-banner {
    background: linear-gradient(to right, var(--primary-green), var(--light-green));
    border: 2px solid #66cc66;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    color: var(--dark-text);
    border-radius: 5px;
}

.banner-link {
    text-decoration: none;
    color: inherit;
}

.banner-link:hover .service-banner {
    background: linear-gradient(to right, #66ff66, var(--primary-green));
}

/* Content Columns */
.content-columns, .bottom-row {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.column {
    flex: 1;
    background-color: var(--white);
    border: 1px solid #cccccc;
    border-radius: 3px;
}

.section-header {
    background-color: var(--pale-yellow);
    padding: 8px 12px;
    border-bottom: 1px solid #cccccc;
}

.section-header h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
}

.powered-by {
    font-size: 10px;
    color: #666666;
    margin-top: 2px;
}

/* Search Forms */
.search-form {
    padding: 10px;
    border-bottom: 1px solid #eeeeee;
}

.search-box {
    display: flex;
    gap: 5px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 4px 6px;
    border: 1px inset #cccccc;
    font-size: 11px;
    font-family: inherit;
}

.go-button {
    background-color: var(--pale-yellow);
    border: 2px outset #cccccc;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
}

.go-button:hover {
    background-color: #ffffaa;
    border: 2px inset #cccccc;
}

/* Category Links */
.category-links {
    display: flex;
    gap: 10px;
    padding: 10px;
}

.category-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-column a, .local-links a, .weather-links a, .misc-links a {
    color: var(--link-blue);
    text-decoration: none;
    font-size: 11px;
    line-height: 1.6;
}

.category-column a:hover, .local-links a:hover, .weather-links a:hover, .misc-links a:hover {
    text-decoration: underline;
}

.category-column a:visited, .local-links a:visited, .weather-links a:visited, .misc-links a:visited {
    color: var(--visited-purple);
}

/* Local Links */
.local-links {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Search Engine Dropdown */
.search-engines {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: var(--pale-yellow);
    border: 1px solid #cccccc;
    border-radius: 3px;
}

.engine-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.engine-dropdown {
    padding: 4px 6px;
    border: 1px inset #cccccc;
    font-size: 11px;
    font-family: inherit;
    background-color: var(--white);
}

/* Weather and Misc Sections */
.weather-header {
    background-color: var(--pale-yellow);
}

.misc-header {
    background-color: var(--pale-yellow);
}

.weather-links, .misc-links {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Footer */
.site-footer {
    margin-top: 20px;
}

.footer-banner {
    background-color: var(--primary-green);
    border: 1px solid #66cc66;
    text-align: center;
    padding: 8px 15px;
}

.footer-nav {
    font-size: 12px;
    font-weight: bold;
}

.footer-nav a {
    color: var(--dark-text);
    text-decoration: none;
    margin: 0 5px;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.contact-button {
    text-align: center;
    margin: 15px 0;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--pale-yellow);
    border: 2px outset #cccccc;
    padding: 8px 15px;
    text-decoration: none;
    color: var(--dark-text);
    font-size: 12px;
    border-radius: 3px;
    transition: all 0.2s;
}

.contact-link:hover {
    background-color: #ffffaa;
    border: 2px inset #cccccc;
}

.contact-icon {
    font-size: 16px;
}

/* Responsive Design (while maintaining vintage feel) */
@media (max-width: 650px) {
    .container {
        margin: 0 10px;
    }
    
    .site-header {
        width: 100%;
        max-width: 545px;
    }
    
    .content-columns, .bottom-row {
        flex-direction: column;
    }
    
    /* Hide lighthouse and redwood on mobile to save space */
    .lighthouse-cell, .redwood-cell,
    .lighthouse-cell-nav, .redwood-cell-nav,
    .lighthouse-cell-contact, .redwood-cell-contact {
        display: none;
    }
    
    .header-logo {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
    
    .header-row-main {
        height: auto;
        min-height: 90px;
    }
    
    .lighthouse-img, .redwood-img {
        width: 100%;
        height: auto;
        max-height: 150px;
    }
    
    .nav-buttons {
        flex-wrap: wrap;
    }
    
    .nav-button {
        min-width: 80px;
        flex: 1 1 auto;
    }
    
    /* Reset specific widths on mobile */
    #nav-main, #nav-about, #nav-members, #nav-services, #nav-resources {
        max-width: none;
    }
    
    .button-row {
        justify-content: center;
    }
    
    .category-links {
        flex-direction: column;
        gap: 5px;
    }
    
    .engine-selector {
        flex-direction: column;
        gap: 8px;
    }
}

/* Vintage Effects */
.site-header {
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.main-content {
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.1);
}

/* Link Styles (Classic Web) */
a {
    color: var(--link-blue);
}

a:visited {
    color: var(--visited-purple);
}

a:hover {
    text-decoration: underline;
}

/* Form Elements (Classic Style) */
input[type="text"], select {
    background-color: var(--white);
    border: 1px inset #cccccc;
}

button, input[type="submit"] {
    background-color: var(--pale-yellow);
    border: 2px outset #cccccc;
    cursor: pointer;
}

button:active, input[type="submit"]:active {
    border: 2px inset #cccccc;
}