/* Meigs Plumbing - theme presets.

   nocturne.css holds the default look (the Claude Design system). Each preset
   below re-points the same tokens, so every page, card, button and form follows
   whichever theme is active. js/theme.js picks the active theme: LIVE_THEME
   there is what visitors see, and ?theme=<name> previews another one.

   To add a preset: copy a block, rename it, adjust the colors, add the name to
   THEMES in js/theme.js, and check contrast (README, "Themes").
   Ramps run from 100 (strongest against the ground) to 900 (closest to the
   ground), so light themes invert the numbers a dark theme would use. */

/* Montserrat: the Meigs brand face, closest Google match to the geometric
   lettering on the truck (heavy italic phone number, italic capitals). */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,500;0,600;0,700;0,800;1,600;1,800&display=swap');

:root {
  color-scheme: dark;
  --color-on-section: var(--color-text); /* text on the call band */
}

/* Meigs: the brand, taken from the truck graphics. White body, the logo's
   navy ring (#284a7e) and charcoal center (#1b1f26), black lettering, and
   Montserrat for headings with heavy italic phone numbers. The blue was
   sampled from a photo, so swap in the sign shop's exact value if Alan has it. */
:root[data-theme="meigs"] {
  color-scheme: light;
  --color-bg: #f4f6f9;
  --color-surface: #ffffff;
  --color-text: #151a22;
  --color-accent: #284a7e;
  --color-divider: color-mix(in srgb, #151a22 16%, transparent);

  --color-neutral-100: #151a22;
  --color-neutral-200: #262c37;
  --color-neutral-300: #3d4452;
  --color-neutral-400: #5a6170;
  --color-neutral-500: #7a8190;
  --color-neutral-600: #9aa0ad;
  --color-neutral-700: #bcc1cb;
  --color-neutral-800: #dde1e8;
  --color-neutral-900: #eef1f5;

  --color-accent-100: #0d1a2e;
  --color-accent-200: #1c3459;
  --color-accent-300: #284a7e;
  --color-accent-400: #33599a;
  --color-accent-500: #5577b0;
  --color-accent-600: #7f98c4;
  --color-accent-700: #adbfdc;
  --color-accent-800: #d3deee;
  --color-accent-900: #e9eff7;

  --color-section: #1b1f26;
  --color-section-glow: #284a7e;
  --color-on-section: #ffffff;
  --color-topbar-bg: #1b1f26;
  --color-topbar-text: #e6e9ef;

  --brand-ring: #284a7e;
  --brand-core: #1b1f26;
  --brand-letter: #ffffff;
  --btn-primary-bg: #284a7e;
  --btn-primary-fg: #ffffff;
  --btn-primary-hover: #1c3459;

  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-heading-weight: 700;
  --eyebrow-font: "Montserrat", system-ui, sans-serif;
  --eyebrow-style: italic;
  --phone-style: italic;
  --phone-weight: 800;
  --photo-blend: normal;

  --shadow-sm: 0 0 0 1px #dde1e8;
  --shadow-md: 0 0 0 1px #bcc1cb, 0 6px 18px rgba(21,26,34,0.10);
  --shadow-lg: 0 0 0 1px #9aa0ad, 0 16px 40px rgba(21,26,34,0.18);
}

/* Copper: charcoal ground, copper-pipe accent. */
:root[data-theme="copper"] {
  --color-bg: #16171a;
  --color-surface: #212328;
  --color-text: #eeebe6;
  --color-accent: #e0955a;
  --color-divider: color-mix(in srgb, #eeebe6 16%, transparent);

  --color-neutral-100: #f5f3f0;
  --color-neutral-200: #e7e4df;
  --color-neutral-300: #d2cec7;
  --color-neutral-400: #b5b0a8;
  --color-neutral-500: #96918a;
  --color-neutral-600: #77736d;
  --color-neutral-700: #5a5753;
  --color-neutral-800: #3f3d3a;
  --color-neutral-900: #2a2927;

  --color-accent-100: #fdf1e7;
  --color-accent-200: #f8dcc4;
  --color-accent-300: #f0bf95;
  --color-accent-400: #e6a46f;
  --color-accent-500: #c97f45;
  --color-accent-600: #a66535;
  --color-accent-700: #7f4d29;
  --color-accent-800: #59361f;
  --color-accent-900: #352217;

  --color-section: #4a2a16;
  --color-section-glow: #6e3f20;
  --color-on-section: #fbf3ea;

  --shadow-sm: 0 0 0 1px #3f3d3a;
  --shadow-md: 0 0 0 1px #5a5753, 0 6px 18px rgba(0,0,0,0.55);
  --shadow-lg: 0 0 0 1px #96918a, 0 16px 40px rgba(0,0,0,0.65);
}

/* Navy: deep navy ground, safety-orange accent. */
:root[data-theme="navy"] {
  --color-bg: #0d1a2b;
  --color-surface: #15263d;
  --color-text: #eef2f7;
  --color-accent: #ff8f3f;
  --color-divider: color-mix(in srgb, #eef2f7 16%, transparent);

  --color-neutral-100: #f2f5fa;
  --color-neutral-200: #e1e7f0;
  --color-neutral-300: #c8d2e0;
  --color-neutral-400: #a7b3c5;
  --color-neutral-500: #8592a7;
  --color-neutral-600: #667388;
  --color-neutral-700: #4b576a;
  --color-neutral-800: #334052;
  --color-neutral-900: #222c3a;

  --color-accent-100: #fff3ea;
  --color-accent-200: #ffdcc2;
  --color-accent-300: #ffbf91;
  --color-accent-400: #ffa465;
  --color-accent-500: #e57a2e;
  --color-accent-600: #b95f22;
  --color-accent-700: #8a4719;
  --color-accent-800: #5c3114;
  --color-accent-900: #33231a;

  --color-section: #143a6b;
  --color-section-glow: #1d4f8f;
  --color-on-section: #ffffff;

  --shadow-sm: 0 0 0 1px #2a3a52;
  --shadow-md: 0 0 0 1px #4b576a, 0 6px 18px rgba(0,0,0,0.55);
  --shadow-lg: 0 0 0 1px #8592a7, 0 16px 40px rgba(0,0,0,0.65);
}

/* Daylight: light ground, plumbing-blue accent. */
:root[data-theme="daylight"] {
  color-scheme: light;
  --color-bg: #f6f5f1;
  --color-surface: #ffffff;
  --color-text: #18202e;
  --color-accent: #1d5fb0;
  --color-divider: color-mix(in srgb, #18202e 18%, transparent);

  --color-neutral-100: #1b2130;
  --color-neutral-200: #2c3344;
  --color-neutral-300: #444c5e;
  --color-neutral-400: #5f6779;
  --color-neutral-500: #7d8495;
  --color-neutral-600: #9ba1b0;
  --color-neutral-700: #bcc1cc;
  --color-neutral-800: #dcdfe6;
  --color-neutral-900: #eef0f3;

  --color-accent-100: #0a2447;
  --color-accent-200: #0e3567;
  --color-accent-300: #154a8c;
  --color-accent-400: #1d5fb0;
  --color-accent-500: #3a7bc8;
  --color-accent-600: #6d9ad6;
  --color-accent-700: #a3c0e6;
  --color-accent-800: #cfdff3;
  --color-accent-900: #e7eff9;

  --color-section: #1d5fb0;
  --color-section-glow: #2c74c9;
  --color-on-section: #ffffff;
  --photo-blend: normal; /* the dark themes' lighten blend would wash photos out */

  --shadow-sm: 0 0 0 1px #dcdfe6;
  --shadow-md: 0 0 0 1px #bcc1cc, 0 6px 18px rgba(24,32,46,0.12);
  --shadow-lg: 0 0 0 1px #9ba1b0, 0 16px 40px rgba(24,32,46,0.18);
}
