/* =========================================================
   ROEMAH KENTANG 1908
   Responsive Stylesheet
   ========================================================= */

/* =========================================================
   1. LARGE DESKTOP
   ========================================================= */
@media (min-width: 1440px) {
  :root {
    --container-xl: 1420px;
  }

  .hero__content {
    width: min(100%, 1080px);
  }

  .menu-featured {
    min-height: 740px;
  }

  .menu-featured__media {
    min-height: 640px;
  }

  .event-highlight,
  .event-highlight__content {
    min-height: 780px;
  }

  .gallery-strip {
    grid-template-rows: 350px 350px;
  }
}

/* =========================================================
   2. LAPTOP / SMALL DESKTOP
   ========================================================= */
@media (max-width: 1199px) {
  :root {
    --header-height: 84px;
    --container-padding: clamp(1.25rem, 3.5vw, 2.5rem);
  }

  .site-nav {
    gap: clamp(0.85rem, 1.8vw, 1.4rem);
  }

  .site-nav__link {
    font-size: 0.76rem;
    letter-spacing: 0.07em;
  }

  .site-header__cta {
    min-height: 42px;
    padding-inline: 1rem;
  }

  .home-intro__grid,
  .story-layout,
  .testimonial-layout,
  .visit-layout {
    gap: clamp(2.75rem, 6vw, 5rem);
  }

  .intro-visual {
    min-height: 560px;
  }

  .menu-featured {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  }

  .spaces-showcase {
    grid-auto-rows: 82px;
  }

  .gallery-strip {
    grid-template-rows: 280px 280px;
  }

  .site-footer__main {
    grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(120px, 0.7fr));
  }
}

/* =========================================================
   3. TABLET LANDSCAPE / NAV COLLAPSE
   ========================================================= */
@media (max-width: 1023px) {
  :root {
    --header-height: 78px;
    --fs-hero: clamp(3.4rem, 10vw, 7rem);
  }

  .site-header {
    height: var(--header-height);
  }

  .site-header.is-scrolled {
    height: 72px;
  }

  .site-logo {
    font-size: 1.28rem;
  }

  .site-logo img {
    height: 42px;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: calc(var(--header-height) + 2rem) var(--container-padding) 3rem;
    background: var(--color-heritage-cream);
    color: var(--color-deep-brown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-2%);
    transition:
      opacity 420ms ease,
      visibility 420ms ease,
      transform 520ms var(--ease-smooth);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__link {
    width: 100%;
    padding: 0.45rem 0;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7vw, 4.75rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    text-transform: none;
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__link:hover,
  .site-nav__link.is-active {
    color: var(--color-potato-gold);
  }

  .nav-toggle {
    position: relative;
    z-index: 3;
    display: grid;
  }

  .nav-toggle__lines,
  .nav-toggle__lines::before,
  .nav-toggle__lines::after {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    content: "";
    transition:
      transform var(--duration-base) var(--ease-standard),
      opacity var(--duration-base) ease;
  }

  .nav-toggle__lines {
    position: relative;
  }

  .nav-toggle__lines::before {
    position: absolute;
    top: -5px;
    left: 0;
  }

  .nav-toggle__lines::after {
    position: absolute;
    top: 5px;
    left: 0;
  }

  .nav-toggle.is-open .nav-toggle__lines {
    background: transparent;
  }

  .nav-toggle.is-open .nav-toggle__lines::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle.is-open .nav-toggle__lines::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .site-header__actions {
    position: relative;
    z-index: 3;
    margin-left: auto;
  }

  .site-header__cta {
    display: none;
  }

  .site-header__reservation-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
  }

  .hero__content {
    width: min(100%, 820px);
  }

  .hero__title {
    font-size: clamp(4rem, 11vw, 7rem);
  }

  .home-intro__grid {
    grid-template-columns: 1fr;
  }

  .home-intro__content {
    max-width: 760px;
  }

  .home-intro__visual {
    width: min(100%, 780px);
    margin-inline: auto;
  }

  .intro-copy {
    padding-left: 2rem;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .story-sticky {
    position: relative;
    top: auto;
  }

  .story-sticky__image {
    max-height: 680px;
    aspect-ratio: 16 / 10;
  }

  .story-timeline {
    max-width: 760px;
  }

  .menu-featured {
    grid-template-columns: 1fr;
  }

  .menu-featured__media {
    min-height: 500px;
  }

  .menu-featured__content {
    min-height: auto;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spaces-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 360px;
  }

  .space-card,
  .space-card:nth-child(1),
  .space-card:nth-child(2),
  .space-card:nth-child(3),
  .space-card:nth-child(4),
  .space-card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }

  .space-card:first-child {
    grid-column: 1 / -1;
    min-height: 520px;
  }

  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card:last-child {
    grid-column: 1 / -1;
  }

  .testimonial-layout {
    grid-template-columns: 1fr;
  }

  .testimonial-summary {
    max-width: 640px;
  }

  .visit-layout {
    grid-template-columns: 1fr;
  }

  .visit-map {
    min-height: 500px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }

  .stat-item:nth-child(4) {
    border-top: 1px solid var(--color-border);
  }

  .site-footer__main {
    grid-template-columns: 1.25fr repeat(2, minmax(140px, 0.75fr));
  }

  .site-footer__column:last-child {
    grid-column: 2 / -1;
  }
}

/* =========================================================
   4. TABLET PORTRAIT
   ========================================================= */
@media (max-width: 767px) {
  :root {
    --header-height: 72px;
    --container-padding: 1.25rem;
    --space-20: 4rem;
    --space-24: 4.75rem;
    --space-28: 5.5rem;
    --space-32: 6rem;
  }

  body {
    font-size: 0.96rem;
  }

  h2 {
    font-size: clamp(2.65rem, 12vw, 4.4rem);
  }

  h3 {
    font-size: clamp(2.15rem, 9vw, 3.4rem);
  }

  .section {
    padding-block: clamp(4.5rem, 16vw, 6.5rem);
  }

  .section--tight {
    padding-block: clamp(3.5rem, 12vw, 5rem);
  }

  .section-heading {
    display: block;
    margin-bottom: 2.75rem;
  }

  .section-heading__action {
    margin-top: var(--space-6);
  }

  .section-heading--center {
    text-align: left;
  }

  .section-heading--center .eyebrow {
    justify-content: flex-start;
  }

  .section-heading--center .section-description {
    margin-left: 0;
  }

  .eyebrow {
    gap: var(--space-2);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .eyebrow::before {
    width: 1.8rem;
  }

  .lead {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .btn {
    min-height: 50px;
  }

  .site-header__inner {
    gap: var(--space-3);
  }

  .site-logo {
    max-width: 170px;
    font-size: 1.12rem;
  }

  .site-logo img {
    height: 38px;
  }

  .site-header__reservation-icon,
  .nav-toggle {
    width: 43px;
    height: 43px;
  }

  .site-nav {
    padding-top: calc(var(--header-height) + 2rem);
  }

  .site-nav__link {
    font-size: clamp(2.4rem, 12vw, 4.1rem);
  }

  .hero {
    min-height: 100svh;
  }

  .hero__media {
    inset: -3%;
  }

  .hero__media::after {
    background:
      linear-gradient(
        180deg,
        rgba(15, 16, 14, 0.5) 0%,
        rgba(15, 16, 14, 0.2) 42%,
        rgba(15, 16, 14, 0.64) 100%
      );
  }

  .hero__content {
    padding:
      calc(var(--header-height) + 2rem)
      var(--container-padding)
      7.5rem;
  }

  .hero__eyebrow {
    margin-bottom: var(--space-4);
    font-size: 0.66rem;
    letter-spacing: 0.22em;
  }

  .hero__title {
    font-size: clamp(3.5rem, 16vw, 5.8rem);
    line-height: 0.98;
  }

  .hero__description {
    max-width: 430px;
    margin-top: var(--space-6);
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: var(--space-8);
  }

  .hero__actions .btn {
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .hero__scroll {
    bottom: 1.25rem;
  }

  .hero__scroll-line {
    height: 42px;
  }

  .home-intro::before {
    top: -34px;
    height: 36px;
    border-radius: 32px 32px 0 0;
  }

  .home-intro__grid {
    gap: 3.25rem;
  }

  .intro-copy {
    padding-left: 1.25rem;
  }

  .intro-visual {
    min-height: 470px;
  }

  .intro-visual__main {
    width: 88%;
    height: 76%;
  }

  .intro-visual__secondary {
    width: 53%;
    height: 44%;
    border-width: 7px;
  }

  .intro-visual__year {
    right: 1%;
    bottom: 5%;
    font-size: clamp(4.5rem, 24vw, 7.5rem);
  }

  .brand-quote__text {
    font-size: clamp(2.5rem, 12vw, 4.3rem);
  }

  .brand-quote__caption {
    padding-inline: var(--container-padding);
    line-height: 1.7;
  }

  .marquee__item {
    padding: 1rem 1.35rem;
    font-size: clamp(1.5rem, 7vw, 2.1rem);
  }

  .story-sticky__image {
    aspect-ratio: 4 / 3;
  }

  .story-timeline::before {
    left: 0.42rem;
  }

  .story-item {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding-left: 2rem;
  }

  .story-item__year {
    font-size: 1.25rem;
  }

  .story-item__content {
    padding-left: 0;
  }

  .story-item__content::before {
    top: -1.85rem;
    left: -1.98rem;
    width: 0.85rem;
    height: 0.85rem;
  }

  .menu-featured {
    min-height: 0;
    border-radius: var(--radius-lg);
  }

  .menu-featured__media {
    min-height: 390px;
  }

  .menu-featured__badge {
    top: var(--space-4);
    left: var(--space-4);
  }

  .menu-featured__content {
    padding: 2rem;
  }

  .menu-featured__content h3 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-filter {
    flex-wrap: nowrap;
    margin-right: calc(var(--container-padding) * -1);
    margin-left: calc(var(--container-padding) * -1);
    padding-inline: var(--container-padding);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .menu-filter::-webkit-scrollbar {
    display: none;
  }

  .menu-filter__button {
    flex: 0 0 auto;
  }

  .menu-search {
    max-width: none;
  }

  .spaces-showcase {
    display: flex;
    gap: var(--space-4);
    margin-right: calc(var(--container-padding) * -1);
    padding-right: var(--container-padding);
    overflow-x: auto;
    scroll-padding-left: var(--container-padding);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .spaces-showcase::-webkit-scrollbar {
    display: none;
  }

  .space-card,
  .space-card:first-child {
    width: min(84vw, 420px);
    min-width: min(84vw, 420px);
    min-height: 500px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .space-card__arrow {
    opacity: 1;
    transform: none;
  }

  .event-highlight,
  .event-highlight__content {
    min-height: 670px;
  }

  .event-highlight {
    border-radius: var(--radius-lg);
  }

  .event-highlight__media::after {
    background:
      linear-gradient(
        180deg,
        rgba(20, 20, 18, 0.15) 10%,
        rgba(20, 20, 18, 0.82) 76%
      );
  }

  .event-highlight__content {
    justify-content: flex-end;
    padding: 2rem;
  }

  .event-highlight__actions {
    align-items: stretch;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }

  .event-card,
  .event-card:last-child {
    grid-column: auto;
    min-height: 520px;
  }

  .event-card__description {
    max-height: 140px;
    opacity: 1;
  }

  .gallery-strip {
    display: flex;
    gap: var(--space-4);
    margin-right: calc(var(--container-padding) * -1);
    padding-right: var(--container-padding);
    overflow-x: auto;
    scroll-padding-left: var(--container-padding);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery-strip::-webkit-scrollbar {
    display: none;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    width: min(84vw, 430px);
    min-width: min(84vw, 430px);
    height: 520px;
    flex: 0 0 auto;
    grid-column: auto;
    grid-row: auto;
    scroll-snap-align: start;
  }

  .gallery-item__icon {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .testimonial-slider {
    min-height: 450px;
  }

  .testimonial-card {
    padding: 2rem;
  }

  .testimonial-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .visit-content {
    padding: 2rem;
  }

  .visit-map {
    min-height: 430px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group--full {
    grid-column: auto;
  }

  .page-hero {
    min-height: 72svh;
  }

  .page-hero__content {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4.25rem;
  }

  .page-hero__title {
    font-size: clamp(3.45rem, 15vw, 5.8rem);
  }

  .breadcrumbs {
    margin-bottom: var(--space-4);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item + .stat-item,
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .faq-item__button {
    gap: var(--space-4);
  }

  .faq-item__question {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .closing-cta,
  .closing-cta__content {
    min-height: 78svh;
  }

  .closing-cta__title {
    font-size: clamp(3.4rem, 15vw, 5.8rem);
  }

  .closing-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .closing-cta__actions .btn {
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__column:last-child {
    grid-column: auto;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-whatsapp {
    min-height: 52px;
    padding: 0.75rem;
  }

  .floating-whatsapp__text {
    display: none;
  }

  .floating-whatsapp__icon {
    width: 34px;
    height: 34px;
  }

  .back-to-top {
    bottom: 5.5rem;
  }

  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal__dialog {
    width: 100%;
    max-height: 92svh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
}

/* =========================================================
   5. MOBILE
   ========================================================= */
@media (max-width: 575px) {
  :root {
    --container-padding: 1rem;
  }

  .site-logo {
    max-width: 145px;
  }

  .site-logo img {
    height: 35px;
  }

  .site-header__reservation-icon,
  .nav-toggle {
    width: 41px;
    height: 41px;
  }

  .hero__content {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hero__title {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .hero__description {
    max-width: 330px;
  }

  .home-intro__visual {
    min-height: 410px;
  }

  .intro-visual__main {
    width: 91%;
    height: 74%;
  }

  .intro-visual__secondary {
    width: 58%;
    height: 43%;
  }

  .menu-featured__media {
    min-height: 330px;
  }

  .menu-featured__content {
    padding: 1.5rem;
  }

  .menu-card__body {
    padding: 1.25rem;
  }

  .space-card,
  .space-card:first-child,
  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    width: 86vw;
    min-width: 86vw;
  }

  .space-card,
  .space-card:first-child {
    min-height: 460px;
  }

  .event-highlight,
  .event-highlight__content {
    min-height: 640px;
  }

  .event-highlight__content {
    padding: 1.5rem;
  }

  .event-card {
    min-height: 470px;
  }

  .event-card__content {
    padding: 1.5rem;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    height: 460px;
  }

  .testimonial-slider {
    min-height: 500px;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-card__quote {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }

  .visit-content {
    padding: 1.5rem;
  }

  .visit-map {
    min-height: 380px;
  }

  .page-hero__title {
    font-size: clamp(3.15rem, 16vw, 5rem);
  }

  .site-footer__main {
    grid-template-columns: 1fr;
  }

  .site-footer__brand,
  .site-footer__column:last-child {
    grid-column: auto;
  }

  .site-footer__legal {
    flex-direction: column;
    gap: var(--space-2);
  }

  .page-loader__mark {
    width: 82px;
    height: 82px;
  }
}

/* =========================================================
   6. VERY SMALL MOBILE
   ========================================================= */
@media (max-width: 374px) {
  .site-logo {
    max-width: 120px;
    font-size: 1rem;
  }

  .site-header__reservation-icon {
    display: none;
  }

  .hero__title {
    font-size: clamp(2.95rem, 17vw, 4.4rem);
  }

  .hero__description {
    font-size: 0.9rem;
  }

  .intro-copy {
    padding-left: 1rem;
  }

  .menu-featured__content,
  .event-highlight__content,
  .event-card__content,
  .visit-content,
  .testimonial-card {
    padding: 1.25rem;
  }

  .space-card,
  .space-card:first-child,
  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    width: 88vw;
    min-width: 88vw;
  }

  .floating-whatsapp {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .back-to-top {
    right: 0.75rem;
  }
}

/* =========================================================
   7. SHORT VIEWPORT / MOBILE LANDSCAPE
   ========================================================= */
@media (max-height: 650px) and (orientation: landscape) {
  .hero {
    min-height: 680px;
  }

  .hero__content {
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 5rem;
  }

  .hero__title {
    font-size: clamp(3.2rem, 9vw, 5.5rem);
  }

  .hero__description {
    margin-top: var(--space-4);
  }

  .hero__actions {
    margin-top: var(--space-5);
  }

  .hero__scroll {
    display: none;
  }

  .page-hero {
    min-height: 620px;
  }

  .closing-cta,
  .closing-cta__content {
    min-height: 650px;
  }
}

/* =========================================================
   8. TOUCH DEVICES
   ========================================================= */
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .menu-card:hover,
  .floating-whatsapp:hover {
    transform: none;
  }

  .menu-card:hover .menu-card__media img,
  .menu-featured:hover .menu-featured__media img,
  .space-card:hover .space-card__image img,
  .event-card:hover .event-card__media img,
  .gallery-item:hover img {
    transform: none;
  }

  .space-card__arrow {
    opacity: 1;
    transform: none;
  }

  .event-card__description {
    max-height: 140px;
    opacity: 1;
  }

  .gallery-item__icon {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* =========================================================
   9. HIGH RESOLUTION / RETINA SAFETY
   ========================================================= */
@media (min-resolution: 2dppx) {
  .paper-texture::before {
    opacity: 0.025;
  }
}

/* =========================================================
   10. PRINT
   ========================================================= */
@media print {
  .site-header,
  .page-loader,
  .floating-whatsapp,
  .back-to-top,
  .hero__scroll,
  .gallery-lightbox,
  .modal,
  .site-footer {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  main,
  .section,
  .page-hero,
  .hero {
    min-height: 0;
    padding: 1rem 0;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .hero__media,
  .page-hero__media,
  .closing-cta__media {
    display: none;
  }

  .hero__content,
  .page-hero__content,
  .closing-cta__content {
    position: static;
    min-height: 0;
    padding: 1rem 0;
    text-align: left;
  }

  h1,
  h2,
  h3,
  h4,
  p,
  .hero__title,
  .page-hero__title,
  .closing-cta__title {
    color: #000000 !important;
  }

  a {
    text-decoration: underline;
  }

  .menu-grid,
  .event-grid,
  .stats-grid,
  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-frame,
  .menu-card,
  .event-card,
  .space-card,
  .visit-layout {
    break-inside: avoid;
    box-shadow: none;
  }
}