/* =============================================
   FUNDACJA PROARTIS — Global Styles
   ============================================= */

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

:root {
  --navy: #1a2744;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --white: #ffffff;
  --off-white: #f7f6f2;
  --text-dark: #1e1e1e;
  --text-mid: #444444;
  --text-light: #777777;
  --border: #e0ddd6;
  --section-pad: 80px 0;
}

html { scroll-behavior: smooth; }

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

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
}

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

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

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

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

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

/* ---- HEADER / NAV ---- */
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.18);
}

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

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  flex-shrink: 1;
}

.logo-main {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-sub {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.header-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-below {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
}

.logo:hover .logo-main { color: var(--gold-light); }

nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}

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

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

/* ---- PAGE OFFSET FOR FIXED HEADER ---- */
.page-top { padding-top: 70px; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

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

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

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

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-content p { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 600px; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

/* ---- SECTION STYLES ---- */
section { padding: var(--section-pad); }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  color: var(--navy);
  margin-bottom: 16px;
}

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

.section-divider {
  width: 52px;
  height: 3px;
  background: var(--gold);
  margin: 14px 0 28px;
}

.bg-off-white { background: var(--off-white); }
.bg-navy { background: var(--navy); }

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

.intro-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.intro-item {
  padding: 24px 32px;
  border-right: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.intro-item:last-child { border-right: none; }

.intro-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.intro-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
}

/* ---- HOME: ABOUT PREVIEW ---- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-preview img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* ---- HOME: ACTIVITIES GRID ---- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.activity-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

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

.activity-card-body {
  padding: 22px 24px;
}

.activity-card-body h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.05rem; }
.activity-card-body p { font-size: 0.9rem; margin-bottom: 0; }

/* ---- PAGE HEADER BANNER ---- */
.page-banner {
  background: var(--navy);
  padding: 64px 0 52px;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.page-banner h1 { color: var(--white); margin-bottom: 10px; }
.page-banner p { color: rgba(255,255,255,0.68); font-size: 1rem; max-width: 560px; margin: 0; }
.page-banner .section-label { color: var(--gold); }

/* ---- ABOUT PAGE ---- */
.about-detail {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: start;
}

.about-detail img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.info-box {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  padding: 24px 28px;
  border-radius: 0 4px 4px 0;
  margin-top: 32px;
}

.info-box h4 { color: var(--navy); margin-bottom: 14px; }

.info-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.info-row:last-child { margin-bottom: 0; }

.info-row strong {
  color: var(--navy);
  min-width: 70px;
  flex-shrink: 0;
}

.info-row span { color: var(--text-mid); }

/* ---- GOALS PAGE ---- */
.goals-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.goal-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 24px;
  transition: box-shadow 0.2s;
}

.goal-item:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.goal-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  min-width: 42px;
}

.goal-text h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 8px; }
.goal-text p { font-size: 0.9rem; margin: 0; }

/* ---- ACHIEVEMENTS ---- */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.achievement-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 26px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
}

.achievement-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}

.achievement-icon {
  width: 56px;
  height: 56px;
  background: rgba(201,168,76,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.achievement-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
}

.achievement-card h3 { color: var(--navy); font-size: 1rem; margin-bottom: 10px; }
.achievement-card p { font-size: 0.88rem; margin: 0; }

/* ---- ACTIVITIES PAGE ---- */
.activities-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.activity-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.activity-block img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.activity-block-body {
  padding: 28px 28px 32px;
}

.activity-tag {
  display: inline-block;
  background: rgba(201,168,76,0.13);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.activity-block-body h3 { color: var(--navy); margin-bottom: 10px; }
.activity-block-body p { font-size: 0.92rem; }

.industries-section {
  background: var(--navy);
  padding: var(--section-pad);
}

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

.industry-pill {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 6px;
  padding: 22px 22px;
  transition: background 0.2s, border-color 0.2s;
}

.industry-pill:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
}

.industry-pill h4 { color: var(--gold); font-size: 0.95rem; margin-bottom: 6px; }
.industry-pill p { color: rgba(255,255,255,0.6); font-size: 0.83rem; margin: 0; }

/* ---- CONTACT PAGE ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 { color: var(--navy); margin-bottom: 16px; }

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.contact-detail:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: rgba(201,168,76,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}

.contact-detail-text strong { display: block; color: var(--navy); font-size: 0.85rem; margin-bottom: 2px; }
.contact-detail-text span, .contact-detail-text a { color: var(--text-mid); font-size: 0.9rem; }

.contact-form-card {
  background: var(--off-white);
  border-radius: 6px;
  padding: 40px;
}

.contact-form-card h3 { color: var(--navy); margin-bottom: 24px; }

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

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

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

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

.form-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 10px;
}

#formStatus { font-size: 0.9rem; }

/* ---- LEGAL INFO BOX ---- */
.legal-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 32px;
  margin-top: 32px;
}

.legal-box h4 { color: var(--navy); margin-bottom: 14px; font-size: 0.95rem; }

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

.legal-item strong { display: block; color: var(--navy); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 3px; }
.legal-item span { color: var(--text-mid); font-size: 0.9rem; }

/* ---- FOOTER ---- */
footer {
  background: #0e1628;
  padding: 56px 0 30px;
}

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

.footer-brand .logo-main { font-size: 1.1rem; }
.footer-brand .logo-sub { font-size: 0.6rem; }
.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-top: 14px;
  line-height: 1.65;
}

.footer-col h5 {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }

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

.footer-col address a { color: rgba(255,255,255,0.55); font-size: 0.88rem; }
.footer-col address a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  margin: 0;
}

.footer-bottom a {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

/* ---- MOBILE NAV ---- */
@media (max-width: 900px) {
  nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 16px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }

  nav.open { display: flex; }

  nav a {
    padding: 12px 24px;
    width: 100%;
    border-radius: 0;
    font-size: 0.95rem;
  }

  .nav-toggle { display: block; }

  .about-preview,
  .about-detail,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .activities-grid,
  .achievements-grid,
  .activities-page-grid,
  .goals-list {
    grid-template-columns: 1fr;
  }

  .intro-strip .container {
    grid-template-columns: 1fr;
  }

  .intro-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 20px 24px;
  }

  .intro-item:last-child { border-bottom: none; }

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

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

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

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

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

@media (max-width: 560px) {
  :root { --section-pad: 56px 0; }

  .hero { min-height: 420px; }

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

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

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