:root {
  --landing-cream: #F4EBDB;
  --landing-green: #0A2516;
  --landing-red: #C7372A;
  --landing-grey: #E9E2D6;
  --landing-ink: #111111;
}

html {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--landing-green);
}

body.landing-page {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
  background: transparent;
  color: var(--landing-cream);
  font-family: Montserrat, Arial, sans-serif;
}

.landing-page *,
.landing-page *::before,
.landing-page *::after {
  box-sizing: border-box;
}

.landing-page a {
  color: inherit;
  text-decoration: none;
}

.landing-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.landing-skip-link {
  position: fixed;
  z-index: 20;
  top: max(.75rem, env(safe-area-inset-top));
  left: max(.75rem, env(safe-area-inset-left));
  padding: .75rem 1rem;
  border-radius: .5rem;
  transform: translateY(-180%);
  background: var(--landing-cream);
  color: var(--landing-green);
  font-size: .75rem;
  font-weight: 800;
}

.landing-skip-link:focus {
  transform: translateY(0);
}

.landing-hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  overflow: clip;
}

.landing-photo,
.landing-overlay {
  position: fixed;
  pointer-events: none;
}

.landing-photo {
  z-index: 0;
  inset: -1.25rem;
  background: url('/assets/bartleinis-landing-pizzas.jpg') center 52% / cover no-repeat;
  filter: blur(4px) saturate(.96) brightness(.88);
  transform: translateZ(0) scale(1.025);
  will-change: transform;
}

.landing-overlay {
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(244, 235, 219, .3) 0%, rgba(244, 235, 219, .25) 38%, rgba(73, 61, 47, .3) 70%, rgba(17, 17, 17, .44) 100%),
    linear-gradient(90deg, rgba(244, 235, 219, .17), rgba(244, 235, 219, .08) 50%, rgba(111, 91, 67, .15));
  -webkit-backdrop-filter: blur(1.5px) saturate(.82);
  backdrop-filter: blur(1.5px) saturate(.82);
}

.landing-frame {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), 46rem);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding:
    max(1.65rem, env(safe-area-inset-top))
    0
    max(1.65rem, env(safe-area-inset-bottom));
}

.landing-brand {
  width: 100%;
}

.landing-logo-panel {
  display: block;
  width: 100%;
  padding: clamp(.8rem, 2.5vw, 1.3rem) clamp(1rem, 4vw, 2rem);
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.landing-logo-panel img {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
}

.landing-intro {
  margin: clamp(2.75rem, 7vw, 4.5rem) auto clamp(2.4rem, 6vw, 4rem);
  text-align: center;
}

.landing-kicker,
.landing-service-label {
  margin: 0;
  font-size: clamp(.66rem, 1.35vw, .9rem);
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.45;
  text-transform: uppercase;
}

.landing-kicker {
  color: var(--landing-cream);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow:
    0 1px 2px rgba(10, 37, 22, .98),
    0 .12rem .7rem rgba(0, 0, 0, .92);
}

.landing-red-rule {
  display: block;
  width: 66px;
  height: 3px;
  margin: clamp(1rem, 2.6vw, 1.4rem) auto clamp(1.65rem, 4vw, 2.35rem);
  border-radius: 999px;
  background: var(--landing-red);
}

.landing-intro h1 {
  margin: 0;
  color: var(--landing-cream);
  font-family: Bebas, Impact, sans-serif;
  font-size: clamp(4.35rem, 16.2vw, 9rem);
  font-weight: 400;
  letter-spacing: .018em;
  line-height: .82;
  text-transform: uppercase;
  text-shadow: 0 .18rem 1.15rem rgba(0, 0, 0, .52);
}

.landing-intro h1 span {
  display: block;
  white-space: nowrap;
}

.landing-lead {
  margin: clamp(1.35rem, 3.8vw, 2.15rem) auto 0;
  color: var(--landing-cream);
  font-size: clamp(.78rem, 1.75vw, 1.08rem);
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 1.5;
  text-transform: uppercase;
  text-shadow:
    0 1px 2px rgba(10, 37, 22, .98),
    0 .12rem .7rem rgba(0, 0, 0, .92);
}

.landing-actions {
  width: 100%;
}

.landing-service,
.landing-route {
  background: rgba(10, 37, 22, .96);
  border: 1px solid var(--landing-cream);
  border-radius: 20px;
  box-shadow: 0 .9rem 2.6rem rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: blur(.55rem);
  backdrop-filter: blur(.55rem);
}

.landing-service {
  min-width: 0;
  min-height: clamp(9rem, 20vw, 10.75rem);
  display: grid;
  grid-template-columns: minmax(6.8rem, 28%) minmax(0, 1fr);
  align-items: stretch;
  padding: 1.05rem 1.2rem;
}

.landing-date {
  min-width: 0;
  padding-right: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 2px solid var(--landing-red);
  color: var(--landing-cream);
  text-align: center;
}

.landing-date span {
  display: block;
  font-size: clamp(.66rem, 1.7vw, .96rem);
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.1;
  text-transform: uppercase;
}

.landing-date span:first-child {
  color: var(--landing-cream);
}

.landing-date b {
  display: block;
  margin: .12rem 0 .06rem;
  color: var(--landing-cream);
  font-family: Bebas, Impact, sans-serif;
  font-size: clamp(3.35rem, 8.5vw, 4.7rem);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: .82;
}

.landing-service-copy {
  min-width: 0;
  padding-left: clamp(1.2rem, 3.7vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-service-label {
  margin-bottom: .55rem;
  color: var(--landing-cream);
  font-size: clamp(.66rem, 1.55vw, .86rem);
}

.landing-service h2 {
  margin: 0;
  color: var(--landing-cream);
  font-family: Bebas, Impact, sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: .035em;
  line-height: .96;
  text-transform: uppercase;
}

.landing-routes {
  min-width: 0;
  margin-top: clamp(1rem, 2.7vw, 1.35rem);
  display: grid;
  gap: clamp(1rem, 2.7vw, 1.35rem);
}

.landing-route {
  position: relative;
  min-width: 0;
  min-height: clamp(9rem, 20vw, 10.75rem);
  padding: 1rem clamp(3.8rem, 9vw, 5rem) 1rem clamp(1.2rem, 3.5vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.15rem, 3vw, 1.85rem);
  overflow: hidden;
  color: var(--landing-cream);
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.landing-route-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .45rem;
}

.landing-route-title {
  display: block;
  font-family: Bebas, Impact, sans-serif;
  font-size: clamp(2.15rem, 6.4vw, 3.55rem);
  line-height: .9;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.landing-route small {
  display: block;
  font-size: clamp(.58rem, 1.5vw, .82rem);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.landing-route-arrow {
  position: absolute;
  right: clamp(1.15rem, 3.5vw, 2rem);
  top: 50%;
  color: var(--landing-cream);
  font-size: clamp(1.65rem, 4.5vw, 2.4rem);
  line-height: 1;
  transform: translateY(-52%);
}

.landing-route:hover {
  transform: translateY(-.18rem);
  background: rgba(14, 51, 30, .98);
  border-color: #fff8ec;
}

.landing-route:focus-visible,
.landing-logo-panel:focus-visible {
  outline: .22rem solid var(--landing-red);
  outline-offset: .24rem;
}

@media (min-width: 58rem) {
  .landing-frame {
    padding-top: max(2.25rem, env(safe-area-inset-top));
    padding-bottom: max(2.25rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 46rem) {
  .landing-logo-panel,
  .landing-service,
  .landing-route {
    border-radius: 18px;
  }
}

@media (max-width: 30rem) {
  .landing-frame {
    width: min(calc(100% - 1.5rem), 46rem);
    padding-top: max(.9rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .landing-logo-panel {
    padding: .6rem .8rem;
    border-width: 1.5px;
    border-radius: 14px;
  }

  .landing-intro {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .landing-kicker {
    padding: 0 .25rem;
    font-size: clamp(.57rem, 2.35vw, .68rem);
    letter-spacing: .14em;
  }

  .landing-red-rule {
    width: 62px;
    margin-top: .85rem;
    margin-bottom: 1.35rem;
  }

  .landing-intro h1 {
    font-size: clamp(3.35rem, 17.8vw, 5.3rem);
    line-height: .83;
  }

  .landing-lead {
    max-width: 22rem;
    margin-top: 1.1rem;
    font-size: clamp(.7rem, 3.3vw, .88rem);
  }

  .landing-service,
  .landing-route {
    min-height: 7.35rem;
    border-width: 1px;
    border-radius: 14px;
  }

  .landing-service {
    grid-template-columns: minmax(5.75rem, 28%) minmax(0, 1fr);
    padding: .75rem .85rem;
  }

  .landing-date {
    padding-right: .8rem;
    border-right-width: 1.5px;
  }

  .landing-date span {
    font-size: .61rem;
  }

  .landing-date b {
    font-size: clamp(3rem, 15vw, 4rem);
  }

  .landing-service-copy {
    padding-left: clamp(.9rem, 4vw, 1.2rem);
  }

  .landing-service-label {
    margin-bottom: .38rem;
    font-size: .62rem;
  }

  .landing-service h2 {
    font-size: clamp(1.45rem, 7.3vw, 2rem);
  }

  .landing-routes {
    margin-top: .75rem;
    gap: .75rem;
  }

  .landing-route {
    padding: .75rem 3.2rem .75rem 1rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .landing-route-copy {
    gap: .28rem;
  }

  .landing-route-title {
    font-size: clamp(1.9rem, 9.5vw, 2.55rem);
  }

  .landing-route small {
    font-size: clamp(.52rem, 2.4vw, .64rem);
    letter-spacing: .09em;
  }

  .landing-route-arrow {
    right: 1rem;
    font-size: 1.55rem;
  }

  .landing-photo {
    background-position: 52% center;
    filter: blur(3px) saturate(.96) brightness(.86);
  }
}

@media (max-width: 22.5rem) {
  .landing-frame {
    width: calc(100% - 1rem);
  }

  .landing-logo-panel,
  .landing-service,
  .landing-route {
    border-radius: 12px;
  }

  .landing-intro h1 {
    font-size: clamp(3.05rem, 17vw, 3.8rem);
  }

  .landing-service {
    grid-template-columns: 5.25rem minmax(0, 1fr);
  }

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

/* Phone and tablet portrait: keep all four lower panels inside one viewport. */
@media (max-width: 64rem) and (min-height: 34rem) and (orientation: portrait) {
  body.landing-page {
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }

  .landing-hero {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
    overflow: clip;
  }

  .landing-frame {
    width: min(calc(100% - 1rem), 46rem);
    height: 100vh;
    height: 100svh;
    min-height: 0;
    padding:
      max(.5rem, env(safe-area-inset-top))
      0
      max(.5rem, env(safe-area-inset-bottom));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: clamp(.375rem, 1.4svh, .75rem);
  }

  .landing-brand {
    display: flex;
    justify-content: center;
  }

  .landing-logo-panel {
    width: 100%;
    padding: .4rem .8rem;
    border-width: 1.5px;
    border-radius: 12px;
  }

  .landing-intro {
    align-self: center;
    min-height: 0;
    margin: 0;
  }

  .landing-kicker {
    padding: 0;
    font-size: clamp(.54rem, 1.8vw, .72rem);
    letter-spacing: .06em;
    line-height: 1.3;
  }

  .landing-red-rule {
    width: 58px;
    height: 3px;
    margin: clamp(.35rem, 1svh, .6rem) auto clamp(.45rem, 1.25svh, .75rem);
  }

  .landing-intro h1 {
    font-size: clamp(2.75rem, min(17vw, 9svh), 4.9rem);
    line-height: .79;
  }

  .landing-lead {
    max-width: 24rem;
    margin-top: clamp(.4rem, 1.2svh, .7rem);
    font-size: clamp(.66rem, 2.35vw, .88rem);
    line-height: 1.35;
  }

  .landing-actions {
    align-self: end;
    min-width: 0;
    display: grid;
    gap: .35rem;
  }

  .landing-service,
  .landing-route {
    border-width: 1px;
    border-radius: 12px;
    box-shadow: 0 .45rem 1.35rem rgba(0, 0, 0, .24);
  }

  .landing-service {
    min-height: clamp(4.25rem, 9.5svh, 5.5rem);
    grid-template-columns: clamp(5.25rem, 20vw, 8rem) minmax(0, 1fr);
    padding: .35rem .75rem;
  }

  .landing-date {
    padding-right: .7rem;
    border-right-width: 1.5px;
  }

  .landing-date span {
    font-size: clamp(.5rem, 1.7vw, .68rem);
    letter-spacing: .14em;
  }

  .landing-date b {
    margin: .02rem 0;
    font-size: clamp(2.1rem, 5.8svh, 3rem);
  }

  .landing-service-copy {
    padding-left: clamp(.7rem, 2.8vw, 1.1rem);
  }

  .landing-service-label {
    margin-bottom: .16rem;
    font-size: clamp(.5rem, 1.6vw, .64rem);
  }

  .landing-service h2 {
    font-size: clamp(1.25rem, 4vw, 2rem);
  }

  .landing-routes {
    margin-top: 0;
    gap: .35rem;
  }

  .landing-route {
    min-height: clamp(3.35rem, 7.5svh, 4.8rem);
    padding: .35rem 2.6rem .35rem .75rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .landing-route-copy {
    gap: .12rem;
  }

  .landing-route-title {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
  }

  .landing-route small {
    font-size: clamp(.46rem, 1.65vw, .65rem);
    letter-spacing: .07em;
    line-height: 1.2;
  }

  .landing-route-arrow {
    right: .75rem;
    font-size: 1.35rem;
  }
}

@media (max-width: 64rem) and (min-height: 34rem) and (max-height: 38rem) and (orientation: portrait) {
  .landing-frame {
    gap: .3rem;
  }

  .landing-logo-panel {
    width: 100%;
  }

  .landing-kicker {
    font-size: .52rem;
  }

  .landing-red-rule {
    margin-top: .3rem;
    margin-bottom: .4rem;
  }

  .landing-intro h1 {
    font-size: clamp(2.5rem, min(14.5vw, 8.2svh), 3.75rem);
    line-height: .78;
  }

  .landing-lead {
    margin-top: .35rem;
    font-size: .64rem;
  }

  .landing-actions,
  .landing-routes {
    gap: .25rem;
  }

  .landing-service {
    min-height: 3.75rem;
  }

  .landing-route {
    min-height: 3.15rem;
  }
}

/* Desktop and laptop landscape: keep the complete landing experience in one viewport. */
@media (min-width: 50rem) and (min-height: 36rem) and (orientation: landscape) {
  body.landing-page {
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }

  .landing-hero {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
    overflow: clip;
  }

  .landing-frame {
    width: min(calc(100% - 3rem), 84rem);
    height: 100vh;
    height: 100svh;
    min-height: 0;
    padding:
      max(.75rem, env(safe-area-inset-top))
      0
      max(.75rem, env(safe-area-inset-bottom));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: clamp(.5rem, 1.7vh, 1rem);
  }

  .landing-brand {
    display: flex;
    justify-content: center;
  }

  .landing-logo-panel {
    width: clamp(23rem, 32vw, 30rem);
    padding: .45rem 1rem;
    border-radius: 16px;
  }

  .landing-intro {
    align-self: center;
    min-height: 0;
    margin: 0;
  }

  .landing-kicker {
    font-size: clamp(.62rem, 1.05vw, .76rem);
    letter-spacing: .1em;
  }

  .landing-red-rule {
    width: 64px;
    margin: clamp(.5rem, 1.35vh, .75rem) auto clamp(.7rem, 1.7vh, 1rem);
  }

  .landing-intro h1 {
    font-size: clamp(3.35rem, 9.25vh, 5.75rem);
    line-height: .8;
  }

  .landing-lead {
    margin-top: clamp(.6rem, 1.7vh, 1rem);
    font-size: clamp(.72rem, 1.05vw, .9rem);
  }

  .landing-actions {
    align-self: end;
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto;
    gap: clamp(.5rem, 1.3vh, .75rem);
  }

  .landing-service {
    width: min(100%, 42rem);
    min-height: 5.1rem;
    justify-self: center;
    grid-template-columns: 7rem minmax(0, 1fr);
    padding: .5rem .85rem;
    border-radius: 16px;
  }

  .landing-date {
    padding-right: .85rem;
  }

  .landing-date span {
    font-size: .58rem;
  }

  .landing-date b {
    margin: .04rem 0;
    font-size: 2.8rem;
  }

  .landing-service-copy {
    padding-left: 1rem;
  }

  .landing-service-label {
    margin-bottom: .25rem;
    font-size: .6rem;
  }

  .landing-service h2 {
    font-size: clamp(1.65rem, 2.7vw, 2.25rem);
  }

  .landing-routes {
    margin-top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.5rem, 1.2vw, .85rem);
  }

  .landing-route {
    min-height: 5.75rem;
    padding: .65rem 2.75rem .65rem .9rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-radius: 16px;
  }

  .landing-route-copy {
    gap: .25rem;
  }

  .landing-route-title {
    font-size: clamp(1.65rem, 2.55vw, 2.3rem);
  }

  .landing-route small {
    font-size: clamp(.5rem, .72vw, .64rem);
    letter-spacing: .09em;
  }

  .landing-route-arrow {
    right: .85rem;
    font-size: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-route {
    transition: none;
  }
}
