/*
 * Richardson Hartley Law – Custom Stylesheet
 * Reconstructed from live reference: https://rhlaw.co.uk/
 *
 * Colour palette:
 *   Dark Blue / Primary:  #0a0a52
 *   50% tint:             #8585a9
 *   25% tint:             #c2c2d4
 *   Light bg:             #f3f3f6
 *   Grey body:            #666666
 *   Footer charcoal:      #1d2327
 */

/* ── Reset / Global ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  padding-top: 120px;
  margin: 0;
}

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: "Noto Serif", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  color: #0a0a52;
}

h3, h4, h5 { margin-bottom: 15px; }

p {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #000;
}

li {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  color: #000;
}

a { color: #0a0a52; }
a:hover { color: #666; }

ul.bigger li {
  font-size: 22px;
  font-family: "Noto Serif", serif;
  font-weight: 600;
  line-height: 120%;
  margin-bottom: 20px;
  color: #0a0a52;
}

p.strong { font-family: "Open Sans", sans-serif; font-weight: 700; }
p.even-bigger { font-size: 28px; font-family: "Noto Serif", serif; font-weight: 600; line-height: 120%; }
p.bigger      { font-size: 24px; font-family: "Noto Serif", serif; font-weight: 600; line-height: 120%; }
.intro-text > p { font-size: 120%; }

/* ── Header / Navbar ────────────────────────────────────────────── */
.bg-dark {
  min-height: 120px;
  background-color: #0a0a52 !important;
  box-shadow: 0 5px 5px rgba(0,0,0,.5);
}

.logo {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  width: 140px;
  height: auto;
}

/* ── Burger button ──────────────────────────────────────────────── */
.navbar-dark .navbar-toggler {
  color: rgba(255,255,255,0);
  border-color: rgba(255,255,255,0);
  margin-right: 10px;
}

.burger-button {
  width: 30px;
  height: 20px;
  position: fixed;
  right: 20px;
  transform: rotate(0deg);
  transition: .5s ease-in-out;
  cursor: pointer;
  outline: none !important;
}

@media (max-width: 375px)  { .burger-button { top: 40px; } }
@media (min-width: 376px) and (max-width: 768px) { .burger-button { top: 50px; } }
@media (min-width: 769px) { .burger-button { top: 45px; } }

.burger-button span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  border-radius: 0;
  opacity: 1;
  right: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.animated-burger-button span { background: #fff; }

.animated-burger-button span:nth-child(1) { top: 0; }
.animated-burger-button span:nth-child(2) { top: 10px; }
.animated-burger-button span:nth-child(3) { top: 20px; }

.animated-burger-button.open span:nth-child(1) { top: 11px; transform: rotate(135deg); }
.animated-burger-button.open span:nth-child(2) { opacity: 0; right: -100px; }
.animated-burger-button.open span:nth-child(3) { top: 11px; transform: rotate(-135deg); }

/* ── Nav items ──────────────────────────────────────────────────── */
.nav-item {
  margin: 0 8px;
  font-family: "Noto Serif", serif;
  font-weight: 600;
}

.nav-link { color: #fff !important; }
.nav-link:hover { color: #c2c2d4 !important; }

/* ── Desktop Navbar Clearance & Responsive Fit ─────────────────── */
@media (min-width: 992px) {
  nav.navbar {
    padding-left: 170px;
    padding-right: 20px;
  }
}

@media (min-width: 992px) and (max-width: 1240px) {
  .logo {
    width: 110px;
  }
  .logo img {
    width: 110px !important;
  }
  nav.navbar {
    padding-left: 130px;
    padding-right: 12px;
  }
  #navbarCollapseDesktop .nav-item {
    margin: 0 3px;
  }
  #navbarCollapseDesktop .nav-link {
    font-size: 13.5px;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  #navbarCollapseDesktop .buttonstyle a:link,
  #navbarCollapseDesktop .buttonstyle a:visited,
  #navbarCollapseDesktop .buttonstyle a:active {
    padding: 8px 12px !important;
    font-size: 13.5px;
  }
}

@media (max-width: 991px) {
  #navbarCollapseDesktop { display: none !important; }
  
  #navbarCollapse {
    display: none;
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    background-color: #0a0a52;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 15px 20px 35px;
    width: 100%;
    box-sizing: border-box;
  }

  #navbarCollapse.show {
    display: block !important;
  }

  #navbarCollapse .navbar-nav {
    margin-top: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  #navbarCollapse .nav-item {
    margin: 3px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  #navbarCollapse .nav-link {
    padding: 12px 6px !important;
    font-size: 16px;
    line-height: 1.4;
    display: block;
    color: #ffffff !important;
    transition: color 0.2s ease, padding 0.2s ease;
  }

  #navbarCollapse .nav-link:hover,
  #navbarCollapse .nav-link:focus {
    color: #c2c2d4 !important;
    padding-left: 12px !important;
  }
}

@media (min-width: 992px) {
  #navbarCollapse { display: none !important; }
}

.hide-on-mobile  { display: flex; }
.hide-on-desktop { display: none; }
@media (max-width: 991px) {
  .hide-on-mobile  { display: none !important; }
  .hide-on-desktop { display: flex !important; }
}

/* Contact Us pill button */
.buttonstyle a:link,
.buttonstyle a:visited,
.buttonstyle a:active {
  padding: 10px 20px !important;
  color: #0a0a52 !important;
  background-color: #fff !important;
  border-color: #fff !important;
  border-radius: 100px !important;
  transition: all .5s ease-in-out;
}
.buttonstyle a:hover {
  color: #fff !important;
  background-color: #666 !important;
  border-color: #666 !important;
}

/* Dropdown */
.dropdown:hover > .dropdown-menu { display: block; }

.dropdown-menu {
  border: none;
  border-radius: 0;
  padding-top: 20px;
  padding-bottom: 15px;
  border-top: 20px solid rgba(0,0,0,0);
  box-shadow: 0 5px 5px rgba(0,0,0,.5);
  position: absolute;
  background: #fff;
  min-width: 200px;
  z-index: 9999;
}

.dropdown-menu::after {
  bottom: 100%;
  left: 50%;
  border: solid transparent;
  content: "";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: rgba(255,255,255,0);
  border-bottom-color: #fff;
  border-width: 10px;
  margin-left: -100px;
}

.dropdown-item { color: #8585a9; background: none !important; transition: color .5s ease-in-out; }
.dropdown-item:hover, .dropdown-item.active { color: #0a0a52; background: none !important; }

/* ── Sections ───────────────────────────────────────────────────── */
section { padding: 60px 0; }

section.blue { background: #0a0a52; }
section.blue h1, section.blue h2, section.blue h3,
section.blue h4, section.blue h5, section.blue h6,
section.blue p { color: #fff !important; }

section.light-blue { background: #f3f3f6 !important; }

.main-content { background: #e9e9ef; }

.main-content a:link,
.main-content a:active,
.main-content a:visited { color: inherit !important; text-decoration: underline !important; }
.main-content a:hover   { color: inherit !important; text-decoration: none !important; }

#callback a:link, #callback a:active, #callback a:visited { color: inherit !important; text-decoration: underline !important; }
#callback a:hover { color: inherit !important; text-decoration: none !important; }

#contact a:link, #contact a:active, #contact a:visited { color: inherit !important; text-decoration: underline !important; }
#contact a:hover { color: inherit !important; text-decoration: none !important; }

/* ── Hero Carousel ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .carousel-item { height: 560px; background-size: cover; }
  .extra-padding { padding: 0 15px 60px; }
  .carousel-item h2, .carousel-item h1 { color: #fff; margin: 0 0 15px; font-weight: 600; font-size: 34px; }
  .carousel-item p { color: #fff; margin: 15px 0 0; font-size: 18px; font-family: "Noto Serif", serif; font-weight: 600; }
}
@media (min-width: 769px) {
  .carousel-item { height: 550px; background-size: cover; }
  .extra-padding { padding: 0 100px 60px; }
  .carousel-item h2, .carousel-item h1 { color: #fff; margin: 0 0 20px; font-weight: 600; font-size: 48px; }
  .carousel-item p { color: #fff; margin: 20px 0 0; font-size: 24px; font-family: "Noto Serif", serif; font-weight: 600; }
}

.carousel-control-prev-icon { background-image: url('../images/left-arrow.svg'); }
.carousel-control-next-icon { background-image: url('../images/right-arrow.svg'); }
.carousel-control-prev-icon, .carousel-control-next-icon { opacity: .5; width: 60px; height: 60px; transition: opacity .5s; }
.carousel-control-prev-icon:hover, .carousel-control-next-icon:hover { opacity: 1; }
.carousel-control-next, .carousel-control-prev { opacity: 1; z-index: 11; }

.carousel-indicators { bottom: 10px; }
.carousel-indicators li { background-color: rgba(255,255,255,.7); border: none; width: 10px; height: 10px; border-radius: 50%; cursor: pointer; }
.carousel-indicators .active { background-color: #fff; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  border-radius: 100px;
  font-family: "Noto Serif", serif;
  font-weight: 600;
  box-shadow: none !important;
  padding: 10px 25px;
}

.btn-primary {
  color: #fff !important;
  background-color: #0a0a52 !important;
  border-color: #0a0a52 !important;
  transition: all .5s ease-in-out;
}
.btn-secondary {
  color: #0a0a52 !important;
  background-color: #fff !important;
  border-color: #fff !important;
  transition: all .5s ease-in-out;
}
.btn-primary:hover, .btn-secondary:hover,
a.btn-primary:hover, a.btn-secondary:hover {
  color: #fff !important;
  background-color: #666 !important;
  border-color: #666 !important;
}
.nav-link.btn-secondary { padding: 10px 20px !important; }

/* ── Service Cards ──────────────────────────────────────────────── */
.card { border-radius: 0; border: none; }
.card-img-16x8 {
  width: 100%;
  padding-top: 50%; /* 2:1 ratio */
  background-size: cover;
  background-position: center center;
}

/* ── Footer ─────────────────────────────────────────────────────── */
footer {
  font-size: 80%;
  padding: 30px 0;
  background: #1d2327;
}
footer p   { color: #fff; }
footer a   { color: #fff; text-decoration: underline; }
footer a:hover { color: #fff; text-decoration: none; }

@media (min-width: 769px) {
  #menu-footer-links { display: inline-flex !important; }
  #menu-footer-links li { border-right: 1px solid #fff; }
}
@media (max-width: 768px) {
  #menu-footer-links { display: block !important; line-height: 1 !important; }
  #menu-footer-links li { border-right: none; }
}
#menu-footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin-left: 0 !important;
}
#menu-footer-links li {
  display: inline !important;
  padding: 0 6px !important;
  margin: 0 !important;
}
#menu-footer-links li:last-child { border-right: none !important; }
#menu-footer-links li a {
  padding: 0 !important;
  margin: 0 !important;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
}

/* ── Contact Form ───────────────────────────────────────────────── */
#contact input[type=text]::placeholder,
#contact textarea::placeholder,
#contact input[type=date]::placeholder,
#contact input[type=email]::placeholder,
#contact input[type=tel]::placeholder { color: #8585a9; transition: color 1s ease-in-out; }
#contact input[type=text]:focus::placeholder,
#contact textarea:focus::placeholder,
#contact input[type=email]:focus::placeholder,
#contact input[type=tel]:focus::placeholder { color: transparent; }

#contact input[type=text],
#contact textarea,
#contact input[type=date],
#contact input[type=email],
#contact input[type=tel] {
  outline: none !important;
  background: none;
  border: 1px solid #8585a9;
  border-radius: 0;
  font-family: "Noto Serif", serif;
  font-weight: 600;
  color: #0a0a52;
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 12px;
}
#contact input[type=text]:focus,
#contact textarea:focus,
#contact input[type=email]:focus,
#contact input[type=tel]:focus {
  border: 1px solid #0a0a52;
  background: none;
  box-shadow: none !important;
}
#contact select {
  border: 1px solid #8585a9;
  border-radius: 0;
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-family: "Noto Serif", serif;
  font-weight: 600;
  color: #0a0a52;
}

/* ── Qualification Form Buttons ─────────────────────────────────── */
.amount-btn, .bank-btn {
  display: inline-block;
  padding: 12px 20px;
  margin: 6px;
  border: 2px solid #0a0a52;
  border-radius: 100px;
  cursor: pointer;
  font-family: "Noto Serif", serif;
  font-weight: 600;
  color: #0a0a52;
  background: #fff;
  transition: all .3s;
  user-select: none;
}
.amount-btn:hover, .bank-btn:hover { background: #0a0a52; color: #fff; }
.amount-btn.active, .bank-btn.active { background: #0a0a52; color: #fff; }

.form-step { display: none; }
.form-step.show { display: block; }
.form-step.active { display: block; }

.eligibility-msg { margin-top: 16px; padding: 14px 18px; border-radius: 4px; }
.eligibility-msg.error { background: #fff0f0; border-left: 4px solid #c00; color: #c00; }
.eligibility-msg.info  { background: #f0f0ff; border-left: 4px solid #0a0a52; color: #0a0a52; }
.eligibility-msg.success { background: #f0fff0; border-left: 4px solid #0a0; color: #090; }

.form-nav { margin-top: 16px; }

/* ── Helpers ─────────────────────────────────────────────────────── */
.margin-30       { margin-bottom: 30px; }
.margin-10-size  { font-size: 30px; margin-bottom: 10px; }
.margin-30-size  { font-size: 28px; margin-bottom: 20px; }
.text-normal     { text-transform: none; }

.side-attractor-box {
  background: #fff;
  padding: 30px 25px 20px;
  border-radius: 30px;
}
section.blue .side-attractor-box > h2 { color: #0a0a52 !important; }
section.blue .side-attractor-box p    { color: #000 !important; }

/* Press slider */
.logo-slider { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; padding: 20px 0; }
.logo-slider .article { padding: 10px 20px; display: flex; align-items: center; justify-content: center; }
.logo-slider img { max-height: 60px; max-width: 140px; object-fit: contain; filter: grayscale(30%); transition: filter .3s; }
.logo-slider img:hover { filter: grayscale(0); }

/* Alert table */
.alert-table { width: 100%; border-collapse: collapse; font-size: 13px; color: #fff; }
.alert-table td { padding: 12px; border: 1px solid rgba(255,255,255,.3); }

/* Flying logo animation on contact page */
@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
.flying { animation: float 3s ease-in-out infinite; }

.start-claim { color: #0a0a52; margin-top: 20px; font-size: 22px; }

/* form success/error message */
.form-feedback {
  padding: 14px 18px;
  margin-top: 16px;
  border-radius: 4px;
  display: none;
}
.form-feedback.success { background: #f0fff0; border-left: 4px solid #0a0; color: #060; display: block; }
.form-feedback.error   { background: #fff0f0; border-left: 4px solid #c00; color: #c00; display: block; }

/* Table styles */
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table td, .wp-block-table th { border: 1px solid #ccc; padding: .5em; }
.wp-block-table thead { border-bottom: 3px solid #ccc; }

/* FAQ accordion */
.faq-item { margin-bottom: 12px; border: 1px solid #c2c2d4; border-radius: 4px; overflow: hidden; }
.faq-question { padding: 16px 20px; cursor: pointer; font-family: "Noto Serif", serif; font-weight: 600; color: #0a0a52; display: flex; justify-content: space-between; align-items: center; background: #fff; }
.faq-question:hover { background: #f3f3f6; }
.faq-question .faq-icon { font-size: 20px; font-weight: 300; transition: transform .3s; }
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 16px 20px; background: #fff; font-family: "Open Sans", sans-serif; }
.faq-answer.open { display: block; }

/* sub-page hero */
.sub-hero { min-height: 300px; background-size: cover; background-position: center; display: flex; align-items: center; }
.sub-hero-overlay { background: rgba(0,0,0,.45); width: 100%; padding: 80px 0; }
.sub-hero h1, .sub-hero h2 { color: #fff; }

/* ── CF7 Multi-Step Fieldsets & Progression ── */
fieldset.fieldset-cf7mls {
  display: none;
  border: none;
  padding: 0;
  margin: 0;
}
fieldset.fieldset-cf7mls.cf7mls_current_fs {
  display: block;
}
.cf7mls-btns {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}
.cf7mls_btn, .cf7mls_back {
  border-radius: 100px;
  font-family: "Noto Serif", serif;
  font-weight: 600;
  padding: 10px 30px;
  border: 1px solid #0a0a52;
  background: #0a0a52;
  color: #fff;
  cursor: pointer;
  transition: all .3s ease-in-out;
  outline: none;
}
.cf7mls_back {
  background: #fff;
  color: #0a0a52;
}
.cf7mls_btn:hover, .cf7mls_back:hover {
  background: #666;
  border-color: #666;
  color: #fff;
}
.wpcf7-response-output {
  margin-top: 15px;
  padding: 14px 18px;
  border-radius: 4px;
  display: none;
}
.wpcf7-response-output.success {
  background: #f0fff0;
  border-left: 4px solid #0a0;
  color: #060;
  display: block;
}
.wpcf7-response-output.error {
  background: #fff0f0;
  border-left: 4px solid #c00;
  color: #c00;
  display: block;
}

/* ── RH Branded Preloader ────────────────────────────────────────── */
#rhl-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
  pointer-events: auto;
}

#rhl-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.rhl-preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rhl-preloader-logo {
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
  animation: rhl-logo-pulse 1.8s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(10, 10, 82, 0.08));
}

.rhl-preloader-bar {
  width: 72px;
  height: 3px;
  background: #e2e2ec;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.rhl-preloader-progress {
  width: 100%;
  height: 100%;
  background: #0a0a52;
  border-radius: 3px;
  position: absolute;
  top: 0;
  left: -100%;
  animation: rhl-progress 1.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes rhl-logo-pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.03); opacity: 1; }
}

@keyframes rhl-progress {
  0% { left: -100%; }
  60% { left: 40%; width: 60%; }
  100% { left: 100%; width: 20%; }
}

@media (prefers-reduced-motion: reduce) {
  #rhl-preloader { transition: none !important; }
  .rhl-preloader-logo, .rhl-preloader-progress { animation: none !important; }
}

/* Client authentication pages */
.auth-shell {
  min-height: calc(100vh - 120px);
  padding: 165px 0 70px;
  background: #f5f5f8;
}

.auth-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px;
  background: #fff;
  border-top: 5px solid #0a0a52;
  box-shadow: 0 8px 24px rgba(10, 10, 82, .14);
}

.auth-card h1,
.auth-card h2 { color: #0a0a52; }
.auth-card h1 { margin-bottom: 12px; }
.auth-card h2 { font-size: 1.35rem; }
.auth-card label { display: block; margin: 16px 0 6px; font-weight: 600; }
.auth-card input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #8585a9;
  border-radius: 3px;
}
.auth-card input:focus { outline: 3px solid rgba(10, 10, 82, .18); border-color: #0a0a52; }
.auth-card button { margin-top: 20px; }
.auth-links { margin: 24px 0 0; line-height: 1.9; }
.auth-status,
.auth-notice { margin-top: 22px; padding: 14px 16px; }
.auth-status.info { background: #eef1f8; color: #0a0a52; }
.auth-status.success { background: #e9f6ed; color: #145c2a; }
.auth-status.error { background: #fff0f0; color: #8a1c1c; }
.auth-notice { background: #f1f1f8; }
.auth-notice p { margin-bottom: 0; }
.case-summary { margin: 16px 0; padding: 16px; border: 1px solid #d3d3df; background: #fff; }
.case-form-callout { margin: 20px 0; padding: 24px; background: #f1f1f8; border-left: 4px solid #0a0a52; }
.case-form-callout h3 { color: #0a0a52; }
.case-summary h3 { color: #0a0a52; margin-bottom: 8px; }
.case-summary p { margin-bottom: 8px; }
.admin-case { display: block; width: 100%; text-align: left; cursor: pointer; }
.auth-card select, .auth-card textarea { display: block; width: 100%; padding: 9px 12px; border: 1px solid #8585a9; border-radius: 3px; }
.auth-checkbox { display: flex !important; gap: 8px; align-items: flex-start; }
.auth-checkbox input { width: auto; min-height: 20px; margin-top: 3px; }

@media (max-width: 575px) {
  .auth-shell { padding: 145px 15px 45px; }
  .auth-card { padding: 26px 20px; }
}
