/* Universal Image Elements
-------------------------------------------------------------- */
/* Header Logo */
#logo {
  width: 525px;
  height: 151px;
  left: 0px;
  top: -26px;
  float:left;
  position:absolute;
}

blockquote{background: rgba(136, 189, 87, 0.1);
padding: 10px;}


/* Header Contact Details */
#contact {
  width: 435px;
  height: 120px;
  top:-26px;
  float:right;
  position:relative;
}


/* Home page Banner */
#banner {
  width:960px;
  min-height:220px;
  margin-top:10px;
}


/* Call-to-action */
#call-to-action {
  margin-bottom:20px;
}




/* Footer Styles
-------------------------------------------------------------- */



/* General Footer Styles */
#footer-contact {
  margin-top:30px;
}

#footer-contact p {
    margin-bottom: 0px;
}

#footer-contact-top {
  background:url('img/footer-panel_top.png') no-repeat;
  width:960px;
  height:12px;
}

#footer-contact-middle {
  background:url('img/footer-panel_middle.png') repeat-y;
  width:960px;
  padding-left:0px;
  padding-right:0px;
}

#footer-contact-main {
  width:685px;
  float:left;
  padding-top:10px;
}


#footer-contact-side {
  width:260px;
  float:right;
  margin-top:10px;
}


#footer-contact-bottom {
  background:url('img/footer-panel_bottom.png') no-repeat;
  width:960px;
  height:12px;
}



/* Background and Wrapper or Container
-------------------------------------------------------------- */

#horizon {
  background:url('img/bg.png') repeat-x;
  min-width:960px;
  min-height:294px;
}

#wrapper {
  width:960px;
  margin:0 auto;
}


/* Primary Navigation - Top Level items
-------------------------------------------------------------- */
#nav-primary {
  background:url('img/nav-primary_bg.png');
  width:960px;
  height:40px;
  position:relative;
}

  #nav-primary ul {
    background:none;
    margin:0;
    padding:0;
    position:relative;
    top:10px;
  }
  
  #nav-primary ul li {
    float:left;
    list-style-type:none;
    margin-top:-3px;
    position:relative;
  }
  
  #nav-primary ul li.first {

  }
  
  #nav-primary ul li.last {
    padding-right:0px;
  }
  
/* Primary Navigation links */
  #nav-primary ul li a {
    color: #597759;
    text-decoration:none;
    font-size:16px;
    padding-left:0px;
    padding-right:18px;
    font-weight:bold;
  }

/* Primary Navigation links on hover */
  #nav-primary ul li a:hover {
    color: #88BD57;
   text-decoration:none;
  }



/* Primary Navigation Drop-downs - Top Level items drop-down sub-menu
---------------------------------------------------------------------- */
  #nav-primary ul ul {
    display:none;
    position:absolute;
    top:25px;
    left:0;
    padding-top:10px;
    z-index:9999;
  }

/* Primary Nav drop-down item boxes */
  #nav-primary ul ul li {
    background: #AAB5C1;
    border:1px solid #969EA9;
    width: 180px;
    height:36px;
    padding-top:6px;
  }


/* Primary Nav drop-down link text */
  #nav-primary ul ul li a {
    color: #fff;
    padding-left:10px;
    padding-top:5px;
    padding-bottom:5px;
    line-height:30px;
  }


  #nav-primary ul li:hover ul {
    display:block;
  }

/* Primary Nav drop-down item box backgrounds on hover */
  #nav-primary ul ul li:hover {
    background: #969EA9;
  }

/* Primary Nav drop-down link text on hover */
  #nav-primary ul ul li:hover a {
    color:#ff0000;
  }
  
  
/* Secondary Navigation - Top of page items
-------------------------------------------------------------- */
#nav-secondary {
  background:url('../images/nav-second_bg.jpg');
  width:960px;
  height:26px;
  position:relative;
}

    #nav-secondary ul {
        float:right;
        margin:5px 0px 0px 0px;
        position:absolute;
        right:0;
    }
  
  #nav-secondary ul li {
    border-right:1px solid white;
    float:left;
    padding-left:20px;
    padding-right:20px;
    height:13px;
    list-style-type:none;
  }
  
  #nav-secondary ul li.last {
    border:none;
  }
  
  #nav-secondary ul li a {
    color:white;
    text-decoration:none;
    position:relative;
    top:-4px;
  }
  
  
  
  
/* Other Bits
-------------------------------------------------------------- */
  
#header {
  width:960px;
  height:125px;
  position:relative;
}

#content {
  background:url('img/content-top-bg.png');
  min-height:244px;
  width:960px;
  padding-top:10px;
  background-repeat:no-repeat;
}




  #content ul {
    margin-left:10px;
  }
  
  #content ol {
    margin-left:20px;
  }

 #banner ul {
   margin-left:0px;   
 }

 #banner ol {
   margin-left:0px;   
 }

#main {
  margin-top:20px;
}

#main-content {
  width:640px;
  float:left;
}

#main-title {
  width:960px;
  background:url('img/non-home-bannerBG.jpg');
  height:70px;
  margin-top:10px;
  position:relative;
}

  #main-title h1 {
    position:absolute;
    top:13px;
    left:20px;
  }

.home-panel {
  width:300px;
  float:left;
  margin-right:30px;
  margin-top:0px;
}

  .home-panel h2 {
    padding-bottom:5px;
  }
  
  .home-panel img {
    padding-bottom:7px;
  }

#sidebar {
  width:300px;
  float:right;
}

.sidebar-item {
  margin-top:0px;
  padding-top:0px;
}

  .sidebar-item h2,
  .sidebar-item h3,
  .sidebar-item h4,
  .sidebar-item h5,
  .sidebar-item h6 {
    margin-top:0px;
  }  

.sidebar-nav ul {
  margin-top:10px;
}
  
.sidebar-nav ul li {
  list-style-type:none;
}

#contact-form {
  width:95%;
  padding-bottom:10px;
  margin-bottom:25px;
}

#contact-form input {
  width:340px;
  height:22px;
}

#contact-form textarea {
  width:560px;
}

#contact-form input.submit {
  background:url('img/send.png');
  background-repeat:no-repeat;
  width:100px;
  height:40px;
  border:0;
  font-size:0;
  text-indent:-9999px;
  line-height:0px;
  margin-top:15px;
  cursor:pointer;
}

#contact-form p {
  margin-top:15px;
  margin-bottom:2px;
}

#contact-details {
}

  #contact-details h2 {
    margin-bottom:15px;
    margin-top:0;
  }
  
  #contact-details p {
    margin-bottom:15px;
    margin-top:0;
  }


#footer-nav {
  padding-top:10px;
  width:960px;
}

.navcentre {
  margin:0 auto;  
  display:table;
  white-space:nowrap;
}
.navcentre ul {
  list-style:none;
  margin:0;
  padding:0;
  display:table-row;
  white-space:nowrap;
}

.navcentre ul li{
  display:table-cell;
  line-height:2.2em;
}
.navcentre ul a{
  display:block;
  padding-left:33px;
  padding-right:33px;
  text-decoration:none;
  font-size:11px;
}

.navcentre ul li.last a {
  padding-right:0px;
}

.navcentre ul li.first a {
  padding-left:0px;
}


a.readmore,
.sidebar-nav ul li a {
  background:url('../images/arrow.png') no-repeat;
  background-position:100% 65%;
  padding-right:10px;
  color:#FF8004;
  text-decoration:none;
  font-size:13px;
  font-weight:bold;
}

.sidebar-nav ul li a {
  line-height:1.6em;
  margin-left:-15px;
}

a.readmore:hover,
.sidebar-nav ul li a:hover {
  color:#990000;
}

.capbox {
	background-color: #92D433;
	border: #B3E272 0px solid;
	border-width: 0px 12px 0px 0px;
	display: inline-block;
	*display: inline; zoom: 1; /* FOR IE7-8 */
	padding: 8px 40px 8px 8px;
	}

.capbox-inner {
	font: bold 11px arial, sans-serif;
	color: #000000;
	background-color: #DBF3BA;
	margin: 5px auto 0px auto;
	padding: 3px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	border-radius: 4px;
	}

#CaptchaDiv {
	font: bold 17px verdana, arial, sans-serif;
	font-style: italic;
	color: #000000;
	background-color: #FFFFFF;
	padding: 4px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	border-radius: 4px;
	}

#CaptchaInput { margin: 1px 0px 1px 0px; width: 135px; }



/* ===========================
   Minimal Responsive Overrides
   (no HTML changes required)
   =========================== */

/* 1) Fluid container + images */
#wrapper,
#header,
#content,
#footer-contact,
#footer-nav,
#main-title {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

#banner  {
	margin-top: 20px !important;
}

img, iframe {
  max-width: 100%;
  height: auto;
}

/* Galleria: keep aspect ratio of original 640x450 (64:45) */
#galleria {
  width: 100% !important;
  aspect-ratio: 64 / 45;
  height: auto !important;
  background: #fff;
}

/* Primary & secondary nav: allow height to expand */
#nav-primary { height: auto; }
#nav-secondary { width: 100%; }

/* Footer panel images should stretch gracefully */
#footer-contact-top,
#footer-contact-middle,
#footer-contact-bottom {
  width: 100%;
  background-size: cover;
}

/* Two-column layout defaults (desktop) preserved */
#main-content { width: 640px; float: left; }
#sidebar      { width: 300px; float: right; }

/* Contact form fluid controls by default */
#contact-form input,
#contact-form textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Maps iframe fluid */
#sidebar iframe { width: 100% !important; height: auto; aspect-ratio: 1 / 1; }

/* Ensure long navs don't overflow on small viewports */
.navcentre { display: block; overflow-x: auto; }
.navcentre ul { display: flex; flex-wrap: wrap; gap: 0; }
.navcentre ul li { display: block; }

/* ========== Breakpoints ========== */

/* Large tablets / small laptops */
@media screen and (max-width: 1024px) {
  /* Soften typography spacing */
  h1 { font-size: 28px; }
  h2 { font-size: 22px; height: auto; }

  /* Primary nav: reduce spacing so it wraps nicer */
  #nav-primary ul { top: 8px; padding: 8px 12px; }
  #nav-primary ul li { margin-top: 0; }
  #nav-primary ul li a { padding-right: 14px; font-size: 15px; }

  /* Banner + title panel padding */
  #main-title { height: auto; min-height: 56px; }
  #main-title h1 { position: static; padding: 12px 16px; }
}

/* Tablets */
@media screen and (max-width: 768px) {
  /* Stack columns */
  #main-content,
  #sidebar {
    float: none;
    width: 100%;
  }

#nav-secondary {
	display: none;	
}

  /* Add breathing room */
  #main { margin-top: 16px; }
  #sidebar { margin-top: 24px; }

  /* Header: logo/contact images scale */
  #logo, #contact { position: static; height: auto; width: 100%; }
  #logo img, #contact img { max-width: 100%; height: auto; }

  /* Primary nav: vertical stack */
  #nav-primary { padding: 8px 0; }
  #nav-primary ul { top: 0; padding: 0 12px; }
  #nav-primary ul li { float: none; display: block; }
  #nav-primary ul li a {
    display: block;
    padding: 10px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
  }
  #nav-primary ul li.first a { border-top: 0; }

  /* Hide hover-only dropdown behavior on touch; show submenu inline */
  #nav-primary ul ul {
    position: static;
    display: block;
    padding-top: 0;
  }
  #nav-primary ul ul li {
    width: 100%;
    height: auto;
    padding: 6px 0;
    background: transparent;
    border: 0;
  }
  #nav-primary ul ul li a {
    padding-left: 12px;
    line-height: 1.6;
    color: #597759;
  }

  /* Footer nav: wrap neatly */
  .navcentre ul { gap: 8px 16px; }
  .navcentre ul a { padding: 6px 10px; font-size: 12px; }
}

/* Phones */
@media screen and (max-width: 600px) {
  body { font-size: 15px; line-height: 1.6; }

  /* Tighten paddings/margins */
  #content { padding-top: 6px; background-position: top center; }
  #footer-contact-main, #footer-contact-side { width: 100%; float: none; }
  #footer-contact-side p { text-align: left; }

  /* Contact form: touch-friendly */
  #contact-form input,
  #contact-form textarea {
    font-size: 16px;
    padding: 10px;
  }
  #contact-form input.submit {
    width: 120px;
    height: 44px;
    background-size: contain;
    margin-top: 12px;
  }

  /* Captcha box fits viewport */
  .capbox { padding: 8px 12px; }
  #CaptchaInput { width: 100%; }

  /* Quote blocks breathing room */
  blockquote { padding: 12px; }

  /* Header stacked */
  #header { height: auto; }
}

/* Very small phones */
@media screen and (max-width: 360px) {
  #nav-primary ul li a { font-size: 14px; }
  h1 { font-size: 24px; }
}

/* Accessibility/hover safety on touch */
@media (hover: none) {
  .notouch .galleria-image-nav-left:hover,
  .notouch .galleria-image-nav-right:hover,
  .notouch .galleria-thumb-nav-left:hover,
  .notouch .galleria-thumb-nav-right:hover { opacity: .8; }
}


/* --- Fix 1: kill forced horizontal width + stray scrollbars --- */
html, body { width:100%; overflow-x:hidden; }
#horizon { min-width:0 !important; }

/* Some background slices were sized for 960px — stop them overflowing */
#footer-contact-top,
#footer-contact-middle,
#footer-contact-bottom {
  background-size: 100% auto;    /* previously could push wider */
}

/* --- Fix 2: make homepage panels stack and fill width on mobile --- */
@media (max-width: 768px) {
  .home-panel {
    float: none !important;
    width: 100% !important;
    margin-right: 0 !important;
  }
  .home-panel img { display:block; width:100%; height:auto; }
}

/* Extra safety: nav rows can wrap without pushing page wider */
.navcentre { overflow-x:auto; }
.navcentre ul { flex-wrap: wrap; }

/* ===== Comfortable padding + spacing (mobile-first tweaks) ===== */
@media (max-width: 768px) {
  #main { margin-top: 16px; }
  #main-title { margin-top: 8px; }
  #content { background-position: top center; }

  /* Headings & text rhythm */
  h1 { margin: 12px 0; }
  h2 { margin: 10px 0 8px; height: auto; }
  p, ul, ol { margin-bottom: 14px; padding: 0.6rem; }

  /* Panels/cards spacing */
  .home-panel {
    float: none !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
  }
  .home-panel img { margin-bottom: 8px; }

  /* Sidebar blocks */
  .sidebar-item, #contact-details { margin-top: 16px; }
}  /* <-- CLOSE the 768px block */

/* Contact page: inputs & captcha spacing (separate media) */
@media (max-width: 600px) {
  #call-to-action { display:flex; justify-content:center; }
  #main-title { text-align:center; }

  #contact-form { padding-bottom: 0; margin-bottom: 16px; }
  #contact-form p { margin-top: 12px; }
  #contact-form input,
  #contact-form textarea {
    padding: 12px;
    border-radius: 6px;
    box-sizing: border-box;
  }
  .capbox { width: 100%; margin: 12px 0; display: block; }
  .capbox-inner { margin-top: 8px; }
  #CaptchaInput { width: 100%; }
  #contact-form input.submit {
    margin-top: 16px;
    width: 140px; height: 44px;
    background-size: contain;
  }
}


/* Footer strips scale */
#footer-contact-top,
#footer-contact-middle,
#footer-contact-bottom { background-size: 100% auto; }

/* Home banner top space */
#banner img[src="images/banner_home.png"] {
  padding-top: 20px;
  display: block;
}

/* Desktop tweak */
@media (min-width: 768px) {
  #nav-primary {
    margin-bottom: 40px;
  }
}

/* Make sure #banner rule has normal spaces */
#banner {
  margin-top: 20px !important; /* if you still want this */
}

/* Big, accessible submit button (replaces sprite) */
#contact-form input.submit {
  /* kill the old sprite + hidden text */
  background: #88BD57 !important;
  background-image: none !important;
  text-indent: 0 !important;
  font-size: 18px !important;
  font-weight: bold;
  line-height: 1.2;

  /* size & layout */
  width: 100%;
  height: auto !important;
  min-height: 48px;            /* comfy touch target */
  padding: 14px 16px;
  border: 0;
  border-radius: 8px;
  box-sizing: border-box;
  color: #fff !important;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
}

#contact-form input.submit:hover { filter: brightness(0.95); }
#contact-form input.submit:active { transform: translateY(1px); }
#contact-form input.submit:focus  { outline: 2px solid #597759; outline-offset: 2px; }

/* On wider screens you might not want full-width */
@media (min-width: 768px) {
  #contact-form input.submit {
    width: auto;
    min-width: 220px;
    display: inline-block;
  }
}



