/* ============================================================
   PROJEKTU NAKTS — style.css
   Fonts: system stack (no external requests needed)
   Colors:
     --night:   #0a1628   (dark navy – header/hero)
     --navy:    #1a3a6b   (mid navy)
     --azure:   #e4f3ff   (light azure – page bg)
     --white:   #ffffff
     --ink:     #1a1a2e   (body text)
     --muted:   #4a5568   (secondary text)
     --accent:  #2563eb   (interactive blue)
     --accent-h:#1d4ed8   (hover)
   ============================================================ */

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

:root {
    --night:    #0a1628;
    --navy:     #1a3a6b;
    --azure:    #e4f3ff;
    --azure-dk: #c8e4f8;
    --white:    #ffffff;
    --ink:      #1a1a2e;
    --muted:    #4a5568;
    --accent:   #2563eb;
    --accent-h: #1d4ed8;
    --logo-blue:#a8c8e8;
    --radius:   12px;
    --radius-lg:20px;
    --shadow:   0 4px 24px rgba(10,22,40,.10);
    --shadow-md:0 8px 40px rgba(10,22,40,.16);
    --transition: 0.22s ease;
    --max-w:    1100px;
    font-size: 17px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    background-color: var(--azure);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;   /* prevent iOS font inflation */
    text-size-adjust: 100%;
    overflow-wrap: break-word;         /* break only truly unbreakable strings (URLs etc) */
}

/* Global image safety */
img, video, svg { max-width: 100%; }

/* ---- Accessibility: skip link ---------------------------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--accent);
    color: var(--white);
    padding: .6rem 1.2rem;
    border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    z-index: 9999;
    transition: top var(--transition);
}
.skip-link:focus {
    top: 0;
    outline: 3px solid var(--white);
    outline-offset: 2px;
}

/* ---- Focus ring (all interactive elements) --------------- */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* main receives programmatic focus from skip link — no visible ring needed */
main:focus { outline: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 22, 40, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(168,200,232,.15);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Logo block */
.logo-block {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
    mix-blend-mode: screen;   /* removes dark background on dark header */
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-projektu {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: .18em;
    color: var(--logo-blue);
    text-transform: uppercase;
}

.logo-nakts {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--logo-blue);
    text-transform: uppercase;
}

/* Nav */
#main-nav {
    margin-left: auto;
}

#main-nav ul {
    list-style: none;
    display: flex;
    gap: .25rem;
    flex-wrap: wrap;
}

#main-nav a {
    display: block;
    padding: .45rem .85rem;
    color: rgba(196, 220, 245, 0.85);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}

#main-nav a:hover,
#main-nav a:focus-visible {
    background: rgba(255,255,255,.1);
    color: var(--white);
}

.nav-link-secure {
    border: 1px solid rgba(168,200,232,.3);
    border-radius: 8px;
}

/* Hamburger button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 2px solid rgba(168,200,232,.4);
    border-radius: 8px;
    padding: .45rem .55rem;
    cursor: pointer;
    margin-left: auto;
}

.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--logo-blue);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    background: linear-gradient(170deg, var(--night) 0%, #0e2044 55%, #1a3a6b 100%);
    overflow: hidden;
    padding: 3.5rem 1.5rem 4rem;
    text-align: center;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Animated star field */
.stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s infinite alternate;
}

.star:nth-child(1)  { width:2px; height:2px; top:8%;  left:12%; animation-delay:0s;    opacity:.6; animation-duration:2.1s; }
.star:nth-child(2)  { width:3px; height:3px; top:15%; left:35%; animation-delay:.4s;   opacity:.8; animation-duration:3.4s; }
.star:nth-child(3)  { width:2px; height:2px; top:22%; left:60%; animation-delay:.9s;   opacity:.5; animation-duration:2.7s; }
.star:nth-child(4)  { width:2px; height:2px; top:5%;  left:78%; animation-delay:1.2s;  opacity:.7; animation-duration:4.1s; }
.star:nth-child(5)  { width:3px; height:3px; top:30%; left:88%; animation-delay:.2s;   opacity:.9; animation-duration:1.9s; }
.star:nth-child(6)  { width:2px; height:2px; top:45%; left:5%;  animation-delay:1.5s;  opacity:.6; animation-duration:3.2s; }
.star:nth-child(7)  { width:2px; height:2px; top:55%; left:25%; animation-delay:.7s;   opacity:.4; animation-duration:2.5s; }
.star:nth-child(8)  { width:3px; height:3px; top:18%; left:50%; animation-delay:1.8s;  opacity:.8; animation-duration:3.8s; }
.star:nth-child(9)  { width:2px; height:2px; top:70%; left:70%; animation-delay:.3s;   opacity:.5; animation-duration:2.2s; }
.star:nth-child(10) { width:2px; height:2px; top:40%; left:93%; animation-delay:1.1s;  opacity:.7; animation-duration:4.5s; }
.star:nth-child(11) { width:3px; height:3px; top:60%; left:48%; animation-delay:.6s;   opacity:.6; animation-duration:1.7s; }
.star:nth-child(12) { width:2px; height:2px; top:10%; left:90%; animation-delay:2.0s;  opacity:.9; animation-duration:3.1s; }
.star:nth-child(13) { width:1px; height:1px; top:3%;  left:20%; animation-delay:.5s;   opacity:.4; animation-duration:2.8s; }
.star:nth-child(14) { width:2px; height:2px; top:12%; left:42%; animation-delay:1.3s;  opacity:.7; animation-duration:3.6s; }
.star:nth-child(15) { width:3px; height:3px; top:28%; left:15%; animation-delay:.8s;   opacity:.9; animation-duration:2.3s; }
.star:nth-child(16) { width:1px; height:1px; top:38%; left:67%; animation-delay:2.2s;  opacity:.5; animation-duration:4.0s; }
.star:nth-child(17) { width:2px; height:2px; top:50%; left:82%; animation-delay:.1s;   opacity:.8; animation-duration:1.8s; }
.star:nth-child(18) { width:2px; height:2px; top:65%; left:33%; animation-delay:1.6s;  opacity:.6; animation-duration:3.3s; }
.star:nth-child(19) { width:3px; height:3px; top:75%; left:55%; animation-delay:.4s;   opacity:.7; animation-duration:2.6s; }
.star:nth-child(20) { width:1px; height:1px; top:20%; left:7%;  animation-delay:1.9s;  opacity:.4; animation-duration:4.2s; }
.star:nth-child(21) { width:2px; height:2px; top:7%;  left:55%; animation-delay:.6s;   opacity:.8; animation-duration:2.0s; }
.star:nth-child(22) { width:2px; height:2px; top:32%; left:30%; animation-delay:1.4s;  opacity:.5; animation-duration:3.7s; }
.star:nth-child(23) { width:1px; height:1px; top:48%; left:72%; animation-delay:.3s;   opacity:.6; animation-duration:2.9s; }
.star:nth-child(24) { width:3px; height:3px; top:62%; left:18%; animation-delay:2.1s;  opacity:.9; animation-duration:1.6s; }
.star:nth-child(25) { width:2px; height:2px; top:80%; left:40%; animation-delay:.9s;   opacity:.7; animation-duration:3.9s; }
.star:nth-child(26) { width:1px; height:1px; top:17%; left:85%; animation-delay:1.7s;  opacity:.4; animation-duration:2.4s; }
.star:nth-child(27) { width:2px; height:2px; top:42%; left:58%; animation-delay:.2s;   opacity:.6; animation-duration:4.3s; }
.star:nth-child(28) { width:3px; height:3px; top:25%; left:45%; animation-delay:1.0s;  opacity:.8; animation-duration:2.1s; }
.star:nth-child(29) { width:2px; height:2px; top:58%; left:10%; animation-delay:1.5s;  opacity:.5; animation-duration:3.5s; }
.star:nth-child(30) { width:1px; height:1px; top:35%; left:97%; animation-delay:.7s;   opacity:.7; animation-duration:2.7s; }
.star:nth-child(31) { width:2px; height:2px; top:6%;  left:3%;  animation-delay:2.3s;  opacity:.6; animation-duration:4.4s; }
.star:nth-child(32) { width:3px; height:3px; top:14%; left:65%; animation-delay:.5s;   opacity:.9; animation-duration:1.5s; }
.star:nth-child(33) { width:1px; height:1px; top:27%; left:77%; animation-delay:1.2s;  opacity:.4; animation-duration:3.0s; }
.star:nth-child(34) { width:2px; height:2px; top:44%; left:22%; animation-delay:.8s;   opacity:.7; animation-duration:2.2s; }
.star:nth-child(35) { width:2px; height:2px; top:68%; left:88%; animation-delay:1.8s;  opacity:.5; animation-duration:3.8s; }
.star:nth-child(36) { width:3px; height:3px; top:78%; left:62%; animation-delay:.1s;   opacity:.8; animation-duration:2.5s; }
.star:nth-child(37) { width:1px; height:1px; top:11%; left:28%; animation-delay:2.0s;  opacity:.6; animation-duration:4.1s; }
.star:nth-child(38) { width:2px; height:2px; top:52%; left:47%; animation-delay:.6s;   opacity:.7; animation-duration:1.9s; }
.star:nth-child(39) { width:2px; height:2px; top:4%;  left:95%; animation-delay:1.1s;  opacity:.5; animation-duration:3.4s; }
.star:nth-child(40) { width:3px; height:3px; top:36%; left:13%; animation-delay:.3s;   opacity:.9; animation-duration:2.8s; }
.star:nth-child(41) { width:1px; height:1px; top:72%; left:38%; animation-delay:1.6s;  opacity:.4; animation-duration:4.6s; }
.star:nth-child(42) { width:2px; height:2px; top:19%; left:52%; animation-delay:.4s;   opacity:.8; animation-duration:2.3s; }
.star:nth-child(43) { width:2px; height:2px; top:46%; left:84%; animation-delay:2.4s;  opacity:.6; animation-duration:3.1s; }
.star:nth-child(44) { width:3px; height:3px; top:23%; left:23%; animation-delay:.9s;   opacity:.7; animation-duration:1.7s; }
.star:nth-child(45) { width:1px; height:1px; top:56%; left:63%; animation-delay:1.3s;  opacity:.5; animation-duration:4.0s; }
.star:nth-child(46) { width:2px; height:2px; top:82%; left:17%; animation-delay:.2s;   opacity:.8; animation-duration:2.6s; }
.star:nth-child(47) { width:2px; height:2px; top:9%;  left:73%; animation-delay:1.7s;  opacity:.6; animation-duration:3.3s; }
.star:nth-child(48) { width:3px; height:3px; top:33%; left:92%; animation-delay:.7s;   opacity:.9; animation-duration:2.0s; }
.star:nth-child(49) { width:1px; height:1px; top:67%; left:6%;  animation-delay:2.1s;  opacity:.4; animation-duration:4.8s; }
.star:nth-child(50) { width:2px; height:2px; top:16%; left:38%; animation-delay:1.0s;  opacity:.7; animation-duration:2.4s; }
.star:nth-child(51) { width:2px; height:2px; top:41%; left:76%; animation-delay:.5s;   opacity:.5; animation-duration:3.7s; }
.star:nth-child(52) { width:3px; height:3px; top:74%; left:29%; animation-delay:1.4s;  opacity:.8; animation-duration:2.1s; }
.star:nth-child(53) { width:1px; height:1px; top:2%;  left:48%; animation-delay:.3s;   opacity:.6; animation-duration:4.2s; }
.star:nth-child(54) { width:2px; height:2px; top:53%; left:91%; animation-delay:1.9s;  opacity:.7; animation-duration:1.8s; }
.star:nth-child(55) { width:2px; height:2px; top:29%; left:2%;  animation-delay:.8s;   opacity:.4; animation-duration:3.5s; }
.star:nth-child(56) { width:3px; height:3px; top:86%; left:53%; animation-delay:2.2s;  opacity:.9; animation-duration:2.9s; }
.star:nth-child(57) { width:1px; height:1px; top:13%; left:16%; animation-delay:.6s;   opacity:.5; animation-duration:4.5s; }
.star:nth-child(58) { width:2px; height:2px; top:61%; left:44%; animation-delay:1.5s;  opacity:.8; animation-duration:2.2s; }
.star:nth-child(59) { width:2px; height:2px; top:37%; left:59%; animation-delay:.1s;   opacity:.6; animation-duration:3.6s; }
.star:nth-child(60) { width:3px; height:3px; top:77%; left:80%; animation-delay:1.2s;  opacity:.7; animation-duration:2.7s; }
/* Extra stars — upper zone (top 2–25%) */
.star:nth-child(61) { width:1px; height:1px; top:4%;  left:22%; animation-delay:.7s;   opacity:.6; animation-duration:3.2s; }
.star:nth-child(62) { width:2px; height:2px; top:9%;  left:44%; animation-delay:1.4s;  opacity:.8; animation-duration:2.0s; }
.star:nth-child(63) { width:1px; height:1px; top:2%;  left:66%; animation-delay:.2s;   opacity:.5; animation-duration:4.3s; }
.star:nth-child(64) { width:2px; height:2px; top:18%; left:8%;  animation-delay:2.0s;  opacity:.7; animation-duration:2.8s; }
.star:nth-child(65) { width:1px; height:1px; top:6%;  left:88%; animation-delay:.9s;   opacity:.4; animation-duration:3.7s; }
.star:nth-child(66) { width:3px; height:3px; top:14%; left:31%; animation-delay:1.6s;  opacity:.9; animation-duration:1.8s; }
.star:nth-child(67) { width:1px; height:1px; top:21%; left:57%; animation-delay:.4s;   opacity:.5; animation-duration:4.0s; }
.star:nth-child(68) { width:2px; height:2px; top:3%;  left:75%; animation-delay:1.1s;  opacity:.8; animation-duration:2.5s; }
.star:nth-child(69) { width:1px; height:1px; top:11%; left:18%; animation-delay:2.3s;  opacity:.6; animation-duration:3.9s; }
.star:nth-child(70) { width:2px; height:2px; top:24%; left:92%; animation-delay:.6s;   opacity:.7; animation-duration:2.3s; }
.star:nth-child(71) { width:1px; height:1px; top:7%;  left:36%; animation-delay:1.8s;  opacity:.4; animation-duration:4.6s; }
.star:nth-child(72) { width:2px; height:2px; top:16%; left:69%; animation-delay:.3s;   opacity:.8; animation-duration:2.1s; }
.star:nth-child(73) { width:3px; height:3px; top:5%;  left:51%; animation-delay:1.3s;  opacity:.9; animation-duration:3.4s; }
.star:nth-child(74) { width:1px; height:1px; top:20%; left:24%; animation-delay:.8s;   opacity:.5; animation-duration:2.9s; }
.star:nth-child(75) { width:2px; height:2px; top:13%; left:83%; animation-delay:2.1s;  opacity:.7; animation-duration:4.1s; }
.star:nth-child(76) { width:1px; height:1px; top:8%;  left:2%;  animation-delay:.5s;   opacity:.6; animation-duration:3.5s; }
.star:nth-child(77) { width:2px; height:2px; top:23%; left:46%; animation-delay:1.7s;  opacity:.8; animation-duration:2.4s; }
.star:nth-child(78) { width:1px; height:1px; top:2%;  left:34%; animation-delay:.1s;   opacity:.5; animation-duration:4.7s; }
.star:nth-child(79) { width:3px; height:3px; top:17%; left:97%; animation-delay:1.0s;  opacity:.7; animation-duration:2.6s; }
.star:nth-child(80) { width:1px; height:1px; top:10%; left:61%; animation-delay:2.4s;  opacity:.6; animation-duration:3.3s; }

@keyframes twinkle {
    from { opacity: .1; transform: scale(.7); }
    to   { opacity: 1;  transform: scale(1.3); }
}

/* ---- Bunting / flag garland -------------------------------- */
.bunting-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 95px;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin-top: 3rem;
}

.hero-tagline {
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(168,200,232,.7);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: .85rem;
}

.hero-title-top {
    display: block;
    color: var(--logo-blue);
}

.hero-title-bottom {
    display: block;
    color: var(--white);
    font-size: 1.15em;   /* slightly larger — visual accent on "nakts" */
}

.hero-sub {
    font-size: 1rem;
    color: rgba(196,220,245,.8);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hero-ctas {
    display: flex;
    gap: .65rem;
    justify-content: center;
    flex-wrap: nowrap;        /* single row on desktop */
    padding-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: .65rem 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37,99,235,.4);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--accent-h);
    box-shadow: 0 6px 28px rgba(37,99,235,.55);
}

.btn-outline {
    background: transparent;
    color: var(--logo-blue);
    border: 2px solid rgba(168,200,232,.5);
}

/* Hero outline buttons get a solid background so stars don't bleed through */
.hero-ctas .btn-outline {
    background: #0c1e3d;
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: rgba(168,200,232,.1);
    border-color: var(--logo-blue);
}

/* Wave divider */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section {
    padding: 5rem 1.5rem;
}

.section-alt {
    background: var(--white);
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--night);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    display: block;
    height: 4px;
    width: 56px;
    background: var(--accent);
    border-radius: 4px;
    margin-top: .5rem;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Last intro before a grid/list keeps the larger gap */
.section-intro:last-of-type {
    margin-bottom: 2rem;
}

/* Section-level CTA button (Pieteikties after each section) */
.section-cta {
    margin-top: 2.5rem;
    text-align: left;
}

/* Programma section: title + subtitle left, button top-right on desktop */
.programma-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}
.programma-header-text {
    flex: 1;
}
.programma-header-text .section-title {
    margin-bottom: .75rem;
}
.programma-header-text .section-intro,
.programma-header-text .section-intro:last-of-type {
    margin-bottom: 0;
}
.programma-header-cta {
    flex-shrink: 0;
}

/* Mobile: hide the inline header button, show bottom button */
@media (max-width: 768px) {
    .programma-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-bottom: 0;
    }
    .programma-header-cta {
        display: none;
    }
    .section-cta--mobile-only {
        display: block;
    }
}

/* Desktop: hide the bottom mobile-only button */
@media (min-width: 769px) {
    .section-cta--mobile-only {
        display: none;
    }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.1rem;
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Stat cards */
.stat-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    min-width: 260px;
}

.stat-card {
    background: var(--white);
    border: 2px solid var(--azure-dk);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1.1;
}

.stat-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: .3rem;
}

/* ============================================================
   FEATURE CARDS (programme)
   ============================================================ */
.feature-cards {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--azure);
    border: 1px solid var(--azure-dk);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: .85rem;
    display: block;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--night);
    margin-bottom: .5rem;
}

.feature-card p {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ============================================================
   PIETEIKŠANĀS
   ============================================================ */
.apply-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 3rem;
    align-items: start;
}

.apply-text p {
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.apply-text p:last-child {
    margin-bottom: 0;
}

.apply-notice {
    font-size: .9rem !important;
    color: var(--muted) !important;
    background: #fff8e1;
    border-left: 3px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    padding: .75rem 1rem;
}

.apply-cta-box {
    background: var(--white);
    border: 2px solid var(--azure-dk);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 5rem;
}

.apply-deadline-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .5rem;
}

.apply-deadline {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--night);
    line-height: 1.2;
}

.apply-deadline span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
}

.apply-cta-note {
    font-size: .75rem;
    color: var(--muted);
    margin-top: .75rem;
    line-height: 1.5;
}

/* ---- Project types list ----------------------------------- */
.project-types-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 1.75rem;
    margin-bottom: .6rem;
}

.project-types-list {
    border: 1px solid rgba(37,99,235,.15);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.project-type-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid rgba(37,99,235,.08);
    transition: background var(--transition);
}

.project-type-row:last-child {
    border-bottom: none;
}

.project-type-row:hover {
    background: rgba(37,99,235,.03);
}

.ptype-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 1.75rem;
    text-align: center;
}

.ptype-name {
    flex: 1;
    font-size: .92rem;
    font-weight: 600;
    color: var(--night);
}

.ptype-links {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

.ptype-link {
    font-size: .78rem;
    font-weight: 600;
    padding: .3rem .75rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    color: var(--accent);
    border: 1.5px solid rgba(37,99,235,.3);
    background: transparent;
}

.ptype-link:hover {
    background: rgba(37,99,235,.08);
    border-color: var(--accent);
}

.ptype-link-video {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

.ptype-link-video:hover {
    background: var(--accent-h);
    border-color: var(--accent-h);
    color: var(--white);
}

@media (max-width: 600px) {
    .project-type-row {
        flex-wrap: wrap;
        row-gap: .5rem;
    }

    /* Name fills the row next to the icon */
    .ptype-name {
        flex: 1 1 0;
        min-width: 0;
    }

    /* Buttons drop to their own line, indented to align with the name */
    .ptype-links {
        flex-basis: 100%;
        margin-left: calc(1.75rem + .85rem); /* icon width + gap */
    }
}

@media (max-width: 760px) {
    .apply-grid {
        grid-template-columns: 1fr;
    }
    .apply-cta-box {
        position: static;
        order: -1;    /* show deadline/CTA above the text on narrow screens */
    }
}

/* ============================================================
   CITIES TRACK
   ============================================================ */
.cities-track {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.city-chip {
    display: flex;
    align-items: center;
    gap: .45rem;
    background: var(--white);
    border: 2px solid var(--azure-dk);
    border-radius: 50px;
    padding: .6rem 1.2rem .6rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    box-shadow: var(--shadow);
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.city-chip:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.city-pin {
    font-size: 1rem;
    flex-shrink: 0;
}

.city-name {
    font-weight: 700;
}

.city-year {
    font-size: .78rem;
    font-weight: 500;
    opacity: .6;
    margin-left: .1rem;
}

/* ============================================================
   YEAR LIST (atskati)
   ============================================================ */
.year-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    counter-reset: none;
}

.year-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--azure);
    border: 2px solid var(--azure-dk);
    border-radius: var(--radius);
    padding: 1.1rem 1.5rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    transition: background var(--transition), border-color var(--transition),
                transform var(--transition), box-shadow var(--transition);
}

.year-link:hover,
.year-link:focus-visible {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.year-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    transition: color var(--transition);
    flex-shrink: 0;
}

.year-link:hover .year-num,
.year-link:focus-visible .year-num {
    color: var(--logo-blue);
}

.year-location {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .82rem;
    font-weight: 500;
    color: var(--muted);
    background: var(--azure-dk);
    border-radius: 20px;
    padding: .25rem .75rem;
    white-space: nowrap;
    margin-left: auto;
    transition: background var(--transition), color var(--transition);
}

.year-link:hover .year-location,
.year-link:focus-visible .year-location {
    background: rgba(168,200,232,.2);
    color: rgba(196,220,245,.9);
}

.year-arrow {
    font-size: 1.25rem;
    opacity: .4;
    transition: opacity var(--transition), transform var(--transition);
}

.year-link:hover .year-arrow,
.year-link:focus-visible .year-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--night);
    color: rgba(196,220,245,.75);
    padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    mix-blend-mode: screen;   /* matches .logo-img treatment */
    opacity: .95;
}

.footer-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--logo-blue);
    letter-spacing: .05em;
}

.footer-org {
    font-size: .82rem;
    color: rgba(168,200,232,.55);
    margin-top: .15rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    margin-left: auto;
}

.footer-links a {
    color: rgba(196,220,245,.65);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--white);
}

.jspa-link-inline {
    font-size: .95rem;
    color: var(--muted);
    margin-top: 1.25rem;
}

.jspa-link-inline a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), color var(--transition);
}

.jspa-link-inline a:hover,
.jspa-link-inline a:focus-visible {
    color: var(--accent-h);
    border-bottom-color: var(--accent-h);
}

.footer-bottom {
    text-align: center;
    font-size: .8rem;
    color: rgba(168,200,232,.4);
    line-height: 1.6;
    padding-top: .75rem;
}

.footer-bottom a {
    color: var(--logo-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
    color: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- Tablet (≤900px) ------------------------------------- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .stat-cards {
        grid-template-columns: repeat(4, 1fr);
        min-width: unset;
    }

    .hero-content {
        margin-top: 2rem;
    }
}

/* ---- Nav hamburger (≤768px) ------------------------------ */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    #main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10,22,40,.97);
        border-top: 1px solid rgba(168,200,232,.15);
        padding: 1rem 1.5rem 1.5rem;
        z-index: 99;
    }

    #main-nav.nav-open {
        display: block;
    }

    #main-nav ul {
        flex-direction: column;
        gap: .25rem;
    }

    #main-nav a {
        font-size: 1rem;
        padding: .75rem 1rem;
        border-radius: 8px;
    }
}

/* ---- Mobile (≤640px) ------------------------------------- */
@media (max-width: 640px) {
    :root { font-size: 16px; }

    .site-header { position: sticky; }

    /* Hide bunting on mobile — too small to look good */
    .bunting-svg {
        display: none;
    }

    /* Hero — less top padding, no extra bunting gap needed */
    .hero {
        padding: 2.5rem 1.25rem 4.5rem;
    }

    .hero-content {
        margin-top: 0;
    }

    .hero-sub br { display: none; }

    /* Stack hero buttons full-width on small phones */
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: .6rem;
    }

    .hero-ctas .btn {
        text-align: center;
        min-height: 48px;
        display: flex;
        align-items: center;
        white-space: nowrap;
        justify-content: center;
    }

    /* Ensure all buttons meet touch target minimum */
    .btn {
        min-height: 44px;
    }

    .section { padding: 3rem 1.25rem; }

    .stat-cards {
        grid-template-columns: 1fr 1fr;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .year-list {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-links {
        margin-left: 0;
    }

    .footer-bottom {
        font-size: .75rem;
        line-height: 1.9;
    }

    /* Gallery tweaks */
    .gallery-item { flex: 0 0 260px; height: 190px; }
    .gallery-scroll { padding: .5rem 1.25rem 1.25rem; gap: .75rem; }
    .year-gallery-section .gallery-header { padding: 0 1.25rem 1rem; }
    .gallery-hint { padding: .5rem 1.25rem 0; }
    .year-hero { padding: 4rem 1.25rem 4rem; }

    /* Lightbox: hide nav arrows on mobile — swipe gesture used instead */
    .lb-prev,
    .lb-next { display: none; }

    /* Show swipe hint below counter */
    .lb-counter::after {
        content: " · velc, lai pārietu";
        color: rgba(168,200,232,.35);
        font-size: .75rem;
    }
}

/* ---- Very small phones (≤400px) -------------------------- */
@media (max-width: 400px) {
    .hero-title {
        font-size: 2.6rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .year-link {
        padding: .9rem 1rem;
        gap: .75rem;
    }

    .year-num {
        font-size: 1.3rem;
    }

    .ptype-name {
        font-size: .85rem;
    }

    .ptype-links {
        gap: .35rem;
    }

    .ptype-link {
        font-size: .72rem;
        padding: .28rem .6rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    html { scroll-behavior: auto; }
}

/* High contrast / forced colours */
@media (forced-colors: active) {
    .btn-primary, .btn-outline {
        border: 2px solid ButtonText;
    }
}

/* ============================================================
   GADA LAPAS — year-specific pages
   ============================================================ */

.year-hero {
    background: linear-gradient(170deg, var(--night) 0%, #0e2044 55%, #1a3a6b 100%);
    padding: 5rem 1.5rem 4.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.year-hero .stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.year-hero-back {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    color: rgba(168,200,232,.55);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .35rem;
    transition: color var(--transition);
    z-index: 3;
}
.year-hero-back:hover { color: var(--logo-blue); }

.year-hero-num {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(168,200,232,.55);
    margin-bottom: .6rem;
    position: relative;
    z-index: 2;
}

.year-hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--white);
    position: relative;
    z-index: 2;
    line-height: 1.05;
    margin-bottom: .75rem;
}

.year-hero-city {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .95rem;
    font-weight: 600;
    color: rgba(168,200,232,.7);
    position: relative;
    z-index: 2;
}

.year-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 60px;
}
.year-hero-wave svg { width: 100%; height: 100%; display: block; }

/* Content placeholder */
.year-content {
    padding: 4rem 1.5rem;
    background: var(--azure);
}

.year-content .container {
    max-width: var(--max-w);
    margin: 0 auto;
}

.year-content h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--night);
    margin-bottom: 1rem;
    display: inline-block;
}
.year-content h2::after {
    content: "";
    display: block;
    height: 4px;
    width: 48px;
    background: var(--accent);
    border-radius: 4px;
    margin-top: .4rem;
}

/* Actual year text content */
.year-text p {
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.8;
    margin-bottom: 1.1rem;
}
.year-text p:last-child { margin-bottom: 0; }

/* Placeholder (still used when no text yet) */
.year-placeholder {
    background: var(--white);
    border: 2px dashed var(--azure-dk);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 1rem;
    margin-top: 1.5rem;
}

/* External links (photo / video atskats) */
.year-ext-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.year-ext-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--white);
    border: 2px solid var(--azure-dk);
    border-radius: 50px;
    padding: .55rem 1.2rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition),
                color var(--transition), transform var(--transition);
}

.year-ext-link:hover,
.year-ext-link:focus-visible {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

/* Responsive YouTube embed */
.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-top: 2.5rem;
    box-shadow: var(--shadow-md);
}
.video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* Gallery */
.year-gallery-section {
    background: var(--white);
    padding: 3rem 0 3.5rem;
    border-top: 1px solid var(--azure-dk);
}

.year-gallery-section .gallery-header {
    padding-left:  max(1.5rem, calc((100% - var(--max-w)) / 2 + 1.5rem));
    padding-right: max(1.5rem, calc((100% - var(--max-w)) / 2 + 1.5rem));
    padding-bottom: 1.25rem;
}

.year-gallery-section h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--night);
    display: inline-block;
}
.year-gallery-section h2::after {
    content: "";
    display: block;
    height: 4px;
    width: 40px;
    background: var(--accent);
    border-radius: 4px;
    margin-top: .35rem;
}

.gallery-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    /* Align with the page container on all screen sizes */
    padding-top: .5rem;
    padding-bottom: 1.25rem;
    padding-left:  max(1.5rem, calc((100% - var(--max-w)) / 2 + 1.5rem));
    padding-right: max(1.5rem, calc((100% - var(--max-w)) / 2 + 1.5rem));
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--azure-dk) transparent;
}

.gallery-scroll::-webkit-scrollbar { height: 6px; }
.gallery-scroll::-webkit-scrollbar-track { background: transparent; }
.gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--azure-dk);
    border-radius: 3px;
}

.gallery-item {
    flex: 0 0 320px;
    height: 230px;
    border-radius: var(--radius);
    scroll-snap-align: start;
    overflow: hidden;
    background: var(--azure);
    border: 2px solid var(--azure-dk);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: .85rem;
    gap: .5rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-placeholder-icon {
    font-size: 2rem;
    opacity: .35;
}

.gallery-hint {
    text-align: center;
    font-size: .8rem;
    color: var(--muted);
    padding-top: .5rem;
    opacity: .55;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(5, 12, 28, 0.97);  /* near-opaque so focus glows can't bleed through */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.lb-overlay.open {
    display: flex;
    animation: lbFadeIn .18s ease;
}

@keyframes lbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lb-img-wrap {
    position: relative;
    max-width: min(90vw, 1100px);
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-img-wrap img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0,0,0,.6);
    display: block;
    animation: lbImgIn .2s ease;
}

@keyframes lbImgIn {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}

.lb-caption {
    color: rgba(196,220,245,.65);
    font-size: .9rem;
    text-align: center;
    max-width: 600px;
}

.lb-counter {
    font-size: .8rem;
    color: rgba(168,200,232,.4);
    letter-spacing: .08em;
}

/* Close button */
.lb-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: var(--white);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    z-index: 1010;
}
.lb-close:hover { background: rgba(255,255,255,.2); }
.lb-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Prev / Next */
.lb-prev,
.lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: var(--white);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
    z-index: 1010;
}
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }

.lb-prev:hover { background: rgba(255,255,255,.2); transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { background: rgba(255,255,255,.2); transform: translateY(-50%) translateX(2px); }
.lb-prev:focus-visible,
.lb-next:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.lb-prev:disabled,
.lb-next:disabled { opacity: .25; cursor: default; }
.lb-prev:disabled:hover { transform: translateY(-50%); background: rgba(255,255,255,.1); }
.lb-next:disabled:hover { transform: translateY(-50%); background: rgba(255,255,255,.1); }

/* Make gallery items look clickable */
.gallery-item {
    -webkit-tap-highlight-color: transparent;  /* kill mobile blue flash */
}
.gallery-item:focus {
    outline: none;         /* hide mouse-click focus ring (blue tint source) */
}
.gallery-item:focus-visible {
    outline: 3px solid var(--accent);  /* keep ring for keyboard users */
    outline-offset: 2px;
}
.gallery-item img {
    cursor: zoom-in;
    transition: transform var(--transition), filter var(--transition);
    pointer-events: none;  /* clicks go to the parent item, not the img */
}
.gallery-item:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* Lightbox img fade on swap */
.lb-main-img {
    transition: opacity .15s ease;
}

/* Print */
@media print {
    .site-header, .hero-ctas, .nav-toggle { display: none; }
    body { background: white; color: black; }
    a { color: black; text-decoration: underline; }
}
