:root {
    /* Brand Colors */
    --primary-red: #1466ff;
    --primary-red-hover: #15325e;
    --primary-red-light: #ff4d4d;

    /* Text Colors */
    --text-dark: #111111;
    --text-light: #666666;
    --text-muted: #999999;

    /* Backgrounds & Borders */
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-dark: #111111;
    --border-color: #eaeaea;
    --border-hover: #cccccc;
    --error-bg: #fff5f5;

    /* Shadows & Transitions */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.03);
    --transition-base: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* --- LAYOUT: HEADER & FOOTER --- */
.header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

/* Logo Image Styling */
.navbar__logo {
    display: flex;
    align-items: center;
}

.navbar__logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.footer-cta__title span {
    color: var(--primary-red);
}

.navbar__links {
    display: flex;
    gap: 2rem;
}

.navbar__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color var(--transition-base);
}

.navbar__link:hover {
    color: var(--text-dark);
}

.main-content {
    flex: 1;
    width: 100%;
}

/* --- SHARED BUTTONS --- */
.btn {
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 16px;
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: none;
}

.btn-primary:hover {
    background-color: #f0f0f0;
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border: 1px solid #333333;
}

.btn-secondary:hover {
    border-color: var(--bg-white);
}

/* --- FOOTER SECTIONS --- */
.footer-cta {
    background-color: var(--bg-dark);
    color: var(--bg-white);
    padding: 4rem 2rem;
}

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

.footer-cta__title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.footer-cta__buttons {
    display: flex;
    gap: 1rem;
}

.footer-directory {
    background-color: var(--bg-white);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-directory-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand__desc {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 250px;
}

.footer-col__title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-col__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col__link {
    font-size: 0.875rem;
    color: var(--text-light);
    transition: color var(--transition-base);
}

.footer-col__link:hover {
    color: var(--text-dark);
}

/* --- FOOTER BOTTOM --- */
.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    /* Proper padding prevents it from touching screen edges */
    padding: 2rem 1rem 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom__copy {
    color: var(--text-light);
}

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

/* --- SHARED TYPOGRAPHY --- */
.eyebrow-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.page-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* --- SHARED COMPONENT: FINDER CARDS --- */
.finders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.finder-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 2rem;
    color: var(--text-dark);
    transition: var(--transition-base);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.finder-card:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.finder-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    transition: color var(--transition-base);
}

.finder-card:hover .finder-title {
    color: var(--primary-red);
}

.finder-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.finder-action {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-red);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    margin-top: auto;
}

.finder-card:hover .finder-action {
    opacity: 1;
    transform: translateX(0);
}

/* --- SHARED COMPONENT: FINDER TOOL/FORM --- */
.finder-box {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 4px;
    transition: opacity var(--transition-base);
    position: relative;
}

.finder-box.is-loading {
    opacity: 0.4;
    pointer-events: none;
}

.finder-box__title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.finder-inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
}

.input-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.finder-select {
    width: 100%;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    font-family: inherit;
    appearance: none;
    cursor: pointer;
    transition: var(--transition-base);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.finder-select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.finder-select:hover:not(:disabled) {
    border-color: var(--border-hover);
}

.finder-select:focus {
    outline: none;
    border-color: var(--text-dark);
    background-color: var(--bg-white);
}

.finder-select.error-border {
    border-color: var(--primary-red) !important;
    background-color: var(--error-bg);
}

.finder-submit-btn {
    background-color: var(--primary-red);
    color: var(--bg-white);
    border: none;
    padding: 1.25rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    width: 100%;
    transition: background-color var(--transition-base);
}

.finder-submit-btn:hover {
    background-color: var(--primary-red-hover);
}

/* --- COMMON RESPONSIVE --- */
@media (max-width: 900px) {
    .footer-directory-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .finders-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-cta-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-directory-container {
        grid-template-columns: 1fr;
    }
    .footer-brand {
        grid-column: span 1;
    }
    .finder-inputs-grid {
        grid-template-columns: 1fr;
    }

    /* Footer Bottom Mobile Styling */
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 2rem;
    }
    .footer-bottom__links {
        justify-content: center;
    }
}
