/*
Theme Name: Godwin Chan Campaign
Theme URI: https://www.godwinchan.ca
Description: Professional campaign website for Godwin Chan's re-election as Regional Councillor
Version: 1.0.0
Author: Digital Marketing Experts
Author URI: https://digitalmarketingexperts.ca
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: godwin-campaign
Domain Path: /languages
*/

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

:root {
    --primary-green: #1e5f3f;
    --accent-blue: #1e3a8a;
    --accent-orange: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #f3f4f6;
    --border-gray: #e5e7eb;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Navigation */
nav, .navbar {
    background-color: var(--primary-green);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav .container, .navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo, .navbar .logo, .site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

nav ul, .navbar ul, .nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a, .navbar a, .nav-menu a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

nav a:hover, .navbar a:hover, .nav-menu a:hover {
    opacity: 0.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, rgba(30, 95, 63, 0.9) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text .re-elect {
    font-size: 1.5rem;
    color: var(--accent-orange);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: white;
}

.btn-primary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-green);
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Sections */
section, .section {
    padding: 3rem 2rem;
}

section h2, .section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-green);
    text-align: center;
}

section h3, .section h3 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Biography Section */
.biography {
    background-color: #f9fafb;
}

.bio-content p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Endorsements Section */
.endorsements {
    background-color: white;
}

.endorsement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.endorsement-card {
    background: white;
    border-left: 5px solid var(--accent-blue);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.endorsement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.endorsement-author {
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.endorsement-title {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.endorsement-text {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Achievements Section */
.achievements {
    background-color: #f9fafb;
}

.achievement-image-container {
    text-align: center;
    margin: 2rem 0;
}

.achievement-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 500px;
}

/* Campaign Image Section */
.campaign-image-container {
    text-align: center;
    margin-bottom: 3rem;
}

.campaign-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 400px;
}

.image-placeholder {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6b7280;
    font-style: italic;
}

/* Forms Section */
.forms-section {
    background-color: #f9fafb;
}

.form-container {
    max-width: 600px;
    margin: 3rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary-green);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(30, 95, 63, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    margin-top: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

.form-note {
    background-color: #fef3c7;
    border-left: 4px solid var(--accent-orange);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.form-submit, .submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-submit:hover, .submit:hover {
    background-color: #154d2d;
}

.form-submit:disabled, .submit:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.amount-btn {
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: var(--text-dark);
}

.amount-btn:hover,
.amount-btn.selected {
    border-color: var(--primary-green);
    background-color: var(--primary-green);
    color: white;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: none;
}

.alert.show {
    display: block;
}

.alert-success {
    background-color: #d1fae5;
    color: #047857;
    border-left: 4px solid #10b981;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Footer */
footer, .footer {
    background-color: var(--primary-green);
    color: white;
    padding: 2rem;
    text-align: center;
}

footer a, .footer a {
    color: var(--accent-orange);
    text-decoration: none;
}

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

.footer-info {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-bottom: 2rem;
}

.footer-info h4 {
    margin-bottom: 1rem;
    color: var(--accent-orange);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul, .navbar ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    section h2, .section h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .donation-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
}
