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

:root {
  --blue: #284277;
  --white: #ffffff;
  --font: 'Roboto Condensed', sans-serif;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--blue);
  margin: 0;
}

/* ── Page shell ─────────────────────────── */

.page {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

/* ── Header ─────────────────────────────── */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5vh 5vw 0 5vw;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: clamp(43px, 7vh, 79px);
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 5px;
}

.nav a {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.4px;
  line-height: normal;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.nav a:hover {
  opacity: 0.6;
}

.nav-ig {
  display: flex;
  align-items: center;
}

.nav-ig svg {
  width: 20px;
  height: 20px;
}

/* ── Overlay (hidden by default) ─────────── */

.overlay {
  display: none;
}

/* ── Overlay contents (shared across all breakpoints) ── */

.overlay-close {
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--blue);
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

.overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.overlay-nav a {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.5px;
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.2s;
}

.overlay-nav a:hover {
  opacity: 0.6;
}

/* ── Burger (hidden on desktop) ─────────── */

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 27px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}

.burger span {
  display: block;
  position: absolute;
  left: 0;
  width: 27px;
  height: 3px;
  background: var(--blue);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }

.burger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Main ───────────────────────────────── */

.main {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Carousel ───────────────────────────── */

.carousel {
  position: relative;
  height: calc(100dvh - 24vh);
  width: auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.carousel picture {
  display: block;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel-slide.active {
  opacity: 1;
}

/* ── About page ─────────────────────────── */

.about {
  display: flex;
  align-items: center;
  gap: 4vw;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3vh 5vw;
}

.about-images {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.about-img-portrait {
  width: clamp(150px, 16vw, 257px);
  align-self: center;
}

.about-img-portrait img {
  width: 100%;
  height: clamp(200px, 38vh, 343px);
  object-fit: cover;
  display: block;
}

.about-img-portrait picture {
  display: block;
}

.about-img-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: clamp(200px, 22vw, 320px);
}

.about-img-stack picture {
  display: block;
}

.about-img-stack picture img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.about-img-stack picture:first-child img {
  height: clamp(150px, 26vh, 240px);
}

.about-img-stack picture:last-child img {
  height: clamp(200px, 34vh, 341px);
}

.about-text {
  flex: 1;
  min-width: 0;
  font-weight: 300;
  font-size: clamp(18px, 2.4vh, 30px);
  letter-spacing: -0.6px;
  line-height: normal;
  text-align: justify;
}

.about-text p + p {
  margin-top: 1em;
}

.about-text em {
  font-style: italic;
}

.about-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── About images fade-in ───────────────── */

.about-images img {
  opacity: 1;
}

/* ── Privatisation page ─────────────────── */

.priv {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 48px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 3vh 5vw;
}

.inner-page .priv {
  margin-top: clamp(40px, 9vh, 150px);
}

.inner-page .priv .carousel {
  height: calc((100dvh - 24vh) * 0.9);
}

.priv-img-bar {
  display: block;
  object-fit: cover;
  flex-shrink: 0;
  opacity: 1;
}
.priv-text {
  flex: 1;
  min-width: 0;
  font-weight: 300;
  font-size: clamp(18px, 2.4vh, 30px);
  letter-spacing: -0.6px;
  line-height: normal;
  text-align: justify;
}

.priv-text p + p {
  margin-top: 1em;
}

.priv-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.priv-text a:hover {
  opacity: 0.6;
}

/* ── Footer ─────────────────────────────── */

.footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 1vh 24px 2vh;
  text-align: center;
}

.footer p {
  font-weight: 300;
  font-size: clamp(14px, 1.8vh, 25px);
  letter-spacing: -0.5px;
  line-height: normal;
}

.footer a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.6;
}

/* ── Inner pages: tablet + mobile header (≤1100px) ── */

@media (max-width: 1100px) {

  .inner-page .header {
    padding: 2vh 45px 0 51px;
    position: relative;
  }

  .inner-page .logo img {
    width: 80px;
    height: 43px;
  }

  .inner-page .burger {
    display: block;
  }

  .inner-page .nav {
    display: none;
  }

  .inner-page .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .inner-page .overlay.open {
    display: flex;
    opacity: 1;
  }

  .inner-page .overlay-close {
    top: 47px;
    right: 45px;
  }

  .inner-page .footer {
    padding: 5px 5px 2vh;
  }

  .inner-page .footer p {
    font-size: 15px;
    letter-spacing: -0.3px;
  }
}

/* ── Tablet content (730px–1100px) ──────── */

@media (max-width: 1100px) and (min-width: 731px) {

  /* About tablet */
  .about {
    flex-direction: column;
    gap: 2vh;
    padding: 2vh 55px;
  }

  .about-text {
    order: -1;
    max-width: 663px;
    font-size: clamp(20px, 3.5vh, 35px);
    letter-spacing: -0.7px;
  }

  .about-images {
    width: 100%;
    justify-content: center;
  }

  .about-img-portrait {
    display: none;
  }

  .about-img-stack {
    width: clamp(300px, 40vw, 410px);
  }

  .about-img-stack picture:first-child img {
    height: clamp(180px, 30vh, 308px);
  }

  .about-img-stack picture:last-child {
    display: none;
  }

  /* Privatisation tablet */
  .priv {
    flex-direction: column;
    align-items: center;
    gap: 1.2vh;
    padding: 2vh 55px;
  }

  .priv-text {
    order: -1;
    max-width: 670px;
    font-size: clamp(20px, 3.5vh, 35px);
    letter-spacing: -0.7px;
  }

}

/* ── Mobile content (below 730px) ───────── */

@media (max-width: 730px) {

  /* About mobile */
  .about {
    flex-direction: column;
    gap: 40px;
    padding: 20px 29px 40px;
  }

  .about-text {
    order: -1;
    max-width: 306px;
    font-size: 20px;
    letter-spacing: -0.4px;
  }

  .about-images {
    width: 100%;
    justify-content: center;
  }

  .about-img-portrait {
    display: none;
  }

  .about-img-stack {
    width: 264px;
  }

  .about-img-stack picture:first-child img {
    height: 197px;
  }

  .about-img-stack picture:last-child {
    display: none;
  }

  /* Privatisation mobile */
  .priv {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 40px 29px;
  }

  .inner-page .priv {
    margin-top: clamp(50px, 12vh, 200px);
  }

  .priv-text {
    order: -1;
    max-width: 318px;
    font-size: 20px;
    letter-spacing: -0.4px;
  }

  .priv-img-bar {
    width: 95px;
    height: 136px;
    align-self: center;
  }
}

/* ── Index mobile (768px) ───────────────── */

@media (max-width: 768px) {

  body:not(.inner-page) .header {
    padding: 20px 40px 0 40px;
    position: relative;
  }

  body:not(.inner-page) .logo img {
    width: 80px;
    height: 43px;
  }

  body:not(.inner-page) .burger {
    display: block;
  }

  body:not(.inner-page) .nav {
    display: none;
  }

  body:not(.inner-page) .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  body:not(.inner-page) .overlay.open {
    display: flex;
    opacity: 1;
  }

  body:not(.inner-page) .overlay-close {
    top: 40px;
    right: 40px;
  }

  /* Page fills exact viewport on home */
  body:not(.inner-page) .page {
    min-height: unset;
    height: 100dvh;
  }

  /* Main no longer grows — carousel fills remaining space */
  body:not(.inner-page) .main {
    min-height: 0;
    padding: 16px 0;
  }

  /* Carousel — height = viewport minus header (~63px) + footer (~92px) + padding (32px) + buffer */
  .carousel {
    width: 289px;
    height: calc(100dvh - 200px);
  }

  /* Footer (index only) */
  body:not(.inner-page) .footer {
    padding: 5px 5px 20px;
  }

  body:not(.inner-page) .footer p {
    font-size: 15px;
    letter-spacing: -0.3px;
  }
}

/* ── Utility: desktop-only visibility ── */
.desktop-only { display: block; }
@media (max-width: 768px) { .desktop-only { display: none; } }
