/*
Theme Name: Sila Theme
Theme URI: Silajestwtobie.org
Author: Paweł Rohde
Author URI: http://Devaicode.com
Description: Custom theme for Fundacja Siła Jest w Tobie
Version: 1.0
Text Domain: sila-theme
*/

/* =========================
   VARIABLES / RESET
   ========================= */
:root{
  --bg: #ffffff;
  --text: #0c0c0c;
  --muted: #5f5f5f;
  --red: #e10600;
  --red-dark: #b10000;
  --soft: #f3dfe0;
  --header-bg: rgba(35, 35, 35, 0.55);
  --card: #ffffff;
  --border: rgba(0,0,0,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 24px;

  --container-wide: 1400px;
  --pad-x: 60px;
}

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

html, body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
  overflow-x: hidden;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
p{ margin:0 0 14px; }

.container{
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* =========================
   UTILITIES / TYPO
   ========================= */
.muted{ color: var(--muted); }
.divider{ height:1px; background: var(--border); margin: 22px 0; }
.red-line{ width:52px; height:3px; background: var(--red); margin: 18px 0 18px; border-radius:999px; }

.section{ position:relative; }
.section-lg{ padding: 90px 0; }
.section-soft{ background: var(--soft); }

.h1, .h2, .h3, .hero-title{
  letter-spacing:-0.02em;
  line-height:1.05;
}
.h1{ font-size: 46px; margin: 0 0 18px; }
.h2{ font-size: 42px; margin: 0 0 18px; }
.h3{ font-size: 22px; margin: 0 0 10px; }

.eyebrow{
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: rgba(255,255,255,0.75);
}
.eyebrow-dark{ color: rgba(0,0,0,0.55); }

/* =========================
   HEADER / NAV
   ========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

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

.brand{
  font-weight: 700;
  color:#fff;
  letter-spacing: 0.02em;
  display:flex;
  align-items:center;
  gap: 10px;
}

.nav-toggle{
  display:none;
  border: 0;
  background: transparent;
  color:#fff;
  font-size: 22px;
  padding: 10px;
  cursor:pointer;
}

.nav{ position:relative; }

/* Desktop menu */
.nav .menu{
  display:flex;
  align-items:center;
  gap: 18px;
  list-style:none;
  margin:0;
  padding:0;
}
.nav .menu li{ margin:0; }
.nav .menu a{
  color:#fff;
  font-size: 14px;
  opacity: 0.9;
}
.nav .menu a:hover{ opacity: 1; }

/* =========================
   LOGO (HEADER)
   ========================= */
.site-header .custom-logo-link{
  display:flex;
  align-items:center;
  line-height:0;
  height: 64px;
}

.site-header .custom-logo{
  display:block;
  height: 78px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain;
}

/* =========================
   BUTTONS
   ========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
  white-space:nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-red{ background: var(--red); color:#fff; }
.btn-red:hover{ background: var(--red-dark); }

.btn-outline-red{ background: transparent; color: var(--red); border-color: rgba(225,6,0,0.35); }
.btn-outline-red:hover{ border-color: rgba(225,6,0,0.7); }

.btn-white{ background: #fff; color: #111; }
.btn-white:hover{ background: rgba(255,255,255,0.9); }

.link-red{ color: var(--red); font-weight:700; font-size: 12px; letter-spacing:0.04em; }

/* =========================
   HERO
   ========================= */
.hero{
  position: relative;
  min-height: 720px;
  padding: 120px 0 0;
  overflow: visible;
}

.hero-bg{
  position:absolute;
  inset:0;
  background-size: cover;
  background-repeat: no-repeat;

  
  background-position: center 20%;

  filter: saturate(0.95);
  opacity: 0.9;
  z-index:0;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.32);
  z-index:1;
}

.hero .hero-grid{
  position: relative;
  z-index: 2;
  display:grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items:center;
  gap: 60px;
}

.hero-left{ max-width: 1000px; }

.hero-title{
  font-size: 60px;
  line-height: 1.05;
  margin: 0 0 14px;
  color:#fff;
}

.hero-lead{
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 20px;
}

.hero-arch{
  width: 640px;
  height: 640px;
  margin-left: auto;
  border-radius: 999px 999px 34px 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(140px);
  position: relative;
  z-index: 5;
}

.hero-arch img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center 20%;
}

/* =========================
   ARCH (GLOBAL)
   ========================= */
.hero-arch,
.arch{
  border-radius: 999px 999px 34px 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.12);
}

.hero-arch img,
.arch img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.arch-lg{
  width: 520px;
  max-width: 100%;
  height: 520px;
}
.arch-xl{
  width: 640px;
  max-width: 100%;
  height: 640px;
}

/* =========================
   OFFERINGS
   ========================= */
#offerings.section-lg{
  padding-top: 220px;
  padding-bottom: 90px;
}

.offerings-grid{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items:start;
}

.offerings-right{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 60px;
}

.offer-card{ padding: 0; }

.offer-num{
  color: var(--red);
  font-weight: 900;
  font-size: 34px;
  margin-bottom: 6px;
}

.offer-card h3{
  margin:0 0 10px;
  font-size: 14px;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.offer-card p{ color: var(--muted); }

/* =========================
   ABOUT
   ========================= */
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items:center;
}

/* =========================
   CTA
   ========================= */
.cta-box{
  background: #f47c78;
  color:#fff;
  border-radius: 56px;
  padding: 70px 60px;
  text-align:center;
  box-shadow: var(--shadow);
  max-width: 100%;
}
.cta-title{
  font-size: 46px;
  line-height:1.04;
  margin: 0 0 12px;
}
.cta-sub{ color: rgba(255,255,255,0.88); margin-bottom: 18px; }

/* =========================
   TESTIMONIALS
   ========================= */
.testimonials-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items:start;
}
.test-right{
  display:flex;
  flex-direction:column;
  gap: 18px;
}
.testimonial-card{
  background: var(--card);
  border-radius: 18px;
  border: 1px solid rgba(225,6,0,0.12);
  padding: 22px;
  box-shadow: 0 10px 20px rgba(225,6,0,0.06);
}
.stars{ color: var(--red); letter-spacing: 0.2em; font-size: 14px; margin-bottom: 10px; }
.quote{ margin: 0 0 14px; }
.author{ display:flex; align-items:center; gap: 10px; font-size: 12px; color: rgba(0,0,0,0.7); }
.author img{
  width: 28px; height: 28px;
  border-radius: 999px;
  object-fit:cover;
  background: rgba(0,0,0,0.06);
}

/* =========================
   VALUE
   ========================= */
.value-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items:center;
}
.value-item{
  display:flex;
  gap: 14px;
  padding: 10px 0;
}
.check{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(225,6,0,0.10);
  color: var(--red);
  font-weight: 900;
  flex: 0 0 26px;
}
.value-item h4{
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing:0.08em;
  text-transform:uppercase;
}
.value-item p{ margin:0; }

/* =========================
   BLOG / CONTENT
   ========================= */
.content a{ color: var(--red); }
.page-wrap, .post-wrap{ max-width: 920px; }
.post-thumb{ margin: 18px 0; border-radius: 18px; overflow:hidden; box-shadow: var(--shadow); }

.blog-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 22px;
}

.blog-card{
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.04);
}
.blog-card a{ display:block; padding: 16px; }
.blog-card img{ border-radius: 14px; margin-bottom: 12px; }

/* =========================
   REVEAL ANIMATION
   ========================= */
.reveal{
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

body.nav-open{ overflow: hidden; }

/* =========================
   FOOTER (3 kolumny)
   ========================= */
.site-footer{
  padding: 64px 0 22px;
  background: #0c0c0c;
  color: rgba(255,255,255,0.92);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 50px;
  align-items:start;
}

.footer-title{
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.footer-brand .footer-logo{
  display:inline-flex;
  align-items:center;
  margin-bottom: 14px;
}

.footer-brand img.custom-logo{
  height: 40px;
  width: auto;
  display:block;
}

.footer-desc p{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
}

.footer-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.footer-menu a{
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  opacity: 0.95;
}
.footer-menu a:hover{
  opacity: 1;
  color: #fff;
}

.site-footer .footer-widget{ margin: 0 0 12px; }
.site-footer .footer-widget p,
.site-footer .footer-widget a{
  color: rgba(255,255,255,0.78);
  font-size: 14px;
}
.site-footer .footer-widget a:hover{ color:#fff; }

.footer-bottom{
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align:center;
}
.footer-bottom p{
  margin:0;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}

/* =========================
   SUBPAGES (HERO / SECTIONS)
   ========================= */
.sub-hero{
  position: relative;
  padding: 120px 0 70px;
  overflow: hidden;
}

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

.sub-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.35);
  z-index:1;
}

.sub-hero-grid{
  position: relative;
  z-index: 2;
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items:center;
}

.sub-hero-right{
  display:flex;
  justify-content:flex-end;
}

.mission-card--hero{
  width: 100%;
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px;
  box-shadow: var(--shadow);
}

.mission-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* O NAS */
.about-photos-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items:start;
}
.about-photo-caption{
  margin-top: 14px;
  font-size: 14px;
}

/* KONTAKT */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card{
  background:#fff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.contact-card p{
  margin-bottom: 14px;
  color: var(--muted);
}
.contact-card a{ color: var(--red); }
.contact-form-wrap{ margin-top: 20px; }

/* ZESPÓŁ */
.team-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items:center;
  margin-bottom: 90px;
}
.team-grid--reverse{
  grid-template-columns: 1.1fr 0.9fr;
}
.team-grid--reverse .team-photo{ order:2; }
.team-grid--reverse .team-content{ order:1; }
.team-role{
  font-weight:600;
  color: var(--red);
  margin-bottom: 8px;
}
.team-content p{ margin-bottom: 14px; }
.team-photo{
  display:flex;
  justify-content:center;
}

/* RAMKA WSPARCIA */
.donation-frame{
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 36px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: #fafafa;
  text-align: center;
  box-shadow: var(--shadow);
}
.donation-frame h2{ margin-bottom: 16px; }
.donation-desc{
  max-width: 640px;
  margin: 0 auto 26px;
  color: var(--muted);
}
.donation-number{
  padding: 20px;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 18px;
}
.donation-number span{
  display:block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.donation-number strong{
  display:block;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--red);
}
.donation-note{
  font-size: 13px;
  color: var(--muted);
}

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

/* tablet */
@media (max-width: 980px){
  :root{ --pad-x: 28px; }

  .section-lg{ padding: 72px 0; }

  .hero{
    min-height: 660px;
    padding: 96px 0 0;
  }

  .hero .hero-grid,
  .offerings-grid,
  .about-grid,
  .testimonials-grid,
  .value-grid{
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .h1{ font-size: 40px; }
  .h2{ font-size: 34px; }

  .hero-title{ font-size: 42px; }

  .hero-arch{
    width: min(560px, 100%);
    height: min(560px, 78vw);
    transform: translateY(44px);
    margin-left: 0;
  }

  #offerings.section-lg{
    padding-top: 150px;
    padding-bottom: 70px;
  }

  .offerings-right{
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .blog-grid{ grid-template-columns: 1fr 1fr; }
  .cta-title{ font-size: 38px; }

  /* footer */
  .footer-grid{
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer-brand img.custom-logo{ height: 36px; }

  /* sub-hero */
  .sub-hero-grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sub-hero-right{ justify-content:flex-start; }
  .mission-card--hero{ padding: 34px; }

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

  /* o nas zdjęcia */
  .about-photos-grid{
    grid-template-columns: 1fr;
    gap: 26px;
  }

  /* zespół */
  .team-grid,
  .team-grid--reverse{
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .team-grid--reverse .team-photo,
  .team-grid--reverse .team-content{
    order: unset;
  }
}

/* mobile */
@media (max-width: 760px){
  :root{ --pad-x: 16px; }

  .section-lg{ padding: 58px 0; }

  /* header */
  .header-inner{ height: 60px; }
  .nav-toggle{ display:inline-flex; }

  /* logo */
  .site-header .custom-logo-link{ height: 60px; }
  .site-header .custom-logo{
    height: 30px !important;
    max-width: 180px !important;
  }

  /* menu */
  .nav .menu{
    display:none;
    flex-direction:column;
    align-items:flex-start;
    gap: 10px;
    list-style:none;
    margin:0;
    padding: 14px 16px;
  }

  #site-nav.is-open .menu{
    display:flex;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;

    background: rgba(25,25,25,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.12);

    z-index: 9999;

    max-height: calc(100vh - 60px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  #site-nav.is-open .menu a{
    display:block;
    width: 100%;
    padding: 10px 6px;
    color:#fff;
    opacity: 0.95;
    font-size: 15px;
  }

  /* HERO mobile */
  .hero{
    min-height: 0;
    padding: 78px 0 18px;
  }

  .hero .hero-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .eyebrow{ font-size: 10px; letter-spacing: 0.16em; }
  .hero-title{
    font-size: 30px;
    line-height: 1.08;
    margin-bottom: 10px;
  }
  .hero-lead{
    font-size: 14px;
    max-width: 100%;
    margin-bottom: 14px;
  }

  .hero-arch{
    width: 100%;
    max-width: none;
    height: min(92vw, 420px);
    transform: translateY(0);
    margin-left: 0;
  }

  #offerings.section-lg{
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .offerings-right{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .offer-num{ font-size: 28px; }

  .about-grid,
  .testimonials-grid,
  .value-grid{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cta-box{
    padding: 36px 18px;
    border-radius: 28px;
  }
  .cta-title{
    font-size: 24px;
    line-height: 1.18;
  }

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

  .arch-lg{
    width: 100%;
    height: min(92vw, 420px);
  }

  /* sub-hero */
  .sub-hero{ padding: 92px 0 50px; }
  .mission-card--hero{ padding: 24px; border-radius: 18px; }

  /* donation */
  .donation-frame{ padding: 28px 20px; }
  .donation-number strong{
    font-size: 18px;
    letter-spacing: 1px;
  }
}

/* EXTRA: małe telefony */
@media (max-width: 520px){
  :root{ --pad-x: 14px; }

  .hero-title{ font-size: 28px; }
  .h2{ font-size: 30px; }

  .hero-arch{ height: min(96vw, 400px); }
  .cta-title{ font-size: 22px; }
}

/* EXTRA: bardzo małe */
@media (max-width: 420px){
  :root{ --pad-x: 12px; }

  .hero-title{ font-size: 26px; }
  .hero-lead{ font-size: 13px; }

  .hero-arch{ height: min(104vw, 380px); }

  .section-lg{ padding: 52px 0; }
  .cta-title{ font-size: 20px; }
}

/* =========================
   FOOTER – 3 kolumny
   ========================= */

.site-footer{
  padding: 70px 0 24px;
  background: #0c0c0c;
  color: rgba(255,255,255,0.92);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Grid */
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
  align-items:start;
}

/* Tytuły kolumn */
.footer-title{
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* =========================
   LOGO + KONTAKT
   ========================= */

.footer-logo{
  margin-bottom: 20px;
}

.site-footer .custom-logo-link{
  display:inline-flex;
  align-items:center;
  line-height:0;
}

.site-footer img.custom-logo{
  height: 44px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain;
}

.footer-contact-info p{
  margin: 0 0 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.footer-contact-info a{
  color: rgba(255,255,255,0.85);
}

.footer-contact-info a:hover{
  color: #fff;
}

/* =========================
   DOKUMENTY
   ========================= */

.footer-documents{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
}

.docs-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.doc-link{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all .2s ease;
}

.doc-link:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.doc-ic{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:30px;
  min-width:48px;
  border-radius:999px;
  background: rgba(225,6,0,0.25);
  color:#fff;
  font-weight:700;
  font-size:11px;
  letter-spacing:0.08em;
}

.doc-name{
  font-size:14px;
  color: rgba(255,255,255,0.9);
}

/* =========================
   MENU
   ========================= */

.footer-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.footer-menu li{
  margin:0;
}

.footer-menu a{
  font-size:14px;
  color: rgba(255,255,255,0.85);
  transition: all .2s ease;
}

.footer-menu a:hover{
  color:#fff;
  transform: translateX(4px);
}

/* =========================
   DÓŁ STOPKI
   ========================= */

.footer-bottom{
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align:center;
}

.footer-bottom p{
  margin:0;
  font-size:12px;
  color: rgba(255,255,255,0.5);
}

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

@media (max-width: 980px){
  .footer-grid{
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 760px){
  .footer-grid{
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-footer img.custom-logo{
    height: 38px !important;
  }
}