/* ============================================================
   FUNDACJA CYBERETYKA — site stylesheet
   Bootstrap 5 provides the grid/utilities; this file adds the
   visual identity. All layout uses normal document flow.
   ============================================================ */

:root {
  --navy: #14283c;
  --navy-2: #1d3a54;
  --teal: #1e7f6e;
  --teal-dark: #155f52;
  --paper: #f7f5f0;
  --white: #ffffff;
  --ink: #22303c;
  --muted: #5b6b77;
  --line: #e4dfd5;
  --gold: #b98a2f;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.7;
  font-size: 1.02rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, .display-font {
  font-family: 'Lora', Georgia, serif;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
}

p { color: var(--ink); }
.lead { color: var(--muted); font-size: 1.15rem; }
.text-muted-custom { color: var(--muted); }

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Language visibility ----------
   Both language variants exist in the HTML; the document's
   lang attribute decides which one is displayed. */
html[lang="en"] .t-pl { display: none !important; }
html[lang="pl"] .t-en { display: none !important; }

/* ---------- Header / navigation ---------- */
.site-nav {
  background-color: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
}

.footer-brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 7px;
  display: block;
  margin-bottom: 0.9rem;
}

.brand-text {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.site-nav .nav-link {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 0.5rem 0.85rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--teal);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.lang-btn[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(30, 127, 110, 0.10), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(185, 138, 47, 0.08), transparent 40%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 5rem 0 4.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 1rem;
  display: block;
}

.hero .lead { max-width: 46rem; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-tight { padding: 2.75rem 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 46rem;
  margin-inline: auto;
  color: var(--muted);
}

/* ---------- Cards ---------- */
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem;
  height: auto;
}

.info-card h3, .info-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.info-card p:last-child,
.info-card ul:last-child { margin-bottom: 0; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(30, 127, 110, 0.10);
  color: var(--teal);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ---------- Fact list (KRS / NIP / REGON) ---------- */
.fact-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
}

.fact-list div {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.fact-list dt {
  font-weight: 600;
  color: var(--muted);
  min-width: 5.5rem;
  margin: 0;
}

.fact-list dd {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* ---------- Content images ---------- */
.content-image {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin: 2.25rem 0 0.5rem;
  display: block;
}

/* ---------- Buttons ---------- */
.btn-teal {
  background: var(--teal);
  border: 1px solid var(--teal);
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
}

.btn-teal:hover, .btn-teal:focus {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}

.btn-outline-navy {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
}

.btn-outline-navy:hover, .btn-outline-navy:focus {
  background: var(--navy);
  color: #fff;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0 3rem;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.page-hero .lead { max-width: 48rem; }

/* ---------- Prose blocks ---------- */
.prose {
  max-width: 50rem;
}

.prose h2 { font-size: 1.5rem; margin-top: 2.25rem; margin-bottom: 0.9rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.75rem; margin-bottom: 0.6rem; }
.prose ul li { margin-bottom: 0.5rem; }

/* ---------- Contact page ---------- */
.contact-card { height: auto; }

.form-status { display: none; margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
  flex-shrink: 0;
}

.site-footer h2, .site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer a:hover, .site-footer a:focus {
  color: #fff;
  text-decoration: underline;
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-links li { margin-bottom: 0.5rem; }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }
  .navbar-collapse {
    border-top: 1px solid var(--line);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }
  .site-nav .nav-link { padding: 0.6rem 0.25rem; }
  .lang-switch { margin: 0.5rem 0 0.25rem; }
}

@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .brand-text { font-size: 0.9rem; }
  .brand-mark { width: 38px; height: 38px; font-size: 0.95rem; }
  .info-card { padding: 1.25rem; }
}
