/* Mariscos Uruapan — shared CSS3 styles. No framework or remote stylesheet. */

/* Local fonts */
@font-face {
  font-family: "Source Sans Pro";
  src: url("../assets/fonts/source-sans-pro-light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../assets/fonts/source-sans-pro-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../assets/fonts/source-sans-pro-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Josefin Sans";
  src: url("../assets/fonts/josefin-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: "Courgette";
  src: url("../assets/fonts/courgette.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Base and shared controls */
:root {
  --blue: #176599;
  --orange: #c05a00;
  --menu-red: #dd3333;
  --text: #262626;
  --container: 1170px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body { margin: 0; background: #fff; color: var(--text); font: 400 16px/1.5625 "Source Sans Pro", Arial, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #ef7612; }
button, select { font: inherit; }
button { cursor: pointer; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #ef7612; outline-offset: 4px; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
figure, p { margin: 0; }
.container { width: min(var(--container), calc(100% - 42px)); margin-inline: auto; }
h1, h2, h3 { margin-top: 0; }
h1, h2 { font-family: Arial, sans-serif; font-size: 46px; line-height: 1.35; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-button { display: grid; place-items: center; border: 0; background: transparent; color: inherit; }
.button { display: inline-block; padding: 10px 24px; font: 400 14px/20px "Montserrat", Arial, sans-serif; text-transform: uppercase; border-radius: 3px; }
.button-outline { border: 3px solid #012646; color: #012646; }
.button-outline:hover { color: #fff; border-color: var(--orange); background: var(--orange); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 12px 18px; color: #fff; background: var(--blue); z-index: 100; }
.skip-link:focus { top: 12px; }

/* Original top bar and centered-logo navigation */
.topbar { background: #f4f6f7; color: #6a6a6a; font-size: 14px; }
.topbar-inner { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar-address { display: inline-flex; align-items: center; gap: 10px; }
.topbar-address .icon { width: 18px; height: 18px; }
.social-links { display: flex; align-items: center; justify-content: center; gap: 16px; }
.social-links a { display: grid; place-items: center; color: #5d5d5d; }
.social-links .icon { width: 18px; height: 18px; }
.social-links a:hover { color: #ef7612; }
.menu-shortcut { padding: 5px 17px; border-radius: 3px; background: #fe8a00; color: #fff; line-height: 20px; }
.menu-shortcut:hover { color: #fff; background: #565656; }
.site-header { position: sticky; top: 0; background: #fff; z-index: 30; }
.navigation { position: relative; min-height: 160px; display: flex; align-items: center; }
.brand { position: absolute; left: 50%; transform: translateX(-50%); z-index: 2; }
.brand img { width: 160px; height: auto; transition: width .2s; }
.navigation-links { width: 100%; min-height: 160px; display: grid; grid-template-columns: 1fr 260px 1fr; align-items: center; transition: min-height .2s; }
.navigation-left, .navigation-right { display: flex; align-items: center; gap: 6px; }
.navigation-left { justify-content: flex-end; grid-column: 1; }
.navigation-right { justify-content: flex-start; grid-column: 3; }
.navigation-links a { display: block; padding: 0 15px; border: 2px solid transparent; color: var(--blue); font: 700 16px/25px "Josefin Sans", Arial, sans-serif; text-transform: uppercase; white-space: nowrap; }
.navigation-links a:hover { color: #ef7612; }
.navigation-links a[aria-current="page"] { color: #0a4064; border-color: #0a4064; }
.site-header.is-compact { box-shadow: 0 1px 4px #0001; }
.site-header.is-compact .navigation, .site-header.is-compact .navigation-links { min-height: 132px; }
.site-header.is-compact .brand img { width: 132px; }
.nav-toggle { display: none; }
.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: #0008; z-index: 25; opacity: 0; visibility: hidden; transition: opacity .2s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { color: #fff; background: var(--orange); }
.site-footer { padding: 38px 21px; text-align: center; background: var(--blue); }
.site-footer p { color: #2c2e3d; }
.site-footer a { color: #fff; }

/* Home page */
.home-heading { padding: 34px 21px; background: var(--orange); text-align: center; }
.home-heading h1, .script-title { margin: 0; font: 400 32px/33px "Courgette", cursive; letter-spacing: 2.5px; }
.home-heading h1 { color: #fff; font-weight: 600; }
.slideshow { position: relative; margin-bottom: 60px; background: #111; overflow: hidden; }
.slides { position: relative; aspect-ratio: 3 / 2; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 55px; display: grid; place-items: center; border: 0; background: #0005; color: #fff; opacity: 0; transition: opacity .2s; }
.slide-previous { left: 10px; }
.slide-next { right: 10px; }
.slideshow:hover .slide-arrow, .slideshow:focus-within .slide-arrow { opacity: 1; }
.slide-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.slide-dots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: #ffffff80; box-shadow: 0 1px 3px #0005; }
.slide-dots button[aria-current="true"] { background: #fff; }
.slide-pause { position: absolute; right: 12px; bottom: 9px; padding: 4px 8px; color: #fff; background: #0007; border: 0; border-radius: 2px; font-size: 12px; }
.welcome { padding: 0 50px 120px; text-align: center; background: url("../assets/images/welcome-background.png") center / cover no-repeat; }
.welcome h2 { margin-bottom: 18px; }
.welcome .script-title { margin-bottom: 25px; }
.welcome-copy { margin: 0 auto 28px; font-size: 24px; font-weight: 300; line-height: 37px; }
.section-band { padding: 34px 20px; background: #e7861c; color: #fff; text-align: center; }
.chef-gallery { display: grid; grid-template-columns: repeat(4, 1fr); }
.photo-link { display: block; overflow: hidden; position: relative; }
.photo-link img { width: 100%; transition: transform .3s, filter .3s; }
.photo-link:hover img { transform: scale(1.04); filter: brightness(.88); }
.seafood-background { min-height: 550px; background: url("../assets/images/seafood-background.png") center / cover fixed; }
.follow-section { padding: 20px 21px 45px; text-align: center; }
.footer-logo { width: 300px; margin: 0 auto 25px; }
.follow-subtitle { margin-bottom: 18px; color: #2c2e3d; font: 700 19px/30px "Montserrat", Arial, sans-serif; text-transform: uppercase; }
.follow-section h2 { margin-bottom: 24px; color: #2c2e3d; }
.social-links.large .icon { width: 36px; height: 36px; }
.social-links.large a { color: #00bcd4; }
.social-links.large a:hover { color: #ef7612; }

/* Menu photos, filters, and dishes */
.menu-photos { padding-top: 4px; }
.menu-photo-grid { max-width: 1254px; margin-inline: auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.menu-photo-grid .photo-link { aspect-ratio: 25 / 14; }
.menu-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.load-more { display: block; margin: 6px auto 4px; padding: 3px 6px; border: 1px solid #e3e3e3; background: #fff; color: #666; font-size: 12px; font-weight: 700; }
.load-more:hover { background: #f5f5f5; }
.menu-intro { padding-top: 30px; text-align: center; }
.pdf-menu-link { display: inline-block; margin-bottom: 24px; }
.menu-intro h1 { margin-bottom: 16px; }
.menu-intro > p { margin-bottom: 28px; }
.menu-section { padding-bottom: 45px; }
.category-list, .subcategory-list { list-style: none; margin: 0; padding: 0; }
.category-list { display: flex; flex-wrap: wrap; margin: 15px 0 30px; border-bottom: 1px solid #ddd; }
.category-item { position: relative; }
.category-list a { display: block; padding: 10px 20px; margin: 0 -1px -1px 0; border: 1px solid #ddd; background: #fff; color: #000; font-size: 18px; line-height: 1.4; font-weight: 700; text-transform: uppercase; }
.category-list a[aria-current="true"] { background: var(--menu-red); border-color: var(--menu-red); color: #fff; }
.category-item > a[aria-current="true"]::after { content: ""; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); border-top: 10px solid var(--menu-red); border-inline: 10px solid transparent; z-index: 2; }
.category-caret { margin-left: 7px; font-size: 13px; }
.subcategory-list { display: none; position: absolute; left: 0; top: 100%; min-width: 200px; border: 1px solid #ddd; background: #fff; z-index: 10; }
.subcategory-list a { border: 0; padding: 7px 20px; margin: 0; white-space: nowrap; }
.subcategory-list a:hover { color: #fff; background: var(--menu-red); }
.category-item:hover > .subcategory-list, .category-item:focus-within > .subcategory-list { display: block; }
.category-select, .category-select-label { display: none; }
.menu-items { scroll-margin-top: 155px; }
.menu-item { margin-bottom: 20px; }
.dish-heading { display: flex; align-items: baseline; gap: 20px; border-bottom: 1px dashed #bbb; }
.dish-heading h3 { margin: 0 0 10px; flex: 1; font: 400 22px/1.1 "Source Sans Pro", Arial, sans-serif; }
.dish-details { padding: 0; border: 0; background: transparent; color: #000; text-align: left; }
.dish-details:hover { color: var(--orange); }
.dish-price { font-size: 22px; font-weight: 700; color: var(--menu-red); }
.dish-description { padding: 3px 40px 5px 0; color: #b22929; font-size: 15px; }

/* Gallery and location */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px; padding-top: 4px; padding-bottom: 42px; }
.gallery-column { display: flex; flex-direction: column; gap: 42px; min-width: 0; }
.location-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px; padding-bottom: 100px; }
.location-card { background: #f8f8f8; padding: 60px 20px 80px; text-align: center; }
.location-card > .icon { width: 64px; height: 64px; color: #12c6dd; margin-bottom: 35px; stroke-width: 1; }
.location-card p { color: #2c2e3d; font: 700 16px/25px "Montserrat", Arial, sans-serif; text-transform: uppercase; }
.location-card p + p { margin-top: 25px; }
.location-card a { color: inherit; }
.location-card a:hover { color: var(--orange); }
.location-map iframe { display: block; border: 0; width: 100%; height: 480px; }

/* Native accessible dialogs */
body.dialog-open { overflow: hidden; }
dialog { padding: 0; border: 0; }
dialog::backdrop { background: #000d; }
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; background: transparent; color: #fff; }
.lightbox-content { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 55px 65px; }
.lightbox-image { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox-close, .lightbox-previous, .lightbox-next { position: absolute; width: 45px; height: 45px; background: #0006; }
.lightbox-close { top: 10px; right: 12px; }
.lightbox-previous { left: 10px; top: calc(50% - 22px); }
.lightbox-next { right: 10px; top: calc(50% - 22px); }
.lightbox-count { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 14px; }
.dish-dialog { width: min(650px, calc(100% - 32px)); max-height: 85dvh; margin: auto; padding: 40px; background: #fff; color: #262626; }
.dish-dialog-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; }
.dish-dialog h2 { padding-right: 15px; margin-bottom: 20px; font-size: 26px; }

/* Tablet and mobile */
@media (max-width: 1100px) {
  .navigation-links { grid-template-columns: 1fr 190px 1fr; }
  .navigation-links a { padding-inline: 10px; }
  .navigation-left, .navigation-right { gap: 0; }
  .location-cards, .gallery-grid, .gallery-column { gap: 24px; }
}
@media (max-width: 979px) {
  .navigation, .site-header.is-compact .navigation { min-height: 132px; }
  .brand { left: 0; transform: none; }
  .brand img { width: 132px; }
  .nav-toggle { display: flex; flex-direction: column; gap: 6px; margin-left: auto; padding: 12px; border: 0; color: #6a6a6a; background: transparent; }
  .nav-toggle span { display: block; width: 27px; height: 2px; background: currentColor; }
  .navigation-links, .site-header.is-compact .navigation-links { display: none; min-height: 0; position: absolute; top: 100%; left: -21px; right: -21px; width: auto; padding: 24px; background: #fff; box-shadow: 0 8px 12px #0001; max-height: calc(100dvh - 132px); overflow-y: auto; }
  .navigation-links.is-open { display: block; }
  .navigation-left, .navigation-right { display: block; }
  .navigation-links a { padding: 12px; text-align: center; font-size: 24px; line-height: 30px; }
  .location-cards { grid-template-columns: 1fr; padding-bottom: 45px; }
  .location-card { padding: 45px 24px; }
  .location-card > .icon { margin-bottom: 20px; }
  .seafood-background { background-attachment: scroll; }
}
@media (max-width: 800px) {
  h1, h2 { font-size: 34px; line-height: 42px; }
  .menu-photo-grid { grid-template-columns: repeat(3, 1fr); }
  .category-navigation { display: none; }
  .category-select-label { display: block; margin-bottom: 5px; }
  .category-select { display: block; width: 100%; padding: 10px 12px; margin-bottom: 25px; border: 1px solid #ddd; border-radius: 0; color: #000; background: #fff; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chef-gallery { grid-template-columns: repeat(2, 1fr); }
  .welcome { padding-inline: 25px; padding-bottom: 80px; }
  .welcome-copy { font-size: 21px; line-height: 32px; }
  .seafood-background { min-height: 450px; }
  .slide-arrow { opacity: 1; }
}
@media (max-width: 767px) {
  .topbar { display: none; }
  html { scroll-padding-top: 132px; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 30px); }
  h1, h2 { font-size: 26px; line-height: 32px; }
  .home-heading { padding: 26px 15px; }
  .home-heading h1, .script-title { font-size: 27px; line-height: 30px; }
  .navigation-links { left: -15px; right: -15px; }
  .slideshow { margin-bottom: 40px; }
  .welcome-copy { font-size: 19px; line-height: 29px; }
  .menu-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid, .gallery-column { gap: 12px; }
  .footer-logo { width: 240px; }
  .lightbox-content { padding: 55px 12px; }
  .lightbox-previous, .lightbox-next { width: 36px; height: 45px; }
  .dish-dialog { padding: 32px 24px; }
  .back-to-top { right: 10px; bottom: 10px; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
