/* ==========================================================================
   Michael P. Hamilton - Virtual Field Station
   Path: /Library/WebServer/Documents/mphamilton/assets/css/style.css
   ========================================================================== */

:root {
    --bg: #fafafa;
    --card-bg: #ffffff;
    --text: #1a1a1a;
    --text-secondary: #555;
    --border: #e0e0e0;
    --accent: #2d5a27;
    --accent-light: #e8f0e7;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --serif: Georgia, 'Times New Roman', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { width: 100%; background: #f5f5f5; }
.hero img { width: 100%; height: auto; display: block; }

.hero-bar { background: var(--accent); padding: 24px 0; }
.hero-title {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    font-style: italic;
}


/* ==========================================================================
   Identity
   ========================================================================== */
.identity { padding: 48px 0 32px; border-bottom: 1px solid var(--border); }
.identity h1 {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.credentials {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}
.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}
.bio-item { display: flex; gap: 16px; }
.bio-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding-top: 4px;
    flex-shrink: 0;
}
.bio-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.bio-text a { color: var(--accent); text-decoration: none; }
.bio-text a:hover { text-decoration: underline; }

/* ==========================================================================
   Cards
   ========================================================================== */
.cards-section { padding: 48px 0; }
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.card-number { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }
.card-title { font-family: var(--serif); font-size: 1.125rem; font-weight: 600; }
.card-subtitle { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 2px; }
.card-links {
    list-style: none;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.card-links li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.875rem;
    transition: background 0.15s ease;
}
.card-links li a:hover { background: #eee; }
.card-links li a span.label { font-weight: 500; }
.card-links li a::after {
    content: '\2192';
    color: var(--text-secondary);
    transition: transform 0.15s ease;
}
.card-links li a:hover::after { transform: translateX(3px); }

/* ==========================================================================
   Sensor Widget Band
   ========================================================================== */
.sensor-band {
    background: #2a3444;
    border-top: 2px solid #8b7d6b;
}
.sensor-band-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.75rem 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.sensor-widget {
    color: #cbd5e1;
    font-family: var(--sans);
    font-size: 0.9rem;
    line-height: 1.5;
}
.widget-placeholder { color: #64748b; font-style: italic; padding: 1rem 0; }

/* Conditions */
.conditions-header { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.3rem; }
.conditions-temp { font-size: 2rem; font-weight: 300; color: #f1f5f9; line-height: 1; }
.conditions-desc { font-size: 1rem; color: #94a3b8; }
.conditions-icon { font-size: 1.3rem; }
.conditions-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: #94a3b8;
}
.conditions-detail span { white-space: nowrap; }
.conditions-hilo { font-size: 0.85rem; color: #64748b; margin-bottom: 0.3rem; }
.aqi-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
}
.aqi-good { background: #166534; color: #bbf7d0; }
.aqi-moderate { background: #854d0e; color: #fef08a; }
.aqi-unhealthy-sensitive { background: #9a3412; color: #fed7aa; }
.aqi-unhealthy { background: #991b1b; color: #fecaca; }
.widget-updated { font-size: 0.75rem; color: #475569; margin-top: 0.3rem; }

/* Birds */
.birds-header { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.3rem; }
.birds-species-count { font-size: 2rem; font-weight: 300; color: #f1f5f9; line-height: 1; }
.birds-label { font-size: 1rem; color: #94a3b8; }
.birds-detections { font-size: 0.85rem; color: #64748b; margin-bottom: 0.3rem; }
.birds-top-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}
.birds-top-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.1rem 0;
    color: #94a3b8;
    border-bottom: 1px solid #1e293b;
}
.birds-top-list li:last-child { border-bottom: none; }
.birds-top-list .species-name { color: #cbd5e1; }
.birds-top-list .species-count { color: #64748b; font-variant-numeric: tabular-nums; }
.singing-now { margin-top: 0.4rem; padding-top: 0.4rem; border-top: 1px solid #374151; }
.singing-now-label { font-size: 0.8rem; color: #6ee7b7; margin-bottom: 0.2rem; }
.singing-now-species { font-size: 0.85rem; color: #94a3b8; line-height: 1.6; }
.singing-now-quiet { font-size: 0.8rem; color: #475569; font-style: italic; }

.sensor-source {
    font-size: 0.7rem;
    color: #475569;
    text-align: center;
    padding-top: 0.5rem;
    grid-column: 1 / -1;
}
.sensor-source a { color: #64748b; text-decoration: none; }
.sensor-source a:hover { color: #94a3b8; }

/* ==========================================================================
   Green Tech Page
   ========================================================================== */
.page-header {
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}
.page-header h1 {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.page-tagline { font-size: 1.125rem; color: var(--text-secondary); font-style: italic; }
.page-intro {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 24px;
}

.content-section { margin-bottom: 56px; }
.content-section h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.principle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.principle-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border-left: 3px solid var(--accent);
}
.principle-icon { font-size: 1.75rem; display: block; margin-bottom: 12px; }
.principle-card h3 {
    font-family: var(--serif);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.principle-card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; }

.practice-item { margin-bottom: 24px; padding-left: 20px; border-left: 2px solid var(--accent); }
.practice-item:last-child { margin-bottom: 0; }
.practice-item h3 {
    font-family: var(--serif);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.practice-item p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; }

.impact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.impact-stat {
    background: #1a1a1a;
    color: #fff;
    padding: 28px 24px;
    border-radius: var(--radius);
    text-align: center;
}
.impact-value {
    display: block;
    font-family: var(--serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: #7cb342;
    margin-bottom: 4px;
}
.impact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    color: #ccc;
}
.impact-detail { display: block; font-size: 0.8125rem; color: #888; line-height: 1.5; }

.network-intro { font-size: 0.9375rem; color: var(--text-secondary); margin-bottom: 20px; }
.network-list {
    list-style: none;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.network-list li {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
}
.network-list li:last-child { border-bottom: none; }
.network-list a { color: var(--accent); text-decoration: none; font-weight: 500; }
.network-list a:hover { text-decoration: underline; }
.network-list .network-desc { color: var(--text-secondary); font-size: 0.8125rem; }
.network-note {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-top: 20px;
    font-style: italic;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #1a1a2e; color: #a0a0b8; }
.footer-inner { max-width: 1000px; margin: 0 auto; padding: 2rem 24px; }
.footer-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0;
}
.footer-project {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid #2a2a42;
    transition: background-color 0.15s;
}
.footer-project:hover { background: #2a2a42; }
.footer-project-name {
    color: #d0d0e0;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
}
.footer-project-desc { color: #6a6a82; font-size: 0.8rem; }
.footer-divider { border-top: 1px solid #2a2a42; margin: 1rem 0; }
.footer-copyright { text-align: center; padding: 0.5rem 0; font-size: 0.85rem; }
.footer-copyright p { margin: 0.25rem 0; }
.footer-license a {
    color: #8888aa;
    text-decoration: none;
    border-bottom: 1px solid #3a3a52;
}
.footer-license a:hover { color: #d0d0e0; }
.footer-green { text-align: center; padding: 0.75rem 0 0; font-size: 0.8rem; }
.footer-green p { margin: 0.2rem 0; }
.footer-green a { color: #7cb342; text-decoration: none; }
.footer-green a:hover { text-decoration: underline; }
.footer-green-desc { color: #6a6a82; font-size: 0.75rem; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav {
    background: var(--accent);
    padding: 0;
}
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
}
.nav-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
}
.nav-title:hover { opacity: 0.9; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 2px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   About Page
   ========================================================================== */
.about-page { padding-bottom: 48px; }
.about-photo {
    margin: 32px 0;
    max-width: 480px;
}
.about-photo img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.about-section {
    margin-bottom: 48px;
}
.about-section h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.about-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.about-section p:last-child { margin-bottom: 0; }
.about-section a { color: var(--accent); text-decoration: none; }
.about-section a:hover { text-decoration: underline; }

.about-project-list { margin-top: 24px; }
.about-project {
    margin-bottom: 24px;
    padding-left: 20px;
    border-left: 2px solid var(--accent);
}
.about-project:last-child { margin-bottom: 0; }
.about-project h3 {
    font-family: var(--serif);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.about-project h3 a { color: var(--text); text-decoration: none; }
.about-project h3 a:hover { color: var(--accent); }
.about-project p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-content {
    margin-bottom: 32px;
}
.contact-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}
.contact-form {
    max-width: 600px;
    margin-bottom: 48px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--sans);
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text);
    transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 160px; }
.btn-submit {
    display: inline-block;
    padding: 10px 28px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-submit:hover { background: #245020; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success {
    max-width: 600px;
    padding: 16px 20px;
    background: #e8f0e7;
    border: 1px solid #b8d4b3;
    border-radius: 6px;
    color: #2d5a27;
    margin-bottom: 32px;
    font-size: 0.9375rem;
}
.form-error {
    max-width: 600px;
    padding: 16px 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #991b1b;
    margin-bottom: 32px;
    font-size: 0.9375rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .nav-inner { flex-direction: column; gap: 8px; }
    .nav-links { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    .hero-title { font-size: 1.375rem; }
    .hero-subtitle { font-size: 0.875rem; }
    .identity h1 { font-size: 2rem; }
    .bio-grid { grid-template-columns: 1fr; gap: 20px; }
    .cards-grid { grid-template-columns: 1fr; }
    .sensor-band-inner { grid-template-columns: 1fr; gap: 1rem; }
    .page-header h1 { font-size: 2rem; }
    .principle-grid, .impact-grid { grid-template-columns: 1fr; }
    .network-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-bar { padding: 20px 0; }
    .identity { padding: 32px 0 24px; }
    .identity h1 { font-size: 1.75rem; }
    .card { padding: 20px; }
    .sensor-band-inner { padding: 0.75rem 16px; }
    .page-header { padding: 32px 0 24px; }
    .page-header h1 { font-size: 1.75rem; }
    .principle-card, .impact-stat { padding: 20px; }
}