/* ===== INSTYTUT JANA OLSZEWSKIEGO - Main Stylesheet ===== */

:root {
  --navy: #1a2744;
  --navy-dark: #0f1a30;
  --gold: #c8a84b;
  --gold-light: #e0c06a;
  --red: #b22222;
  --white: #ffffff;
  --off-white: #f8f6f1;
  --light-gray: #f0ede6;
  --mid-gray: #888888;
  --dark-gray: #333333;
  --text: #2c2c2c;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--navy-dark);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

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

.logo-block {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img {
  height: 52px;
  width: auto;
}

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

.logo-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--gold);
  color: var(--navy-dark);
}

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

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ===== PAGE WRAPPER ===== */
.page-content {
  padding-top: 80px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,18,40,0.82) 0%, rgba(26,39,68,0.72) 60%, rgba(180,30,30,0.25) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 3rem 2rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.35rem 1.2rem;
  margin-bottom: 1.6rem;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.4rem;
  text-shadow: 2px 2px 12px rgba(0,0,0,0.6);
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255,255,255,0.88);
  max-width: 640px;
  margin: 0 auto 2.2rem;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2.4rem;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2.4rem;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 2px;
  margin-left: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== SECTION STYLES ===== */
section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 2rem;
}

.section-divider.center {
  margin-left: auto;
  margin-right: auto;
}

/* ===== INTRO STRIP ===== */
.intro-strip {
  background: var(--navy);
  padding: 3.5rem 2rem;
  text-align: center;
}

.intro-strip p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--white);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.7;
  font-style: italic;
}

.intro-strip p span {
  color: var(--gold);
}

/* ===== ABOUT SECTION (HOME) ===== */
.about-home {
  background: var(--off-white);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 8px 8px 30px rgba(0,0,0,0.15);
}

.col-text p {
  color: #555;
  margin-bottom: 1.2rem;
  font-size: 0.97rem;
}

/* ===== PILLARS / CARDS ===== */
.pillars {
  background: var(--white);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.pillar-card {
  background: var(--off-white);
  border-top: 4px solid var(--gold);
  padding: 2.2rem 1.8rem;
  border-radius: 2px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--gold);
}

.pillar-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.pillar-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.65;
}

/* ===== ACTIVITIES PREVIEW ===== */
.activities-preview {
  background: var(--navy);
  color: var(--white);
}

.activities-preview .section-title {
  color: var(--white);
}

.act-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.act-item {
  background: rgba(255,255,255,0.06);
  border-left: 4px solid var(--gold);
  padding: 1.6rem 1.8rem;
  border-radius: 2px;
}

.act-item h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.act-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* ===== QUOTE BLOCK ===== */
.quote-block {
  background: var(--light-gray);
  text-align: center;
  padding: 5rem 2rem;
}

.quote-block blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.2rem, 2.8vw, 1.75rem);
  color: var(--navy);
  max-width: 780px;
  margin: 0 auto 1.2rem;
  line-height: 1.6;
  font-style: italic;
}

.quote-block cite {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* ===== IMAGE BANNER ===== */
.img-banner {
  position: relative;
  height: 340px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.img-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,18,40,0.65);
}

.img-banner-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.img-banner-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--white);
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  margin-bottom: 0.5rem;
}

.img-banner-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  position: relative;
  height: 340px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,18,40,0.88) 0%, rgba(10,18,40,0.4) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.page-hero-content .section-label {
  margin-bottom: 0.4rem;
}

.page-hero-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* ===== ABOUT PAGE ===== */
.bio-section {
  background: var(--off-white);
}

.bio-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: start;
}

.bio-img-wrap {
  position: sticky;
  top: 100px;
}

.bio-img-wrap img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 8px 8px 30px rgba(0,0,0,0.15);
}

.bio-caption {
  background: var(--navy);
  padding: 1.2rem 1.4rem;
  margin-top: 0;
}

.bio-caption h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.bio-caption p {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bio-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 2rem 0 0.8rem;
}

.bio-text h2:first-child {
  margin-top: 0;
}

.bio-text p {
  color: #555;
  margin-bottom: 1.1rem;
  font-size: 0.97rem;
}

/* ===== FOUNDATION INFO ===== */
.foundation-info {
  background: var(--white);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.info-card {
  border: 1px solid #e0ddd6;
  padding: 2rem 1.6rem;
  border-radius: 2px;
  text-align: center;
}

.info-card .info-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 0.5rem;
  display: block;
}

.info-card .info-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 700;
}

/* ===== PURPOSE PAGE ===== */
.purpose-lead {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 2rem;
}

.purpose-lead .section-title {
  color: var(--white);
}

.purpose-lead p {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  max-width: 760px;
}

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

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.value-item {
  background: var(--white);
  padding: 2.2rem 2rem;
  border-radius: 2px;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.value-item h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.value-item p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.65;
}

.mission-statement {
  background: var(--white);
}

.mission-box {
  background: var(--navy);
  padding: 3.5rem;
  border-radius: 2px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.mission-box p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: var(--white);
  line-height: 1.7;
  font-style: italic;
}

.mission-box p span {
  color: var(--gold);
}

/* ===== ACTIVITIES PAGE ===== */
.activities-full {
  background: var(--off-white);
}

.activity-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid #ddd;
}

.activity-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.activity-block.reverse {
  direction: rtl;
}

.activity-block.reverse > * {
  direction: ltr;
}

.activity-block img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 6px 6px 24px rgba(0,0,0,0.12);
}

.activity-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.activity-text p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.activity-text ul {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.activity-text ul li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  font-size: 0.92rem;
  color: #555;
}

.activity-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
}

.contact-detail-text strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 0.2rem;
}

.contact-detail-text span,
.contact-detail-text a {
  font-size: 0.97rem;
  color: var(--navy);
  text-decoration: none;
}

.contact-detail-text a:hover {
  color: var(--gold);
}

.reg-table {
  background: var(--navy);
  padding: 2rem;
  border-radius: 2px;
  margin-top: 2rem;
}

.reg-table h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
}

.reg-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.88rem;
}

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

.reg-row span:first-child {
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reg-row span:last-child {
  color: var(--white);
  font-weight: 600;
}

/* ===== CONTACT FORM ===== */
.contact-form-wrap {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-form-wrap h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 1.6rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--navy);
  background: var(--white);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-submit {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 0.9rem 2.4rem;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.btn-submit:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  padding: 1rem 1.4rem;
  border-radius: 2px;
  font-size: 0.92rem;
  margin-top: 1rem;
}

/* ===== MAP ===== */
.map-section {
  background: var(--white);
  padding: 0;
}

.map-section iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 4rem 2rem 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-title {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 1rem;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.55rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-col address {
  font-style: normal;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}

.footer-col address a {
  color: var(--gold);
  text-decoration: none;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ===== MOBILE NAV ===== */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 1rem 0 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 0;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.75rem 2rem;
    border-radius: 0;
    width: 100%;
    font-size: 0.9rem;
  }

  .two-col,
  .bio-grid,
  .contact-grid,
  .activity-block,
  .activity-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .pillars-grid,
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .act-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .bio-img-wrap {
    position: static;
  }
}

@media (max-width: 600px) {
  .pillars-grid,
  .info-grid,
  .footer-inner,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
    background-attachment: scroll;
  }

  .mission-box {
    padding: 2rem 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
