/* ========================================
   Babic for Sheriff - Campaign Website
   Color Palette:
   - Primary Navy: #1a365d
   - Accent Red: #b91c1c
   - Gold: #d4a836
   - White: #ffffff
   - Off-white: #f8f9fa
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #b91c1c;
    color: #fff;
}

.btn-primary:hover {
    background-color: #991b1b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #1a365d;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(26, 54, 93, 0.95);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: #1a365d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
}

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

.nav-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d4a836;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-donate {
    background-color: #b91c1c;
    padding: 10px 20px;
    border-radius: 4px;
}

.nav-donate:hover {
    background-color: #991b1b;
}

.nav-donate::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a365d 0%, #2d4a6f 50%, #1a365d 100%);
    position: relative;
    text-align: center;
    padding: 120px 20px 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-image {
    width: 220px;
    height: 220px;
    margin: 0 auto 30px;
    border-radius: 50%;
    border: 5px solid #d4a836;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.hero-name {
    font-size: 3.5rem;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-position {
    font-size: 1.3rem;
    color: #d4a836;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-slogan {
    font-size: 1.5rem;
    color: #fff;
    font-style: italic;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-election {
    margin-bottom: 35px;
}

.election-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: #d4a836;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.election-date-secondary {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.election-countdown {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.election-countdown span {
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Section Base Styles
   ======================================== */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    color: #1a365d;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #d4a836;
    margin: 20px auto 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* ========================================
   About Section
   ======================================== */
.about {
    background-color: #f8f9fa;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #1a365d;
    margin-bottom: 20px;
    margin-top: 40px;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #444;
}

.about-highlight {
    background-color: #1a365d;
    color: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: center;
}

.about-highlight p {
    color: #fff;
    font-size: 1.3rem;
    margin: 0;
}

/* ========================================
   Experience Section
   ======================================== */
.experience {
    background-color: #fff;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.experience-card {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    border-left: 5px solid #1a365d;
    transition: transform 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
}

.experience-icon {
    color: #1a365d;
    margin-bottom: 20px;
}

.experience-card h3 {
    font-size: 1.5rem;
    color: #1a365d;
    margin-bottom: 10px;
}

.experience-years {
    color: #b91c1c;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.experience-list {
    list-style: none;
}

.experience-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px solid #e5e5e5;
}

.experience-list li:last-child {
    border-bottom: none;
}

.experience-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 10px;
    height: 10px;
    background-color: #d4a836;
    border-radius: 50%;
}

/* ========================================
   Leadership Section
   ======================================== */
.leadership {
    background: linear-gradient(135deg, #1a365d 0%, #2d4a6f 100%);
    color: #fff;
}

.leadership .section-title {
    color: #fff;
}

.leadership-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.leadership-item {
    text-align: center;
    padding: 30px;
}

.leadership-item h3 {
    font-size: 1.4rem;
    color: #d4a836;
    margin-bottom: 15px;
}

.leadership-item p {
    font-size: 1.05rem;
    opacity: 0.95;
    line-height: 1.7;
}

/* ========================================
   Faith & Family Section
   ======================================== */
.family {
    background-color: #f8f9fa;
}

.family-content {
    max-width: 900px;
    margin: 0 auto;
}

.family-text p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 20px;
    text-align: center;
}

.scripture-quote {
    background-color: #f8f9fa;
    border-left: 4px solid #d4a836;
    padding: 25px 30px;
    margin: 30px auto;
    max-width: 600px;
    border-radius: 0 8px 8px 0;
}

.scripture-quote p {
    font-size: 1.2rem;
    font-style: italic;
    color: #1a365d;
    margin-bottom: 10px;
    text-align: left;
}

.scripture-quote cite {
    font-size: 1rem;
    color: #666;
    font-style: normal;
    font-weight: 600;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.award-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.award-badge {
    background-color: #1a365d;
    color: #d4a836;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.award-years {
    font-weight: 700;
    font-size: 0.9rem;
}

.award-item h4 {
    font-size: 1.2rem;
    color: #1a365d;
    margin-bottom: 10px;
}

.award-item p {
    margin-bottom: 5px;
    text-align: center;
}

.award-source {
    color: #b91c1c;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ========================================
   Community Section
   ======================================== */
.community {
    background-color: #fff;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.community-item {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid #1a365d;
}

.community-item h4 {
    font-size: 1.2rem;
    color: #1a365d;
    margin-bottom: 10px;
}

.community-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.community-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1rem;
    color: #666;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background-color: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a365d;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a365d;
}

.contact-info {
    padding: 20px 0;
}

.contact-item {
    margin-bottom: 40px;
}

.contact-item h4 {
    font-size: 1.2rem;
    color: #1a365d;
    margin-bottom: 15px;
}

.contact-item a {
    color: #b91c1c;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: #1a365d;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #b91c1c;
    transform: translateY(-3px);
}

.social-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* ========================================
   Donate Section
   ======================================== */
.donate {
    background: linear-gradient(135deg, #1a365d 0%, #2d4a6f 100%);
    color: #fff;
}

.donate .section-title {
    color: #fff;
}

.donate .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.donate-content {
    max-width: 600px;
    margin: 0 auto;
}

.donate-card {
    background-color: #fff;
    color: #333;
    padding: 50px;
    border-radius: 8px;
    text-align: center;
}

.donate-card h3 {
    font-size: 1.5rem;
    color: #1a365d;
    margin-bottom: 20px;
}

.donate-options {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.donate-options address {
    font-style: normal;
    line-height: 1.8;
}

.donate-note {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    margin-top: 20px;
}

.donate-legal {
    margin-top: 30px;
    padding: 25px 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.donate-legal h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #d4a836;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.donate-legal p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ========================================
   Election Reminder Banner
   ======================================== */
.election-banner {
    background: linear-gradient(90deg, #b91c1c 0%, #991b1b 100%);
    color: #fff;
    padding: 18px 0;
    text-align: center;
}

.election-banner p {
    margin: 0;
    font-size: 1.1rem;
}

.election-banner strong {
    color: #fff;
}

.election-banner span {
    font-weight: 700;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: #0f1f33;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    margin-bottom: 30px;
}

.footer-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-slogan {
    font-style: italic;
    opacity: 0.8;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #d4a836;
}

.footer-legal {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer {
    font-weight: 600;
    margin-bottom: 10px;
    color: #d4a836;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 992px) {
    .hero-name {
        font-size: 2.8rem;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #1a365d;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link::after {
        display: none;
    }

    .nav-donate {
        margin-top: 20px;
        text-align: center;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-image {
        width: 180px;
        height: 180px;
    }

    .hero-name {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .hero-position {
        font-size: 1rem;
    }

    .hero-slogan {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        padding: 12px 28px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .experience-card {
        padding: 30px;
    }

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

    .awards-grid {
        grid-template-columns: 1fr;
    }

    .community-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .donate-card {
        padding: 30px 20px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-name {
        font-size: 1.6rem;
    }

    .hero-image {
        width: 150px;
        height: 150px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-text p,
    .family-text p {
        font-size: 1rem;
    }
}
