/* =====================================================================
   Iannessa Pediatric Dentistry — design tokens
   Every color is sampled from the practice logo (Ianessa-LogoFinal.png)
   or is a darker/lighter step of one, tuned to pass WCAG 2.2 AA.
   Components in styles.css use ONLY the semantic tokens (section 2).
   ===================================================================== */

:root {
  /* 1. Brand palette ------------------------------------------------- */

  /* Leaf — the "Iannessa" wordmark (outline #305400, fill #78C048–#A8D854) */
  --leaf-950: #1f3a08;   /* deep wordmark shadow: dark surfaces */
  --leaf-800: #305400;   /* wordmark outline: headings, primary buttons */
  --leaf-700: #3c6e0f;   /* links (6.1:1 on white) */
  --leaf-400: #78c048;   /* wordmark fill: decoration only */
  --leaf-200: #a8d854;   /* wordmark highlight: decoration only */
  --leaf-100: #e6f1d6;   /* text on dark leaf surfaces */
  --leaf-50:  #eef7e1;   /* tinted section background */

  /* Tangerine — orange shirt and pigtails */
  --tangerine-500: #f07818;  /* call-to-action fill (ink text 4.9:1) */
  --tangerine-700: #c2510f;  /* focus ring, link hover (4.7:1 on white) */
  --tangerine-50:  #fff1e6;

  /* Periwinkle — blue shirt and toothbrush */
  --periwinkle-500: #7890cc; /* decoration */
  --periwinkle-700: #5b6fae; /* text-safe blue (4.9:1 on white) */
  --periwinkle-50:  #f3f6fc;

  /* Bubblegum — pink shirt */
  --bubblegum-300: #d89cc0;  /* decoration */
  --bubblegum-50:  #faf0f5;

  /* Sunshine — blond hair */
  --sunshine-300: #fcf084;   /* decoration, highlights */
  --sunshine-50:  #fffbe0;

  /* Neutrals — a green-black ink so text sits in the same family as the wordmark */
  --ink-900: #23301a;        /* body text (13.9:1 on white) */
  --ink-600: #4a5642;        /* secondary text (7.8:1 on white) */
  --ink-200: #dfe6d6;        /* hairlines */
  --white:   #ffffff;

  /* 2. Semantic tokens (use these in components) ---------------------- */
  --color-bg: var(--white);
  --color-bg-tint: var(--leaf-50);
  --color-bg-cool: var(--periwinkle-50);
  --color-bg-highlight: var(--sunshine-50);
  --color-bg-strong: var(--leaf-950);
  --color-bg-strong-alt: var(--leaf-800);

  --color-text: var(--ink-900);
  --color-text-muted: var(--ink-600);
  --color-heading: var(--leaf-800);
  --color-on-strong: var(--white);
  --color-on-strong-muted: var(--leaf-100);

  --color-link: var(--leaf-700);
  --color-link-hover: var(--tangerine-700);
  --color-link-underline: var(--leaf-400);
  --color-focus: var(--tangerine-700);

  --color-border: var(--ink-200);
  --color-outline: var(--leaf-800);        /* the logo's chunky outline */

  --color-primary: var(--leaf-800);        /* primary button */
  --color-on-primary: var(--white);
  --color-primary-hover: var(--leaf-950);
  --color-cta: var(--tangerine-500);       /* phone / booking button */
  --color-on-cta: var(--ink-900);
  --color-cta-hover: #f58f3c;              /* tangerine-500 lightened 12% */

  /* The four logo characters, used to cycle accents (pink, blue, orange, lime) */
  --color-kid-1: var(--bubblegum-300);
  --color-kid-2: var(--periwinkle-500);
  --color-kid-3: var(--tangerine-500);
  --color-kid-4: var(--leaf-400);
  --color-highlight: var(--sunshine-300);

  /* 3. Typography ---------------------------------------------------- */
  /* Sniglet matches the logo's bubbly "Pediatric Dentistry" lettering; Atkinson Hyperlegible keeps body text easy to read. */
  --font-display: "Sniglet", "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --weight-regular: 400;
  --weight-bold: 700;
  --weight-display: 800;

  /* Major-third scale (1.25) on a 17px base */
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.33rem;
  --text-xl: 1.66rem;
  --text-2xl: 2.07rem;
  --text-3xl: clamp(2.4rem, 1.7rem + 3vw, 3.75rem);

  --leading-tight: 1.08;
  --leading-snug: 1.4;
  --leading-body: 1.6;
  --measure: 68ch;

  /* 4. Space, shape, depth ------------------------------------------ */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3.5rem;
  --space-section: clamp(3rem, 2rem + 4vw, 5.5rem);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --border-thin: 1px;
  --border-chunky: 3px;               /* matches the logo outline weight */
  --shadow-sticker: 0 4px 0 var(--color-outline);   /* buttons and badges sit like stickers */
  --shadow-sticker-pressed: 0 1px 0 var(--color-outline);

  /* 5. Playful details (all drawn from the logo) --------------------- */
  --text-pop: 3px 3px 0 var(--leaf-200);            /* glossy wordmark shadow on big headings */
  --tilt-left: rotate(-1.5deg);
  --tilt-right: rotate(1.2deg);
  --bump-size: 36px;                                 /* scalloped "foam" edges between sections */
  --stripe-kids: linear-gradient(90deg, var(--bubblegum-300) 0 25%, var(--periwinkle-500) 25% 50%, var(--tangerine-500) 50% 75%, var(--leaf-400) 75%);
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M3 9c10-8 17 4 28-1s15-7 26-1 16 6 27 0 17-6 33-1' fill='none' stroke='%23f07818' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");

  --wrap: 72rem;
  --header-logo-height: 86px;
  --header-logo-height-sm: 54px;

  --duration-fast: 150ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}
