/* ========================================
   Longley's Restaurant - Branford, CT
   ======================================== */

/* Honor the [hidden] attribute even on elements with a display rule
   (e.g. .gig uses display:flex). Used for auto-expiring events/specials. */
[hidden] { display: none !important; }

:root {
  --green-dark: #1a5632;
  --green-mid: #2d8a4e;
  --green-light: #8bc34a;
  --gold: #d4a843;
  --cream: #f5f1e8;
  --dark: #1a1a1a;
  --dark-overlay: rgba(0, 0, 0, 0.6);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-width: 1200px;
  --section-pad: clamp(3rem, 8vw, 6rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(var(--max-width), 100% - 2rem);
  margin-inline: auto;
}

/* ---- Header / Nav ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--dark);
  transition: background 0.3s;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-list a {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-list a:hover { color: var(--green-light); }

.nav-cta {
  background: var(--green-mid);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--green-dark); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: var(--dark) url('../images/patio-bar-night.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dark-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem 1rem;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-content h1 .accent { color: var(--green-light); }

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem !important;
  opacity: 1 !important;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ---- Weekly specials band (hero) ---- */
.hero-specials {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 168, 67, 0.5); /* --gold, translucent */
  border-radius: 8px;
  text-align: left;
}

.hero-specials-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--gold);
  margin-bottom: 0.75rem;
  text-align: center;
}

.hero-specials-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

/* Longer lists split into two columns so the hero doesn't run too far down. */
.hero-specials-list.two-col {
  grid-template-columns: 1fr 1fr;
  column-gap: 1.75rem;
}

.hero-specials-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.4;
}

.hero-specials-list li::before {
  content: '\2022'; /* bullet */
  position: absolute;
  left: 0;
  color: var(--green-light);
  font-weight: 700;
}

/* Optional price, appended after the dish name. Free-form text ("Market Price",
   "$12 / $18"), so it must never wrap mid-value. */
.hero-specials-price {
  margin-left: 0.5rem;
  white-space: nowrap;
  color: var(--gold);
  font-weight: 600;
}

.hero-specials-posted {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7 !important;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green-mid);
  color: #fff;
}

.btn-primary:hover { background: var(--green-dark); }

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  margin-left: 0.75rem;
}

.btn-outline:hover {
  background: #fff;
  color: var(--dark);
}

/* ---- Sections ---- */
section { padding: var(--section-pad) 0; }

/* Offset anchor jumps so the fixed header doesn't cover section titles */
section[id] { scroll-margin-top: 80px; }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ---- Quick Highlights ---- */
.highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  background: var(--dark);
  padding: 0;
}

.highlight-panel {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.highlight-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  transition: background 0.3s;
}

.highlight-panel:hover::before { background: rgba(0, 0, 0, 0.4); }

.highlight-inner {
  position: relative;
  z-index: 1;
  max-width: 440px;
  padding: 2rem 1.5rem;
}

.highlight-inner h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.highlight-inner p {
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.panel-btn {
  display: inline-block;
  background: var(--green-mid);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s;
}

.highlight-panel:hover .panel-btn {
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* ---- About ---- */
.about { background: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-img {
  border-radius: 8px;
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: #444;
}

.about-text .highlight {
  color: var(--green-dark);
  font-weight: 600;
}

.about-text a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(45, 138, 78, 0.45);
  transition: color 0.2s;
}

.about-text a:hover { color: var(--green-mid); }

/* ---- From the Blog ---- */
.blog { background: var(--cream); }

.blog .special-card {
  display: block;
  background: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
}

.blog .special-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.blog .read-more {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-mid);
}

/* ---- Events ---- */
.events { background: var(--cream); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.event-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.event-card:hover img { transform: scale(1.05); }

.event-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
}

.event-card .overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.event-card .overlay p {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ---- Specials ---- */
.specials { background: #fff; }

.specials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.special-card {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem;
}

.special-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.special-card p {
  color: #444;
  font-size: 0.95rem;
}

/* ---- Lunch Menu ---- */
.lunch { background: var(--cream); }

.lunch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 3rem;
  max-width: 800px;
  margin-inline: auto;
}

.lunch-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
  color: #333;
  font-size: 1.02rem;
}

.lunch-list li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-1px);
}

.lunch-note {
  text-align: center;
  max-width: 720px;
  margin: 2rem auto 0;
  color: #555;
  font-size: 0.98rem;
}

.lunch-note strong { color: var(--green-dark); }

/* ---- Live Music & Events ---- */
.music {
  position: relative;
  color: #fff;
  background: #0d0d0d url('../images/patio-bar-night.jpg') center/cover no-repeat fixed;
}

.music::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 20, 14, 0.9), rgba(6, 10, 8, 0.94));
}

.music > .container { position: relative; z-index: 1; }

.music-eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.music-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 0.5rem;
}

.music-sub {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.music-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
  max-width: 920px;
  margin-inline: auto;
}

.gig {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(4px);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.gig:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(212, 168, 67, 0.6);
}

.gig-cal {
  flex: none;
  width: 62px;
  height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--green-mid), var(--green-dark));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.gig-mon {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-light);
}

.gig-day {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
}

.gig-info { min-width: 0; }

.gig-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.15rem;
}

.gig-tag {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.gig-featured {
  background: rgba(212, 168, 67, 0.12);
  border-color: rgba(212, 168, 67, 0.55);
}

.gig-featured .gig-cal {
  background: linear-gradient(160deg, var(--gold), #b8862c);
}

.gig-featured .gig-mon { color: #fff8e6; }

.music-note {
  text-align: center;
  margin-top: 2.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.98rem;
}

.music-note a { color: var(--gold); font-weight: 600; }

/* ---- Gallery ---- */
.gallery { background: var(--cream); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img { transform: scale(1.05); }

/* ---- Drinks / Parallax ---- */
.drinks {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: var(--dark) url('../images/whiskey-bg.jpg') center/cover no-repeat fixed;
}

.drinks::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.drinks-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.drinks-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.drinks-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* ---- Catering ---- */
.catering { background: #fff; }

.catering-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.catering-img {
  border-radius: 8px;
  overflow: hidden;
}

.catering-img img {
  width: 100%;
  object-fit: cover;
}

.catering-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.catering-text p {
  color: #444;
  margin-bottom: 1.5rem;
}

/* ---- Info Bar ---- */
.info-bar {
  background: var(--green-dark);
  color: #fff;
  padding: 3rem 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.info-item h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.info-item p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.info-item a {
  color: var(--green-light);
  font-weight: 600;
}

/* ---- Footer ---- */
.site-footer {
  position: relative; /* anchors the hidden portal corner links */
  background: var(--dark);
  color: #aaa;
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer p + p { margin-top: 0.25rem; }
.site-footer a { color: var(--green-light); }

/* Hidden portal "magic" corner links (see index.html footer). */
.portal-corner-link {
  position: absolute;
  bottom: 0;
  width: 44px;
  height: 44px;
  display: block;
  cursor: default;
  z-index: 10;
}
.portal-corner-link--left { left: 0; }
.portal-corner-link--right { right: 0; }

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: right 0.3s;
  }

  .nav-list.open { right: 0; }

  .about-grid,
  .catering-grid,
  .lunch-grid {
    grid-template-columns: 1fr;
  }

  .lunch-grid { gap: 0; max-width: 480px; }

  .highlights { grid-template-columns: 1fr; }
  .highlight-panel { min-height: 280px; }

  .gig { gap: 1rem; }
  .gig-date { width: 84px; }

  .btn-outline { margin-left: 0; margin-top: 0.75rem; }

  .hero-buttons { display: flex; flex-direction: column; align-items: center; }

  .hero-specials { padding: 1.25rem 1.25rem; margin-top: 1.5rem; }
  .hero-specials-list.two-col { grid-template-columns: 1fr; }

  .drinks,
  .music { background-attachment: scroll; }
}

/* ---- Email signup ---- */
.signup {
  background: var(--green-dark);
  color: #fff;
  padding: var(--section-pad) 0;
  text-align: center;
}
.signup-inner { max-width: 640px; }
.signup h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}
.signup p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.signup-form {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.signup-form input[type="email"] {
  flex: 1 1 260px;
  max-width: 340px;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 6px;
  font: inherit;
  color: var(--dark);
}
.signup-btn {
  background: var(--gold);
  color: var(--dark);
  border: none;
  font-weight: 600;
}
.signup-btn:hover { background: #b8862c; color: #fff; }
.signup-btn:disabled { opacity: 0.7; cursor: default; }
/* Honeypot — hidden from humans, visible to dumb bots. */
.signup-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
.signup-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.signup-status { min-height: 1.4em; margin-top: 1rem; font-weight: 500; }
.signup-status.is-success { color: var(--green-light); }
.signup-status.is-error { color: #ffd1d1; }
.signup-fineprint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* ---- FAQ ---- */
.faq { background: var(--cream); }

.faq-list {
  max-width: 820px;
  margin: 2rem auto 0;
}

.faq-item {
  border-bottom: 1px solid rgba(26, 86, 50, 0.18);
  padding: 0.25rem 0;
}

.faq-item summary {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--green-dark);
  cursor: pointer;
  list-style: none;
  padding: 1rem 2rem 1rem 0;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "\2212"; /* minus */
}

.faq-item p {
  padding: 0 0 1.15rem;
  color: #333;
  line-height: 1.6;
  max-width: 70ch;
}
