*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--colour-canvas);
  color: var(--colour-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Keep the footer at the bottom on short pages. */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--colour-brand);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--colour-ink);
  color: var(--colour-canvas);
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: none;
  outline-color: var(--colour-canvas);
}

/* Skip-link target receives focus programmatically; no ring needed. */
main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--colour-ink);
  border-radius: var(--radius);
  font: 600 0.8125rem/1.2 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.btn--primary {
  background: var(--colour-brand);
  border-color: var(--colour-brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--colour-ink);
  border-color: var(--colour-ink);
}

.btn--secondary {
  background: transparent;
  color: var(--colour-ink);
}

.btn--secondary:hover {
  border-color: var(--colour-brand);
  color: var(--colour-brand);
}

.btn:active {
  transform: translateY(1px);
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Floating WhatsApp button (every page) ---------- */
/* WhatsApp green with the white mark, as the brand asks. The label is always
   in the DOM (it is the link's accessible name); on desktop it slides out on
   hover or focus. Its text is dark because white on this green is unreadable. */
.wa-float {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  height: 48px;
  min-width: 48px;
  padding: 0 10px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(22, 24, 29, 0.22), 0 1px 3px rgba(22, 24, 29, 0.18);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.wa-float__icon {
  flex: none;
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Visually collapsed, still announced */
.wa-float__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--colour-ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  opacity: 0;
  transition: max-width 0.3s var(--ease), opacity 0.2s var(--ease), margin 0.3s var(--ease);
}

.wa-float:hover,
.wa-float:focus-visible {
  box-shadow: 0 10px 26px rgba(22, 24, 29, 0.28), 0 2px 4px rgba(22, 24, 29, 0.18);
  transform: translateY(-2px);
}

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

@media (min-width: 768px) {
  .wa-float {
    height: 56px;
    min-width: 56px;
    padding: 0 14px;
  }

  .wa-float:hover .wa-float__label,
  .wa-float:focus-visible .wa-float__label {
    max-width: 12rem;
    margin: 0 4px 0 10px;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float,
  .wa-float__label {
    transition: none;
  }
}

@media print {
  .wa-float {
    display: none;
  }
}
