/* EnergyGuy LLC Website Stylesheet
 * Low eye strain colors, professional layout
 * For: Mervyn Martin - Paradise, CA
 * Date: January 2026
 */

/* ============================================
 * GLOBAL STYLES
 * ============================================ */

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #f5f5f0;
    margin: 0;
    padding: 0;
}

/* Container for entire page */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================
 * HEADER / BANNER
 * ============================================ */

header {
    background: linear-gradient(135deg, #4a7ba7 0%, #2c5f8d 100%);
    color: #ffffff;
    padding: 20px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner h1 {
    font-size: 2.5em;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner .tagline {
    font-size: 1.1em;
    font-style: italic;
    color: #e8e8e0;
    margin-top: 5px;
}

/* ============================================
 * MAIN CONTENT LAYOUT
 * ============================================ */

.main-wrapper {
    display: flex;
    flex: 1;
    margin: 20px 0;
}

/* ============================================
 * NAVIGATION SIDEBAR
 * ============================================ */

nav {
    width: 250px;
    background-color: #e8e8e0;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    margin-right: 20px;
}

nav h3 {
    color: #2c5f8d;
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a7ba7;
}

nav ul {
    list-style-type: none;
    margin-bottom: 25px;
}

nav ul li {
    margin-bottom: 10px;
}

nav ul li a {
    color: #2c5f8d;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 3px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #4a7ba7;
    color: #ffffff;
}

nav ul li a:active {
    background-color: #2c5f8d;
}

/* Sub-navigation indentation */
nav ul ul {
    margin-left: 15px;
    margin-top: 5px;
}

nav ul ul li a {
    font-size: 0.95em;
    color: #4a7ba7;
}

/* ============================================
 * MAIN CONTENT AREA
 * ============================================ */

main {
    flex: 1;
    background-color: #ffffff;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 5px;
}

main h1 {
    color: #2c5f8d;
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #4a7ba7;
}

main h2 {
    color: #4a7ba7;
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
}

main h3 {
    color: #2c5f8d;
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
}

main p {
    margin-bottom: 15px;
    text-align: justify;
}

main ul, main ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

main li {
    margin-bottom: 8px;
}

/* ============================================
 * LINKS
 * ============================================ */

a {
    color: #2c5f8d;
    text-decoration: none;
    border-bottom: 1px dotted #4a7ba7;
}

a:hover {
    color: #4a7ba7;
    border-bottom: 1px solid #4a7ba7;
}

main a {
    font-weight: 500;
}

/* ============================================
 * IMAGES AND FIGURES
 * ============================================ */

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

figure {
    margin: 20px 0;
    text-align: center;
}

figcaption {
    font-style: italic;
    color: #666666;
    margin-top: 10px;
    font-size: 0.9em;
}

.schematic {
    border: 1px solid #cccccc;
    padding: 10px;
    background-color: #fafafa;
}

/* ============================================
 * TABLES
 * ============================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #cccccc;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #4a7ba7;
    color: #ffffff;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* ============================================
 * CODE BLOCKS
 * ============================================ */

code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d14;
}

pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-left: 4px solid #4a7ba7;
    overflow-x: auto;
    margin: 20px 0;
}

pre code {
    background-color: transparent;
    padding: 0;
    color: #333333;
}

/* ============================================
 * FOOTER / ADDRESS BLOCK
 * ============================================ */

footer {
    background-color: #333333;
    color: #e8e8e0;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.address-block {
    max-width: 1200px;
    margin: 0 auto;
}

.address-block h3 {
    color: #4a7ba7;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.address-block p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.address-block a {
    color: #4a7ba7;
    border-bottom: 1px dotted #4a7ba7;
}

.address-block a:hover {
    color: #6a9bc7;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    flex-wrap: wrap;
}

.contact-item {
    margin: 10px 20px;
}

.copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #555555;
    font-size: 0.9em;
    color: #999999;
}

/* ============================================
 * PROJECT CARDS
 * ============================================ */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.project-card {
    background-color: #f9f9f9;
    border: 1px solid #cccccc;
    border-radius: 5px;
    padding: 20px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.project-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.project-card h3 {
    color: #2c5f8d;
    margin-bottom: 10px;
}

.project-card p {
    margin-bottom: 15px;
    font-size: 0.95em;
}

.project-card a {
    display: inline-block;
    background-color: #4a7ba7;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 3px;
    text-decoration: none;
    border: none;
    transition: background-color 0.3s;
}

.project-card a:hover {
    background-color: #2c5f8d;
}

/* ============================================
 * RESPONSIVE DESIGN
 * ============================================ */

@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
    }

    nav {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .banner h1 {
        font-size: 1.8em;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    main {
        padding: 20px;
    }
}

/* ============================================
 * UTILITY CLASSES
 * ============================================ */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.highlight {
    background-color: #fffacd;
    padding: 2px 5px;
    border-radius: 3px;
}

.note {
    background-color: #e8f4f8;
    border-left: 4px solid #4a7ba7;
    padding: 15px;
    margin: 20px 0;
}

.warning {
    background-color: #fff3cd;
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin: 20px 0;
}

/* ============================================
 * PRINT STYLES
 * ============================================ */

@media print {
    nav {
        display: none;
    }

    footer {
        background-color: transparent;
        color: #000000;
    }

    a {
        color: #000000;
        text-decoration: underline;
    }
}
