/* =========================================================
   FRANKHEELTMETENGELEN.NL — RESPONSIVE PROEFOPZET
   ========================================================= */

:root {
  --purple: #55208f;
  --green: #a5cf5f;
  --green-text: #99bd58;
  --blue: #526e9a;
  --white: #ffffff;
  --text: #6f8554;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--purple);
  color: var(--text);
}

a {
  color: inherit;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  min-height: calc(100vh - 46px);
  margin: 26px auto 20px;
  background: var(--white);
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 10;
  padding: 26px 58px 0;
  background: rgba(255,255,255,.97);
}

.brand {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 14px;
}

.brand-name {
  display: block;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3rem, 5.7vw, 5.5rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  color: var(--blue);
  text-align: left;
  margin-top: 8px;
  padding-right: 0;
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  letter-spacing: .08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 0 0 14px;
  font-size: 1rem;
}

.site-nav a {
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:not(:last-child)::after {
  content: " | ";
  color: #7f8da3;
  margin: 0 .5rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--green-text);
}

.menu-toggle {
  display: none;
}

main {
  position: relative;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(300px, 38%) 1fr;
  min-height: 700px;
  padding: 24px 58px 38px;
  gap: 22px;
  background-color: rgba(0,0,0,0);
}

.intro-copy {
  position: relative;
  z-index: 3;
  max-width: 430px;
  padding-top: 10px;
  font-size: 1.18rem;
  line-height: 1.28;
  color: var(--green-text);
  background-color: rgba(0,0,0,0);
}

.intro-copy h1 {
  margin: 0 0 24px;
  font-size: 1.16em;
  line-height: 1.18;
  font-weight: 400;
}

.intro-copy p {
  margin: 0 0 20px;
}

.intro-copy .price {
  margin-top: 24px;
}

.contact-block {
  margin-top: 22px;
}

.contact-block a {
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

.angel-panel {
  position: relative;
  min-width: 0;
}

.angel-panel img {
  width: 100%;
  height: 100%;
  max-height: 760px;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: .72;
  mix-blend-mode: multiply;
}

/* =========================================================
   TABLET / IPAD
   ========================================================= */

@media (max-width: 980px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--max-width));
    margin-top: 10px;
  }

  .site-header {
    padding: 24px 36px 0;
  }

  .brand-name {
    font-size: clamp(2.8rem, 7.2vw, 4.6rem);
  }

  .intro-layout {
    grid-template-columns: minmax(280px, 46%) 1fr;
    padding: 18px 36px 34px;
  }

  .intro-copy {
    font-size: 1.07rem;
  }

  .angel-panel img {
    object-position: 44% top;
  }
}

/* =========================================================
   MOBIEL / IPHONE
   ========================================================= */

@media (max-width: 700px) {
  body {
    background: var(--white);
  }

  .site-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
  }

  .site-header {
    padding: 22px 22px 10px;
    border-bottom: 1px solid rgba(82,110,154,.14);
  }

  .brand {
    padding-right: 58px;
    margin-bottom: 8px;
  }

  .brand-name {
    font-size: clamp(2.55rem, 12vw, 4rem);
    line-height: .95;
  }

  .brand-subtitle {
    text-align: left;
    padding-right: 0;
    margin-top: 7px;
    font-size: 1.1rem;
  }

  .menu-toggle {
    position: absolute;
    top: 26px;
    right: 22px;
    display: grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blue);
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 0 6px;
    font-size: 1.02rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 0;
    border-top: 1px solid rgba(82,110,154,.12);
  }

  .site-nav a::after {
    display: none;
  }

  .intro-layout {
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    padding: 24px 22px 40px;
    gap: 0;
  }

  .angel-panel {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    height: auto;
    margin: 0;
    overflow: hidden;
  }

  .angel-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 96%);
  }

  .angel-panel img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: 52% top;
    opacity: .20;
  }

  .intro-copy {
    order: 2;
    max-width: none;
    padding-top: 0;
    font-size: 1.05rem;
    line-height: 1.48;
  }

  .intro-copy h1 {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 20px;
  }
}

/* =========================================================
   ZEER KLEINE SCHERMEN
   ========================================================= */

@media (max-width: 380px) {
  .brand-name {
    font-size: 2.45rem;
  }

  .intro-layout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .angel-panel {
    margin-left: 0;
    margin-right: 0;
  }
}



/* Grote schermen: de volledige engel achter het transparante tekstvak. */
@media (min-width: 981px) {
  .intro-layout {
    isolation: isolate;
  }

  .intro-copy {
    grid-column: 1;
    grid-row: 1;
    background: transparent;
  }

  .angel-panel {
    grid-column: 1 / -1;
    grid-row: 1;
    z-index: 0;
    pointer-events: none;
  }

  .angel-panel img {
    object-fit: contain;
    object-position: right bottom;
    max-height: none;
  }
}

/* Herbruikbaar fotovak: de volledige foto blijft in haar eigen verhouding. */
.practice-photo {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 560px;
  min-width: 0;
  margin: 0;
}

.practice-photo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  .practice-photo {
    order: 3;
    margin-top: 24px;
  }
}

/* Desktop en iPad: de engel achter de tekst, tegen de rechteronderrand. */
@media (min-width: 701px) {
  .site-shell {
    display: flex;
    flex-direction: column;
  }

  main {
    display: flex;
    flex: 1;
  }

  .intro-layout {
    position: relative;
    isolation: isolate;
    width: 100%;
  }

  .angel-panel {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  .angel-panel img {
    max-height: none;
    object-fit: contain;
    object-position: right bottom;
  }
}

/* Telefoon: een doorlopende cover-achtergrond over het hele tekstvlak. */
@media (max-width: 700px) {
  .site-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .site-header {
    flex: none;
  }

  main {
    display: flex;
    flex: 1;
    min-width: 0;
  }

  .intro-layout {
    width: 100%;
    min-height: 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    background-image: linear-gradient(rgba(255,255,255,.42), rgba(255,255,255,.42)), url("engel.jpg");
    background-size: cover;
    background-position: 48% top;
    background-repeat: no-repeat;
  }

  /* De bestaande zijafbeelding vervalt alleen op telefoons. */
  .angel-panel {
    display: none;
  }

  .intro-copy {
    color: var(--blue);
    overflow-wrap: anywhere;
  }

  .intro-copy > :last-child {
    margin-bottom: 0;
  }

  .site-nav a:hover,
  .site-nav a.active {
    color: var(--green-text);
  }
}

/* Always-visible language choice, separate from the main menu. */
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 20px;
  align-items: start;
}
.site-header .brand { min-width: 0; }
.language-switcher {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 2px;
  white-space: nowrap;
  font-size: .78rem;
  letter-spacing: .12em;
}
.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 44px;
  color: var(--blue);
  text-decoration: none;
  transition: color .2s ease;
}
.language-switcher span { color: #7f8da3; }
.language-switcher a.active { color: var(--green-text); font-weight: 600; }
.language-switcher a:hover { color: var(--green-text); }
.language-switcher a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.site-header .site-nav { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .site-header { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .site-header .brand {
    grid-column: 1; grid-row: 1;
    width: 100%; padding-right: 0; margin-bottom: 0;
  }
  .site-header .brand-subtitle {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-top: -4px;
    padding-right: 112px;
  }
  .language-switcher {
    grid-column: 1; grid-row: 1;
    align-self: end; justify-self: end;
    margin-right: 48px;
    gap: 0;
  }
  .language-switcher a { min-width: 28px; }
  .site-header .menu-toggle {
    position: static;
    grid-column: 1; grid-row: 1;
    align-self: end; justify-self: end;
    width: 44px; height: 44px;
  }
  .site-header .site-nav { grid-row: 2; }
}

@media (max-width: 700px) {
  html[lang="en"] .brand-subtitle { white-space: nowrap; }
}

/* Blauwe inhoudstekst bij schermbreedtes smaller dan 1265 pixels. */
@media (width < 1265px) {
  .intro-copy { color: var(--blue); }
}

/* Brede aanraakschermen: groene tekst vanaf 1000 pixels. */
@media (hover: none) and (pointer: coarse) and (min-width: 1000px) {
  .intro-copy { color: var(--green-text); }
}
