.font-header-primary {
    font-family: 'Montserrat', sans-serif;
}

.font-header-secondary {
    font-family: 'Crimson Text', serif;
}

.font-body {
    font-family: 'Open Sans', sans-serif;
}

.bg-slate-blue {
    background-color: #708090;
}

.text-slate-blue {
    color: #708090;
}

.border-slate-blue {
    border-color: #708090;
}

.bg-falu-red {
    background-color: #801818;
}

.text-falu-red {
    color: #801818;
}

.border-falu-red {
    border-color: #801818;
}

.bg-limestone-light {
    background-color: #FAF9F6;
}

.text-slate-deep {
    color: #2D3748;
}

/* Brand Colors */
.text-autumn-maple {
    color: #C19A6B;
}

.bg-autumn-maple {
    background-color: #C19A6B;
}

.text-liberty-patina {
    color: #A3C1AD;
}

.bg-liberty-patina {
    background-color: #A3C1AD;
}

.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

section {
    scroll-margin-top: 6rem;
}

/* Global Text Selection */
::selection {
    background-color: #801818;
    /* Falu Red */
    color: #ffffff;
}

::-moz-selection {
    background-color: #801818;
    /* Falu Red */
    color: #ffffff;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: #FAF9F6;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.3s ease;
    color: #2D3748;
}

.form-input:focus {
    border-color: #708090;
    background: white;
    box-shadow: 0 4px 15px rgba(112, 128, 144, 0.08);
}

.form-input::placeholder {
    color: #9CA3AF;
    opacity: 1;
}

/* Make text selection visible in Building Together form inputs */
.form-input::selection {
    background: rgba(112, 128, 144, 0.3) !important;
    color: #2D3748 !important;
}

.form-input::-moz-selection {
    background: rgba(112, 128, 144, 0.3) !important;
    color: #2D3748 !important;
}

/* Newsletter form input on dark background - ensure white text is always visible */
.form-input.text-white,
.form-input.text-white:focus,
.form-input.text-white:active,
.form-input.text-white:valid {
    color: white !important;
}

/* Keep dark background for newsletter input when focused */
.form-input.text-white:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1) !important;
}

.form-input.text-white::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Make text selection visible in newsletter input */
.form-input.text-white::selection {
    background: rgba(128, 18, 24, 0.8) !important;
    color: white !important;
}

.form-input.text-white::-moz-selection {
    background: rgba(128, 18, 24, 0.8) !important;
    color: white !important;
}

.form-input.text-white:-webkit-autofill,
.form-input.text-white:-webkit-autofill:hover,
.form-input.text-white:-webkit-autofill:focus {
    -webkit-text-fill-color: white !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.1) inset !important;
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 99;
}

/* 4-Pillar Logo Mark - Straight, Thinner, Squared Pillars */
.pillar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.pillar-container {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.pillar-bar {
    width: 10px;
    height: 60px;
    border-radius: 0;
    transform: none;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
    font-weight: 700;
}

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

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

/* Hide reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    display: none !important;
}

.hero-card {
    background-image: linear-gradient(to bottom,
            rgba(250, 249, 246, 0.2),
            rgba(250, 249, 246, 0.4),
            rgba(250, 249, 246, 0.8)),
        url('../img/hero-winter.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

@media print {

    nav,
    .grain-overlay,
    button,
    form,
    footer .pillar-logo {
        display: none !important;
    }

    body {
        background-color: white !important;
        color: black !important;
    }

    section {
        page-break-inside: avoid;
        border: none !important;
    }
}

/* Button Hover Effects */
#newsletter-submit:hover {
    background-color: #801818;
    /* falu-red */
    color: #ffffff;
}

.hero-connect-btn:hover {
    color: #801818;
    /* falu-red */
}