@layer reset, base, layout, components, utilities;

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body,
  h1,
  h2,
  h3,
  p,
  ul {
    margin: 0;
  }

  ul {
    padding: 0;
    list-style: none;
  }

  img,
  picture,
  svg,
  video {
    display: block;
    max-width: 100%;
  }

  button,
  input,
  textarea,
  select {
    font: inherit;
  }
}

@layer base {
  html {
    color: var(--color-text);
    background: var(--color-page);
    font-family: var(--font-body);
    font-size: 100%;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
  }

  body {
    min-width: 20rem;
    min-height: 100vh;
    font-size: var(--text-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
  }

  h1,
  h2,
  h3 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-heading);
    text-wrap: balance;
  }

  a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
  }

  :focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 4px;
  }

  ::selection {
    color: var(--color-white);
    background: var(--color-accent);
  }
}

@layer layout {
  .container {
    width: min(100% - (var(--container-gutter) * 2), var(--container-width));
    margin-inline: auto;
  }

  .site-header__inner,
  .site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 5rem;
  }

  .page-intro {
    display: grid;
    min-height: calc(100svh - 10rem);
    padding-block: var(--section-space);
    align-items: center;
  }

  .main--empty {
    min-height: 100svh;
    background: var(--color-page);
  }
}

@layer components {
  .skip-link {
    position: fixed;
    z-index: 1000;
    top: var(--space-4);
    left: var(--space-4);
    padding: var(--space-3) var(--space-4);
    color: var(--color-white);
    background: var(--color-accent);
    transform: translateY(-200%);
  }

  .skip-link:focus {
    transform: translateY(0);
  }

  .site-header {
    position: relative;
    z-index: 100;
    color: var(--color-text);
  }

  .site-header.is-sticky {
    padding-bottom: 6.25rem;
  }

  .header-top__inner {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
  }

  .header-top__group,
  .header-meta,
  .header-socials {
    display: flex;
    align-items: center;
  }

  .header-top__group {
    gap: clamp(0.9rem, 2vw, 2rem);
  }

  .header-top__group--end {
    justify-content: flex-end;
  }

  .header-meta {
    gap: 0.55rem;
    font-size: clamp(0.65rem, 0.55rem + 0.18vw, 0.75rem);
    font-style: normal;
    font-weight: var(--font-weight-medium);
    line-height: 1.25;
    text-decoration: none;
  }

  .header-meta__icon {
    display: grid;
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    place-items: center;
  }

  .social-link {
    display: grid;
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    background: color-mix(in srgb, var(--color-block) 88%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-neutral) 45%, transparent);
    border-radius: 0.35rem;
    place-items: center;
  }

  .header-meta__icon svg,
  .social-link svg {
    width: 0.85rem;
    height: 0.85rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
  }

  .header-meta--hours i {
    display: inline-block;
    width: 0.2rem;
    height: 0.2rem;
    margin: 0 0.4rem 0.15rem;
    background: var(--color-accent);
    border-radius: 50%;
  }

  .header-socials {
    gap: 0.4rem;
  }

  .social-link {
    color: inherit;
    transition:
      color var(--transition-fast),
      background-color var(--transition-fast),
      transform var(--transition-fast);
  }

  .social-link:hover,
  .social-link:focus-visible {
    color: var(--color-white);
    background: var(--color-accent);
    transform: translateY(-2px);
  }

  .social-link:first-child svg {
    fill: currentColor;
    stroke: none;
  }

  .social-link__dot {
    fill: currentColor;
    stroke: none;
  }

  .header-main {
    right: 0;
    left: 0;
    padding-block: 0.35rem 0.65rem;
  }

  .site-header__inner {
    min-height: 5.25rem;
    padding-inline: clamp(1rem, 0.5rem + 1vw, 1.75rem);
    background: var(--color-block);
    border-radius: 0.7rem;
    backdrop-filter: blur(1rem);
    -webkit-backdrop-filter: blur(1rem);
  }

  .site-header.is-sticky .header-main {
    position: fixed;
    z-index: 100;
    top: 0;
    animation: header-slide-in var(--transition-base) both;
  }

  .site-header.is-sticky .site-header__inner {
    background: color-mix(in srgb, var(--color-block) 94%, transparent);
}

  @keyframes header-slide-in {
    from {
      opacity: 0;
      transform: translateY(-1rem);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .site-logo {
    position: relative;
    z-index: 102;
    flex: 0 0 auto;
    text-decoration: none;
  }

  .site-logo img {
    width: clamp(7.5rem, 10.5vw, 9.5rem);
    height: auto;
  }

  @media (min-width: 68.751rem) {
    .site-logo img {
      width: clamp(8.75rem, calc(10.5vw + 20px), 10.75rem);
      margin-top: 7px;
    }
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 1.6vw, 1.75rem);
  }

  .main-menu {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 1.35vw, 1.5rem);
  }

  .menu-item {
    position: relative;
  }

  .menu-item > a,
  .menu-item__heading > a {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-fast);
  }

  .menu-item > a:hover,
  .menu-item__heading > a:hover,
  .menu-item > a:focus-visible,
  .menu-item__heading > a:focus-visible {
    color: var(--color-accent);
  }

  .menu-item__heading {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .submenu-toggle,
  .menu-toggle {
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
  }

  .submenu-toggle {
    display: grid;
    width: 1.25rem;
    height: 1.25rem;
    place-items: center;
  }

  .submenu-toggle svg {
    width: 0.65rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    transition: transform var(--transition-fast);
  }

  .submenu {
    position: absolute;
    top: calc(100% + 1.25rem);
    left: -1.5rem;
    width: min(25rem, 90vw);
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: 0 0.75rem 2rem color-mix(in srgb, var(--color-text) 8%, transparent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition:
      opacity var(--transition-fast),
      visibility var(--transition-fast),
      transform var(--transition-fast);
  }

  .submenu::before {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 1.3rem;
    content: "";
  }

  .submenu a {
    display: block;
    padding: 0.7rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    line-height: 1.35;
    text-decoration: none;
    transition:
      color var(--transition-fast),
      background-color var(--transition-fast);
  }

  .submenu a:hover,
  .submenu a:focus-visible {
    color: var(--color-accent);
    background: var(--color-beige-light);
  }

  /* Long submenus (8+ items, class menu-item--mega): one column, centered under their parent item. */
  .menu-item--mega .submenu {
    left: 50%;
    width: min(28rem, 90vw);
    translate: -50% 0;
  }

  .menu-item--has-children:hover > .submenu,
  .menu-item--has-children:focus-within > .submenu,
  .menu-item--has-children[data-submenu-open] > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .menu-item--has-children[data-submenu-open] .submenu-toggle svg {
    transform: rotate(180deg);
  }

  .menu-toggle {
    position: relative;
    z-index: 102;
    display: none;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
  }

  .menu-toggle__icon {
    position: relative;
    display: block;
    width: 1.5rem;
    height: 0.8rem;
  }

  .menu-toggle__icon span {
    position: absolute;
    right: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform var(--transition-base), top var(--transition-base);
  }

  .menu-toggle__icon span:first-child {
    top: 0.15rem;
  }

  .menu-toggle__icon span:last-child {
    top: 0.65rem;
  }

  .menu-open .menu-toggle__icon span:first-child {
    top: 0.4rem;
    transform: rotate(45deg);
  }

  .menu-open .menu-toggle__icon span:last-child {
    top: 0.4rem;
    transform: rotate(-45deg);
  }

  .header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.65rem;
  }

  .language-switcher {
    position: relative;
  }

  .language-switcher summary {
    display: flex;
    min-width: 4.25rem;
    height: 2.75rem;
    padding-inline: 0.9rem;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--color-accent);
    background: var(--color-block);
    border: 1px solid color-mix(in srgb, var(--color-neutral) 55%, transparent);
    border-radius: 0.35rem;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    list-style: none;
    cursor: pointer;
  }

  .language-switcher summary::-webkit-details-marker {
    display: none;
  }

  .language-switcher summary svg {
    width: 0.55rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    transition: transform var(--transition-fast);
  }

  .language-switcher[open] summary svg {
    transform: rotate(180deg);
  }

  .language-switcher__list {
    position: absolute;
    top: calc(100% + 0.3rem);
    right: 0;
    min-width: 4.25rem;
    padding: 0.4rem;
    background: color-mix(in srgb, var(--color-block) 94%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-neutral) 55%, transparent);
    border-radius: 0.35rem;
    box-shadow: 0 0.75rem 2rem color-mix(in srgb, var(--color-text) 8%, transparent);
    backdrop-filter: blur(1rem);
  }

  .language-switcher__list a {
    display: grid;
    min-height: 2.2rem;
    padding: 0.4rem;
    border-radius: 0.35rem;
    place-items: center;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
  }

  .language-switcher__list a:hover,
  .language-switcher__list a:focus-visible,
  .language-switcher__list a[aria-current="page"] {
    color: var(--color-accent);
    background: var(--color-white);
  }

  .book-now {
    display: flex;
    height: 2.75rem;
    padding-inline: 1.15rem 0.8rem;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: var(--color-white);
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 999px;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
      color var(--transition-fast),
      background-color var(--transition-fast),
      transform var(--transition-fast);
  }

  .book-now svg {
    width: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
  }

  .book-now:hover,
  .book-now:focus-visible {
    color: var(--color-accent);
    background: transparent;
    transform: translateY(-2px);
  }

  .page-intro h1 {
    max-width: 12ch;
    font-size: var(--text-xl);
    line-height: var(--line-height-tight);
  }

  .page-intro__text {
    max-width: 38rem;
    margin-top: var(--space-6);
    font-size: var(--text-md);
  }

  .hero {
    position: relative;
    min-height: max(47rem, 100svh);
    overflow: hidden;
    background: var(--color-beige-light);
    isolation: isolate;
  }

  .hero__media {
    position: absolute;
    z-index: -2;
    inset: 0;
  }

  .hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--color-beige-light) 48%, transparent), transparent 28%, transparent 72%, color-mix(in srgb, var(--color-beige-light) 34%, transparent)),
      linear-gradient(0deg, color-mix(in srgb, var(--color-text) 8%, transparent), transparent 40%);
    content: "";
  }

  .hero__inner {
    position: relative;
    z-index: 1;
    min-height: max(47rem, 100svh);
  }

  .hero__copy {
    position: absolute;
    z-index: 3;
    top: clamp(12.5rem, 24vh, 16.5rem);
    left: 0;
    width: min(36rem, 39vw);
  }

  .hero h1 {
    max-width: 7.5ch;
    font-size: clamp(3.8rem, 5.4vw, 6.7rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
  }

  .hero h1 em {
    color: var(--color-accent);
    font-style: normal;
  }

  .hero__text {
    max-width: 28rem;
    margin-top: clamp(1.25rem, 2vw, 1.8rem);
    font-size: clamp(0.82rem, 0.78rem + 0.15vw, 0.95rem);
    line-height: 1.65;
  }

  .hero__round-cta {
    position: absolute;
    z-index: 4;
    bottom: clamp(2.5rem, 5vh, 4.5rem);
    left: 0;
    display: flex;
    width: clamp(8rem, 10vw, 10.5rem);
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    background: color-mix(in srgb, var(--color-beige-light) 26%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-text) 56%, transparent);
    border-radius: 50%;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    line-height: 1.45;
    text-align: center;
    text-decoration: none;
    backdrop-filter: blur(0.35rem);
    transition:
      color var(--transition-fast),
      background-color var(--transition-fast),
      transform var(--transition-fast);
  }

  .hero__round-cta svg {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    width: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.35;
  }

  .hero__round-cta:hover,
  .hero__round-cta:focus-visible {
    color: var(--color-white);
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: rotate(-4deg) scale(1.04);
  }

  .hero__feature {
    position: absolute;
    z-index: 4;
    top: clamp(12.5rem, 23vh, 16rem);
    right: 0;
    width: clamp(9.5rem, 12vw, 12rem);
    padding: 1rem;
    background: color-mix(in srgb, var(--color-white) 48%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-white) 74%, transparent);
    border-radius: 1.15rem;
    box-shadow: 0 1.5rem 3rem color-mix(in srgb, var(--color-text) 7%, transparent);
    backdrop-filter: blur(0.75rem);
  }

  .hero__feature-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-accent);
    font-size: 0.65rem;
    font-weight: var(--font-weight-medium);
  }

  .hero__feature-top svg {
    width: 2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
  }

  .hero__feature > p {
    margin-top: 1.5rem;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.15vw, 1.25rem);
    font-weight: var(--font-weight-medium);
    line-height: 1.25;
  }

  .hero__feature > p i {
    display: inline-block;
    width: 0.25rem;
    height: 0.25rem;
    margin: 0 0.25rem 0.2rem;
    background: var(--color-accent);
    border-radius: 50%;
  }

  .hero__feature > a {
    display: flex;
    margin-top: 1.25rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.68rem;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
  }

  .hero__feature > a svg {
    width: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
    transition: transform var(--transition-fast);
  }

  .hero__feature > a:hover svg,
  .hero__feature > a:focus-visible svg {
    transform: translateX(0.2rem);
  }

  .hero__signature {
    position: absolute;
    z-index: 4;
    right: 1.5rem;
    bottom: clamp(8rem, 18vh, 13rem);
    color: var(--color-accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 4.6vw, 5.5rem);
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.05em;
    transform: rotate(-5deg);
  }

  .hero__display {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: -0.12em;
    left: 0;
    color: color-mix(in srgb, var(--color-beige-light) 64%, transparent);
    font-family: var(--font-heading);
    font-size: clamp(7rem, 17vw, 19rem);
    font-weight: var(--font-weight-medium);
    line-height: 0.72;
    letter-spacing: -0.085em;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
  }

  .site-footer {
    border-top: 1px solid color-mix(in srgb, var(--color-text) 14%, transparent);
    font-size: var(--text-sm);
  }
}

@media (max-width: 68.75rem) {
  @layer components {
    .menu-toggle {
      display: flex;
    }

    .js .site-nav {
      position: fixed;
      z-index: 101;
      inset: 0;
      display: block;
      padding: 7rem var(--container-gutter) 3rem;
      overflow-y: auto;
      background: var(--color-beige-medium);
      opacity: 0;
      visibility: hidden;
      transform: translateX(100%);
      transition:
        opacity var(--transition-base),
        visibility var(--transition-base),
        transform var(--transition-base);
    }

    .menu-open .site-nav {
      opacity: 1;
      visibility: visible;
      transform: translateX(0);
    }

    .menu-open {
      overflow: hidden;
    }

    .main-menu {
      display: block;
      max-width: 48rem;
      margin-inline: auto;
    }

    .menu-item {
      border-bottom: 1px solid color-mix(in srgb, var(--color-text) 15%, transparent);
    }

    .menu-item > a,
    .menu-item__heading > a {
      padding-block: 1rem;
      font-family: var(--font-heading);
      font-size: clamp(1.35rem, 3vw, 2rem);
      white-space: normal;
    }

    .menu-item__heading {
      justify-content: space-between;
    }

    .submenu-toggle {
      flex: 0 0 2.75rem;
      width: 2.75rem;
      height: 2.75rem;
    }

    .submenu-toggle svg {
      width: 0.85rem;
    }

    .submenu,
    .menu-item--mega .submenu {
      position: static;
      display: none;
      left: auto;
      width: auto;
      translate: none;
      padding: 0 0 1rem 1rem;
      background: transparent;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      opacity: 1;
      visibility: visible;
      transform: none;
    }

    .menu-item--has-children[data-submenu-open] > .submenu,
    .menu-item--mega[data-submenu-open] > .submenu {
      display: block;
    }

    .submenu::before {
      display: none;
    }

    .submenu a {
      padding: 0.65rem 0;
      font-size: var(--text-base);
    }

    .header-actions {
      max-width: 48rem;
      margin: 2rem auto 0;
      justify-content: space-between;
    }

    .book-now {
      min-width: 9rem;
    }
  }
}

@media (max-width: 48rem) {
  @layer components {
    .header-top__inner {
      min-height: 2.75rem;
    }

    .header-meta--address,
    .header-meta--hours {
      display: none;
    }

    .header-top__group--end {
      margin-left: auto;
    }

    .social-link {
      width: 1.6rem;
      height: 1.6rem;
    }

    .site-header__inner {
      min-height: 4.5rem;
      border-radius: 0.9rem;
    }

    .site-header.is-sticky {
      padding-bottom: 5.5rem;
    }

    .site-logo img {
      width: 7.5rem;
    }

    .menu-toggle__label {
      display: none;
    }

    .hero {
      min-height: 56rem;
    }

    .hero__media {
      top: auto;
      height: 68%;
    }

    .hero__media img {
      object-position: center top;
    }

    .hero::after {
      background: linear-gradient(180deg, var(--color-beige-light) 0%, var(--color-beige-light) 39%, color-mix(in srgb, var(--color-beige-light) 78%, transparent) 54%, transparent 76%);
    }

    .hero__inner {
      min-height: 56rem;
    }

    .hero__copy {
      top: 9.5rem;
      width: 100%;
    }

    .hero h1 {
      max-width: 8ch;
      font-size: clamp(3rem, 14vw, 4.25rem);
    }

    .hero__text {
      max-width: 29rem;
      font-size: var(--text-sm);
    }

    .hero__feature {
      display: none;
    }

    .hero__round-cta {
      bottom: 2rem;
      width: 7.5rem;
    }

    .hero__signature {
      right: 1rem;
      bottom: 8.5rem;
      font-size: clamp(2.25rem, 12vw, 3.5rem);
    }

    .hero__display {
      bottom: 0.15em;
      font-size: clamp(5rem, 25vw, 7.5rem);
      line-height: 0.75;
    }
  }
}

@layer utilities {
  .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
