/* Novalis footer: white background so the original navy and gold logo shows unchanged */
.section_home-v1-footer {
  background-color: #fff;
  border-top: 1px solid rgba(38, 52, 80, 0.12);
}

.section_home-v1-footer .home-v1-footer_address-title,
.section_home-v1-footer .home-v1-footer_address-link,
.section_home-v1-footer .home-v1-footer_legal-link {
  color: var(--nv-muted);
}

.section_home-v1-footer .home-v1-footer_address-content,
.section_home-v1-footer .home-v1-footer_menu-link {
  color: #263450;
}

.section_home-v1-footer .home-v1-footer_menu-link:hover,
.section_home-v1-footer .home-v1-footer_address-link:hover,
.section_home-v1-footer .home-v1-footer_legal-link:hover {
  color: var(--nv-navy);
  text-decoration: underline;
  text-decoration-color: var(--nv-gold);
  text-underline-offset: 0.3em;
}

/* Brand, Explore menu, Contact and Address columns. */
.section_home-v1-footer {
  padding-top: 3.5rem;
  padding-bottom: 0;
}

.section_home-v1-footer .home-v1-footer_component {
  grid-template-columns: minmax(18rem, .8fr) minmax(0, 2.2fr);
  gap: 3rem 4rem;
  align-items: start;
}

.section_home-v1-footer .home-v1-footer_right {
  align-items: stretch;
}

/* Explore menu takes the width of its longest label; Contact and Address share the rest,
   so the columns run edge to edge in line with the bottom bar. */
.section_home-v1-footer .home-v1-footer_right-inner {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem 4rem;
}

/* Each menu link is a one-line box (the hover roll slides a second copy up), so a label that
   wrapped would be cut off. Keep labels on one line. */
.section_home-v1-footer .home-v1-footer_text,
.section_home-v1-footer .home-v1-footer_text-alt {
  white-space: nowrap;
}

/* Mid-size screens: brand row on top, the three columns across the full width below. */
@media (min-width: 768px) and (max-width: 1279px) {
  .section_home-v1-footer .home-v1-footer_component {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .section_home-v1-footer .home-v1-footer_right-inner {
    gap: 2rem 3rem;
  }
}

.section_home-v1-footer .home-v1-footer_menu-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 0;
  border: 0;
}

.section_home-v1-footer .home-v1-footer_address-wrap {
  max-width: none;
  gap: 0;
}
.section_home-v1-footer .home-v1-footer_address-wrap > .home-v1-footer_address-title {
  margin-bottom: 1.25rem;
}

.novalis-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(38, 52, 80, 0.1);
  font-size: 0.8125rem;
  color: var(--nv-muted);
}

.novalis-footer-bottom p {
  margin: 0;
}

.novalis-footer-tagline {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.6875rem;
}

.novalis-footer-tagline span {
  color: var(--nv-navy);
}

@media (max-width: 991px) {
  .section_home-v1-footer .home-v1-footer_component {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .section_home-v1-footer .home-v1-footer_right-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* The logo file (NOVALIS LOGO.png) is trimmed to the artwork, so it fills the link width. */
.novalis-footer-logo {
  display: block;
  width: 15rem;
  max-width: 100%;
}

.novalis-footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Keep social icons aligned to the logo's left edge with compact spacing. */
.novalis-footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  max-width: 100%;
  margin-top: 1.75rem;
}

.novalis-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.375rem;
  width: 2.375rem;
  height: 2.375rem;
  border: 1px solid rgba(38, 52, 80, 0.2);
  border-radius: 50%;
  color: #263450;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.novalis-footer-social a:hover,
.novalis-footer-social a:focus-visible {
  color: #fff;
  background-color: #ba8d40;
  border-color: #ba8d40;
}

/* Filled brand silhouettes stay clear at small sizes. */
.novalis-footer-social svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  stroke: none;
}
.novalis-footer-social a[aria-label="Alibaba"] svg {
  width: 1.3rem;
  height: 1.3rem;
}

.novalis-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.novalis-footer-contact a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.novalis-footer-contact a:hover {
  color: var(--nv-navy);
  text-decoration: underline;
  text-decoration-color: var(--nv-gold);
  text-underline-offset: 0.3em;
}

@media (max-width: 767px) {
  .novalis-footer-logo { width: 12rem; }
  .novalis-footer-social { margin-top: 1.5rem; }
}

.novalis-footer-nav { min-width: 0; }
.novalis-footer-nav > .home-v1-footer_address-title { margin-bottom: 1.25rem; }
.section_home-v1-footer .novalis-footer-contact a { overflow-wrap: anywhere; }
.section_home-v1-footer .home-v1-footer_menu-link {
  max-width: 100%;
  font-size: 1.0625rem;
}

.section_home-v1-footer .novalis-footer-contact { gap: 1rem; }
.novalis-footer-contact-row { display: flex; align-items: flex-start; gap: .75rem; }
.novalis-footer-contact-row svg { flex: 0 0 1.1rem; width: 1.1rem; height: 1.1rem; margin-top: .25em; fill: none; stroke: #ba8d40; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.novalis-footer-contact-row span { min-width: 0; overflow-wrap: anywhere; }
address.novalis-footer-contact-row { font-style: normal; margin: 0; }

/* Contact column: a WhatsApp list and an Email list, in the footer's usual link colours. */
.novalis-footer-reach { gap: 1.5rem; }
.novalis-footer-reach__group { display: flex; flex-direction: column; gap: 0.2rem; }
.novalis-footer-reach__label { margin: 0 0 0.35rem; color: var(--nv-muted, #5c677c); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; }

/* Shared floating WhatsApp contact button. */
/* White disc with a gold ring and navy icon: reads on both the white and the navy sections. */
.novalis-whatsapp {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--nv-navy, #263450);
  border: 0;
  box-shadow: 0 0 0 2px var(--nv-gold, #ba8d40), 0 10px 24px rgba(20, 28, 44, .2);
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.novalis-whatsapp svg { width: 28px; height: 28px; fill: currentColor; }
.novalis-whatsapp:hover { color: var(--nv-gold, #ba8d40); transform: translateY(-2px); box-shadow: 0 0 0 2px var(--nv-gold, #ba8d40), 0 14px 30px rgba(20, 28, 44, .26); }
.novalis-whatsapp:focus-visible { outline: 2px solid var(--nv-navy, #263450); outline-offset: 5px; }
@media (max-width: 767px) {
  .novalis-whatsapp { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .novalis-whatsapp { transition: none; } }

/* Back to top: a white disc with a navy arrow, stacked above the WhatsApp button on its centre
   line. A gold ring around it fills clockwise as the page scrolls (the script sets --totop-progress
   from 0 to 100). It appears once the page has scrolled past the first screen. */
.novalis-totop {
  --totop-progress: 0;
  position: fixed;
  right: calc(max(24px, env(safe-area-inset-right)) + 4px);
  bottom: calc(max(24px, env(safe-area-inset-bottom)) + 56px + 1rem);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--nv-navy, #263450);
  box-shadow: 0 8px 20px rgba(20, 28, 44, .16);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s, color .2s ease;
}
.novalis-totop.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease, visibility 0s, color .2s ease; }
.novalis-totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 2; }
.novalis-totop__track { stroke: rgba(186, 141, 64, .22); }
.novalis-totop__progress { stroke: var(--nv-gold, #ba8d40); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--totop-progress)); }
.novalis-totop__arrow { position: relative; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }
.novalis-totop:hover { color: var(--nv-gold, #ba8d40); }
.novalis-totop:hover .novalis-totop__arrow,
.novalis-totop:focus-visible .novalis-totop__arrow { transform: translateY(-3px); }
.novalis-totop:focus-visible { outline: 2px solid var(--nv-navy, #263450); outline-offset: 4px; }
@media (max-width: 767px) {
  .novalis-totop { right: calc(max(16px, env(safe-area-inset-right)) + 4px); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 52px + .875rem); width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .novalis-totop, .novalis-totop__arrow { transition: none; } }
