/* base.css — Reset & Foundation */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scroll-padding-top: 5rem;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body, sans-serif);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  line-height: 1.2;
}
p,
li,
figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

::selection {
  background: rgba(230, 81, 0, 0.18);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}

a,
button,
[role='button'],
[role='link'],
input,
textarea,
select {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4, 1rem);
  background: var(--color-primary, #E65100);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-md, 0.5rem) var(--radius-md, 0.5rem);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   Compliance band — prominent equity release risk warning shown above the
   site footer on every page (FCA financial promotion requirement).
   ========================================================================== */
.compliance-band {
  background: #FFF7E6;
  border-top: 3px solid #E65100;
  border-bottom: 3px solid #E65100;
  padding: 1.75rem 1rem;
  color: #1E2A4A;
}

.compliance-band-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.compliance-band p {
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 100%;
  margin: 0;
  color: #1E2A4A;
}

.compliance-band p + p {
  margin-top: 0.85rem;
}

@media (min-width: 768px) {
  .compliance-band {
    padding: 2.25rem 1.5rem;
  }
  .compliance-band p {
    font-size: 1.125rem;
  }
}

/* Inline page-level warning (used on About, Residential, Buy-to-Let) */
.page-warning {
  background: #FFF3E0;
  border-left: 6px solid #E65100;
  padding: 1.25rem 1.25rem;
  margin: 1.5rem 0;
  color: #1E2A4A;
}

.page-warning p {
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 100%;
  margin: 0;
  color: #1E2A4A;
}

@media (min-width: 768px) {
  .page-warning p {
    font-size: 1.125rem;
  }
}

/* Floating WhatsApp button -------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 96px; /* offset above Tawk.to widget */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  z-index: 9998;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}
.wa-float:hover,
.wa-float:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
  color: #fff;
}
.wa-float:focus-visible {
  outline: 3px solid #1E2A4A;
  outline-offset: 3px;
}
.wa-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
@media (max-width: 480px) {
  .wa-float {
    right: 14px;
    bottom: 84px;
    width: 52px;
    height: 52px;
  }
  .wa-float svg {
    width: 28px;
    height: 28px;
  }
}
