/* ==========================================================================
   Blue Birds Events — theme additions on top of the original site CSS.
   (WordPress-specific pieces: logo, dropdown menu, mobile menu, forms,
   Elementor wrapper resets, plain pages, pagination, reveal animation.)
   Website design and development by CodesDen — https://codesden.com/
   ========================================================================== */

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 1000;
}
.skip:focus {
  left: 12px;
  top: 12px;
}

/* ---------- brand / logo ---------- */
.brand__logo {
  height: 54px;
  width: auto;
  display: block;
}
.brand--footer .brand__logo {
  height: 44px;
}
@media (max-width: 640px) {
  .brand__logo {
    height: 42px;
  }
}
/* Small phones: the header button moves into the menu (see .menu__cta). */
@media (max-width: 560px) {
  .nav__cta .btn {
    display: none;
  }
}
.menu__cta {
  display: none;
}
@media (min-width: 941px) {
  .menu__cta {
    display: none !important;
  }
}

/* ---------- primary menu: current state + dropdown ---------- */
.menu a.is-current::after {
  transform: scaleX(1);
}
.menu .menu__item {
  position: relative;
}
.menu .menu__item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.menu__caret {
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.menu__sub {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  min-width: 280px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-top: 2px solid var(--gold);
  padding: 10px 0;
  display: none;
  flex-direction: column;
  z-index: 60;
  box-shadow: 0 18px 40px rgba(5, 10, 24, 0.45);
}
.menu__sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}
.menu__sub a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: #d7deec;
}
.menu__sub a::after {
  display: none;
}
.menu__sub a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold);
}
/* Open on: mouse hover (pointer devices only), keyboard focus, or the tap/JS toggle (.is-open). */
.menu .menu__item.is-open > .menu__sub {
  display: flex;
}
.menu .menu__item.is-open .menu__caret {
  transform: rotate(180deg);
}
/* .hover-lock is set by JS on page load and removed on the first mouse move, so a dropdown never stays open
   just because the pointer happens to rest on "Services" after clicking it. */
@media (hover: hover) and (min-width: 941px) {
  .menu:not(.hover-lock) .menu__item:hover > .menu__sub {
    display: flex;
  }
  .menu:not(.hover-lock) .menu__item:hover .menu__caret {
    transform: rotate(180deg);
  }
}
@media (min-width: 941px) {
  .menu .menu__item:has(> a:focus-visible) > .menu__sub,
  .menu .menu__item:has(.menu__sub a:focus-visible) > .menu__sub {
    display: flex;
  }
}

/* ---------- mobile menu (class-based, replaces the inline-style toggle) ---------- */
.nav.is-scrolled {
  box-shadow: 0 8px 30px rgba(5, 10, 24, 0.35);
}
.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  opacity: 0;
}
.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.burger span {
  transition: transform 0.25s ease, opacity 0.2s ease;
}
@media (max-width: 940px) {
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 16px 28px 24px;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .menu.is-open {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    box-shadow: 0 24px 40px rgba(5, 10, 24, 0.45);
  }
  .menu > a,
  .menu .menu__item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .menu .menu__item {
    width: 100%;
  }
  .menu > a.menu__cta {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin-top: 18px;
    padding: 14px 18px;
    border-bottom: 0;
    font-size: 0.95rem;
  }
  /* compact header: logo left, burger right, one-line button */
  .nav .wrap {
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 12px;
  }
  .nav__cta {
    gap: 10px;
  }
  .nav__cta .btn {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 0.8rem;
  }
  .burger {
    padding: 10px 6px;
    margin-right: -6px;
  }
  .menu a::after {
    display: none;
  }
  .menu__sub {
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 6px 14px;
  }
  .menu__sub a {
    padding: 9px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  }
}

/* ---------- testimonials hero stats: keep text off the divider lines (original had no left padding) ---------- */
.rating-strip div {
  padding-left: 26px;
}
.rating-strip div:first-child {
  padding-left: 0;
}
@media (max-width: 820px) {
  .rating-strip div {
    padding-left: 18px;
  }
  .rating-strip div:nth-child(odd) {
    padding-left: 0;
  }
}

/* ---------- unified inner-page heroes ----------
   The original pages each had their own hero rhythm (different heights, paddings, heading sizes and vertical
   alignment). Every inner page now shares one: same min-height, content anchored to the bottom, same heading
   size and the same top/bottom spacing. The home hero keeps its own larger layout. */
body .page-hero,
body .post-hero {
  display: flex;
  align-items: flex-end;
  min-height: 600px;
  padding: 0;
}
body .page-hero > .wrap,
body .post-hero > .wrap {
  position: relative;
  width: 100%;
  padding-top: 150px;
  padding-bottom: 80px;
}
/* two columns only when the hero really has a side panel (service pages) */
body .page-hero > .wrap:not(:has(> aside)) {
  display: block;
}
body .page-hero > .wrap:has(> aside) {
  display: grid;
  align-items: end;
}
body .page-hero h1,
body .post-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.06;
}
body .page-hero .rating-strip {
  margin-top: 48px;
}
@media (max-width: 920px) {
  body .page-hero > .wrap:has(> aside) {
    display: grid;
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  body .page-hero,
  body .post-hero {
    min-height: 0;
  }
  body .page-hero > .wrap,
  body .post-hero > .wrap {
    padding-top: 64px;
    padding-bottom: 56px;
  }
}

/* ---------- hero alignment options (set per page in the Elementor widget: Text alignment) ---------- */
.page-hero--v-center,
.hero--v-center {
  align-items: center;
}
.page-hero--v-top,
.hero--v-top {
  align-items: flex-start;
}
.page-hero--align-center .wrap,
.hero--align-center .wrap {
  text-align: center;
}
.page-hero--align-right .wrap,
.hero--align-right .wrap {
  text-align: right;
}
.page-hero--align-center .page-hero__content,
.page-hero--align-center .lede,
.page-hero--align-center .page-hero__stats,
.page-hero--align-center .page-hero__meta,
.hero--align-center .hero__content,
.hero--align-center .lede {
  margin-left: auto;
  margin-right: auto;
}
.page-hero--align-right .page-hero__content,
.page-hero--align-right .lede,
.page-hero--align-right .page-hero__stats,
.page-hero--align-right .page-hero__meta,
.hero--align-right .hero__content,
.hero--align-right .lede {
  margin-left: auto;
  margin-right: 0;
}
.page-hero--align-center .hero__ctas,
.page-hero--align-center .crumbs,
.page-hero--align-center .crumb,
.page-hero--align-center .breadcrumb,
.page-hero--align-center .p-breadcrumb,
.page-hero--align-center .page-hero__stats,
.page-hero--align-center .page-hero__meta,
.page-hero--align-center .hero__stats,
.hero--align-center .hero__ctas,
.hero--align-center .hero__stats {
  justify-content: center;
}
.page-hero--align-right .hero__ctas,
.page-hero--align-right .crumbs,
.page-hero--align-right .crumb,
.page-hero--align-right .breadcrumb,
.page-hero--align-right .p-breadcrumb,
.page-hero--align-right .page-hero__stats,
.page-hero--align-right .page-hero__meta,
.page-hero--align-right .hero__stats,
.hero--align-right .hero__ctas,
.hero--align-right .hero__stats {
  justify-content: flex-end;
}
/* Services-style hero with a side panel: alignment applies to the text column only. */
.page-hero--align-center .wrap:has(> aside) .page-hero__content,
.page-hero--align-right .wrap:has(> aside) .page-hero__content {
  text-align: inherit;
}
.page-hero--align-center .wrap:has(> aside) aside,
.page-hero--align-right .wrap:has(> aside) aside {
  text-align: left;
}

/* ---------- stats band on small phones (same rule on every service page) ---------- */
@media (max-width: 480px) {
  body .stats-band__item {
    flex-direction: column;
    gap: 6px;
    padding: 20px 14px 20px 16px;
  }
  body .stats-band__item:nth-child(odd) {
    padding-left: 0;
  }
}

/* ---------- footer menus ---------- */
.footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .brand--footer .brand__name {
  font-size: 1.15rem;
  color: #dce2f0;
}

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  z-index: 80;
  transition: transform 0.2s ease;
}
.wa-float:hover {
  transform: translateY(-2px) scale(1.04);
}

/* On phones the fixed "Call us / WhatsApp" bar (.quickbar, styled in main.css) replaces the float. */
@media (max-width: 760px) {
  .wa-float {
    display: none;
  }
  body {
    padding-bottom: 54px;
  }
  .quickbar:only-child > a {
    grid-column: 1 / -1;
  }
}

/* ---------- built-in forms ---------- */
.bb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
form.enquiry button[disabled],
form.proposal-form button[disabled],
form.subscribe-form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

/* Plugin forms (Fluent Forms / others) inside the theme's form panels */
.enquiry.bb-plugin-form {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  padding: 40px;
}
.proposal-form.bb-plugin-form {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  padding: 40px;
  color: var(--white);
}
@media (max-width: 560px) {
  .enquiry.bb-plugin-form,
  .proposal-form.bb-plugin-form {
    padding: 26px;
  }
}
.bb-plugin-form .fluentform,
.bb-plugin-form .frm-fluent-form {
  width: 100%;
}
.bb-plugin-form .ff-el-group {
  margin-bottom: 18px;
}
.bb-plugin-form .ff-el-input--label label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #aeb8cf;
  margin-bottom: 8px;
  display: block;
}
.bb-plugin-form .ff-el-form-check-label {
  color: #dde3f0;
  font-size: 0.92rem;
}
.bb-plugin-form .ff-el-form-control,
.bb-plugin-form input[type="text"],
.bb-plugin-form input[type="email"],
.bb-plugin-form input[type="tel"],
.bb-plugin-form input[type="number"],
.bb-plugin-form input[type="date"],
.bb-plugin-form select,
.bb-plugin-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  border: 1px solid var(--ink-3);
  color: var(--white);
  box-shadow: none;
  height: auto;
}
.bb-plugin-form input[type="checkbox"],
.bb-plugin-form input[type="radio"] {
  width: auto;
  height: auto;
  padding: 0;
  margin-right: 8px;
  accent-color: var(--gold);
}
.bb-plugin-form .ff-btn-submit,
.bb-plugin-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  background: var(--gold) !important;
  color: var(--ink) !important;
  cursor: pointer;
}
.bb-plugin-form .ff-btn-submit:hover {
  background: var(--gold-deep) !important;
}
.bb-plugin-form .ff-message-success {
  background: var(--ink-2);
  border: 1px solid var(--gold);
  color: var(--gold-pale);
  padding: 16px 18px;
  border-radius: var(--radius);
}
.subscribe-form.bb-plugin-form {
  display: block;
}

/* ---------- Mobile safety: never let a wide table / grid child push the page sideways ---------- */
html {
  overflow-x: clip;
}
.post-layout > *,
.page-hero .wrap > *,
.bb-content .e-con > .elementor-widget,
.bb-content .e-con > .elementor-element {
  min-width: 0;
  max-width: 100%;
}
.bb-content .elementor-widget-container {
  min-width: 0;
}

/* ---------- Elementor wrapper resets so widgets sit edge-to-edge like the original ---------- */
.bb-content .elementor-widget:not(:last-child) {
  margin-bottom: 0;
  margin-block-end: 0;
}
.bb-content .e-con {
  --padding-top: 0;
  --padding-right: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --gap: 0;
  --row-gap: 0;
  --column-gap: 0;
  --margin-top: 0;
  --margin-bottom: 0;
}
.bb-content .e-con > .e-con-inner {
  max-width: none;
  padding: 0;
}
.bb-content .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: none;
}
.bb-content .elementor-column-gap-default > .elementor-column > .elementor-element-populated {
  padding: 0;
}
.bb-content .elementor-widget-html .elementor-widget-container > section,
.bb-content .elementor-widget-container > section {
  margin: 0;
}
.elementor-editor-active .bb-content section {
  min-height: 40px;
}
.elementor-editor-active .bb-content .elementor-widget-container:empty::before {
  content: "Blue Birds widget — configure it in the left panel";
  display: block;
  padding: 24px;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- plain (non-Elementor) pages ---------- */
.page-prose {
  background: var(--paper);
}
.prose-body {
  max-width: 760px;
  font-size: 1.05rem;
}
.prose-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: 1.6em;
}
.prose-body h3 {
  font-size: 1.35rem;
  margin-top: 1.4em;
}
.prose-body p,
.prose-body li {
  color: #2b3853;
}
.prose-body ul,
.prose-body ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
  list-style: disc;
}
.prose-body ol {
  list-style: decimal;
}
.prose-body a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose-body img {
  border-radius: var(--radius);
  margin: 1.4em 0;
}
.prose-body blockquote {
  border-left: 2px solid var(--gold);
  margin: 1.6em 0;
  padding: 0.4em 0 0.4em 1.2em;
  font-family: var(--serif);
  font-size: 1.25rem;
}
.prose-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.95rem;
}
.prose-body th,
.prose-body td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

/* ---------- pagination ---------- */
.bb-pagination {
  margin-top: 48px;
}
.bb-pagination .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bb-pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
}
.bb-pagination .page-numbers.current,
.bb-pagination .page-numbers:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.bb-search {
  max-width: 560px;
}

/* ---------- reveal on scroll ---------- */
.js .bb-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .bb-reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .bb-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- single post: category tag link ---------- */
.post-hero a.post-tag:hover {
  color: var(--gold);
}

/* ---------- thank-you page ---------- */
.bb-thankyou .page-hero {
  min-height: 60vh;
}

/* ---------- WordPress core bits ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
.alignwide,
.alignfull {
  max-width: none;
}
.wp-caption {
  max-width: 100%;
}
