/* =========================================================
   CSS RESET – Meyer (with box-sizing added to reset)
   ========================================================= */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, embed,
figure, figcaption, footer, header,
menu, nav, section,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

article, aside, figure, figcaption, footer, header, nav, section {
  display: block;
}

* {
  box-sizing: border-box;
}

/* =========================================================
   COLOR PALETTE
   ========================================================= */

:root {
  --background-main:  #050b10;
  --background-panel: #0d1821;
  --text-main:        #e5e7eb;
  --text-muted:       #8a9ab0;
  --accent:           #f59e0b;
  --accent-dark:      #b45309;
  --border-subtle:    #1c2a38;
  --shadow-card:      0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-hover:     0 12px 32px rgba(0, 0, 0, 0.5);
  --glow-accent:      0 4px 20px rgba(245, 158, 11, 0.3);
}

/* =========================================================
   BASE TYPOGRAPHY
   (Oswald loaded via <link> in HTML for performance)
   ========================================================= */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--background-main);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.75;
}

/* =========================================================
   HEADINGS  –  contrasting display font
   ========================================================= */

h1, h2, h3 {
  font-family: 'Oswald', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 1rem;
}

/* Decorative amber underline on section h2s */
h2::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background: linear-gradient(to right, var(--accent), transparent);
  margin-top: 0.7rem;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

/* Suppress decoration inside amber panels and hero */
.intro-panel h1::after,
.intro-panel h2::after,
.hero-content h1::after,
.card-grid > h2::after,
.cta h2::after {
  content: none;
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  margin-bottom: 0.75rem;
}

p {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

p + p {
  margin-top: 1rem;
}

/* =========================================================
   SCREEN-READER ONLY  –  visually hidden but accessible
   ========================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* =========================================================
   GLOBAL LINKS  –  all five states in required order
   ========================================================= */

a:link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 158, 11, 0.4);
  transition: color 0.2s ease, background-color 0.2s ease;
}

a:visited {
  color: #c8871a;
  border-bottom-color: rgba(200, 135, 26, 0.4);
}

a:hover {
  color: #000;
  background-color: var(--accent);
  padding: 0.15rem 0.4rem;
  border-radius: 0.2rem;
  border-bottom-color: transparent;
}

a:active {
  color: #000;
  background-color: var(--accent-dark);
  padding: 0.15rem 0.4rem;
  border-radius: 0.2rem;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.2rem;
}

/* =========================================================
   HEADER  –  dot-grid background, sticky sidebar on desktop
   ========================================================= */

header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  /* Subtle amber dot grid — adds depth without distraction */
  background-color: var(--background-panel);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(245, 158, 11, 0.08) 1px, transparent 0);
  background-size: 22px 22px;
}

/* =========================================================
   LOGO  –  SVG icon + wordmark, flexbox layout
   ========================================================= */

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  text-decoration: none;
  border-bottom: none;
}

.site-logo:link,
.site-logo:visited {
  border-bottom: none;
  background: none;
  padding: 0;
}

.site-logo:hover,
.site-logo:active {
  background: none;
  border-bottom: none;
  padding: 0;
}

.logo-icon {
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.4s ease;
}

.site-logo:hover .logo-icon {
  transform: rotate(60deg);
}

.logo-name {
  display: flex;
  flex-direction: column;
  font-family: 'Oswald', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  line-height: 1;
  transition: color 0.2s ease;
}

.site-logo:hover .logo-name {
  color: #fff;
}

.logo-tagline {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 3.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.4rem;
}

/* =========================================================
   NAVIGATION  –  styled via aria-label attribute
   ========================================================= */

nav[aria-label="Main navigation"] ul {
  list-style: none;
}

nav[aria-label="Main navigation"] li {
  margin-bottom: 0.35rem;
}

nav[aria-label="Main navigation"] a:link,
nav[aria-label="Main navigation"] a:visited {
  display: inline-block;
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  border-bottom: none;
  background: none;
  padding: 0.25rem 0 0.25rem 0.6rem;
  margin-left: -2px;
  transition: color 0.2s ease, border-left-color 0.2s ease, padding-left 0.2s ease;
}

nav[aria-label="Main navigation"] a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
  background: none;
  border-bottom: none;
  padding: 0.25rem 0 0.25rem 1rem;
  border-radius: 0;
  margin-left: -2px;
}

nav[aria-label="Main navigation"] a:active {
  color: var(--accent-dark);
  background: none;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left-color: var(--accent-dark);
}

nav[aria-label="Main navigation"] a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =========================================================
   MAIN LAYOUT
   ========================================================= */

main {
  padding: 2.5rem 1.5rem 4rem;
}

main > section,
main > div {
  margin-bottom: 4rem;
}

/* =========================================================
   HERO  –  full-bleed image with gradient amber overlay
   ========================================================= */

.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  margin-bottom: 4rem;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.6s ease;
}

.hero:hover img {
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 2rem 1.75rem 2.25rem;
}

/* Diagonal cut at the top of the amber panel */
.hero-content::before {
  content: '';
  position: absolute;
  top: -1.5rem;
  left: 0;
  width: 100%;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero-content h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #000;
  margin-bottom: 0.6rem;
}

.hero-content p {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.75);
  margin-bottom: 0;
  max-width: 38rem;
}

/* Hero CTA — dark pill button */
.hero-content a:link,
.hero-content a:visited {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background-color: #000;
  color: var(--accent);
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-bottom: none;
  border-radius: 0.2rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-content a:hover {
  background-color: #fff;
  color: #000;
  border-bottom: none;
  padding: 0.75rem 2rem;
  border-radius: 0.2rem;
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
}

.hero-content a:active {
  background-color: var(--accent);
  color: #000;
  padding: 0.75rem 2rem;
  transform: none;
}

/* =========================================================
   INTRO PANELS  –  gradient amber header for inner pages
   ========================================================= */

.intro-panel {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 2.75rem 1.75rem;
  margin-bottom: 4rem;
  position: relative;
}

/* Diagonal shadow-edge at bottom of intro panel */
.intro-panel::after {
  content: '';
  position: absolute;
  bottom: -1.25rem;
  left: 0;
  width: 100%;
  height: 1.25rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.intro-panel h1,
.intro-panel h2 {
  color: #000;
  margin-bottom: 1.1rem;
}

.intro-panel p {
  color: rgba(0, 0, 0, 0.78);
  max-width: 44rem;
}

/* =========================================================
   IMAGES
   ========================================================= */

img {
  max-width: 100%;
  display: block;
}

/* =========================================================
   CARD GRID  –  figures on homepage, divs on inner pages
   ========================================================= */

.card-grid {
  display: block;
}

.card-grid > h2 {
  margin-bottom: 2.5rem;
}

/* Card base – amber top-border reveal on hover */
.card-grid figure,
.card-grid .card {
  margin-bottom: 2.5rem;
  background: var(--background-panel);
  border-radius: 0.5rem;
  overflow: hidden;
  border-top: 3px solid transparent;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-top-color 0.25s ease;
}

.card-grid figure:hover,
.card-grid .card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--accent);
}

/* Images – descendant selectors, no per-image classes needed */
.card-grid figure img,
.card-grid .card img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.4s ease;
}

.card-grid figure:hover img,
.card-grid .card:hover img {
  transform: scale(1.04);
}

figcaption,
.card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
}

figcaption h3,
.card-body h3 {
  margin-bottom: 0.6rem;
}

figcaption p,
.card-body p {
  font-size: 0.95rem;
}

.card-body ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =========================================================
   CTA SECTIONS  –  amber button links
   ========================================================= */

.cta h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  margin-bottom: 1.25rem;
}

.cta p {
  font-size: 1.05rem;
}

/* Style CTA links as proper buttons */
.cta a:link,
.cta a:visited {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.85rem 2.25rem;
  background-color: var(--accent);
  color: #000;
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-bottom: none;
  border-radius: 0.2rem;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta a:hover {
  background-color: #fff;
  color: #000;
  border-bottom: none;
  padding: 0.85rem 2.25rem;
  border-radius: 0.2rem;
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
}

.cta a:active {
  background-color: var(--accent-dark);
  color: #000;
  padding: 0.85rem 2.25rem;
  transform: none;
}

/* =========================================================
   FIND US  –  address, opening times, map
   ========================================================= */

address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 2;
  margin-top: 1rem;
}

.opening-times {
  list-style: none;
  margin-top: 0.75rem;
}

.opening-times li {
  padding: 0.55rem 0 0.55rem 1rem;
  border-left: 2px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
  transition: border-left-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.opening-times li:hover {
  border-left-color: var(--accent);
  color: var(--text-main);
  padding-left: 1.5rem;
}

.map-container {
  margin-top: 2rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  display: block;
  border: none;
}

/* =========================================================
   ABOUT  –  "Meet Alf" personalisation block
   ========================================================= */

.about-person {
  position: relative;
  background: linear-gradient(to right, rgba(245, 158, 11, 0.06), transparent);
  border-left: 4px solid var(--accent);
  padding: 2rem 2rem 2rem 1.75rem;
  border-radius: 0 0.5rem 0.5rem 0;
  overflow: hidden;
}

/* Decorative large quotation mark in background */
.about-person::before {
  content: '\201C';
  position: absolute;
  top: -1.5rem;
  left: 1rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 8rem;
  color: rgba(245, 158, 11, 0.1);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.about-person h2 {
  margin-bottom: 1rem;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  background-color: var(--background-panel);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(245, 158, 11, 0.04) 1px, transparent 0);
  background-size: 22px 22px;
}

/* Override the global p max-width so the centred text fills the full footer width */
footer p {
  max-width: none;
  margin: 0;
  color: inherit;
}

/* =========================================================
   DESKTOP  –  min-width: 900px
   ========================================================= */

@media (min-width: 900px) {

  body {
    display: grid;
    grid-template-columns: 18rem 1fr;
    grid-template-rows: 1fr auto;
    min-height: 100vh;
  }

  header {
    grid-column: 1;
    grid-row: 1;
    padding: 3rem 2rem;
    border-bottom: none;
    border-right: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }

  main {
    grid-column: 2;
    grid-row: 1;
    padding: 3.5rem 4.5rem 6rem;
  }

  .hero {
    min-height: 75vh;
  }

  .hero-content {
    padding: 2.5rem 3.5rem 3rem;
  }

  .intro-panel {
    padding: 3.5rem 3.5rem 4rem;
  }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: stretch;
  }

  .card-grid > h2 {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  footer {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .map-container iframe {
    height: 400px;
  }

}

/* =========================================================
   MOBILE  –  max-width: 899px
   ========================================================= */

@media (max-width: 899px) {

  header {
    padding: 1.25rem 1.5rem;
  }

  .site-logo {
    margin-bottom: 1.25rem;
  }

  .logo-name {
    font-size: 1.35rem;
  }

  nav[aria-label="Main navigation"] ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
  }

  nav[aria-label="Main navigation"] li {
    margin-bottom: 0;
  }

  /* On mobile: replace left-border with bottom-border for nav hover */
  nav[aria-label="Main navigation"] a:link,
  nav[aria-label="Main navigation"] a:visited {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0.2rem 0;
    margin-left: 0;
  }

  nav[aria-label="Main navigation"] a:hover {
    border-left: none;
    border-bottom: 2px solid var(--accent);
    padding: 0.2rem 0;
    margin-left: 0;
  }

  nav[aria-label="Main navigation"] a:active {
    border-left: none;
    border-bottom: 2px solid var(--accent-dark);
    padding: 0.2rem 0;
  }

}
