/* =========================================================
   Quantum Homeopathy - site styles
   Colours used across the site (change them here once):
     dark bar:     #19283D
     accent blue:  #338BAF
     link red:     #A00C32
   ========================================================= */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #e9edf2;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: #1f6f93; }
a:hover { color: #A00C32; }

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

/* ---------- Banner ---------- */
.banner {
  max-width: 1000px;
  margin: 0 auto;
  background: #1d3f73 url("../images/headerpic.jpg") center / cover no-repeat;
  min-height: 170px;
  display: flex;
  align-items: center;
}
.banner-inner { padding: 24px 40px; }
.site-name {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 40px;
  letter-spacing: 1px;
  line-height: 1.2;
}
.site-name a { color: #C9E8FD; text-decoration: none; }
.tagline { margin: 6px 0 0; color: #fff; font-size: 17px; }

/* ---------- CSS drop-down menu ---------- */
.mainnav {
  max-width: 1000px;
  margin: 0 auto;
  background: #19283D;
  position: relative;
  z-index: 10;
}
.navtoggle, .navbutton { display: none; }   /* only used on phones */

.menu, .submenu { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu > li > a {
  display: block;
  padding: 14px 20px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .5px;
}
.menu > li.has-sub > a::after { content: " \25BE"; font-size: 12px; color: #9fc3e0; }
.menu > li > a:hover,
.menu > li:hover > a,
.menu > li:focus-within > a,
.menu > li.current > a { background: #338BAF; color: #fff; }

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: #fff;
  border-top: 3px solid #338BAF;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.menu > li:hover > .submenu,
.menu > li:focus-within > .submenu { display: block; }
.submenu a {
  display: block;
  padding: 10px 16px;
  color: #19283D;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid #e6eaef;
}
.submenu a:hover { background: #eaf4f9; color: #A00C32; }

/* ---------- Page content ---------- */
.page {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  padding: 30px 40px 40px;
  min-height: 400px;
}
.page h1 {
  color: #19283D;
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #338BAF;
}
.page h2 { color: #19283D; font-size: 21px; }
.page h3 { color: #19283D; font-size: 18px; }
.page p { margin: 0 0 1em; }
.page table { max-width: 100%; }

/* "Back to ..." link above service pages */
.crumb { font-size: 14px; margin-bottom: 8px; }

/* Price line on service pages */
.page h2:first-of-type + div,
.options { margin-top: 0; }
.options { background: #f3f7fa; padding: 8px 12px; border-left: 4px solid #338BAF; }

/* "In this section" box on the Homeopathy pages */
.toc {
  float: right;
  width: 260px;
  margin: 0 0 20px 24px;
  background: #f3f7fa;
  border: 1px solid #d9e3ea;
  padding: 12px 16px;
}
.toc h2 { font-size: 16px; margin: 0 0 6px; }
.toc ul { margin: 0; padding-left: 18px; }
.toc li { margin: 4px 0; }
.toc li.here a { font-weight: bold; color: #A00C32; text-decoration: none; }

/* Lists of articles / tele-conferences */
.listing { list-style: none; padding: 0; margin: 0; }
.listing li { padding: 14px 0; border-bottom: 1px solid #e6eaef; }
.listing h3 { margin: 0 0 4px; }
.listing h3 a { text-decoration: none; }
.listing p { margin: 0; color: #444; }

/* Blue bullet dot (replaces an old missing image) */
.dot {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #338BAF;
}

/* ---------- Footer ---------- */
.footer {
  max-width: 1000px;
  margin: 0 auto 30px;
  background: #19283D;
  color: #DFD9C7;
  padding: 24px 40px 12px;
  font-size: 14px;
}
.footer-cols { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.footer-cols > div { flex: 1 1 220px; }
.footer h2 { color: #fff; font-size: 15px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .5px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 4px 0; }
.footer a { color: #C9E8FD; }
.footer a:hover { color: #fff; }
.copyright { text-align: center; color: #9aa6b5; margin: 20px 0 0; font-size: 13px; }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 760px) {
  .banner { min-height: 120px; }
  .banner-inner { padding: 18px 16px; }
  .site-name { font-size: 26px; }
  .tagline { font-size: 14px; }

  .navbutton {
    display: block;
    padding: 12px 16px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
  }
  .menu { display: none; flex-direction: column; }
  .navtoggle:checked ~ .menu { display: flex; }
  .menu > li > a { border-top: 1px solid #2c3d55; }
  .submenu {
    display: block;
    position: static;
    box-shadow: none;
    border-top: 0;
    background: #22344d;
  }
  .submenu a { color: #DFD9C7; border-bottom: 1px solid #2c3d55; padding-left: 36px; }
  .submenu a:hover { background: #2c3d55; color: #fff; }
  .menu > li.has-sub > a::after { content: ""; }

  .page { padding: 20px 16px 30px; }
  .page h1 { font-size: 23px; }
  .page p[align="justify"] { text-align: left; }
  .toc { float: none; width: auto; margin: 0 0 20px; }
  .footer { padding: 20px 16px 10px; }
}
