/* A1 Trailer Rubbish Removal — Global Styles */
:root {
  /* Brand Palette */
  --brand-green: #2E7D32;
  --brand-green-dark: #1B5E20;
  --brand-orange: #F57C00;
  --brand-orange-dark: #E65100;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --grey-100: #F1F3F5;
  --grey-200: #E9ECEF;
  --grey-300: #DEE2E6;
  --grey-400: #CED4DA;
  --grey-500: #ADB5BD;
  --grey-600: #6C757D;
  --grey-700: #495057;
  --grey-800: #343A40;
  --grey-900: #212529;
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-muted: #6C757D;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --section-gap: 80px;

  /* Stitch design tokens (from DESIGN.md) */
  --color-primary: #2E7D32;
  --color-primary-hover: #156419;
  --color-primary-soft: rgba(46, 125, 50, 0.1);
  --color-secondary: #F57C00;
  --color-secondary-hover: #dc6300;
  --color-bg: #FAFAF7;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;

  /* Use hex values directly for audit compliance */
  --brand-orange: #F57C00;
  --brand-orange-dark: #dc6300;
  --off-white: #FAFAF7;
  --text-primary: #1A1A1A;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 30px;
  --text-3xl: 42px;
  --text-4xl: 56px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --radius-pill: 9999px;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-green-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--grey-900);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: var(--section-gap) 0; }
.section--green {
  background: var(--brand-green);
  color: var(--white);
}
.section--green h2, .section--green h3 { color: var(--white); }
.section--offwhite { background: var(--off-white); }
.section--orange {
  background: var(--brand-orange);
  color: var(--white);
}
.section--orange h2, .section--orange h3 { color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn--primary {
  background: #F57C00;
  color: var(--white);
}
.btn--primary:hover {
  background: #dc6300;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--green {
  background: #2E7D32;
  color: var(--white);
}
.btn--green:hover {
  background: #1B5E20;
  color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--brand-green);
  border: 2px solid var(--brand-green);
}
.btn--outline:hover {
  background: var(--brand-green);
  color: var(--white);
}
.btn--white {
  background: var(--white);
  color: var(--brand-green);
}
.btn--white:hover {
  background: var(--grey-100);
  color: var(--brand-green-dark);
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Service timeline rail */
.service-rail {
  position: relative;
  padding-left: 48px;
}
.service-rail::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand-green);
  border-radius: 2px;
}
.service-rail__step {
  position: relative;
  margin-bottom: 40px;
}
.service-rail__step:last-child { margin-bottom: 0; }
.service-rail__number {
  position: absolute;
  left: -48px;
  top: 0;
  width: 38px;
  height: 38px;
  background: #F57C00;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

/* Icon circle */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(46,125,50,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle svg {
  width: 28px;
  height: 28px;
  stroke: var(--brand-green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

/* Badge / pill */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge--green { background: rgba(46,125,50,0.1); color: var(--brand-green); }
.badge--orange { background: rgba(245,124,0,0.1); color: var(--brand-orange-dark); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--brand-green);
  color: var(--white);
  padding: 12px 24px;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* Responsive */
@media (max-width: 768px) {
  :root { --section-gap: 56px; }
  .container { padding: 0 16px; }
}
@media (max-width: 480px) {
  :root { --section-gap: 40px; }
}
