/* Arti SF Oy — modern B2B redesign
   Primary: #4d8abc | Navy headings | Soft section grays */

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

:root {
  --brand: #4d8abc;
  --accent-teal: #2BB5B0;
  --brand-dark: #3a6f99;
  --brand-deep: #2d5a7e;
  --brand-soft: #eaf3f9;
  --brand-glow: rgba(77, 138, 188, 0.18);
  --navy: #1a2b3c;
  --navy-mid: #243447;
  --text: #3d4a57;
  --text-muted: #6b7785;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --bg-warm: #eef2f6;
  --border: #dde3ea;
  --border-soft: #e8edf2;
  --footer-bg: #1a2b3c;
  --footer-text: #b8c4d0;
  --max: 1120px;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(26, 43, 60, 0.06);
  --shadow: 0 4px 16px rgba(26, 43, 60, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 43, 60, 0.12);
  --shadow-hover: 0 10px 28px rgba(26, 43, 60, 0.14);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", "DM Sans", system-ui, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}
a:hover, a:focus { color: var(--brand-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.75em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 { font-size: 1.35rem; font-weight: 650; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.25em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* —— Header —— */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  line-height: 0;
  padding: 0.25rem 0;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 10px; /* soft match to SVG rx; harmless if SVG already rounded */
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  line-height: 0;
  margin-bottom: 0.85rem;
}
.footer-logo {
  display: block;
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 10px;
}

.nav-toggle {
  display: none;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-toggle:hover { background: var(--brand-soft); border-color: var(--brand); }

.nav-toggle-bars {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  position: relative;
  transition: background 0.2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0; transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0; transform: rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.nav-menu > li {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-menu > li > a,
.nav-menu > li > button.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  padding: 0 1rem;
  margin: 0;
  color: var(--navy);
  text-decoration: none !important;
  text-transform: none;
  font-size: 0.95rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  vertical-align: middle;
}

.nav-menu > li > a:hover,
.nav-menu > li > a:focus,
.nav-menu > li > button.nav-dropdown-btn:hover,
.nav-menu > li > button.nav-dropdown-btn:focus,
.nav-menu > li.active > a,
.nav-menu > li.active > button.nav-dropdown-btn {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.nav-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.55;
  margin: 0;
  flex-shrink: 0;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  z-index: 110;
  animation: dropIn 0.18s var(--ease);
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

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

.nav-menu > li:hover > .dropdown-menu,
.nav-menu > li:focus-within > .dropdown-menu,
.nav-menu > li.open > .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.7rem 0.9rem;
  color: var(--navy);
  text-decoration: none !important;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.25rem;
  }
  .nav-menu.is-open { display: flex; }

  .nav-bar { flex-wrap: wrap; }

  .nav-menu > li {
    width: 100%;
  }
  .nav-menu > li > a,
  .nav-menu > li > button.nav-dropdown-btn {
    height: 48px;
    min-height: 48px;
    padding: 0 1rem;
    width: 100%;
    justify-content: flex-start;
  }

  .dropdown-menu {
    position: static;
    border: 0;
    box-shadow: none;
    background: var(--bg-alt);
    display: none;
    margin-top: 0.15rem;
    animation: none;
  }
  .nav-menu > li.open > .dropdown-menu { display: block; }
}

/* —— Main —— */
.site-main {
  min-height: 55vh;
  padding: 0 0 4rem;
}

/* —— Hero (homepage) —— */
.hero {
  position: relative;
  margin: 0;
  min-height: clamp(380px, 56vw, 520px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(26, 43, 60, 0.92) 0%, rgba(26, 43, 60, 0.72) 45%, rgba(45, 90, 126, 0.55) 100%),
    linear-gradient(to top, rgba(26, 43, 60, 0.5) 0%, transparent 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2.5rem 0;
  color: #fff;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.85rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.85rem;
  max-width: 16ch;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Page intro band (inner pages) */
.page-intro {
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--brand-deep) 55%, var(--brand) 100%);
  color: #fff;
  padding: 2.75rem 0 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-intro::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  width: 50%;
  height: 180%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-intro h1 {
  color: #fff;
  margin-bottom: 0.4rem;
  position: relative;
}

.page-intro .page-intro-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  max-width: 40rem;
  position: relative;
}

.page-banner {
  display: none; /* replaced by page-intro */
}

/* Home content sections */
.section {
  padding: 3rem 0 0;
}

.section-alt {
  background: var(--bg-alt);
  padding: 3rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 860px) {
  .grid-2 {
    grid-template-columns: 1.55fr 1fr;
    gap: 2.75rem;
    align-items: start;
  }
}

.lead {
  font-size: 1.12rem;
  color: var(--text);
  line-height: 1.75;
}

.prose p { max-width: 62ch; }

/* Quick-link cards */
.quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none !important;
  color: var(--navy) !important;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s ease;
}

.quick-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand);
  color: var(--brand-deep) !important;
}

.quick-link-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
}

.quick-link-text {
  flex: 1;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.quick-link-arrow {
  color: var(--brand);
  font-size: 1.15rem;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.quick-link:hover .quick-link-arrow {
  transform: translateX(3px);
  opacity: 1;
}

.aside-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

/* Legacy sidebar (kept for compatibility) */
.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.sidebar-card h2 {
  margin: 0;
  padding: 0.85rem 1.15rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sidebar-card .card-body { padding: 1.15rem; }
.sidebar-card .card-body p { margin-bottom: 0.75em; }
.sidebar-card .card-body p:last-child { margin-bottom: 0; }

/* —— Service card grid —— */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
  align-items: stretch;
}

@media (min-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
  height: 100%;
  min-height: 0;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(77, 138, 188, 0.45);
}

.service-card-media {
  background: linear-gradient(145deg, var(--bg-alt), var(--brand-soft));
  padding: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-soft);
  height: 132px;
  flex-shrink: 0;
}

.service-card-media img,
.service-icon {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.service-card-body {
  padding: 1.25rem 1.25rem 1.4rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.service-card-body h2 {
  font-size: 1.08rem;
  margin-bottom: 0.55em;
  color: var(--navy);
  min-height: 2.6em; /* keep title rows aligned across cards */
}

.service-card-body p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.65em;
}

.service-card-body p:last-child { margin-bottom: 0; }

/* Equal visual density: body text area grows so short cards fill the cell */
.service-card-body > p:first-of-type {
  flex: 1 1 auto;
}

/* Legacy .service flex (fallback) */
.service {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
}

/* —— Gallery —— */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin: 2rem 0 2.5rem;
}

@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.gallery figure:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.gallery a {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}

.gallery a::after {
  content: "Suurenna";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 43, 60, 0.45);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery a:hover::after,
.gallery a:focus::after { opacity: 1; }

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.gallery a:hover img { transform: scale(1.05); }

.gallery figcaption {
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--navy);
  background: #fff;
  border-top: 1px solid var(--border-soft);
}

/* Feature chips (kokoustilat) */
.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0.5rem;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(43, 181, 176, 0.35);
}

/* Contact */
.contact-block {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem;
  max-width: 480px;
  box-shadow: var(--shadow-sm);
}

.grid-2 .contact-block {
  max-width: none;
}

.contact-aside-text {
  margin-top: 1.75rem;
  max-width: 28rem;
  line-height: 1.55;
  color: var(--text);
}

.contact-aside-text a {
  font-weight: 600;
  text-decoration: none;
}

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

.contact-note {
  margin-top: 2.5rem;
  max-width: 40rem;
}

.contact-block h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.contact-block dl { margin: 0; }
.contact-block dt {
  font-weight: 650;
  margin-top: 1em;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: var(--font-display);
}
.contact-block dt:first-of-type { margin-top: 0; }
.contact-block dd {
  margin: 0.2em 0 0;
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 500;
}
.contact-block a { font-weight: 600; text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }

.content-split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .content-split {
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

/* PDF list */
.pdf-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 520px;
}

.pdf-list a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none !important;
  color: var(--navy);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pdf-list a:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--brand-deep);
}

.pdf-list a::before {
  content: "PDF";
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  padding: 0.35rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.note {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.meta-updated {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.section-heading { margin-top: 2rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.4rem;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px var(--brand-glow);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  letter-spacing: -0.01em;
}

.btn:hover, .btn:focus {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--brand-glow);
  color: #fff !important;
}

.btn-outline {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
.btn-outline:hover, .btn-outline:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff !important;
  box-shadow: none;
}

.btn-outline-dark {
  background: #fff;
  color: var(--brand-deep) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-outline-dark:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-deep) !important;
}

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

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 35, 0.9);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.lightbox img {
  max-width: min(960px, 100%);
  max-height: 88vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: #fff;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

/* —— Footer —— */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 1.75rem;
  margin-top: 0;
  font-size: 0.92rem;
  position: relative;
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent-teal), transparent);
  position: absolute;
  top: 0; left: 0; right: 0;
}

.site-footer a {
  color: #d5dee8;
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }

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

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
  }
}



.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-nav a {
  font-weight: 500;
  text-decoration: none !important;
}
.footer-nav a:hover { text-decoration: underline !important; }

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.85rem;
}

.footer-copy {
  margin-top: 2.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #8a9aab;
}

.site-footer p { margin: 0 0 0.7em; }

/* Soft pattern for alt sections */
.section-alt {
  background-color: var(--bg-alt);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(77, 138, 188, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(26, 43, 60, 0.04) 0%, transparent 40%);
}
