﻿/* =============================================
   TWOJA SPRAWA FOUNDATION — STYLES
   ============================================= */

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

:root {
  --navy:      #1a2740;
  --navy-dark: #111d30;
  --gold:      #c9a84c;
  --gold-light:#e8c97a;
  --white:     #ffffff;
  --off-white: #f7f6f3;
  --light-bg:  #f2f1ed;
  --text:      #2c2c2c;
  --text-mid:  #555555;
  --text-light:#888888;
  --border:    #e0ddd7;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
  --radius:    6px;
  --header-h:  72px;
}

html { scroll-behavior: smooth; }

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

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

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

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

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

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

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

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

.btn-secondary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--off-white);
  color: var(--navy);
}

.btn-full { width: 100%; text-align: center; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--navy-dark);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
  overflow: hidden;
}
.logo-main {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-sub {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.main-nav a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* =============================================
   HERO (HOME)
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 29, 48, 0.65);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 24px;
  max-width: 820px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  max-width: 580px;
  margin: 0 auto 2.25rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   PAGE HERO (INNER PAGES)
   ============================================= */
.page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: var(--header-h);
  background: var(--navy-dark);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 29, 48, 0.72);
  z-index: 1;
  pointer-events: none;
}

.mission-page-hero {
  background-image: url('images/mission-aid-1.jpg');
  background-size: cover;
  background-position: center;
}

.activities-page-hero {
  background-image: url('images/activities-team.jpg');
  background-size: cover;
  background-position: center;
}

.contact-page-hero {
  background-image: url('images/hero-warsaw.jpg');
  background-size: cover;
  background-position: center;
}

/* About page uses a CSS gradient as background for variety */
.page-hero:not(.mission-page-hero):not(.activities-page-hero):not(.contact-page-hero) {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #2a3f6f 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 24px;
}

.page-hero-content h1 {
  color: var(--white);
  margin: 0.5rem 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.page-hero-content p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  margin: 0;
  max-width: 600px;
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: 80px 0;
}

.bg-light { background: var(--light-bg); }

.bg-dark-alt {
  background: var(--navy-dark);
  padding: 80px 0;
}

/* =============================================
   INTRO STRIP
   ============================================= */
.intro-strip {
  background: var(--navy);
  padding: 56px 0;
}

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

.intro-item {
  text-align: center;
  padding: 0 16px;
}

.intro-icon {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.intro-item h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.intro-item p {
  color: rgba(255,255,255,0.68);
  font-size: 0.9rem;
  margin: 0;
}

/* =============================================
   TWO COL LAYOUT
   ============================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.two-col-text { display: flex; flex-direction: column; gap: 0; }
.two-col-text h2 { margin-bottom: 1rem; }
.two-col-text p { margin-bottom: 0.85rem; }
.two-col-text .btn { margin-top: 1.25rem; align-self: flex-start; }

/* =============================================
   CARDS GRID
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: left;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card-icon {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.65;
}

/* =============================================
   VALUES GRID
   ============================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 2.5rem;
  text-align: left;
}

.value-item {
  padding: 32px 24px;
  border-top: 3px solid var(--gold);
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.value-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.value-item h3 { margin-bottom: 0.5rem; }
.value-item p { font-size: 0.9rem; margin: 0; }

/* =============================================
   PILLARS GRID
   ============================================= */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 2.5rem;
  text-align: left;
}

.pillar-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
}

.pillar-icon {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.pillar-item h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.pillar-item p { font-size: 0.88rem; margin: 0; }

/* =============================================
   MISSION STATEMENT
   ============================================= */
.mission-statement-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.mission-lead {
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

/* =============================================
   VISION QUOTE
   ============================================= */
.vision-quote {
  background: var(--navy);
  padding: 64px 24px;
}

.vision-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-style: italic;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.65;
  position: relative;
  padding: 0 2rem;
}

.vision-quote blockquote::before,
.vision-quote blockquote::after {
  content: '"';
  font-size: 4rem;
  color: var(--gold);
  line-height: 0;
  position: absolute;
}
.vision-quote blockquote::before { top: 0.5rem; left: -0.5rem; }
.vision-quote blockquote::after  { content: '"'; bottom: -1rem; right: -0.5rem; }

/* =============================================
   ACTIVITIES PAGE
   ============================================= */
.activity-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.activity-list {
  margin-top: 1rem;
  padding-left: 0;
}

.activity-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}

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

/* =============================================
   REGISTRATION GRID
   ============================================= */
.reg-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.reg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.reg-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.reg-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  position: relative;
  background: url('images/volunteers-sorting.jpg') center/cover no-repeat;
  padding: 80px 0;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 29, 48, 0.82);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

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

.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { margin-bottom: 2rem; }

.contact-detail {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail h4 {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}
.contact-detail p {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.65;
}
.contact-detail a {
  color: var(--navy);
  font-weight: 500;
}
.contact-detail a:hover { color: var(--gold); }

/* FORM */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  background: var(--white);
}

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

#formStatus p { font-size: 0.9rem; margin: 0; }

/* MAP */
.map-section { line-height: 0; }
.map-embed { width: 100%; }
.map-embed iframe { display: block; width: 100%; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy-dark);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand .logo-main { font-size: 1rem; }
.footer-brand .logo-sub { margin-bottom: 12px; }
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
  font-weight: 300;
}

.footer-nav h4,
.footer-contact h4,
.footer-legal h4 {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }

.footer-contact p,
.footer-legal p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin: 0 0 0.5rem;
}
.footer-contact a {
  color: rgba(255,255,255,0.65);
}
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .cards-grid,
  .values-grid,
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  /* MOBILE NAV */
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy-dark);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .main-nav.open {
    max-height: 360px;
    padding: 12px 0 20px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .main-nav a {
    display: block;
    padding: 13px 24px;
    border-bottom: none;
    font-size: 0.88rem;
  }

  /* TWO COL */
  .two-col,
  .two-col.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }

  .two-col-image img { height: 280px; }

  /* INTRO STRIP */
  .intro-grid { grid-template-columns: 1fr; gap: 28px; }

  /* CARDS */
  .cards-grid,
  .values-grid,
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  /* CONTACT */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrap { padding: 24px; }

  /* FOOTER */
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* SECTION */
  .section { padding: 56px 0; }

  /* REG GRID */
  .reg-grid { gap: 28px; }
}

@media (max-width: 480px) {
  .hero-subtitle { font-size: 0.95rem; }
  .hero-buttons { flex-direction: column; align-items: center; }

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

  .page-hero { min-height: 260px; }

  .reg-grid { flex-direction: column; gap: 20px; }

  .vision-quote blockquote { font-size: 1rem; padding: 0 1rem; }
}
