/* Responsive layout refinements shared by home, contact and legal pages. */
html {
  scroll-padding-top: calc(78px + env(safe-area-inset-top));
  -webkit-text-size-adjust: 100%;
}

.combined-footer {
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

main img,
footer img {
  max-width: 100%;
}

main h1,
main h2,
main h3,
.combined-footer h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: balance;
}

.legal-main,
.contact-value,
.combined-contact-item {
  overflow-wrap: anywhere;
}

.section01-copy,
.section02-copy,
.section03-copy,
.editorial-copy,
.contact-card,
.combined-contact-grid,
.combined-contact-item > div,
.contact-form .form-field {
  min-width: 0;
}

/* Keep the logo inside its own space between the booking links and menu. */
.site-header {
  height: calc(58px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
}

.site-header .topnav {
  top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.site-header .topnav > a:not(.header-scroll-logo),
.site-header .menu-toggle {
  flex-shrink: 0;
}

.site-header .topnav .header-scroll-logo {
  min-width: 0;
  padding: 8px 12px;
  justify-content: center;
}

.site-header .topnav .header-scroll-logo img {
  position: static;
  width: 176px;
  max-width: 100%;
  height: 42px;
  transform: none;
}

body:not(.home-page) .site-header .header-scroll-logo {
  opacity: 1;
  visibility: visible;
}

.menu-panel {
  display: flex;
  height: 100dvh;
  padding: 80px max(24px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  flex-direction: column;
  overscroll-behavior: contain;
}

.menu-navigation {
  width: 100%;
  min-width: 0;
  margin-block: auto;
  flex-shrink: 0;
}

.menu-panel .menu-navigation > a {
  max-width: 100%;
  min-height: 44px;
  overflow-wrap: anywhere;
}

.menu-panel .menu-close {
  position: fixed;
  top: env(safe-area-inset-top);
  right: env(safe-area-inset-right);
}

.menu-close span:nth-of-type(1) {
  transform: rotate(45deg);
}

.menu-close span:nth-of-type(2) {
  transform: rotate(-45deg);
}

body.menu-open .palette-switcher,
body.menu-open .whatsapp-button {
  visibility: hidden;
  pointer-events: none;
}

.palette-switcher {
  left: max(12px, env(safe-area-inset-left));
  bottom: calc(12px + env(safe-area-inset-bottom));
  gap: 4px;
  padding: 5px 8px;
}

.palette-switcher button {
  width: 44px;
  height: 44px;
  padding: 11px;
  flex: 0 0 44px;
}

.hero-pagination button {
  height: 44px;
}

.gallery-carousel-scrollbar {
  height: 44px;
}

.gallery-carousel-scrollbar::before {
  top: 21px;
}

.gallery-carousel-thumb {
  top: 19px;
}

.section01 .section01-action,
.section02-copy .section02-action,
.section03-copy .section03-action,
.editorial-action,
.contact-action {
  min-height: 44px;
  gap: 16px;
  padding-bottom: 10px;
}

.section01-action > span,
.section02-action > span,
.section03-action > span,
.editorial-action > span,
.contact-action > span {
  flex-shrink: 0;
}

.combined-footer-bottom a,
.combined-contact-item div > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

/* Fluid type also handles widths between the old desktop breakpoints. */
#willkommen h1,
.section01 h2,
.section02-copy h2,
.section03-copy h2,
.specialties-heading h2,
.editorial-copy h2 {
  font-size: clamp(36px, 6.2vw, 76px);
  line-height: 1.08;
}

.section01 {
  column-gap: clamp(36px, 5vw, 100px);
}

.section02 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.combined-footer-main {
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 75px);
}

.combined-contact-grid {
  gap: clamp(24px, 3vw, 56px);
}

.combined-contact-item {
  column-gap: clamp(14px, 1.5vw, 24px);
}

.contact-form .form-field {
  grid-column: auto;
}

.contact-form .form-field.full,
.contact-form .buttons {
  grid-column: 1 / -1;
}

.contact-form input:not([type='checkbox']),
.contact-form textarea,
.contact-form select {
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-hero h1 {
  color: var(--gt-deep);
}

@media (max-width: 1350px) {
  .combined-footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .combined-footer-logo {
    justify-self: center;
  }
}

@media (max-width: 1100px) {
  .hero-logo {
    top: 82px;
  }

  .section02 {
    grid-template-columns: minmax(0, 1fr);
  }

  .editorial-grid {
    grid-template-areas: 'family-copy' 'farm-image' 'farm-copy' 'family-image';
  }

  .specialties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 52px 36px;
  }

  .combined-contact-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .contact-grid {
    gap: 24px;
  }

  .contact-value {
    font-size: clamp(25px, 3.2vw, 34px);
  }

  .contact-email {
    font-size: clamp(23px, 2.8vw, 30px);
  }
}

@media (max-width: 768px) {
  .hero {
    height: 100svh;
    min-height: 420px;
    max-height: 960px;
  }

  .hero-pagination {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .site-header .request-link {
    width: 82px;
  }

  .site-header .topnav .book {
    width: 76px;
  }

  .site-header .topnav > a:not(.header-scroll-logo) {
    padding-inline: 8px;
    font-size: 20px;
  }

  .site-header .menu-toggle,
  .menu-close {
    width: 56px;
  }

  .site-header .menu-toggle {
    padding-inline: 13px;
  }

  .menu-toggle span,
  .menu-close span {
    width: 30px;
  }

  .menu-close span {
    left: 13px;
  }

  .site-header .topnav .header-scroll-logo {
    padding-inline: 8px;
  }

  .palette-switcher span {
    display: none;
  }

  #willkommen {
    padding-block: 72px 80px;
  }

  .section01,
  .section03,
  .editorial-section {
    padding-block: 64px 80px;
  }

  .section02 {
    padding-bottom: 80px;
  }

  .specialties-section {
    padding-top: 72px;
    padding-bottom: 140px;
  }

  .specialties-grid {
    margin-top: 48px;
  }

  .specialty-card h3 {
    font-size: clamp(30px, 5.2vw, 40px);
  }

  .specialty-card p {
    max-width: 36ch;
  }

  .section01 p,
  .section02-copy p,
  .section03-copy p,
  .editorial-copy > p:not(.editorial-kicker),
  #willkommen p {
    margin-top: 28px;
  }

  .section01 > .section01-image,
  .section02 > .section02-image,
  .section03-image-main,
  .section03-image-left,
  .section03-image-right,
  .editorial-parallax,
  .parallax-window {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .content-parallax > picture,
  .content-parallax > img,
  .editorial-parallax > picture,
  .parallax-window picture {
    inset: 0;
    transform: none;
    will-change: auto;
  }

  .combined-footer {
    margin-bottom: 0;
  }

  .combined-footer-main {
    padding-block: 64px 48px;
    gap: 48px;
  }

  .combined-contact-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
  }

  .combined-contact-item > img {
    width: 44px;
    height: 52px;
  }

  .combined-contact-item p {
    font-size: clamp(24px, 5.8vw, 29px);
  }

  .contact-hero {
    min-height: 0;
    padding-block: 64px;
  }

  .contact-hero h1,
  .inquiry-heading h2 {
    font-size: clamp(42px, 9vw, 64px);
  }

  .contact-hero p {
    font-size: 17px;
    line-height: 1.6;
  }

  .contact-value {
    font-size: 32px;
  }

  .contact-email {
    font-size: 28px;
  }

  .inquiry-section {
    padding-block: 64px 80px;
  }

  .inquiry-form {
    margin-top: 36px;
  }

  .contact-submit {
    width: 100%;
  }

  .whatsapp-button {
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
  }

  .whatsapp-button img {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 540px) {
  .specialties-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }
}

@media (max-width: 360px) {
  .site-header .request-link {
    width: 72px;
  }

  .site-header .topnav .book {
    width: 68px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: 100svh;
    min-height: 320px;
  }

  .hero-logo {
    top: 76px;
    width: min(260px, 40vw);
  }

  .menu-panel {
    padding-block: 66px 20px;
  }

  .menu-panel .menu-navigation > a {
    font-size: 28px;
  }

  .menu-navigation {
    gap: 2px;
  }
}
