/* ==========================================================================
   GreenPay Services - Layout
   Site header, navigation, footer and floating actions (shared by all pages).
   ========================================================================== */

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: var(--c-header);
  border-color: var(--c-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}

.brand:hover {
  text-decoration: none;
}

.brand__logo {
  width: auto;
  height: 54px;
}

/* White artwork on the dark theme, full colour on the light theme. */
.brand__logo--colour,
:root[data-theme="light"] .brand__logo--white {
  display: none;
}

:root[data-theme="light"] .brand__logo--colour {
  display: block;
}

/* ---------- Primary navigation ---------- */
.nav__list {
  display: flex;
  gap: 4px;
}

.nav__link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--c-text);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav__link:hover,
.nav__link.is-active {
  background: rgba(10, 124, 255, 0.16);
  color: var(--c-heading);
  text-decoration: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-surface);
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--c-border-strong);
}

.icon-btn .icon {
  width: 19px;
  height: 19px;
}

.theme-icon--moon,
:root[data-theme="light"] .theme-icon--sun {
  display: none;
}

:root[data-theme="light"] .theme-icon--moon {
  display: block;
}

.nav-toggle {
  display: none;
}

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

  .nav {
    position: absolute;
    inset: var(--header-h) 0 auto;
    visibility: hidden;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 12px 16px 24px;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-surface-solid);
    opacity: 0;
    translate: 0 -8px;
    transition: opacity 0.25s, translate 0.25s, visibility 0.25s;
  }

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

  .nav__list {
    flex-direction: column;
  }

  .nav__link {
    padding: 12px 16px;
    font-size: 1rem;
  }
}

@media (max-width: 620px) {
  .site-header__actions .btn {
    display: none;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding-top: 72px;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg-alt);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 2px;
  background: var(--grad-brand);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}

.site-footer h4 {
  margin-bottom: 18px;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer p {
  color: var(--c-muted);
  font-size: 0.93rem;
}

.site-footer .brand {
  margin-bottom: 20px;
}

.site-footer .brand__logo {
  height: 72px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--c-muted);
  font-size: 0.93rem;
}

.footer-links a:hover {
  color: var(--c-heading);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}

.footer-contact .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--c-green);
}

.footer-contact a {
  color: var(--c-text);
}

.site-footer__disclaimer {
  padding-block: 22px;
  border-top: 1px solid var(--c-border);
}

.site-footer__disclaimer p {
  margin: 0;
  font-size: 0.8rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px 96px;
  border-top: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: 0.85rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer__legal a {
  color: var(--c-muted);
}

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

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

/* ---------- Floating actions ---------- */
.floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating__btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--grad-blue);
  color: #fff;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  transition: transform 0.2s, opacity 0.25s, visibility 0.25s;
}

.floating__btn:hover {
  transform: translateY(-3px);
}

.floating__btn .icon {
  width: 24px;
  height: 24px;
}

.floating__btn--whatsapp {
  background: linear-gradient(135deg, #2fd668, #148f41);
}

.floating__btn--top {
  visibility: hidden;
  opacity: 0;
}

.floating__btn--top.is-visible {
  visibility: visible;
  opacity: 1;
}

/* Smaller buttons on phones so they cover less of the content. */
@media (max-width: 560px) {
  .floating {
    right: 12px;
    bottom: 12px;
    gap: 10px;
  }

  .floating__btn {
    width: 46px;
    height: 46px;
  }

  .floating__btn .icon {
    width: 21px;
    height: 21px;
  }
}

@media print {
  .site-header,
  .floating,
  .skip-link {
    display: none;
  }
}
