/* =========================================================
   1. VARIABLES
========================================================= */

:root {
    --navy: #082d5e;
    --navy-dark: #03244f;
    --gold: #c9a95e;
    --text: #17345a;
    --muted: #66758a;
    --soft: #f3f7fc;
    --white: #ffffff;
}


/* =========================================================
   2. RESET / GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: 104px;

    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);

    line-height: 1.7;
}


/* =========================================================
   3. TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
h5,
.navbar-brand {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--navy);
    font-weight: 700;
}

h1 {
    font-size: clamp(2.3rem, 5vw, 4.7rem);
    line-height: 1.12;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 1.4rem;
}

.lead-small {
    max-width: 620px;
    color: var(--muted);
}


/* =========================================================
   4. GLOBAL SECTIONS
========================================================= */

.section-padding {
    padding: 90px 0;
}

.soft-bg {
    background: var(--soft);
}


/* Section label */

.section-label {
    display: inline-block;

    margin-bottom: 1rem;

    color: var(--gold);

    font-size: 0.8rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-label::after {
    content: "";

    display: inline-block;

    width: 42px;
    height: 1px;

    margin-left: 12px;

    background: var(--gold);

    vertical-align: middle;
}


/* =========================================================
   5. NAVBAR
========================================================= */

.navbar {
    min-height: 78px;
}

.navbar-brand {
    font-size: 1.15rem;
    line-height: 0.9;
}

.navbar-brand small {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.logo-icon,
.navbar-brand i {
    color: var(--gold);
    font-size: 2.2rem;
}

.nav-link {
    margin: 0 0.55rem;

    color: var(--text);

    font-weight: 700;
}

.nav-link.active,
.nav-link:hover {
    color: var(--navy);
    border-bottom: 2px solid var(--gold);
}


/* =========================================================
   6. BUTTONS
========================================================= */

.btn-primary-custom {
    padding: 0.9rem 1.45rem;

    background: var(--navy);
    border: 0;
    border-radius: 4px;

    color: var(--white);

    font-weight: 700;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.btn-primary-custom:hover {
    background: var(--navy-dark);
    color: var(--white);
}


/* =========================================================
   7. HERO
========================================================= */

.hero {
    min-height: 650px;

    background:
        linear-gradient(
            90deg,
            #fff 0%,
            rgba(255, 255, 255, 0.94) 36%,
            rgba(255, 255, 255, 0.25) 58%,
            rgba(255, 255, 255, 0) 100%
        ),
        url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=80")
        center right / cover no-repeat;
}

.hero-container,
.min-vh-75 {
    min-height: 650px;
}

.hero p {
    max-width: 480px;
    margin-bottom: 2rem;

    color: #44546a;
}


/* =========================================================
   8. FEATURES
========================================================= */

.feature-box {
    display: flex;
    align-items: flex-start;

    gap: 1.4rem;

    margin-bottom: 2rem;
}

.feature-box i {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 72px;
    height: 72px;

    border-radius: 50%;

    background: #edf3fb;

    color: var(--navy);
    font-size: 2rem;
}

.feature-box h5,
.offer-card h5,
.office-card h5,
.contact-card h5 {
    margin-bottom: 0.25rem;

    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;

    color: var(--navy);
}

.feature-box p,
.offer-card p,
.contact-card p,
.office-card p {
    margin-bottom: 0.35rem;

    color: var(--muted);

    font-size: 0.95rem;
}


/* =========================================================
   9. INSURANCE COMPANIES / LOGOS
========================================================= */

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 102px;

    padding: 18px;

    overflow: hidden;

    background: var(--white);

    border-radius: 8px;

    box-shadow: 0 8px 24px rgba(8, 45, 94, 0.09);

    color: var(--navy);

    font-size: 1.7rem;
    font-weight: 900;

    line-height: 1.1;
}


/* Responsive images inside logo cards */

.insurance-logo {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 65px;

    object-fit: contain;
}


/* Optional support for old text logos */

.logos span {
    color: #d91d2b;
}


/* =========================================================
   10. OFFER
========================================================= */

.offer-card {
    height: 100%;

    padding: 2rem 1rem;
}

.offer-card i {
    display: block;

    margin-bottom: 1rem;

    color: var(--navy);

    font-size: 2.9rem;
}


/* =========================================================
   11. CONTACT
========================================================= */

.contact-section {
    padding: 90px 0;

    background: #f8f9fc;
}

.section-subtitle {
    color: #b9974c;

    font-size: 0.9rem;
    font-weight: 600;

    letter-spacing: 2px;
}

.section-title {
    margin-top: 10px;

    color: #0d2344;

    font-size: 2.4rem;
    font-weight: 700;
}

.section-description {
    margin-top: 15px;

    color: #6c757d;

    font-size: 1.05rem;
}


/* Contact form */

.contact-form {
    padding: 45px;

    background: var(--white);

    border-radius: 18px;

    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.contact-form label {
    margin-bottom: 8px;

    color: #0d2344;

    font-weight: 600;
}

.contact-form .form-control,
.contact-form .form-select {
    height: 56px;

    padding-left: 18px;

    border: 1px solid #d8dce5;
    border-radius: 10px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-form textarea.form-control {
    height: auto;
    min-height: 170px;

    padding-top: 15px;

    resize: vertical;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #0d2344;

    box-shadow: 0 0 0 0.2rem rgba(13, 35, 68, 0.15);
}


/* Checkbox */

.form-check {
    margin-top: 5px;
}

.form-check-label {
    color: #555;

    font-size: 0.95rem;

    line-height: 1.6;
}

/* Nazwa firmy zawsze w jednym ciągu */
.company-name {
    white-space: nowrap;
}

/* Drugie zdanie zawsze zaczyna się od nowej linii */
.consent-second-line {
    display: inline-block;
    margin-top: 6px;
}


/* Contact button */

.btn-contact {
    padding: 15px 50px;

    background: #0d2344;

    border: none;
    border-radius: 10px;

    color: var(--white);

    font-weight: 600;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.btn-contact:hover {
    background: #163867;

    color: var(--white);

    transform: translateY(-2px);
}


/* =========================================================
   12. OFFICE
========================================================= */

.office-card {
    height: 100%;

    padding-left: 1rem;
}


/* =========================================================
   13. MAP
========================================================= */

.map-section {
    position: relative;

    height: 310px;

    background:
        linear-gradient(
            rgba(240, 246, 251, 0.74),
            rgba(240, 246, 251, 0.74)
        ),
        url("https://maps.app.goo.gl/cGzG2TiYDUkMoKtz7")
        center / cover no-repeat;
}

.map-pin {
    position: absolute;

    top: 43%;
    left: 50%;

    transform: translate(-50%, -50%);

    color: var(--navy);

    font-size: 3.4rem;
}


/* =========================================================
   14. FOOTER
========================================================= */

.footer {
    padding: 36px 0;

    background: var(--navy);
}

.footer .nav-link {
    color: var(--white);

    border: 0;

    font-size: 0.9rem;
}

.footer .nav-link:hover {
    color: var(--gold);
}

.socials {
    display: flex;

    gap: 1.3rem;

    color: var(--white);

    font-size: 1.6rem;
}


/* =========================================================
   15. RESPONSIVE - TABLET / BOOTSTRAP LG
   < 992px
========================================================= */

@media (max-width: 991.98px) {

    body {
        padding-top: 88px;
    }

    /* Navbar */

    .nav-link.active,
    .nav-link:hover {
        border-bottom: 0;
    }


    /* Hero */

    .hero {
        min-height: auto;

        background:
            linear-gradient(
                rgba(255, 255, 255, 0.9),
                rgba(255, 255, 255, 0.9)
            ),
            url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1200&q=80")
            center / cover no-repeat;
    }

    .hero-container,
    .min-vh-75 {
        min-height: 560px;
    }


    /* Sections */

    .section-padding {
        padding: 70px 0;
    }


    /* Logos */

    .logo-box {
        height: 95px;

        padding: 16px;
    }

    .insurance-logo {
        max-height: 60px;
    }


    /* Contact */

    .contact-form {
        padding: 35px;
    }


    /* Office */

    .office-card {
        padding-left: 0;
    }
}


/* =========================================================
   16. RESPONSIVE - MOBILE / BOOTSTRAP MD
   < 768px
========================================================= */

@media (max-width: 767.98px) {

    .contact-section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-form {
        padding: 25px;
    }
}


/* =========================================================
   17. RESPONSIVE - SMALL MOBILE
   < 576px
========================================================= */

@media (max-width: 575.98px) {

    /* Hero */

    .hero-container,
    .min-vh-75 {
        min-height: 520px;
    }


    /* Sections */

    .section-padding {
        padding: 55px 0;
    }


    /* Features */

    .feature-box,
    .contact-card {
        flex-direction: column;

        text-align: left;
    }


    /* Logos */

    .logo-box {
        height: 86px;

        padding: 14px;

        font-size: 1.35rem;
    }

    .insurance-logo {
        max-width: 90%;
        max-height: 52px;
    }


    /* Contact */

    .btn-contact {
        width: 100%;
    }


    /* Map */

    .map-section {
        height: 240px;
    }
}