/* ==========================================
   Honorary Consulate General of Poland
   Bootstrap 5.3.3 companion stylesheet
   ========================================== */

:root {
    --poland-red: #e7193d;
    --poland-red-dark: #d91437;
    --ink: #222;
    --muted: #666;
    --page-bg: #eeeeee;
    --white: #fff;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.35;
}

.site-shell {
    width: min(100%, 1220px);
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 0 28px rgba(0, 0, 0, .05);
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
}

.navbar {
    min-height: 72px;
}

.brand-emblem {
    width: 84px;
    height: 96px;
    object-fit: cover;
    object-position: center;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    color: #111;
}

.brand-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    letter-spacing: .15px;
}

.brand-copy em {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    margin-top: 10px;
    text-align: center;
}

.nav-link {
    color: #111;
    font-size: 16px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    transition: color .2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--poland-red);
}

.hero-section {
    background: #fff;
}

.hero-copy {
    background: var(--poland-red);
    color: #fff;
    padding: 28px 32px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-copy h1 {
    font-size: 60px;
    font-weight: 500;
    margin: 0 0 12px;
}

.hero-copy p {
    font-size: 24px;
    margin-bottom: 16px;
}

.hero-copy .lead {
    font-size: 24px;
    line-height: 1.45;
}

.hero-image {
    min-height: 465px;
    position: relative;
    overflow: hidden;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0px;
}

.section-pad {
    padding: 50px 0;
}

.section-pad h2,
.contact-section h2 {
    font-size: 39px;
    font-weight: 400;
    margin: 0;
}

.service-card {
    margin-bottom: 18px;
}

.service-card h3 {
    color: var(--poland-red);
    font-size: 21px;
    font-weight: 600;
    border-bottom: 1px solid var(--poland-red);
    padding-bottom: 5px;
    margin-bottom: 8px;
}

.service-card ul {
    margin: 0;
    padding-left: 16px;
}

.service-card li {
    font-size: 19px;
    line-height: 1.35;
    padding-left: 2px;
    margin-bottom: 9px;
}

.visa-notice {
    background: var(--poland-red);
    color: #fff;
    border-radius: 7px;
    padding: 20px 165px;
    font-size: 18px;
}

.visa-notice strong {
    font-weight: 700;
}

.district-section {
    border-top: 1px solid #aaa !important;
}

.district-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 42px;
    row-gap: 16px;
}

.district-group h3 {
    position: relative;
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 4px;
    padding-left: 14px;
    line-height: 1.15;
}

.district-group h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #777;
}

.district-ilocos::before {
    background: #9b269d !important;
}

.district-cagayan::before {
    background: #f22573 !important;
}

.district-cordillera::before {
    background: #71349b !important;
}

.district-central::before {
    background: #0879c9 !important;
}

.district-calabarzon::before {
    background: #25a8df !important;
}

.district-bicol::before {
    background: #08aa9c !important;
}

.district-list {
    display: flex;
    flex-direction: column;
    padding-left: 14px;
}

.district-list span {
    font-size: 16px;
    line-height: 1.4;
}

.luzon-map {
    display: inline-block;
    width: min(100%, 600px);
    max-height: 960px;
    object-fit: contain;
}

.consul-section {
    border-top: 1px solid #ddd;
}

.consul-photo {
    background: linear-gradient(180deg, #ededee 0%, #d8d5da 100%);
    min-height: 465px;
    position: relative;
    overflow: hidden;
}

.consul-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 310px;
    object-fit: cover;
    object-position: center 0%;
    position: absolute;
    top: 0px;
}

.consul-copy {
    background: var(--poland-red);
    color: #fff;
    padding: 34px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.consul-copy h2 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.08;
    margin: 0 0 18px;
}

.consul-copy p {
    font-size: 21px;
    line-height: 1.45;
    margin: 0;
}

.contact-section {
    background: #fff;
}

.footer-brand img {
    width: 125px;
    height: 143px;
    object-fit: cover;
}

.footer-brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.05;
    margin-top: 12px;
    font-weight: 600;
}

.footer-brand-place {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-style: italic;
    margin-top: 7px;
}

.contact-details {
    font-size: 18px;
}

.contact-details h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 2px 0 7px;
}

.contact-details p {
    margin-bottom: 14px;
}

.contact-details small {
    font-size: 16px;
}

.contact-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-lines a {
    color: inherit;
    text-decoration: none;
}

.contact-lines a:hover {
    color: var(--poland-red);
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--poland-red);
    color: #fff;
    font-size: 20px;
    line-height: 42px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: .2s ease;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .site-header {
        position: sticky;
    }

    .navbar {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .navbar-nav {
        padding-top: 12px;
        padding-bottom: 5px;
    }

    .nav-link {
        padding: 7px 0 !important;
    }

    .hero-copy {
        padding: 28px 26px;
    }

    .district-columns {
        column-gap: 25px;
    }
}

@media (max-width: 770px) {
    body {
        font-size: 13px;
    }

    .site-shell {
        width: 100%;
        box-shadow: none;
    }

    .brand-copy strong {
        font-size: 10px;
    }

    .brand-copy em {
        font-size: 9px;
    }

    .hero-image,
    .hero-image img {
        min-height: 650px;
    }

    .section-pad {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .district-columns {
        grid-template-columns: 1fr 1fr;
        column-gap: 18px;
    }

    .luzon-map {
        max-height: 420px;
        margin-top: 8px;
    }

    .consul-photo,
    .consul-photo img {
        min-height: 360px;
    }

    .consul-copy {
        padding: 28px 26px;
    }
    .visa-notice {
        padding: 20px 45px;
    }
    .consul-copy h2,
    .section-pad h2, .contact-section h2 {
        font-size: 26px;
    }
    .consul-copy p,
    .footer-brand-name,
    .footer-brand-place,
    .contact-details,
    .service-card li {
        font-size: 16px;
    }

    .contact-details h3,
    .contact-details,
    .service-card h3 {
        font-size: 18px;
    }
    
    .contact-details small {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .brand-emblem {
        width: 37px;
        height: 43px;
    }

    .brand-copy strong {
        font-size: 2.2vw;
    }

    .brand-copy em {
        font-size: 2.2vw;
    }

    .hero-copy h1 {
        font-size: 28px;
    }
    .hero-copy .lead,
    .hero-copy p,
    .contact-details h3,
    .footer-brand-place,
    .footer-brand-name {
        font-size: 18px;
    }
    .visa-notice {
        padding: 20px 15px !important;
    }

    .district-columns {
        grid-template-columns: 1fr;
    }

    .luzon-map {
        width: 240px;
    }
    .consul-copy h2 {
        font-size: 26px;
    }
    .consul-copy p,
    .contact-details {
        font-size: 16px;
    }
    .section-pad h2, .contact-section h2 {
        font-size: 26px;
    }
    .hero-image, .hero-image img {
        min-height: 380px;
    }
}