/* ============================================
   Coogan's Bar — Classic & Elegant Design
   Palette: Teal (#1B4D5A) + Slate Grey (#3D4F5F)
   Typography: Playfair Display + Source Sans 3
============================================ */

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

:root {
  --teal-900: #0D2E36;
  --teal-800: #1B4D5A;
  --teal-700: #246373;
  --teal-600: #2D7A8C;
  --teal-500: #3A9BAD;
  --slate-900: #1A2332;
  --slate-800: #2A3544;
  --slate-700: #3D4F5F;
  --slate-600: #5A6F80;
  --slate-500: #7A8F9E;
  --slate-400: #9BADC0;
  --cream-100: #F7F4EF;
  --cream-200: #EDE8DF;
  --cream-300: #E0D9CE;
  --gold-500: #C8A86E;
  --gold-400: #D4B87A;
  --gold-300: #E0C88E;
  --white: #FFFFFF;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(26,35,50,0.08);
  --shadow-md: 0 4px 16px rgba(26,35,50,0.10);
  --shadow-lg: 0 8px 32px rgba(26,35,50,0.14);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--slate-800);
  background: var(--cream-100);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
address { font-style: normal; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--teal-800); color: var(--white);
  padding: 8px 16px; border-radius: var(--radius-sm);
  z-index: 9999; font-size: 0.875rem;
}
.skip-link:focus { top: 16px; }

/* ---------- Typography ---------- */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 12px;
}
.section-eyebrow-light { color: var(--gold-400); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--teal-900);
  margin-bottom: 20px;
}
.section-title-light { color: var(--white); }

.section-subtitle {
  font-size: 1.1rem;
  color: var(--slate-600);
  max-width: 560px;
  line-height: 1.7;
}
.section-subtitle-light { color: var(--slate-400); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal-800);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(27,77,90,0.35);
}
.btn-primary:hover {
  background: var(--teal-700);
  box-shadow: 0 6px 20px rgba(27,77,90,0.45);
  transform: translateY(-2px);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--gold-500);
  color: var(--teal-900);
  box-shadow: 0 4px 14px rgba(200,168,110,0.35);
}
.btn-secondary:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(251,247,241,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(27,77,90,0.08);
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(251,247,241,0.97);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal-900);
}
.logo-mark {
  color: var(--gold-500);
  display: flex;
}
.logo-text { transition: var(--transition); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-nav a {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-700);
  border-radius: 50px;
  transition: var(--transition);
}
.main-nav a:hover { color: var(--teal-800); background: rgba(27,77,90,0.06); }
.nav-cta {
  background: var(--teal-800) !important;
  color: var(--white) !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--teal-700) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal-900);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--teal-900);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,46,54,0.70) 0%,
    rgba(27,77,90,0.60) 50%,
    rgba(13,46,54,0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 120px 24px 80px;
}
.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.80);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.5);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Info Strip ---------- */
.info-strip {
  background: var(--teal-800);
  border-bottom: 3px solid var(--gold-500);
}
.info-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: center;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 32px;
}
.info-icon {
  color: var(--gold-500);
  flex-shrink: 0;
  display: flex;
}
.info-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
}
.info-item span {
  font-size: 0.875rem;
  color: var(--slate-400);
  margin-top: 2px;
}
.info-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.12);
}

/* ---------- Story ---------- */
.story {
  padding: 100px 0;
  background: var(--cream-100);
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.story-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.story-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 64/80;
}
.story-content { padding: 8px 0; }
.story-content p {
  font-size: 1.0625rem;
  color: var(--slate-700);
  line-height: 1.8;
  margin-bottom: 20px;
}
.story-content blockquote {
  position: relative;
  padding: 24px 28px;
  margin: 32px 0;
  background: var(--cream-200);
  border-left: 4px solid var(--gold-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.story-content blockquote p {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--teal-800);
  line-height: 1.7;
  margin-bottom: 12px;
}
.story-content blockquote cite {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-style: normal;
  color: var(--slate-500);
}

/* ---------- Menu ---------- */
.menu-section {
  padding: 100px 0 80px;
  background: var(--teal-900);
  position: relative;
}
.menu-section .container:first-of-type {
  text-align: center;
  margin-bottom: 60px;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.menu-category {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: var(--transition);
}
.menu-category:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(200,168,110,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.category-icon {
  color: var(--gold-500);
  display: flex;
}
.category-name {
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  font-weight: 600;
  color: var(--white);
}
.menu-list { display: flex; flex-direction: column; gap: 16px; }
.menu-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-item-name {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--cream-100);
}
.menu-item-desc {
  font-size: 0.875rem;
  color: var(--slate-400);
  line-height: 1.5;
}
.menu-note {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.menu-note p {
  font-size: 0.8125rem;
  color: var(--slate-500);
  font-style: italic;
}

/* ---------- Atmosphere ---------- */
.atmosphere {
  padding: 100px 0 80px;
  background: var(--cream-100);
}
.atmosphere .container:first-of-type {
  text-align: center;
  margin-bottom: 56px;
}
.atmosphere-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}
.atm-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.atm-photo:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.atm-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.atm-photo.large {
  grid-column: 1 / 7;
  grid-row: 1 / 3;
  min-height: 520px;
}
.atm-photo.tall {
  grid-column: 8 / 13;
  grid-row: 1 / 3;
  min-height: 520px;
}
.atm-photo:not(.large):not(.tall) {
  grid-column: span 4;
  min-height: 240px;
}

/* ---------- Events ---------- */
.events {
  padding: 100px 0;
  background: var(--slate-800);
}
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.events-content .section-subtitle { margin-bottom: 36px; }
.events-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.events-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.event-day {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gold-400);
}
.event-detail {
  font-size: 0.9375rem;
  color: var(--slate-400);
  text-align: right;
}
.events-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.events-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 7/8;
}

/* ---------- Visit ---------- */
.visit {
  padding: 100px 0;
  background: var(--cream-100);
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.visit-info .section-subtitle { margin-bottom: 32px; }
.visit-address {
  font-size: 1.125rem;
  color: var(--teal-800);
  line-height: 1.7;
  margin-bottom: 20px;
}
.visit-phone a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  font-weight: 600;
  color: var(--teal-700);
  transition: var(--transition);
}
.visit-phone a:hover { color: var(--teal-500); }
.visit-hours {
  margin: 32px 0;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.visit-hours h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--teal-900);
  margin-bottom: 16px;
}
.visit-hours p {
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.8;
}
.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 420px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: var(--slate-400);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 72px 24px 48px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 300px;
}
.footer-contact strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-contact p {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 4px;
}
.footer-contact a {
  color: var(--gold-400);
  transition: var(--transition);
}
.footer-contact a:hover { color: var(--gold-300); }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 0.9375rem;
  color: var(--slate-400);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .story-grid,
  .events-grid,
  .visit-grid {
    gap: 48px;
  }
  .atmosphere-gallery {
    grid-template-columns: repeat(6, 1fr);
  }
  .atm-photo.large,
  .atm-photo.tall {
    grid-column: span 6;
    grid-row: auto;
    min-height: 360px;
  }
  .atm-photo:not(.large):not(.tall) {
    grid-column: span 3;
    min-height: 200px;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--cream-100);
    box-shadow: -8px 0 32px rgba(0,0,0,0.2);
    padding: 96px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .main-nav a {
    padding: 14px 16px;
    font-size: 1.0625rem;
    border-radius: var(--radius-sm);
  }
  .nav-cta {
    margin-left: 0 !important;
    text-align: center;
    margin-top: 16px;
  }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }
  .nav-overlay.active { display: block; }

  .header-inner { height: 64px; }

  .hero-content { padding: 100px 20px 60px; }
  .hero-headline { font-size: clamp(1.75rem, 8vw, 2.75rem); }

  .info-strip-inner { grid-template-columns: 1fr; }
  .info-item { padding: 16px 24px; }
  .info-divider { height: 1px; width: 60%; margin: 0 auto; }

  .story, .atmosphere, .events, .visit { padding: 72px 0; }
  .story-grid,
  .events-grid,
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .story-image-wrap { max-height: 400px; }
  .story-image-wrap img { aspect-ratio: auto; }

  .menu-section { padding: 72px 0 56px; }
  .menu-grid { grid-template-columns: 1fr; gap: 20px; }
  .menu-category { padding: 28px; }

  .atmosphere-gallery {
    grid-template-columns: 1fr 1fr;
  }
  .atm-photo.large,
  .atm-photo.tall {
    grid-column: span 2;
    min-height: 280px;
  }
  .atm-photo:not(.large):not(.tall) {
    grid-column: span 1;
    min-height: 180px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 24px 36px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 280px; }
  .atmosphere-gallery { grid-template-columns: 1fr; }
  .atm-photo.large,
  .atm-photo.tall,
  .atm-photo:not(.large):not(.tall) {
    grid-column: span 1;
    min-height: 220px;
  }
}
