/* ==========================================================================
   Care Bridge - style.css
   Base styles: design tokens, reset, typography
   ========================================================================== */

:root {
  /* Brand colors */
  --color-primary: #0068B7;
  --color-secondary: #45AEEA;
  --color-teal: #32C1BD;
  --color-green: #55B96A;
  --color-navy: #073C78;
  --color-accent: #45AEEA;
  --color-background: #F8FCFF;
  --color-text: #222222;

  /* Brand gradients */
  --gradient-brand: linear-gradient(110deg, #005BAC 0%, #0878B9 45%, #2EC4B6 100%);
  --gradient-hero-overlay: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.96) 28%, rgba(255,255,255,.55) 48%, rgba(255,255,255,0) 68%);

  /* Derived / utility */
  --color-white: #FFFFFF;
  --color-border: #DCE9F3;
  --color-text-muted: #5A6472;

  /* Typography */
  --font-family-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-family-display: "Playfair Display", "Noto Sans JP", serif;
  --font-size-base: 16px;
  --line-height-base: 1.7;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;

  /* Layout */
  --page-max-width: 1440px;
  --content-max-width: 1280px;
  --container-max: 1280px;
  --hero-gutter: 32px;
  --radius-base: 8px;
  --radius-lg: 16px;
  --shadow-base: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 8px 20px rgba(7, 60, 120, 0.08);

  /* Motion */
  --transition-base: 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-base: 0ms;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

ul,
ol {
  padding-left: 1.25em;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.4;
  margin: 0 0 var(--space-3);
  font-weight: 700;
}

p {
  margin: 0 0 var(--space-3);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-2) var(--space-3);
  z-index: 1000;
}

.skip-link:focus {
  left: var(--space-3);
  top: var(--space-3);
}

/* ---- Scroll reveal (fade-up) ---- */
.js-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
