/* ===========================
   STOP BEACON SOLAR - STYLES
   =========================== */

   :root {
    --green: #fff;
    --yesNo: #95d1f9;
    --yellow: #1c6d84; /* refined gold */
    --blue: #1c6d84;
    --paper: #fff;
    --red: #c91100;
    --ink: #111;
    --radius: 12px;
    --shadow: 0 6px 20px rgba(0, 0, 0, .15);
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
.hero-image {
  width: auto;
  top:0;
  height: 90vh; /* or whatever height you want */
  object-fit: cover;
  display: block;
}



  body {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  .container {
    width: min(1100px, 92vw);
    margin: 0 auto;
  }
  
.container-template {
  width: 90vw;
  max-width: 90vw;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .container-template {
    width: 50vw;
    max-width: 50vw;
  }
}



  /* HEADER */
  .site-header {
    background: transparent;
    color: #fff;
    padding: .8rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: none;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, color 0.3s ease;
  }
  
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
  }
  
  .brand {
    font-size: 1.4rem;
    font-weight: 900;
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
  }
  
  /* HEADER ON SCROLL */
  .site-header.scrolled {
    background: #fff;
    box-shadow: var(--shadow);
  }
  
  .site-header.scrolled .brand,
  .site-header.scrolled a {
    color: var(--red);
  }
  
  /* HAMBURGER */
  .hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .hamburger span {
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
  }
  
  /* OVERLAY MENU */
  .overlay-menu {
    position: fixed;
    inset: 0;
    background: var(--yellow);
    color: var(--ink);
    display: none;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
    z-index: 1000;
  }
  
  .overlay-menu.open {
    display: flex;
  }
  
  .overlay-menu ul {
    list-style: none;
  }
  
  .overlay-menu li {
    margin-bottom: 1rem;
  }
  
  .overlay-menu a,
  .overlay-menu button.has-submenu {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    text-decoration: none;
  }
  
  .overlay-menu .submenu {
    margin-top: .5rem;
    margin-left: 1rem;
    display: none;
  }
  
  .overlay-menu .submenu.open {
    display: block;
  }
  
  .close-menu {
    background: none;
    border: none;
    color: var(--paper);
    font-size: 2rem;
    align-self: flex-end;
    cursor: pointer;
  }
  
  /* HERO */
  .hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
  }
  
  .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  
  .hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
  }
  
  .hero__inner {
    position: relative;
    z-index: 2;
    padding: 6rem 1rem;
  }
  
  .hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 900;
  }
  
  .t-yes,
  .t-no {
    color: #c91100;
  }
  
  /* SECTIONS */
  .section {
    padding: 5rem 1rem;
    line-height: 1.7;
  }
  
  .section h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1.2rem;
    font-weight: 800;
  }
  
  .section--muted {
    background: #f6f6f6;
  }
  
  .section--accent {
    background: var(--red);
    color: #fff;
  }
  
  /* CTA SECTION */
  .section--cta {
    background: #f9faf9;
  }
  
  .cta-grid {
    display: grid;
    gap: 1.5rem;
  }
  
  @media (min-width: 800px) {
    .cta-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  .cta-card {
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    color: #fff;
  }
  
  .cta-blue {
    background: var(--blue);
  }
  
  .cta-yellow {
    background: var(--yellow);
    color: var(--green);
  }
  
  .btn--white {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    color: var(--green);
    font-weight: 700;
    padding: .7rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    margin-top: 1rem;
    box-shadow: var(--shadow);
  }
  
  .btn--white::before {
    content: "➜";
  }
  
  /* GRID ICONS */
  .grid--icons {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .icon-card {
    background: #f9faf9;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
  }
  
  .icon {
    font-size: 2rem;
    margin-bottom: .5rem;
  }
  
  @media (min-width: 800px) {
    .grid--icons {
      grid-template-columns: repeat(5, 1fr);
    }
  }
  
  /* NEWS */
  .news-grid {
    display: grid;
    gap: 1rem;
  }
  
  .news-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
  }
  
  .news-card .meta {
    font-size: .9rem;
    color: #555;
  }
  
  /* FOOTER */
  .site-footer {
    background: #f2f2f2;
    color: var(--ink);
    padding: 3rem 1rem;
    text-align: center;
  }
  
  .site-footer h2 {
    color: var(--yellow);
    font-weight: 900;
    margin-bottom: 1rem;
  }
  
  .site-footer a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
  }
  
  .site-footer a:hover {
    text-decoration: underline;
  }
  
  .footer-form {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    margin-top: 1.2rem;
    align-items: center;
  }
  
  .footer-form input,
  .footer-form textarea {
    width: 100%;
    max-width: 480px;
    padding: .8rem 1rem;
    border: none;
    border-radius: 6px;
  }
  
  .footer-form label {
    font-size: .9rem;
  }
  
  .footer-form .btn {
    background: var(--yellow);
    color: var(--green);
    font-weight: 800;
    padding: .8rem 1.5rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
  }
  
  .footer-form .btn:hover {
    transform: translateY(-2px);
    transition: all .25s ease;
  }
  
  .form-msg {
    margin-top: .5rem;
    color: var(--green);
    font-weight: 600;
  }
  
  .social {
    margin: 1rem 0;
  }
  
  .fb-ico {
    background: var(--yellow);
    color: var(#f2f2f2);
    font-weight: 900;
    border-radius: 50%;
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    margin-right: .5rem;
  }
  
  /* BACK TO TOP */
  .backtotop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--yellow);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
    box-shadow: var(--shadow);
  }
  
  .backtotop::before {
    content: "↑";
    font-size: 1.4rem;
    color: var(--green);
    font-weight: 900;
    line-height: 50px;
  }
  
  /* TYPOGRAPHY */
  h1, h2, h3 {
    line-height: 1.2;
  }
  
  p, li {
    font-size: 1.05rem;
    margin-bottom: 1rem;
  }
  
  /* Lists */
  ul {
    list-style: disc;
    margin-left: 1.5rem;
  }
  
  a {
    color: var(--ink);
  }
  
  @media (min-width: 1000px) {
    .hero__inner {
      padding: 8rem 1rem;
    }
  }
  
  /* DROPDOWN MENU */
  .dropdown-menu {
    background: var(--paper);
    color: #fff;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow);
  }
  
  .dropdown-menu.open {
    display: block;
  }
  
  .dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .dropdown-menu > ul > li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .dropdown-menu a,
  .dropdown-menu button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    color: var(--ink);
    font-weight: 600;
    padding: 1rem;
    border: none;
    font-size: 1.1rem;
  }
  
  .dropdown-menu .has-submenu > button .arrow {
    float: right;
    transition: transform 0.3s ease;
  }
  
  .dropdown-menu .has-submenu.open > button .arrow {
    transform: rotate(180deg);
  }
  
  .dropdown-menu .submenu {
    display: none;
    background: var(--paper);
    color: var(--ink);
  }
  
  .dropdown-menu .has-submenu.open .submenu {
    display: block;
  }
  
  .dropdown-menu .submenu a {
    color: var(--ink);
    padding: .9rem 2rem;
  }
  
  /* PAGE TEMPLATE STYLES */
  .page-hero {
    position: relative;
    height: 45vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
  }
  
  .page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
  }
  
  .page-hero h1 {
    position: relative;
    z-index: 1;
    text-align: center;
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
  }
  
  .page-subtitle {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    color: var(--paper);
    margin-top: .5rem;
  }
  
  .page-content {
    padding: 3rem 1rem;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .page-content img {
    width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
  }
  
  blockquote {
    border-left: 4px solid #0a0a0a;
    padding: 0.8rem 1.2rem;
    margin: 2rem 0;
    background: #757575;
    border-radius: var(--radius);
    color: var(--paper);
    font-style: italic;
  }
  
  .page-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
  }
  
  .page-author .author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    background: var(--yellow);
    color: var(--green);
    padding: .8rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow);
    margin-top: 1rem;
    transition: all .3s ease;
  }
  .btn:hover {
    transform: translateY(-2px);
  }
  
  /* Carousel */
  .carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 2rem 0 3rem;
  }
  .carousel-slide {
    display: none;
    width: 100%;
  }
  .carousel-slide.active {
    display: block;
  }
  .carousel-slide img {
    width: 100%;
    border-radius: 12px;
  }
  .carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: .4rem .7rem;
    cursor: pointer;
  }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }
  
  /* Map */
  .map-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
  
  /* Contact Form */
  .contact-form {
    margin: 3rem auto 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 650px;
    padding: 2rem 2.5rem;
    background: #f9faf9;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.05rem;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: var(--green);
    outline: none;
  }
  
  .contact-form label {
    font-size: 0.95rem;
    line-height: 1.4;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .contact-form button {
    background: var(--yellow);
    color: var(--green);
    font-weight: 800;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: var(--shadow);
    align-self: center;
    margin-top: 1rem;
  }
  
  .contact-form button:hover {
    transform: translateY(-2px);
    transition: all 0.25s ease;
  }
  
  .form-message {
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--green);
    text-align: center;
  }


  /* Ensure the header overlays the hero without a white line */
.site-header {
  position: fixed; /* instead of sticky */
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  color: #fff;
  box-shadow: none;
  z-index: 999;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, color 0.3s ease;
}

  
/* Header style when scrolled */
.site-header.scrolled {
  background: #fff; /* solid white background */
  color: var(--red);
  box-shadow: var(--shadow);
}

.site-header.scrolled .brand,
.site-header.scrolled a {
  color: var(--red);
}

/* Also adjust hamburger lines for visibility */
.site-header.scrolled .hamburger span {
  background: var(--red);
}

/* ==========================================
   HEADER: Transparent → White on Scroll
   ========================================== */
   .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    color: #fff;
    box-shadow: none;
    z-index: 999;
    transition: background-color 0.5s ease, box-shadow 0.5s ease, color 0.4s ease;
  }
  
  /* Initial (over video): white text + hamburger lines */
  .site-header .brand {
    color: #fff;
  }
  
  .site-header .hamburger span {
    background: #fff;
    transition: background 0.4s ease;
  }
  
  /* When scrolled down */
  .site-header .scrolled {
    background: #fff;
    box-shadow: var(--shadow);
    color: var(--red);
  }
  
  /* Change logo + links + hamburger to red on white */
  .site-header.scrolled .brand,
  .site-header.scrolled a {
    color: var(--red);
  }
  
  .site-header.scrolled .hamburger span {
    background: var(--red);
  }
  


  






  /* ===========================
   STOP BEACON SOLAR MAP SECTION (final, tested)
   =========================== */

#map,
#map .container {
  display: block !important;
  position: relative;
  overflow: visible;
  padding-top: 2rem;
}

#mapid {
  width: 100%;
  min-height: 480px;
  height: 480px;
  display: block;
  position: relative;
  background: #f9f9f9; /* visible while tiles load */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  z-index: 1;
}

.postcode-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.postcode-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
}

.postcode-form button {
  padding: 0.75rem 1.5rem;
}

.map-note {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
  text-align: center;
}

.leaflet-container {
  z-index: 1 !important;
}

















/* base header scroll style */
/* =========================================================
   CAROUSEL — ROOT CONTAINER
========================================================= */

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 2rem 0;
  border-radius: 8px;

  /* Prevent page fade-in animation overwriting transforms */
  transform: none !important;
}

/* =========================================================
   TRACK — HORIZONTAL STRIP OF SLIDES
========================================================= */

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  min-height: 1px;                     /* Safari fix */
  transition: transform 0.45s ease;
  transform: translateZ(0);            /* enable GPU */
  -webkit-transform: translateZ(0);    /* Safari GPU fix */

  /* Prevent fade-in animation conflicts */
  transform: none !important;
}

/* =========================================================
   SLIDES — EACH IMAGE WRAPPER
========================================================= */

.carousel-slide {
  flex: 0 0 100%;            /* full width, no shrinking */
  width: 100%;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;         /* safe, no height issues */
}

/* =========================================================
   BUTTONS — NEXT / PREVIOUS
========================================================= */

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255,255,255,0.85);
  padding: 0.45rem 0.7rem;
  font-size: 2rem;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
}

.carousel-btn:hover {
  background: rgba(255,255,255,1);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* =========================================================
   OPTIONAL FADE MODE
========================================================= */

.carousel.fade-mode .carousel-track {
  display: block;
  position: relative;
  transform: none !important;    /* avoid wipe-out */
}

.carousel.fade-mode .carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.carousel.fade-mode .carousel-slide.active {
  opacity: 1;
  position: relative;
}




.footer-btn {
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.3s ease;
}

/* Pressed / sending animation */
.footer-btn.is-sending {
  transform: scale(0.97);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  cursor: wait;
}

.footer-btn.is-sending::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: footer-btn-pulse 0.8s infinite;
}

/* Quick "success" flash */
.footer-btn.is-success {
  animation: footer-btn-pop 0.25s ease-out;
}

@keyframes footer-btn-pulse {
  0% {
    opacity: 0.15;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

@keyframes footer-btn-pop {
  0% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}

.footer-form .form-msg {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.footer-form .form-msg.success {
  color: #0a7a2a;
}

.footer-form .form-msg.error {
  color: #c91100;
}


.hero-video::-webkit-media-controls {
  display: none !important;
}

.hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
}


