/* =============================================
   FUNDACJA BURZA MÓZGÓW - Global Styles
   ============================================= */

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

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

:root {
  --primary:     #2C3E50;
  --accent:      #8B1A2E;
  --gold:        #C9A84C;
  --light-bg:    #F7F5F2;
  --white:       #FFFFFF;
  --text-dark:   #1E1E1E;
  --text-mid:    #4A4A4A;
  --text-light:  #767676;
  --border:      #DDD9D3;
  --shadow:      0 4px 24px rgba(0,0,0,0.10);
  --radius:      6px;
  --transition:  0.28s ease;
}

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }

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

/* =============================================
   HEADER / NAV
   ============================================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.nav-logo .logo-top {
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.nav-logo .logo-main {
  font-family: 'Playfair Display', serif;
  font-size: clamp(13px, 2.2vw, 18px);
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: center;
}

nav ul li a {
  font-family: 'Lato', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

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

nav ul li a.nav-cta {
  background: var(--accent);
  color: var(--white);
  padding: 8px 18px;
}

nav ul li a.nav-cta:hover {
  background: #a01f35;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  padding: 4px;
}

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

/* Mobile nav */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--primary);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0 24px;
  }

  nav.open { display: block; }

  nav ul {
    flex-direction: column;
    gap: 2px;
    padding: 0 24px;
  }

  nav ul li a {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
  }

  nav ul li a.nav-cta {
    margin-top: 8px;
    text-align: center;
  }
}

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

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

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}

.hero-tag {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(28px, 5vw, 58px);
  font-weight: 700;
  color: var(--white);
  max-width: 720px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.88);
  max-width: 580px;
  margin-bottom: 36px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.btn {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #a01f35;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139,26,46,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  margin-left: 14px;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* =============================================
   SECTIONS & LAYOUT
   ============================================= */
section {
  padding: 80px 24px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 42px);
  margin-bottom: 18px;
  color: var(--primary);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 48px;
}

.section-divider {
  width: 52px;
  height: 3px;
  background: var(--gold);
  margin: 16px 0 32px;
  border-radius: 2px;
}

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

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

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

.card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

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

.card-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary);
}

.card-body p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* =============================================
   ALT SECTION BG
   ============================================= */
.section-alt {
  background: var(--light-bg);
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

.section-dark .section-title,
.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark .section-subtitle,
.section-dark p {
  color: rgba(255,255,255,0.80);
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: var(--accent);
  padding: 40px 24px;
}

.stats-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item .stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-top: 6px;
}

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

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

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

/* =============================================
   PAGE BANNER (inner pages)
   ============================================= */
.page-banner {
  position: relative;
  padding: 90px 24px 70px;
  overflow: hidden;
  text-align: center;
}

.page-banner .hero-bg {
  background-position: center 40%;
}

.page-banner .hero-overlay {
  background: rgba(28,36,48,0.65);
}

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

.page-banner-content h1 {
  font-size: clamp(28px, 5vw, 52px);
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  margin-bottom: 14px;
}

.page-banner-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}

.breadcrumb-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb-inner a {
  color: var(--accent);
}

.breadcrumb-inner a:hover { text-decoration: underline; }

.breadcrumb-sep { color: var(--border); }

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

.contact-info h3 {
  font-size: 22px;
  margin-bottom: 24px;
}

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

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.contact-detail-text .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 3px;
}

.contact-detail-text .value {
  font-size: 15px;
  color: var(--text-dark);
}

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

.contact-detail-text a:hover { text-decoration: underline; }

/* 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 {
  font-size: 22px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--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(--accent);
  box-shadow: 0 0 0 3px rgba(139,26,46,0.10);
}

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

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

.form-submit {
  width: 100%;
  padding: 15px;
  font-size: 14px;
  letter-spacing: 1.5px;
}

#formStatus {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
}

/* =============================================
   LEGAL INFO TABLE
   ============================================= */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.legal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.legal-table td:first-child {
  font-weight: 700;
  color: var(--text-mid);
  width: 160px;
  white-space: nowrap;
}

.legal-table tr:last-child td { border-bottom: none; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #16202D;
  color: rgba(255,255,255,0.72);
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

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

.footer-brand .logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand .logo-sub {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.60);
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  transition: color var(--transition);
}

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

.footer-col p {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  line-height: 1.8;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.42);
}

/* =============================================
   MISSION PILLARS
   ============================================= */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.pillar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.pillar:hover { transform: translateY(-4px); }

.pillar-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 12px;
}

.pillar h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.pillar p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* =============================================
   ACTIVITY ITEMS
   ============================================= */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.activity-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.activity-item:hover { transform: translateX(4px); }

.activity-num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.25;
  min-width: 48px;
  line-height: 1;
}

.activity-body h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.activity-body p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
}

/* =============================================
   QUOTE BLOCK
   ============================================= */
.quote-block {
  border-left: 4px solid var(--gold);
  padding: 20px 28px;
  background: var(--light-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
}

.quote-block p {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--primary);
  line-height: 1.6;
}

/* =============================================
   MAP EMBED
   ============================================= */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 340px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .two-col.reverse { direction: ltr; }
  .two-col img { height: 280px; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 620px) {
  section { padding: 56px 20px; }

  .hero { min-height: 460px; }
  .hero-content { padding: 60px 20px; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

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

  .contact-form-wrap { padding: 28px 20px; }

  .stats-inner {
    grid-template-columns: 1fr 1fr;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 12px;
  }

  .hero-content .btn { display: block; width: 100%; text-align: center; }

  .activity-item { flex-direction: column; gap: 12px; }
}
