/* =============================================
   FUNDACJA CYBERETYKA — Main Stylesheet
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&amp;family=Inter:wght@300;400;500;600;700&amp;display=swap');

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

:root {
  --navy:       #0d1b2e;
  --navy-mid:   #162840;
  --blue:       #1a4a7a;
  --blue-light: #2563a8;
  --accent:     #c8a84b;
  --accent-lt:  #e8c96a;
  --white:      #ffffff;
  --off-white:  #f5f7fa;
  --gray-lt:    #e8ecf2;
  --gray:       #8a96a8;
  --text:       #1e2a3a;
  --text-lt:    #4a5568;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(13,27,46,0.10);
  --shadow-md:  0 8px 40px rgba(13,27,46,0.15);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

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

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

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

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text-lt); }
p:last-child { margin-bottom: 0; }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-accent { color: var(--accent); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  color: var(--text-lt);
}

.divider {
  width: 56px;
  height: 3px;
  background: var(--accent);
  margin: 16px 0 32px;
}

.divider-center {
  margin: 16px auto 32px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-lt);
  color: var(--navy);
  border-color: var(--accent-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,168,75,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--blue-light);
  color: var(--white);
  border-color: var(--blue-light);
}
.btn-blue:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  transition: background var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.logo-top {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}

.logo-main {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-main span {
  color: var(--accent);
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.10);
}

nav.main-nav a.active {
  color: var(--accent);
}

.nav-contact-btn {
  background: var(--accent) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
}
.nav-contact-btn:hover {
  background: var(--accent-lt) !important;
  color: var(--navy) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

/* =============================================
   PAGE WRAPPER (offset for fixed header)
   ============================================= */
.page-content { padding-top: 72px; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,46,0.88) 0%, rgba(26,74,122,0.75) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(200,168,75,0.20);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  max-width: 700px;
}

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

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: var(--navy);
  padding: 64px 0 52px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(200,168,75,0.07);
  pointer-events: none;
}

.page-hero-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.825rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* =============================================
   CARDS
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-body { padding: 28px; }
.card-body h3 { margin-bottom: 10px; color: var(--navy); }
.card-body p { font-size: 0.95rem; }

/* =============================================
   ICON BOXES
   ============================================= */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.icon-box {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
  transition: all var(--transition);
}

.icon-box:hover {
  border-top-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.icon-box-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-box-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--white);
}

.icon-box h3 { margin-bottom: 10px; font-size: 1.15rem; }
.icon-box p { font-size: 0.925rem; }

/* =============================================
   STAT STRIP
   ============================================= */
.stat-strip {
  background: var(--navy);
  padding: 52px 0;
}

.stat-strip .stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item .stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
}

/* =============================================
   TWO-COLUMN SPLIT
   ============================================= */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.split-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* =============================================
   QUOTE / HIGHLIGHT BOX
   ============================================= */
.highlight-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 12px;
  padding: 48px 48px;
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 24px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14rem;
  color: rgba(200,168,75,0.08);
  line-height: 1;
  pointer-events: none;
}

.highlight-box p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  font-style: italic;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

/* =============================================
   TIMELINE
   ============================================= */
.timeline { position: relative; padding-left: 32px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--blue-light));
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--accent);
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline-item h4 { margin-bottom: 6px; }
.timeline-item p { font-size: 0.925rem; margin: 0; }

/* =============================================
   VALUES LIST
   ============================================= */
.values-list { list-style: none; }

.values-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-lt);
}

.values-list li:last-child { border-bottom: none; }

.values-icon {
  width: 36px;
  height: 36px;
  background: rgba(200,168,75,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.values-text h4 { font-size: 1rem; margin-bottom: 4px; }
.values-text p { font-size: 0.9rem; margin: 0; }

/* =============================================
   ACTIVITIES LIST
   ============================================= */
.activity-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.activity-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue-light);
  transition: all var(--transition);
}

.activity-card:hover {
  border-left-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.activity-card .activity-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-lt);
  line-height: 1;
  margin-bottom: 12px;
}

.activity-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.activity-card p { font-size: 0.925rem; }

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

.contact-info h3 { margin-bottom: 20px; }

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

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.contact-detail-text h4 { font-size: 0.85rem; color: var(--accent); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.contact-detail-text p, .contact-detail-text a { font-size: 0.95rem; color: var(--text-lt); margin: 0; }
.contact-detail-text a:hover { color: var(--blue-light); }

.legal-box {
  background: var(--off-white);
  border-radius: 10px;
  padding: 24px;
  margin-top: 32px;
}

.legal-box h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
}

.legal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-lt);
  font-size: 0.875rem;
}

.legal-row:last-child { border-bottom: none; padding-bottom: 0; }
.legal-row .label { color: var(--gray); font-weight: 500; }
.legal-row .value { color: var(--text); font-weight: 600; font-family: 'Inter', Arial, sans-serif; }

/* Form */
.form-card {
  background: var(--white);
  border-radius: 14px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-card h3 { margin-bottom: 8px; }
.form-card .form-subtitle { font-size: 0.95rem; color: var(--text-lt); margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-lt);
  border-radius: var(--radius);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37,99,168,0.12);
}

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

#formStatus { margin-top: 12px; font-size: 0.925rem; }
#formStatus p { margin: 0; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
}

.footer-top {
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.footer-brand .logo { margin-bottom: 18px; }

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-col h5 {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

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

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.825rem;
  color: rgba(255,255,255,0.4);
}

/* =============================================
   BG UTILITIES
   ============================================= */
.bg-navy { background: var(--navy); }
.bg-navy-mid { background: var(--navy-mid); }
.bg-off-white { background: var(--off-white); }
.bg-blue { background: var(--blue); }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 { color: var(--white); margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* =============================================
   PHOTO BANNER (purpose.html)
   ============================================= */
.photo-banner {
  padding: 0;
}
.photo-banner-img {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}
.photo-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.photo-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,40,0.72) 0%, rgba(10,20,40,0.15) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: 36px;
}
.photo-banner-caption {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  max-width: 680px;
  margin: 0;
}

/* =============================================
   IMPACT IMAGE BLOCK (about.html)
   ============================================= */
.impact-image-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
}
.impact-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  height: 380px;
}
.impact-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.impact-image-wrap:hover img {
  transform: scale(1.03);
}
.impact-image-caption h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  color: var(--navy-deep);
  margin: 10px 0 16px;
  line-height: 1.3;
}
.impact-image-caption p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 1rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .split-section { grid-template-columns: 1fr; gap: 36px; }
  .photo-banner-img { height: 280px; }
  .impact-image-block { grid-template-columns: 1fr; }
  .impact-image-wrap { height: 280px; }
  .split-section.reverse { direction: ltr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .activity-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav.main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy-mid); flex-direction: column; padding: 20px 24px; gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 12px 16px; border-radius: var(--radius); width: 100%; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .highlight-box { padding: 32px 24px; }
  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .hero { min-height: 520px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .stat-strip .stats-row { grid-template-columns: 1fr 1fr; }
  .logo-top { display: none; }
}
