/* Toastmasters Olsztyn — palette rooted in TM International branding */
:root {
  --tm-maroon: #772432;
  --tm-maroon-deep: #5a1924;
  --tm-blue: #004165;
  --tm-yellow: #F2DF74;
  --tm-gray: #A9B2B1;
  --cream: #F7F2EA;
  --paper: #FFFDF9;
  --ink: #1B1B1F;
  --ink-soft: #4A4A52;
  --line: #E6DFD2;
  --radius: 6px;
  --max: 1140px;
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Lora", Georgia, serif;
  --font-display: "Playfair Display", "Lora", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: rgba(119, 36, 50, 0.18); }
picture { display: contents; }

.skip-link {
  position: absolute; top: -100px; left: 12px;
  z-index: 2000;
  background: var(--tm-maroon); color: var(--paper) !important;
  padding: 10px 18px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--tm-yellow); outline-offset: 2px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  color: var(--tm-blue);
}
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h3, h4 { font-family: var(--font-sans); font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--tm-maroon); text-decoration: none; transition: color .15s; }
a:hover { color: var(--tm-maroon-deep); text-decoration: underline; }

.accent { color: var(--tm-maroon); }
.dim { color: var(--ink-soft); font-weight: 400; font-size: 0.92em; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tm-maroon);
  margin: 0 0 1rem;
}
.eyebrow--dark { color: var(--tm-blue); }

.section-title { margin-bottom: 2.5rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--tm-blue); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--tm-maroon);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(119, 36, 50, 0.25);
}
.brand__mark img { width: 88%; height: 88%; display: block; }
.brand__name { font-size: 1rem; letter-spacing: 0.01em; }
.brand__name strong { font-weight: 800; }
.brand--light { color: var(--cream); }
.brand--light .brand__name { color: var(--cream); }

.nav__links { display: flex; gap: 32px; }
.nav__toggle {
  display: none;
  background: none; border: 0; padding: 8px;
  cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--tm-blue); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__links a {
  color: var(--ink); font-weight: 500; font-size: 0.95rem;
  position: relative; padding: 4px 0;
}
.nav__links a:hover { color: var(--tm-maroon); text-decoration: none; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--tm-maroon); transform: scaleX(0); transform-origin: left;
  transition: transform .2s;
}
.nav__links a:hover::after { transform: scaleX(1); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  padding: 88px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; right: -180px; top: -180px;
  width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(242, 223, 116, 0.35), transparent);
  pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center;
  position: relative;
}
.lede { font-size: 1.18rem; line-height: 1.55; margin: 1.4rem 0 2rem; max-width: 36ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__micro { margin-top: 1.2rem; font-size: 0.9rem; color: var(--ink-soft); }

.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px; border-radius: var(--radius);
  letter-spacing: 0.02em;
  line-height: 1.25;
  transition: transform .15s, background .15s, color .15s, box-shadow .15s;
}
.btn--primary {
  background: var(--tm-maroon); color: var(--paper) !important;
  box-shadow: 0 4px 14px rgba(119, 36, 50, 0.25);
}
.btn--primary:hover { background: var(--tm-maroon-deep); text-decoration: none; transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--tm-blue) !important;
  border: 1.5px solid var(--tm-blue);
}
.btn--ghost:hover { background: var(--tm-blue); color: var(--paper) !important; text-decoration: none; }
.btn--sm { padding: 10px 18px; font-size: 0.88rem; }

.hero__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--tm-maroon);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 20px 50px -20px rgba(0, 65, 101, 0.18);
}
.info { padding: 14px 0; border-bottom: 1px solid var(--line); }
.info:last-child { border-bottom: none; padding-bottom: 0; }
.info:first-child { padding-top: 0; }
.info__label {
  display: block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--tm-maroon);
  margin-bottom: 4px;
}
.info__value { font-weight: 600; color: var(--tm-blue); line-height: 1.4; }
.info--link { display: block; color: inherit; transition: color .15s; }
.info--link:hover { text-decoration: none; }
.info--link:hover .info__value { color: var(--tm-maroon); }
.info--link .info__value::after {
  content: " ↗"; font-size: 0.85em; color: var(--tm-maroon);
  opacity: 0.6; transition: opacity .15s, transform .15s;
  display: inline-block;
}
.info--link:hover .info__value::after { opacity: 1; transform: translate(2px, -2px); }

/* Relate section */
.relate {
  padding: 96px 0;
  background: var(--tm-blue);
  color: var(--cream);
}
.relate h2 { color: var(--paper); }
.relate .section-title { margin-bottom: 2rem; }
.quotes {
  list-style: none; padding: 0; margin: 0 0 3rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.quotes li {
  font-family: var(--font-serif);
  font-style: italic; font-size: 1.05rem; line-height: 1.5;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--tm-yellow);
  border-radius: 4px;
}
.relate__answer { max-width: 720px; }
.relate__answer .big {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700; color: var(--paper); line-height: 1.3;
  margin-bottom: 1rem;
}
.relate__answer p { color: rgba(247, 242, 234, 0.85); font-size: 1.05rem; }
.relate__answer .accent { color: var(--tm-yellow); }

/* About */
.about { padding: 96px 0; }
.about__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.about__body { margin-top: 24px; }
.about__body p { font-size: 1.02rem; }
.about__collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.about__tile { margin: 0; overflow: hidden; border-radius: var(--radius);
  box-shadow: 0 20px 50px -25px rgba(27, 27, 31, 0.35);
  background: var(--cream);
  aspect-ratio: 4 / 3;
}
.about__tile--tall { aspect-ratio: 4 / 3; }
.about__tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
  cursor: zoom-in;
}
.about__tile:hover img { transform: scale(1.05); }

img[data-zoom] { cursor: zoom-in; }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 15, 20, 0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 4vh 4vw;
  opacity: 0; transition: opacity .2s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  animation: lb-in .25s ease;
}
.lightbox__close {
  position: absolute; top: 16px; right: 20px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1); color: #fff;
  border: 0; border-radius: 50%; cursor: pointer;
  font-size: 1.8rem; line-height: 1;
  transition: background .15s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.22); }
@keyframes lb-in { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Meetings timeline */
.meetings { padding: 96px 0; background: var(--cream); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.timeline li {
  display: flex; align-items: center; gap: 28px;
  padding: 22px 28px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.timeline li:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -15px rgba(0, 65, 101, 0.2);
  border-color: var(--tm-maroon);
}
.step {
  flex: 0 0 auto;
  font-family: var(--font-serif); font-style: italic;
  font-size: 2.4rem; font-weight: 600; color: var(--tm-maroon);
  line-height: 1; min-width: 60px;
}
.timeline__body { flex: 1; min-width: 0; }
.timeline h3 { color: var(--tm-blue); margin-bottom: 4px; }
.timeline p { margin: 0; }

/* Gallery */
.gallery { padding: 96px 0; background: var(--paper); }
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: 260px 400px;
  gap: 16px;
}
.gallery__item {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--line);
}
.gallery__item--banner { grid-column: span 3; }
.gallery__item--wide { grid-column: auto; }
.gallery__item--tall { grid-column: auto; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 26, 41, 0.85) 100%);
  color: var(--paper);
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em;
}
/* placeholder fallback when image missing */
.gallery__item.is-placeholder {
  background:
    linear-gradient(135deg, var(--tm-blue) 0%, var(--tm-maroon) 100%);
  display: flex; align-items: center; justify-content: center;
}
.gallery__item.is-placeholder::before {
  content: "T";
  font-family: var(--font-serif); font-style: italic; font-weight: 600;
  font-size: 5rem; color: var(--tm-yellow);
  opacity: 0.55;
}
.gallery__item.is-placeholder figcaption {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 100%);
}

/* Extras */
.extras { padding: 96px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--tm-yellow);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(0, 65, 101, 0.25);
}
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .4s; }
.card__media img[src*="mow_strasznych"] { object-position: center 25%; }
.card__media img[src*="integracja"] { object-position: center 65%; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 24px 28px 28px; }
.card h3 { margin-bottom: 10px; }

/* FAQ */
.faq { padding: 96px 0; background: var(--cream); }
.faq__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.faq__intro { margin-top: 1rem; margin-bottom: 1.2rem; }
.faq__cta { margin-top: 0; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--tm-maroon); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 24px;
  font-weight: 600; color: var(--tm-blue);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem; font-weight: 400; color: var(--tm-maroon);
  transition: transform .2s;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 24px 22px; margin: 0; }

/* Visit */
.visit { padding: 96px 0; background: var(--tm-maroon); color: var(--cream); }
.visit h2 { color: var(--paper); margin-bottom: 18px; }
.visit .eyebrow { color: var(--tm-yellow); }
.visit p { color: rgba(247, 242, 234, 0.88); }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.visit .btn--primary {
  background: var(--tm-yellow); color: var(--tm-maroon-deep) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.visit .btn--primary:hover { background: var(--paper); }

.visit__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fact {
  padding: 22px;
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--tm-yellow);
  border-radius: 4px;
}
.fact__label {
  display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--tm-yellow); margin-bottom: 8px;
}
.fact__value { color: var(--paper); font-weight: 500; line-height: 1.5; }
.fact__value a { color: var(--paper); border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.fact__value a:hover { color: var(--tm-yellow); text-decoration: none; }
.fact .dim { color: rgba(247, 242, 234, 0.7); }

/* Footer */
.footer { background: var(--tm-blue); color: var(--cream); padding: 72px 0 28px; }
.footer__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.eyebrow--light { color: var(--tm-yellow); }
.footer__title { color: var(--paper); margin: 0 0 22px; }
.footer__mail {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1rem; font-weight: 600;
  border-bottom: 1px solid rgba(247, 242, 234, 0.35); padding-bottom: 3px;
}
.footer__mail-icon { width: 20px; height: 20px; color: var(--tm-yellow); flex: 0 0 auto; }
.footer a { color: var(--cream); }
.footer a:hover { color: var(--tm-yellow); text-decoration: none; }
.footer__bottom {
  padding-top: 24px; color: rgba(247, 242, 234, 0.55); font-size: 0.85rem;
  display: flex; flex-direction: column; gap: 8px;
}
.footer__bottom .footer__tag { color: rgba(247, 242, 234, 0.6); font-size: 0.85rem; margin: 0; max-width: none; }
.footer__bottom .footer__tag a { color: rgba(247, 242, 234, 0.85); border-bottom: 1px solid rgba(247, 242, 234, 0.3); }

.footer__social { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.social-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  transition: border-color .2s, transform .2s;
}
.social-cta:hover {
  border-color: var(--tm-yellow);
  color: var(--cream) !important;
  transform: translateY(-1px);
  text-decoration: none;
}
.social-cta__icon { width: 22px; height: 22px; flex: 0 0 auto; color: var(--cream); }
.social-cta__text { display: flex; flex-direction: column; line-height: 1.2; }
.social-cta__title { font-weight: 700; font-size: 0.95rem; }
.social-cta__sub { font-size: 0.78rem; color: rgba(247, 242, 234, 0.65); margin-top: 1px; }
.social-cta__arrow { font-size: 1rem; color: rgba(247, 242, 234, 0.55); transition: transform .2s, color .2s; }
.social-cta:hover .social-cta__arrow { transform: translateX(3px); color: var(--tm-yellow); }

.social-row { list-style: none; padding: 0; margin: 0 0 12px; display: flex; gap: 10px; }
.social-row a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background .2s, border-color .2s, transform .2s;
}
.social-row svg { width: 20px; height: 20px; color: var(--cream); transition: color .2s; }
.social-row a:hover { background: var(--tm-yellow); border-color: var(--tm-yellow); transform: translateY(-2px); }
.social-row a:hover svg { color: var(--tm-blue); }

/* Responsive */
@media (max-width: 880px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    box-shadow: 0 12px 24px -12px rgba(0, 65, 101, 0.18);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 28px; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a::after { display: none; }
  .nav__inner { position: relative; }

  .hero { padding: 56px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__grid, .faq__grid, .visit__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__collage { gap: 16px; }
  .quotes { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
  }
  .gallery__item { aspect-ratio: 4 / 3; }
  .gallery__item--banner { grid-column: span 2; aspect-ratio: 16 / 9; }
  .gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
  .gallery__item--tall { grid-column: span 1; aspect-ratio: 3 / 4; }
  .visit__facts { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 56px; }
  .footer__social { gap: 20px; }
  .footer__title { font-size: 1.7rem; }
  .relate, .about, .meetings, .extras, .gallery, .faq, .visit { padding: 64px 0; }
  .timeline li { gap: 18px; padding: 18px 20px; }
  .step { font-size: 1.9rem; min-width: 44px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .hero { padding: 40px 0 48px; }
  .hero__card { padding: 22px; }
  .cta-row .btn { flex: 1 1 0; min-width: 0; padding: 14px 14px; font-size: 0.92rem; }
  .quotes li { font-size: 0.98rem; padding: 16px 18px; }
  .gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
  }
  .gallery__item--banner,
  .gallery__item--wide { grid-column: span 1; aspect-ratio: 16 / 10; }
  .gallery__item--tall { grid-column: span 1; aspect-ratio: 3 / 4; }
  .social-cta { padding: 14px 16px; gap: 12px; }
  .social-cta__icon { width: 28px; height: 28px; }
  .social-cta__title { font-size: 0.98rem; }
  .social-cta__sub { font-size: 0.8rem; }
  .relate, .about, .meetings, .extras, .gallery, .faq, .visit { padding: 56px 0; }
  .section-title { margin-bottom: 1.8rem; }
  .timeline li { padding: 16px 18px; gap: 14px; }
  .step { font-size: 1.7rem; min-width: 38px; }
  h2 { font-size: 1.55rem; }
  .brand__name { font-size: 0.92rem; }
  .brand__mark { width: 34px; height: 34px; }
  .footer__inner { padding-bottom: 64px; }
  .social-row { margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
