/* ==========================================================================
   Pet Fresh — Colors & Type Foundations
   Use these CSS custom properties across all Pet Fresh designs.
   ========================================================================== */

/* Google Fonts — the Pet Fresh site appears to use a humanist sans.
   Nunito Sans is a close match for body; Poppins/Nunito for display.
   FLAG: if original font files are available, swap the @import for @font-face. */
/* Display + body both use Mulish — a friendly, modern humanist sans that
   matches the "Healthy Pet Food" setting on Pet Fresh packaging.
   Not cartoonish; clean, with subtly rounded terminals. */
@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700;800;900&family=Nunito+Sans:ital,wght@0,400;0,600;0,700;0,800&display=swap');

:root {
  /* --------------------------------------------------------------------------
     BRAND COLORS
     #9ba03b is the hero. Rule: never on dark-on-light mix where black text
     sits ON the olive. Olive-on-black and olive-on-white are both fine.
     -------------------------------------------------------------------------- */
  --pf-olive: #9ba03b;              /* primary brand */
  --pf-olive-dark: #7f8330;         /* hover / press */
  --pf-olive-darker: #676b27;
  --pf-olive-tint: #c4c87a;         /* soft accent */
  --pf-olive-wash: #f3f4e4;         /* very light bg wash */

  --pf-black: #000000;
  --pf-ink: #1a1a1a;                /* near-black body text */
  --pf-charcoal: #2b2b2b;
  --pf-white: #ffffff;

  /* Neutral scale — used for dividers, borders, muted backgrounds */
  --pf-n-50:  #fafafa;
  --pf-n-100: #f5f5f3;              /* hero bg, section wash */
  --pf-n-200: #eceae4;
  --pf-n-300: #dcdbd4;
  --pf-n-400: #b5b3ab;
  --pf-n-500: #868580;
  --pf-n-600: #5c5b57;
  --pf-n-700: #3f3e3b;

  /* Semantic */
  --pf-success: #5b8a2a;
  --pf-warning: #d98e2b;
  --pf-danger:  #c0392b;             /* "Out of stock" badge */
  --pf-info:    #4a6b8a;

  /* Surfaces */
  --pf-bg:            var(--pf-white);
  --pf-bg-muted:      var(--pf-n-100);
  --pf-bg-inverse:    var(--pf-black);
  --pf-surface-card:  var(--pf-white);
  --pf-surface-wash:  var(--pf-olive-wash);

  /* Foreground */
  --pf-fg:            var(--pf-ink);
  --pf-fg-muted:      var(--pf-n-600);
  --pf-fg-subtle:     var(--pf-n-500);
  --pf-fg-inverse:    var(--pf-white);
  --pf-fg-brand:      var(--pf-olive);

  /* Borders */
  --pf-border:        var(--pf-n-300);
  --pf-border-strong: var(--pf-n-400);
  --pf-border-brand:  var(--pf-olive);

  /* --------------------------------------------------------------------------
     TYPOGRAPHY
     -------------------------------------------------------------------------- */
  --pf-font-display: 'Mulish', 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --pf-font-body:    'Mulish', 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pf-font-mono:    ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Weights actually used on site */
  --pf-weight-regular:  400;
  --pf-weight-semibold: 600;
  --pf-weight-bold:     700;
  --pf-weight-extrabold:800;          /* packaging "Healthy Pet Food" weight */
  --pf-weight-black:    900;          /* hero H1 only */

  /* Type scale — tuned to product-card / hero proportions seen on petfresh.com.au */
  --pf-text-xs:   12px;   /* micro labels */
  --pf-text-sm:   14px;   /* meta, crumbs */
  --pf-text-base: 16px;   /* body */
  --pf-text-md:   18px;   /* lead body */
  --pf-text-lg:   20px;
  --pf-text-xl:   24px;   /* card titles */
  --pf-text-2xl:  32px;   /* section titles */
  --pf-text-3xl:  40px;
  --pf-text-4xl:  56px;   /* hero H1 (desktop) */
  --pf-text-5xl:  72px;

  --pf-leading-tight: 1.1;
  --pf-leading-snug:  1.25;
  --pf-leading-body:  1.55;
  --pf-leading-loose: 1.7;

  --pf-tracking-tight:  -0.02em;
  --pf-tracking-normal: 0;
  --pf-tracking-wide:   0.04em;
  --pf-tracking-caps:   0.08em;

  /* --------------------------------------------------------------------------
     SPACING / RADII / SHADOW / MOTION
     -------------------------------------------------------------------------- */
  --pf-space-1:  4px;
  --pf-space-2:  8px;
  --pf-space-3:  12px;
  --pf-space-4:  16px;
  --pf-space-5:  24px;
  --pf-space-6:  32px;
  --pf-space-7:  48px;
  --pf-space-8:  64px;
  --pf-space-9:  96px;

  --pf-radius-xs: 2px;
  --pf-radius-sm: 4px;     /* buttons, inputs — site uses slight rounding */
  --pf-radius-md: 6px;
  --pf-radius-lg: 8px;
  --pf-radius-xl: 12px;
  --pf-radius-pill: 999px;
  --pf-radius-circle: 50%;

  --pf-shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --pf-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --pf-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --pf-shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --pf-shadow-focus: 0 0 0 3px rgba(155,160,59,0.35);

  --pf-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pf-duration-fast:  120ms;
  --pf-duration:       200ms;
  --pf-duration-slow:  320ms;

  /* Layout */
  --pf-container:     1200px;
  --pf-container-wide:1320px;
  --pf-nav-height:    48px;
  --pf-header-height: 88px;
}

/* ==========================================================================
   SEMANTIC TYPE ROLES
   Use these classes (or copy the rules) on semantic elements.
   ========================================================================== */

.pf-body, body.pf {
  font-family: var(--pf-font-body);
  font-size: var(--pf-text-base);
  line-height: var(--pf-leading-body);
  color: var(--pf-fg);
  background: var(--pf-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pf-h1, h1.pf {
  font-family: var(--pf-font-display);
  font-weight: var(--pf-weight-extrabold);
  font-size: var(--pf-text-4xl);
  line-height: var(--pf-leading-tight);
  letter-spacing: var(--pf-tracking-tight);
  color: var(--pf-ink);
  margin: 0;
}

.pf-h2, h2.pf {
  font-family: var(--pf-font-display);
  font-weight: var(--pf-weight-bold);
  font-size: var(--pf-text-2xl);
  line-height: var(--pf-leading-snug);
  letter-spacing: var(--pf-tracking-tight);
  color: var(--pf-ink);
  margin: 0;
}

.pf-h3, h3.pf {
  font-family: var(--pf-font-display);
  font-weight: var(--pf-weight-bold);
  font-size: var(--pf-text-xl);
  line-height: var(--pf-leading-snug);
  color: var(--pf-ink);
  margin: 0;
}

.pf-eyebrow {
  font-family: var(--pf-font-body);
  font-weight: var(--pf-weight-bold);
  font-size: var(--pf-text-md);
  color: var(--pf-olive);
  letter-spacing: var(--pf-tracking-normal);
}

.pf-lead {
  font-family: var(--pf-font-body);
  font-size: var(--pf-text-md);
  line-height: var(--pf-leading-body);
  color: var(--pf-fg);
}

.pf-p, p.pf {
  font-family: var(--pf-font-body);
  font-size: var(--pf-text-base);
  line-height: var(--pf-leading-body);
  color: var(--pf-fg);
  margin: 0 0 var(--pf-space-4);
}

.pf-small {
  font-size: var(--pf-text-sm);
  color: var(--pf-fg-muted);
}

.pf-caps {
  font-family: var(--pf-font-body);
  font-weight: var(--pf-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--pf-tracking-caps);
  font-size: var(--pf-text-xs);
  color: var(--pf-fg-muted);
}

.pf-price {
  font-family: var(--pf-font-display);
  font-weight: var(--pf-weight-bold);
  font-size: var(--pf-text-xl);
  color: var(--pf-olive);
}

.pf-code, code.pf {
  font-family: var(--pf-font-mono);
  font-size: 0.92em;
  background: var(--pf-n-100);
  padding: 2px 6px;
  border-radius: var(--pf-radius-sm);
}
