/* ═══════════════════════════════════════════════
   River Bollin Osteopathy — Global Stylesheet
   Matches Divi 4.6.6 theme structure
═══════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  background: #fff;
  color: #666;
  line-height: 1.7em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── LAYOUT ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 30px;
}
.clearfix::after { content: ''; display: table; clear: both; }

/* ── TOP HEADER BAR ── */
#top-header {
  background-color: #0b666e;
  color: #fff;
  font-size: 12px;
  padding: 0;
  line-height: 40px;
  height: 40px;
}
#top-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
#et-info {
  display: flex;
  align-items: center;
  gap: 20px;
}
#et-info-phone::before { content: '📞 '; }
#et-info-email::before { content: '✉ '; }
#et-info a { color: #fff; }

/* ── MAIN HEADER ── */
#main-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.et_menu_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo_container a { display: flex; align-items: center; }
#logo { max-height: 57px; width: auto; }
#et-top-navigation { display: flex; align-items: center; }

/* ── DESKTOP NAV ── */
#top-menu {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
  background: #fff;
}
#top-menu li {
  background: #fff;
}
#top-menu li a {
  display: block;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #333;
  line-height: 80px;
  text-transform: uppercase;
  transition: color .2s;
  background: #fff;
}
#top-menu li a:hover,
#top-menu li.current-menu-item a { color: #0b666e; }

/* ── MOBILE NAV TOGGLE ── */
#et_mobile_nav_menu { display: none; }
.mobile_menu_bar {
  cursor: pointer;
  display: block;
  width: 28px;
  height: 20px;
  position: relative;
}
.mobile_menu_bar::before,
.mobile_menu_bar::after,
.mobile_menu_bar span {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: #333;
  position: absolute;
}
.mobile_menu_bar::before { top: 0; }
.mobile_menu_bar span   { top: 9px; }
.mobile_menu_bar::after { bottom: 0; }

/* ── SECTIONS ── */
.et_pb_section { position: relative; }
.et_pb_section.et_pb_fullwidth_section { padding: 0; }
.et_pb_section.et_section_regular { padding: 0; }
.et_pb_section.et_pb_with_background { background-color: #0b666e; }

/* ── ROWS & COLUMNS ── */
.et_pb_row {
  max-width: 1080px;
  margin: 0 auto;
  padding: 27px 0;
}
.et_pb_row::after { content: ''; display: table; clear: both; }
.et_pb_column { float: left; padding: 0 15px; }
.et_pb_column_4_4 { width: 100%; }
.et_pb_column_1_2 { width: 50%; }
.et_pb_column_1_3 { width: 33.333%; }
.et_pb_column_2_3 { width: 66.666%; }

/* ── FULLWIDTH BANNER ── */
.et_pb_fullwidth_image_0 img { width: 100%; display: block; }

/* ── TEXT MODULES ── */
.et_pb_text_inner h1 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: #333;
  line-height: 1.4em;
  margin-bottom: 10px;
}
.et_pb_text_inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  line-height: 1.4em;
  margin-bottom: 10px;
}
.et_pb_text_inner p {
  font-size: 14px;
  line-height: 1.7em;
  color: #666;
  margin-bottom: 1em;
}
.et_pb_text_inner ul {
  font-size: 14px;
  line-height: 1.7em;
  color: #666;
  margin-bottom: 1em;
  padding-left: 1.4em;
}
.et_pb_text_inner ul li { margin-bottom: .3em; }
.et_pb_bg_layout_dark,
.et_pb_bg_layout_dark .et_pb_text_inner,
.et_pb_bg_layout_dark h1,
.et_pb_bg_layout_dark h2,
.et_pb_bg_layout_dark p,
.et_pb_bg_layout_dark a,
.et_pb_bg_layout_dark .et_pb_text_inner h1,
.et_pb_bg_layout_dark .et_pb_text_inner h2,
.et_pb_bg_layout_dark .et_pb_text_inner p,
.et_pb_bg_layout_dark .et_pb_text_inner a { color: #fff !important; }

/* ── BUTTONS ── */
.et_pb_button {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 30px;
  border: 2px solid #0b666e;
  color: #0b666e;
  background: transparent;
  cursor: pointer;
  transition: all .2s;
  margin-top: 10px;
}
.et_pb_button:hover { background: #0b666e; color: #fff; }
.et_pb_button_alignment_center { text-align: center; padding: 15px 0; }

/* ── IMAGE MODULES ── */
.et_pb_image { text-align: center; }
.et_pb_image_wrap img { max-width: 100%; height: auto; }

/* ── HOME: SECTION 1 ── */
.et_pb_section_1 { background: #fff; }
.et_pb_section_1 .et_pb_text_align_left { padding-left: 0; }

/* ── HOME: TESTIMONIAL SLIDER ── */
.et_pb_fullwidth_slider_0 {
  background: #0b666e;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.et_pb_slides { position: relative; }
.et_pb_slide {
  display: none;
  padding: 60px 80px;
  text-align: center;
}
.et_pb_slide.et-pb-active-slide { display: block; }
.et_pb_slide_title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.et_pb_slide_title a { color: #fff; }
.et_pb_slide_content {
  font-size: 14px;
  line-height: 1.8em;
  color: rgba(255,255,255,.85);
  max-width: 800px;
  margin: 0 auto 24px;
}
.et_pb_slide_content p { margin-bottom: .5em; }
.et_pb_more_button {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: all .2s;
}
.et_pb_more_button:hover { background: rgba(255,255,255,.15); }

/* Slider controls */
.slider-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  border: none;
  transition: background .2s;
}
.slider-dot.active { background: rgba(255,255,255,.95); }
.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.2);
  border: none;
  color: #fff;
  width: 40px; height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 10;
}
.slider-prev:hover, .slider-next:hover { background: rgba(0,0,0,.4); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* ── ADDRESS / HOURS (teal) ── */
.et_pb_section_3 { background-color: #0b666e !important; }
.et_pb_section_3 .et_pb_text_inner { color: #fff; }
.et_pb_section_3 .et_pb_text_inner strong { color: #fff; }
.et_pb_section_3 .et_pb_text_inner a { color: rgba(255,255,255,.85); }
.et_pb_section_3 .et_pb_text_inner a:hover { color: #fff; text-decoration: underline; }

/* ── ACCREDITATION (light grey) ── */
.et_pb_section_4 { background-color: #f9f9f9 !important; }
.et_pb_section_4 .et_pb_image { display: flex; align-items: center; justify-content: center; }

/* ── ABOUT PAGE: PANELS ── */
.et_pb_section_about_1 { background: #fff; }
.et_pb_section_about_2 { background: #f9f9f9; }
.et_pb_section_about_3 { background: #fff; }
.panel-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
}
.about-img-placeholder {
  width: 100%;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  color: #aaa;
  font-size: 13px;
  font-family: 'Open Sans', sans-serif;
  border: 2px dashed #ccc;
}

/* ── FOOTER ── */
#main-footer { background: #222; color: #999; }
#footer-widgets { padding: 40px 0 20px; }
#footer-bottom { border-top: 1px solid #333; padding: 15px 0; }
#footer-info { font-size: 12px; color: #666; text-align: center; }
#footer-info a { color: #888; }
#footer-info a:hover { color: #aaa; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h4 {
  color: #ccc;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.9;
  color: #888;
}
.footer-grid p {
  font-size: 13px;
  color: #888;
  line-height: 1.9;
}
.footer-grid a { color: #888; }
.footer-grid a:hover { color: #aaa; }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ── COOKIE NOTICE ── */
#cookie-notice {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(11,102,110,1);
  color: #fff;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  z-index: 9999;
  flex-wrap: wrap;
}
#cookie-notice.hidden { display: none; }
#cn-accept-cookie {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.5);
  padding: 6px 16px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}
#cn-accept-cookie:hover { background: rgba(255,255,255,.35); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 980px) {

  /* Hide desktop nav, show hamburger */
  #et-top-navigation nav { display: none; }
  #et_mobile_nav_menu { display: block; }
  #et-top-navigation { position: relative; }

  /* Mobile dropdown — always white, regardless of page section */
  #top-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 3px solid #0b666e;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    z-index: 9999;
    padding: 0;
    margin: 0;
  }
  #top-menu.open { display: flex; }

  /* Each list item — explicit white background, no inheritance */
  #top-menu li {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  #top-menu li:last-child { border-bottom: none; }

  /* Each link — full reset, white bg, consistent height */
  #top-menu li a {
    display: block;
    background: #fff;
    color: #333;
    padding: 0 24px;
    line-height: 48px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background .15s, color .15s;
    width: 100%;
  }
  #top-menu li a:hover,
  #top-menu li.current-menu-item a {
    background: #f0f8f8;
    color: #0b666e;
  }

  /* Columns stack */
  .et_pb_column {
    width: 100% !important;
    float: none;
    padding: 15px 30px;
  }
}

@media (max-width: 767px) {
  .et_pb_section.et_section_regular { padding: 30px 0; }
  .et_pb_slide { padding: 40px 30px; }
  .et_pb_slide_title { font-size: 22px; }
}
