/* Annex Pályázati Iroda — static site stylesheet
   Brand colors confirmed from the live site's own CSS + logo pixel sampling
   (real palette is blue-led, not green — see docs/phase3 notes). */

/* Self-hosted fonts, reused from files the live site already self-hosts
   (Elementor local Google Fonts) — variable fonts covering 400–700 in one
   file each, split latin / latin-ext (the latter carries ő/ű and other
   Hungarian accented glyphs). No request to fonts.googleapis.com at all. */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/roboto/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/roboto/roboto-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/montserrat/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/montserrat/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0;
}

:root {
  --color-primary: #1941c8;
  --color-primary-dark: #122f97;
  --color-primary-light: #e8ecfb;
  --color-accent-green: #23a455;
  --color-accent-gold: #f2d36a;
  --color-footer-bg: #74767a;
  --color-footer-link: #1e73be;
  --color-text: #232023;
  --color-text-secondary: #5b5b5f;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f5f7;
  --color-border: #e2e4e9;
  --color-white: #ffffff;

  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Montserrat", var(--font-body);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;

  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1180px;
  --shadow-sm: 0 1px 3px rgba(20, 20, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 20, 40, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
/* overflow-x lives on html, not body: setting it on body opts body out of
   the UA's viewport-scroll propagation without body ever having its own
   overflow to scroll (it isn't height-constrained), which silently breaks
   all vertical scrolling. html doesn't have that propagation quirk and
   the root element's overflow box is sized to the viewport as usual. */
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.25em; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 var(--space-2);
  color: var(--color-text);
}
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: var(--space-5); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 var(--space-2); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-primary); color: #fff; padding: var(--space-1) var(--space-2);
  z-index: 1000;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- buttons / forms ------------------------------------------------ */

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); text-decoration: none; }
.btn-secondary { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn-secondary:hover { border-color: var(--color-primary); text-decoration: none; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.9em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
}
input:focus, textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
label { font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 0.3em; }
.form-row { margin-bottom: var(--space-2); }
.form-row-half { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.form-row-checkbox { display: flex; align-items: flex-start; gap: 0.6em; }
.form-row-checkbox input { width: auto; margin-top: 0.3em; }
.form-row-checkbox label { font-weight: 400; margin: 0; }
.form-status[hidden] { display: none; }
.form-status { padding: var(--space-2); border-radius: var(--radius); background: var(--color-bg-alt); margin-top: var(--space-2); }
.recaptcha-placeholder {
  border: 1px dashed var(--color-border); border-radius: var(--radius);
  padding: var(--space-2); color: var(--color-text-secondary); font-size: 0.85rem; text-align: center;
}

/* ---- header / nav ----------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; background: #fff; z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.logo-link { flex-shrink: 0; }
.logo-img { height: 40px; width: auto; }
.main-nav { flex: 1; min-width: 0; }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35em 1.75em;
}
.nav-item { position: relative; }
.nav-item > a {
  color: var(--color-text); font-weight: 600; font-size: 0.8125rem;
  padding: 0.5em 0;
  text-transform: uppercase;
}
.nav-item > a:hover { color: var(--color-primary); text-decoration: none; }
.submenu {
  list-style: none; margin: 0; padding: 0;
  position: absolute; left: 0; top: 100%;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 280px;
  display: none;
  z-index: 50;
}
/* :empty doesn't match here — the template's own indentation leaves a
   whitespace-only text node inside items with no real submenu, and :empty
   requires zero child nodes of any kind. :has(li) checks for an actual
   element child instead, which is what we really mean by "has content". */
.submenu:not(:has(li)) { display: none !important; }
.nav-item:hover .submenu, .nav-item:focus-within .submenu { display: block; }
.submenu li a { display: block; padding: 0.7em 1em; color: var(--color-text); font-size: 0.9rem; }
.submenu li a:hover { background: var(--color-bg-alt); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border: none; background: transparent; cursor: pointer;
}
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--color-text); }

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav {
    order: 3; flex-basis: 100%;
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 600px; }
  .nav-list { flex-direction: column; justify-content: flex-start; gap: 0; padding: var(--space-2) 0; }
  .nav-item > a { display: block; padding: 0.8em 0; font-size: 0.95rem; border-bottom: 1px solid var(--color-border); }
  .submenu { position: static; border: none; box-shadow: none; display: block !important; padding-left: var(--space-2); }
  /* :empty doesn't match here — the template's own indentation leaves a
   whitespace-only text node inside items with no real submenu, and :empty
   requires zero child nodes of any kind. :has(li) checks for an actual
   element child instead, which is what we really mean by "has content". */
.submenu:not(:has(li)) { display: none !important; }
  .nav-toggle { display: flex; margin-left: auto; }
}

/* ---- hero tiles -------------------------------------------------------- */

.hero-carousel {
  position: relative;
  background: var(--color-text);
  overflow: hidden;
  /* Full-bleed breakout: escapes main#main-content's max-width/padding
     regardless of the parent's own box model, so it stays edge-to-edge
     without touching the shared main-content rule every other template
     also relies on. */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.hero-carousel-track {
  position: relative;
  height: 460px;
}
/* Slides hard-cut (visibility, no opacity transition): an opacity-based
   crossfade on the whole slide would fade the heading text along with the
   image and briefly show two headings overlapping mid-transition. Only the
   image itself may fade in a future iteration; text always snaps instantly. */
.hero-slide {
  position: absolute; inset: 0;
  visibility: hidden;
  z-index: 1;
}
.hero-slide.is-active { visibility: visible; z-index: 2; }
.hero-carousel:not(.js-active) .hero-slide:first-child { visibility: visible; z-index: 2; }
.hero-slide a { display: block; height: 100%; color: #fff; }
.hero-slide a:hover { text-decoration: none; }
.hero-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-slide-content {
  position: relative; z-index: 1;
  max-width: var(--max-width); margin: 0 auto;
  display: flex; flex-direction: column; justify-content: flex-end; height: 100%;
  /* Left padding is well clear of the prev arrow's circle (44px, positioned
     at var(--space-2) from the edge) so the panel never overlaps it. */
  padding: var(--space-5) var(--space-3) var(--space-5) var(--space-6);
}
/* Panel background matches the live site's actual light/translucent
   treatment (measured: rgba(255,255,255,0.62)). The heading stays solid
   white (not the text itself faded) for contrast against the panel's own
   varying brightness; a text-shadow (not opacity) carries the legibility
   work instead of a dark panel. Sized to its content (not full-width) to
   read as a distinct panel, matching the live site rather than a
   full-bleed scrim. */
.hero-slide-panel {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  gap: var(--space-3);
  max-width: 34em;
  background: rgba(255, 255, 255, 0.62);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
}
.hero-slide-heading {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: #ffffff; margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.65);
}
.hero-slide-button {
  display: inline-block;
  background: var(--color-primary); color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 0.6em 1.5em; border-radius: 999px;
}
.hero-slide a:hover .hero-slide-button { background: var(--color-primary-dark); }

/* Entrance animation: panel slides up into place each time its slide becomes
   active. Only animates on the transition INTO view (the .is-active class
   being freshly added), never a fade between two slides — exactly one
   .hero-slide is ever visible (see visibility rule above), so there is no
   moment where two panels/headings could overlap. */
@keyframes hero-panel-enter {
  from { transform: translateY(28px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.hero-slide.is-active .hero-slide-panel {
  animation: hero-panel-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active .hero-slide-panel { animation: none; }
}

.hero-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, 0.85); color: var(--color-text);
  font-size: 1rem; cursor: pointer;
}
.hero-carousel-arrow:hover { background: #fff; }
.hero-carousel-prev { left: var(--space-2); }
.hero-carousel-next { right: var(--space-2); }

.hero-carousel-dots {
  position: absolute; left: 0; right: 0; bottom: var(--space-2);
  z-index: 2; display: flex; justify-content: center; gap: 0.5em;
}
.hero-carousel-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.5); padding: 0; cursor: pointer;
}
.hero-carousel-dots button.is-active { background: #fff; }

@media (max-width: 700px) {
  .hero-carousel-track { height: 380px; }
  .hero-carousel-arrow { width: 36px; height: 36px; }
  .hero-slide-content { padding-left: var(--space-3); }
}

/* ---- inner-page title banner --------------------------------------------- */

.title-banner {
  background: linear-gradient(120deg, #10132b 0%, var(--color-primary) 65%, #10132b 100%);
}
.title-banner-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: var(--space-5) var(--space-3);
}
.title-banner h1 {
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 2rem;
  margin: 0;
}
@media (max-width: 700px) {
  .title-banner-inner { padding: var(--space-3) var(--space-3); }
  .title-banner h1 { font-size: 1.5rem; }
}

/* ---- generic page layout ------------------------------------------------ */

main#main-content { max-width: var(--max-width); margin: 0 auto; padding: var(--space-4) var(--space-3); }
/* Homepage only: the hero carousel breaks out to full-bleed and must sit
   flush against the header, so main's own top padding is dropped here.
   .home-intro (the very next section) carries its own top padding, so
   spacing below the hero is unaffected. */
.page-home #main-content { padding-top: 0; }
.home-intro { text-align: center; padding: var(--space-5) 0 var(--space-3); }
.home-intro h1 { margin-bottom: var(--space-1); }
.home-intro h2 { margin-top: 0; color: var(--color-text-secondary); font-size: 1.1rem; font-weight: 500; }

.page-content, .post-content { max-width: 800px; margin: 0 auto; }
.page-content figure.person-portrait { margin: var(--space-3) 0; }
.page-content figure.person-portrait img { border-radius: 50%; width: 120px; }

.post-eyebrow { text-transform: uppercase; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; color: var(--color-primary); }
.post-featured-image { border-radius: var(--radius-lg); margin: var(--space-2) 0 var(--space-3); width: 100%; object-fit: cover; aspect-ratio: 16/9; }
.post-date { color: var(--color-text-secondary); font-size: 0.9rem; margin-top: -0.5em; }
.post-content table { width: 100%; border-collapse: collapse; margin: var(--space-3) 0; }
.post-content table td, .post-content table th { border: 1px solid var(--color-border); padding: 0.6em 0.8em; text-align: left; }
.post-content table thead td { background: var(--color-bg-alt); }
.post-content img { border-radius: var(--radius); margin: var(--space-2) 0; }
.post-contact-note { background: var(--color-primary-light); border-radius: var(--radius); padding: var(--space-3); text-align: center; }

/* ---- article cards ------------------------------------------------------ */

.article-card-list {
  list-style: none; margin: var(--space-3) 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
}
.article-card {
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm);
}
.article-card-link { color: var(--color-text); display: block; }
.article-card-link:hover { text-decoration: none; }
.article-card-link:hover .article-card-title { color: var(--color-primary); }
.article-card img { aspect-ratio: 3/2; object-fit: cover; }
.article-card-body { display: block; padding: var(--space-2); }
.article-card-title { display: block; font-weight: 700; margin-bottom: 0.4em; font-size: 1rem; }
.article-card-date { display: block; color: var(--color-text-secondary); font-size: 0.85rem; }
.see-more-link { display: inline-block; font-weight: 700; margin-top: var(--space-1); }

@media (max-width: 860px) { .article-card-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .article-card-list { grid-template-columns: 1fr; } }

/* ---- stats -------------------------------------------------------------- */

.stats { background: var(--color-text); margin-top: var(--space-5); }
.stats-list {
  list-style: none; margin: 0; padding: var(--space-5) var(--space-3);
  max-width: var(--max-width); margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3);
  text-align: center;
}
.stat-value { display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--color-accent-gold); }
.stat-label { display: block; color: #fff; font-size: 0.9rem; margin-top: 0.3em; }
@media (max-width: 700px) { .stats-list { grid-template-columns: 1fr 1fr; } }

/* ---- CTA block ------------------------------------------------------------ */

.cta-block { text-align: center; padding: var(--space-5) 0; }
.cta-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-3); }
.cta-item { background: var(--color-bg-alt); border-radius: var(--radius-lg); padding: var(--space-3); }
.cta-item h3 { margin: 0; font-size: 1rem; }
.cta-item a { color: var(--color-text); }
.cta-item a:hover { color: var(--color-primary); text-decoration: none; }
@media (max-width: 700px) { .cta-items { grid-template-columns: 1fr; } }

/* ---- FAQ ------------------------------------------------------------------ */

.faq-list { max-width: 800px; margin: var(--space-3) auto 0; }
.faq-item {
  border: 1px solid var(--color-border); border-radius: var(--radius);
  margin-bottom: var(--space-1); padding: var(--space-2) var(--space-3);
}
.faq-question { cursor: pointer; font-weight: 700; list-style: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::before { content: "+ "; color: var(--color-primary); }
.faq-item[open] .faq-question::before { content: "\2212 "; }
.faq-answer { padding-top: var(--space-2); color: var(--color-text-secondary); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---- contact page ---------------------------------------------------------- */

.contact-layout { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-4); align-items: start; }
.contact-person { background: var(--color-bg-alt); border-radius: var(--radius-lg); padding: var(--space-3); }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---- category archive / pagination ------------------------------------------ */

.pagination { margin: var(--space-4) 0; }
.pagination-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.4em; margin: 0; padding: 0;
  justify-content: center;
}
.pagination-list a {
  display: inline-block; min-width: 2.2em; text-align: center;
  padding: 0.5em 0.7em; border-radius: var(--radius); border: 1px solid var(--color-border);
  color: var(--color-text);
}
.pagination-list a:hover { border-color: var(--color-primary); text-decoration: none; }
.pagination-link.is-current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination-prev, .pagination-next { font-weight: 600; }

/* ---- footer --------------------------------------------------------------- */

.site-footer { background: var(--color-footer-bg); color: #fff; margin-top: var(--space-6); }
.footer-callback { background: var(--color-accent-gold); }
.footer-callback-inner { max-width: var(--max-width); margin: 0 auto; padding: var(--space-4) var(--space-3); color: var(--color-text); }
.footer-callback-inner h3 { color: var(--color-text); font-size: 2rem; margin: 0 0 var(--space-2); }
.callback-form .form-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin: 0; }
.callback-form input { flex: 1; min-width: 200px; }
.footer-main {
  max-width: var(--max-width); margin: 0 auto; padding: var(--space-5) var(--space-3);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-4);
  font-size: 1.0625rem;
}
.footer-col img { margin-bottom: var(--space-3); }
.footer-col h3, .footer-col h4 { color: #fff; }
.footer-col h4 { font-size: 1.0625rem; }
.footer-col h3 { font-size: 1.25rem; }
.footer-contact-list, .footer-legal-list { list-style: none; margin: 0 0 var(--space-2); padding: 0; }
.footer-contact-list li, .footer-legal-list li { margin-bottom: 0.4em; }
.footer-contact-list a, .footer-legal-list a { color: #fff; }
@media (max-width: 800px) { .footer-main { grid-template-columns: 1fr; } }

/* ---- cookie banner ---------------------------------------------------------- */

.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--color-text); color: #fff;
  padding: var(--space-2) var(--space-3);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; justify-content: space-between;
}
.cookie-banner-inner p { margin: 0; font-size: 0.85rem; flex: 1; min-width: 240px; }
.cookie-banner-inner a { color: #cfd6ff; }
.cookie-banner-actions { display: flex; gap: var(--space-1); }
.cookie-banner .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cookie-banner .btn-secondary:hover,
.cookie-banner .btn-secondary:focus-visible { color: #fff; border-color: #fff; }

/* ---- service cards (Szolgáltatások hub) ------------------------------------ */

.service-card-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
  margin: var(--space-3) 0;
}
.service-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm); color: var(--color-text);
}
.service-card:hover { text-decoration: none; }
.service-card img { aspect-ratio: 4/3; object-fit: cover; }
.service-card-body { display: flex; flex-direction: column; gap: 0.5em; padding: var(--space-3); flex: 1; }
.service-card-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; }
.service-card-desc { color: var(--color-text-secondary); font-size: 0.9rem; flex: 1; }
.service-card-link { font-weight: 700; color: var(--color-primary); }
@media (max-width: 860px) { .service-card-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .service-card-list { grid-template-columns: 1fr; } }

/* ---- misc content blocks (case-study gallery, references table) ------------ */

.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2);
  margin: var(--space-3) 0;
}
.gallery-grid img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: 1fr; } }

.references-table-wrap { overflow-x: auto; margin: var(--space-3) 0; }
.references-table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.references-table-wrap th, .references-table-wrap td {
  border: 1px solid var(--color-border); padding: 0.6em 0.8em; text-align: left; vertical-align: top;
}
.references-table-wrap thead th { background: var(--color-bg-alt); position: sticky; top: 0; }
