/* =========================================================
   Byron Bay Coaches - Cassiopeia theme (Joomla 4 migration)
   ========================================================= */
:root {
  --bbc-navy: #1a2f7a;
  --bbc-blue: #1f4fb8;
  --bbc-sky: #23b5ec;
  --bbc-ink: #1f2933;
  --bbc-muted: #5b6672;
  --bbc-bg: #f4f7fb;
  --cassiopeia-color-primary: #1a2f7a;
  --cassiopeia-color-link: #1f4fb8;
  --cassiopeia-color-hover: #23b5ec;
}
body { background: var(--bbc-bg); color: var(--bbc-ink); }
html { scroll-behavior: smooth; }
#quote, #weddings, #tours, #corporate, #charters { scroll-margin-top: 24px; }
#services { scroll-margin-top: 110px; }

/* ---------- Header ---------- */
.container-header { background: var(--bbc-navy) !important; background-image: none !important; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.container-header .grid-child { padding-top: .6rem; padding-bottom: .6rem; }
@media (min-width: 992px) {
  .container-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 0 max(1rem, calc((100vw - 1320px) / 2)); }
  .container-header .grid-child { margin: 0; max-width: none; width: auto; }
}
.brand-logo img { max-height: 70px; width: auto; }
.header .site-description { display: none; }
.container-header .mod-menu > li > a { color: #fff; font-weight: 600; letter-spacing: .02em; padding: .5rem .8rem; border-radius: 6px; }
.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li.active > a { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Hero ---------- */
.container-banner { margin-bottom: 0; }
.bbc-hero {
  background: linear-gradient(90deg, rgba(16,30,80,.85) 0%, rgba(16,30,80,.55) 55%, rgba(16,30,80,.15) 100%),
              url("/images/byron-bay-coach-hire.jpg") center 55% / cover no-repeat;
  color: #fff; min-height: 460px; display: flex; align-items: center;
}
.bbc-hero__inner { width: 100%; max-width: 1320px; margin: 0 auto; padding: 4rem 1.25rem; }
.bbc-hero__eyebrow { text-transform: uppercase; letter-spacing: .15em; font-weight: 700; color: var(--bbc-sky); margin-bottom: .5rem; }
.bbc-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.1; max-width: 16ch; margin-bottom: 1rem; }
.bbc-hero__lead { font-size: 1.15rem; max-width: 46ch; opacity: .95; margin-bottom: 1.75rem; }
.bbc-hero__cta .btn { margin: 0 .5rem .5rem 0; font-weight: 700; border-radius: 999px; padding: .8rem 1.6rem; }
.bbc-hero .btn-primary { background: var(--bbc-sky); border-color: var(--bbc-sky); color: #0b1d4a; }
.bbc-hero .btn-primary:hover { background: #fff; border-color: #fff; color: var(--bbc-navy); }
.bbc-hero .btn-outline-light { color: #fff; border-color: #fff; }
.bbc-hero .btn-outline-light:hover { background: #fff; color: var(--bbc-navy); }

/* ---------- Layout ---------- */
.site-grid { padding-top: 3rem; }
.container-component { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; gap: 1.25rem; align-items: stretch; }
.container-component > div:empty, #system-message-container:empty { display: none !important; }
.container-component > * { flex: 1 1 100%; min-width: 0; }
.container-component > main:empty, .container-component .blog-featured:empty { display: none; }
.card { border: 0; border-radius: 14px; box-shadow: 0 4px 18px rgba(16,30,80,.07); }

/* ---------- Our Services ---------- */
.main-top .card-header { background: none; border: 0; font-size: 2rem; font-weight: 800; color: var(--bbc-navy); text-transform: uppercase; letter-spacing: .04em; padding: 1.75rem 1.75rem 0; }
.main-top .card-body { padding: 1rem 1.75rem 1.75rem; font-size: 1.02rem; line-height: 1.65; color: var(--bbc-muted); }
#mod-custom325 h4 { color: var(--bbc-navy); font-weight: 700; margin-top: 1.5rem; }
#mod-custom325 img { max-height: 44px; width: auto; margin-right: .5rem; vertical-align: middle; }
#mod-custom325 .s5_nofloat { padding: .5rem 1rem .5rem 0; }

/* ---------- Stats ---------- */
.main-bottom, .main-bottom * { color: var(--bbc-ink) !important; }
.container-component > .main-bottom {
  flex: 1 1 calc(33.333% - 1rem); text-align: center;
  background: var(--bbc-navy); 
}
.container-component > .main-bottom, .container-component > .main-bottom * { color: #fff !important; }
.main-bottom .card-body { padding: 2rem 1rem; }
.main-bottom h1, .main-bottom h2, .main-bottom h3, .main-bottom h4 { font-size: 2rem; font-weight: 800; margin-bottom: .25rem; color: var(--bbc-sky) !important; }
@media (max-width: 767px) { .container-component > .main-bottom { flex-basis: 100%; } }

/* ---------- Quote / contact ---------- */
.container-bottom-a { margin-top: 1.5rem; }
.bottom-a, .bottom-a * { color: var(--bbc-ink) !important; }
.bottom-a h1, .bottom-a h2, .bottom-a h3, .bottom-a h4 { font-size: 1.75rem !important; line-height: 1.25 !important; text-align: left !important; color: var(--bbc-navy) !important; font-weight: 800; }
.bottom-a .card-body { padding: 2rem; }
#s5_quick_contact input[type=text], #s5_quick_contact input[type=email], #s5_quick_contact textarea {
  width: 100% !important; border: 1px solid #cfd8e3 !important; border-radius: 8px !important; padding: .7rem .9rem !important; margin-bottom: .6rem !important; background: #fff !important; font-size: 1rem;
}
#s5_quick_contact input:focus, #s5_quick_contact textarea:focus { outline: 0; border-color: var(--bbc-sky) !important; box-shadow: 0 0 0 3px rgba(35,181,236,.25); }
#s5_quick_contact input[type=submit], #s5_quick_contact button, #s5_quick_contact .button {
  background: var(--bbc-navy) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; padding: .8rem 2rem !important; font-weight: 700; cursor: pointer; margin-top: .5rem;
}
#s5_quick_contact input[type=submit]:hover, #s5_quick_contact button:hover { background: var(--bbc-blue) !important; }

/* ---------- Footer ---------- */
.container-footer { background: var(--bbc-navy) !important; background-image: none !important; margin-top: 3rem; }
.container-footer, .container-footer a { color: #dbe4f5; }
.container-footer a:hover { color: #fff; }
.bbc-footer { display: flex; flex-wrap: wrap; gap: 2rem 4rem; padding: 1rem 0; width: 100%; }
.bbc-footer__brand { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: .25rem; }
.bbc-footer__heading { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--bbc-sky); margin-bottom: .25rem; }
.container-footer .mod-menu { gap: 1rem; }

/* ---------- Fixes round 2 ---------- */
#mod-custom325 ul { list-style: none; padding-left: 0; margin: 0 2.5rem 0 0; display: inline-block; vertical-align: top; min-width: 240px; }
#mod-custom325 li { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; break-inside: avoid; color: var(--bbc-ink); }
#mod-custom325 li img { max-height: 18px !important; margin: 0 !important; }
#mod-custom325 h4 img { max-height: 36px !important; }
#mod-custom325 li { white-space: nowrap; }
#mod-custom325 ul + ul, #mod-custom325 div:has(> ul) { margin-top: 0; }
html, body { overflow-x: hidden; }

/* Contact intro panel */
#mod-custom357 h4 { text-align: left !important; }
.bbc-contact-points { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.bbc-contact-points li { display: flex; gap: .75rem; align-items: center; padding: .9rem 0; border-top: 1px solid #e3e9f2; font-size: 1.1rem; }
.bbc-contact-points .fa, .bbc-contact-points [class^="icon-"] { color: var(--bbc-sky) !important; width: 1.4rem; text-align: center; }
.bbc-contact-points a { color: var(--bbc-navy) !important; font-weight: 700; text-decoration: none; }

#mod-custom325, #mod-custom325 div { height: auto !important; overflow: visible !important; }
#mod-custom325::after { content: ""; display: block; clear: both; }
@media (max-width: 767px) {
  .bbc-hero { min-height: 380px; background-position: 70% center; }
  .bbc-hero__inner { padding: 3rem 1.25rem; }
  #mod-custom325 .s5_nofloat, #mod-custom325 > div { width: 100% !important; float: none !important; }
  #mod-custom325 ul { display: block; margin: 0; }
  .bbc-footer { gap: 1rem; }
}

/* =========================================================
   Quote form (custom override of mod_s5_quick_contact)
   ========================================================= */
.bbc-quote { scroll-margin-top: 90px; }
.bbc-quote__title { font-size: 1.35rem; font-weight: 800; color: var(--bbc-navy) !important; margin: 0 0 1rem; }
.bbc-quote__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.bbc-quote__field { display: flex; flex-direction: column; min-width: 0; }
.bbc-quote__field--full { grid-column: 1 / -1; }
.bbc-quote__field label { font-size: .85rem; font-weight: 700; color: var(--bbc-navy) !important; margin-bottom: .3rem; }
.bbc-quote__field label span { color: #d0342c !important; }
.bbc-quote__field input, .bbc-quote__field textarea {
  width: 100%; border: 1px solid #cfd8e3; border-radius: 10px; padding: .75rem .9rem; font-size: 1rem; background: #fff; color: var(--bbc-ink) !important; transition: border-color .15s, box-shadow .15s;
}
.bbc-quote__field input:focus, .bbc-quote__field textarea:focus { outline: 0; border-color: var(--bbc-sky); box-shadow: 0 0 0 3px rgba(35,181,236,.25); }
.bbc-quote__field input:user-invalid { border-color: #d0342c; }
.bbc-quote__submit {
  margin-top: 1.25rem; width: 100%; border: 0; border-radius: 999px; padding: .95rem 1.5rem; font-size: 1.05rem; font-weight: 800;
  background: var(--bbc-sky); color: #0b1d4a !important; cursor: pointer; transition: background .15s, transform .1s;
}
.bbc-quote__submit:hover { background: var(--bbc-navy); color: #fff !important; }
.bbc-quote__submit:active { transform: translateY(1px); }
.bbc-quote__note { font-size: .8rem; color: var(--bbc-muted) !important; margin: .75rem 0 0; text-align: center; }
.bbc-quote__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bbc-quote__errors { background: #fdecea; border: 1px solid #f5c2bd; border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: 1rem; }
.bbc-quote__errors, .bbc-quote__errors * { color: #8a1c14 !important; }
.bbc-quote__errors p { font-weight: 700; margin: 0 0 .3rem; }
.bbc-quote__errors ul { margin: 0; padding-left: 1.1rem; }
.bbc-quote__success { text-align: center; padding: 2.5rem 1rem; }
.bbc-quote__success-title { font-size: 1.4rem; font-weight: 800; color: var(--bbc-navy) !important; }
.bbc-quote__success a { color: var(--bbc-blue) !important; font-weight: 700; }
@media (max-width: 575px) { .bbc-quote__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Contact page
   ========================================================= */
.bbc-contact { padding: 1rem 0 2rem; }
.bbc-contact__title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--bbc-navy); margin-bottom: .5rem; }
.bbc-contact__lead { font-size: 1.1rem; color: var(--bbc-muted); max-width: 60ch; margin-bottom: 2rem; }
.bbc-contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; align-items: start; }
.bbc-contact__info { display: flex; flex-direction: column; gap: .9rem; }
.bbc-contact__card {
  display: flex; flex-direction: column; gap: .15rem; padding: 1.1rem 1.3rem; background: #fff; border-radius: 14px;
  box-shadow: 0 4px 18px rgba(16,30,80,.07); text-decoration: none !important; border-left: 4px solid var(--bbc-sky); transition: transform .15s, box-shadow .15s;
}
.bbc-contact__card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,30,80,.12); }
.bbc-contact__label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bbc-muted); }
.bbc-contact__value { font-size: 1.15rem; font-weight: 700; color: var(--bbc-navy); word-break: break-word; }
.bbc-contact__map { border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(16,30,80,.07); aspect-ratio: 4 / 3; background: #e6ecf5; }
.bbc-contact__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.bbc-contact__form { background: #fff; border-radius: 14px; box-shadow: 0 4px 18px rgba(16,30,80,.07); padding: 1.75rem; }
@media (max-width: 991px) { .bbc-contact__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Service pages, FAQ and CTA
   ========================================================= */
.bbc-page { max-width: 860px; padding: 1rem 0 2rem; }
.bbc-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--bbc-navy); margin-bottom: .75rem; }
.bbc-page h2 { font-size: 1.45rem; font-weight: 800; color: var(--bbc-navy); margin: 2rem 0 .6rem; }
.bbc-page p, .bbc-page li { font-size: 1.05rem; line-height: 1.7; color: var(--bbc-ink); }
.bbc-page__lead { font-size: 1.2rem !important; color: var(--bbc-muted) !important; }
.bbc-page ul { padding-left: 1.2rem; }
.bbc-page li { margin-bottom: .3rem; }
.bbc-page a { color: var(--bbc-blue); font-weight: 600; }
.bbc-cta { margin: 2.5rem 0 1.5rem; padding: 1.75rem 2rem; border-radius: 14px; background: var(--bbc-navy); }
.bbc-cta h2 { margin-top: 0 !important; color: #fff !important; }
.bbc-cta p { color: #dbe4f5 !important; }
.bbc-cta a { color: var(--bbc-sky) !important; }
.bbc-cta .btn { border-radius: 999px; font-weight: 700; padding: .7rem 1.5rem; background: var(--bbc-sky); border-color: var(--bbc-sky); color: #0b1d4a !important; }
.bbc-page .bbc-quote { background: #fff; border-radius: 14px; box-shadow: 0 4px 18px rgba(16,30,80,.07); padding: 1.75rem; }
.bbc-faq__item { background: #fff; border-radius: 14px; box-shadow: 0 4px 18px rgba(16,30,80,.07); padding: 1.25rem 1.5rem; margin-bottom: 1rem; border-left: 4px solid var(--bbc-sky); }
.bbc-faq__q { font-size: 1.15rem !important; margin: 0 0 .4rem !important; }
.bbc-faq__a { margin: 0; }

/* =========================================================
   Split layout: copy left, quote panel + form right
   ========================================================= */
.bbc-page--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.bbc-page__aside .bbc-cta { margin: 0 0 1rem; padding: 1.4rem 1.5rem; }
.bbc-page__aside .bbc-cta h2 { font-size: 1.35rem; }
.bbc-page__aside .bbc-quote { padding: 1.4rem; }
.bbc-page__form { margin: 0; }
.bbc-page__mobile-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 .5rem; }
.bbc-btn { border-radius: 999px; font-weight: 700; padding: .75rem 1.4rem; text-decoration: none !important; }
.bbc-btn--primary { background: var(--bbc-sky); border: 2px solid var(--bbc-sky); color: #0b1d4a !important; }
.bbc-btn--ghost { background: transparent; border: 2px solid var(--bbc-navy); color: var(--bbc-navy) !important; }
.bbc-btn--primary:hover { background: var(--bbc-navy); border-color: var(--bbc-navy); color: #fff !important; }
.bbc-btn--ghost:hover { background: var(--bbc-navy); color: #fff !important; }
@media (min-width: 992px) {
  .bbc-page--split { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 3rem; }
  .bbc-page__aside { position: sticky; top: 1.5rem; }
  .bbc-page__mobile-cta { display: none; }
}
@media (min-width: 992px) and (max-height: 900px) {
  .bbc-page__aside { position: static; }
}
@media (max-width: 991px) {
  .bbc-page__aside { margin-top: .5rem; }
}
@media (max-width: 420px) {
  .bbc-page__aside .bbc-quote__grid { grid-template-columns: 1fr; }
  .bbc-page__mobile-cta .btn { flex: 1 1 100%; text-align: center; }
}

/* =========================================================
   Home: Our Services block (module 325)
   ========================================================= */
#mod-custom325 .bbc-services { background: #fff; border-radius: 18px; box-shadow: 0 4px 18px rgba(16,30,80,.07); padding: clamp(1.5rem, 4vw, 3rem); }
.bbc-services__intro { max-width: 760px; margin-bottom: 2rem; }
.bbc-services__eyebrow { text-transform: uppercase; letter-spacing: .15em; font-weight: 800; font-size: .8rem; color: var(--bbc-sky); margin: 0 0 .4rem; }
.bbc-services__heading { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.15; color: var(--bbc-navy); margin: 0 0 .9rem; scroll-margin-top: 110px; }
.bbc-services__lead { font-size: 1.1rem; line-height: 1.7; color: var(--bbc-muted); margin: 0 0 1.1rem; }
.bbc-services__fleet { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0; }
.bbc-services__fleet-label { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bbc-navy); margin-right: .3rem; }
.bbc-chip { display: inline-block; padding: .3rem .7rem; border-radius: 999px; background: #eaf6fd; color: var(--bbc-navy); font-weight: 700; font-size: .85rem; }
.bbc-services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.bbc-service { display: flex; flex-direction: column; padding: 1.5rem 1.4rem; border-radius: 14px; background: var(--bbc-bg); border: 1px solid #e3e9f2; text-decoration: none !important; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; scroll-margin-top: 110px; }
.bbc-service:hover, .bbc-service:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(16,30,80,.12); border-color: var(--bbc-sky); background: #fff; }
.bbc-service__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--bbc-navy); color: #fff; margin-bottom: 1rem; }
.bbc-service__icon svg { width: 28px; height: 28px; }
.bbc-service:hover .bbc-service__icon { background: var(--bbc-sky); color: var(--bbc-navy); }
.bbc-service__title { font-size: 1.15rem; font-weight: 800; color: var(--bbc-navy); margin: 0 0 .5rem; }
.bbc-service__text { font-size: .98rem; line-height: 1.6; color: var(--bbc-muted); margin: 0 0 1rem; flex: 1; }
.bbc-service__link { font-weight: 800; font-size: .92rem; color: var(--bbc-blue); }
.bbc-services__charters { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid #e3e9f2; }
.bbc-services__subheading { font-size: 1.1rem; font-weight: 800; color: var(--bbc-navy); margin: 0 0 .9rem; }
#mod-custom325 .bbc-tags { display: flex !important; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0 !important; margin: 0 !important; max-width: none; min-width: 0; columns: auto; }
#mod-custom325 .bbc-tags li { display: inline-flex !important; align-items: center; white-space: normal; margin: 0 !important; padding: .45rem .9rem; border-radius: 999px; background: #fff; border: 1px solid #cfd8e3; color: var(--bbc-ink); font-size: .92rem; font-weight: 600; }
#mod-custom325 .bbc-tags li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--bbc-sky); margin-right: .5rem; flex: none; }
@media (max-width: 1199px) { .bbc-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .bbc-services__grid { grid-template-columns: 1fr; } .bbc-service { padding: 1.25rem; } }
#mod-custom325 .bbc-services__charters { margin-top: 2.25rem !important; }
@media (max-width: 575px) {
  #mod-custom325 .bbc-services { padding: 1.25rem; }
  #mod-custom325 .bbc-tags { gap: .4rem; }
  #mod-custom325 .bbc-tags li { font-size: .8rem; padding: .35rem .7rem; }
  #mod-custom325 .bbc-tags li::before { width: .4rem; height: .4rem; margin-right: .4rem; }
}
