/* Gary's Irish Bar. Colours taken from the pub itself: the green sign board
   over the door, its cream lettering, Guinness black, and signwriter's gilt. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --stout:      #15110E;  /* Guinness black, the page */
  --stout-2:    #1F1915;  /* a shade lighter, for alternating sections */
  --green:      #1E4D36;  /* the sign board */
  --green-deep: #133526;  /* the board's edge and shade */
  --cream:      #F1E4C6;  /* signwriting cream, headings */
  --cream-soft: #D9CBAA;  /* body text on dark */
  --gilt:       #D4AA59;  /* gold leaf: keylines, buttons, small labels */
  --gilt-light: #E4C27A;  /* the same gold, lifted for small text on the green board */
  --line:       rgba(241, 228, 198, 0.16);

  --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--stout);
  color: var(--cream-soft);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--cream); }
strong { color: var(--cream); font-weight: 600; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--cream); line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin-bottom: 1.4rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { scroll-margin-top: 4.5rem; }

.skip {
  position: absolute; left: -999px; top: 0.5rem; z-index: 300;
  background: var(--cream); color: var(--stout); padding: 0.6rem 1rem; font-weight: 700;
}
.skip:focus { left: 0.5rem; }

:focus-visible { outline: 3px solid var(--gilt); outline-offset: 3px; }
.btn-gilt:focus-visible, .btn-cream:focus-visible, .phone-bar a:focus-visible { outline-color: var(--cream); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.8rem 1.5rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none; border: 2px solid transparent; border-radius: 3px;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-gilt  { background: var(--gilt); color: var(--stout); }
.btn-gilt:hover  { background: var(--cream); }
.btn-cream { background: var(--cream); color: var(--stout); }
.btn-cream:hover { background: var(--gilt); }
.btn-line  { border-color: var(--cream); color: var(--cream); }
.btn-line:hover  { background: var(--cream); color: var(--stout); }
.btn-small { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.95rem; }

/* ── Top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--stout); border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.topbar.scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); }
.topbar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0.65rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.mark { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); text-decoration: none; line-height: 1; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 1.6rem; list-style: none; }
.nav-list a {
  color: var(--cream-soft); text-decoration: none; font-size: 0.98rem; font-weight: 500;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--cream); border-bottom-color: var(--gilt); }
.menu-btn { display: none; }

/* ── The sign ── */
.fascia {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  background: var(--green);
  border-block: 8px solid var(--green-deep);
  padding: clamp(2.4rem, 5vw, 3.8rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}
/* two gold keylines inside the board, like the lining on a painted pub sign */
.fascia::before, .fascia::after { content: ""; position: absolute; pointer-events: none; }
.fascia::before { inset: 10px; border: 2px solid var(--gilt); }
.fascia::after  { inset: 17px; border: 1px solid rgba(212, 170, 89, 0.5); }

.fascia-end {
  font-family: var(--serif); color: var(--gilt-light);
  font-size: clamp(0.9rem, 1.3vw, 1.15rem); letter-spacing: 0.16em; text-transform: uppercase;
}
.fascia-end:first-child { text-align: right; }
.fascia-end:last-child  { text-align: left; }

.fascia-name {
  font-size: clamp(2.1rem, 9.2vw, 6rem); line-height: 1;
  letter-spacing: 0.005em;
  text-shadow: 0.035em 0.05em 0 var(--green-deep);   /* the signwriter's shade */
}
.fascia-line {
  max-width: 46ch; margin: 1.1rem auto 1.7rem;
  color: var(--cream); font-size: 1.1rem; line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

.hero-photo {
  max-width: 1280px; margin: 0 auto;              /* never wider than the photo itself */
  aspect-ratio: 16 / 7; overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }

/* ── Our story ── */
.story { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.story-text p { margin-bottom: 1rem; max-width: 56ch; }
.motto {
  font-family: var(--serif); color: var(--cream);
  font-size: 1.35rem; line-height: 1.4; margin: 1.8rem 0 1rem;
  padding-left: 1.1rem; border-left: 2px solid var(--gilt);
}
.owned { color: var(--gilt); font-weight: 600; }

.story-photos { display: grid; grid-template-columns: 1fr 1fr; }
.story-photos figure { margin: 0; }
.story-main { grid-column: 1 / -1; }
.story-main img, .story-side img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.story-side {
  grid-column: 2; margin-top: -3.5rem !important; margin-right: -1rem !important;
  border: 6px solid var(--stout); background: var(--stout); position: relative;
}
.story-photos figcaption { font-size: 0.88rem; color: var(--cream-soft); padding-top: 0.5rem; }
.story-main figcaption { max-width: 45%; }

/* ── Drinks and food: the menu board ── */
.board-section { padding: 0 0 clamp(4rem, 8vw, 6.5rem); }
.board {
  position: relative;
  background: var(--green);
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.2rem, 5vw, 4rem);
}
.board::before, .board::after { content: ""; position: absolute; pointer-events: none; }
.board::before { inset: 10px; border: 2px solid var(--gilt); }
.board::after  { inset: 17px; border: 1px solid rgba(212, 170, 89, 0.5); }
.board-col { position: relative; z-index: 1; }
.board-intro { color: var(--cream); margin-bottom: 1.6rem; max-width: 46ch; }
.board h3 {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gilt-light); margin: 2rem 0 0.4rem;
}
.board h3:first-of-type { margin-top: 0.5rem; }
.group-note { font-size: 0.95rem; color: var(--cream); margin-bottom: 0.4rem; }
.items > div { padding: 0.75rem 0; border-bottom: 1px dashed rgba(241, 228, 198, 0.28); }
.items > div:last-child { border-bottom: 0; }
.items dt { font-family: var(--serif); color: var(--cream); font-size: 1.18rem; line-height: 1.3; }
.items dd { color: var(--cream); opacity: 0.86; font-size: 0.98rem; }

.happy-hour {
  margin-top: 2rem; padding: 1.3rem 1.4rem;
  background: var(--cream); color: var(--stout);
  border: 2px solid var(--gilt);
}
.hh-big { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; margin-bottom: 0.25rem; }
.board-photo { margin-top: 2rem; }
.board-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ── What's on ── */
.whats-on { background: var(--stout-2); padding: clamp(4rem, 8vw, 6.5rem) 0; }
.on-head { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: end; margin-bottom: 2.2rem; }
.on-head h2 { margin-bottom: 0; }
.on-head p { max-width: 54ch; }
.on-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 1.25rem; }
.on-grid figure { margin: 0; display: flex; flex-direction: column; }
.on-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.on-big { grid-row: span 2; }
.on-big img { flex: 1; aspect-ratio: auto; height: 100%; min-height: 0; }
.on-grid figcaption { padding-top: 0.55rem; font-size: 0.98rem; }

/* ── Photos ── */
.photos { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.photo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.9rem; }
.photo-grid figure { margin: 0; grid-column: span 2; }
.photo-grid .p-wide { grid-column: span 3; }
.photo-open {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; overflow: hidden;
}
.photo-open img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ── Reviews: the green band ── */
.reviews { background: var(--green); padding: clamp(4rem, 8vw, 6.5rem) 0; }
.rating { color: var(--cream); font-size: 1.15rem; margin: -0.4rem 0 2.4rem; }
.rating strong { color: var(--cream); }
.quotes { columns: 3 17rem; column-gap: 2.5rem; }
.quotes blockquote {
  break-inside: avoid; margin: 0 0 2.2rem;
  padding-top: 1rem; border-top: 2px solid var(--gilt);
}
.quotes p { font-family: var(--serif); color: var(--cream); font-size: 1.12rem; line-height: 1.5; margin-bottom: 0.7rem; }
.quotes footer { font-size: 0.9rem; color: var(--cream); opacity: 0.85; }
.more a { color: var(--cream); font-weight: 600; text-underline-offset: 4px; }

/* ── Find us ── */
.find { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.find-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.find-photo { margin: 0; }
.find-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.facts > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--gilt); font-weight: 600; font-size: 0.95rem; }
.facts dd { color: var(--cream); }
.find-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.8rem 0 1.2rem; }
.social { display: flex; gap: 1.4rem; }
.social a { color: var(--cream-soft); font-weight: 600; text-underline-offset: 4px; }
.social a:hover { color: var(--cream); }

/* ── Footer ── */
.site-foot { background: var(--green-deep); padding: 2.4rem 0; font-size: 0.95rem; }
.foot-inner p { color: var(--cream); opacity: 0.9; }
.foot-name { font-family: var(--serif); font-size: 1.3rem; opacity: 1 !important; margin-bottom: 0.3rem; }
.legal { margin-top: 1rem; font-size: 0.85rem; }

/* ── Sticky contact bar, phones only ── */
.phone-bar { display: none; }

/* ── Lightbox ── */
.lightbox {
  margin: auto; padding: 0; border: 0; background: transparent;
  max-width: min(94vw, 1280px); width: 100%; overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 8, 6, 0.9); }
.lb-inner { position: relative; }
.lb-inner img { width: 100%; max-height: 80vh; object-fit: contain; margin: 0 auto; }
.lb-close, .lb-nav {
  min-width: 48px; min-height: 48px; border: 0; cursor: pointer;
  background: var(--cream); color: var(--stout); font-size: 1.6rem; line-height: 1; border-radius: 3px;
}
.lb-close { position: absolute; top: -3.6rem; right: 0; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.8rem; }
.lb-bar p { color: var(--cream); font-size: 0.95rem; }

/* ── Motion: one gentle hover on photos, off for reduced motion ── */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .photo-open img { transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1); }
  .photo-open:hover img { transform: scale(1.035); }
}

/* ── Tablet ── */
@media (max-width: 980px) {
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  }
  .menu-btn span { display: block; width: 24px; height: 2px; background: var(--cream); transition: transform 0.2s ease, opacity 0.2s ease; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { order: 3; margin-left: 0; }
  .topbar-inner .btn-small { margin-left: auto; }
  .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--stout); border-bottom: 1px solid var(--line);
    padding: 0.4rem var(--gutter) 1.2rem;
  }
  .nav-list.open { display: flex; }
  .nav-list li { border-top: 1px solid var(--line); }
  .nav-list a { display: block; padding: 0.85rem 0; border-bottom: 0; font-size: 1.05rem; }

  .fascia { grid-template-columns: 1fr; }
  .fascia-end { display: none; }
  .hero-photo { aspect-ratio: 3 / 2; }

  .story-grid, .find-grid { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .on-head { grid-template-columns: 1fr; }
  .quotes { columns: 2 15rem; }
}

/* ── Phone ── */
@media (max-width: 640px) {
  body { font-size: 1rem; padding-bottom: 3.6rem; }
  .fascia { padding: 2.1rem 1.4rem 2.2rem; }
  .fascia::before { inset: 7px; }
  .fascia::after  { inset: 12px; }
  .fascia-line { font-size: 1rem; margin: 0.9rem auto 1.3rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .topbar-inner .btn-small { display: none; }  /* the sticky bar has WhatsApp on phones */
  .nav { margin-left: auto; }

  .story-side { margin-top: -2rem !important; margin-right: 0 !important; }
  .board { padding: 1.9rem 1.4rem; }
  .board::before { inset: 7px; }
  .board::after  { inset: 12px; }
  .on-grid { grid-template-columns: 1fr; }
  .on-big { grid-row: auto; }
  .on-big img { aspect-ratio: 3 / 2; height: auto; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .photo-grid figure, .photo-grid .p-wide { grid-column: span 1; }
  .photo-grid figure:first-child { grid-column: span 2; }
  .quotes { columns: 1; }
  .facts > div { grid-template-columns: 5.5rem 1fr; }
  .find-actions .btn { flex: 1 1 100%; }

  .phone-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    border-top: 2px solid var(--gilt); box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .phone-bar a {
    display: flex; align-items: center; justify-content: center; min-height: 56px;
    font-weight: 700; text-decoration: none; color: var(--stout);
  }
  .phone-bar a:first-child { background: var(--gilt); }
  .phone-bar a:last-child  { background: var(--cream); }
  body.hide-phone-bar .phone-bar { transform: translateY(110%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
