/*
 * J R Firby - additions on top of the compiled template.css (there is no SCSS source, so
 * everything new lives here). Loaded straight after template.css by helper.php.
 */

:root {
  --jr-red: #f20000;      /* the red of the 2026 logo */
  --jr-red-dark: #b80000; /* strip above the header */
}

/* ---------------------------------------------------------------------------
 * Header: logo red, logo image, contact details with Facebook / WhatsApp links
 * ------------------------------------------------------------------------- */
#masthead #header { background-color: var(--jr-red) !important; }
#masthead #top    { background-color: var(--jr-red-dark) !important; }

#header .logo { margin: 1rem 0; line-height: 1; font-size: 1rem; }
#header .logo a { display: block; max-width: 360px; margin: 0 auto; border-radius: 0; }
#header .logo img { display: block; width: 100%; height: auto; }

/* Contact details: two rows of white text, icon + text, divided by thin bars (as the client's mock) */
#header .header-details { padding-bottom: 1rem; color: #fff; }
#header .header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
#header .header-row-main { font-size: 1.05rem; }
#header .header-row-sub  { margin-top: .6rem; font-size: .9rem; }
#header .header-row a,
#header .header-row .header-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
#header .header-row a:hover > span,
#header .header-row a:focus > span { text-decoration: underline; }
#header .header-row svg { flex-shrink: 0; width: 1.15em; height: 1.15em; fill: currentColor; }
#header .header-row-sub svg { width: 1.5em; height: 1.5em; }

@media (max-width: 575.98px) {
  /* the address is long: let it wrap on phones */
  #header .header-row a, #header .header-row .header-item { white-space: normal; text-align: left; }
}

@media (min-width: 992px) {
  #header .logo a { margin: 0; }
  #header .header-details { padding-bottom: 0; }
  #header .header-row { justify-content: flex-end; gap: .35rem 0; }
  #header .header-row-main { font-size: .95rem; }
  #header .header-row-sub  { font-size: .8rem; }
  #header .header-row > li + li { margin-left: .75rem; padding-left: .75rem; border-left: 2px solid rgba(255, 255, 255, .85); line-height: 1.3; }
}

@media (min-width: 1200px) {
  #header .header-row-main { font-size: 1.15rem; }
  #header .header-row-sub  { font-size: .95rem; }
  #header .header-row > li + li { margin-left: 1.25rem; padding-left: 1.25rem; }
}

/* ---------------------------------------------------------------------------
 * Page banner: one full-width picture with the page heading written on it
 * ------------------------------------------------------------------------- */
#hero.page-hero {
  position: relative;
  height: 34vw;
  min-height: 220px;
  max-height: 520px;
  overflow: hidden;
  background-color: #343a40;
}
#hero.page-hero .page-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
#hero.page-hero .page-hero-text {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 4rem 0 1.5rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, 0) 100%);
}
#hero.page-hero .page-hero-heading {
  margin: 0;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
#hero.page-hero .page-hero-subheading {
  margin: .5rem 0 0;
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

/* No picture chosen: the heading on a plain dark band */
#hero.page-hero.page-hero-noimage { height: auto; min-height: 0; max-height: none; }
#hero.page-hero.page-hero-noimage .page-hero-text { position: static; padding: 2rem 0; background: none; }

@media (min-width: 768px) {
  #hero.page-hero .page-hero-text { padding-bottom: 2.25rem; }
  #hero.page-hero.page-hero-noimage .page-hero-text { padding: 3rem 0; }
  #hero.page-hero .page-hero-heading { font-size: 2.75rem; }
  #hero.page-hero .page-hero-subheading { font-size: 1.35rem; }
}

@media print {
  #hero.page-hero { height: auto; min-height: 0; background: none; }
  #hero.page-hero .page-hero-image { display: none; }
  #hero.page-hero .page-hero-text { position: static; padding: 0; color: #000; background: none; }
  #hero.page-hero .page-hero-heading { color: #000; text-shadow: none; }
  #hero.page-hero .page-hero-subheading { text-shadow: none; }
}
