/* Color Variables */

:root {
    --color-primary: #1c3529;
    --color-background: #ffffff;
    --color-surface: #f5f3eb;
    --color-text: #222222;
    --color-text-light: #1d5c6d;
    --color-text-inverse: #ffffff;
    --color-border: #e0e0e0;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-dark-teal: #1d5c6d;
    --color-grass-green: #2c563f;
    --color-eggplant: #432f56;
    --color-golden-brown: #664e25;
    --color-card: #f9f9f9;
    --color-icon-bg: #dde7e9;
}


/* Reset and Base Styles */

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

body {
    background-color: var(--color-surface);
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
}


/* Block Level Elements */

header {
    background-color: var(--color-background);
    padding: 1rem 2rem;
    text-align: left;
}

section {
    background-color: var(--color-surface);
    padding: 2rem;
    box-shadow: 0 2px 4px var(--color-shadow);
}

section.cta {
    padding: 2rem;
}

aside {
    max-width: 1200px;
    margin: 2rem auto;
}

footer {
    background-color: var(--color-primary);
    font-size: .9rem;
    color: var(--color-text-inverse);
    text-align: center;
    padding: 1rem;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* Typography */

h1, h2, h3 {
    font-family: 'Merriweather', Georgia, serif;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h2 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

h4 sup {
    font-size: 0.5em;
}

h4, h5, h6 {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text-light);
}

p {
    margin-bottom: .5rem;
}

ol, ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

ol li, ul li {
    margin-bottom: 0.5rem;
}

attr {
    font-size: 0.875rem;
    line-height: .9rem;
}

cite {
    font-style: normal;
}

a:link, a:visited {
    color: var(--color-dark-teal);
    text-decoration: underline;
}

a:hover, a:active {
    text-decoration: none;
}

/* Section bands */
section:nth-child(odd) {
    background-color: var(--color-surface);
}

section:nth-child(even) {
    background-color: var(--color-background);
}

/* Header */
header h1 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

header .logo {
    height: 50px;
}

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

.logo-link:hover {
    text-decoration: none;
    opacity: 0.8;
}


/* Hero & CTA Sections */
section.hero, section.cta {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    width: 100%;
}

section.hero {
        padding: 3rem 2rem 5rem 2rem;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

.hero-content {
    flex: 1;
}

.hero-map {
    flex: 1;
    width: 100%;
}

.hero-map img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}


/* Event Callout */
section.event-callout {
    background-color: #fbfbf7;
    border: 1px solid #e7e2d6;
    margin-top: -4rem;
    margin-left: 2rem;
    margin-right: 2rem;
    padding: 1rem 2rem;
    border-radius: 20px;
    text-align: center;
}

section.event-callout h2 {
    color: var(--color-primary);
    margin-bottom: 0;
}

section.event-callout p {
    margin-bottom: 0;
}

/* 2 Column Class */
.two-column-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.two-column-grid > * {
    flex: 1;
}


/* Card Grids */
.concerns-grid, .action-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.concern-item, .action-item {
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.concern-item {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
}

.action-item {
    background-color: #294737;
    border: 1px solid #3a5e4a;
}

.concern-item:hover, .action-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.concern-item h5, .action-item h5 {
    text-transform: uppercase;
    margin: 0 0 1rem 0;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.action-item h5 {
    color: var(--color-text-inverse);
}

.concern-item p {
    font-family: 'Merriweather', Georgia, serif;
    font-size: .9rem;
}

.action-item p {
    color: #d5e0d8;
    font-size: .9rem;
}

.action-number {
    background-color: #d5e0d8;
    color: #294737;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1rem;
    font-weight: bold;
    line-height: 24px;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-right: 0.5rem;
    vertical-align: top;
    text-align: center;
}

.concern-icon {
    background-color: var(--color-icon-bg);
    color: var(--color-dark-teal);
    width: 24px;
    height: 24px;
    padding: 2px;
    border-radius: 4px;
    margin-right: 0.5rem;
    vertical-align: top;
}


/* Data Center Plans*/
h2.project-power {
    margin: 1rem 0 0;
    line-height: 1;
}

h3.project-name {
    margin: 0;
    font-weight:200;
}

p.project-subtitle {
    margin: 0 0 1rem;
    font-style: italic;
}

.mw-1200 {
    color: var(--color-dark-teal);
}

.mw-900 {
    color: var(--color-grass-green);
}

.mw-600 {
    color: var(--color-eggplant);
}

.mw-200 {
    color: var(--color-golden-brown);
}

.invert {
    color: var(--color-invert);
}


/* Footer */
footer .content-container {
    padding-top: 1rem;
    border-top: 1px solid #3a5e4a;
}

footer a:link,
footer a:visited {
    color: var(--color-invert);
    text-decoration: underline;
}

footer a:hover,
footer a:active {
    text-decoration: none;
}

/* Modal */
.map-image {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.map-image:hover {
    opacity: 0.8;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-content img {
    width: 100%;
    height: auto;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ccc;
}

/* Responsive */
img {
    max-width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
    }

    .hero-content {
        flex: 3;
    }

    .hero-map {
        flex: 2;
    }

    .two-column-grid {
        flex-direction: row;
    }

    .concerns-grid,
    .action-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    section.event-callout {
        margin-left: 0;
        margin-right: 0;
    }
}