/* ============================================
   RESISTRANS – Website Styles
   Colors from logo: teal #3a8a8c, dark navy #1d3557
   ============================================ */

:root {
    --color-primary: #1d3557;
    --color-accent: #3a8a8c;
    --color-accent-light: #4ea8aa;
    --color-dark: #0d1b2a;
    --color-light: #f7f9fc;
    --color-gray: #6b7280;
    --color-gray-light: #e5e7eb;
    --color-white: #ffffff;
    --color-text: #1f2937;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.navbar.scrolled {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-logo img {
    height: auto;
    max-height: 64px;
    max-width: 90vw;
    width: auto;
    aspect-ratio: auto;
    padding: 3px 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-accent);
    background: rgba(58, 138, 140, 0.08);
}

.lang-switch {
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    letter-spacing: 0.5px;
}

.lang-switch:hover {
    background: var(--color-accent) !important;
    color: var(--color-white) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 50%, var(--color-accent) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    padding: 180px 24px 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-brand {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--color-white);
    opacity: 0.95;
    margin-bottom: 16px;
    line-height: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto 32px;
    font-weight: 300;
}

.hero-meta {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-meta span {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-support {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: var(--color-white);
}

.hero-support strong {
    font-weight: 600;
    opacity: 1;
    color: var(--color-white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 100px 0;
}

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

.section-dark {
    background: var(--color-light);
}

.section-accent {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-white);
}

.section-accent a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.section-accent a:hover {
    color: var(--color-white);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    color: inherit;
}

.section-dark .section-title,
.section-light .section-title {
    color: var(--color-primary);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
    color: var(--color-gray);
    font-size: 1.05rem;
    line-height: 1.7;
}

.section-accent .section-intro {
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   ABOUT
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 340px);
    gap: 48px;
    align-items: start;
}

.about-text p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--color-text);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.highlight-card {
    background: var(--color-light);
    padding: 16px 18px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-accent);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.highlight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.highlight-icon {
    width: 36px;
    height: 36px;
    background: rgba(58, 138, 140, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
}

.highlight-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gray);
    margin-bottom: 0;
    white-space: nowrap;
}

.highlight-card p {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
}

.highlight-card small {
    color: var(--color-gray);
    font-size: 0.85rem;
}

/* ============================================
   WORK PACKAGES
   ============================================ */

.wp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.wp-card {
    background: var(--color-white);
    padding: 36px 28px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.wp-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

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

.wp-card:hover::after {
    transform: scaleX(1);
}

.wp-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.wp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.wp-icon {
    width: 44px;
    height: 44px;
    background: rgba(58, 138, 140, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wp-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
}

.wp-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0;
    line-height: 1.4;
}

.wp-card p {
    color: var(--color-gray);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ============================================
   MEMBERS
   ============================================ */

.members-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.members-col h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-accent);
}

.members-list {
    list-style: none;
}

.members-list li {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding-left: 32px;
}

.members-list li::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}

.members-list li:hover {
    background: var(--color-light);
}

.members-list a {
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.members-list a:hover {
    color: var(--color-accent);
}

.ext-link {
    font-size: 0.8rem;
    color: var(--color-gray);
    opacity: 0;
    transition: var(--transition);
    flex-shrink: 0;
}

.members-list a:hover .ext-link {
    color: var(--color-accent);
    opacity: 1;
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 32px 16px;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ============================================
   PROJECT BOARD
   ============================================ */

.board-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.board-col h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-accent);
}

.board-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.board-member {
    background: var(--color-white);
    padding: 20px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.board-member:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}

.board-member strong {
    display: block;
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.board-member span {
    font-size: 0.88rem;
    color: var(--color-gray);
}

/* ============================================
   DOCUMENTS
   ============================================ */

.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.doc-card {
    display: block;
    background: var(--color-light);
    padding: 36px 32px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    color: var(--color-text);
}

.doc-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
}

.doc-icon {
    width: 52px;
    height: 52px;
    background: rgba(58, 138, 140, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.doc-icon svg {
    width: 26px;
    height: 26px;
    color: var(--color-accent);
}

.doc-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.doc-action {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
}

.doc-size {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--color-gray);
    font-weight: 400;
}

/* ============================================
   NEWS
   ============================================ */

.news-item {
    margin-bottom: 48px;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border-top: 3px solid var(--color-accent);
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-header {
    padding: 32px 40px 0;
}

.news-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    background: rgba(58, 138, 140, 0.1);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.4;
    margin-bottom: 24px;
}

/* Novinky – extra horní padding pro konzistenci s offsetem z homepage */
#novinky {
    background: var(--color-light);
    padding-top: 180px;
}

.news-body {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    padding: 0 40px 40px;
    align-items: start;
}

.news-text p {
    margin-bottom: 14px;
    line-height: 1.75;
    color: var(--color-text);
}

.news-meta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-gray-light);
    font-size: 0.9rem;
    color: var(--color-gray);
}

.news-image {
    margin: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--color-light);
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.news-image img:hover {
    transform: scale(1.03);
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(13, 27, 42, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox[aria-hidden="false"] {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox[aria-hidden="false"] .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-primary);
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 10000;
}

.lightbox-close:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: rotate(90deg);
}

.lightbox-trigger {
    cursor: zoom-in;
}

.lightbox-figure {
    margin: 0;
    text-align: center;
}

.lightbox-caption {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    max-width: 700px;
    padding: 0 20px;
    line-height: 1.5;
}

/* ============================================
   CONTACT
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 40px 32px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.contact-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.contact-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-address {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 12px;
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 32px;
    align-items: start;
}

.footer-center {
    display: flex;
    justify-content: center;
}

.footer-logo {
    height: auto;
    max-height: 38px;
    max-width: 60vw;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    margin-bottom: 8px;
    aspect-ratio: auto;
}

.footer-left p {
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-center p {
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.6;
}

.footer-logolink {
    display: block;
    height: auto;
    max-height: 105px;
    max-width: 90vw;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.2s ease;
    margin: 0 auto;
    aspect-ratio: auto;
}

.footer-logolink:hover {
    opacity: 1;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.footer-right a {
    font-size: 0.85rem;
    color: var(--color-accent-light);
}

.footer-right a:hover {
    color: var(--color-white);
}

/* ============================================
   ANIMATIONS
   ============================================ */

.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.wp-card:nth-child(2) .animate-in,
.animate-in:nth-child(2) { transition-delay: 0.1s; }
.wp-card:nth-child(3) .animate-in,
.animate-in:nth-child(3) { transition-delay: 0.2s; }
.animate-in:nth-child(4) { transition-delay: 0.3s; }

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

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .wp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-body {
        grid-template-columns: 1fr;
    }

    .news-image {
        order: -1;
    }

    .news-header,
    .news-body {
        padding-left: 24px;
        padding-right: 24px;
    }

    .news-header {
        padding-top: 24px;
        padding-bottom: 0;
    }

    .news-body {
        padding-bottom: 24px;
    }

    .news-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 1004px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 16px;
        text-align: center;
    }

    .hero {
        min-height: 90vh;
        padding: 140px 24px 60px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

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

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

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

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

    .hero-meta {
        flex-direction: column;
        gap: 12px;
    }
}
