/* ===================================
   Global Styles - Shared Across All Pages
   =================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    color: #005a29;
    padding: 15px 30px;
    border-bottom: 5px solid #005a29;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .title,
.header .logo-and-name {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header img,
.header-logo {
    height: 60px;
    width: auto;
}

.header h1 {
    font-size: 2.5em;
    margin: 0;
    font-weight: 700;
    color: #005a29;
}

/* Rotating Z animation */
.header .rotate-z {
    display: inline-block;
    animation: rotateColorChange 6s infinite linear;
    transform-origin: center;
}

@keyframes rotateColorChange {
    0%, 100% {
        transform: rotate(0deg);
        color: #000;
    }
    50% {
        transform: rotate(360deg);
        color: #005a29;
    }
}

/* Navigation */
.header nav,
.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header a,
.header-button {
    padding: 12px 24px;
    background-color: #005a29;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header a:hover,
.header-button:hover {
    background-color: #003d1e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 90, 41, 0.3);
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 1em;
    margin-top: 60px;
}

footer p {
    margin: 8px 0;
}

.footer-location {
    color: #aaa;
    font-size: 0.95em;
    font-style: italic;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #005a29;
}

h2 {
    font-size: 2.2em;
}

h3 {
    font-size: 1.8em;
}

h4 {
    font-size: 1.4em;
}

p {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 15px;
}

a {
    color: #005a29;
    text-decoration: underline;
}

a:hover {
    color: #007a39;
}

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

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

/* Mobile Menu Toggle (for future implementation) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: #005a29;
    cursor: pointer;
    padding: 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header {
        padding: 12px 20px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .header img,
    .header-logo {
        height: 50px;
    }
    
    .header a,
    .header-button {
        padding: 10px 18px;
        font-size: 0.95em;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .header .title,
    .header .logo-and-name {
        width: 100%;
        justify-content: center;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .header img,
    .header-logo {
        height: 45px;
    }
    
    .header nav,
    .header-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .header a,
    .header-button {
        padding: 10px 16px;
        font-size: 0.9em;
    }
    
    footer {
        padding: 25px 15px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    
    .header {
        padding: 12px;
    }
    
    .header h1 {
        font-size: 1.5em;
    }
    
    .header img,
    .header-logo {
        height: 40px;
    }
    
    .header a,
    .header-button {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    h3 {
        font-size: 1.5em;
    }
    
    h4 {
        font-size: 1.2em;
    }
}

/* Print Styles */
@media print {
    .header,
    footer,
    .button,
    .cta-section {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Accessibility Improvements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #005a29;
    outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #005a29;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: #005a29;
    color: white;
}

::-moz-selection {
    background-color: #005a29;
    color: white;
}

/* Loading animation (if needed) */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #005a29;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* ===================================
   Archive Notice
   Added when this site was preserved at tech.estepz.com.
   Sits above the sticky .header, so it scrolls away with the page.
   =================================== */
.archive-banner {
    background-color: #005a29;
    color: #fff;
    padding: 14px 20px;
    text-align: center;
    font-size: 1em;
    line-height: 1.5;
}

.archive-banner strong {
    font-weight: 700;
}

@media (max-width: 480px) {
    .archive-banner {
        padding: 12px 16px;
        font-size: 0.9em;
    }
}
