/* ============================================================
   CINX Partners Site — Main Stylesheet
   Based on the original partners.cinx.com design
   ============================================================ */

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

html, body {
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    font-weight: 400;
}

a {
    color: #6a6a6a;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    line-height: 1.2;
}

h1 { font-size: 30px; }
h2 { font-size: 24px; }

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

/* ============================================================
   FIXED NAVIGATION BAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.navbar-inner {
    max-width: 1000px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.navbar-brand img {
    display: block;
    height: 30px;
    width: auto;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-links a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.navbar-links a:hover {
    color: #111;
    text-decoration: none;
}

.navbar-links a img {
    height: auto;
    max-height: 22px;
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    height: 2px;
    background-color: #555;
    border-radius: 2px;
    transition: background-color 0.2s;
}

.nav-hamburger:hover span {
    background-color: #111;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page-wrapper {
    margin-top: 50px; /* offset for fixed navbar */
    background-color: #ffffff;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
}

/* ============================================================
   PARTNER SECTIONS
   ============================================================ */
.partners-section {
    background-color: #ffffff;
    padding: 20px 0 30px;
}

.partners-section.section-alt {
    background-color: #ffffff;
}

.section-banner-text {
    background-color: #1b5cc9;
    color: #ffffff;
    padding: 24px 30px;
    line-height: 1.5;
}

.section-banner-text h2 {
    margin: 0 0 12px;
}

.section-banner-text p {
    font-weight: 400;
    margin: 0;
}

.section-banner-text p + p {
    margin-top: 10px;
}

.section-banner-text a {
    color: #ffffff;
    text-decoration: none;
}

.section-banner-text a:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* Section heading */
.section-header {
    padding: 8px 30px 12px;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 16px;
}

.section-header h1 {
    font-size: 34px;
    color: #333;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* General info text block */
.general-info {
    padding: 20px 30px;
    background: #f8f9fa;
    border-left: 4px solid #2c5282;
    margin: 20px 30px 0;
    font-size: 15px;
    line-height: 1.7;
}

.general-info p + p {
    margin-top: 10px;
}

/* ============================================================
   PARTNERS GRID
   ============================================================ */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background-color: transparent;
    border: 0;
    margin: 0 0 0 0;
}

.partner-card {
    background-color: #ffffff;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background-color 0.15s;
}

.partner-card:hover {
    background-color: #fafcff;
}

/* Logo area */
.partner-logo {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.partner-logo img {
    max-height: 90px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-logo a {
    display: inline-flex;
    align-items: center;
}

.logo-on-blue {
    background-color: #0063a3;
    border-radius: 4px;
    padding: 10px 12px;
}

/* Description */
.partner-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    flex: 1;
}

.partner-desc a {
    color: #2c5282;
    font-weight: 600;
}

/* Contact button */
.partner-contact {
    margin-top: auto;
    padding-top: 8px;
}

.partner-contact a {
    display: inline-block;
    text-decoration: none;
}

.contact-btn {
    max-height: 50px;
    width: auto;
    height: auto;
    transition: opacity 0.2s;
}

.contact-btn:hover {
    opacity: 0.85;
}

/* ============================================================
   CONTACT SECTION (CTA → auth.cinx.com/request)
   ============================================================ */
.contact-section {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    padding: 50px 30px;
    text-align: center;
    color: #ffffff;
}

.contact-inner {
    max-width: 600px;
    margin: 0 auto;
}

.contact-inner h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.contact-inner > p {
    font-size: 16px;
    color: #bee3f8;
    margin-bottom: 28px;
}

.contact-cta-btn {
    display: inline-block;
    background-color: #ffffff;
    color: #1a365d;
    font-weight: 700;
    font-size: 17px;
    padding: 14px 36px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    letter-spacing: 0.3px;
}

.contact-cta-btn:hover {
    background-color: #ebf8ff;
    color: #1a365d;
    text-decoration: none;
}

.contact-sub {
    margin-top: 20px;
    font-size: 14px;
    color: #bee3f8;
}

.contact-sub a {
    color: #ffffff;
    text-decoration: underline;
}

.contact-sub a:hover {
    color: #ebf8ff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 20px 16px;
    font-size: 13px;
}

.footer-inner p {
    margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
    .page-wrapper {
        max-width: 100%;
    }

    /* Hamburger visible, links collapse into dropdown */
    .nav-hamburger {
        display: flex;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 50px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #ffffff;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.08);
        padding: 8px 0;
        gap: 0;
    }

    .navbar-links.nav-open {
        display: flex;
    }

    .navbar-links a {
        padding: 12px 20px;
        font-size: 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar-links a:last-child {
        border-bottom: none;
    }

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

    .section-header {
        padding: 14px 16px 12px;
    }

    .section-header h1 {
        font-size: 22px;
    }

    .section-banner-text {
        padding: 18px 16px;
    }

    .general-info {
        margin: 16px 12px 0;
        padding: 14px 16px;
    }

    .partner-card {
        padding: 18px 16px;
    }

    .contact-section {
        padding: 36px 16px;
    }

    .contact-inner h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .contact-cta-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}
