/* ===========================
   KEEGAN MOBLEY & ASSOCIATES
   Professional Political Polling
   =========================== */

/* === CSS VARIABLES === */
:root {
    --navy: #003366;
    --grey: #4A4A4A;
    --white: #FFFFFF;
    --light-grey: #F5F5F5;
    --red: #DC143C;
    --border-grey: #CCCCCC;
    
    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --transition: all 0.3s ease;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--grey);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--navy);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

a {
    color: var(--red);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* === BUTTONS === */
.btn-primary,
.btn-secondary,
.btn-hire {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: #B01030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

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

.btn-hire {
    background: var(--red);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

/* === NAVIGATION === */
.main-nav {
    background: var(--navy);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.logo a {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn-hire) {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn-hire):hover {
    color: var(--light-grey);
}

.nav-links a:not(.btn-hire)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-hire):hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.95) 0%, rgba(0, 51, 102, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 3rem 2rem;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    color: var(--light-grey);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 500"><path fill="none" stroke="white" stroke-width="1" d="M100,50 L300,50 L350,200 L300,450 L100,450 L50,200 Z M150,100 L250,100 M150,200 L250,200 M150,300 L250,300 M150,400 L250,400"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 400px;
}

/* === INTEL FEED === */
.intel-feed {
    padding: 5rem 0;
    background: var(--white);
}

.intel-feed h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.poll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* === POLL CARDS === */
.poll-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.poll-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.poll-card-image {
    width: 100%;
    height: 200px;
    background: var(--light-grey);
    position: relative;
    overflow: hidden;
}

.poll-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poll-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.poll-tag.gop {
    background: #E53E3E;
    color: white;
}

.poll-tag.dem {
    background: #3182CE;
    color: white;
}

.poll-tag.general {
    background: var(--grey);
    color: white;
}

.poll-card-content {
    padding: 1.5rem;
}

.poll-result {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.poll-race {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--grey);
    margin-bottom: 0.5rem;
}

.poll-date {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 1rem;
}

.poll-summary {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--grey);
    margin-bottom: 1rem;
}

.view-all {
    text-align: center;
}

/* === PARTNERSHIP SECTION === */
.partnership {
    padding: 5rem 0;
    background: var(--light-grey);
}

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

.partner-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.partner-region {
    color: var(--red);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.partner-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.partner-card p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.partner-name {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--grey);
}

.partnership-tagline {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--navy);
    padding: 2rem 0;
}

/* === FOOTER === */
.main-footer {
    background: var(--navy);
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--light-grey);
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--light-grey);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--white);
    transition: var(--transition);
}

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

/* === POLL PAGE === */
.poll-header {
    background: var(--light-grey);
    padding: 3rem 0 2rem;
}

.poll-header h1 {
    margin-bottom: 1rem;
}

.poll-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--grey);
}

.poll-meta span {
    font-weight: 600;
}

.poll-content {
    padding: 3rem 0;
}

.poll-content .container {
    max-width: 800px;
}

.poll-summary-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.poll-chart {
    margin: 2rem 0;
    text-align: center;
}

.poll-chart img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 0 auto;
}

.poll-chart-caption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--grey);
    font-style: italic;
}

/* === LEAD GATE === */
.lead-gate {
    background: var(--light-grey);
    border: 2px solid var(--border-grey);
    border-radius: 8px;
    padding: 3rem 2rem;
    margin: 3rem 0;
    text-align: center;
    position: relative;
}

.lead-gate h3 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.lead-gate p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.lead-gate-blur {
    position: relative;
    padding: 2rem;
    margin: 2rem 0;
    background: white;
    border-radius: 4px;
}

.lead-gate-blur::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(to bottom, 
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.9) 50%,
        rgba(255,255,255,1) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}

.lead-gate-blur-content {
    filter: blur(8px);
    opacity: 0.5;
    user-select: none;
    pointer-events: none;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    max-width: 500px;
    width: 100%;
    border-radius: 8px;
    padding: 2.5rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--grey);
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
}

.modal-close:hover {
    color: var(--navy);
}

.modal h3 {
    margin-bottom: 1rem;
}

.modal p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-grey);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-disclaimer {
    font-size: 0.875rem;
    color: var(--grey);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.success-message {
    background: #D4EDDA;
    border: 1px solid #C3E6CB;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* === PAGE SECTIONS === */
.page-header {
    background: var(--light-grey);
    padding: 4rem 0 2rem;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--grey);
    max-width: 700px;
    margin: 0 auto;
}

.content-section {
    padding: 4rem 0;
}

.content-section .container {
    max-width: 800px;
}

.content-section h2 {
    margin-top: 3rem;
}

.content-section h3 {
    margin-top: 2rem;
    color: var(--navy);
}

.content-section ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

/* === FILTERS === */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-grey);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .poll-grid {
        grid-template-columns: 1fr;
    }
    
    .partnership-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .poll-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .intel-feed,
    .partnership {
        padding: 3rem 0;
    }
    
    .lead-gate {
        padding: 2rem 1rem;
    }
}
