/* ==========================================================================
   PureNest Cleaning — Modern Design System & Base Styles
   Fictional UK Premium Home Cleaning Service
   ========================================================================== */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* --- Design Tokens --- */
:root {
  /* Brand Teal Palette */
  --primary-950: #062320;
  --primary-900: #0b3b35;
  --primary-800: #0e4e46;
  --primary-700: #126359; /* Brand primary */
  --primary-600: #167a6e;
  --primary-500: #1b9284;
  --primary-400: #26a99a;
  --primary-300: #4ec2b5;
  --primary-200: #8be0d6;
  --primary-100: #d1f3ee;
  --primary-50:  #f0faf8;

  /* Fresh Mint Accent */
  --accent-600: #059669;
  --accent-500: #10b981;
  --accent-400: #34d399;
  --accent-100: #d1fae5;
  --accent-50:  #ecfdf5;

  /* Warm Amber Accent (Stars / Highlights) */
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --amber-50:  #fffbeb;

  /* Charcoal & Slate Neutrals */
  --slate-950: #0a1412;
  --slate-900: #13221f; /* Primary Heading Color */
  --slate-800: #1e332f;
  --slate-700: #2d4540; /* High-contrast body text */
  --slate-600: #4a635e; /* Standard body text */
  --slate-500: #667e79; /* Secondary/muted text */
  --slate-400: #8c9f9b;
  --slate-300: #b8c7c3;
  --slate-200: #d9e3e0; /* Subtle borders */
  --slate-150: #e7eeec;
  --slate-100: #f1f5f4; /* Subtle cards / alternating sections */
  --slate-50:  #f8faf9; /* Soft background */
  --white:     #ffffff;

  /* Semantic Color Aliases */
  --color-text-heading: var(--slate-900);
  --color-text-body:    var(--slate-700);
  --color-text-muted:   var(--slate-500);
  --color-bg-main:      var(--white);
  --color-bg-alt:       var(--slate-50);
  --color-bg-subtle:    var(--slate-100);
  --color-border:       var(--slate-200);
  --color-border-subtle:var(--slate-150);
  --color-focus:        var(--primary-500);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.125rem;   /* 18px */
  --text-lg:   1.25rem;    /* 20px */
  --text-xl:   1.5rem;     /* 24px */
  --text-2xl:  1.875rem;   /* 30px */
  --text-3xl:  2.25rem;    /* 36px */
  --text-4xl:  3rem;       /* 48px */
  --text-5xl:  3.75rem;    /* 60px */

  --font-regular: 400;
  --font-medium:  500;
  --font-semibold:600;
  --font-bold:    700;
  --font-extrabold: 800;

  /* Line Heights */
  --leading-tight:  1.15;
  --leading-snug:   1.3;
  --leading-normal: 1.6;
  --leading-relaxed:1.75;

  /* Elevation / Shadows (soft organic greenish-charcoal cast) */
  --shadow-xs: 0 1px 2px rgba(19, 34, 31, 0.04);
  --shadow-sm: 0 2px 6px -1px rgba(19, 34, 31, 0.06), 0 1px 3px -1px rgba(19, 34, 31, 0.04);
  --shadow-md: 0 6px 20px -4px rgba(19, 34, 31, 0.08), 0 2px 6px -2px rgba(19, 34, 31, 0.04);
  --shadow-lg: 0 16px 32px -8px rgba(19, 34, 31, 0.10), 0 4px 12px -2px rgba(19, 34, 31, 0.04);
  --shadow-xl: 0 24px 48px -12px rgba(19, 34, 31, 0.14);
  --shadow-hover: 0 20px 36px -10px rgba(18, 99, 89, 0.18);

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout Max Widths */
  --container-max: 1240px;
  --container-narrow: 840px;
  --container-hero: 1300px;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--leading-normal);
  color: var(--color-text-body);
  background-color: var(--color-bg-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  background-color: var(--color-bg-main);
  box-sizing: border-box;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-heading);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 4vw + 0.5rem, 3.5rem);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
}

h2 {
  font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.25rem, 1.625rem);
}

h4 {
  font-size: 1.15rem;
}

p {
  margin-bottom: 1rem;
}

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

/* Reduced Motion Preference */
@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;
  }
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 2px solid var(--primary-600);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Visually Hidden Utility for Screen Readers */
.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;
}

/* Demo Disclaimer Ribbon */
.demo-badge-bar {
  background: #0d2823;
  color: #9fe2d4;
  font-size: var(--text-xs);
  padding: 6px 14px;
  text-align: center;
  font-weight: var(--font-medium);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.demo-badge-bar span:not(.dot) {
  min-width: 0;
  max-width: 100%;
  word-break: break-word;
}

.demo-badge-bar .dot {
  width: 6px;
  height: 6px;
  background-color: var(--amber-400);
  border-radius: 50%;
  display: inline-block;
}
