/* Custom CSS for the Campaign Website */

:root {
    --primary-color: #FBB71D;
    --secondary-color: #EA2629;
    --solid-red-bg: #C71F23;
    --accent-color: #F8DCA8; /* Gold/Yellow Accent */
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --font-family: 'Inter', sans-serif;
    --font-family-oswald: 'Oswald', sans-serif; /* Use Oswald for most headings */
    --font-family-anton: 'Anton', sans-serif;    /* Use Anton specifically for the largest text */
    --navbar-height: 85px;
    --social-zoom-scale: 2;
}

body {
    font-family: var(--font-family);
    color: var(--dark-text);
}

/* --- Navbar Styling --- */
.navbar {
    background-color: var(--secondary-color) !important;
    border-bottom: 5px solid var(--primary-color);
}

.navbar-brand, .nav-link {
    color: #fff !important;
    font-weight: 700;
    font-family: var(--font-family-oswald);
    font-size: 1.75rem;
    white-space: normal;
    line-height: 1.2;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link.active {
    /* Use your primary color for a clear highlight */
    color: var(--primary-color) !important;

    /* Add an underline or bolder font for extra visual distinction */
    text-decoration: underline;
    text-underline-offset: 4px;
}

.navbar .nav-item .btn-warning {
    color: var(--dark-text) !important;
    background-color: var(--primary-color) !important; /* Force yellow background */
    opacity: 1 !important; /* Force full visibility */
    visibility: visible !important; /* Force visible display */
    display: inline-block !important; /* Ensure proper box model */
    font-weight: bold;
    padding: 0.5rem 1rem; /* Adjust padding to look more like a button */
    border-radius: 0.375rem; /* Match Bootstrap default rounding */
    transition: background-color 0.2s;
}
.navbar .nav-item .btn-warning:hover {
    background-color: #e5a400; /* Slightly darker yellow on hover */
}

/* Custom styling for the MOGOP logo in the header */
.mogop-nav-logo {
    height: 60px;         /* Keeps the navbar at a standard, clean height */
    width: auto;          /* Maintains the logo's original aspect ratio */
    object-fit: contain;  /* Prevents any image distortion */
    /* Option #1: Invert to White */
    filter: brightness(0) invert(1); /* Inverts dark colors to white while preserving transparency */
    /* Option #2: Light Background Badge */
    /*background-color: #ffffff; /* Creates the white background */
    /*padding: 4px 8px;          /* Adds padding around the logo borders */
    /*border-radius: 4px;        /* Softens the edges into a neat badge */
    /* Option #3: Add White Silhouette Drop-Shadow */
        /* Generates a crisp, bright outline around the logo artwork */
    /*filter: drop-shadow(1px 1px 0px #ffffff) drop-shadow(-1px -1px 0px #ffffff);*/
}

/* Optional: Minor adjustments if the mobile text crowds the screen */
@media (max-width: 576px) {
    .mogop-nav-logo {
        height: 56px;     /* Slightly smaller on compact screens */
    }
}

section[id] {
    scroll-margin-top: calc(var(--navbar-height) + 1rem);
}

.strong-conservative-overlay {
    /* --- MOBILE DEFAULT (Standard Stacked Layout) --- */
    position: relative; /* Keeps it in the flow so it sits ABOVE the logo */
    width: 98%;
    max-width: 100%;       /* Full width for centering */
    z-index: 10;

    /* Typography */
    font-family: var(--font-family-anton);
    color: var(--primary-color);
    text-transform: uppercase;
    line-height: 0.9;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.1);

    /* Mobile Sizing & Spacing */
    font-size: 4rem; /* Readable size for mobile */
    line-height: 0.95;
    margin: 1rem auto 1rem auto;

    box-sizing: border-box;
    padding: 0 5px;
}

section#meet-candidate {
    background-color: var(--primary-color);
}

.color-secondary {
    color: var(--secondary-color);
    --bs-text-opacity: 1;
}

/* --- Hero Section Styling --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://placehold.co/1920x800/212529/ffffff?text=HERO+IMAGE+HERE') center center no-repeat;
    background-size: cover;
    color: white;
    padding: 10rem 0;
}

h1, a {
    word-wrap: break-word;
}

.h1, .h2, .h3, .h4, .h5, .h6 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.h1 {
    font-size: 4.5rem;
    font-weight: 700;
}

.h2 {
    font-size: 4rem;
    font-weight: 650;
}

.h3 {
    font-size: 3.5rem;
    font-weight: 600;
}

.h4 {
    font-size: 2rem;
    font-weight: 550;
}

.h5 {
    font-size: 1.5rem;
    font-weight: 450;
}

.h6 {
    font-size: 1.25rem;
    font-weight: 400;
}

/* --- Primary CTA Button --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #A31F34; /* Darker primary */
    border-color: #A31F34;
}

.bold {
    font-weight:bold
}
.bolder {
    font-weight:bolder
}

.bg-hero-wrapper {
    background-color: #fff;
    color: var(--secondary-color);
    min-height: 400px; /* Keep minimum height for visual impact */
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
}

.jumbosize {
    font-family: var(--font-family-oswald);
    font-size: 7rem !important;
    text-transform: uppercase;
    color: var(--primary-color);
}

.logo-hero {
    /* Ensure the logo is never wider than its container */
    max-width: 100%;
    /* Set max height to prevent it from stretching too tall */
    max-height: 400px;
    height: auto;
}

.hero-text-content {
    /* Add extra padding on the right to separate text from logo on large screens */
    padding-right: 0.2rem;
}

.candidate-portrait {
    float: left;
    margin-right: 2rem; /* Space between the image and the text */
    margin-bottom: 1.5rem;
}

@media (max-width: 375px) {
    .strong-conservative-overlay {
        font-size: 3rem;
    }
}

@media (max-width: 767.98px) {
    .candidate-portrait {
        float: none; /* Remove float on mobile */
        display: block;
        margin: 0 auto 1.5rem auto; /* Center it */
        max-width: 80%;
    }
}

@media (max-width: 991px) {
    /* Tablet and Mobile (Md and Down) */
    .bg-hero-wrapper {
        min-height: auto; /* Allow the height to collapse naturally when stacking */
        }
        .hero-text-content {
            text-align: center !important;
            padding-right: 1rem; /* Restore normal padding */
            padding-bottom: 2rem; /* Add space between text and logo when stacked */
        }
        .hero-bottom-row .d-flex {
            /* On small screens, stack the date and button */
            flex-direction: column;
        }
        .hero-bottom-row p {
            /* Add margin when stacked vertically */
            margin-bottom: 0.5rem !important;
            margin-right: 0 !important; /* Remove desktop margin */
        }
}

@media (min-width: 992px) {
    .hero-logo-content {
        display: flex;
        align-items: center;
        justify-content: flex-end; /* Push logo to the far right */
        height: 100%;
    }
    .strong-conservative-overlay {
        position: absolute; /* Take out of flow to overlap */

        /* Reset mobile spacing */
        margin-bottom: 0;
        margin-top: 0;
        width: auto;

        /* Desktop Sizing */
        font-size: 8rem;

        /* Positioning logic for overlapping */
        top: 50%;
        transform: translateY(-60%);
        left: 15px;

        pointer-events: none; /* Allow clicking through to logo if needed */
    }
}

@media (min-width: 1200px) {
    /* Large Desktop - Make it huge so it overlaps the logo */
    .strong-conservative-overlay {
        font-size: 9rem;
        left: 0;
    }
}

/* --- Footer Styling --- */
.social-links {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icons */
    margin-top: 10px;
    justify-content: center;
}
.social-links a {
    text-decoration: none;
}
.social-links svg {
    transition: transform 0.2s;
}
.social-links a:hover svg {
    transform: scale(var(--social-zoom-scale)); /* Slight zoom on hover */
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    vertical-align: middle;
}
.footer-social a:hover svg {
    transform: scale(var(--social-zoom-scale));
    transition: transform 0.2s;
}

.tooltip-container {
    position: relative;
    cursor: pointer;
}
.tooltip-container::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    font-size: 0.875rem;
}
.tooltip-container:hover::after {
    opacity: 1;
    visibility: visible;
}

footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 2rem 0;
    border-top: 5px solid var(--primary-color);
}

/* --- Positions Page --- */
.positions-hero {
    background: linear-gradient(135deg, #fff7e2 0%, #ffffff 55%, #fff2cc 100%);
    border-bottom: 4px solid var(--primary-color);
}

.positions-kicker {
    font-family: var(--font-family-oswald);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1rem;
}

.positions-title,
.positions-section .h3,
.positions-values .h3 {
    font-family: var(--font-family-oswald);
    text-shadow: none;
}

.positions-lead {
    font-size: 1.15rem;
    max-width: 720px;
}

.positions-values {
    background-color: #ffffff;
}

.positions-family-img {
    width: 100%;
    object-fit: cover;
    border: 6px solid #fff;
}

.positions-section {
    background-color: var(--light-bg);
}

.positions-section-intro {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.positions-accordion {
    max-width: 950px;
    margin: 0 auto;
}

.positions-card {
    border: none;
    border-radius: 1rem !important;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.positions-button {
    background: #fff !important;
    color: var(--dark-text) !important;
    padding: 1.35rem 1.5rem;
    box-shadow: none !important;
    border: none;
}

.positions-button:not(.collapsed) {
    background: linear-gradient(90deg, rgba(251,183,29,0.16) 0%, rgba(255,255,255,1) 100%) !important;
}

.positions-button:focus {
    box-shadow: none;
    border: none;
}

.positions-button::after {
    background-size: 1.1rem;
}

.positions-card-title {
    display: block;
    font-family: var(--font-family-oswald);
    font-size: 1.6rem;
    line-height: 1.15;
    color: var(--secondary-color);
}

.positions-card-summary {
    margin-top: 0.35rem;
    font-size: 0.98rem;
    color: #555;
    font-family: var(--font-family);
}

.positions-card-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    font-size: 1.03rem;
    line-height: 1.7;
}

.positions-card-body p:last-child {
    margin-bottom: 0;
}

/* --- Campaign Red Button --- */
.btn-campaign-red {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease-in-out;
}

.btn-campaign-red:hover {
    background-color: var(--solid-red-bg);
    border-color: var(--solid-red-bg);
    color: #fff;
    transform: translateY(-2px); /* Slight lift effect on hover */
}

.btn-outline-dark {
    font-weight: 700;
    text-transform: uppercase; /* Matches the other button */
    letter-spacing: 0.5px;
    border-width: 2px; /* Thicker border looks more substantial */
    transition: all 0.2s ease-in-out;
}

.btn-outline-dark:hover {
    transform: translateY(-2px); /* Matches the lift effect */
}

/* --- Accessibility Focus States --- */
.btn-campaign-red:focus-visible {
    outline: none; /* Removes the ugly default browser outline */
    /* Creates a soft red glow ring around the button */
    box-shadow: 0 0 0 0.25rem rgba(234, 38, 41, 0.5) !important;
}

.btn-outline-dark:focus-visible {
    outline: none;
    /* Creates a soft dark glow ring around the button */
    box-shadow: 0 0 0 0.25rem rgba(33, 37, 41, 0.5) !important;
}

@media (max-width: 767.98px) {
    .positions-card-title {
        font-size: 1.3rem;
    }

    .positions-button {
        padding: 1.1rem 1rem;
    }

    .positions-card-body {
        padding: 0 1rem 1.25rem 1rem;
    }

    .positions-lead {
        font-size: 1.05rem;
    }
}

/* --- Contact Page --- */
.contact-page-hero {
    background: linear-gradient(135deg, #fff7e2 0%, #ffffff 55%, #fff2cc 100%);
    border-bottom: 4px solid var(--primary-color);
}

.contact-page-section {
    background-color: var(--light-bg);
}

/* --- Candidate Reply Speech Bubble --- */
.candidate-reply-bubble {
    position: relative;
    background-color: #ffffff;
    border: 2px solid var(--primary-color);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Create the speech bubble tail pointing up */
.candidate-reply-bubble::after {
    content: '';
    position: absolute;
    top: -12px; /* Pulls the triangle up outside the box */
    left: 40px; /* Positions it along the top edge */
    border-width: 0 12px 12px 12px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
    z-index: 2;
}

/* Create the border for the tail using a slightly larger triangle behind it */
.candidate-reply-bubble::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 38px;
    border-width: 0 14px 14px 14px;
    border-style: solid;
    border-color: transparent transparent var(--primary-color) transparent;
    z-index: 1;
}

/* Styling for the small header inside the bubble */
.candidate-reply-bubble .reply-kicker {
    font-family: var(--font-family-oswald);
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* --- Official Letterhead Styling --- */
.endorsement-letter-box {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-top: 4px solid var(--secondary-color);
    border-radius: 4px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    position: relative;
    margin-top: 1rem;
}

.endorsement-letter-date {
    text-align: right;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-family);
}

.endorsement-letter-salutation {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.endorsement-letter-signature {
    margin-top: 2rem;
    font-weight: 700;
    color: var(--dark-text);
}

/* --- Signature Realism Formatting --- */
.endorsement-signature-img {
    max-height: 80px;
    width: auto;
    display: block;
    margin-top: -20px;    /* Pulls the signature up toward "Sincerely," */
    margin-bottom: -33px; /* Pulls the printed name up into the bottom loops of the signature */
    position: relative;
    z-index: 2;           /* Ensures the ink sits on top of the text if they overlap */
    mix-blend-mode: multiply; /* Strips out any white background on the image to make it look like real ink */
}

/* Adjust padding for mobile devices */
@media (max-width: 767.98px) {
    .endorsement-letter-box {
        padding: 1.5rem;
    }
}
