/* ============================================
   PLEASE STAY DAN CAMPAIGN - Main Stylesheet
   Color Palette from Dan McLean City Hall image:
   - Deep Navy:    #0a2351
   - Royal Blue:   #133a7c
   - Medium Blue:  #1a4fa0
   - Light Blue:   #93c5fd
   - Accent Blue:  #3b82f6
   ============================================ */
/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #1f2937;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-up-delay {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-up-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-fade-in-up-delay-3 {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }
}

/* === HERO SECTION === */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0a2351 0%, #133a7c 50%, #1a4fa0 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0.1;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 48px 0;
}

@media (min-width: 768px) {
    .hero-inner {
        flex-direction: row;
        gap: 48px;
        padding: 80px 0;
        max-width: 95%;
    }
}

/* Hero Image */
.hero-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-image-wrapper {
        width: 41.666%;
    }
}

.hero-image-frame {
    position: relative;
    width: 256px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border: 4px solid rgba(255,255,255,0.2);
}

@media (min-width: 640px) {
    .hero-image-frame {
        width: 288px;
        height: 384px;
    }
}

@media (min-width: 768px) {
    .hero-image-frame {
        width: 320px;
        height: 420px;
    }
}

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

/* Hero Text */
.hero-text {
    width: 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-text {
        width: 58.333%;
        text-align: left;
    }
}

.hero-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-subtitle {
    margin-top: 16px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #93c5fd;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-cta-wrap {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-cta-wrap {
        justify-content: flex-start;
    }
}

.btn-primary {
    display: inline-block;
    background-color: #ffffff;
    color: #0a2351;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1.125rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background-color: #eff6ff;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

/* === PHONE CTA SECTION === */
.phone-cta {
    background: linear-gradient(135deg, #1e3a5f 0%, #0a2351 100%);
    padding: 32px 0;
    text-align: center;
}

.phone-cta-text {
    color: #93c5fd;
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.phone-cta-number {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.phone-cta-number:hover {
    color: #93c5fd;
}

.phone-cta-number svg {
    width: 28px;
    height: 28px;
}

/* === LETTER SECTION === */
.letter-section {
    background: linear-gradient(180deg, #0a2351 0%, #133a7c 50%, #1a4fa0 100%);
    padding: 64px 0;
}

.letter-card {
    max-width: 768px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    padding: 24px;
}

@media (min-width: 640px) {
    .letter-card {
        padding: 40px;
    }
}

.letter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.letter-header svg {
    width: 32px;
    height: 32px;
    color: #133a7c;
    flex-shrink: 0;
}

.letter-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a2351;
}

@media (min-width: 640px) {
    .letter-header h2 {
        font-size: 1.875rem;
    }
}

.letter-divider {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0a2351, #1a4fa0, transparent);
    border: none;
    margin-bottom: 24px;
    border-radius: 2px;
}

.letter-body {
    color: #374151;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.letter-body p {
    margin-bottom: 16px;
}

.letter-body .salutation {
    margin-bottom: 16px;
}

.letter-body .closing {
    font-weight: 600;
}

.letter-body .sign-off {
    font-style: italic;
    color: #133a7c;
}

/* Bullet list in letter */
.letter-body ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.letter-body ul li {
    padding: 8px 0 8px 28px;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
}

.letter-body ul li:last-child {
    border-bottom: none;
}

.letter-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background-color: #133a7c;
    border-radius: 50%;
}

/* === FORM SECTION === */
.form-section {
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
    padding: 64px 0;
}

.form-section-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-section-header svg {
    width: 40px;
    height: 40px;
    color: #133a7c;
    margin: 0 auto 12px;
}

.form-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a2351;
}

@media (min-width: 640px) {
    .form-section-header h2 {
        font-size: 1.875rem;
    }
}

.form-section-header p {
    margin-top: 8px;
    color: #6b7280;
    font-size: 1rem;
}

/* The form card */
.form-card {
    max-width: 640px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    padding: 24px;
}

@media (min-width: 640px) {
    .form-card {
        padding: 32px;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .form-row-2col {
        grid-template-columns: 1fr 1fr;
    }
}

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

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.form-label .required {
    color: #ef4444;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    color: #1f2937;
    background-color: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    border-color: #133a7c;
    box-shadow: 0 0 0 3px rgba(19,58,124,0.15);
}

.form-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px;
    color: #b91c1c;
    font-size: 0.875rem;
    margin-top: 16px;
}

.btn-submit {
    width: 100%;
    background-color: #133a7c;
    color: #ffffff;
    font-weight: 700;
    padding: 16px;
    border-radius: 8px;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
    margin-top: 24px;
    font-family: inherit;
}

.btn-submit:hover {
    background-color: #0a2351;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

.form-footer-note {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 16px;
}

/* Success State */
.success-card {
    max-width: 640px;
    margin: 0 auto;
    background-color: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.success-card svg {
    width: 64px;
    height: 64px;
    color: #22c55e;
    margin: 0 auto 16px;
}

.success-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #166534;
    margin-bottom: 8px;
}

.success-card p {
    color: #15803d;
    margin-bottom: 24px;
}

.btn-again {
    display: inline-block;
    background-color: #133a7c;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

.btn-again:hover {
    background-color: #0a2351;
}

/* === MAUTIC EMBED PLACEHOLDER === */
.mautic-embed-section {
    background-color: #f0f4ff;
    border: 2px dashed #133a7c;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    max-width: 640px;
    margin: 32px auto 0;
}

.mautic-embed-section h4 {
    color: #0a2351;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.mautic-embed-section p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* === FOOTER === */
.site-footer {
    background-color: #0a2351;
    color: #ffffff;
    padding: 32px 0;
    text-align: center;
}

.site-footer .copyright {
    color: #93c5fd;
    font-size: 0.875rem;
}

.site-footer .tagline {
    color: rgba(147,197,253,0.5);
    font-size: 0.75rem;
    margin-top: 8px;
}

/* === UTILITY === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

.hidden {
    display: none !important;
}

ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.pad-all-sides {
    margin: 60px auto;
}
