/* =======================================================
   Dom Coleman v9.1 Stylesheet
   Created with ChatGPT (OpenAI) + Dom's prompts
   Date: December 2025
   ======================================================= */

/* -------------------------------------------------------
   COLOUR VARIABLES
   ------------------------------------------------------- */
:root {
  --deep-red: #a20404;
  --dark-red: #5a0404;
  --grey: #d3d3d1;
  --link-blue: #044ba2;
  --white: #ffffff;
  --black: #000000;
  --accent-gold: #bfa13a;
  --max-width: 1200px;
  --gap: 1rem; /* shared grid gap for nav + gallery */
}

/* -------------------------------------------------------
   GLOBAL RESET + BASE STYLES
   ------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--white);
  color: var(--black);
  line-height: 1.5;
}

/* Global content headings */
h2 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2rem);
  color: var(--accent-gold);
  margin: 1rem 0 0.5rem;
}
h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--accent-gold);
  margin: 1rem 0 0.5rem;
}

/* -------------------------------------------------------
   LAYOUT WRAPPERS
   ------------------------------------------------------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* -------------------------------------------------------
   HEADER (Hero)
   ------------------------------------------------------- */
.site-header {
  position: relative;
  background: var(--grey) url('../images/your-header-image.jpg') no-repeat center center / cover;
  border-top: 10px solid var(--deep-red);
  padding: 3rem 1rem;
  color: var(--white);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(255,255,255,0.85) 70%,  /* soft overlay */
    rgba(255,255,255,1) 100%     /* fade to solid */
  );
  z-index: 1;
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  text-align: center;
}

.site-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 3.5rem;
  color: var(--deep-red);
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
  text-decoration: none;
}

/* Site title – fully control link states */
.site-title,
.site-title:link,
.site-title:visited,
.site-title:active {
  color: var(--deep-red);
  text-decoration: none;
}

/* Hover only */
.site-title:hover {
  color: var(--dark-red);
  text-decoration: none; /* make sure it never underlines */
}

.site-subtitle {
  font-family: 'Great Vibes', cursive;
  font-size: 2.8rem;
  color: var(--accent-gold);
  font-weight: 400;
  margin-top: 0;
}

/* Responsive scaling */
@media (max-width: 1024px) {
  .site-title { font-size: 2.8rem; }
  .site-subtitle { font-size: 2.2rem; }
}
@media (max-width: 768px) {
  .site-title { font-size: 2.2rem; }
  .site-subtitle { font-size: 1.8rem; }
  .site-header { padding: 2rem 1rem; background-position: center top; }
}

/* -------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------- */
.site-nav { width: 100%; }

.site-nav ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--gap);
  width: 100%;
}

.site-nav li { margin: 0; }

.site-nav a {
  display: block;
  text-align: center;
  padding: 0.6rem 0.8rem;
  background: var(--deep-red);
  color: var(--white);
  text-decoration: none;
  border-radius: 3px;
  font-weight: 600;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.site-nav a:hover,
.site-nav a:focus {
  background: var(--dark-red);
  opacity: 0.9;
  outline: none;
}

/* Back to top button */
.totop { text-align: right; margin: 2rem 0; }

.totop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--deep-red);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 3px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}
.totop-btn:hover,
.totop-btn:focus { background: var(--dark-red); }

.icon-up { width: 1em; height: 1em; flex-shrink: 0; }

/* -------------------------------------------------------
   MAIN CONTENT (Articles)
   ------------------------------------------------------- */
article { margin-bottom: 2rem; }
article h2 { color: var(--deep-red); margin-bottom: 0.5rem; }
article p { margin-bottom: 0.5rem; }

/* -------------------------------------------------------
   GALLERY
   ------------------------------------------------------- */
.gallery, .gallery-link{
  border-bottom: 2px solid var(--deep-red);
  padding-bottom: 1rem;
  text-align: center;
}
.gallery ul, .gallery-link ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--gap);
  list-style: none;
  padding: 0;
}
.gallery li, .gallery-link li {
  background: var(--white);
  border: 1px solid var(--grey);
  padding: 0.5rem;
}
.gallery img , .gallery-link img {
  max-width: 100%;
  height: auto;
  border: 2px solid var(--white);
  transition: border-color 0.2s ease-in-out;
}
.gallery a:hover img, .gallery-link a:hover img { border-color: var(--deep-red); }
.gallery p, .gallery-link p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--black);
}
/* Gallery Section Title */
.gallery h2, .gallery-link h2 {
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-gold);
  display: inline-block;
  padding-bottom: 0.15rem;
}

/* -------------------------------------------------------
   LIGHTBOX
   ------------------------------------------------------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  text-align: center;
  position: relative;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border: 4px solid var(--white);
}
.lightbox-caption {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--white);
  color: var(--black);
  font-size: 0.95rem;
  border-radius: 2px;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
  color: var(--white);
  cursor: pointer;
  background: rgba(0,0,0,0.4);
  border: none;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.lightbox-close:hover { background: rgba(0,0,0,0.6); opacity: 0.9; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  background: rgba(0,0,0,0.4);
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(0,0,0,0.6); opacity: 0.9; }

/* -------------------------------------------------------
   FOOTER
   ------------------------------------------------------- */
.site-footer {
  background: var(--deep-red);
  color: var(--white);
  margin-top: 2rem;
  padding: 1rem;
}
.footer-inner {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: var(--gap);
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-footer section { flex: 1 1 auto; position: relative; }
.site-footer ul { list-style: none; margin: 0; padding: 0 0.5rem; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--white); text-decoration: underline; }
.site-footer a:hover { color: var(--accent-gold); }
.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

/* Footer Dividers */
@media (min-width: 769px) {
  .site-footer section:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 1px;
    background-color: rgba(255,255,255,0.2);
  }
}
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-branding { align-items: center; }
  .site-footer section { width: 100%; padding: 0.1rem 0; }
  .site-footer section:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background-color: rgba(255,255,255,0.3);
  }
}

/* Ensure site title link never shows default link colours/underline.
   Target the anchor inside the .site-title element and all link states. */
.site-title a,
.site-title a:link,
.site-title a:visited,
.site-title a:active,
.site-title a:hover,
.site-title a:focus {
  color: var(--deep-red) !important;       /* keep normal colour */
  text-decoration: none !important;       /* never underline */
}

/* Only change colour on hover/focus for accessibility */
.site-title a:hover,
.site-title a:focus {
  color: var(--dark-red) !important;
  outline: 2px solid transparent; /* keep keyboard focus visible if you want, or style differently */
}

/* Optional: smooth colour transition */
.site-title a {
  transition: color 0.18s ease;
}

/* ======================================================
   HERO SLIDESHOW — Pure CSS Fade Rotator (8 slides)
   ====================================================== */

/* Base styles for each slide */
.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 48s infinite; /* 8 slides × 6s each */
}

/* Individual delays per slide */
.hero-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .slide:nth-child(2) { animation-delay: 6s; }
.hero-slideshow .slide:nth-child(3) { animation-delay: 12s; }
.hero-slideshow .slide:nth-child(4) { animation-delay: 18s; }
.hero-slideshow .slide:nth-child(5) { animation-delay: 24s; }
.hero-slideshow .slide:nth-child(6) { animation-delay: 30s; }
.hero-slideshow .slide:nth-child(7) { animation-delay: 36s; }
.hero-slideshow .slide:nth-child(8) { animation-delay: 42s; }

/* Fade cycle — adjust timing here if needed */
@keyframes heroFade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }  /* fade in */
  20%  { opacity: 1; }  /* stay visible */
  25%  { opacity: 0; }  /* fade out */
  100% { opacity: 0; }  /* hidden until next cycle */
}

/* Keep your header text above everything */
.site-header .header-inner {
  position: relative;
  z-index: 2;
}

/* Your original overlay stays on top, below text */
.site-header::before {
  z-index: 1;
}
