/* fonts on this website */
/* "Karla", sans-serif;         - body text */
/* 'Fraunces', serif;           - headings */
/* 'IBM Plex Mono', monospace;  - accents */
/* "Montserrat", sans-serif;    - iba na h1 "Podporené projekty" */

:root {
    --pp-cream: #FFFCF6;
    --pp-cream-alt: #FFF7E7;
    --pp-navy: #0B2D5B;
    --pp-navy-dark: #071E3D;
    --pp-gold: #FFC000;
    --pp-teal: #3F7767;

    --cream: #F1E6D3;
    --card: #FFFBF2;
    --ink: #2E2A24;
    --ink-soft: #6B6154;
    --red: #A73A34;
    --red-deep: #7E2B27;
    --gold: #93732B;
    --line: #D9C6A0;
    --line-soft: #E9DCC0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Karla", sans-serif;
    color: #1B2338;
}

.pp-custom-nav {
    --bs-navbar-color: white;
    --bs-navbar-brand-color: white;
    --bs-navbar-active-color: white;
    --bs-navbar-hover-color: var(--pp-cream-alt);

    font-weight: 750;
    background-color: var(--pp-navy-dark);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    padding: 0.3rem;
    padding-top: 0.5rem;
    color: white;
}

.navbar-nav {
    gap: 8px;
}

.wrap-podporene-projekty {
    padding: 3rem 4%;
    background: var(--pp-cream);
    margin: 0 auto;
    position: relative;
}

/* decorative hearts */
.heart-icon {
    position: absolute;
    top: 50px;
    left: 90px;
    font-size: 44px;
    color: var(--pp-gold);
    line-height: 1;
}

.heart-outline {
    position: absolute;
    top: 50px;
    right: 65px;
    font-size: 140px;
    color: #ffbf002c;
    line-height: 1;
}

@media(max-width:900px) {
    .heart-outline {
        display: none;
    }
}

@media(max-width:767px) {
    .heart-icon {
        position: static;
        display: block;
        text-align: center;
        margin: 0 auto 10px;
        font-size: 28px;
    }

    .header h1 {
        font-size: 26px;
    }
}


/* header */
.header {
    text-align: center;
    padding-top: 10px;
    margin-bottom: 2.5rem;
}

.header h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: var(--pp-navy);
    margin: 0 0 18px;
}

.underline {
    width: 70px;
    height: 3px;
    background: var(--pp-navy);
    margin: 0 auto 26px;
    border-radius: 2px;
}

.header p {
    color: #6B7280;
    font-size: 1.05rem;
    margin: 0;
}

/* cards */
.card-custom {
    background: #fff;
    border: none;
    border-top: 4px solid var(--pp-navy);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 14px;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}


.card-custom:hover {
    transform: translateY(-4px);
    box-shadow: rgba(0, 0, 0, 0.14) 0px 10px 24px;
}

.card-custom--coming-soon {
    filter: grayscale(85%);
    opacity: 0.55;
    border-top-color: #cfcfcf;
}

.card-custom--coming-soon:hover {
    transform: none;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 14px;
}

.card-custom--coming-soon .card-body a {
    pointer-events: none;
    cursor: default;
}

.card-custom--coming-soon .card-body a:hover {
    text-decoration: none;
}

.card-custom--coming-soon .card-body::after {
    content: "Pripravujeme";
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--pp-navy);
    color: white;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 999px;
}

.logo-area {
    height: 150px;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #F0EEE9;
}

.logo-area div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-area img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.card-body {
    padding: 18px 20px 22px;
}

.card-body h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pp-navy-dark);
    margin: 0 0 8px;
}

/* arrow icon */
.card-body a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--pp-navy);
    text-decoration: none;
    font-size: .93rem;
    font-weight: 500;
}

.card-body a:hover {
    text-decoration: underline;
}

.card-body a i {
    position: relative;
    font-size: 16px;
    line-height: 1;
    color: var(--pp-navy);
    flex: none;
}

/* footer tagline */
.tagline {
    margin-top: 2.5rem;
    text-align: center;
    color: #4B5563;
    font-size: 1.05rem;
}


/* prva sekcia */

.section-wrap {
    padding: 3rem 4%;
    background-color: #fff7e7;
}

.subsection-main {
    text-align: center;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    gap: 20px;
}

.section-header h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.program-tag {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red-deep);
    background: var(--line-soft);
    border: 1px solid var(--line);
    padding: 6px 14px;
    border-radius: 2px;
    margin-bottom: 22px;
}


h1.title {
    font-family: 'Fraunces';
    font-weight: 600;
    font-size: clamp(2.1rem, 3.5vw, 3.2rem);
    line-height: 1.12;
    margin: 0 0 14px;
    color: var(--red-deep);
}

p.subtitle {
    font-family: 'Fraunces';
    font-weight: 500;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    color: var(--ink-soft);
    margin: 0 0 30px;
}

.section-header-line {
    display: inline-block;
    vertical-align: middle;
    width: 80px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

.meta-row {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    font-size: 14px;
    margin-top: 10px;
}

.meta-item {
    text-align: left;
}

@media (max-width: 767px) {
    .meta-item {
        text-align: center;
    }
}

.meta-item .t {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    display: block;
    margin-bottom: 3px;
}

.meta-item .d {
    color: var(--ink);
    font-weight: 600;
    font-size: 16px;
}

.meta-item a {
    text-decoration: none;
}

.meta-item a:hover {
    color: var(--red);
}

/* --- cross-stitch divider --- */
.stitch-row {
    display: flex;
    justify-content: center;
    gap: 2px;
    padding-top: 2rem;
}

.stitch-row i {
    color: var(--red-deep);
    font-size: 1.15rem;
}


/* druha sekcia */

section {
    padding: 1.5rem 4%;
}

.section-desc-line {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    margin-right: 10px;
}

.section-desc p {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 22px;
    color: var(--gold);
}

h2.section-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    margin: 10px 0 22px;
    color: var(--ink);
}

p.lead {
    font-size: 1.05rem;
    font-weight: 500;
}


/* --- pull quote --- */
.pullquote {
    border-left: 3px solid var(--red);
    background: var(--card);
    padding: 20px 26px;
    margin: 28px 0;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--red-deep);
    line-height: 1.5;
}


.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 1.5rem 0;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery.two {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery .photo:nth-child(3) {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery.two {
        grid-template-columns: 1fr;
    }

    .gallery .photo:nth-child(3) {
        grid-column: span 1;
    }
}



.insight-block {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.insight-block:last-child {
    border-bottom: 1px solid var(--line);
}

.insight-icon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight-icon i {
    color: var(--gold);
    font-size: 16px;
}

.insight-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
}

.insight-block p {
    margin: 4px 0 0;
}

strong {
    color: var(--gold);
}


/* --- process steps --- */
.steps {
    margin: 30px 0;
}

.step {
    display: flex;
    gap: 46px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.step:last-child {
    border-bottom: 1px solid var(--line);
}

.step-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: var(--gold);
    font-weight: 600;
    padding-top: 2px;
}

.step-text {
    font-size: 16px;
}

.highlight-box {
    background: var(--red-deep);
    color: var(--cream);
    padding: 26px 28px;
    border-radius: 4px;
    margin: 28px 0;
}

.highlight-box p {
    color: var(--cream);
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    font-style: italic;
    margin: 0;
}


/* minulosť -> súčasnosť karta */
.past-present {
    background: var(--cream);
    border-radius: 16px;
    padding: 26px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.past-present-side {
    flex: 1;
}

.pp-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.pp-label-past {
    color: var(--gold);
}

.pp-label-present {
    color: var(--red-deep);
}

.pp-text {
    font-family: "Karla", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    margin: 0;
}

.pp-circle {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--red-deep);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-circle i {
    color: var(--cream);
    font-size: 20px;
}

@media (max-width: 560px) {
    .past-present {
        flex-direction: column;
    }

    .pp-circle {
        transform: rotate(90deg);
    }
}

/* --- komunita / obce --- */

h3.sub-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 30px 0 14px;
    color: var(--red-deep);
}

.featured-villages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 0 10px;
}

@media (max-width: 600px) {
    .featured-villages {
        grid-template-columns: 1fr;
    }
}

.village-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    border-radius: 2px;
    padding: 20px;
}

.village-card .badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--red-deep);
    background: var(--line-soft);
    padding: 3px 8px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 10px;
}

.village-card h4 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    margin: 0 0 6px;
    color: var(--ink);
}

.village-card p {
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0;
}

.village-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
}

.chip {
    font-size: 13.5px;
    padding: 6px 13px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--ink-soft);
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 0 0 24px;
}

@media (max-width: 600px) {
    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.icon-tile {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 16px 12px;
    text-align: center;
}

.icon-tile i {
    color: var(--red-deep);
    font-size: 22px;
    margin-bottom: 8px;
    display: block;
}

.icon-tile .label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
}

/* --- klikateľná mapa --- */

.scroll-hint {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold);
    text-align: center;
    margin-bottom: 12px;
    transition: opacity .3s ease;
}

.scroll-hint.hidden {
    opacity: 0;
}

.map-scroll {
    max-width: 900px;
    margin: 0 auto 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.map-wrap {
    position: relative;
    min-width: 700px;
    width: 100%;
}

.map-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.map-point {
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--red-deep);
    border: 3px solid var(--card);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    padding: 0;
    transition: transform .15s ease, background .15s ease;
}

.map-point::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
}

.map-point:hover,
.map-point:focus-visible {
    transform: translate(-50%, -50%) scale(1.3);
    background: var(--red);
    outline: none;
}

.map-point::after {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--card);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 9px;
    border-radius: 2px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

.map-point:hover::after,
.map-point:focus-visible::after {
    opacity: 1;
}

@media (max-width: 800px) {
    .map-point {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }
}

/* modal galéria */
#galleryModal .modal-content {
    border-radius: 8px;
}

#galleryModal .modal-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    color: var(--red-deep);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (min-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-grid a {
    display: block;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
    touch-action: pan-y;
}

footer {
    font-family: "Montserrat", sans-serif;
    background-color: rgb(46, 46, 46);
    font-weight: 500;
    color: white;
    text-align: center;
    padding: 4px;
}