/*
 * Dunston Freemasons Hall - Main Stylesheet
 * Colour palette: Deep red #8B0000, Black #0A0A0A, Gold #C9A84C
 * Fonts: Cinzel (headings), EB Garamond (body)
 * Update colours/fonts in :root if you want to change the site look.
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --red: #8B0000;
  --red-light: #a01818;
  --black: #0A0A0A;
  --black-soft: #1a1a1a;
  --gold: #C9A84C;
  --gold-light: #e0c878;
  --gold-dark: #9a7b2e;
  --cream: #f5f0e6;
  --white: #fafafa;
  --font-heading: 'Cinzel', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, serif;
  --transition: 0.3s ease;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --border-radius: 4px;
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--cream);
  background-color: var(--black);
  min-height: 100vh;
  overflow-x: hidden;
  animation: pageFadeIn 0.35s ease-out;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--gold-light);
}

/* ========== Decorative Elements (Masonic-inspired) ========== */
/* Gold divider - use between sections. Update SVG if you want a different pattern. */
.divider {
  display: block;
  width: 100%;
  max-width: 400px;
  height: 24px;
  margin: 2rem auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24'%3E%3Cpath fill='%23C9A84C' d='M0 12h80v2H0zm80 0h80v2H80zm80 0h80v2H160zm80 0h80v2H240zm80 0h80v2H320zm80 0h80v2H400z' opacity='0.8'/%3E%3Cpath fill='none' stroke='%23C9A84C' stroke-width='1' d='M200 4v16M180 8l40 8M220 8l-40 8' opacity='0.6'/%3E%3C/svg%3E") center no-repeat;
  background-size: contain;
}

.divider-wide {
  max-width: 600px;
}

/* ========== Sticky Navigation ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
}

.logo span {
  color: var(--white);
}

/* Search bar in nav - update placeholder in HTML if needed */
.nav-search {
  flex: 0 1 220px;
  margin: 0 1rem;
}

.nav-search input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--black-soft);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: var(--border-radius);
  color: var(--cream);
}

.nav-search input::placeholder {
  color: rgba(245, 240, 230, 0.5);
}

.nav-search input:focus {
  outline: none;
  border-color: var(--gold);
}

/* Desktop nav links */
.nav-links {
  display: none;
  list-style: none;
  gap: 0.5rem;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  color: var(--cream);
  border-radius: var(--border-radius);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

/* Hamburger - visible on mobile only */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav-mobile {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  padding: 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 999;
}

.nav-mobile.is-open {
  transform: translateX(0);
}

.nav-mobile .nav-search {
  margin-bottom: 1.5rem;
  flex: none;
  max-width: 100%;
}

.nav-mobile ul {
  list-style: none;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.1rem;
  color: var(--cream);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.nav-mobile a:hover {
  color: var(--gold);
}

@media (min-width: 900px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .nav-mobile {
    display: none;
  }
}

/* ========== Main content wrapper ========== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ========== Page title (for inner pages) ========== */
.page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-align: center;
}

.page-subtitle {
  text-align: center;
  color: rgba(245, 240, 230, 0.8);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ========== Hero (Home page) ========== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 0.85));
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
  max-width: 800px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero .tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--cream);
  opacity: 0.95;
  margin-bottom: 2rem;
}

/* Quick link buttons on home - update hrefs in index.html */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  border-radius: var(--border-radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-light);
  border-color: var(--red-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-secondary:hover {
  background: rgba(201, 168, 76, 0.15);
  transform: translateY(-2px);
}

/* ========== Welcome section (Home) ========== */
.section {
  padding: 3rem 0;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gold);
  margin-bottom: 1rem;
}

/* Small icons beside headings */
.heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  margin-right: 0.4rem;
  transform: translateY(-1px);
}

.section p {
  margin-bottom: 1rem;
  color: rgba(245, 240, 230, 0.9);
  max-width: 70ch;
}

/* ========== Cards (Lodges, News, Links) ========== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 600px) {
  .card-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--black-soft);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card-image {
  aspect-ratio: 16/10;
  background: var(--black);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.card-meta {
  font-size: 0.9rem;
  color: rgba(245, 240, 230, 0.7);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card a.btn {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

/* Lodge card specific - all lodge titles same size, style and font (no prioritisation) */
.lodge-number {
  font-size: 0.85rem;
  color: var(--gold-dark);
}

/* Our Lodges page: all lodge card titles exactly the same size and style */
.lodges-page .card .card-body .card-title,
.lodges-page h2.card-title {
  font-family: var(--font-heading) !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  color: var(--gold) !important;
  margin: 0 0 0.5rem 0 !important;
  letter-spacing: 0.02em;
}

/* Our Lodges page: make every lodge card uniform and clearly clickable */
.lodges-page .card-grid .card {
  height: 100%;
}

.lodges-page .lodge-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 420px;
}

.lodges-page .lodge-card-link:focus,
.lodges-page .lodge-card-link:focus-visible {
  outline: 2px solid rgba(201, 168, 76, 0.9);
  outline-offset: 3px;
}

.lodges-page .lodge-card-link:hover {
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.lodges-page .lodge-card-link .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* Lock the image area so every card top matches */
.lodges-page .lodge-card-link .card-image {
  height: 200px;
  aspect-ratio: auto;
  background: var(--black);
}

.lodges-page .lodge-card-link .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 600px) {
  /* Avoid forcing a fixed height on very small screens */
  .lodges-page .lodge-card-link {
    height: auto;
    min-height: 420px;
  }
}

/* Clamp description so cards don't grow by row */
.lodges-page .lodge-card-link .card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.lodges-page .lodge-card-link .card-cta {
  margin-top: auto;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--gold);
  opacity: 0.95;
}

.lodges-page .lodge-card-link .card-cta::after {
  content: ' ↗';
  font-size: 0.95em;
  opacity: 0.9;
}

/* ========== News cards ========== */
.news-card .card-meta {
  margin-bottom: 0.75rem;
}

/* ========== Calendar ========== */
.calendar-wrap {
  background: var(--black-soft);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.calendar-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold);
}

.calendar-nav {
  display: flex;
  gap: 0.5rem;
}

.calendar-nav button {
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background var(--transition);
}

.calendar-nav button:hover {
  background: var(--red-light);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day-label {
  padding: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.calendar-day {
  min-height: 80px;
  padding: 0.5rem;
  background: rgba(10, 10, 10, 0.5);
  border-radius: 2px;
  font-size: 0.85rem;
}

.calendar-day.other-month {
  opacity: 0.4;
}

.calendar-day.today {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.calendar-day .date-num {
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 4px;
}

.calendar-event {
  position: relative;
  display: block;
  font-size: 0.75rem;
  padding: 3px 8px;
  margin-top: 4px;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

/* Tooltip (hover on desktop, focus/tap on mobile) */
.calendar-event::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  width: max-content;
  max-width: 220px;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--cream);
  font-size: 0.85rem;
  line-height: 1.3;
  white-space: pre-line;
  box-shadow: var(--shadow);
  z-index: 50;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.calendar-event:focus,
.calendar-event:focus-visible {
  outline: 2px solid rgba(201, 168, 76, 0.9);
  outline-offset: 2px;
}

.calendar-event:hover::after,
.calendar-event:focus::after,
.calendar-event:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

/* Order dot baseline (colour is set inline in script.js) */
.calendar-legend .dot {
  border: 1px solid rgba(245, 240, 230, 0.25);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.calendar-legend .dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .calendar-wrap {
    padding: 1rem;
  }
  .calendar-day {
    min-height: 70px;
    padding: 0.4rem;
  }
  .calendar-event {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
  .calendar-event::after {
    max-width: 180px;
  }
}

/* ========== Gallery ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.9));
  font-size: 0.9rem;
  color: var(--cream);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img {
  max-height: 85vh;
  width: auto;
  margin: 0 auto;
}

.lightbox-caption {
  text-align: center;
  margin-top: 0.5rem;
  color: var(--cream);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: var(--red);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: var(--red-light);
}

/* ========== Hire the Hall ========== */
.room-list {
  margin-bottom: 2rem;
}

.room-item {
  background: var(--black-soft);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.room-item h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.room-item p {
  margin-bottom: 0.5rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.pricing-table th,
.pricing-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.pricing-table th {
  font-family: var(--font-heading);
  color: var(--gold);
  font-weight: 500;
}

/* ========== Forms ========== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--black-soft);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: var(--border-radius);
  color: var(--cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group .error {
  font-size: 0.85rem;
  color: #c0392b;
  margin-top: 0.25rem;
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #c0392b;
}

.form-actions {
  margin-top: 1.5rem;
}

/* ========== Links page - external link cards ========== */
.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--black-soft);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--border-radius);
  transition: border-color var(--transition), transform var(--transition);
}

.link-card:hover {
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-2px);
}

.link-card .link-logo {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--black);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.5rem;
}

.link-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.link-card p {
  font-size: 0.9rem;
  margin: 0;
  color: rgba(245, 240, 230, 0.8);
}

/* ========== Visitor info ========== */
.info-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.info-card {
  background: var(--black-soft);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.map-placeholder {
  aspect-ratio: 16/10;
  background: var(--black);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 240, 230, 0.6);
  font-size: 0.95rem;
}

.map-thumbnail {
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--border-radius);
  overflow: hidden;
  max-width: 100%;
}

/* ========== FAQ Accordion ========== */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
  background: var(--black-soft);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-align: left;
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(201, 168, 76, 0.08);
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--gold);
  transition: transform var(--transition);
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.faq-answer-inner {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  color: rgba(245, 240, 230, 0.9);
  font-size: 1rem;
}

/* ========== Contact page ========== */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-details h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.contact-details p,
.contact-details a {
  margin-bottom: 0.5rem;
  display: block;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.25rem;
  transition: background var(--transition), color var(--transition);
}

.social-links a:hover {
  background: var(--gold);
  color: var(--black);
}

/* ========== Footer ========== */
.site-footer {
  background: var(--black-soft);
  border-top: 1px solid rgba(201, 168, 76, 0.25);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(245, 240, 230, 0.85);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-newsletter .form-group {
  margin-bottom: 0.75rem;
}

.footer-newsletter input {
  padding: 0.6rem;
}

.footer-newsletter .btn {
  width: 100%;
  padding: 0.6rem;
}

.footer-badge {
  width: 80px;
  height: 80px;
  background: var(--black);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.75rem;
  text-align: center;
  margin-top: 0.5rem;
}

img.footer-badge {
  object-fit: contain;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(245, 240, 230, 0.7);
}

/* ========== Cookie consent banner (UK GDPR) ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--black-soft);
  border-top: 1px solid rgba(201, 168, 76, 0.3);
  padding: 1.25rem 1.5rem;
  z-index: 1500;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cookie-banner p {
  flex: 1 1 300px;
  margin: 0;
  font-size: 0.95rem;
  color: rgba(245, 240, 230, 0.9);
}

.cookie-banner a {
  text-decoration: underline;
}

.cookie-banner .btn {
  flex-shrink: 0;
}

/* ========== Utility ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-heading);
  z-index: 2000;
  border-radius: var(--border-radius);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}
