/* Vistula Insight — core styles */
:root {
  --bg: #f3f6f4;
  --bg-2: #e8efea;
  --ink: #101814;
  --muted: #4d5c54;
  --line: #c9d5cd;
  --accent: #1a7a5c;
  --accent-hover: #14634b;
  --accent-soft: #d7efe6;
  --warn: #b45309;
  --surface: #ffffff;
  --radius: 4px;
  --max: 1120px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --shadow: 0 12px 40px rgba(16, 24, 20, 0.08);
  --header-h: 72px;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #d9efe6 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #e7edd8 0%, transparent 50%),
    var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(243, 246, 244, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.1rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  padding: clamp(4rem, 10vw, 6.5rem) 0 clamp(3rem, 7vw, 4.5rem);
  overflow: hidden;
  color: #f4f7f5;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: hero-zoom 22s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 18, 14, 0.88) 0%, rgba(10, 18, 14, 0.62) 42%, rgba(10, 18, 14, 0.28) 100%),
    linear-gradient(to top, rgba(10, 18, 14, 0.55), transparent 45%);
  z-index: 1;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-content {
  position: relative;
  max-width: 40rem;
  z-index: 1;
  animation: reveal 0.7s ease both;
}

.brand-signal {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  color: #fff;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: #f4f7f5;
}

.hero p {
  margin: 0 0 1.5rem;
  color: rgba(244, 247, 245, 0.82);
  max-width: 36rem;
}

.hero .btn-ghost {
  border-color: rgba(244, 247, 245, 0.45);
  color: #f4f7f5;
  background: rgba(255, 255, 255, 0.06);
}

.hero .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Visual strip */
.visual-strip {
  padding: 0;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 0.65rem;
}

.visual-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background: var(--ink);
  min-height: 220px;
  width: 100%;
  display: block;
  text-align: left;
  color: inherit;
  font: inherit;
}

.visual-item img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.visual-item:hover img,
.visual-item:focus-visible img {
  transform: scale(1.04);
}

.visual-item .visual-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(10, 18, 14, 0.78), transparent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 14, 0.82);
}

.lightbox-dialog {
  position: relative;
  width: min(100%, 960px);
  max-height: 90vh;
  animation: reveal 0.2s ease;
}

.lightbox-dialog img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #0a120e;
}

.lightbox-caption {
  margin: 0.75rem 0 0;
  color: #fff;
  font-family: var(--font-display);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -0.4rem;
  right: -0.2rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
}

.page-visual {
  margin: 1.25rem 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-visual img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

/* Sections */
section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.55rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.panel h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.muted {
  color: var(--muted);
}

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-clean li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.list-clean li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.list-clean strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-item dt {
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-item dd {
  margin: 0;
  font-weight: 600;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--accent);
}

/* Topics / expandable */
.topics {
  display: grid;
  gap: 0.65rem;
}

.topic {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}

.topic summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.topic summary::-webkit-details-marker {
  display: none;
}

.topic summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  line-height: 1;
}

.topic[open] summary::after {
  content: "−";
}

.topic .topic-body {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
  border-top: 1px solid transparent;
}

.topic[open] .topic-body {
  border-top-color: var(--line);
  padding-top: 0.9rem;
  animation: reveal 0.25s ease;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* News teasers — not cards as interaction containers, simple list */
.feed {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feed-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.feed-item time {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
}

.feed-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.feed-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.feed-item button.linkish {
  margin-top: 0.45rem;
}

.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.linkish:hover {
  color: var(--accent-hover);
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 20, 0.45);
}

.modal-dialog {
  position: relative;
  width: min(100%, 520px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  animation: reveal 0.2s ease;
}

.modal-dialog h2 {
  font-family: var(--font-display);
  margin: 0 1.5rem 0.75rem 0;
  font-size: 1.25rem;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--muted);
}

.modal-close:hover {
  color: var(--ink);
}

/* Forms */
.form {
  display: grid;
  gap: 0.85rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

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

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.form-success {
  display: none;
  padding: 0.85rem 1rem;
  background: var(--accent-soft);
  border: 1px solid #9fd4c0;
  border-radius: var(--radius);
  color: var(--accent-hover);
  font-weight: 600;
}

.form-success.is-visible {
  display: block;
  animation: reveal 0.25s ease;
}

/* Jobs */
.job {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.job:first-child {
  border-top: 1px solid var(--line);
}

.job summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.job summary::-webkit-details-marker {
  display: none;
}

.job-meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.job-body {
  padding-top: 0.75rem;
  color: var(--muted);
}

.job-body ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.1rem;
}

/* Legal */
.legal {
  padding: clamp(2rem, 5vw, 3.5rem) 0 4rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.legal .updated {
  color: var(--muted);
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 1.75rem 0 0.55rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.15rem;
}

.prose {
  max-width: 68ch;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #ebf1ed;
  padding: 2.5rem 0 1.5rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
  color: var(--muted);
}

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

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 150;
  max-width: 640px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  display: none;
}

.cookie-bar.is-visible {
  display: block;
  animation: reveal 0.25s ease;
}

.cookie-bar p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Page intro */
.page-intro {
  padding: clamp(2.2rem, 5vw, 3.5rem) 0 0.5rem;
}

.page-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.6rem;
}

.page-intro p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.hours-table th {
  font-family: var(--font-display);
  font-weight: 650;
  width: 45%;
}

.badge-open {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.addresses {
  display: grid;
  gap: 0.85rem;
}

.address-block strong {
  font-family: var(--font-display);
  display: block;
  margin-bottom: 0.15rem;
}

/* Motion respect */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img,
  .hero-content,
  .topic[open] .topic-body,
  .modal-dialog,
  .lightbox-dialog,
  .cookie-bar.is-visible,
  .form-success.is-visible {
    animation: none;
  }

  .visual-item img {
    transition: none;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(243, 246, 244, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .split,
  .footer-grid,
  .contact-grid,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .visual-item:first-child {
    min-height: 260px;
  }

  .feed-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .brand span {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
  }

  .cookie-bar {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }
}
