/* ============================================================
   THE SWAN INN — Main Stylesheet
   Colour palette:
     Cream/off-white: #f9f6f0
     Dark navy:       #1e2d3b
     Gold accent:     #c9973a
     Mid grey:        #6b6b6b
   ============================================================ */

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

:root {
  --cream:  #f9f6f0;
  --navy:   #1e2d3b;
  --gold:   #c9973a;
  --grey:   #6b6b6b;
  --light:  #ede9e1;
  --font-display: 'Didot', 'Didot LT W01 Regular', 'Hoefler Text', 'Times New Roman', serif;
  --font-body:    'Didot', 'Didot LT W01 Regular', 'Hoefler Text', 'Times New Roman', serif;
  --font-ui:      'Lato', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

/* ── TOP BAR ─────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  background: var(--cream);
  border-bottom: 1px solid rgba(30,45,59,.08);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--navy);
  text-decoration: none;
  transition: color .2s;
}
.topbar-link:hover { color: var(--gold); }
.topbar-link svg { flex-shrink: 0; }

.topbar-booking {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--navy);
  text-decoration: none;
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.topbar-booking:hover { color: var(--gold); }
.topbar-booking .caret {
  display: inline-block;
  font-size: 9px;
  line-height: 1;
  transition: transform .2s;
}

/* ── BOOKING DROPDOWN ────────────────────────────────────── */
.booking-dropdown {
  position: relative;
  display: inline-block;
}
.booking-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  width: max-content;
  background: var(--cream, #f7f2e8);
  border: 1px solid rgba(30,45,59,.12);
  box-shadow: 0 8px 24px rgba(30,45,59,.12);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 200;
}
.booking-dropdown:hover .booking-dropdown-menu,
.booking-dropdown:focus-within .booking-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.booking-dropdown:hover .topbar-booking .caret,
.booking-dropdown:focus-within .topbar-booking .caret {
  transform: rotate(180deg);
}
.booking-dropdown-item {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--navy);
  text-decoration: none;
  text-align: right;
  transition: color .2s, background .2s;
}
.booking-dropdown-item:hover {
  color: var(--gold);
  background: rgba(201,151,58,.08);
}

/* ── HEADER / LOGO ───────────────────────────────────────── */
.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 32px 20px;
  background: var(--cream);
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 6px;
}

.logo-swan {
  width: 100px;
  height: 100px;
}

.logo-swan img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-swan svg { display: block; }

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: .22em;
  color: var(--navy);
  font-weight: 400;
}

.logo-sub {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--grey);
  font-weight: 300;
  white-space: nowrap;
  line-height: 1;
}

/* ── MAIN NAV ────────────────────────────────────────────── */
.main-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 40px;
  background: var(--cream);
  border-top: 1px solid rgba(30,45,59,.08);
  border-bottom: 1px solid rgba(30,45,59,.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(30,45,59,.08);
}

.main-nav a {
  display: block;
  padding: 14px 12px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--navy);
  text-decoration: none;
  position: relative;
  transition: color .2s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s ease;
}

.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.active { color: var(--gold); }
.main-nav a.active::after { transform: scaleX(1); }

/* ── HERO GRID (3 columns, homepage) ────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 570px;
  overflow: hidden;
}

.hero-cell {
  overflow: hidden;
  position: relative;
}

.hero-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.hero-cell:hover img { transform: scale(1.03); }

/* ── SECTION CONTAINER ───────────────────────────────────── */
.section-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section-row-top {
  display: flex;
  gap: 0;
  height: 300px;
}

.section-row-bottom {
  display: flex;
  gap: 0;
  height: 280px;
}

.section-card-landscape {
  flex: 1;
  height: 100%;
}

.section-card-square {
  flex: 1;
  height: 100%;
}

.section-card {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.section-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.72);
  transition: filter .4s, transform .5s;
}

.section-card:hover img {
  filter: brightness(.6);
  transform: scale(1.04);
}

.section-card-label {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: .2em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  padding: 0 20px;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 18px 40px;
  background: var(--cream);
  border-top: 1px solid rgba(30,45,59,.1);
}

.site-footer a {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--navy);
  text-decoration: none;
  transition: color .2s;
}

.site-footer a:hover { color: var(--gold); }

/* ── PAGE HERO (full-width image section used on inner pages) */
.page-hero {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 520px;
  overflow: hidden;
  position: relative;
}

.page-hero .hero-cell { position: relative; }

.page-hero-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 28px;
  background: var(--cream);
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .22em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}

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

/* ── MEL OVERLAY CARD ───────────────────────────────────── */
.mel-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(249,246,240,.9);
  padding: 32px 36px;
  max-width: 320px;
  text-align: left;
  backdrop-filter: blur(2px);
}

.mel-overlay .mel-word {
  font-family: var(--font-body);
  font-size: 52px;
  font-weight: 300;
  font-style: italic;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.mel-overlay .mel-pronunciation {
  font-family: var(--font-body);
  font-size: 18px;
  font-style: italic;
  color: var(--grey);
  margin-bottom: 16px;
}

.mel-overlay .mel-definition {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--navy);
}

/* ── CONTENT SECTIONS ───────────────────────────────────── */
.content-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 32px;
  text-align: center;
}

.content-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .18em;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 20px;
}

.content-section p {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--grey);
  line-height: 1.8;
}

/* ── MENU CARDS ─────────────────────────────────────────── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 0 2px;
}

.menu-card {
  background: var(--navy);
  color: #fff;
  padding: 40px 24px;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background .2s;
}

.menu-card:hover { background: var(--gold); }

.menu-card .menu-type {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .2em;
  font-weight: 400;
  margin-bottom: 10px;
}

.menu-card .menu-time {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  opacity: .75;
}

/* ── PACKAGES GRID ──────────────────────────────────────── */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 40px 60px;
}

.package-card {
  border: 1px solid var(--light);
  padding: 32px 28px;
  text-align: center;
  background: #fff;
}

.package-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .15em;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
}

.package-card .price {
  font-family: var(--font-body);
  font-size: 22px;
  color: var(--gold);
  margin: 10px 0;
}

.package-card p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--grey);
  margin-bottom: 20px;
}

.btn-outline {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .18em;
  text-decoration: none;
  transition: background .2s, color .2s;
}

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

/* ── ABOUT BANNER ───────────────────────────────────────── */
.about-banner {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--navy);
  color: #fff;
  margin: 0 0 0 0;
}

.about-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.about-banner-text {
  padding: 40px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-banner-text h3 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .22em;
  font-weight: 400;
  opacity: .65;
  margin-bottom: 14px;
}

.about-banner-text p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  font-style: italic;
}

.about-banner-text .signature {
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 16px;
  opacity: .7;
}

/* ── EXPLORE CARDS ──────────────────────────────────────── */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  padding: 2px;
  min-height: 480px;
}

.explore-card {
  position: relative;
  overflow: hidden;
}

.explore-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.6);
  transition: filter .4s, transform .5s;
}

.explore-card:hover img {
  filter: brightness(.45);
  transform: scale(1.05);
}

.explore-card-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px;
  color: #fff;
}

.explore-card-info h3 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .14em;
  font-weight: 400;
  line-height: 1.4;
}

.explore-card-info p {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  opacity: .85;
}

/* ── FIND US / MAP SECTION ──────────────────────────────── */
.find-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.find-us-map {
  background: var(--light);
  overflow: hidden;
}

.find-us-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  min-height: 420px;
}

.find-us-info {
  padding: 56px 64px;
  background: var(--cream);
}

.find-us-info h2 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .2em;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 28px;
}

.find-us-info .info-item {
  margin-bottom: 18px;
}

.find-us-info .info-label {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--gold);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.find-us-info .info-value {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--navy);
  line-height: 1.6;
}

.find-us-info a {
  color: var(--navy);
  text-decoration: none;
  transition: color .2s;
}
.find-us-info a:hover { color: var(--gold); }

/* ── TIMES TABLE ────────────────────────────────────────── */
.times-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 32px;
}

.times-col h3 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .2em;
  font-weight: 400;
  color: var(--navy);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--light);
  margin-bottom: 20px;
}

.times-col .times-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(30,45,59,.06);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--grey);
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 32px;
}

.faq-item {
  border-bottom: 1px solid var(--light);
  padding: 24px 0;
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .1em;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 12px;
}

.faq-item p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--grey);
  line-height: 1.8;
}

/* ── BAR SECTION ────────────────────────────────────────── */
.bar-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 2px;
}

.bar-link-card {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: 40px 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  min-height: 120px;
}

.bar-link-card:hover { background: var(--gold); }

.bar-link-card span {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .2em;
}

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--light);
  margin: 0;
}

/* ── PAGE TITLE BAND ─────────────────────────────────────── */
.page-title-band {
  text-align: center;
  padding: 52px 32px 40px;
  background: var(--cream);
}

.page-title-band h1 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: .22em;
  font-weight: 400;
  color: var(--navy);
}

.page-title-band .subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  font-style: italic;
  color: var(--grey);
  margin-top: 10px;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid, .page-hero {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-cell { height: 300px; }
  .section-grid { grid-template-columns: 1fr 1fr; height: auto; }
  .section-card { height: 220px; }
  .section-row-top { flex-direction: column; height: auto; }
  .section-row-bottom { flex-direction: row; height: 220px; }
  .section-card-landscape { height: 220px; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .packages-grid { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: repeat(3, 1fr); }
  .find-us-grid { grid-template-columns: 1fr; }
  .about-banner { grid-template-columns: 1fr; }
  .about-banner img { height: 260px; width: 100%; }
  .bar-links { grid-template-columns: 1fr 1fr; }
  .main-nav { flex-wrap: wrap; gap: 0; }
  .site-footer { flex-wrap: wrap; gap: 12px; justify-content: center; }
}

@media (max-width: 600px) {
  .section-grid { grid-template-columns: 1fr; }
  .section-card { height: 200px; }
  .section-row-top { flex-direction: column; height: auto; }
  .section-row-bottom { flex-direction: column; height: auto; }
  .section-card-landscape { height: 180px; }
  .section-card-square { height: 180px; }
  .menu-grid { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: 1fr 1fr; }
  .bar-links { grid-template-columns: 1fr; }
  .times-section { grid-template-columns: 1fr; }
  .find-us-info { padding: 36px 24px; }
}
