/* ==========================================================================
   JOOY Pet Wellness — Base styles
   Resets, typography and generic utilities shared by every page.
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--jooy-text);
  background-color: var(--jooy-cream-100);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--jooy-green-800);
  letter-spacing: -0.01em;
}

p {
  line-height: 1.65;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Icon sprite usage --------------------------------------------------- */
.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

.icon-flip {
  transform: scaleX(-1);
}

/* Section rhythm -------------------------------------------------------- */
.section {
  padding-block: var(--section-py);
}

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

.bg-jooy-cream {
  background-color: var(--jooy-cream-100);
}

.bg-jooy-green {
  background-color: var(--jooy-green-800);
  color: var(--jooy-white);
}

.bg-jooy-green h1,
.bg-jooy-green h2,
.bg-jooy-green h3,
.bg-jooy-green h4 {
  color: var(--jooy-white);
}

/* Eyebrow label --------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jooy-yellow-600);
  margin-bottom: 0.75rem;
}

.eyebrow-dark {
  color: var(--jooy-green-600);
}

/* Headings scale ---------------------------------------------------------*/
.display-heading {
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  line-height: 1;
  font-weight: 800;
}

.section-heading {
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
}

.text-muted-jooy {
  color: var(--jooy-text-muted);
}

.lead-jooy {
  font-size: 1.05rem;
  color: var(--jooy-text-muted);
  line-height: 1.7;
}

.bg-jooy-green .lead-jooy,
.bg-jooy-green .text-muted-jooy {
  color: var(--jooy-text-on-green-muted);
}

/* Divider wave (cream -> section) --------------------------------------- */
.wave-divider {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -1px;
}

/* Utility: image cover wrapper ------------------------------------------ */
.ratio-img {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.ratio-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Focus visibility -------------------------------------------------------*/
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--jooy-green-600);
  outline-offset: 2px;
}
