/* ==============================
   1) BASE / GLOBAL
   ============================== */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: #84a147;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-image: url('../images/bg.jpg');
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: 110% auto; /* slight scale up for desktop */
  background-color: #84a147;

  color: #000;
  font-family: Arial, sans-serif;
  font-size: 17px;
  position: relative;
  overflow-x: hidden;
}

a {
	color: #fff;
}

a:hover {
	color: #C5A663;
}

/* Typography */
h1 { font-family: "Times New Roman", Times, serif; color: #fff; font-size: 30px; }
h2 { font-family: "Times New Roman", Times, serif; color: #fff; font-size: 26px; }
h4 { font-family: "Times New Roman", Times, serif; color: #fff; font-size: 21px; }

/* Containers */
.container,
.container-fluid { padding-left: 10px; padding-right: 10px; }

/* ==============================
   2) HEADER / LOGO ROW
   ============================== */
.logo-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 10px 0 20px 0;
}

/* Target Bootstrap cols even if custom classes not present */
.logo-row > [class*="col-"] {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.logo-row > [class*="col-"]:first-child {
  -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start;
}
.logo-row > [class*="col-"]:last-child  {
  -webkit-box-pack: end;   -ms-flex-pack: end;   justify-content: flex-end;
  text-align: right;
}

.logo { max-width: 225px; width: 100%; height: auto; }

.contact-info { font-size: 16px; font-weight: bold; color: #000; margin: 0; }
.contact-info span { color: #b34502; }

/* ==============================
   3) NAVBAR (Bootstrap 3.3.7)
   ============================== */
/* Avoid flex on .navbar (breaks collapse on mobile) */
.navbar {
  background-color: rgba(70, 75, 27, 0.80);
  border: none;
  border-radius: 12px;
  margin-bottom: 25px;
  text-align: center;
  min-height: 50px;
  padding: 0;
}

/* Center UL horizontally */
.navbar .navbar-collapse { text-align: center; }
.navbar .navbar-nav {
  float: none;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
}

/* Links */
.navbar-default .navbar-nav > li > a {
  color: #fff;
  font-weight: normal;
  font-size: 17px;
  line-height: 50px; /* vertical centering */
  padding: 0 20px;
  transition: all 0.2s ease-in-out;
  position: relative; /* needed for divider pseudo-element */
  display: block;
}

/* Dividers between links (left edge except first) */
.navbar-default .navbar-nav > li + li > a::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  height: 34px; width: 1px;
  background-color: rgba(255, 255, 255, 0.4);
}

/* Hover & active (no background) */
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus { color: #C5A663; background: transparent; text-decoration: none; }
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus { color: #C5A663; background: transparent; }

/* Toggle button */
.navbar-toggle { border: none; }
.navbar-toggle .icon-bar { background-color: #fff; }

/* Better contrast for mobile toggle button */
.navbar-toggle {
  border: none;
  background-color: rgba(255, 255, 255, 0.75);
}
.navbar-toggle:hover,
.navbar-toggle:focus { background-color: rgba(0, 0, 0, 0.4); }
.navbar-toggle .icon-bar { background-color: #fff; }

/* Brand hidden by default; shown only when collapsed (mobile) */
.navbar-brand { display: none !important; }

/* ==============================
   4) MID PANEL
   ============================== */
.mid-panel {
  background-color: rgb(187 219 115 / 43%);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
}

.mid-image { padding: 0; }
.mid-image img {
  width: 100%;
  height: auto;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  display: block;
}

.mid-content {
  padding: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.mid-content-inner { color: #fff; padding: 15px; text-align: left; }

.mid-content h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: normal;
  font-size: 28px;
  color: #002a55;
  margin-top: 0;
}
.mid-content p {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: normal;
  font-size: 19px;
  color: #002a55;
  margin-bottom: 0;
}
.quality-img { max-width: 250px; padding: 10px; }

/* ==============================
   5) SECTION: DELIVERY + SAVERS (scoped)
   ============================== */
.section-delivery { /* keep default Bootstrap gutters/flow */ }

.section-delivery .col-md-6 { padding: 15px 15px 10px; }

.section-delivery h2 { margin: 0 0 10px; line-height: 1.2; }
.section-delivery h4 { margin: 14px 0 6px; line-height: 1.25; font-weight: normal; }
.section-delivery p  { margin: 0 0 10px; line-height: 1.45; }

.section-delivery img { max-width: 100%; height: auto; }
/* Fix legacy align="right" haystacks image on desktop; center on mobile */
.section-delivery img[align="right"] {
  float: right;
  margin: 0 0 8px 14px;
  max-width: 45%;
  border-radius: 6px;
}
/* H4 icons */
.section-delivery h4 img {
  float: left;
  margin: 0 10px 0 0;
  width: auto;
  height: 31px;
}
.section-delivery h4::after { content: ""; display: block; clear: both; }
/* Optional divider under each saver item */
.section-delivery h4 + p { border-bottom: 1px solid rgba(255,255,255,0.40); padding-bottom: 10px; }
.section-delivery h4:last-of-type + p { border-bottom: none; padding-bottom: 0; }

/* ==============================
   6) MEDIA QUERIES
   ============================== */

/* Phones (<768px) */
@media (max-width: 767px) {
  /* Background: your preferred scale on phones */
  body {
    background-size: 500% auto !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    background-color: #84a147;
  }

  /* Header: stack & center */
  .logo-row { display: block; text-align: center; }
  .logo-row > [class*="col-"] {
    display: block; width: 100%; text-align: center;
    -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
  }
  .logo { margin: 0 auto; }
  .contact-info { font-size: 16px; text-align: center; margin-top: 8px; }
  .logo-row > [class*="col-"]:last-child { margin-top: 10px; }

  /* Navbar: stacked list, no dividers, no stray borders/shadows */
  .navbar { text-align: center; }
  .navbar .navbar-nav { display: block; }
  .navbar-default .navbar-nav > li > a { display: block; line-height: normal; padding: 10px; }
  .navbar-default .navbar-nav > li + li > a::before { display: none; }
  .navbar-default .navbar-collapse, .navbar-collapse { border-top: none; box-shadow: none; }
  .navbar-header { border-bottom: none; box-shadow: none; background: transparent; }

  /* Brand visible only when collapsed */
  .navbar-brand { display: inline-block !important; color: #fff !important; font-size: 17px; font-weight: normal; padding: 15px 0 0 20px; }

  /* Mid-panel rounding when stacked */
  .mid-panel { border-radius: 12px; }
  .mid-image img { border-radius: 12px 12px 0 0; }
  .mid-content { border-radius: 0 0 12px 12px; padding: 5px; text-align: left; }
  .mid-content-inner { text-align: left; }
  .mid-content h1 { font-size: 24px; }
  .mid-content p  { font-size: 17px; }

  /* Delivery image center */
  .section-delivery img[align="right"] {
    float: none; display: block; margin: 8px auto 12px; max-width: 280px;
  }
  .section-delivery .col-md-6 { padding: 12px 12px 8px; }
  .section-delivery h4 img { margin-right: 8px; }
}

/* Tablets (768px–1199px): stack & center header */
@media (max-width: 1199px) {
  .logo-row { display: block; text-align: center; }
  .logo-row > [class*="col-"],
  .logo-row .logo-col,
  .logo-row .contact-col {
    display: block; width: 100%; text-align: center;
  }
  .logo { margin: 0 auto; }
  .contact-info { text-align: center; margin-top: 8px; }
}

/* Desktops (=992px): navbar centering, vertical alignment, dividers */
@media (min-width: 992px) {
  .navbar .navbar-collapse { text-align: center; }
  .navbar .navbar-nav {
    float: none; display: inline-block; vertical-align: middle;
  }
  .navbar { min-height: 50px; }
  .navbar-default .navbar-nav > li > a {
    line-height: 50px; padding: 0 20px; position: relative; display: block;
  }
  .navbar-default .navbar-nav > li + li > a::before {
    content: ""; position: absolute; left: 0; top: 8px; height: 34px; width: 1px;
    background-color: rgba(255, 255, 255, 0.4);
  }
}

/* Large desktops (=1200px): logo left, contact right */
@media (min-width: 1200px) {
  .logo-row {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -ms-flex-wrap: nowrap; flex-wrap: nowrap;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  }
  .logo-row .logo-col,
  .logo-row > [class*="col-"]:first-child {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start;
    text-align: left;
  }
  .logo-row .contact-col,
  .logo-row > [class*="col-"]:last-child {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end;
    text-align: right;
  }
  .logo { margin: 0; }
  .contact-info { text-align: right; }
}

/* Tablets and up (=991px special): background scroll (legacy) */
@media (max-width: 991px) {
  body { background-attachment: scroll !important; }
}
/* ===== Haystacks image behavior ===== */
.section-delivery .col-md-6 img.haystacks {
  float: right;
  margin-top: 20px;
  margin-left: 14px;
  max-width: 250px;
  height: auto;
}

/* Mobile adjustment: remove margin-top and center image */
@media (max-width: 767px) {
  .section-delivery .col-md-6 img.haystacks {
    float: none;
    display: block;
    margin: 0 auto 12px auto; /* centers horizontally and adds bottom spacing */
    max-width: 250px;
	margin-top: 0;
  }
}

/* ===== Site Footer ===== */
.site-footer {
  background-image: url('../images/footer-bg.jpg');
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  font-size: 14px;
  margin-top: 20px!important;
}

.site-footer .footer-inner {
  max-width: 1140px;   /* keeps content nicely centered */
  margin: 0 auto;
  padding: 24px 16px 28px;
  text-align: center;
}

.site-footer .footer-logo {
  max-width: 225px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 16px auto;
}

/* Nav */
.footer-nav {
  padding: 0;
  margin: 0 0 14px 0;
  list-style: none;
  white-space: nowrap;
}
.footer-nav li {
  display: inline-block;
  padding: 0 10px;
  line-height: 1.4;
}
.footer-nav li + li {
  border-left: 1px solid #85a147;
}
.site-footer a { color: #b0e0e6; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: #fff; text-decoration: underline; }

/* Addresses: tight side-by-side on desktop, stacked on mobile */
.footer-addresses {
  display: flex;
  justify-content: center;
  gap: 30px;             /* closer together than far-apart .col-6s */
  flex-wrap: wrap;       /* allows stacking below breakpoint-like widths */
  margin: 10px 0 8px;
}
.footer-address {
  min-width: 280px;
  max-width: 380px;
}
.footer-address p {
  margin: 0 0 6px;
  font-size: 15px;
}

/* Copyright */
.footer-copy {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.95;
}

/* Mobile tweaks */
@media (max-width: 767px) {
  .footer-nav {
    white-space: normal;  /* allow wrapping */
  }
  .footer-nav li {
    padding: 4px 8px;
  }
  .footer-nav li + li {
    border-left: none;    /* dividers look cramped when wrapped */
  }
  .footer-addresses {
    gap: 12px;
  }
}

}

/* ===== About section (scoped) ===== */
.section-about img { max-width: 100%; height: auto; display: block; }
.section-about h2 { margin: 10px 0 8px; line-height: 1.2; }
.section-about p  { margin: 0 0 10px; line-height: 1.45; }

/* Default: desktop view */
.section-about .mobile-only { display: none; }
.section-about .desktop-only { display: block; }

/* Bring the text a touch away from the right image on desktop */
@media (min-width: 992px) {
  .section-about .about-content { padding-right: 10px; }
  .section-about .about-aside img { border-radius: 6px; }
  /* Optional: keep the side image visible while scrolling long text */
  /* .section-about .about-aside { position: sticky; top: 20px; } */
}

/* Tablet & down: stack + show horizontal photo, hide side image */
@media (max-width: 991px) {
  .section-about .mobile-only {
    display: block;
    margin-bottom: 14px;
  }

  .section-about .desktop-only {
    display: none;
  }

  /* Add back comfortable inner padding for stacked content */
  .section-about .about-content {
    padding: 0 15px 10px 15px;  /* matches Bootstrap gutter spacing */
  }
}

/* ===== Brands / Partners Section (self-contained) ===== */
.section-brands {
  margin: 10px 0 30px;
  text-align: center;
}

.section-brands .brands-inner {
  max-width: 1140px;           /* matches your page content width */
  margin: 0 auto;
  padding: 0 18px;             /* FIX: guaranteed comfy side padding on phones */
}

.section-brands h2 {
  font-size: 26px;
  color: #fff;
  margin: 0 0 22px;
  line-height: 1.3;
}

/* Grid: 3 cols on mobile, 4 on tablet, 6 on desktop */
.section-brands .brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 10px;              /* row x column gap */
  align-items: center;
  justify-items: center;
}

.section-brands .brand {
  display: inline-block;
  padding: 6px 4px;
}

.section-brands .brand img {
  display: block;
  max-width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

/* Tablet =768px: 4 columns */
@media (min-width: 768px) {
  .section-brands .brands-inner { padding: 0 16px; }
  .section-brands .brands-grid { grid-template-columns: repeat(4, 1fr); gap: 14px 12px; }
}

/* Desktop =992px: 6 columns */
@media (min-width: 992px) {
  .section-brands .brands-inner { padding: 0 12px; }
  .section-brands .brands-grid { grid-template-columns: repeat(6, 1fr); gap: 16px 12px; }
}

/* ===== Locations & Maps (scoped) ===== */
.section-locations {
  text-align: center;
  margin: 5px 0 10px;
}

.section-locations h2 {
  color: #fff;
  margin: 0 0 18px;
}

.location-card {
  padding: 12px 15px 2px;
  color: #000;
}

.location-card h3,
.location-card h4 {
  color: #fff;
}

.location-card .address,
.location-card .hours p {
}

/* Responsive map (keeps ~400x250 aspect ˜ 1.6 => 62.5%) */
.map-wrap {
  position: relative;
  width: 100%;
  padding-top: 62.5%;   /* aspect ratio */
  margin: 10px auto 12px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.15);
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Small spacing tweak on mobile */
@media (max-width: 767px) {
  .location-card { padding: 10px 15px 18px; }
}

/* ===== Contact Page (scoped) ===== */
.section-contact { margin: 25px 0 35px; color: #000; }
.section-contact .title {
  font-size: 26px;
  line-height: 1.25;
  margin: 0;
  color: #fff;
  font-family: "Times New Roman", Times, serif;
  text-align: left;
}

.section-contact .contact-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  align-items: stretch;
}

/* Left column (addresses) */
.section-contact .contact-left { padding: 10px 15px; }
.section-contact .contact-block { margin-bottom: 16px; }
.section-contact .contact-block h3 {
  margin: 8px 0 6px;
  font-size: 18px;
  color: #fff;
}
.section-contact .address { margin: 0; line-height: 1.25; }

/* Vertical divider (desktop only) */
.section-contact .contact-divider {
  width: 1px;
  background-color: #8b4513; /* your original brown */
  margin: 0 0 0 0;
}

/* Right column (form) */
.section-contact .contact-right { padding: 10px 15px; }
.section-contact .intro { margin: 0 0 12px; line-height: 1.25; }

.section-contact .contact-form .form-group { margin-bottom: 12px; }
.section-contact label { display: block; margin-bottom: 3px; color: #000; font-weight: 400;}

/* Inputs */
.section-contact .form-control {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 4px;
  color: #000;
  box-shadow: none;
}
.section-contact .form-control:focus {
  border-color: #b34502;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(179,69,2,0.15);
}

/* Submit image responsiveness */
/* Submit button */
.section-contact .btn-send {
  background-color: #BA5614;
  color: #fff;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 4px;
  border: none;
  transition: background-color 0.2s ease-in-out;
}
.section-contact .btn-send:hover,
.section-contact .btn-send:focus {
  background-color: #643f1e;
  color: #fff;
}

/* Layout behavior across breakpoints */
@media (max-width: 767px) {
  .section-contact .contact-left,
  .section-contact .contact-right { padding: 10px 15px; }
  .section-contact .submit-img { max-width: 160px; }
}

@media (min-width: 992px) {
  /* Make divider appear between columns on desktop */
  .section-contact .contact-left { padding-right: 25px; }
  .section-contact .contact-right { padding-left: 25px; }
  .section-contact .contact-divider { margin: 0 0 0 -1px; } /* aligns with grid */
}

/* If your global CSS kills container gutters, ensure inner padding still exists */
.section-contact .col-xs-12,
.section-contact .col-md-5,
.section-contact .col-md-7 {
  padding-left: 15px;
  padding-right: 15px;
}
/* Alert message area */
.alert-slot { margin-bottom: 10px; }
.alert-slot:empty { margin-bottom: 0; }

/* ===== Navbar: force collapsed between 768px and 991px (iPad portrait, small laptops) ===== */
@media (min-width: 768px) and (max-width: 991px) {
  /* show the toggle + brand in this range */
  .navbar-toggle { display: inline-block; }
  .navbar-brand  { display: inline-block !important; }

  /* ensure the collapse actually collapses */
  .navbar-collapse.collapse { display: none !important; }
  .navbar-collapse.in       { display: block !important; }

  /* stack links vertically like mobile */
  .navbar .navbar-nav { float: none !important; display: block; }
  .navbar .navbar-nav > li { float: none; display: block; }
  .navbar-default .navbar-nav > li > a {
    line-height: normal;
    padding: 10px 15px;
  }

  /* remove desktop dividers in collapsed view */
  .navbar-default .navbar-nav > li + li > a::before { display: none; }

  /* remove any stray borders/shadows like on phones */
  .navbar-default .navbar-collapse,
  .navbar-collapse { border-top: none; box-shadow: none; }

  .navbar { text-align: left; }
}
