/* Mobile-first overrides for Osteria Virgilio mockup */

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    font-size: 16px;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
  }

  .wrap {
    width: min(100% - 30px, 1200px);
  }

  .section {
    padding-block: 72px;
  }

  .concept-strip {
    min-height: 28px;
    height: auto;
    padding: 7px 12px;
    font-size: .56rem;
    line-height: 1.3;
    letter-spacing: .11em;
  }

  .site-header,
  .site-header.scrolled {
    top: 0;
    min-height: 68px;
    padding-left: max(15px, env(safe-area-inset-left));
    padding-right: max(15px, env(safe-area-inset-right));
  }

  .site-header:not(.scrolled) {
    top: 28px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .brand strong {
    font-size: .84rem;
  }

  .brand small {
    display: none;
  }

  .menu-toggle {
    display: block;
    width: 48px;
    height: 48px;
    padding: 10px;
    cursor: pointer;
    touch-action: manipulation;
  }

  .menu-toggle span {
    width: 27px;
    margin: 7px auto;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: calc(92px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
    background: #171913;
    color: var(--paper);
    transform: translateY(-102%);
    visibility: hidden;
    opacity: 0;
    transition: transform .38s var(--ease), opacity .25s ease, visibility .38s;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }

  .main-nav > a:not(.nav-button) {
    display: flex;
    align-items: center;
    min-height: 58px;
    border-bottom: 1px solid rgba(255,255,255,.14);
    font-family: "Libre Caslon Display", serif;
    font-size: clamp(1.7rem, 8vw, 2.35rem);
    opacity: 1;
  }

  .main-nav > a:not(.nav-button)::after {
    display: none;
  }

  .main-nav .nav-button {
    min-height: 52px;
    margin-top: 28px;
    justify-content: center;
    border-color: rgba(255,255,255,.5);
    font-size: .92rem;
  }

  .hero {
    min-height: 680px;
    height: 100svh;
    max-height: 900px;
  }

  .hero-image {
    inset: -2%;
    background-position: center center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg,rgba(11,12,9,.52) 0%,rgba(11,12,9,.22) 38%,rgba(11,12,9,.9) 100%),
      linear-gradient(90deg,rgba(11,12,9,.38) 0%,transparent 90%);
  }

  .hero-content {
    padding-bottom: max(42px, calc(28px + env(safe-area-inset-bottom)));
  }

  .kicker,
  .section-label {
    margin-bottom: 14px;
    font-size: .62rem;
    letter-spacing: .14em;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.9rem, 19vw, 6rem);
    line-height: .91;
    letter-spacing: -.05em;
  }

  .hero-copy {
    max-width: 34rem;
    margin-top: 22px;
    font-size: .98rem;
    line-height: 1.55;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 28px;
  }

  .button {
    min-height: 52px;
    width: 100%;
    padding-inline: 20px;
    font-size: .88rem;
    touch-action: manipulation;
  }

  .arrow-link {
    min-height: 44px;
    width: fit-content;
    align-items: center;
    font-size: .86rem;
    touch-action: manipulation;
  }

  .hero-index {
    display: none;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .proof-item:first-child {
    min-height: 100px;
    padding: 20px 4px;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-score {
    font-size: 2.8rem;
  }

  .about,
  .statement-grid,
  .menu-head,
  .menu-board,
  .gallery-head,
  .wine,
  .reviews-head,
  .visit-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .about {
    gap: 30px;
  }

  .about-main h2,
  .menu-head h2,
  .wine h2,
  .reviews-head h2,
  .visit h2,
  .gallery-head h2 {
    font-size: clamp(3rem, 15vw, 4.7rem);
    line-height: .96;
  }

  .lead {
    margin: 24px 0 18px;
    font-size: 1.1rem;
  }

  .fact-list {
    margin-top: 8px;
  }

  .fact-list div {
    padding: 16px 0;
  }

  .statement-section {
    padding-top: 72px;
  }

  .statement-grid {
    gap: 24px;
    padding-bottom: 64px;
  }

  .statement {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .marquee {
    padding: 12px 0;
  }

  .menu-head {
    gap: 28px;
    align-items: start;
  }

  .menu-intro {
    padding-bottom: 0;
  }

  .menu-board {
    gap: 0;
    margin-top: 54px;
  }

  .menu-board::before {
    display: none;
  }

  .menu-column + .menu-column {
    margin-top: 54px;
  }

  .menu-group + .menu-group {
    margin-top: 54px;
  }

  .menu-group-head {
    align-items: baseline;
    gap: 16px;
    padding-bottom: 13px;
  }

  .menu-group-head h3 {
    font-size: 2.1rem;
  }

  .menu-item {
    gap: 14px;
    padding: 20px 0;
  }

  .menu-item h4 {
    font-size: 1.35rem;
    line-height: 1.1;
  }

  .menu-item p {
    font-size: .9rem;
  }

  .price {
    font-size: 1rem;
    white-space: nowrap;
  }

  .pairing {
    line-height: 1.45;
  }

  .signature-item {
    margin-inline: -10px;
    padding-inline: 10px;
  }

  .pairing-panel {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 58px;
    padding: 30px 24px;
  }

  .pairing-panel-title h3 {
    font-size: 2.25rem;
  }

  .pairing-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pairing-price {
    text-align: left;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.16);
  }

  .gallery-section {
    padding: 76px 0 2px;
  }

  .gallery-head {
    gap: 24px;
    margin-bottom: 42px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 0;
  }

  .gallery-card,
  .gallery-card-wide {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .gallery-card img {
    position: absolute;
    inset: 0;
  }

  .gallery-card figcaption {
    left: 16px;
    right: 16px;
    bottom: 15px;
    font-size: .72rem;
  }

  .gallery-credit {
    padding-block: 22px 28px;
  }

  .gallery-credit p {
    margin: 0;
    font-size: .76rem;
    line-height: 1.5;
  }

  .wine {
    gap: 38px;
  }

  .wine-photo {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .wine-copy {
    padding-right: 0;
  }

  .inline-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .reviews-head {
    gap: 30px;
  }

  .rating-summary {
    justify-self: start;
  }

  .review-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .review-card {
    min-height: 0;
    padding: 25px 22px;
  }

  .review-card p {
    font-size: 1.15rem;
  }

  .review-card footer {
    gap: 12px;
    flex-wrap: wrap;
  }

  .visit-grid {
    gap: 46px;
  }

  .visit-heading .button {
    margin-top: 22px;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 17px 0;
  }

  .info-row p,
  .info-row a {
    overflow-wrap: anywhere;
  }

  .visit-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-top {
    gap: 28px;
  }

  .footer-top h2 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  a,
  button {
    -webkit-tap-highlight-color: rgba(255,255,255,.08);
  }
}

@media (max-width: 420px) {
  .wrap {
    width: min(100% - 24px, 1200px);
  }

  .section {
    padding-block: 62px;
  }

  h1 {
    font-size: clamp(3.55rem, 18vw, 4.7rem);
  }

  .about-main h2,
  .menu-head h2,
  .wine h2,
  .reviews-head h2,
  .visit h2,
  .gallery-head h2 {
    font-size: clamp(2.8rem, 14vw, 3.8rem);
  }

  .hero {
    min-height: 640px;
  }

  .proof-item {
    grid-template-columns: 72px 1fr auto;
    gap: 10px;
  }

  .proof-score {
    font-size: 2.45rem;
  }

  .menu-group-head {
    display: block;
  }

  .menu-group-head p {
    margin-bottom: 4px;
  }

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

  .pairing-panel {
    padding: 26px 18px;
  }

  .gallery-card,
  .gallery-card-wide,
  .wine-photo {
    aspect-ratio: 1 / 1.08;
  }

  .review-card {
    padding: 22px 18px;
  }

  .info-row p {
    font-size: .94rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .button:hover,
  .gallery-card:hover img,
  .arrow-link:hover span {
    transform: none;
  }
}
