/* Uncle Lou. Values mirror the live Divi build (unclelounyc.com, captured Sept 2026). */
/* Montserrat, self-hosted (SIL Open Font License, assets/fonts/OFL-LICENSE.txt).
   One static file per weight so phones (iOS/Safari) can't fall back to the thin default of a variable font. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
:root {
  --sage: #cddfbf;       /* header, dropdown, page sections */
  --orange: #f89a54;     /* accent: active nav, underline, dropdown bar */
  --link: #ff6600;       /* inline phone and email links */
  --red: #ff0000;        /* "Who is Uncle Lou?" */
  --ink: #000000;
  --footer: #222222;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: #666; font: 500 14px/1.7em "Montserrat", Helvetica, Arial, Lucida, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: var(--orange); text-decoration: none; }
p { margin: 0; padding-bottom: 1em; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: #000; color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 0; }
.container { width: 80%; max-width: 1080px; margin: 0 auto; }

/* Header: fixed, shrinks on scroll like Divi's et_fixed_nav */
#main-header { position: fixed; top: 0; left: 0; right: 0; z-index: 99; background: var(--sage); box-shadow: 0 0 7px rgba(0,0,0,.1); transition: all .4s ease-in-out; }
#main-header .container { display: flex; align-items: center; justify-content: space-between; height: 103px; transition: height .4s ease-in-out; }
#logo { max-height: 62px; width: auto; transition: max-height .4s ease-in-out; }
#main-header.et-fixed-header .container { height: 40px; }
#main-header.et-fixed-header #logo { max-height: 30px; }
#page-container { padding-top: 103px; }

#top-menu { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; align-self: stretch; }
#top-menu > li { position: relative; display: flex; align-items: center; }
#top-menu a { position: relative; display: block; color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: -1px; padding: 30px 0; }
#main-header.et-fixed-header #top-menu > li > a { padding: 10px 0; }
#top-menu a::before { content: ""; position: absolute; left: 0; right: 100%; bottom: 20%; height: 3px; background: var(--orange); transition: right .3s ease-out; }
#top-menu a:hover::before, #top-menu a[aria-current="page"]::before { right: 0; }
#top-menu a[aria-current="page"] { color: var(--orange); }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sub-menu { position: absolute; top: 100%; right: 0; width: 240px; list-style: none; margin: 0; padding: 12px 0 2px; background: var(--sage); border-top: 3px solid var(--orange); box-shadow: 0 2px 5px rgba(0,0,0,.1); opacity: 0; visibility: hidden; transition: opacity .2s; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; }
#top-menu .sub-menu a { display: inline-block; padding: 6px 20px !important; }
/* Underline sits right under the word, not across the whole dropdown */
#top-menu .sub-menu a::before { left: 20px; right: calc(100% - 20px); bottom: 2px; }
#top-menu .sub-menu a:hover::before { right: 20px; }
.nav-toggle { display: none; }

/* Page sections */
.section { background: var(--sage); }
.row { width: 80%; margin: 0 auto; padding: 2% 0; }
.row.full { width: 100%; }
.text { color: var(--ink); font-size: 16px; font-weight: 700; }
.text a { color: var(--link); }
.red { color: var(--red); }

/* Home */
.hero-img { width: 80%; margin: 0 auto; text-align: center; }
.hero-img img { width: 100%; }
.flipbox { position: relative; height: 800px; margin-top: -40px; cursor: pointer; overflow: hidden; }
.flipbox .face { position: absolute; inset: 0; background: center / contain no-repeat; transition: transform .6s ease, opacity .6s ease; }
.flipbox .front { background-image: url("../assets/photos/uncle-lou-046.jpg"); }
.flipbox .back { background-image: url("../assets/photos/uncle-lou-050.jpg"); opacity: 0; transform: scale(1.2); }
.flipbox:hover .front, .flipbox.flipped .front { opacity: 0; transform: scale(.8); }
.flipbox:hover .back, .flipbox.flipped .back { opacity: 1; transform: scale(1); }
.res-title { text-align: center; color: var(--ink); font-size: 32px; font-weight: 600; line-height: 1.7em; }
.divider { max-width: 80px; margin: 10px auto 30px; border-top: 2px solid #ccc; }
.two-col { display: flex; gap: 5.5%; }
.two-col > div { flex: 0 0 47.25%; }
.two-col .text a { color: var(--ink); }
.contact-block { margin-bottom: 30px; }
.map { width: 100%; height: 350px; border: 0; display: block; box-shadow: 6px 6px 18px 0 rgba(0,0,0,.3); }
.credit { font-size: 12px; margin: 0 0 18px; }
.credit a { color: var(--ink); text-decoration: underline; }

/* Footer */
#main-footer { background: var(--footer); }
#footer-bottom { background: rgba(0,0,0,.32); padding: 15px 0 5px; }
#footer-info { color: #666; padding-bottom: 10px; }
.to-top { position: fixed; right: 0; bottom: 125px; z-index: 99; width: 40px; height: 40px; border: 0; border-radius: 5px 0 0 5px; background: rgba(0,0,0,.4); color: #fff; font-size: 20px; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .3s; }
.to-top.show { opacity: 1; visibility: visible; }

/* Printed menu (mirrors the live /menu page) */
.sheets { width: 80%; max-width: 1080px; margin: 0 auto; padding: 0 0 48px; text-align: center; }
.sheets a.sheet { margin-bottom: 30px; cursor: zoom-in; }
.sheets .hint { color: var(--ink); font-weight: 600; font-size: 14px; padding: 20px 0; }
.sheets .hint a { display: inline; margin: 0; color: var(--ink); text-decoration: underline; }

/* Searchable menu */
.menu-page { width: 80%; max-width: 1080px; margin: 0 auto; padding: 40px 0 60px; color: var(--ink); }
.menu-page h1 { font-size: 32px; font-weight: 600; line-height: 1.7em; text-align: center; }
.menu-page .divider { margin-bottom: 20px; }
.menu-tools label { display: block; font-weight: 700; font-size: 16px; margin-bottom: .35rem; }
#q { width: 100%; font: 500 16px "Montserrat", sans-serif; padding: .75rem 1rem; background: #fff; border: 2px solid #000; border-radius: 0; }
.sections, .cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.sections button { font: 700 16px "Montserrat", sans-serif; letter-spacing: -1px; padding: .4rem .2rem; margin-right: 1rem; border: 0; border-bottom: 3px solid transparent; background: none; color: #000; cursor: pointer; }
.sections button[aria-pressed="true"] { border-bottom-color: var(--orange); }
.cats button { font: 600 13px "Montserrat", sans-serif; padding: .35rem .85rem; border: 1px solid #000; border-radius: 999px; background: transparent; color: #000; cursor: pointer; }
.cats button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); }
.spicy-toggle { display: inline-flex !important; align-items: center; gap: .4rem; margin-top: .9rem; font-weight: 600 !important; font-size: 14px !important; cursor: pointer; }
.spicy-toggle input { width: 1.1rem; height: 1.1rem; accent-color: #000; }
.note { background: #fff6d6; padding: .75rem 1rem; }
.count { font-weight: 600; margin: 1.25rem 0 .5rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; border-bottom: 3px solid var(--orange); padding: .5rem; font-weight: 700; }
td { padding: .6rem .5rem; border-bottom: 1px solid rgba(0,0,0,.15); vertical-align: top; font-weight: 500; }
td strong { font-weight: 700; }
tbody tr:hover { background: rgba(255,255,255,.35); }
.num { text-align: right; white-space: nowrap; font-weight: 700; }
td.id, td.cat { font-size: 13px; }
td.id { white-space: nowrap; }
.chili { margin-left: .25rem; }
mark { background: #ffe08a; color: inherit; padding: 0; }
.empty { text-align: center; padding: 2rem 0; }
.allergy { font-weight: 700; text-align: center; margin-top: 2rem; }

@media (max-width: 980px) {
  #main-header .container { height: 80px; }
  #page-container { padding-top: 80px; }
  .nav-toggle { display: block; background: none; border: 0; font: 700 14px "Montserrat", sans-serif; color: #000; cursor: pointer; padding: 10px 0; }
  .nav-toggle span { font-size: 26px; vertical-align: middle; margin-left: .4rem; }
  #top-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 5%; background: var(--sage); border-top: 3px solid var(--orange); box-shadow: 0 2px 5px rgba(0,0,0,.1); }
  #top-menu.open { display: flex; }
  #top-menu a { padding: 10px 5% !important; }
  #top-menu > li { display: block; }
  .sub-menu { position: static; width: auto; opacity: 1; visibility: visible; border: 0; box-shadow: none; padding: 0 0 0 20px; }
  .has-sub > a::after { display: none; }
  .hero-img { width: 90%; }
  .two-col { flex-direction: column; }
  .row { padding: 30px 0; }
}
@media (max-width: 767px) {
  .hero-img { width: 80%; margin-top: -20px; }
  .flipbox { height: 400px; }
    .menu-page, .sheets { width: 92%; }
  thead { display: none; }
  tr { display: grid; grid-template-columns: 1fr auto; padding: .5rem 0; border-bottom: 1px solid rgba(0,0,0,.15); }
  td { border: 0; padding: .15rem .5rem; }
  td.id, td.zh, td.cat { grid-column: 1; }
  td.num { grid-row: 1; grid-column: 2; }
  .sections, .cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .35rem; }
  .sections button, .cats button { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

h1.red, h2.red { font-size: 16px; font-weight: 700; line-height: 1.7em; margin: 0; padding-bottom: 1em; }
.contact-links a { display: inline-block; padding: 6px 0; }
.page { width: 80%; max-width: 1080px; margin: 0 auto; padding: 40px 0 60px; }
.page .res-title { margin-bottom: 0; }
#footer-info a { color: #999; text-decoration: underline; margin-left: 8px; }

@media (max-width: 767px) { .page { width: 92%; } }

/* Visible to screen readers only, so a page can have a main heading without changing the design */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Printed menu: invisible text layer over each sheet so Cmd+F finds and highlights dishes on the image */
.sheet { position: relative; display: block; container-type: inline-size; }
.sheet img { display: block; width: 100%; height: auto; }
.find-layer { position: absolute; inset: 0; pointer-events: none; }
.find-layer span { position: absolute; display: block; white-space: nowrap; overflow: visible; color: transparent; line-height: 1; transform-origin: 0 0; font-family: Arial, sans-serif; }
.find-layer span::selection { background: rgba(255, 224, 138, .6); color: transparent; }

/* Find bar on the printed menu page */
.findbar { position: fixed; top: 112px; right: 24px; z-index: 98; display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #fff; border: 2px solid #000; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
body:has(#main-header.et-fixed-header) .findbar { top: 52px; }
.findbar[hidden] { display: none; }
.findbar label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.findbar input { width: 220px; font: 500 15px "Montserrat", sans-serif; padding: 6px 8px; border: 1px solid #999; }
.findbar span { min-width: 72px; font-size: 13px; font-weight: 600; color: #000; }
.findbar button { width: 32px; height: 32px; border: 0; background: none; font-size: 18px; cursor: pointer; color: #000; }
.findbar button:hover { background: var(--sage); }
.sheets .hint button.find-open { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.hl-layer { position: absolute; inset: 0; pointer-events: none; }
.hl-layer span { position: absolute; background: rgba(255, 214, 0, .4); border-radius: 2px; mix-blend-mode: multiply; }
.hl-layer span.current { background: rgba(255, 150, 0, .5); outline: 2px solid #e07000; }
/* Chrome's own Find: keep the hidden text invisible inside its highlight (ignored by browsers without support) */
.find-layer span::search-text { color: transparent; background: rgba(255, 214, 0, .4); }
.find-layer span::search-text:current { color: transparent; background: rgba(255, 150, 0, .5); }
@media (max-width: 767px) { .findbar { left: 8px; right: 8px; } .findbar input { flex: 1; width: auto; } }
@media (max-width: 767px) {
  .findbar { gap: 2px; padding: 6px; }
  .findbar input { min-width: 0; font-size: 16px; }
  .findbar span { min-width: 0; font-size: 12px; white-space: nowrap; padding: 0 4px; }
  .findbar button { width: 30px; flex: 0 0 30px; }
}

/* Short pages (accessibility, reservations, contact, 404): stretch the sage section so the footer sits at the bottom of the window with no white gap */
body { min-height: 100vh; display: flex; flex-direction: column; }
#page-container { flex: 1 0 auto; display: flex; flex-direction: column; background: var(--sage); }
#page-container > main { flex: 1 0 auto; }
#main-footer { flex-shrink: 0; }

/* Text contrast, WCAG 2.2 SC 1.4.3 (4.5:1 minimum on the sage background).
   The bright orange stays for underlines, bars, and chips; only text uses the deeper shades. */
:root { --orange-text: #a33b00; --link: #a33b00; --red: #b00000; }
a { color: var(--orange-text); }
#top-menu a[aria-current="page"] { color: var(--orange-text); }
#footer-info { color: #a6a6a6; }
#footer-info a { color: #d0d0d0; }
