/* Pannonia Hem – main stylesheet.
   Consolidated from the earlier layered version blocks: unused rules removed
   and overridden declarations merged. Edit this file in developer/public and
   run `npm run release`. */

/* ==========================================================
   Pannonia Hem v1.6 — design system
   ========================================================== */
:root {
  --green-950: #173f34;
  --green-900: #20513d;
  --green-800: #2f6f45;
  --green-700: #3f844d;
  --green-600: #57985d;
  --green-200: #dcead7;
  --green-100: #eef5eb;
  --green-050: #f6faf3;
  --cream: #fbfaf4;
  --paper: #fffefa;
  --ink: #18312b;
  --ink-2: #465b54;
  --muted: #5d6d67;
  --line: #e3e8de;
  --white: #fff;
  --shadow: 0 18px 50px rgba(31, 74, 52, 0.09);
  --shadow-sm: 0 8px 24px rgba(31, 74, 52, 0.07);
  --radius: 22px;
  --radius-sm: 15px;
  --container: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hand: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.17em;
  transition:
    color 0.22s ease,
    opacity 0.22s ease;
}
button,
input,
textarea,
select {
  font: inherit;
}
h1,
h2,
h3 {
  margin: 0 0 0.55em;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.024em;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.7rem, 5.1vw, 5.05rem);
}
h2 {
  font-size: clamp(2rem, 3.3vw, 3.35rem);
}
h3 {
  font-size: clamp(1.28rem, 2vw, 1.65rem);
}
p {
  margin: 0 0 1.1em;
}
ul {
  margin-top: 0;
}
.container {
  width: min(calc(100% - 44px), var(--container));
  margin-inline: auto;
}
.narrow {
  width: min(820px, 100%);
  margin-inline: auto;
}
.section {
  position: relative;
  padding: clamp(68px, 8vw, 108px) 0;
}
.section--soft {
  background: linear-gradient(180deg, var(--green-050), #f3f7ef);
}
.section--cream {
  background: var(--cream);
}
.section--compact {
  padding: 54px 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--green-800);
  margin-bottom: 12px;
}
.lead {
  font-size: clamp(1.12rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 730px;
}
.lead-small {
  font-size: 1.16rem;
  color: var(--ink-2);
}
.small {
  font-size: 0.9rem;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  background: #fff;
  padding: 11px 16px;
  z-index: 1000;
  border-radius: 8px;
}
.skip-link:focus {
  top: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 252, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(35, 79, 55, 0.08);
}
.nav-wrap {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 190px;
}
.brand-logo {
  width: 190px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}
.site-nav {
  display: flex;
  align-items: center;
}
.site-nav > a {
  position: relative;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}
.site-nav > a:not(.nav-cta):not(.language-switch)::after {
  content: "";
  position: absolute;
}
.site-nav > a:hover::after,
.site-nav > a[aria-current="page"]::after {
  right: 0;
}
.nav-cta {
  background: var(--green-800);
  color: #fff !important;
  padding: 10px 19px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover {
  background: var(--green-900);
}
.language-switch {
  font-weight: 800;
  color: var(--green-950);
  padding-left: 6px;
}
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}
.menu-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn::after {
  content: "→";
  font-size: 1.05em;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn--primary {
  background: var(--green-800);
  color: #fff;
}
.btn--primary:hover {
  background: var(--green-900);
}
.btn--secondary {
  border-color: var(--green-700);
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-950);
}
.btn--secondary:hover {
  background: var(--green-100);
  border-color: var(--green-900);
  color: var(--green-950);
}
.text-link {
  display: inline-block;
  font-weight: 760;
  color: var(--green-800);
  text-decoration: none;
  transition:
    color 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.text-link:hover {
  color: var(--green-950);
  text-decoration: none;
}

/* Home hero */
.home-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-hero__media img {
  transform-origin: center;
}
.hand-note {
  font-family: var(--hand);
  font-size: clamp(1.05rem, 1.6vw, 1.42rem);
  font-style: italic;
  color: #5d6f66;
  transform: rotate(-2deg);
}

/* Feature strip */
.feature-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.feature-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.feature-mini {
  text-align: center;
  background: linear-gradient(180deg, #fbfdf9, #f2f7ef);
  border: 1px solid #edf1e9;
}
.feature-mini__icon {
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  color: var(--green-800);
}
.feature-mini__icon svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.feature-mini p {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0;
}

/* About home */
.home-about::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 260px;
  right: -22px;
  top: -36px;
  background: url("/assets/images/decor/acacia-real.webp") center/contain no-repeat;
  opacity: 0.34;
  transform: scaleX(-1);
}
.home-about__grid {
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 360px;
  align-items: center;
}

/* testimonials */
.testimonials {
  position: relative;
  overflow: hidden;
}
.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading-row h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.55rem);
  margin: 0;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}
.quote-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #e4eadf;
  box-shadow: 0 8px 22px rgba(31, 74, 52, 0.035);
}
.quote-card blockquote {
  margin: 0 0 15px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
}
.quote-card blockquote::before {
  content: "“";
  font-size: 2.8rem;
  line-height: 0.5;
  color: #c6d7bf;
  margin-right: 7px;
  vertical-align: -0.25em;
}
.quote-card cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--ink-2);
}

/* Seniorliv cards */
.seniorlife-preview {
  background: #fff;
}
.seniorlife-preview h2 {
  font-size: clamp(1.95rem, 2.7vw, 2.7rem);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(31, 74, 52, 0.035);
  display: flex;
  flex-direction: column;
}
.article-card > img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  background: #eef2eb;
}
.article-card > div {
  padding: 20px 20px 19px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card h3,
.article-card h2 {
  font-size: 1.28rem;
  margin-bottom: 8px;
}
.article-card p {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.48;
}
.article-card .text-link {
  margin-top: auto;
  font-size: 0.91rem;
}
.tag {
  display: inline-flex;
  align-self: flex-start;
  background: var(--green-100);
  color: var(--green-900);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 11px;
}

/* CTA compact */
.compact-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #eef6e9, #f8fbf5);
  padding: 28px 0;
  border-top: 1px solid #e5ecdf;
  border-bottom: 1px solid #e5ecdf;
}
.compact-cta::before {
  content: "";
  position: absolute;
  left: -34px;
  top: -80px;
  width: 160px;
  height: 210px;
  background: url("/assets/images/decor/acacia-real.webp") center/contain no-repeat;
}
.compact-cta__grid {
  display: grid;
  grid-template-columns: 1.2fr auto;
  align-items: center;
  gap: 35px;
  position: relative;
}
.compact-cta h2 {
  font-size: 2rem;
  margin-bottom: 5px;
}
.compact-cta p {
  margin: 0;
  color: var(--ink-2);
}
.compact-cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: #fff;
  position: relative;
  overflow: hidden;
}
.site-footer::after {
  content: "";
  position: absolute;
  background: url("/assets/images/decor/acacia-real.webp") center/contain no-repeat;
  transform: scaleX(-1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr 1fr 0.85fr;
  gap: 42px;
  position: relative;
  z-index: 2;
}
.footer-logo {
  width: 205px;
  max-height: 76px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 10px;
}
.footer-tagline {
  font-family: var(--hand);
  font-size: 0.93rem;
  color: #667a70;
  line-height: 1.55;
}
.footer-heading {
  font: 700 1rem/1.2 var(--sans);
  letter-spacing: 0;
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin: 6px 0;
}
.footer-links a,
.site-footer address a {
  font-size: 0.89rem;
  text-decoration: none;
  color: var(--ink-2);
}
.social-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.social-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  text-decoration: none;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  position: relative;
  z-index: 2;
}
.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.footer-bottom a {
  text-decoration: none;
}

/* Breadcrumbs / generic page hero */
.breadcrumbs {
  background: #f7f9f4;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}
.breadcrumbs .container {
  display: flex;
  gap: 9px;
  padding-block: 9px;
  color: #4f635b;
}
.breadcrumbs a {
  text-decoration: none;
}
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(66px, 8vw, 105px) 0;
  background: linear-gradient(110deg, #f7fbf5 0 68%, #eef5e9 68%);
}
.page-hero::after {
  content: "";
  position: absolute;
}
.page-hero .narrow,
.page-hero .container {
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.65rem);
}

/* Generic sections/cards */
.section-heading {
  max-width: 790px;
  margin-bottom: 36px;
}
.split-intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}
.image-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.feature-card h3 {
  font-size: 1.38rem;
}
.icon-badge {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 38px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 0.76rem;
  font-weight: 850;
  margin-bottom: 17px;
}
.feature-card a {
  font-weight: 750;
  color: var(--green-800);
  text-decoration: none;
}
.notice {
  border: 1px solid #dfe9da;
  background: #f5faf2;
  border-radius: 16px;
  padding: 22px 24px;
}
.notice p:last-child {
  margin-bottom: 0;
}

/* Structured Seniorliv hub */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.topic-card {
  position: relative;
  min-height: 220px;
  padding: 28px;
  border: 1px solid #e3e9df;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f3f8ef);
  overflow: hidden;
  text-decoration: none;
}
.topic-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -68px;
  width: 155px;
  height: 190px;
  background: url("/assets/images/decor/acacia-real.webp") center/contain no-repeat;
  opacity: 0.14;
}
.topic-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  margin-bottom: 8px;
}
.topic-card span {
  display: block;
  color: var(--ink-2);
  font-size: 0.92rem;
}
.topic-card em {
  display: inline-block;
  margin-top: 20px;
  color: var(--green-800);
  font-style: normal;
  font-weight: 750;
  font-size: 0.88rem;
}
.article-grid--listing {
  grid-template-columns: repeat(2, 1fr);
}
.article-grid--listing .article-card {
  display: grid;
  grid-template-columns: 190px 1fr;
}
.article-grid--listing .article-card > img {
  height: 100%;
  aspect-ratio: auto;
  min-height: 210px;
}
.topic-section {
  scroll-margin-top: 92px;
}
.topic-section + .topic-section {
  border-top: 1px solid var(--line);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 54px;
  align-items: start;
}
.contact-card {
  background: linear-gradient(145deg, #f3f8ef, #fff);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.contact-list {
  list-style: none;
  padding: 0;
}
.contact-list li {
  margin: 15px 0;
}
.contact-list a {
  text-decoration: none;
  font-weight: 700;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 7px;
}
.field--full {
  grid-column: 1/-1;
}
.field label {
  font-size: 0.82rem;
  font-weight: 800;
}
.field textarea {
  min-height: 135px;
  resize: vertical;
}
.consent {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Articles */
.article-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 58px;
  align-items: start;
}
.article-body {
  font-size: 1.03rem;
}
.article-body h2 {
  font-size: 2rem;
  margin-top: 1.7em;
}
.article-body h3 {
  margin-top: 1.6em;
}
.article-body a {
  color: var(--green-800);
}
.article-aside {
  background: #f5f9f2;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.article-aside h2 {
  font-size: 1.2rem;
}
.article-aside ul {
  padding-left: 19px;
}
.article-aside li {
  margin: 0.6em 0;
}

/* Link and button interactions — intentionally limited to interactive controls. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(31, 74, 52, 0.14);
  }
  .btn:hover::after {
    transform: translateX(4px);
  }
  .footer-grid a:hover,
  .footer-bottom a:hover,
  .breadcrumbs a:hover,
  .article-body a:not(.btn):not(.text-link):hover,
  .prose a:hover {
    color: var(--green-700);
    position: relative;
    top: -1px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Responsive */
@media (max-width: 1020px) {
  .brand-logo {
    width: 165px;
  }
  .home-hero__copy {
    padding-right: 28px;
  }
  .footer-grid {
    grid-template-columns: 1.35fr 1fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: 2/4;
  }
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 820px) {
  body {
    font-size: 16px;
  }
  .container {
    width: min(calc(100% - 30px), var(--container));
  }
  .nav-wrap {
    height: 70px;
  }
  .brand-logo {
    width: 160px;
    height: 56px;
  }
  .menu-toggle {
    display: block;
  }
  .site-nav {
    position: absolute;
    left: 15px;
    right: 15px;
    top: 70px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav > a {
    padding: 11px 8px;
  }
  .site-nav > a::after {
    display: none;
  }
  .nav-cta {
    text-align: center;
    margin-top: 7px;
  }
  .language-switch {
    text-align: center;
  }
  .feature-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-about__grid {
    grid-template-columns: 1fr;
  }
  .testimonial-grid,
  .article-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .compact-cta__grid {
    grid-template-columns: 1fr;
  }
  .compact-cta__actions {
    justify-content: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: auto;
  }
  .split-intro,
  .media-split,
  .contact-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }
  .topic-grid {
    grid-template-columns: 1fr 1fr;
  }
  .article-grid--listing {
    grid-template-columns: 1fr;
  }
  .section-heading-row {
    align-items: start;
    flex-direction: column;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field--full {
    grid-column: auto;
  }
}
@media (max-width: 560px) {
  h1 {
    font-size: 2.6rem;
  }
  h2 {
    font-size: 2rem;
  }
  .section {
    padding: 58px 0;
  }
  .feature-strip__grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-mini p {
    font-size: 0.78rem;
  }
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .article-grid--listing .article-card {
    grid-template-columns: 1fr;
  }
  .article-grid--listing .article-card > img {
    min-height: auto;
    aspect-ratio: 16/7;
  }
  .button-row,
  .compact-cta__actions {
    width: 100%;
  }
  .btn {
    width: 100%;
  }
  .section-heading-row {
    margin-bottom: 18px;
  }
  .contact-form {
    padding: 22px;
  }
}

/* ==========================================================
   Compatibility styles for interior pages
   ========================================================== */
.section--dark {
  background: var(--green-950);
  color: #fff;
}
.section--dark h2,
.section--dark h3 {
  color: #fff;
}
.section--dark p {
  color: #e4eee7;
}
.section--dark .eyebrow {
  color: #b7d8b5;
}
.text-link--light {
  color: #fff;
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 52px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.page-hero__grid .image-frame {
  min-height: 340px;
}
.page-hero__grid .image-frame img {
  min-height: 340px;
  object-fit: cover;
}
.page-hero--simple {
  background: linear-gradient(110deg, #f7fbf5, #edf5e9);
}
.page-hero--accent {
  background: linear-gradient(110deg, #f3f8ef, #fff8ed);
}
.media-split--reverse > figure {
  order: 2;
}
.media-split--reverse > div {
  order: 1;
}
.illustration-card {
  border-radius: var(--radius);
  background: linear-gradient(145deg, #f4f8f0, #fff);
  border: 1px solid var(--line);
  padding: 38px;
  min-height: 330px;
  display: grid;
  place-items: center;
}
.illustration-card img {
  max-height: 300px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 26px;
}
.detail-grid > div {
  padding: 18px;
  border-radius: 14px;
  background: var(--green-050);
  border: 1px solid var(--line);
}
.detail-grid strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--green-900);
}
.detail-grid span {
  font-size: 0.82rem;
  color: var(--ink-2);
}
.faq {
  display: grid;
  gap: 12px;
  max-width: 900px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 800;
}
.faq details p {
  padding: 0 0 18px;
  color: var(--ink-2);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.values-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
}
.values-grid article > span {
  display: inline-flex;
  color: var(--green-800);
  font-weight: 900;
  font-size: 0.8rem;
  margin-bottom: 16px;
}
.values-grid h2 {
  font-size: 1.45rem;
}
.values-grid p {
  font-size: 0.93rem;
  color: var(--ink-2);
}
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}
.steps > li {
  counter-increment: step;
  list-style: none;
  position: relative;
  padding: 22px 24px 22px 72px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-100);
  display: grid;
  place-items: center;
  color: var(--green-900);
  font-weight: 900;
}
.article-layout {
  display: block;
}
.article-hero {
  background: linear-gradient(110deg, #f7fbf5, #eef5e9);
  padding: 70px 0;
}
.article-hero__grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 45px;
  align-items: center;
}
.article-hero__grid > img {
  width: 220px;
  height: 160px;
  object-fit: contain;
  justify-self: end;
}
.article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 58px;
  align-items: start;
  padding-top: 62px;
  padding-bottom: 78px;
}
.prose {
  max-width: 800px;
}
.prose > p,
.prose > ul,
.prose > ol {
  color: #354c45;
}
.aside-card h2 {
  font-size: 1.4rem;
}
.article-aside {
  position: sticky;
  top: 98px;
}
.article-aside .aside-card {
  background: #f5f9f2;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.field select,
.field input,
.field textarea {
  width: 100%;
  border: 1px solid #cfd9ca;
  border-radius: 10px;
  background: #fbfdf9;
  padding: 12px 13px;
  color: var(--ink);
}
.field select {
  min-height: 48px;
}
.consent a {
  color: var(--green-800);
}
.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 6px 0 18px;
}
.checkbox input {
  margin-top: 4px;
}

@media (max-width: 820px) {
  .page-hero__grid,
  .article-hero__grid,
  .article-body {
    grid-template-columns: 1fr;
  }
  .page-hero__grid .image-frame {
    min-height: 280px;
  }
  .article-hero__grid > img {
    justify-self: start;
    width: 160px;
  }
  .article-aside {
    position: static;
  }
  .media-split--reverse > figure,
  .media-split--reverse > div {
    order: initial;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .detail-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
  .article-hero {
    padding: 52px 0;
  }
  .article-body {
    padding-top: 45px;
    gap: 36px;
  }
}

/* ==========================================================
   Pannonia Hem v1.5 — refinements
   ========================================================== */
:root {
  --gold-700: #8b6913;
  --gold-500: #c9a33a;
  --gold-300: #e3c567;
  --gold-100: #fff6d8;
}

/* Hero: stable split layout, full-height image, natural wrapping. */
.home-hero__copy {
  min-width: 0;
}
.home-hero__copy h1 {
  overflow-wrap: normal;
  word-break: normal;
}

/* More expressive, but calm, navigation interactions. */
.site-nav > a:not(.nav-cta):not(.language-switch)::after {
  border-radius: 999px;
}
.language-switch {
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.22s ease;
}

/* Keep the existing lift animation and add the requested gold colour transition. */
@media (hover: hover) and (pointer: fine) {
  .site-nav .language-switch:hover {
    color: var(--green-950);
    background: var(--gold-100);
    border-color: var(--gold-300);
    box-shadow: 0 7px 18px rgba(139, 105, 19, 0.12);
    transform: translateY(-2px);
  }
  .nav-cta:hover,
  .btn--primary:hover {
    background: var(--gold-300);
    border-color: var(--gold-500);
    color: var(--green-950) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(139, 105, 19, 0.18);
  }
  .btn--secondary:hover {
    background: var(--gold-100);
    border-color: var(--gold-500);
    color: var(--green-950);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(139, 105, 19, 0.13);
  }
  .text-link:hover {
    color: var(--gold-700);
    transform: translateX(4px);
  }
}

/* Footer emphasis requested for quick links, privacy and Fortune Accounting. */
.footer-heading {
  color: var(--gold-700);
}
.footer-highlight-link {
  color: var(--gold-700) !important;
  font-weight: 750;
}
@media (hover: hover) and (pointer: fine) {
  .footer-highlight-link:hover {
    color: var(--green-800) !important;
    top: -1px;
  }
}

/* Floating flag-only language switch. */
.floating-language {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 95;
}
.floating-language__toggle,
.floating-language__menu a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(32, 81, 61, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 252, 0.96);
  box-shadow: 0 10px 28px rgba(23, 63, 52, 0.14);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
.floating-language__toggle {
  position: relative;
  z-index: 2;
}
.floating-language__menu {
  position: absolute;
  right: 0;
  bottom: 50px;
  display: grid;
  gap: 7px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (hover: hover) and (pointer: fine) {
  .floating-language:hover .floating-language__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }
  .floating-language__toggle:hover,
  .floating-language__menu a:hover {
    transform: translateY(-2px);
    border-color: var(--gold-500);
    background: var(--gold-100);
    box-shadow: 0 12px 30px rgba(139, 105, 19, 0.14);
  }
}
.floating-language.is-open .floating-language__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.floating-language__menu a[aria-current="page"] {
  border-color: var(--green-700);
  background: var(--green-050);
}
.flag {
  display: block;
  width: 28px;
  height: 18px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.flag--sv {
  background:
    linear-gradient(to bottom, transparent 0 41%, #fecc00 41% 59%, transparent 59% 100%),
    linear-gradient(to right, #006aa7 0 31%, #fecc00 31% 43%, #006aa7 43% 100%);
}
.flag--hu {
  background: linear-gradient(
    to bottom,
    #ce2939 0 33.333%,
    #fff 33.333% 66.666%,
    #477050 66.666% 100%
  );
}
@media (max-width: 820px) {
  .floating-language {
    right: 14px;
    bottom: 14px;
  }
}

/* ==========================================================
   Pannonia Hem v1.6 — navigation, hero, consent & form security UI
   ========================================================== */
.site-nav {
  gap: 24px;
}
.site-nav > a:not(.nav-cta):not(.language-switch)::after {
  left: 50%;
  right: 50%;
  bottom: -9px;
  height: 3px;
  background: var(--green-700);
  transition:
    left 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    right 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.22s ease;
}
.site-nav > a:not(.nav-cta):not(.language-switch):hover::after,
.site-nav > a:not(.nav-cta):not(.language-switch)[aria-current="page"]::after {
  left: 0;
  right: 0;
}
@media (hover: hover) and (pointer: fine) {
  .site-nav > a:not(.nav-cta):not(.language-switch):hover {
    color: var(--green-800);
    transform: translateY(-2px);
  }
}

/* Hero follows the approved mock-up: wide, straight split and no narrow image column. */

.footer-cookie-settings {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--gold-700);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.17em;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .footer-cookie-settings:hover {
    color: var(--green-800);
    transform: translateY(-1px);
  }
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  max-width: 1040px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: rgba(255, 255, 252, 0.985);
  border: 1px solid rgba(32, 81, 61, 0.18);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 22px 65px rgba(23, 63, 52, 0.22);
  backdrop-filter: blur(14px);
}
.cookie-banner[hidden] {
  display: none !important;
}
.cookie-banner__copy strong {
  display: block;
  font: 600 1.15rem/1.25 var(--serif);
  margin-bottom: 5px;
}
.cookie-banner__copy p {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 4px;
}
.cookie-banner__copy a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-block: 3px;
  font-size: 0.86rem;
  font-weight: 750;
  color: var(--green-800);
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cookie-banner .btn {
  min-height: 44px;
  padding-inline: 17px;
  white-space: nowrap;
}
.cookie-action::after {
  display: none;
}
.cookie-table-wrap {
  overflow-x: auto;
  margin: 18px 0 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: #fff;
}
.cookie-table th,
.cookie-table td {
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.cookie-table th {
  background: var(--green-050);
  font-size: 0.82rem;
}
.cookie-table tr:last-child td {
  border-bottom: 0;
}
.policy-updated {
  margin-top: 32px;
}

.form-status {
  display: none;
  grid-column: 1/-1;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 0.9rem;
  font-weight: 700;
}
.form-status.is-visible {
  display: block;
}
.form-status.is-success {
  background: #edf7e9;
  color: #285f38;
  border: 1px solid #cce2c5;
}
.form-status.is-error {
  background: #fff1ed;
  color: #8a352d;
  border: 1px solid #efc7bf;
}
.contact-form button[disabled] {
  opacity: 0.58;
  cursor: wait;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 15px;
  }
  .home-hero__copy {
    padding-right: 34px;
  }
}
@media (max-width: 820px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 14px;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .cookie-banner__actions {
    flex-wrap: wrap;
  }
  .cookie-banner__actions .btn {
    width: auto;
    flex: 1 1 190px;
  }
}
@media (max-width: 560px) {
  .cookie-banner {
    padding: 17px;
  }
  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .cookie-banner__actions .btn {
    width: 100%;
  }
}

/* ==========================================================
   Pannonia Hem v1.7 — hero tuning + moving galleries
   ========================================================== */
.home-hero__media img {
  background: #eef4e9;
}
.gallery-slider {
  position: relative;
  margin-top: 22px;
}
.gallery-slider__viewport {
  overflow: hidden;
  border-radius: 22px;
}
.gallery-slider__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.gallery-slide {
  min-width: 100%;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-slide img {
  width: 100%;
  height: clamp(300px, 42vw, 560px);
  object-fit: cover;
  display: block;
}
.gallery-slide figcaption {
  padding: 15px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-2);
}
.gallery-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-900);
  box-shadow: 0 10px 24px rgba(26, 59, 49, 0.15);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease;
  z-index: 2;
}
.gallery-slider__arrow:hover {
  transform: translateY(-50%) scale(1.05);
  background: #fff8e7;
  color: var(--gold-700);
}
.gallery-slider__arrow--prev {
  left: 14px;
}
.gallery-slider__arrow--next {
  right: 14px;
}
.gallery-slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.gallery-slider__dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: #d3ded0;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}
.gallery-slider__dots button.is-active {
  background: linear-gradient(90deg, var(--green-700), var(--gold-500));
  transform: scale(1.18);
}
.gallery-slider__dots button:hover {
  background: #b6c8b4;
}
@media (max-width: 820px) {
  .home-hero__media img {
    border-radius: 0;
  }
  .gallery-slide img {
    height: clamp(260px, 62vw, 420px);
  }
}
@media (max-width: 560px) {
  .gallery-slider__arrow {
    width: 42px;
    height: 42px;
    font-size: 1.55rem;
  }
  .gallery-slider__arrow--prev {
    left: 10px;
  }
  .gallery-slider__arrow--next {
    right: 10px;
  }
  .gallery-slide figcaption {
    padding: 13px 15px;
  }
}

/* HERO — compact panoramic image, full bleed to the right,
   with a long soft fade under the text just like the mock-up. */
.home-hero__media::after {
  inset: 0;
}

/* ABOUT — the building photo is one wide image with the quote
   floating over a bright fade on the right, as in the mock-up. */
.home-about__grid.container {
  padding-left: max(36px, calc((100vw - 1540px) / 2));
}

/* ==========================================================
   Pannonia Hem v1.7.5 — hero acacia + warmer homepage about section
   ========================================================== */

.home-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  background: url("/assets/images/decor/acacia-real.webp") center/contain no-repeat;
  transform: scaleX(-1) rotate(4deg);
  pointer-events: none;
}
.home-hero__grid {
  position: relative;
  z-index: 1;
}
.home-about::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 210px;
  height: 275px;
  right: -32px;
  bottom: -72px;
  background: url("/assets/images/decor/acacia-real.webp") center/contain no-repeat;
  opacity: 0.2;
  transform: scaleX(-1) rotate(-5deg);
  pointer-events: none;
}
.home-about__grid.container {
  position: relative;
  z-index: 1;
}
.home-about__quote small {
  font: 700 0.78rem/1.3 var(--sans);
}

@media (max-width: 820px) {
  .home-hero::after {
    bottom: 8px;
  }
}

/* The approved sketch uses a clearly decorated left side.
   Use several acacia impressions, but keep them soft behind the copy. */
.home-hero::before {
  background-image:
    url("/assets/images/decor/acacia-real.webp"), url("/assets/images/decor/acacia-real.webp"),
    url("/assets/images/decor/acacia-real.webp"), url("/assets/images/decor/acacia-real.webp");
  background-repeat: no-repeat;
  background-size:
    250px auto,
    180px auto,
    145px auto,
    115px auto;
  background-position:
    0 8px,
    68px 142px,
    2px 255px,
    130px 305px;
}

/* Return to the sketch's natural-image treatment:
   no forced crop, no left-side mask, no enlarged hidden portion. */

.home-hero__media {
  align-items: center;
  justify-content: flex-end;
  margin-left: 0;
}

@media (max-width: 1100px) {
  .home-hero::before {
    background-size:
      205px auto,
      150px auto,
      120px auto,
      95px auto;
    background-position:
      -10px 12px,
      50px 135px,
      -4px 235px,
      105px 278px;
  }
}

@media (max-width: 820px) {
  .home-hero::before {
    background-image:
      url("/assets/images/decor/acacia-real.webp"), url("/assets/images/decor/acacia-real.webp");
    background-size:
      150px auto,
      100px auto;
    background-position:
      0 0,
      62px 105px;
  }
}

/* Right-side hero decoration stays secondary. */
.home-hero::after {
  width: 220px;
  height: 270px;
  right: -64px;
  top: 70px;
  opacity: 0.08;
}

/* Keep the full hero photograph visible and move it only slightly down.
   The section itself starts close to the navigation. */

.home-hero__media {
  height: auto;
}

/* Wider article cards, matching the proportions of the approved mock-up. */

@media (max-width: 560px) {
  .home-hero__copy {
    padding-top: 30px;
  }
}

/* Use the transparent, realistic black-locust/acacia branch asset.
   The decoration frames the content from the edges, like the approved mock-up. */
.home-hero__copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  background: url("/assets/images/decor/acacia-real.webp") center/contain no-repeat;
  pointer-events: none;
}

/* Hero starts immediately below the navigation and the image no longer sits
   visually lower than the approved sketch. */
.home-hero__grid {
  margin-inline: auto;
  padding-left: 0;
}
.home-hero__media {
  align-self: start;
}
.home-hero__media img {
  aspect-ratio: auto;
}
/* Large acacia branch on the right edge of the hero photo. */
.home-hero__media::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: -74px;
  top: -26px;
  width: 225px;
  height: 315px;
  background: url("/assets/images/decor/acacia-real.webp") center/contain no-repeat;
  opacity: 0.94;
  transform: scaleX(-1) rotate(8deg);
  pointer-events: none;
}

/* Fortune Accounting-style scroll-to-top button, recoloured for Pannonia Hem. */
.back-to-top {
  position: fixed;
  right: 0;
  bottom: 78px;
  z-index: 96;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(23, 63, 52, 0.18);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: rgba(23, 63, 52, 0.82);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  box-shadow: 0 10px 26px rgba(23, 63, 52, 0.18);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
@media (hover: hover) and (pointer: fine) {
  .back-to-top:hover {
    background: var(--green-950);
    box-shadow: 0 12px 28px rgba(23, 63, 52, 0.24);
  }
}
.back-to-top:focus-visible {
  outline: 3px solid rgba(200, 166, 75, 0.48);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .home-hero__media::after {
    right: -62px;
    top: -18px;
    width: 190px;
    height: 268px;
  }
}

@media (max-width: 820px) {
  .home-hero__media::after {
    right: -50px;
    top: -12px;
    width: 145px;
    height: 208px;
    opacity: 0.78;
  }
  .back-to-top {
    bottom: 76px;
  }
}

@media (max-width: 560px) {
  .home-hero__media::after {
    right: -42px;
    top: -6px;
    width: 118px;
    height: 172px;
    opacity: 0.68;
  }
  .back-to-top {
    width: 42px;
    height: 42px;
    bottom: 72px;
  }
}

/* Slightly fuller left botanical edge, closer to the approved sketch. */
.home-hero__copy::before {
  left: -126px;
  bottom: -116px;
  width: 218px;
  height: 294px;
  opacity: 0.64;
  transform: scaleX(-1) rotate(12deg);
}

/* ABOUT / HOUSE IMAGE
   The source photo is 650×388 (~1.675:1). The previous visual area was
   much wider than the photo, so object-fit:cover cropped the building heavily.
   Split the visual into a near-native-ratio photo area and a separate quote area. */
.home-about__visual {
  grid-template-columns: minmax(0, 68%) minmax(220px, 32%);
  align-items: stretch;
}
.home-about__visual img {
  min-height: 0;
}
.home-about__quote {
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Wider but clearly flatter Seniorliv cards. */
.seniorlife-preview .article-card h3 {
  margin-bottom: 6px;
}
.seniorlife-preview .article-card p {
  line-height: 1.42;
}
.seniorlife-preview .article-card .tag {
  margin-bottom: 8px;
}

@media (max-width: 1100px) {
  .home-hero__copy::before {
    left: -104px;
    bottom: -96px;
    width: 178px;
    height: 242px;
    opacity: 0.54;
  }
  .home-about__visual {
    grid-template-columns: minmax(0, 69%) minmax(190px, 31%);
  }
}

@media (max-width: 820px) {
  .home-about__visual {
    grid-template-columns: 1fr;
  }
  .home-about__visual img {
    aspect-ratio: 650/388;
  }
}

/* HEADER — compact like the sketch, so the hero starts immediately below it. */
@media (min-width: 821px) {
  .nav-wrap {
    height: 66px;
  }
  .brand-logo {
    width: 184px;
    height: 58px;
  }
  .nav-cta {
    padding: 9px 18px;
  }
}

/* HERO — full-width two-column composition matching the sketch.
   Text stays on the left; the photograph starts right after it and reaches
   the viewport edge. */
.home-hero {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  background: #fffef8;
}
.home-hero__grid {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(510px, 42.5%) minmax(0, 57.5%);
  gap: 0;
  align-items: stretch;
  min-height: 0;
}
.home-hero__copy {
  position: relative;
  z-index: 3;
  padding: 30px 38px 26px max(44px, calc((100vw - 1540px) / 2 + 18px));
}
.home-hero__copy h1 {
  max-width: 610px;
  font-size: clamp(2.65rem, 3.35vw, 3.72rem);
  line-height: 1.04;
  margin-bottom: 0.38em;
  text-wrap: balance;
}
.home-hero__copy .lead {
  max-width: 560px;
  font-size: 1.02rem;
  line-height: 1.5;
}
.home-hero__copy .button-row {
  margin-top: 17px;
}
.home-hero__note {
  margin-top: 14px;
}

/* The sketch has one clear botanical edge on the left, not several
   oversized branches floating through the hero. */
.home-hero::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: -62px;
  top: -52px;
  width: 210px;
  height: 405px;
  background: url("/assets/images/decor/acacia-real.webp") center top/contain no-repeat;
  opacity: 0.96;
  transform: rotate(-3deg);
  transform-origin: center;
  pointer-events: none;
}
.home-hero__copy::before {
  display: none !important;
}
.home-hero::after {
  display: none !important;
}

.home-hero__media {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #eef4e9;
}
.home-hero__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  box-shadow: none;
  -webkit-mask-image: none;
  mask-image: none;
}
/* Narrow soft blend only at the text/photo join. */
.home-hero__media::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 11%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #fffef8 0%,
    rgba(255, 254, 248, 0.78) 24%,
    rgba(255, 254, 248, 0.36) 55%,
    rgba(255, 254, 248, 0.08) 82%,
    rgba(255, 254, 248, 0) 100%
  );
}
/* No acacia over the hero photo — this is deliberate and follows the sketch. */
.home-hero__media::after {
  display: none !important;
}

/* FEATURE STRIP — broad, compact cards with the same horizontal rhythm as the sketch. */
.feature-strip {
  padding: 9px 0;
}
.feature-strip .container {
  width: min(calc(100% - 64px), 1540px);
}
.feature-strip__grid {
  gap: 10px;
}
.feature-mini {
  padding: 22px 14px 20px;
  border-radius: 12px;
}
.feature-mini__icon {
  width: 43px;
  height: 43px;
  margin-bottom: 7px;
}
.feature-mini__icon svg {
  width: 34px;
  height: 34px;
}
.feature-mini h3 {
  font-size: 1.18rem;
  margin-bottom: 5px;
}
.feature-mini h3.feature-mini__title--blue {
  color: #1f5fa8;
}

/* ABOUT / HOUSE — one wide full-bleed photograph to the right.
   The left edge dissolves softly into the text area and the handwritten
   quote floats over the bright right side, like the approved sketch. */
.home-about {
  position: relative;
  overflow: hidden;
  background: #fffef8;
}
.home-about::before,
.home-about::after {
  display: none !important;
}
.home-about__grid.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 0 max(44px, calc((100vw - 1540px) / 2 + 18px));
  display: grid;
  grid-template-columns: minmax(500px, 42.5%) minmax(0, 57.5%);
  align-items: stretch;
  min-height: 292px;
}
.home-about__copy {
  position: relative;
  z-index: 3;
  padding: 32px 48px 30px 0;
}
.home-about__copy h2 {
  font-size: clamp(2rem, 2.6vw, 2.75rem);
  margin-bottom: 0.32em;
}
.home-about__copy p {
  max-width: 620px;
  margin-bottom: 0.75em;
}
.home-about__visual {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #eef4e9;
}
.home-about__visual img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  background: #eef4e9;
}
/* Stronger white fade at the left edge only; the rest of the house image stays clear. */
.home-about__visual::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #fffef8 0%,
    rgba(255, 254, 248, 0.92) 7%,
    rgba(255, 254, 248, 0.66) 15%,
    rgba(255, 254, 248, 0.32) 23%,
    rgba(255, 254, 248, 0.1) 30%,
    rgba(255, 254, 248, 0) 38%,
    rgba(255, 254, 248, 0) 100%
  );
}
/* This is the large right-side acacia visible in the approved sketch. */
.home-about__visual::before {
  content: "";
  position: absolute;
  z-index: 4;
  right: -66px;
  top: -58px;
  width: 225px;
  height: 315px;
  background: url("/assets/images/decor/acacia-real.webp") center/contain no-repeat;
  opacity: 0.96;
  transform: scaleX(-1) rotate(-4deg);
  pointer-events: none;
}
.home-about__quote {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: max(72px, calc((100vw - 1540px) / 2 + 28px));
  bottom: auto;
  transform: translateY(-50%) rotate(-2deg);
  width: min(300px, 32%);
  height: auto;
  min-height: 0;
  padding: 0;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #3d5049;
  text-align: center;
  font: italic clamp(1.08rem, 1.45vw, 1.42rem)/1.45 var(--hand);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}
.home-about__quote small {
  display: inline-block;
  margin-top: 7px;
  text-align: center;
  color: #3d5049;
}

/* TESTIMONIALS — shorter and wider like the sketch, with an acacia edge. */
.testimonials {
  padding: 28px 0 36px;
  background: linear-gradient(180deg, #f6f9f2, #eef5e9);
}
.testimonials .container {
  width: min(calc(100% - 70px), 1450px);
}
.testimonials::before {
  content: "";
  position: absolute;
  left: -54px;
  bottom: -64px;
  width: 150px;
  height: 220px;
  background: url("/assets/images/decor/acacia-real.webp") center/contain no-repeat;
  opacity: 0.56;
  transform: rotate(8deg);
}
.testimonial-grid {
  gap: 16px;
}
.quote-card {
  padding: 19px 22px 18px;
  border-radius: 12px;
}

/* SENIORLIV — broad, low cards like the mock-up. */
.seniorlife-preview {
  position: relative;
  overflow: hidden;
  padding: 34px 0 40px;
}
.seniorlife-preview::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -48px;
  top: -42px;
  width: 130px;
  height: 190px;
  background: url("/assets/images/decor/acacia-real.webp") center/contain no-repeat;
  opacity: 0.42;
  transform: rotate(9deg);
  pointer-events: none;
}
.seniorlife-preview .container {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 64px), 1510px);
}
.seniorlife-preview .article-grid {
  gap: 16px;
}
.seniorlife-preview .article-card > img {
  aspect-ratio: 16/5.8;
  object-fit: cover;
}
.seniorlife-preview .article-card > div {
  padding: 14px 17px 13px;
}
.seniorlife-preview .article-card h3 {
  font-size: 1.18rem;
}
.seniorlife-preview .article-card p {
  margin-bottom: 8px;
}

/* CTA and footer botanical details now use the actual acacia asset. */
.compact-cta::before {
  background-image: url("/assets/images/decor/acacia-real.webp");
  opacity: 0.48;
}
.site-footer::after {
  background-image: url("/assets/images/decor/acacia-real.webp");
}

/* CONTACT PAGE — three interactive contact detail tiles. */
.page-contact .contact-card {
  background: linear-gradient(145deg, #f3f8ef, #fffefb);
  border: 1px solid rgba(42, 86, 63, 0.12);
  box-shadow: 0 14px 36px rgba(31, 74, 52, 0.06);
}
.page-contact .contact-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 24px;
  display: grid;
  gap: 11px;
}
.page-contact .contact-list li {
  position: relative;
  min-height: 76px;
  padding: 14px 16px 14px 60px;
  border: 1px solid rgba(42, 86, 63, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 5px 16px rgba(31, 74, 52, 0.025);
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}
.page-contact .contact-list li::before {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8f2e3, #fdfbf4);
  border: 1px solid rgba(42, 86, 63, 0.13);
  color: var(--green-800);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(31, 74, 52, 0.06);
}
.page-contact .contact-list li:nth-child(1)::before {
  content: "☎";
}
.page-contact .contact-list li:nth-child(2)::before {
  content: "✉";
}
.page-contact .contact-list li:nth-child(3)::before {
  content: "⌖";
}
.page-contact .contact-list strong {
  display: inline-block;
  margin-bottom: 2px;
  color: var(--green-950);
}
.page-contact .contact-list a {
  color: var(--green-800);
  font-weight: 750;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .page-contact .contact-list li:hover {
    transform: translateY(-3px);
    border-color: rgba(174, 138, 47, 0.4);
    background: #fffefb;
    box-shadow: 0 12px 28px rgba(31, 74, 52, 0.1);
  }
  .page-contact .contact-list li:hover::before {
    background: #fff7dd;
    color: #8a6a16;
  }
  .page-contact .contact-list a:hover {
    color: #8a6a16;
  }
}

/* Facebook keeps its own brand colour instead of the site green. */
.social-dot {
  background: #1877f2 !important;
  color: #fff !important;
  box-shadow: 0 5px 14px rgba(24, 119, 242, 0.22);
}
@media (hover: hover) and (pointer: fine) {
  .social-dot:hover {
    background: #0f66d0 !important;
    color: #fff !important;
    transform: translateY(-2px);
  }
}

@media (max-width: 1100px) {
  .home-hero__grid {
    grid-template-columns: minmax(420px, 43%) minmax(0, 57%);
  }
  .home-hero__copy {
    padding: 24px 26px 24px 30px;
  }
  .home-hero::before {
    left: -70px;
    top: -44px;
    width: 188px;
    height: 350px;
    opacity: 0.88;
  }

  .home-about__grid.container {
    padding-left: 30px;
    grid-template-columns: minmax(420px, 43%) minmax(0, 57%);
    min-height: 275px;
  }
  .home-about__copy {
    padding: 28px 34px 28px 0;
  }
  .home-about__quote {
    right: 46px;
    width: 30%;
  }
  .home-about__visual::before {
    right: -58px;
    top: -48px;
    width: 196px;
    height: 278px;
  }

  .feature-strip .container,
  .testimonials .container,
  .seniorlife-preview .container {
    width: min(calc(100% - 36px), 1320px);
  }
}

@media (max-width: 820px) {
  .home-hero__grid {
    width: min(calc(100% - 30px), var(--container));
    margin-inline: auto;
    grid-template-columns: 1fr;
  }
  .home-hero__copy {
    padding: 34px 0 22px;
  }
  .home-hero::before {
    left: -58px;
    top: -25px;
    width: 138px;
    height: 220px;
    opacity: 0.63;
  }
  .home-hero__media {
    width: calc(100% + 30px);
    margin-inline: -15px;
  }
  .home-hero__media::before {
    display: none;
  }

  .feature-strip .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .home-about__grid.container {
    width: min(calc(100% - 30px), var(--container));
    margin-inline: auto;
    padding-left: 0;
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .home-about__copy {
    padding: 38px 0 24px;
  }
  .home-about__visual {
    width: calc(100% + 30px);
    margin-inline: -15px;
    aspect-ratio: 650/388;
  }
  .home-about__visual img {
    object-fit: cover;
  }
  .home-about__visual::after {
    background: linear-gradient(
      90deg,
      rgba(255, 254, 248, 0.72) 0%,
      rgba(255, 254, 248, 0.22) 20%,
      rgba(255, 254, 248, 0) 36%
    );
  }
  .home-about__quote {
    right: 28px;
    width: 38%;
    font-size: 1.02rem;
  }
  .home-about__visual::before {
    right: -46px;
    top: -34px;
    width: 158px;
    height: 220px;
    opacity: 0.78;
  }

  .testimonials .container,
  .seniorlife-preview .container {
    width: min(calc(100% - 30px), var(--container));
  }
  .seniorlife-preview::before {
    width: 105px;
    height: 155px;
    left: -42px;
  }
}

@media (max-width: 560px) {
  .home-hero::before {
    left: -50px;
    top: -18px;
    width: 112px;
    height: 180px;
    opacity: 0.5;
  }
  .home-hero__copy h1 {
    font-size: 2.35rem;
  }
  .feature-mini {
    padding: 18px 9px 17px;
  }

  .home-about__quote {
    right: 18px;
    width: 44%;
    font-size: 0.92rem;
  }
  .home-about__visual::before {
    right: -42px;
    top: -26px;
    width: 130px;
    height: 185px;
    opacity: 0.65;
  }

  .page-contact .contact-list li {
    padding-left: 56px;
  }
  .page-contact .contact-list li::before {
    left: 14px;
  }
}

/* ==========================================================
   Pannonia Hem v1.7.13 — slightly larger desktop navigation
   ========================================================== */
@media (min-width: 821px) {
  .site-nav {
    gap: 21px;
  }
  .language-switch {
    font-size: 1rem;
  }
  .nav-cta {
    font-size: 1rem;
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .site-nav {
    gap: 14px;
  }
}

/* Let the house image stretch with the full grid row and remove the
   trailing bottom padding that created the white band before testimonials. */
.home-about__copy {
  padding-bottom: 0;
}

.home-about__visual {
  height: 100%;
  min-height: 292px;
  align-self: stretch;
}

@media (max-width: 1100px) {
  .home-about__copy {
    padding-bottom: 0;
  }
  .home-about__visual {
    height: 100%;
    min-height: 275px;
  }
}

@media (max-width: 820px) {
  .home-about__copy {
    padding-bottom: 0;
  }
  .home-about__visual {
    height: auto;
    min-height: 0;
  }
}

/* Both moving albums on the Swedish and Hungarian residence pages should
   feel like supporting content, not dominate the page. */
:is(#lagenhetsbilder, #gemenskapsbilder, #lakaskepek, #kozossegi-kepek) .gallery-slider {
  margin: 20px auto 0;
}

:is(#lagenhetsbilder, #gemenskapsbilder, #lakaskepek, #kozossegi-kepek) .gallery-slide img {
  object-fit: cover;
  object-position: center;
}

/* Preserve the approved homepage image treatment:
   natural hero proportion, no distortion/zoom and no accidental crop. */
.home-hero__media {
  aspect-ratio: 1304/690;
}

.home-hero__media img {
  transform: none !important;
  object-fit: contain;
  object-position: center;
}

/* Keep the large acacia on the right side of the house image visible,
   as in the approved sketch. */
.home-about__visual::before {
  display: block;
}

/* Keep the broad, low Seniorliv image cards on the homepage. */
.seniorlife-preview .article-card > img {
  object-position: center;
}

/* Stable desktop navigation.
   Each menu item gets the same horizontal slot in Swedish and Hungarian,
   so switching language no longer moves the navigation left/right. */
@media (min-width: 1101px) {
  .nav-wrap {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    column-gap: 18px;
  }
  .site-nav {
    justify-self: end;
    width: 850px;
    display: grid;
    grid-template-columns: 72px 82px 120px 115px 224px 72px 145px;
    column-gap: 3px;
    align-items: center;
  }
  .site-nav > a {
    justify-self: center;
    text-align: center;
  }
  .site-nav .nav-cta {
    justify-self: end;
  }
}

/* Keep the same fixed menu geometry on medium desktop widths as well.
   The brand is slightly narrower here so the Hungarian labels still fit. */
@media (min-width: 901px) and (max-width: 1100px) {
  .nav-wrap {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    column-gap: 5px;
  }
  .brand {
    min-width: 140px;
  }
  .brand-logo {
    width: 145px;
    height: 54px;
  }
  .site-nav {
    justify-self: end;
    width: 710px;
    display: grid;
    grid-template-columns: 58px 60px 105px 95px 210px 60px 110px;
    column-gap: 2px;
    align-items: center;
  }
  .site-nav > a {
    justify-self: center;
    text-align: center;
  }
  .site-nav .nav-cta {
    justify-self: end;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Below 901 px there is not enough room for both languages without moving
   the menu. Use the existing hamburger presentation earlier instead. */
@media (min-width: 821px) and (max-width: 900px) {
  .nav-wrap {
    height: 66px;
    display: flex;
  }
  .brand {
    min-width: 0;
  }
  .brand-logo {
    width: 160px;
    height: 56px;
  }
  .menu-toggle {
    display: block;
  }
  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 66px;
    width: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav > a {
    padding: 11px 8px;
    text-align: center;
  }
  .site-nav > a::after {
    display: none;
  }
  .site-nav .nav-cta {
    margin-top: 7px;
  }
}

/* Use one menu type system for both languages.
   The Hungarian desktop menu is the reference: same font family,
   size, weight and line-height for every menu item in both SV and HU. */
.site-nav,
.site-nav > a,
.site-nav .language-switch,
.site-nav .nav-cta {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
}

/* Keep language switch visually aligned with the rest of the navigation. */
.site-nav .language-switch {
  font-weight: 650;
}

/* CTA keeps its stronger visual treatment through shape/background,
   not through a different type size or typeface. */
.site-nav .nav-cta {
  font-weight: 650;
}

@media (min-width: 901px) and (max-width: 1100px) {
  .site-nav,
  .site-nav > a,
  .site-nav .language-switch,
  .site-nav .nav-cta {
    font-size: 0.98rem;
  }
}

@media (max-width: 900px) {
  .site-nav,
  .site-nav > a,
  .site-nav .language-switch,
  .site-nav .nav-cta {
    font-size: 1rem;
  }
}

/* Let the footer use the same generous horizontal canvas as the homepage.
   Logo anchors the far left while social media gets its own far-right column. */
.site-footer {
  padding: 48px 0 20px;
}
.site-footer .footer-grid,
.site-footer .footer-bottom {
  width: min(calc(100% - 72px), 1540px);
  max-width: none;
  margin-inline: auto;
}
.site-footer .footer-grid {
  grid-template-columns: minmax(270px, 1.35fr) minmax(170px, 0.7fr) minmax(290px, 0.95fr) minmax(
      150px,
      0.48fr
    );
  gap: clamp(34px, 4vw, 74px);
  align-items: start;
}
.site-footer .footer-grid > div:first-child {
  justify-self: start;
}
.site-footer .footer-grid > div:last-child {
  justify-self: end;
  min-width: 150px;
  text-align: right;
}
.site-footer .footer-grid > div:last-child .small {
  text-align: right;
}
.site-footer::after {
  right: -28px;
  bottom: -26px;
  width: 165px;
  height: 205px;
  opacity: 0.11;
}

/* Contact details: small visual icons and a lighter, more deliberate rhythm. */
.site-footer address {
  position: relative;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--ink-2);
}
.site-footer address::before {
  place-items: center;
}
.site-footer address a[href^="tel:"],
.site-footer address a[href^="mailto:"] {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
.site-footer address a[href^="tel:"]::before,
.site-footer address a[href^="mailto:"]::before {
  font-weight: 800;
}

/* A more intentional social column. */
.site-footer .social-dot {
  width: 38px;
  height: 38px;
  font-size: 1.05rem;
}
.site-footer .social-row {
  margin-top: 10px;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer address a[href^="tel:"]:hover,
  .site-footer address a[href^="mailto:"]:hover {
    top: 0;
    border-color: rgba(47, 111, 69, 0.24);
  }
}

@media (max-width: 1100px) {
  .site-footer .footer-grid,
  .site-footer .footer-bottom {
    width: min(calc(100% - 44px), 1320px);
  }
  .site-footer .footer-grid {
    grid-template-columns: minmax(235px, 1.15fr) minmax(150px, 0.7fr) minmax(260px, 1fr) minmax(
        130px,
        0.46fr
      );
    gap: 28px;
  }
}

@media (max-width: 820px) {
  .site-footer .footer-grid,
  .site-footer .footer-bottom {
    width: min(calc(100% - 30px), var(--container));
  }
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 28px;
  }
  .site-footer .footer-grid > div:last-child {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding-top: 40px;
  }
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .site-footer .footer-logo {
    width: 190px;
  }
  .site-footer .footer-grid > div:last-child {
    min-width: 0;
  }
}

/* Contact rows stay completely open: icons only, no pills, boxes or frames. */
.site-footer address::before {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--green-800);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}
.site-footer address a[href^="tel:"],
.site-footer address a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink-2);
}
.site-footer address a[href^="tel:"]::before,
.site-footer address a[href^="mailto:"]::before {
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--green-800);
  font-size: 0.92rem;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer address a[href^="tel:"]:hover,
  .site-footer address a[href^="mailto:"]:hover {
    transform: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--green-700);
  }
}

/* The former social block becomes two clear visual columns:
   company details on their own, Facebook at the far right. */
@media (min-width: 821px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(270px, 1.28fr) minmax(160px, 0.66fr) minmax(275px, 0.92fr) minmax(
        205px,
        0.72fr
      ) minmax(105px, 0.38fr);
  }
  .site-footer .footer-grid > div:last-child {
    grid-column: 4 / 6;
    justify-self: stretch;
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto;
    column-gap: clamp(28px, 3vw, 52px);
    align-items: start;
    text-align: left;
  }
  .site-footer .footer-grid > div:last-child .small {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    margin: 0 !important;
    text-align: left;
    font-size: 0.84rem;
    line-height: 1.62;
    color: var(--ink-2);
  }
  .site-footer .footer-grid > div:last-child .small::first-line {
    font-weight: 800;
    color: var(--ink);
  }
  .site-footer .footer-grid > div:last-child .footer-heading {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .site-footer .footer-grid > div:last-child .social-row {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(220px, 1.05fr) minmax(140px, 0.62fr) minmax(240px, 0.9fr) minmax(
        185px,
        0.7fr
      ) minmax(90px, 0.34fr);
    gap: 22px;
  }
  .site-footer .footer-grid > div:last-child {
    grid-template-columns: minmax(185px, 1fr) minmax(90px, 0.46fr);
    column-gap: 20px;
  }
}

@media (max-width: 820px) {
  .site-footer .footer-grid > div:last-child {
    display: grid;
    gap: 22px;
    align-items: start;
  }
  .site-footer .footer-grid > div:last-child .small {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0 !important;
    text-align: left;
    line-height: 1.62;
  }
  .site-footer .footer-grid > div:last-child .small::first-line {
    font-weight: 800;
    color: var(--ink);
  }
  .site-footer .footer-grid > div:last-child .footer-heading {
    grid-column: 2;
    grid-row: 1;
  }
  .site-footer .footer-grid > div:last-child .social-row {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .site-footer .footer-grid > div:last-child {
    gap: 14px;
  }
  .site-footer .footer-grid > div:last-child .small {
    margin-bottom: 10px !important;
  }
}

/* Mobile safety: prevent decorative/full-bleed elements from causing
   accidental horizontal page scrolling. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Long Hungarian labels and legal links must wrap instead of pushing layout. */
.breadcrumbs .container,
.footer-bottom__links {
  flex-wrap: wrap;
}
.breadcrumbs strong,
.breadcrumbs a,
.site-footer address a,
.prose a {
  overflow-wrap: anywhere;
}

/* Menu stays usable on short mobile screens and landscape phones. */
@media (max-width: 900px) {
  .site-nav {
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Tablet / mobile interior pages. */
@media (max-width: 820px) {
  /* Keep tap targets comfortable after making the layout denser. */
  .btn,
  .gallery-slider__arrow,
  .floating-language__toggle,
  .floating-language__menu a {
    min-height: 44px;
  }
  .gallery-slider__arrow {
    width: 44px;
    height: 44px;
  }

  /* Prevent iOS from zooming into fields and keep controls touch-friendly. */
  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }
  .field input,
  .field select {
    min-height: 44px;
  }

  .footer-bottom__links {
    row-gap: 10px;
  }
}

/* Small phones: still compact, but not cramped. */
@media (max-width: 560px) {
  body:not(.page-home) .page-hero h1 {
    font-size: clamp(2.15rem, 10vw, 2.65rem);
  }

  .breadcrumbs .container {
    gap: 6px 8px;
    line-height: 1.45;
  }

  .site-footer .footer-bottom {
    gap: 13px;
  }
  .footer-bottom__links {
    gap: 10px 14px;
  }
}

/* Slightly tighter inner-page footer; homepage footer stays unchanged. */
body:not(.page-home) .site-footer {
  padding-top: 38px;
}
body:not(.page-home) .site-footer .footer-grid {
  gap: clamp(24px, 3vw, 48px);
}
body:not(.page-home) .footer-bottom {
  margin-top: 26px;
}

/* Tablet and mobile: reduce empty vertical space without shrinking touch targets. */
@media (max-width: 820px) {
  body:not(.page-home) .site-footer {
    padding-top: 34px;
  }
}

@media (max-width: 560px) {
  body:not(.page-home) .site-footer {
    padding-top: 30px;
  }
}

/* Give the lower contact/action area a little more rightward balance on
   larger screens. Keep tablet/mobile untouched to avoid overflow. */
@media (min-width: 1101px) {
  .compact-cta__actions {
    position: relative;
    left: 28px;
  }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .compact-cta__actions {
    position: relative;
    left: 12px;
  }
}
@media (max-width: 820px) {
  .compact-cta__actions {
    position: static;
    left: auto;
  }
}

/* The complete street address is one clear Google Maps link. */
.page-contact .contact-map-link {
  display: inline-block;
  color: var(--green-800);
  font-weight: 750;
  line-height: 1.48;
  text-decoration: none;
  text-underline-offset: 0.16em;
}
@media (hover: hover) and (pointer: fine) {
  .page-contact .contact-map-link:hover {
    color: var(--gold-700);
    text-decoration: underline;
  }
}

/* Repeated content blocks follow the same compact rhythm. */
body:not(.page-home) .feature-grid,
body:not(.page-home) .topic-grid,
body:not(.page-home) .values-grid {
  gap: 10px;
}
body:not(.page-home) .feature-card {
  padding: 14px 15px;
}
body:not(.page-home) .notice {
  padding: 11px 12px;
}
body:not(.page-home) .topic-card {
  min-height: 120px;
  padding: 14px;
}
body:not(.page-home) .illustration-card {
  min-height: 175px;
  padding: 19px;
}
body:not(.page-home) .detail-grid {
  margin-top: 13px;
  gap: 7px;
}
body:not(.page-home) .detail-grid > div {
  padding: 9px 10px;
}
body:not(.page-home) .values-grid article {
  padding: 13px;
}
body:not(.page-home) .steps {
  gap: 8px;
}
body:not(.page-home) .steps > li {
  padding-top: 12px;
  padding-bottom: 12px;
}
body:not(.page-home) .faq {
  gap: 7px;
}
body:not(.page-home) .faq summary {
  padding: 11px 0;
}
body:not(.page-home) .faq details p {
  padding-bottom: 11px;
}

/* Contact/form pages. */
body:not(.page-home) .contact-form,
body:not(.page-home) .contact-card {
  padding: 18px;
}

/* Article / Seniorliv detail pages. */
.page-article .article-aside .aside-card {
  padding: 16px;
}

/* Move the header Contact/Kapcsolat button slightly farther right on desktop.
   Mobile navigation remains untouched. */
@media (min-width: 1101px) {
  .site-nav .nav-cta {
    position: relative;
    left: 30px;
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .site-nav .nav-cta {
    position: relative;
    left: 12px;
  }
}
@media (max-width: 900px) {
  .site-nav .nav-cta {
    position: static;
    left: auto;
  }
}

/* Tablet/mobile: less empty space, but keep comfortable touch targets. */

@media (max-width: 560px) {
  body:not(.page-home) .feature-card,
  body:not(.page-home) .values-grid article {
    padding: 12px;
  }
  body:not(.page-home) .topic-card {
    min-height: 0;
    padding: 13px;
  }
  body:not(.page-home) .illustration-card {
    min-height: 160px;
    padding: 15px;
  }
  body:not(.page-home) .contact-form,
  body:not(.page-home) .contact-card {
    padding: 15px;
  }
}

/* INNER PAGES
   Reduce the current section rhythm by about 20% while keeping
   typography and touch targets unchanged. */
body:not(.page-home) .section {
  padding: clamp(26px, 3vw, 40px) 0;
}
body:not(.page-home) .section--compact {
  padding: 21px 0;
}
body:not(.page-home) .page-hero {
  padding: clamp(25px, 3vw, 38px) 0;
}
body:not(.page-home) .section-heading {
  margin-bottom: 14px;
}
body:not(.page-home) .section-heading-row {
  margin-bottom: 14px;
}
body:not(.page-home) .split-intro {
  gap: 22px;
}
body:not(.page-home) .media-split {
  gap: 20px;
}
body:not(.page-home) .page-hero__grid {
  gap: 19px;
}
body:not(.page-home) .page-hero__grid .image-frame,
body:not(.page-home) .page-hero__grid .image-frame img {
  min-height: 148px;
}
body:not(.page-home) .contact-layout {
  gap: 21px;
}
.page-article .article-hero {
  padding: 26px 0;
}
.page-article .article-hero__grid {
  gap: 17px;
}
.page-article .article-body {
  padding-top: 23px;
  padding-bottom: 29px;
  gap: 22px;
}

/* HOMEPAGE SECTIONS
   The homepage composition is preserved, but the vertical footprint
   of each main section is reduced by roughly 20%. */
.page-home .home-hero__copy {
  padding-top: 21px;
  padding-bottom: 24px;
}
.page-home .feature-strip {
  padding: 7px 0;
}
.page-home .feature-mini {
  padding: 18px 11px 16px;
}
.page-home .home-about__copy {
  padding: 26px 38px 24px 0;
}
.page-home .testimonials {
  padding: 22px 0 29px;
}
.page-home .quote-card {
  padding: 15px 18px 14px;
}
.page-home .seniorlife-preview {
  padding: 27px 0 32px;
}
.page-home .seniorlife-preview .article-card > div {
  padding: 11px 14px 10px;
}
.page-home .compact-cta {
  padding: 22px 0;
}

/* SENIORBOENDE / SENIOROTTHON ALBUMS
   About 30% smaller than the previous v1.7.15 album sizing. */
:is(#lagenhetsbilder, #gemenskapsbilder, #lakaskepek, #kozossegi-kepek) .gallery-slider {
  width: min(100%, 784px);
}
:is(#lagenhetsbilder, #gemenskapsbilder, #lakaskepek, #kozossegi-kepek) .gallery-slide img {
  height: clamp(210px, 20.3vw, 294px);
}

/* Tablet/mobile keeps controls comfortably usable while reducing
   the album image height by the same approximate 30%. */
@media (max-width: 1100px) {
  :is(#lagenhetsbilder, #gemenskapsbilder, #lakaskepek, #kozossegi-kepek) .gallery-slider {
    width: min(100%, 672px);
  }
  :is(#lagenhetsbilder, #gemenskapsbilder, #lakaskepek, #kozossegi-kepek) .gallery-slide img {
    height: clamp(196px, 24.5vw, 266px);
  }
}

@media (max-width: 820px) {
  body:not(.page-home) .section {
    padding: 24px 0;
  }
  body:not(.page-home) .section--compact {
    padding: 19px 0;
  }
  body:not(.page-home) .page-hero {
    padding: 22px 0;
  }
  body:not(.page-home) .section-heading {
    margin-bottom: 12px;
  }
  body:not(.page-home) .split-intro,
  body:not(.page-home) .media-split,
  body:not(.page-home) .page-hero__grid {
    gap: 14px;
  }
  body:not(.page-home) .page-hero__grid .image-frame,
  body:not(.page-home) .page-hero__grid .image-frame img {
    min-height: 136px;
  }
  body:not(.page-home) .contact-layout {
    gap: 15px;
  }

  .page-article .article-hero {
    padding: 22px 0;
  }
  .page-article .article-body {
    padding-top: 19px;
    padding-bottom: 24px;
    gap: 15px;
  }

  .page-home .home-hero__copy {
    padding: 30px 0 20px;
  }
  .page-home .home-about__copy {
    padding: 34px 0 22px;
  }

  :is(#lagenhetsbilder, #gemenskapsbilder, #lakaskepek, #kozossegi-kepek) .gallery-slider {
    width: 100%;
  }
  :is(#lagenhetsbilder, #gemenskapsbilder, #lakaskepek, #kozossegi-kepek) .gallery-slide img {
    height: clamp(168px, 36.4vw, 238px);
  }
}

@media (max-width: 560px) {
  body:not(.page-home) .section {
    padding: 22px 0;
  }
  body:not(.page-home) .section--compact {
    padding: 18px 0;
  }
  body:not(.page-home) .page-hero {
    padding: 21px 0;
  }
  body:not(.page-home) .section-heading {
    margin-bottom: 11px;
  }
  body:not(.page-home) .page-hero__grid .image-frame,
  body:not(.page-home) .page-hero__grid .image-frame img {
    min-height: 124px;
  }
  .page-article .article-hero {
    padding: 19px 0;
  }
  .page-article .article-body {
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .page-home .home-hero__copy {
    padding: 28px 0 18px;
  }

  :is(#lagenhetsbilder, #gemenskapsbilder, #lakaskepek, #kozossegi-kepek) .gallery-slide img {
    height: clamp(154px, 43.4vw, 210px);
  }
}

/* ==========================================================
   Pannonia Hem v1.7.28 — photo albums
   Framed stage, caption overlay, counter, thumbnail strip and
   fullscreen viewer. Applies only when main.js has enhanced the
   slider, so the plain slider remains the no-JS fallback.
   ========================================================== */
:is(
    #lagenhetsbilder,
    #gemensamma-utrymmen,
    #gemenskapsbilder,
    #lakaskepek,
    #kozos-helyisegek,
    #kozossegi-kepek
  )
  .gallery-slider.gallery-slider--enhanced {
  --album-h: clamp(250px, 36vw, 440px);
  --album-pad: 12px;
  width: min(100%, 880px);
  margin: 22px auto 0;
  padding: var(--album-pad);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.gallery-slider--enhanced .gallery-slider__viewport {
  border-radius: 18px;
}
.gallery-slider--enhanced .gallery-slide {
  position: relative;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--green-950);
}
:is(
    #lagenhetsbilder,
    #gemensamma-utrymmen,
    #gemenskapsbilder,
    #lakaskepek,
    #kozos-helyisegek,
    #kozossegi-kepek
  )
  .gallery-slider--enhanced
  .gallery-slide
  img {
  height: var(--album-h);
  object-fit: cover;
  cursor: zoom-in;
}
.gallery-slider--enhanced .gallery-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 22px 16px;
  background: linear-gradient(to top, rgba(14, 36, 29, 0.8), rgba(14, 36, 29, 0));
  color: #fff;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.gallery-slider__counter,
.gallery-slider__zoom {
  position: absolute;
  top: calc(var(--album-pad) + 14px);
  z-index: 3;
}
.gallery-slider__counter {
  right: calc(var(--album-pad) + 14px);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(14, 36, 29, 0.58);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.gallery-slider__zoom {
  left: calc(var(--album-pad) + 14px);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-900);
  box-shadow: 0 6px 18px rgba(14, 36, 29, 0.18);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}
.gallery-slider__zoom svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gallery-slider__zoom:hover {
  transform: scale(1.06);
  background: var(--gold-100);
  color: var(--gold-700);
}

.gallery-slider--enhanced .gallery-slider__arrow {
  top: calc(var(--album-pad) + var(--album-h) / 2);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
}
.gallery-slider--enhanced .gallery-slider__arrow--prev {
  left: calc(var(--album-pad) + 12px);
}
.gallery-slider--enhanced .gallery-slider__arrow--next {
  right: calc(var(--album-pad) + 12px);
}

.gallery-slider__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--green-200) transparent;
}
.gallery-slider__thumbs button {
  flex: 0 0 auto;
  width: 78px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--green-100);
  opacity: 0.55;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}
.gallery-slider__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-slider__thumbs button:hover {
  opacity: 0.9;
}
.gallery-slider__thumbs button.is-active {
  opacity: 1;
  box-shadow:
    0 0 0 2px var(--white),
    0 0 0 4px var(--gold-500);
}
.gallery-slider__thumbs button:focus-visible,
.gallery-slider__zoom:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  :is(
      #lagenhetsbilder,
      #gemensamma-utrymmen,
      #gemenskapsbilder,
      #lakaskepek,
      #kozos-helyisegek,
      #kozossegi-kepek
    )
    .gallery-slider.gallery-slider--enhanced {
    --album-h: clamp(220px, 52vw, 360px);
    width: 100%;
  }
}
@media (max-width: 560px) {
  :is(
      #lagenhetsbilder,
      #gemensamma-utrymmen,
      #gemenskapsbilder,
      #lakaskepek,
      #kozos-helyisegek,
      #kozossegi-kepek
    )
    .gallery-slider.gallery-slider--enhanced {
    --album-h: clamp(200px, 58vw, 280px);
    --album-pad: 8px;
    border-radius: 20px;
  }
  .gallery-slider--enhanced .gallery-slider__viewport {
    border-radius: 14px;
  }
  .gallery-slider--enhanced .gallery-slide figcaption {
    padding: 36px 14px 12px;
    font-size: 0.95rem;
  }
  .gallery-slider__counter {
    right: calc(var(--album-pad) + 10px);
    top: calc(var(--album-pad) + 10px);
  }
  .gallery-slider__zoom {
    left: calc(var(--album-pad) + 10px);
    top: calc(var(--album-pad) + 10px);
  }
  .gallery-slider--enhanced .gallery-slider__arrow--prev {
    left: calc(var(--album-pad) + 6px);
  }
  .gallery-slider--enhanced .gallery-slider__arrow--next {
    right: calc(var(--album-pad) + 6px);
  }
  .gallery-slider__thumbs button {
    width: 62px;
    height: 46px;
  }
}

/* Fullscreen viewer */
html.has-lightbox {
  overflow: hidden;
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 84px;
  background: rgba(10, 26, 21, 0.95);
}
.gallery-lightbox[hidden] {
  display: none;
}
.gallery-lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(1400px, 100%);
  margin: 0;
}
.gallery-lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.gallery-lightbox__figure figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 16px;
  margin-top: 14px;
  color: #f6f1e3;
  text-align: center;
}
.gallery-lightbox__caption {
  font-family: var(--serif);
  font-size: 1.1rem;
}
.gallery-lightbox__count {
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold-300);
}
.gallery-lightbox__close,
.gallery-lightbox__arrow {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.gallery-lightbox__close {
  top: 16px;
  right: 16px;
  font-size: 2rem;
}
.gallery-lightbox__arrow {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
}
.gallery-lightbox__arrow--prev {
  left: 18px;
}
.gallery-lightbox__arrow--next {
  right: 18px;
}
.gallery-lightbox__close:hover,
.gallery-lightbox__arrow:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--gold-300);
}
.gallery-lightbox button:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .gallery-lightbox {
    padding: 64px 12px 92px;
  }
  .gallery-lightbox__figure img {
    max-height: calc(100vh - 190px);
    max-height: calc(100dvh - 190px);
  }
  .gallery-lightbox__arrow {
    top: auto;
    bottom: 20px;
    transform: none;
  }
  .gallery-lightbox__arrow--prev {
    left: calc(50% - 64px);
  }
  .gallery-lightbox__arrow--next {
    right: calc(50% - 64px);
  }
}

/* ==========================================================
   Pannonia Hem v1.7.30 — compact Seniorboende/Seniorotthon
   Roughly 25% lower sections on the residence pages only
   (body.page-residence): tighter rhythm, smaller headings,
   capped photo heights and smaller albums.
   ========================================================== */
body.page-residence .section {
  padding: 30px 0;
}
body.page-residence .page-hero {
  padding: 26px 0;
}
body.page-residence .page-hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  margin-bottom: 18px;
}
body.page-residence .page-hero .image-frame,
body.page-residence .page-hero .image-frame img {
  height: clamp(200px, 19vw, 260px);
  min-height: 0;
}
body.page-residence .page-hero .image-frame img {
  object-fit: cover;
}
body.page-residence h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.35rem);
  margin-bottom: 16px;
}
body.page-residence .section-heading {
  margin-bottom: 8px;
}
body.page-residence .section-heading p {
  margin-top: 0;
}
body.page-residence .media-split .image-frame {
  height: clamp(260px, 32vw, 440px);
  margin-top: 0;
  margin-bottom: 0;
}
body.page-residence .media-split .image-frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
body.page-residence .feature-card {
  padding: 12px 14px;
}
body.page-residence details summary {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Albums: about 25% lower than v1.7.28 */
body.page-residence
  :is(
    #lagenhetsbilder,
    #gemensamma-utrymmen,
    #gemenskapsbilder,
    #lakaskepek,
    #kozos-helyisegek,
    #kozossegi-kepek
  )
  .gallery-slider.gallery-slider--enhanced {
  --album-h: clamp(210px, 26vw, 330px);
  width: min(100%, 760px);
  margin-top: 14px;
}
body.page-residence .gallery-slider__thumbs {
  margin-top: 8px;
}
body.page-residence .gallery-slider__thumbs button {
  width: 64px;
  height: 48px;
}

@media (max-width: 820px) {
  body.page-residence .section {
    padding: 20px 0;
  }
  body.page-residence .page-hero {
    padding: 16px 0;
  }
  body.page-residence
    :is(
      #lagenhetsbilder,
      #gemensamma-utrymmen,
      #gemenskapsbilder,
      #lakaskepek,
      #kozos-helyisegek,
      #kozossegi-kepek
    )
    .gallery-slider.gallery-slider--enhanced {
    --album-h: clamp(190px, 50vw, 280px);
    width: 100%;
  }
  body.page-residence .feature-grid {
    gap: 10px;
  }
}
@media (max-width: 560px) {
  body.page-residence
    :is(
      #lagenhetsbilder,
      #gemensamma-utrymmen,
      #gemenskapsbilder,
      #lakaskepek,
      #kozos-helyisegek,
      #kozossegi-kepek
    )
    .gallery-slider.gallery-slider--enhanced {
    --album-h: clamp(180px, 52vw, 230px);
  }
  body.page-residence .gallery-slider__thumbs button {
    width: 54px;
    height: 40px;
  }
}

/* Residence pages, mobile: stats side by side, smaller photos, tighter cards */
@media (max-width: 820px) {
  body.page-residence .detail-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
  }
  body.page-residence .detail-grid > div {
    padding: 10px 8px;
  }
  body.page-residence .detail-grid strong {
    font-size: 1.2rem;
  }
  body.page-residence .detail-grid span {
    font-size: 0.74rem;
    line-height: 1.3;
  }
  body.page-residence .media-split .image-frame {
    height: clamp(180px, 48vw, 230px);
  }
  body.page-residence .page-hero .image-frame,
  body.page-residence .page-hero .image-frame img {
    height: clamp(140px, 38vw, 190px);
  }
  body.page-residence .feature-card h3 {
    margin-bottom: 6px;
  }
  body.page-residence .feature-card p {
    margin: 0;
  }
}

/* ==========================================================
   Pannonia Hem v1.7.30 — homepage hero and about
   Hero photo about 20% narrower (and so 20% lower, keeping the
   approved uncropped proportion); the copy gets the extra width.
   About: the house image fills the whole row again, so no white
   band remains under it, and the copy is tighter.
   ========================================================== */
@media (min-width: 1101px) {
  .page-home .home-hero__grid {
    align-items: end;
  }
  .page-home .home-hero__copy {
    align-self: center;
  }
  .page-home .home-hero__copy h1{
    max-width: 680px;
  }
  .page-home .home-hero__copy .lead {
    max-width: 620px;
  }
  .page-home .home-hero__media {
    align-self: end;
  }
}

.page-home .home-about__grid.container {
  min-height: 0;
}
.page-home .home-about__visual {
  height: auto;
  min-height: 0;
  align-self: stretch;
}
.page-home .home-about__copy {
  padding-top: 20px;
  padding-bottom: 20px;
}
.page-home .home-about__copy h2 {
  margin-bottom: 0.22em;
}
.page-home .home-about__copy p {
  margin-bottom: 0.55em;
}
@media (min-width: 1101px) {
  .page-home .home-about__grid.container {
    grid-template-columns: minmax(500px, 48%) minmax(0, 52%);
  }
}
@media (max-width: 820px) {
  .page-home .home-about__visual {
    min-height: 220px;
  }
}

/* Homepage hero copy: tighter so it matches the lower photo height */
@media (min-width: 1101px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 48%);
  }
  .page-home .home-hero__copy{
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .page-home .home-hero__copy h1{
    font-size: clamp(2.2rem, 2.75vw, 2.5rem);
    margin-bottom: 0.28em;
  }
  .page-home .home-hero__copy .button-row{
    margin-top: 10px;
  }
  .page-home .home-hero__note{
    margin-top: 6px;
    font-size: 1.3rem;
  }
}

/* ==========================================================
   Pannonia Hem v1.7.30 — footer details
   Smaller green headings, matching line icons for address,
   phone and e-mail, and a green Facebook button.
   ========================================================== */
.site-footer .footer-heading,
.site-footer .footer-grid > div:last-child .footer-heading {
  margin-bottom: 12px;
  color: var(--green-800);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer address::before,
.site-footer address a[href^="tel:"]::before,
.site-footer address a[href^="mailto:"]::before {
  content: "";
  background-color: #eef5eb;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 15px 15px;
}
.site-footer address::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6f45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.1-7-11.5a7 7 0 0 1 14 0C19 14.9 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
}
.site-footer address a[href^="tel:"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6f45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}
.site-footer address a[href^="mailto:"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6f45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.site-footer .social-dot {
  background: var(--green-800);
  color: #fff;
  box-shadow: 0 7px 18px rgba(47, 111, 69, 0.22);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}
.site-footer .social-dot:hover {
  background: var(--green-900);
  color: #fff;
  transform: translateY(-2px);
}
.site-footer address::before {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin: 0 8px 0 0;
  border-radius: 8px;
  vertical-align: middle;
}
/* An older rule forces the Facebook blue with !important. */
.site-footer .social-row .social-dot {
  background: var(--green-800) !important;
  color: #fff !important;
}
.site-footer .social-row .social-dot:hover {
  background: var(--green-900) !important;
}

/* ==========================================================
   Pannonia Hem v1.7.32 — real acacia
   The homepage keeps its original real acacia on the left
   (.home-hero::before, earlier rules). A fuller branch built
   from the same real photo hangs in the seam between copy and
   photo on desktop, and decorates the subpage heroes.
   ========================================================== */
@media (min-width: 1101px) {
  .page-home .home-hero__grid::after {
    content: "";
    position: absolute;
    left: calc(52% - 150px);
    top: -4px;
    width: 250px;
    height: 212px;
    z-index: 3;
    background: url("/assets/images/decor/acacia-real-full.webp") center top/contain no-repeat;
    opacity: 0.95;
    pointer-events: none;
  }
}
.page-hero::after {
  right: -10px;
  top: -4px;
  width: 330px;
  height: 280px;
  background: url("/assets/images/decor/acacia-real-full.webp") right top/contain no-repeat;
  opacity: 0.5;
  transform: none;
}
@media (max-width: 820px) {
  .page-hero::after {
    width: 190px;
    height: 160px;
    opacity: 0.35;
  }
}

/* ==========================================================
   Pannonia Hem v1.7.30 — article hero with a real feature image
   Text left, a large rounded photo right (stacked on mobile),
   and a calmer headline size.
   ========================================================== */
body.page-article .article-hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 45%);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}
body.page-article .article-hero h1 {
  font-size: clamp(2.1rem, 3.4vw, 3.15rem);
  line-height: 1.08;
  margin: 12px 0 14px;
}
body.page-article .article-hero__grid > img {
  justify-self: stretch;
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 22px;
  border: 6px solid #fff;
  box-shadow: var(--shadow);
}
@media (max-width: 820px) {
  body.page-article .article-hero__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  body.page-article .article-hero__grid > img {
    aspect-ratio: 16/9;
    border-width: 4px;
    border-radius: 18px;
  }
}

/* ==========================================================
   Pannonia Hem v1.7.30 — one navigation layout for SV and HU
   The fixed grid columns were sized for the Hungarian labels,
   so the shorter Swedish labels floated with uneven gaps. Both
   languages now use the same flex row and spacing (HU look).
   ========================================================== */
@media (min-width: 821px) {
  .site-nav {
    display: flex;
    align-items: center;
    grid-template-columns: none;
  }
  .site-nav > a {
    white-space: nowrap;
  }
}

/* "Följ oss" / "Kövessen minket" always on one line */
.site-footer .footer-heading {
  white-space: nowrap;
}
@media (min-width: 821px) {
  .site-footer .footer-grid > div:last-child {
    grid-template-columns: minmax(0, 1fr) max-content;
  }
}

/* Inline text button (e.g. "cookieinställningarna" in the privacy policy) */
.link-button {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green-800);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.17em;
  cursor: pointer;
}
.link-button:hover {
  color: var(--gold-700);
}

/* Privacy policy: calmer headings; the purpose table becomes cards on phones */
body.page-legal .prose h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  margin-top: 1.5em;
  margin-bottom: 0.45em;
}
@media (max-width: 640px) {
  .policy-table,
  .policy-table tbody,
  .policy-table tr,
  .policy-table td {
    display: block;
    width: 100%;
  }
  .policy-table thead {
    display: none;
  }
  .policy-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .policy-table td {
    padding: 3px 0;
    border: 0;
  }
  .policy-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--green-800);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }
  .policy-table td:first-child {
    font-weight: 700;
    color: var(--ink);
  }
  .policy-table td:first-child::before {
    display: none;
  }
}
@media (max-width: 640px) {
  .cookie-table.policy-table {
    min-width: 0;
    width: 100%;
    table-layout: auto;
  }
  .policy-table td {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .cookie-table-wrap:has(.policy-table) {
    overflow: visible;
  }
}

/* ==========================================================
   Pannonia Hem v1.7.33 — readable notice boxes
   The light notice box sat in a dark section and inherited
   white text (white on white). Light boxes now always use dark
   text; inside dark sections the box is a translucent card with
   a gold accent.
   ========================================================== */
.notice {
  position: relative;
  color: var(--ink);
  border-left: 4px solid var(--gold-500);
}
.notice strong {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  color: var(--green-900);
  font-size: 1.02rem;
}
.notice strong::before {
  content: "i";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--gold-500);
  color: #fff;
  font-family: var(--serif);
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 700;
}
.notice p {
  margin-top: 0;
  color: var(--ink-2);
}
.section--dark .notice {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--gold-500);
  color: #f4f1e6;
}
.section--dark .notice strong {
  color: var(--gold-300);
}
.section--dark .notice p {
  color: rgba(244, 241, 230, 0.92);
}

/* Facebook icon centred under "Följ oss" / "Kövessen minket":
   heading and icon share a column exactly as wide as the heading. */
.site-footer .footer-grid > div:last-child .footer-heading {
  text-align: center;
}
.site-footer .footer-grid > div:last-child .social-row {
  justify-content: center;
  justify-self: stretch;
}
@media (max-width: 820px) {
  .site-footer .footer-grid > div:last-child {
    grid-template-columns: minmax(0, 1fr) max-content;
  }
}
@media (max-width: 560px) {
  .site-footer .footer-grid > div:last-child {
    grid-template-columns: max-content minmax(0, 1fr);
  }
  .site-footer .footer-grid > div:last-child .footer-heading {
    grid-column: 1;
    grid-row: 1;
  }
  .site-footer .footer-grid > div:last-child .social-row {
    grid-column: 1;
    grid-row: 2;
  }
  .site-footer .footer-grid > div:last-child .small {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

/* ==========================================================
   Pannonia Hem v1.7.34 — About page (Om oss / Rólunk)
   Story section with founding year and pull quote, and about
   20% more compact sections (body.page-about only).
   ========================================================== */
.about-story {
  background: linear-gradient(180deg, var(--cream), #fffdf7);
}
.about-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 18px 52px;
  align-items: start;
}
.about-story__intro h2 {
  margin-bottom: 16px;
}
.about-story__year {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.about-story__year strong {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--green-900);
}
.about-story__year span {
  max-width: 170px;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--ink-2);
}
.about-story__text p {
  margin: 0 0 0.85em;
}
.about-story__text p:first-child {
  font-size: 1.08rem;
  color: var(--ink);
}
.about-story__quote {
  grid-column: 1 / -1;
  position: relative;
  margin: 6px 0 0;
  padding: 22px 28px 22px 64px;
  border-radius: 18px;
  background: var(--green-900);
  color: #fdfbf3;
}
.about-story__quote::before {
  content: "\201D";
  position: absolute;
  left: 20px;
  top: 4px;
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold-300);
}
.about-story__quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.4;
}

/* About page: roughly 20% less scrolling */
body.page-about .section {
  padding: 30px 0;
}
body.page-about .page-hero {
  padding: 28px 0;
}
body.page-about .page-hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
}
body.page-about .page-hero .image-frame,
body.page-about .page-hero .image-frame img {
  height: clamp(220px, 22vw, 320px);
  min-height: 0;
}
body.page-about .page-hero .image-frame img,
body.page-about .media-split .image-frame img {
  width: 100%;
  object-fit: cover;
}
body.page-about .media-split .image-frame,
body.page-about .media-split .image-frame img {
  height: clamp(220px, 26vw, 340px);
  min-height: 0;
}
body.page-about h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}
body.page-about .split-intro {
  gap: 32px;
}
body.page-about .values-grid {
  gap: 14px;
}
body.page-about .values-grid article {
  padding: 18px 18px 16px;
}
body.page-about .values-grid article > span {
  margin-bottom: 8px;
}
body.page-about .values-grid h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
body.page-about .values-grid p {
  margin: 0;
}

@media (max-width: 820px) {
  .about-story__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .about-story__quote {
    padding: 18px 18px 18px 52px;
  }
  .about-story__quote::before {
    left: 14px;
    font-size: 3.2rem;
  }
  body.page-about .section {
    padding: 20px 0;
  }
  body.page-about .page-hero {
    padding: 18px 0;
  }
  body.page-about .page-hero .image-frame,
  body.page-about .page-hero .image-frame img {
    height: clamp(160px, 44vw, 230px);
  }
  body.page-about .media-split .image-frame,
  body.page-about .media-split .image-frame img {
    height: clamp(170px, 46vw, 240px);
  }
  body.page-about .split-intro {
    gap: 10px;
  }
  body.page-about .values-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  body.page-about .values-grid article {
    padding: 14px 12px;
  }
  body.page-about .values-grid h2 {
    font-size: 1.08rem;
  }
  body.page-about .values-grid p {
    font-size: 0.86rem;
    line-height: 1.45;
  }
}

/* Footer company line (replaces an inline style) */
.site-footer .footer-company {
  margin-top: 14px;
}

/* ==========================================================
   Pannonia Hem v1.7.35 — symmetric navigation (SV = HU)
   Links spread evenly over the same width in both languages,
   and the contact button has one fixed width.
   ========================================================== */
@media (min-width: 821px) {
  .site-nav {
    justify-content: space-between;
    column-gap: 12px;
  }
  .site-nav .language-switch {
    margin-left: 0;
  }
  .site-nav .nav-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    width: 150px;
    margin-left: 10px;
    padding-left: 12px;
    padding-right: 12px;
    text-align: center;
  }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .site-nav {
    column-gap: 6px;
  }
  .site-nav > a,
  .site-nav .language-switch,
  .site-nav .nav-cta {
    font-size: 14.4px;
  }
  .site-nav .nav-cta {
    width: 118px;
    margin-left: 2px;
  }
}

/* ==========================================================
   Pannonia Hem v1.7.35 — Flytta från Ungern / Svédországba költözés
   Same compact structure as the About and residence pages
   (body.page-move): tighter sections, calmer headings, capped
   illustration and photo, steps two per row on desktop.
   ========================================================== */
body.page-move .section {
  padding: 30px 0;
}
body.page-move .page-hero {
  padding: 28px 0;
}
body.page-move .page-hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  margin-bottom: 18px;
}
body.page-move .page-hero .illustration-card {
  max-height: 250px;
  margin-top: 0;
  margin-bottom: 0;
}
body.page-move .page-hero .illustration-card img {
  max-height: 210px;
  width: auto;
  margin: 0 auto;
}
body.page-move h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}
body.page-move .split-intro {
  gap: 32px;
}
body.page-move .section-heading {
  margin-bottom: 12px;
}
body.page-move .media-split .image-frame,
body.page-move .media-split .image-frame img {
  height: clamp(220px, 26vw, 340px);
  min-height: 0;
}
body.page-move .media-split .image-frame img {
  width: 100%;
  object-fit: cover;
}
body.page-move .steps {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
body.page-move .steps > li {
  padding: 16px 18px 16px 62px;
}
body.page-move .steps > li::before {
  left: 16px;
  top: 16px;
}
body.page-move .steps h3 {
  font-size: 1.18rem;
  margin-bottom: 6px;
}
body.page-move .steps p {
  margin: 0;
}
@media (max-width: 820px) {
  body.page-move .section {
    padding: 20px 0;
  }
  body.page-move .page-hero {
    padding: 18px 0;
  }
  body.page-move .page-hero .illustration-card {
    max-height: 200px;
  }
  body.page-move .page-hero .illustration-card img {
    max-height: 160px;
  }
  body.page-move .media-split .image-frame,
  body.page-move .media-split .image-frame img {
    height: clamp(170px, 46vw, 240px);
  }
  body.page-move .split-intro {
    gap: 10px;
  }
  body.page-move .steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  body.page-move .steps > li {
    padding: 14px 14px 14px 56px;
  }
  body.page-move .steps > li::before {
    left: 12px;
    top: 14px;
  }
}
/* Steps: the number is drawn by ::before; the extra <span> number in the
   markup showed a second, loose "1", "2"… above each heading. */
.steps > li > span {
  display: none;
}
/* Moving pages: skip the decorative illustration on small phones. */
@media (max-width: 560px) {
  body.page-move .page-hero .illustration-card {
    display: none;
  }
}

/* WCAG 2.5.8: consent checkbox at least 24×24 px */
.consent input[type="checkbox"] {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  accent-color: var(--green-800);
}

/* Keyboard-focusable scroll regions (cookie/privacy tables) */
.cookie-table-wrap:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

/* Buttons: one minimum width so a button keeps its size when the language changes */
@media (min-width: 821px) {
  .btn {
    min-width: 260px;
  }
  .article-aside .btn,
  .cookie-banner .btn {
    min-width: 0;
  }
  .article-aside .btn {
    width: 100%;
  }
}

/* Media images: the height belongs to the image, so a figcaption below it stays visible */
body:is(.page-residence, .page-about, .page-move) .media-split .image-frame {
  height: auto;
}
body.page-residence .media-split .image-frame img {
  height: clamp(260px, 32vw, 440px);
}
@media (max-width: 820px) {
  body.page-residence .media-split .image-frame img {
    height: clamp(180px, 48vw, 230px);
  }
}

/* Residence pages: wider heading box so the album headings fit on one line on desktop */
body.page-residence .section-heading {
  max-width: 940px;
}
body.page-residence .section-heading p {
  max-width: 790px;
}
