/* Urban Forest Base — Core Styles
   Premium Australian Pet Care Ecosystem */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

/* ── Design Tokens ── */
:root {
  --color-forest: #0F2E22;
  --color-forest-light: #1B4D3E;
  --color-forest-muted: #2D6A4F;
  --color-forest-glow: #40916C;
  --color-ivory: #F7F5F0;
  --color-cream: #EDEAE3;
  --color-white: #FFFFFF;
  --color-slate-900: #111827;
  --color-slate-700: #374151;
  --color-slate-500: #6B7280;
  --color-slate-300: #D1D5DB;
  --color-slate-100: #F3F4F6;
  --color-amber: #C8790A;
  --color-amber-hover: #A16207;
  --color-amber-light: #FEF3C7;
  --color-emergency: #9B1C1C;
  --color-emergency-bg: #FEF2F2;
  --color-success: #166534;
  --color-success-bg: #F0FDF4;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --shadow-sm: 0 1px 2px rgba(15, 46, 34, 0.04), 0 2px 8px rgba(15, 46, 34, 0.04);
  --shadow-md: 0 4px 20px rgba(15, 46, 34, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 46, 34, 0.12);
  --shadow-hover: 0 12px 40px rgba(15, 46, 34, 0.16);
  --shadow-glow: 0 0 0 1px rgba(45, 106, 79, 0.08), 0 8px 32px rgba(45, 106, 79, 0.12);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-top-height: 36px;
  --header-main-height: 72px;
  --header-height: calc(var(--header-top-height) + var(--header-main-height));
  --header-height-compact: calc(var(--header-top-height) + 60px);
  --container-max: 1240px;
  --container-narrow: 780px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-slate-700);
  background-color: var(--color-ivory);
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(45, 106, 79, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(200, 121, 10, 0.03) 0%, transparent 50%);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--color-forest-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-forest);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-slate-900);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.625rem, 3.5vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; font-family: var(--font-sans); font-weight: 600; }

p {
  margin-bottom: 1rem;
}

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

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-slate-500);
}

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

.text-small {
  font-size: 0.875rem;
}

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

.text-forest {
  color: var(--color-forest);
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section {
  padding: 5.5rem 0;
}

.section--alt {
  background: var(--color-white);
  border-top: 1px solid var(--color-cream);
  border-bottom: 1px solid var(--color-cream);
}

.section--cream {
  background: var(--color-cream);
}

.section--forest {
  background-color: var(--color-forest);
  color: var(--color-ivory);
}

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

.section__header {
  max-width: 680px;
  margin-bottom: 3rem;
}

.section__header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-forest-muted);
  margin-bottom: 0.75rem;
}

.section--forest .section__label {
  color: var(--color-forest-muted);
}

.section__title {
  margin-bottom: 1rem;
}

.section__desc {
  font-size: 1.0625rem;
  color: var(--color-slate-500);
  line-height: 1.7;
}

.section--forest .section__desc {
  color: rgba(250, 250, 247, 0.75);
}

/* ── Grid Systems ── */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(155deg, var(--color-forest) 0%, #0A2419 50%, var(--color-forest-light) 100%);
  padding: calc(var(--header-height) + 3rem) 0 4rem;
  color: var(--color-ivory);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(64, 145, 108, 0.3) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(200, 121, 10, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--color-ivory);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.page-hero .lead {
  color: rgba(250, 250, 247, 0.85);
  max-width: 600px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: rgba(250, 250, 247, 0.6);
}

.breadcrumb a {
  color: rgba(250, 250, 247, 0.8);
}

.breadcrumb a:hover {
  color: var(--color-white);
}

.breadcrumb span {
  color: rgba(250, 250, 247, 0.5);
}

/* ── Content Blocks ── */
.content-block {
  max-width: var(--container-narrow);
}

.content-block h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-block ul,
.content-block ol {
  margin: 1rem 0 1.5rem 1.25rem;
}

.content-block ul {
  list-style: disc;
}

.content-block ol {
  list-style: decimal;
}

.content-block li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.content-block li::marker {
  color: var(--color-forest-muted);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.divider {
  height: 1px;
  background: var(--color-slate-300);
  margin: 2rem 0;
}

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-forest);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}
