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

/* Custom Font Definitions */
@font-face {
    font-family: 'TX-02';
    src: url('static/fonts/TX-02-8Q6VXQ1W/TX-02-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'TX-02';
    src: url('static/fonts/TX-02-8Q6VXQ1W/TX-02-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'TX-02';
    src: url('static/fonts/TX-02-8Q6VXQ1W/TX-02-Thin.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

/* Root Variables */
:root {
    --primary-blue: #31316D;
    --primary-red: #EE272B;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #333333;
    --text-dark: #1A1A1A;
    
    /* Typography */
    --font-header: 'futura-pt', 'Futura', sans-serif;
    --font-subheader: 'TX-02', 'Helvetica', Arial, sans-serif;
    --font-body: 'Roboto', 'Helvetica', Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
}

/* Base Typography */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-red);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.main-nav {
    background-color: var(--white);
    border-bottom: 1px solid var(--medium-gray);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav-name {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 0.05em;
}

.nav-position {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--primary-red);
    margin-top: 0.25rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-menu a {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary-blue);
    letter-spacing: 0.1em;
}

.nav-menu a:hover {
    color: var(--primary-red);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    flex-direction: column;
    gap: 4px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-blue);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: var(--spacing-sm);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-xs) 0 var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: var(--spacing-md);
}

.mobile-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.mobile-logo .nav-name {
    color: var(--white);
    font-size: 1.25rem;
}

.mobile-logo .nav-position {
    color: var(--primary-red);
    margin-top: 0.25rem;
}

.mobile-menu-close {
    background: none;
    border: 2px solid var(--white);
    color: var(--white);
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    justify-content: center;
}

.mobile-nav-link {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: block;
}

.mobile-nav-link:hover {
    color: var(--primary-red);
    padding-left: var(--spacing-md);
}

.mobile-menu-footer {
    margin-top: 0;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.mobile-menu-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-family: var(--font-header);
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* Hide mobile navigation on desktop */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Show mobile navigation on mobile */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-logo {
        flex: 1;
    }
    
    .nav-name {
        font-size: 1rem;
    }
    
    .nav-position {
        font-size: 0.75rem;
    }
}

/* Hero Section */
.hero {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: var(--spacing-2xl) 0;
    margin-top: 80px; /* Account for fixed nav */
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hero-layout {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.hero-image {
    flex: 0 0 auto;
    max-width: 400px;
}

.headshot {
    width: 100%;
    height: auto;
    max-width: 350px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.hero-district {
    font-family: var(--font-header);
    font-size: 1.125rem;
    letter-spacing: 0.2em;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.hero-tagline {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-start;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-header);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-red);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* Sections */
section {
    padding: var(--spacing-1xl) 0;
}

/* Home page sections - larger spacing */
.home-page section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-blue);
}

/* About Section */
.section-about {
    background-color: var(--light-gray);
}

/* Portrait Family Image */
.portrait-family {
    width: 100%;
    height: auto;
    max-width: 450px;
    border: 8px solid var(--primary-red);
    display: block;
    margin: 0 auto var(--spacing-lg);
}

/* Sign CTA Section */
.section-sign-cta {
    background-color: var(--primary-red);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-md) 0;
}

.sign-cta-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .sign-cta-content {
        flex-direction: column;
    }
}

.section-sign-cta .cta-title {
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 0.05em;
}

.section-sign-cta .btn-secondary {
    border-width: 2px;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
}

/* Hills I'll Die On Section */
.section-hills {
    background-color: var(--primary-blue);
    color: var(--white);
}

.section-hills .section-title {
    color: var(--white);
    margin-bottom: 0;
}

.hills-intro {
    text-align: center;
    font-size: 1.125rem;
    font-style: italic;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.hills-list {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 0 0 2px #E8E8E8;
    border: 2px dashed transparent;
    position: relative;
}

.hills-list::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 2px dashed #E8E8E8;
    pointer-events: none;
}

.hill-item {
    margin-bottom: var(--spacing-lg);
    text-align: left;
    padding: 0;
}

.hill-item:last-child {
    margin-bottom: 0;
}

.hill-item h3 {
    color: var(--primary-red);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-subheader);
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

.hill-item p {
    color: var(--text-dark);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 1rem;
}

.about-bio {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.lead {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--primary-blue);
}

.credentials {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.credentials li {
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

/* Home page credentials with red checkmarks */
.credentials-home {
    list-style: none;
    text-align: left;
    margin: var(--spacing-lg) 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
}

.credentials-home li {
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    position: relative;
    padding-left: var(--spacing-lg);
    line-height: 1.6;
}

.credentials-home li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-red);
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.2;
}

.about-cta {
    margin-top: var(--spacing-lg);
}

/* Priorities Section */
.priorities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.priority-card {
    background-color: var(--white);
    border: 2px solid var(--primary-blue);
    padding: var(--spacing-lg);
    text-align: left;
}

.priority-card h3 {
    color: var(--primary-red);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-subheader);
}

.priority-card p {
    color: var(--text-dark);
}

/* Vision Section */
.section-vision {
    background-color: var(--primary-blue);
    color: var(--white);
}

.section-vision .section-title {
    color: var(--white);
}

.vision-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.vision-quote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    border-left: 4px solid var(--primary-red);
    text-align: left;
}

/* Support Section */
.support-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.support-message {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.signature {
    font-style: italic;
    margin-bottom: var(--spacing-lg);
}

.signature-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-blue);
}

.support-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.section-support .btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.section-support .btn-primary:hover {
    background-color: transparent;
    color: var(--primary-blue);
}

.section-support .btn-secondary {
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.section-support .btn-secondary:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

/* Footer */
.main-footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
}

.footer-content a {
    color: var(--white);
    text-decoration: underline;
}

.footer-content a:hover {
    color: var(--primary-red);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.25rem; }
    
    .nav-menu {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .hero-layout {
        flex-direction: column-reverse;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-image {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .headshot {
        max-width: 250px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .support-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .priorities-grid {
        grid-template-columns: 1fr;
    }
    
    .hills-list {
        max-width: 100%;
        margin: 0 var(--spacing-sm);
        padding: var(--spacing-md);
    }
    
    .hill-item {
        margin-bottom: var(--spacing-md);
        padding: 0;
    }
    
    .hill-item h3 {
        font-size: 1.125rem;
    }
    
    .hill-item p {
        font-size: 0.95rem;
    }
}

/* Print Styles */
@media print {
    .main-nav,
    .hero-cta,
    .support-cta {
        display: none;
    }
    
    body {
        color: black;
    }
    
    .hero {
        background-color: white;
        color: black;
        border: 1px solid black;
    }
}