/* ==========================================================
   Hotel Udupi Fish Corner
   Palette taken from the logo (ocean blue, sand, amber, coral)
   and the restaurant itself (teal walls, yellow sign).
   ========================================================== */

:root {
  --navy: #0f2c4a;
  --navy-deep: #0a1f35;
  --sea: #17507d;
  --teal: #1b6863;
  --amber: #f4b63f;
  --amber-soft: #fbe3a8;
  --terracotta: #b04a26;
  --terracotta-dark: #933c1d;
  --cream: #fbf5e9;
  --sand: #f3e6cc;
  --sand-line: #e4d2ae;
  --paper: #fffdf8;
  --ink: #1c2530;
  --muted: #545c66;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 44, 74, .06), 0 8px 24px rgba(15, 44, 74, .08);
  --header-h: 68px;
  --gutter: 16px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* room for the mobile action bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
address { font-style: normal; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .75rem;
}
.eyebrow-light { color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { min-height: 42px; padding: .55em 1.05em; font-size: .9375rem; }
.btn-lg { min-height: 54px; padding: .8em 1.6em; font-size: 1.0625rem; }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--sea); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-amber { background: var(--amber); color: var(--navy-deep); }
.btn-amber:hover { background: #ffc95e; color: var(--navy-deep); }

.link-btn {
  display: inline-flex; align-items: center; gap: .4em; margin-top: .5rem;
  background: none; border: 0; padding: 6px 0; color: var(--sea); font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--terracotta); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--sand-line); box-shadow: 0 4px 18px rgba(15, 44, 74, .07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-logo { width: 54px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-pre, .brand-sub { font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--navy); margin: 2px 0; }
.brand:hover .brand-name { color: var(--terracotta); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--sand-line); color: var(--navy); cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close, .nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: 1px solid var(--sand-line);
  box-shadow: 0 18px 30px rgba(15, 44, 74, .12);
  padding: 8px var(--gutter) 20px;
}
.nav-open .site-nav { display: block; animation: drop .2s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-links a {
  display: block; padding: 14px 4px; border-bottom: 1px solid var(--sand-line);
  font-weight: 600; font-size: 1.125rem; color: var(--navy); text-decoration: none;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

@media (min-width: 960px) {
  :root { --header-h: 84px; }
  .brand-logo { width: 66px; }
  .brand-name { font-size: 1.4rem; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; align-items: center; gap: 28px;
    position: static; padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav-links { display: flex; gap: 4px; }
  .nav-links a { border: 0; padding: 8px 12px; font-size: .9875rem; border-radius: 8px; }
  .nav-links a:hover { background: var(--sand); color: var(--navy); }
  .nav-actions { display: flex; margin: 0; gap: 8px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 28px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -120px;
  border-radius: 50%; background: radial-gradient(circle, rgba(244, 182, 63, .28), rgba(244, 182, 63, 0) 65%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 7.4vw, 3.9rem); margin-bottom: .45em; }
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero-lead { font-size: 1.125rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: grid; gap: 12px; margin: 24px 0 22px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-facts li {
  font-size: .875rem; font-weight: 600; color: var(--navy);
  background: var(--paper); border: 1px solid var(--sand-line); border-radius: 999px; padding: 6px 12px;
}

.hero-media { margin: 0; }
.hero-media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid var(--paper);
}
.hero-media figcaption { margin-top: 14px; font-size: .9375rem; color: var(--muted); text-align: center; }
.kn { display: block; font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: 2px; }

.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 40px; fill: var(--sand); }

@media (min-width: 560px) {
  .hero-actions { display: flex; flex-wrap: wrap; }
  .hero-media { max-width: 520px; margin: 0 auto; }
}
@media (min-width: 960px) {
  .hero { padding: 48px 0 110px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 64px; }
  .hero-media { max-width: none; }
  .wave { height: 60px; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-sand { background: var(--sand); }
.section-deep { background: var(--navy); color: #e8eef4; }
.section-deep h2, .section-deep h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section h2 { font-size: clamp(1.85rem, 5vw, 2.75rem); }
.section-intro { color: var(--muted); font-size: 1.0625rem; }
@media (min-width: 960px) { .section { padding: 96px 0; } }

/* ---------- Signature dishes ---------- */
.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dish-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.dish-media { position: relative; }
.dish-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.dish-tag {
  position: absolute; left: 8px; top: 8px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255, 253, 248, .92); color: var(--navy); padding: 3px 8px; border-radius: 999px;
}
.dish-body { padding: 14px 14px 16px; }
.dish-name { font-size: 1.15rem; margin-bottom: .3em; }
.dish-desc { font-size: .9375rem; color: var(--muted); margin: 0; line-height: 1.45; }
.dish-fallback { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.fine-print { font-size: .8125rem; color: var(--muted); margin: 14px 0 0; }

@media (min-width: 760px) {
  .dish-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .dish-body { padding: 18px 18px 20px; }
  .dish-name { font-size: 1.3rem; }
}

/* ---------- Menu board ---------- */
.menu-board {
  margin-top: 48px; background: var(--paper); border-radius: var(--radius);
  padding: 26px 20px; box-shadow: var(--shadow);
  border-top: 6px solid var(--teal);
}
.menu-board-head { max-width: 640px; margin-bottom: 18px; }
.menu-board-head h3 { font-size: 1.6rem; }
.menu-board-head p { color: var(--muted); margin: 0; }
.dev-note {
  font-size: .875rem; background: #fff3cd; border: 1px dashed #c99a1e; color: #6b4e00;
  padding: 8px 12px; border-radius: 8px; margin: 0 0 18px;
}
.menu-columns { display: grid; gap: 24px; }
.menu-category {
  font-family: var(--font-body); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--terracotta); padding-bottom: 8px; border-bottom: 2px solid var(--sand-line); margin-bottom: 4px;
}
.menu-item { padding: 12px 0; border-bottom: 1px dashed var(--sand-line); }
.menu-item:last-child { border-bottom: 0; }
.menu-row { display: flex; align-items: baseline; gap: 8px; }
.menu-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.menu-leader { flex: 1; border-bottom: 2px dotted var(--sand-line); transform: translateY(-4px); min-width: 20px; }
.menu-price { font-weight: 700; color: var(--navy); }
.menu-desc { font-size: .9375rem; color: var(--muted); margin: 2px 0 0; }
.diet-mark { width: 14px; height: 14px; border: 1.5px solid; border-radius: 2px; position: relative; flex: none; }
.diet-mark::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: currentColor; }
.diet-mark.is-veg { color: #1e8a3a; }
.diet-mark.is-nonveg { color: #8f2d16; }
.diet-mark.is-nonveg::after { border-radius: 0; background: none; inset: 2px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid currentColor; width: 0; height: 0; left: 1.5px; }

@media (min-width: 760px) {
  .menu-board { padding: 36px 40px; }
  .menu-columns { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 48px; }
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-copy p { font-size: 1.0625rem; color: #d7e0ea; max-width: 34em; }
.about-cta { margin-top: 24px; }
.feature-list { display: grid; gap: 14px; }
.feature-list li {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius); padding: 18px;
}
.feature-icon { width: 40px; height: 40px; flex: none; color: var(--amber); padding: 8px; background: rgba(244, 182, 63, .12); border-radius: 12px; }
.feature-list h3 { font-size: 1.15rem; margin-bottom: .2em; }
.feature-list p { margin: 0; color: #c5d1dd; font-size: .9875rem; }
@media (min-width: 760px) { .feature-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .about-grid { grid-template-columns: .95fr 1.05fr; gap: 64px; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 18px; }
.gallery-item { margin: 0; }
.gallery-btn {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: var(--sand); box-shadow: var(--shadow);
}
.gallery-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-btn:hover img { transform: scale(1.03); }
.gallery-wide .gallery-btn img { aspect-ratio: 4 / 3; }
.gallery-tall .gallery-btn img { aspect-ratio: 4 / 5; }
.gallery-zoom {
  position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 253, 248, .92); color: var(--navy);
}
.gallery-caption { margin: 10px 2px 0; font-weight: 600; color: var(--navy); }
@media (min-width: 960px) {
  .gallery { grid-template-columns: 1.9fr 1fr; align-items: stretch; }
  .gallery-item { display: flex; flex-direction: column; }
  .gallery-btn { flex: 1; }
  .gallery-wide .gallery-btn img, .gallery-tall .gallery-btn img { aspect-ratio: auto; position: absolute; inset: 0; }
  .gallery-wide .gallery-btn { aspect-ratio: 4 / 3; }
}

/* ---------- Visit ---------- */
.visit-grid { display: grid; gap: 36px; }
.info-block { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--sand-line); }
.info-block:last-of-type { border-bottom: 0; }
.info-icon { width: 42px; height: 42px; flex: none; color: var(--terracotta); background: var(--paper); border-radius: 12px; padding: 10px; }
.info-block h3 { font-family: var(--font-body); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: .35rem; }
.info-block address, .info-block p { font-size: 1.0625rem; margin: 0; color: var(--ink); }
.phone-link { font-size: 1.35rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.phone-link:hover { color: var(--terracotta); text-decoration: underline; }
.copy-status { display: block; font-size: .875rem; color: var(--teal); font-weight: 600; min-height: 1.3em; }
.hours { margin: 0 0 6px; }
.hours-row { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.hours dt { font-weight: 700; min-width: 9em; }
.hours dd { margin: 0; }
.visit-actions { display: grid; gap: 12px; margin-top: 18px; }
.map-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: var(--paper); border: 6px solid var(--paper); min-height: 340px;
}
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: 12px; }
@media (min-width: 560px) { .visit-actions { display: flex; flex-wrap: wrap; } }
@media (min-width: 960px) {
  .visit-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: stretch; }
  .map-frame iframe { min-height: 460px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c5d1dd; padding: 56px 0 20px; font-size: .9875rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; gap: 32px; }
.footer-brand img { width: 84px; margin-bottom: 12px; }
.footer-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: #fff; margin-bottom: .4em; }
.footer-heading { font-family: var(--font-body); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.site-footer address { margin-bottom: .8em; max-width: 28em; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .875rem;
}
.footer-base p { margin: 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1.2fr .8fr; gap: 48px; } }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(251, 245, 233, .97); border-top: 1px solid var(--sand-line);
  box-shadow: 0 -6px 20px rgba(15, 44, 74, .1);
}
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; border-radius: 999px; font-weight: 700; text-decoration: none; color: #fff;
}
.action-call { background: var(--terracotta); }
.action-directions { background: var(--navy); }
.action-bar a:hover { color: #fff; filter: brightness(1.08); }
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .action-bar { display: none; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(6, 18, 30, .94); color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox::backdrop { background: rgba(6, 18, 30, .6); }
.lightbox figure { margin: 0; padding: 64px 0 24px; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: center; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 8px; }
.lightbox figcaption { margin-top: 12px; text-align: center; color: #d7e0ea; padding: 0 12px; }
.lightbox-close, .lightbox-nav {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox-close { position: absolute; top: 12px; right: 12px; }
.lightbox-nav { margin: 0 8px; }
.lightbox-nav[hidden] { display: none; }
.lightbox .icon { width: 24px; height: 24px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
