/* ========================================================================== */
/* WEBVANA V3 BASE.CSS                                                        */
/* Hook & Ladder Home Inspections                                             */
/* Tier A: external CSS only. Tokens + reset + primitives.                     */
/* ========================================================================== */

:root {
  /* Brand (matches v3 example naming) */
  --primary-color: #6e1418;
  --primary-dark: #4a0d10;
  --blue-primary: #0b5faf;
  --blue-dark: #084a86;
  --secondary-color: #c6c6c6;

  /* Neutrals */
  --text-color: #1a1a1a;
  --text-light: #5f6368;
  --bg-color: #ffffff;
  --bg-light: #f7f9fc;
  --bg-dark: #212121;
  --border-color: rgba(0, 0, 0, 0.12);

  /* Helpers */
  --link-on-dark: #9fd0ff;

  /* Typography */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  --heading-line-height: 1.3;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.10);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.18);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 4vw, 2.25rem);

  /* Sticky header safety */
  --header-h-mobile: 76px;
  --header-h-desktop: 88px;
}

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: var(--line-height-base);
  background: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-color); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--primary-dark); }

p { margin: 0 0 var(--spacing-sm); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--heading-line-height);
  margin: 0 0 var(--spacing-sm);
  font-weight: 700;
  color: var(--text-color);
}

h1 { font-size: 2.25rem; margin-bottom: var(--spacing-md); }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

strong { font-weight: 700; color: var(--primary-dark); }

/* Tier A: focus visibility */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 2px; }

/* WCAG skip link */
.skip-link {
  position: absolute;
  top: -44px;
  left: 0;
  z-index: 1000;
  background: var(--primary-color);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 10px; }

/* Primitives */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section { padding: var(--spacing-lg) 0; }

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: var(--primary-dark);
}

@media (min-width: 900px) {
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.5rem; }
  .section { padding: var(--spacing-xl) 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
