/* ==========================================================================
   RENEW CLEANING SOLUTIONS — Base Styles & Reset
   ========================================================================== */

/* ---- Modern Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-total-h);
}

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

body {
  font-family: var(--ff-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--clr-navy);
  background-color: var(--clr-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* ---- Skip Link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: var(--z-toast);
  padding: var(--sp-3) var(--sp-6);
  background: var(--clr-primary);
  color: var(--clr-white);
  font-weight: var(--fw-semibold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-decoration: none;
  transition: top var(--duration-base) var(--ease-out);
}
.skip-link:focus {
  top: 0;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--clr-navy);
}

h1 { font-size: var(--fs-5xl); font-weight: var(--fw-extrabold); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
  margin-bottom: var(--sp-4);
  line-height: var(--lh-normal);
}

p:last-child {
  margin-bottom: 0;
}

.text-serif {
  font-family: var(--ff-serif);
}

.text-serif-italic {
  font-family: var(--ff-serif);
  font-style: italic;
}

/* ---- Links ---- */
a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--clr-primary-light);
}

a:focus-visible {
  outline: 2px solid var(--clr-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- Images ---- */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* ---- Lists ---- */
ul, ol {
  list-style: none;
}

/* ---- Form elements ---- */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

textarea {
  resize: vertical;
}

/* ---- Tables ---- */
table {
  border-collapse: collapse;
}

/* ---- Misc ---- */
address {
  font-style: normal;
}

hr {
  border: none;
  border-top: var(--border-light);
  margin: var(--sp-8) 0;
}

::selection {
  background-color: rgba(var(--clr-primary-rgb), 0.15);
  color: var(--clr-navy);
}

/* ---- Utilities ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: var(--section-py);
}

.section--sm {
  padding-block: var(--section-py-sm);
}

.section--purple {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  color: var(--clr-white);
}

.section--purple h2,
.section--purple h3,
.section--purple h4 {
  color: var(--clr-white);
}

.section--lavender {
  background-color: var(--clr-lavender-light);
}

.section--off-white {
  background-color: var(--clr-off-white);
}

.section--navy {
  background-color: var(--clr-navy);
  color: var(--clr-white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--clr-white);
}

/* Text colours */
.text-white { color: var(--clr-white); }
.text-navy { color: var(--clr-navy); }
.text-purple { color: var(--clr-primary); }
.text-gold { color: var(--clr-gold); }
.text-muted { color: var(--clr-grey-500); }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* Grid */
.grid { display: grid; }

/* Visibility */
.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;
}

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* Main content offset for sticky header */
main {
  min-height: 100vh;
}
