/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    color: #666;
    background: #fff;
    line-height: 1.7em;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: #ae0f0a; text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3,h4,h5,h6 {
    font-family: 'Oswald', Arial, sans-serif;
    color: #333;
    line-height: 1.2em;
    padding-bottom: 10px;
    font-weight: 500;
}
h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p { padding-bottom: 1em; }
p:last-child { padding-bottom: 0; }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

/* ===== CONTAINER ===== */
.container {
    width: 85%;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
}

/* ===== HEADER ===== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80px;
}

.logo-container {
    flex-shrink: 0;
    min-width: 0;
    overflow: hidden;
}

#site-logo {
    height: 55px;
    width: auto;
    max-width: 260px;
    display: block;
}

/* ===== NAV ===== */
#main-nav { flex: 1; display: flex; justify-content: flex-end; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 14px;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: #ae0f0a;
    text-decoration: none;
}

/* Dropdown */
.nav-menu .has-children:hover .sub-menu { display: block; }

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    z-index: 1001;
}

.sub-menu li a {
    display: block;
    padding: 10px 18px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s, color 0.2s;
}

.sub-menu li a:hover {
    background: #ae0f0a;
    color: #fff;
    text-decoration: none;
}

/* ===== MOBILE TOGGLE ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 10px 0;
}

.mobile-menu.open { display: block; }

.mobile-menu ul li a {
    display: block;
    padding: 12px 5%;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.2s;
}

.mobile-menu ul li a:hover {
    color: #ae0f0a;
    text-decoration: none;
}

/* ===== PAGE CONTAINER ===== */
#page-container { padding-top: 80px; }

/* ===== HERO SECTION ===== */
.section-hero { width: 100%; overflow: hidden; }

.hero-row {
    display: flex;
    align-items: stretch;
    min-height: 420px;
}

.hero-image-col {
    flex: 0 0 50%;
    overflow: hidden;
}

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

.hero-text-col {
    flex: 0 0 50%;
    background: #ddd;
    padding: 60px 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.hero-heading {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    line-height: 1.5em;
    padding-bottom: 0;
}

/* ===== BUTTON ===== */
.btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border: 3px solid #ae0f0a;
    border-radius: 40px;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ae0f0a;
    background: transparent;
    transition: all 0.2s;
    align-self: flex-start;
    text-decoration: none;
}

.btn-outline:hover {
    background: #ae0f0a;
    color: #fff;
    text-decoration: none;
}

.btn-solid {
    display: inline-block;
    padding: 12px 30px;
    background: #ae0f0a;
    color: #fff;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.btn-solid:hover {
    background: #8a0a08;
    color: #fff;
    text-decoration: none;
}

/* ===== BLURBS SECTION ===== */
.section-blurbs {
    padding: 40px 0;
    background: #fff;
}

.blurbs-row {
    display: flex;
    gap: 0;
}

.blurb-item {
    flex: 1;
    padding: 20px 30px;
    text-align: center;
    border-right: 1px solid #e5e5e5;
}

.blurb-item:last-child { border-right: none; }

.blurb-title {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 0;
}

/* ===== PROJECTS SECTIONS ===== */
.section-projects { padding: 50px 0; }
.section-grey { background: #aaaaaa; }
.section-white { background: #fff; }

.section-title {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 0;
}

.section-white .section-title { color: #333; }

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

.project-card {
    background: #fff;
    border: 5px solid #fff;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-img-wrap {
    margin: -5px -5px 0;
    overflow: hidden;
}

.project-img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card:hover .project-img-wrap img { transform: scale(1.04); }

.project-title {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding: 12px 15px 8px;
    line-height: 1.4em;
}

.project-title a {
    color: #333;
    transition: color 0.2s;
}

.project-title a:hover { color: #ae0f0a; text-decoration: none; }

.project-excerpt {
    padding: 0 15px 15px;
    font-size: 13px;
    color: #666;
}

.project-excerpt p { padding-bottom: 0; }

/* ===== INNER PAGE HEADER ===== */
.page-header {
    background: #ae0f0a;
    padding: 50px 0 40px;
    text-align: center;
    margin-top: 0;
}

.page-header h1 {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 0;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 60px 0;
    background: #fff;
}

.page-content h2 {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 24px;
    color: #ae0f0a;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.page-content h3 {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 20px;
    color: #333;
    font-weight: 500;
    margin-bottom: 12px;
    margin-top: 30px;
}

.page-content p { color: #555; line-height: 1.8em; margin-bottom: 1em; }

.page-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1em;
    color: #555;
    line-height: 1.8em;
}

/* ===== ABOUT PAGE ===== */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.about-intro img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 2px;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.value-card {
    background: #f9f9f9;
    border-top: 4px solid #ae0f0a;
    padding: 30px 25px;
    text-align: center;
}

.value-card h3 {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 20px;
    color: #ae0f0a;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 0;
}

.value-card p { font-size: 14px; color: #666; margin: 0; }

.about-team-section {
    background: #f5f5f5;
    padding: 50px 0;
    margin: 0 -9999px;
    padding-left: 9999px;
    padding-right: 9999px;
}

.about-cta {
    background: #ae0f0a;
    padding: 50px;
    text-align: center;
    margin-top: 50px;
    border-radius: 2px;
}

.about-cta h2 {
    color: #fff;
    border-bottom: none;
    font-size: 28px;
    margin-bottom: 10px;
}

.about-cta p { color: rgba(255,255,255,0.85); margin-bottom: 25px; }

.about-cta .btn-outline {
    border-color: #fff;
    color: #fff;
}

.about-cta .btn-outline:hover {
    background: #fff;
    color: #ae0f0a;
}

/* ===== BOARD (ZARZĄD) ===== */
.board-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.board-member {
    background: #f9f9f9;
    border-left: 4px solid #ae0f0a;
    padding: 30px;
}

.board-member h3 {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 20px;
    color: #ae0f0a;
    margin-top: 0;
    margin-bottom: 5px;
    padding-bottom: 0;
}

.board-member .role {
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin-bottom: 12px;
    display: block;
}

.board-member p { font-size: 14px; color: #555; margin: 0; }

/* ===== PROJECTS PAGE ===== */
.project-detail {
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 2px;
}

.project-detail-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
}

.project-detail-img {
    overflow: hidden;
}

.project-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px;
}

.project-detail-text {
    padding: 30px 35px;
}

.project-detail-text h2 {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    border-bottom: none;
    padding-bottom: 0;
}

.project-detail-text .project-meta {
    font-size: 12px;
    color: #ae0f0a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
    font-weight: 600;
}

.project-detail-text p { font-size: 14px; color: #555; margin: 0; }

.project-tag {
    display: inline-block;
    background: #ae0f0a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 12px;
}

.project-tag.completed {
    background: #777;
}

/* ===== PUBLICATIONS PAGE ===== */
.publication-list { margin-top: 20px; }

.publication-item {
    border-bottom: 1px solid #eee;
    padding: 25px 0;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    align-items: start;
}

.pub-year {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ae0f0a;
    text-align: center;
}

.pub-info h3 {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 17px;
    color: #333;
    margin-top: 0;
    margin-bottom: 6px;
    padding-bottom: 0;
}

.pub-info p { font-size: 13px; color: #777; margin: 0; }

/* ===== ACTIONS PAGE ===== */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.action-card {
    background: #f9f9f9;
    padding: 30px;
    border-bottom: 3px solid #ae0f0a;
}

.action-card h3 {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 18px;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 0;
}

.action-card p { font-size: 14px; color: #666; margin: 0; }

/* ===== CONTACT PAGE ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    border-bottom: 2px solid #ae0f0a;
    color: #333;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.contact-detail {
    display: flex;
    gap: 15px;
    margin-bottom: 22px;
    align-items: flex-start;
}

.contact-icon {
    width: 42px;
    height: 42px;
    background: #ae0f0a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.contact-detail-text strong {
    display: block;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    margin-bottom: 2px;
}

.contact-detail-text span, .contact-detail-text a {
    font-size: 14px;
    color: #666;
}

.contact-detail-text a:hover { color: #ae0f0a; }

.contact-legal {
    background: #f9f9f9;
    padding: 20px 25px;
    margin-top: 30px;
    border-left: 3px solid #ae0f0a;
    font-size: 13px;
    color: #666;
    line-height: 1.9em;
}

.contact-legal strong {
    display: block;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

.contact-form-section h2 {
    border-bottom: 2px solid #ae0f0a;
    color: #333;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    border-radius: 2px;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ae0f0a;
}

.form-group textarea {
    height: 160px;
    resize: vertical;
}

#formStatus { margin-top: 15px; font-size: 14px; }

/* ===== MAP PLACEHOLDER ===== */
.map-placeholder {
    background: #eee;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    border: 1px solid #ddd;
    color: #999;
    font-size: 14px;
    font-family: 'Oswald', Arial, sans-serif;
    text-align: center;
    flex-direction: column;
    gap: 10px;
}

/* ===== FOOTER ===== */
#main-footer {
    background: #222;
    color: #ccc;
    font-size: 13px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
    gap: 20px;
}

.footer-col { flex: 1; }
.footer-logo-col { text-align: center; flex: 0 0 auto; }

.footer-logo {
    height: 36px;
    width: auto;
    opacity: 0.7;
    filter: brightness(5);
}

.footer-center {
    text-align: center;
    line-height: 2em;
}

.footer-center a { color: #ccc; }
.footer-center a:hover { color: #ae0f0a; }

.footer-bottom {
    background: #111;
    padding: 18px 0;
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* ===== ANIMATIONS ===== */
[data-animate] { opacity: 0; transform: scale(0.9); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].animated { opacity: 1; transform: scale(1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    #main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero-row { flex-direction: column; }
    .hero-image-col, .hero-text-col { flex: 0 0 100%; }
    .hero-text-col { padding: 40px 30px; }
    .blurbs-row { flex-direction: column; }
    .blurb-item { border-right: none; border-bottom: 1px solid #e5e5e5; }
    .blurb-item:last-child { border-bottom: none; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .about-intro { grid-template-columns: 1fr; }
    .about-values { grid-template-columns: repeat(2, 1fr); }
    .board-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .project-detail-inner { grid-template-columns: 1fr; }
    .actions-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 767px) {
    .projects-grid { grid-template-columns: 1fr; }
    .about-values { grid-template-columns: 1fr; }
    .hero-heading { font-size: 16px; }
    .hero-text-col { padding: 30px 20px; }
    .page-header h1 { font-size: 24px; }
    #site-logo { height: 40px; max-width: 180px; }
    .publication-item { grid-template-columns: 1fr; }
    .pub-year { text-align: left; font-size: 18px; }
}

@media (max-width: 479px) {
    .header-inner { padding: 12px 4%; }
    .container { width: 92%; }
}
