/* ==========================================================================
   Content sections (templates/section/*.html.twig), 404 page and footer.
   ========================================================================== */

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Shared ------------------------------------------------------------- */
.section-heading {
  margin-bottom: 20px;
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -.01em;
}
.section-heading span,
.content-title span,
.page-banner-title span { color: var(--brand-ink); }

/* Rich text from the admin editor */
.prose { color: var(--ink-muted); font-size: 17px; line-height: 1.8; }
.prose > * + * { margin-top: 1em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--brand-ink); text-decoration: underline; text-decoration-color: rgba(0, 186, 162, .45); }
.prose a:hover { text-decoration-color: currentColor; }
.prose h2, .prose h3 {
  margin-top: 1.8em;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 26px;
  font-weight: 600;
}
.prose h3 { font-size: 21px; border-top: 0; padding-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose img { border-radius: 12px; }
@media (max-width: 575.98px) {
  .prose { font-size: 16px; line-height: 1.75; }
  .prose h2 { font-size: 22px; }
}

/* ---- Page banner (section/banner) --------------------------------------- */
.page-banner { padding: 64px 0 8px; text-align: center; }
.page-banner-title { font-size: clamp(36px, 5vw, 52px); letter-spacing: -.015em; }
.page-banner-lead { max-width: 640px; margin: 14px auto 0; font-size: 18px; color: var(--ink-muted); }
.page-banner.has-image {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 360px;
  padding: 96px 0 48px;
  background: #2b3a36;
  text-align: left;
}
.page-banner-media { position: absolute; inset: 0; z-index: -1; }
.page-banner-media img { width: 100%; height: 100%; object-fit: cover; }
.page-banner-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 28, 25, .1), rgba(16, 28, 25, .75)); }
.page-banner.has-image .page-banner-title,
.page-banner.has-image .page-banner-lead { color: #fff; margin-inline: 0; }

/* ---- Intro (section/intro): text + image ------------------------------- */
.intro { padding: 96px 0; background: var(--surface-alt); }
.intro-grid { display: grid; gap: 48px; align-items: center; }
.intro-grid.has-image { grid-template-columns: 1fr 1fr; }
.intro-text .btn { margin-top: 28px; }
.intro-figure img { width: 100%; border-radius: var(--radius); }
@media (max-width: 991.98px) {
  .intro { padding: 64px 0; }
  .intro-grid.has-image { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- About me (section/about_me) ---------------------------------------- */
.about-me { padding: 80px 0; }
.about-me-inner { max-width: 760px; text-align: center; }
.about-me-photo { width: 200px; aspect-ratio: 1; margin: 0 auto 28px; border-radius: 50%; object-fit: cover; }
.about-me .prose { text-align: left; }

/* ---- Text pages (section/about_us) -------------------------------------- */
.content-page { padding: 64px 0 104px; }
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  grid-template-areas: "title title" "body aside";
  column-gap: clamp(32px, 7vw, 96px);
  align-items: start;
}
.content-title {
  grid-area: title;
  margin-bottom: 32px;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -.015em;
}
.content-body { grid-area: body; max-width: 660px; }
.content-body > p:first-child { color: var(--ink); }
.content-grid:not(:has(.content-aside)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "body"; }

.content-aside { grid-area: aside; position: sticky; top: calc(var(--header-h) + 24px); }
.content-figure img { width: 100%; border-radius: var(--radius); box-shadow: 0 18px 40px rgb(var(--shadow) / .14); }

.content-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}
.content-facts > div { padding: 20px 22px; background: var(--surface); }
.content-facts > div:nth-child(4n + 1),
.content-facts > div:nth-child(4n + 4) { background: var(--brand-tint); }
.content-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.content-facts dt { margin-bottom: 4px; font-family: var(--font-head); font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--brand-ink); }
.content-facts dd { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-muted); }

@media (max-width: 991.98px) {
  .content-page { padding: 40px 0 72px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "aside" "body"; }
  .content-title { margin-bottom: 24px; }
  .content-aside { position: static; margin-bottom: 32px; }
  .content-figure img { aspect-ratio: 16 / 9; object-fit: cover; box-shadow: none; }
  .content-body { max-width: none; }
  .content-facts { grid-template-columns: repeat(4, 1fr); }
  .content-facts > div:nth-child(n) { background: var(--brand-tint); }
  .content-facts > div:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 767.98px) {
  .content-facts { grid-template-columns: 1fr 1fr; }
  .content-facts > div { padding: 16px 18px; }
  .content-facts dt { font-size: 22px; }
  .content-figure img { border-radius: 12px; }
}

/* ---- Contact (section/contact) ------------------------------------------ */
.contact { padding: 72px 0 96px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
.field--wide { grid-column: 1 / -1; }
.contact-info {
  display: grid;
  gap: 28px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--panel-dark);
  color: rgba(255, 255, 255, .8);
}
.contact-info-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.contact-info-item svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  background: rgba(95, 224, 204, .15);
  fill: none;
  stroke: #5fe0cc;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-info h3 { margin-bottom: 4px; color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.contact-info .prose, .contact-info p { color: inherit; font-size: 16px; }
.contact-info a { color: #fff; }
.contact-info a:hover { color: #5fe0cc; }
@media (max-width: 991.98px) {
  .contact { padding: 48px 0 72px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 575.98px) {
  .contact-form { grid-template-columns: 1fr; }
  .contact-info { padding: 24px; }
}

/* ---- 404 ---------------------------------------------------------------- */
.not-found { padding: 96px 0 120px; text-align: center; }
.not-found .not-found-code {
  font-family: var(--font-head);
  font-size: clamp(88px, 18vw, 160px);
  font-weight: 800;
  line-height: 1;
  color: var(--brand-tint);
  -webkit-text-stroke: 2px var(--brand);
}
.not-found h1 { margin-top: 12px; font-size: clamp(28px, 4vw, 40px); }
.not-found p { max-width: 520px; margin: 12px auto 28px; color: var(--ink-muted); }

/* ---- Gallery cards at the end of text pages ---------------------------- */
.page-galleries { padding: 88px 0; }
.page-galleries-more { margin: 36px 0 0; text-align: center; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { padding: 72px 0 28px; background: #14211e; color: rgba(255, 255, 255, .7); font-size: 15px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #5fe0cc; }
.site-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.site-footer-brand {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: #fff !important;
}
.site-footer-brand span { color: #5fe0cc; }
.site-footer-about p { max-width: 380px; line-height: 1.7; }
.site-footer-col h2 {
  margin: 6px 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer-col ul { padding: 0; list-style: none; }
.site-footer-col li { margin-bottom: 10px; }
.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
}
@media (max-width: 767.98px) {
  .site-footer { padding-top: 56px; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .site-footer-about { grid-column: 1 / -1; }
  .site-footer-bottom { margin-top: 40px; }
}
