/* ==========================================================================
   Layout: site header + navigation, page banner, CTA band, footer
   ========================================================================== */

/* ----- Header ------------------------------------------------------------ */

/* Solid navbar box in the brand navy (the original header colour). It is NOT
   sticky or fixed: it sits at the top of the page and scrolls away with it. */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--navy-800);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
}

.brand {
  position: relative;
  z-index: 2;
  display: block;
  flex: none;
  width: clamp(150px, 16vw, 205px);
}

.brand img {
  width: 100%;
  transition: transform 0.4s var(--ease);
}

.brand:hover img {
  transform: scale(1.03);
}

.nav-list,
.sub-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.6vw, 1.6rem);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 0.35rem;
  background: none;
  border: 0;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"],
.has-sub.is-active > .nav-link,
.has-sub.is-open > .nav-link {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after,
.has-sub.is-active > .nav-link::after {
  transform: scaleX(1);
}

.nav-link .icon {
  width: 0.9em;
  height: 0.9em;
  transition: transform 0.3s var(--ease);
}

.has-sub.is-open > .nav-link .icon {
  transform: rotate(180deg);
}

.has-sub {
  position: relative;
}

.sub-list {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 17rem;
  padding: 0.5rem;
  background: var(--navy-800);
  border: 1px solid rgba(242, 194, 48, 0.28);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  translate: 0 10px;
  transition: opacity 0.25s var(--ease), translate 0.25s var(--ease),
    visibility 0.25s;
}

.has-sub.is-open > .sub-list,
.has-sub:focus-within > .sub-list {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.sub-list .nav-link {
  display: flex;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 6px;
  letter-spacing: 0.1em;
}

.sub-list .nav-link::after {
  display: none;
}

.sub-list .nav-link:hover,
.sub-list .nav-link[aria-current="page"] {
  background: rgba(242, 194, 48, 0.12);
}

@media (hover: hover) and (min-width: 1001px) {
  .has-sub:hover > .sub-list {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }
}

/* Hamburger */
.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  background: transparent;
  border: 1.5px solid rgba(242, 194, 48, 0.5);
  border-radius: var(--radius-sm);
  color: var(--gold);
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}

.nav-toggle:hover {
  background: rgba(242, 194, 48, 0.12);
}

.nav-toggle .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 1000px) {
  .nav-toggle {
    display: grid;
  }

  /* Full-screen menu panel; the logo and toggle stay above it. */
  .site-nav {
    position: fixed;
    inset: 0;
    padding: calc(var(--header-h) + 1.25rem) var(--gutter) 3rem;
    overflow-y: auto;
    background: var(--navy-800);
    opacity: 0;
    visibility: hidden;
    translate: 0 -14px;
    transition: opacity 0.3s var(--ease), translate 0.3s var(--ease),
      visibility 0.3s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 560px;
    margin-inline: auto;
  }

  .nav-list > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 1.1rem 0.25rem;
    font-size: 1rem;
  }

  .nav-link::after {
    display: none;
  }

  .sub-list {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 0.75rem 1rem;
    background: transparent;
    border: 0;
    border-left: 2px solid var(--gold);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    translate: none;
  }

  .has-sub.is-open > .sub-list {
    display: block;
  }

  .has-sub:focus-within > .sub-list {
    display: block;
  }
}

/* ----- Page banner (inner pages) ---------------------------------------- */

.page-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  color: var(--white);
}

.page-banner__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: banner-zoom 18s ease-out both;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Neutral dark fade (no colour tint) so the photo keeps its natural colours. */
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.66) 0%,
    rgba(0, 0, 0, 0.4) 55%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

.page-banner h1 {
  max-width: 18ch;
  margin-bottom: 1.1rem;
  color: var(--white);
  font-size: clamp(2.1rem, 1.1rem + 3.8vw, 3.8rem);
}

.page-banner h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 4px;
  margin-top: 1.1rem;
  background: var(--gold);
  border-radius: 2px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.6rem;
  color: var(--gold);
}

.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--white);
}

@keyframes banner-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

/* ----- Shared CTA band (appears above the footer on every page) ---------- */

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  color: var(--white);
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Neutral dark fade (no colour tint) so the photo keeps its natural colours. */
  background: linear-gradient(
    95deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.36) 55%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem 3rem;
}

.cta-band h2 {
  max-width: 22ch;
  color: var(--white);
}

.cta-band p {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.88);
}

.cta-band a:not(.btn) {
  color: var(--gold);
  font-weight: 700;
  text-decoration-color: rgba(242, 194, 48, 0.5);
}

.cta-band a:not(.btn):hover {
  color: var(--white);
}

@media (max-width: 800px) {
  .cta-band__inner {
    grid-template-columns: 1fr;
  }
}

/* ----- Footer ------------------------------------------------------------ */

.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr 1.6fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer-brand img {
  width: min(100%, 260px);
  margin-bottom: 1.25rem;
}

.footer-brand p {
  max-width: 36ch;
  font-size: 0.98rem;
}

.site-footer .footer-title {
  position: relative;
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.site-footer .footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.4rem;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-links {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-info a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

/* Inline phone / email links: the padding enlarges the tap area, the negative margin keeps the layout */
.footer-info a,
.cta-band a:not(.btn),
.site-footer__bar a,
.breadcrumb a {
  display: inline-block;
  padding-block: 0.6rem;
  margin-block: -0.6rem;
}

.footer-links a:hover,
.footer-info a:hover {
  color: var(--gold);
}

.footer-links a:hover {
  transform: translateX(5px);
}

.footer-info {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-info li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.footer-info .icon {
  margin-top: 0.2rem;
  color: var(--gold);
}

.footer-info .footer-label {
  margin: 0 0 0.1rem;
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-info p {
  margin: 0;
  font-size: 0.97rem;
  overflow-wrap: break-word;
}

.social {
  display: flex;
  gap: 0.7rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
  transform: translateY(-3px);
}

.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 27, 69, 0.28);
  font-size: 0.95rem;
}

.site-footer__bar .container {
  padding-block: 1.25rem;
  text-align: center;
}

.site-footer__bar p {
  margin: 0;
}

.site-footer__bar a {
  color: var(--gold);
  font-weight: 700;
  text-decoration-color: rgba(242, 194, 48, 0.5);
}

.site-footer__bar a:hover {
  color: var(--white);
}

@media (max-width: 960px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Back to top ------------------------------------------------------- */

.to-top {
  position: fixed;
  right: calc(clamp(1rem, 3vw, 2rem) + 4px);
  bottom: calc(clamp(1rem, 3vw, 2rem) + 68px);
  z-index: 90;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: var(--navy-900);
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  translate: 0 16px;
  transition: opacity 0.3s var(--ease), translate 0.3s var(--ease),
    visibility 0.3s, background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.to-top:hover {
  background: var(--gold);
  color: var(--navy-900);
}

.to-top .icon {
  rotate: -90deg;
}

/* ----- Floating WhatsApp chat button (every page) ------------------------ */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  background: #25d366; /* WhatsApp brand green */
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  color: var(--white);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.wa-float .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.6;
}

.wa-float:hover {
  transform: scale(1.06);
}

.wa-float:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ----- Page banner: image reveal with a restrained navy overlay ----------
   Opt-in variant (used on the Taxation page). A solid navy cover fades away
   to uncover the photo while it settles from a slight zoom. The final overlay
   is deliberately light; it is darkest on the left where the title sits so
   the text stays readable. */
.page-banner--reveal .container {
  position: relative;
  z-index: 1;
}

.page-banner--reveal .page-banner__bg {
  animation: banner-settle 2.2s var(--ease) both;
}

.page-banner--reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--navy-800);
  pointer-events: none;
  animation: banner-uncover 1.4s var(--ease) 0.15s both;
}

.page-banner--navy::after {
  background: linear-gradient(
    100deg,
    rgba(25, 34, 84, 0.9) 0%,
    rgba(38, 49, 115, 0.66) 48%,
    rgba(38, 49, 115, 0.3) 100%
  );
}

@keyframes banner-settle {
  from {
    transform: scale(1.07);
  }
  to {
    transform: scale(1);
  }
}

@keyframes banner-uncover {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
