/* ==========================================================================
   Site header + footer — mirrors the WordPress theme (sams-driving-school)
   so the booking portal looks like part of samdrivingschool.co.uk.
   Every rule is scoped to .sds-* classes so it can't leak into the
   Bootstrap 5 page content, and vice versa.
   ========================================================================== */

.sds-topbar, .sds-nav, .sds-footer, .sds-panel {
  --sds-red: #ff4b3a;
  --sds-navy: #0A1851;
  --sds-text: #424A61;
  font-family: "Work Sans", sans-serif;
  line-height: 1.7;
}
.sds-topbar a, .sds-nav a, .sds-footer a, .sds-panel a { text-decoration: none; transition: color .2s, background .2s; }
.sds-topbar ul, .sds-nav ul, .sds-footer ul, .sds-panel ul { list-style: none; margin: 0; padding: 0; }

.sds-container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }

/* ── Top bar ───────────────────────────────────────────────────────────── */
.sds-topbar { background: var(--sds-navy); color: #fff; font-size: 14px; padding: 10px 0; }
.sds-topbar .sds-container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sds-topbar-info { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.sds-topbar-info li, .sds-topbar-info a { color: #fff; }
.sds-topbar-info i { margin-right: 8px; }
.sds-topbar a:hover { color: var(--sds-red); }
.sds-topbar-right { display: flex; align-items: center; gap: 16px; }
.sds-topbar-social { display: flex; gap: 14px; }
.sds-topbar-social a { color: #fff; font-size: 15px; }
.sds-auth-btns { display: flex; gap: 8px; }
.sds-auth-btns a {
  display: inline-block; padding: 4px 14px; border-radius: 3px;
  font-size: 13px; font-weight: 600; line-height: 1.6; color: #fff;
  border: 1px solid rgba(255,255,255,.45);
}
.sds-auth-btns a:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); }
.sds-auth-btns a.sds-btn-solid { background: var(--sds-red); border-color: var(--sds-red); }
.sds-auth-btns a.sds-btn-solid:hover { background: #e63b2b; border-color: #e63b2b; }

/* ── Main nav ─────────────────────────────────────────────────────────── */
.sds-nav { background: #fff; box-shadow: 0 2px 12px rgba(10,24,81,.06); position: relative; z-index: 1030; }
.sds-nav .sds-container { display: flex; align-items: center; min-height: 82px; }
.sds-logo img { max-width: 145px; height: auto; display: block; }
.sds-menu { display: flex; align-items: center; margin-left: auto !important; }
.sds-menu > li { position: relative; margin-left: 36px; line-height: 50px; }
.sds-menu > li > a { color: var(--sds-navy); font-size: 19px; font-weight: 500; }
.sds-menu > li:hover > a { color: var(--sds-red); }
/* the "+" marker on items with a dropdown, as on the main site */
.sds-menu > li.has-sub { padding-right: 18px; }
.sds-menu > li.has-sub::before, .sds-menu > li.has-sub::after {
  content: ""; position: absolute; top: 50%; background: var(--sds-navy); transition: all .3s;
}
.sds-menu > li.has-sub::before { right: 4px; width: 2px; height: 11px; transform: translateY(-50%); }
.sds-menu > li.has-sub::after  { right: 0; width: 11px; height: 2px; transform: translateY(-50%); }
.sds-menu > li.has-sub:hover::before { opacity: 0; }
.sds-menu > li.has-sub:hover::after { background: var(--sds-red); }
.sds-sub {
  position: absolute; left: 0; top: 100%; min-width: 210px; background: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,.08); visibility: hidden; opacity: 0; transition: all .3s; z-index: 9;
}
.sds-menu > li:hover > .sds-sub, .sds-menu > li:focus-within > .sds-sub { visibility: visible; opacity: 1; }
.sds-sub li { border-bottom: 1px solid #f5f5f5; line-height: 22px; }
.sds-sub li:last-child { border-bottom: 0; }
.sds-sub a { display: block; padding: 10px 20px; color: #050a30; font-size: 14px; font-weight: 500; white-space: nowrap; }
.sds-sub li:hover { background: #061539; }
.sds-sub li:hover a { color: #fff; padding-left: 28px; }

.sds-menubar {
  margin-left: 40px; width: 52px; height: 48px; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--sds-red) url("../img/site/menu.png") no-repeat center; flex-shrink: 0;
}
.sds-menubar:hover { background-color: #e63b2b; }

/* ── Slide-out panel (hamburger) ──────────────────────────────────────── */
.sds-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1990; opacity: 0; visibility: hidden; transition: all .3s; }
.sds-panel {
  position: fixed; top: 0; right: 0; height: 100%; width: 360px; max-width: 88vw; overflow-y: auto;
  background: #fff; color: var(--sds-text); z-index: 2000; padding: 50px 30px 30px;
  transform: translateX(100%); transition: transform .35s ease;
}
body.sds-panel-open .sds-overlay { opacity: 1; visibility: visible; }
body.sds-panel-open .sds-panel { transform: translateX(0); }
.sds-panel-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--sds-red); color: #fff; font-size: 16px; cursor: pointer;
}
.sds-panel .sds-logo img { max-width: 130px; margin-bottom: 18px; }
.sds-panel h4 { font-size: 20px; font-weight: 700; color: var(--sds-navy); margin: 22px 0 12px; }
.sds-panel p { font-size: 15px; margin: 0; }
.sds-panel-menu { display: none; border-top: 1px solid #eee; margin-bottom: 6px !important; }
.sds-panel-menu li { border-bottom: 1px solid #eee; }
.sds-panel-menu a { display: block; padding: 10px 0; color: var(--sds-navy); font-weight: 500; }
.sds-panel-menu .sds-panel-sub a { padding-left: 16px; font-size: 15px; color: var(--sds-text); }
.sds-panel-menu a:hover { color: var(--sds-red); }
.sds-panel-contact li { display: flex; gap: 10px; margin-bottom: 8px; font-size: 15px; }
.sds-panel-contact i { color: var(--sds-red); margin-top: 2px; }
.sds-panel-contact a { color: var(--sds-text); }
.sds-panel-contact a:hover { color: var(--sds-red); }

/* ── Social circles (footer + panel) ──────────────────────────────────── */
.sds-social { display: flex; gap: 6px; margin-top: 26px !important; }
.sds-social a {
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #3F517E; font-size: 16px;
}
.sds-social a:hover { background: var(--sds-red); color: #fff; }
.sds-panel .sds-social a { background: var(--sds-navy); color: #fff; }
.sds-panel .sds-social a:hover { background: var(--sds-red); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.sds-footer {
  position: relative; margin-top: 60px; padding-top: 65px; color: rgba(255,255,255,.9);
  background: #061a3a url("../img/site/footer-bg.png") center / cover no-repeat;
}
.sds-footer::before { content: ""; position: absolute; inset: 0; background: rgba(6,26,58,.9); }
.sds-footer > * { position: relative; z-index: 1; }
.sds-footer-grid { display: grid; grid-template-columns: 4fr 2fr 2.4fr 3.6fr; gap: 30px; padding-bottom: 50px; }
.sds-footer .sds-logo img { max-width: 145px; margin-bottom: 22px; }
.sds-footer p { margin: 0; font-size: 17px; }
.sds-footer h4 { font-size: 22px; font-weight: 700; color: rgba(255,255,255,.95); margin: 0 0 29px; font-family: inherit; }
.sds-footer-links li { margin-bottom: 9px; }
.sds-footer-links a, .sds-footer-contact a { color: rgba(255,255,255,.9); font-size: 17px; }
.sds-footer-links a:hover, .sds-footer-contact a:hover { color: var(--sds-red); }
.sds-footer-contact li { display: flex; gap: 11px; margin-bottom: 14px; font-size: 17px; }
.sds-footer-contact i { margin-top: 2px; }
.sds-badges { display: flex; gap: 8px; margin-top: 18px; }
.sds-badges img { max-width: 72px; height: auto; }
.sds-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 23px 0; text-align: center; }
.sds-footer-bottom p { font-size: 17px; }

.sds-back-top {
  position: fixed; right: 90px; bottom: 60px; width: 48px; height: 50px; border: 0; z-index: 990;
  background: var(--sds-red); color: #fff; font-size: 20px; cursor: pointer;
  opacity: 0; visibility: hidden; transition: all .3s;
}
.sds-back-top.is-visible { opacity: 1; visibility: visible; }

/* "Book Instructor" highlighted as a button in the header menu + side panel */
.sds-menu > li.sds-menu-cta > a {
  display: inline-block; padding: 0 22px; line-height: 44px; border-radius: 6px;
  background: var(--sds-red); color: #fff; font-weight: 600;
  box-shadow: 0 6px 16px rgba(255, 75, 58, .35);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.sds-menu > li.sds-menu-cta:hover > a, .sds-menu > li.sds-menu-cta > a:focus-visible {
  background: #e63b2b; color: #fff; transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 75, 58, .45);
}
.sds-panel-menu li.sds-menu-cta > a { color: var(--sds-red); font-weight: 700; }

.sds-mobile-cta { display: none; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .sds-menu > li { margin-left: 22px; }
  .sds-menu > li > a { font-size: 17px; }
  .sds-menubar { margin-left: 24px; }
}
@media (max-width: 991.98px) {
  .sds-mobile-cta {
    display: inline-block; margin-left: auto; padding: 0 18px; line-height: 44px; border-radius: 6px;
    background: var(--sds-red); color: #fff !important; font-size: 16px; font-weight: 600; white-space: nowrap;
    box-shadow: 0 6px 16px rgba(255, 75, 58, .35);
  }
  .sds-mobile-cta:hover { background: #e63b2b; }
  .sds-mobile-cta ~ .sds-menubar { margin-left: 12px; }
  .sds-menu { display: none; }
  .sds-menubar { margin-left: auto; }
  .sds-panel-menu { display: block; }
  .sds-nav .sds-container { min-height: 72px; }
  .sds-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .sds-back-top { right: 20px; bottom: 90px; }
}
@media (max-width: 767.98px) {
  .sds-topbar .sds-container { justify-content: center; }
  .sds-topbar-info { justify-content: center; }
  .sds-logo img { max-width: 115px; }
}
@media (max-width: 575.98px) {
  .sds-footer-grid { grid-template-columns: 1fr; }
  .sds-topbar-info { gap: 4px 18px; font-size: 13px; }
}
