/* ============================================
   TECHPOL SK — spoločné štýly
   ============================================ */

:root {
  --blue: #2b9bf6;
  --blue-dark: #1272c4;
  --blue-deep: #0b4f8f;
  --blue-tint: #eaf4fe;
  --ink: #10181f;
  --ink-mid: #38434f;
  --ink-soft: #5b6774;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --border: #e4ebf2;
  --radius: 14px;
  --radius-lg: 22px;
  --max-width: 1200px;
  --text-width: 860px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 31, 0.04), 0 2px 8px rgba(16, 24, 31, 0.04);
  --shadow: 0 2px 4px rgba(16, 24, 31, 0.03), 0 12px 28px rgba(16, 24, 31, 0.07);
  --shadow-lg: 0 4px 8px rgba(16, 24, 31, 0.04), 0 24px 48px rgba(16, 24, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 3.6vw + 1rem, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 1.8vw + 1rem, 2.35rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.15rem, 0.7vw + 1rem, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  color: var(--ink-mid);
  margin: 0 0 1.1em;
}

.lead {
  font-size: clamp(1.05rem, 0.5vw + 1rem, 1.2rem);
  color: var(--ink-soft);
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section--soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}

.section-head p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-dark);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-bottom: 1em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.section-head .eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.97rem;
  line-height: 1.2;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    color 0.18s ease, border-color 0.18s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(43, 155, 246, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(43, 155, 246, 0.42);
}

.btn-outline {
  border-color: var(--border);
  color: var(--ink);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: var(--blue-tint);
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 0;
  color: var(--blue-dark);
  background: none;
  border: none;
  font-weight: 700;
}

.btn-ghost svg {
  transition: transform 0.18s ease;
}

.btn-ghost:hover svg {
  transform: translateX(4px);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 42px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: clamp(14px, 1.6vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-mid);
  padding: 6px 0;
  transition: color 0.15s ease;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: var(--blue-dark);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  transform: scaleX(1);
}

.nav-cta {
  color: #fff;
  padding: 11px 22px;
  font-size: 0.92rem;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .nav {
    display: flex;
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    padding: 9px 16px;
    font-size: 0.88rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid transparent;
    box-shadow: var(--shadow);
    transition: max-height 0.3s ease, border-color 0.3s ease;
  }

  .nav-links.open {
    max-height: 520px;
    border-bottom-color: var(--border);
  }

  .nav-links li {
    padding: 0 24px;
  }

  .nav-links a:not(.btn) {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .nav-links a:not(.btn)::after {
    display: none;
  }

  .nav-links li:last-child a:not(.btn) {
    border-bottom: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 116px) 0 clamp(60px, 8vw, 104px);
  background: linear-gradient(168deg, #f2f8fe 0%, #ffffff 62%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 155, 246, 0.16) 0%, rgba(43, 155, 246, 0) 68%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  margin-bottom: 0.55em;
}

.hero-copy .lead {
  max-width: 44ch;
  margin-bottom: 0;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  list-style: none;
  padding-left: 0;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.91rem;
  font-weight: 600;
  color: var(--ink-mid);
}

.hero-meta svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
  flex-shrink: 0;
}

.hero-art {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(142deg, var(--blue) 0%, var(--blue-dark) 55%, var(--blue-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 62% 38%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 62% 38%, #000 20%, transparent 78%);
}

.hero-art img {
  position: relative;
  z-index: 1;
  width: 58%;
  max-width: 320px;
  filter: brightness(0) invert(1);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-art {
    order: -1;
    aspect-ratio: 16 / 9;
  }

  .hero-copy .lead {
    max-width: none;
  }
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  align-items: stretch;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-dark) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #d3e3f2;
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-tint);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 0.5em;
}

.card p {
  flex-grow: 1;
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 1.4em;
}

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

.card .btn-ghost {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- Photo slots ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin: 32px 0 0;
}

/* Explicitný počet stĺpcov, aby posledný riadok nezostal nevyvážený
   (napr. 4 fotky = 2×2, 6 fotiek = 3×2). */
.photo-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.photo-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
  .photo-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .photo-grid--2,
  .photo-grid--3 {
    grid-template-columns: 1fr;
  }
}

.photo-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slot img[src] {
  cursor: zoom-in;
  transition: transform 0.35s ease;
}

.photo-slot:hover img {
  transform: scale(1.04);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 20, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
  padding: 0 60px;
}

.lightbox button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.26);
}

.lightbox button svg {
  width: 22px;
  height: 22px;
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 560px) {
  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

.photo-slot .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #a7b4c2;
}

.photo-slot .placeholder svg {
  width: 26px;
  height: 26px;
  opacity: 0.55;
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 84px) 0 clamp(44px, 5vw, 72px);
  background: linear-gradient(170deg, #f2f8fe 0%, #f9fbfd 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 155, 246, 0.13) 0%, rgba(43, 155, 246, 0) 70%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  margin-bottom: 0.45em;
}

.page-hero .lead {
  max-width: 62ch;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.87rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--blue-dark);
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}

/* ---------- Service detail blocks (centered column) ---------- */

.service-block {
  max-width: var(--text-width);
  margin-left: auto;
  margin-right: auto;
}

.service-block > h2 {
  text-align: center;
}

.service-block > .eyebrow {
  display: flex;
  justify-content: center;
}

.service-block + .service-block {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--border);
}

.service-block .subheading {
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin: 38px 0 2px;
}

.service-block .photo-grid {
  max-width: none;
}

.block-cta {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Tag list ---------- */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-tint);
  border: 1px solid #d3e6fb;
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--blue-deep);
}

.tag-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 3.5vw, 44px);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info,
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow);
}

.contact-info h2,
.form-card h2 {
  font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem);
  margin-bottom: 1.2em;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:first-of-type {
  padding-top: 0;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item .icon svg {
  width: 21px;
  height: 21px;
}

.contact-item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 3px;
}

.contact-item a,
.contact-item span.value {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink);
}

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

.legal-note {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.legal-note a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-dark);
  font-weight: 700;
}

.legal-note a:hover {
  text-decoration: underline;
}

.legal-note svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ---------- Form ---------- */

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

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-weight: 650;
  margin-bottom: 7px;
  font-size: 0.89rem;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a7b4c2;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(43, 155, 246, 0.15);
}

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

.form-card .btn-primary {
  width: 100%;
}

.form-note {
  font-size: 0.83rem;
  color: var(--ink-soft);
  margin: 14px 0 0;
  text-align: center;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 88px) 0;
  background: linear-gradient(142deg, var(--blue) 0%, var(--blue-dark) 58%, var(--blue-deep) 100%);
  color: #fff;
  text-align: center;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 10%, transparent 72%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  max-width: 22ch;
  margin: 0 auto 0.5em;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 54ch;
  margin: 0 auto 32px;
}

.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.cta-band .eyebrow::before,
.cta-band .eyebrow::after {
  background: rgba(255, 255, 255, 0.65);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 6px 20px rgba(4, 32, 60, 0.24);
}

.cta-band .btn-primary:hover {
  background: #fff;
  box-shadow: 0 10px 28px rgba(4, 32, 60, 0.32);
}

.cta-band .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.cta-band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #9fb0c0;
  padding: clamp(44px, 5vw, 64px) 0 26px;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 36px;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: #8496a8;
  font-size: 0.9rem;
  margin: 0;
  max-width: 34ch;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  color: #9fb0c0;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col .contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-col .contact-line svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  color: #7d8fa1;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #85c4f8;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ---------- Prose (text pages) ---------- */

.prose {
  max-width: var(--text-width);
  margin: 0 auto;
}

.prose h2 {
  margin-top: 1.8em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  color: var(--ink-mid);
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

/* ---------- Reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
