/* Grafted IT: site styles */

/* Brand font: Manrope (all weights in one file), hosted on this site (license in /fonts/LICENSE.md).
   Used for the logo and headings; body text uses the device's own system font. */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ============================================================
     BRAND COLORS: change these four and the whole site follows,
     including the logo and illustrations on every page.
     ============================================================ */
  --navy: #1F3A5F;         /* headlines, logo, main accents */
  --orange: #B5541F;       /* buttons and links */
  --warm-white: #FCFAF7;   /* page background */
  --charcoal: #2B2B2B;     /* body text */
  --mist: #EAF0F6;         /* soft blue background tint for alternate sections */

  /* Supporting shades, mixed automatically from the four above.
     You shouldn't need to edit these. */
  --white: #FFFFFF;                                                /* cards, text on buttons */
  --navy-700: color-mix(in srgb, var(--navy) 85%, var(--warm-white));
  --leaf: color-mix(in srgb, var(--navy) 55%, var(--warm-white));
  --leaf-light: color-mix(in srgb, var(--navy) 38%, var(--warm-white));
  --pale: color-mix(in srgb, var(--navy) 20%, var(--warm-white));
  --tint: color-mix(in srgb, var(--navy) 12%, var(--warm-white));
  --orange-dark: color-mix(in srgb, var(--orange) 85%, black);
  --orange-tint: color-mix(in srgb, var(--orange) 12%, var(--warm-white));
  --cream: color-mix(in srgb, var(--charcoal) 5%, var(--warm-white));
  --mist-deep: color-mix(in srgb, var(--navy) 6%, var(--mist));          /* behind illustrations */
  --mist-glow: color-mix(in srgb, var(--navy) 8%, var(--mist));          /* welcome-section glow */
  --navy-deep: color-mix(in srgb, var(--navy) 80%, black);              /* footer */
  --orange-light: color-mix(in srgb, var(--orange) 55%, var(--warm-white)); /* links on navy */
  --muted: color-mix(in srgb, var(--charcoal) 82%, var(--warm-white));
  --line: color-mix(in srgb, var(--charcoal) 12%, var(--warm-white));
  --on-navy: var(--warm-white);
  --on-navy-muted: color-mix(in srgb, var(--warm-white) 78%, var(--navy));

  /* Names the rest of this file uses */
  --bg: var(--warm-white);
  --card: var(--white);
  --ink: var(--charcoal);

  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --logo-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font: var(--logo-font);
  --sans: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --max: 1120px;
  --shadow: 0 1px 2px color-mix(in srgb, var(--navy) 6%, transparent), 0 8px 24px color-mix(in srgb, var(--navy) 8%, transparent);
  --shadow-lg: 0 2px 4px color-mix(in srgb, var(--navy) 8%, transparent), 0 18px 40px color-mix(in srgb, var(--navy) 14%, transparent);
}

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

html { scroll-padding-top: 110px; }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
/* On navy areas the burnt orange outline is too faint, so use the light orange there */
:is(.section-navy, .site-footer, .price-card.featured, .skip-link) :focus-visible,
.skip-link:focus-visible { outline-color: var(--orange-light); }

h1, h2, h3 {
  font-family: var(--heading-font);
  color: var(--navy);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }

p { margin: 0; }

.container { width: min(100% - 48px, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--on-navy);
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-navy); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--orange) 25%, transparent);
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--orange-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--orange) 30%, transparent); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.btn-small { padding: 11px 20px; font-size: .95rem; box-shadow: 0 4px 12px color-mix(in srgb, var(--orange) 22%, transparent); }

.btn-quiet {
  background: transparent; color: var(--orange-dark);
  box-shadow: inset 0 0 0 2px var(--orange);
}
.btn-quiet:hover { background: var(--orange); color: var(--white); box-shadow: inset 0 0 0 2px var(--orange); }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; padding-top: 14px; pointer-events: none; }
.site-header .container { width: min(100% - 24px, calc(var(--max) + 48px)); }
.header-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 24px;
  height: 68px; padding: 0 12px 0 22px;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 22px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--navy) 10%, transparent);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--navy);
  margin-right: auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--logo-font); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.03em; line-height: 1.05; }
/* Wordmark: "grafted" in navy, "IT" in burnt orange, no space */
.wm-grafted { color: var(--navy); }
.wm-it { color: var(--orange); }
.brand-tagline { font-size: .8rem; color: var(--muted); letter-spacing: .01em; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-size: .975rem; font-weight: 500;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:not(.btn):hover,
.nav a[aria-current="page"] { background: var(--orange-tint); color: var(--orange-dark); }
.nav .btn { margin-left: 10px; }

/* Mobile menu (no JavaScript) */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--navy);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--orange-tint); color: var(--orange-dark); }
.menu summary svg { width: 24px; height: 24px; }
.menu .icon-close { display: none; }
.menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }
.menu-panel {
  position: absolute; right: -4px; top: 58px; width: min(84vw, 300px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px;
  display: flex; flex-direction: column;
}
.menu-panel a:not(.btn) {
  padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500;
}
.menu-panel a:not(.btn):hover { background: var(--orange-tint); color: var(--orange-dark); }
.menu-panel .btn { margin-top: 8px; }

.brand, .nav a { white-space: nowrap; }

@media (max-width: 1120px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1.4rem; }
  .brand-tagline { font-size: .74rem; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(64px, 9vw, 128px) 0 clamp(80px, 10vw, 144px); overflow: hidden; }

/* A gentle glow behind every welcome section: mist blue on the right, a hint of navy bottom left */
.hero,
.page-center {
  background:
    radial-gradient(65% 95% at 80% 45%, var(--mist-glow) 0%, transparent 72%),
    radial-gradient(45% 70% at 0% 100%, color-mix(in srgb, var(--navy) 10%, var(--warm-white)) 0%, transparent 72%),
    var(--warm-white);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center;
}
.hero h1 { text-wrap: balance; }
.accent { color: var(--orange); white-space: nowrap; }
.hero-line {
  margin-top: 24px; font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--muted); max-width: 30ch; line-height: 1.5;
}
.hero .btn { margin-top: 38px; }
.hero-art { width: 100%; max-width: 520px; justify-self: end; }

/* Care loop diagram (home page) */
/* the diagram sits on a soft mist-blue disc */
.care-loop { background: var(--mist-deep); border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--navy) 10%, transparent); }
.care-ring { fill: none; stroke: var(--leaf-light); stroke-width: 2.5; }
.care-arrow { fill: var(--orange); stroke: var(--orange); stroke-width: 2; stroke-linejoin: round; }
.care-centre { fill: var(--warm-white); }
.care-shadow { flood-color: var(--navy); flood-opacity: .12; }
.care-node circle { fill: var(--white); stroke: var(--line); stroke-width: 1; }
.care-icon { fill: none; stroke: var(--orange); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.care-wordmark { font-family: var(--logo-font); font-size: 34px; font-weight: 800; letter-spacing: -1px; text-anchor: middle; }
.care-wordmark .wm-grafted { fill: var(--navy); }
.care-wordmark .wm-it { fill: var(--orange); }
.care-node text { font-family: var(--sans); font-size: 16px; font-weight: 600; fill: var(--navy); text-anchor: middle; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 420px; order: 2; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(96px, 12vw, 160px) 0; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-navy h2, .section-navy h3 { color: var(--on-navy); }

.section-head { max-width: 640px; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head p { margin-top: 14px; font-size: 1.15rem; color: var(--muted); text-wrap: pretty; }
.section-navy .section-head p { color: var(--on-navy-muted); }
.section-head.center { margin-inline: auto; text-align: center; }

.section-head h2::after,
.about-text h2::after,
.contact h2::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 2px;
  background: var(--orange); margin-top: 18px;
}
.contact h2::after { margin-inline: auto; }

.grid { display: grid; gap: clamp(20px, 2.5vw, 32px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  /* an odd card left on its own row stretches across it */
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 20px; }
.card p { margin-top: 8px; color: var(--muted); }

.icon { color: var(--orange); }
.icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- How it works ---------- */

.steps {
  --gap: clamp(32px, 5vw, 64px);
  --dot: 88px;
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
  text-align: center;
}
.step { position: relative; }
/* dotted line from this step's icon to the next one */
.step:not(:last-child)::after {
  content: ""; position: absolute;
  top: calc(var(--dot) / 2 - 1.5px); left: calc(50% + var(--dot) / 2 + 12px);
  width: calc(100% + var(--gap) - var(--dot) - 24px);
  border-top: 3px dotted color-mix(in srgb, var(--warm-white) 50%, transparent);
}
.step-icon {
  width: var(--dot); height: var(--dot); margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: var(--white);
  box-shadow: 0 14px 30px color-mix(in srgb, black 25%, transparent);
}
.step-icon svg { width: 40%; height: 40%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { margin-top: 28px; font-size: 1.45rem; }
.step p { margin: 10px auto 0; max-width: 31ch; text-wrap: pretty; color: var(--on-navy-muted); }

@media (max-width: 860px) {
  .steps { --dot: 68px; grid-template-columns: 1fr; text-align: left; }
  .step { display: grid; grid-template-columns: var(--dot) 1fr; column-gap: 22px; }
  .step-icon { grid-row: span 2; margin: 0; }
  .step h3 { margin-top: 6px; }
  .step p { margin: 6px 0 0; }
  .step:not(:last-child)::after {
    top: calc(var(--dot) + 10px); left: calc(var(--dot) / 2 - 1.5px);
    width: 0; height: calc(100% + var(--gap) - var(--dot) - 20px);
    border-top: 0; border-left: 3px dotted color-mix(in srgb, var(--warm-white) 50%, transparent);
  }
}

.section-cta { margin-top: clamp(56px, 6vw, 72px); text-align: center; }

/* ---------- Who we serve ---------- */

.serve-card { display: flex; flex-direction: column; }
.serve-card .card-link { margin-top: auto; padding-top: 18px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.serve-card .card-link:hover { text-decoration: underline; }

/* ---------- Pricing ---------- */

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.5vw, 32px); align-items: stretch; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } .pricing-aside { margin-top: 32px; } }

.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
  display: flex; flex-direction: column;
}
.price-card { box-shadow: var(--shadow); }
.price-card.featured { background: var(--navy); border-color: var(--navy); color: var(--on-navy); box-shadow: var(--shadow-lg); }
.price-card.featured h3,
.price-card.featured .price { color: var(--on-navy); }
.price-card.featured .price small,
.price-card.featured .price-from { color: var(--on-navy-muted); }
.price-card.featured .checks li::before { background: color-mix(in srgb, var(--warm-white) 16%, transparent); }
.price-card.featured .checks li::after { border-color: var(--orange-light); }
.price-card h3 { font-size: 1.5rem; }
.price {
  margin-top: 18px; font-family: var(--heading-font); color: var(--navy);
  font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em;
}
.price small { display: block; margin-top: 10px; font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-from { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-right: 4px; }
.price-text { margin-top: 18px; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li { position: relative; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--orange-tint);
}
.checks li::after {
  content: ""; position: absolute; left: 8px; top: 7px; width: 6px; height: 11px;
  border: solid var(--orange-dark); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.price-card .btn { margin-top: 32px; align-self: flex-start; }
.price-card .btn-quiet { margin-top: auto; }
.price-card .spacer { flex: 1; min-height: 32px; }

.setup-note {
  margin-top: 20px; padding: 22px 28px; border-radius: var(--radius);
  background: var(--card); color: var(--navy); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 16px; font-weight: 500;
}
.setup-note svg { color: var(--orange); }
.setup-note svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.pricing-aside { align-self: center; }

/* Notes under the price cards */
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); margin-top: clamp(20px, 2.5vw, 32px); }
.notes .setup-note { margin-top: 0; }
.setup-note a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.setup-note a:hover { text-decoration: underline; }
@media (max-width: 760px) { .notes { grid-template-columns: 1fr; } }

/* A short closing line under a section's cards, with a link */
.section-foot { margin-top: clamp(32px, 4vw, 48px); font-size: 1.05rem; color: var(--muted); }
.section-foot a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-foot a:hover { text-decoration: underline; }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-art { max-width: 460px; width: 100%; }
/* "Why Grafted?" definition card */
.def-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: clamp(32px, 4vw, 48px);
}
.def-word { font-family: var(--logo-font); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.4rem); letter-spacing: -0.04em; line-height: 1; color: var(--navy); }
.def-meta { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.def-rule { width: 56px; height: 4px; border-radius: 2px; background: var(--orange); margin: 22px 0; }
.def-text { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.def-text b { color: var(--navy); font-weight: 650; }
.def-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.def-foot .brand-name { font-size: 1.25rem; }
.about-text p { margin-top: 16px; font-size: 1.15rem; color: var(--muted); max-width: 44ch; }
.tagline {
  margin-top: 28px !important;
  font-family: var(--heading-font); font-weight: 500; letter-spacing: -0.015em; font-size: 1.5rem !important; color: var(--navy) !important;
  padding-left: 20px; border-left: 4px solid var(--orange);
  line-height: 1.3;
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-art { order: 2; justify-self: center; max-width: 380px; }
}

/* ---------- Contact ---------- */

.contact { text-align: center; max-width: 720px; margin-inline: auto; }
.contact p { margin-top: 16px; font-size: 1.2rem; color: var(--on-navy-muted); }
.contact .btn { margin-top: 32px; }
.contact-email { margin-top: 28px !important; font-size: 1.05rem !important; }
.contact-email a { color: var(--orange-light); font-weight: 600; }
.contact-email a:hover { color: var(--warm-white); }

/* ---------- Footer ---------- */

.site-footer { padding: 64px 0 40px; background: var(--navy-deep); color: var(--on-navy); }
.site-footer .brand { color: var(--on-navy); }
.site-footer .brand-tagline { color: var(--on-navy-muted); }
/* On the dark footer the wordmark uses light versions of the same colors */
.site-footer .wm-grafted { color: var(--on-navy); }
.site-footer .wm-it { color: var(--orange-light); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--orange-light); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--warm-white); text-decoration: underline; }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--warm-white) 14%, transparent);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .875rem; color: var(--on-navy-muted);
}

/* ---------- Simple pages (book, 404) ---------- */

.page-center { min-height: calc(100vh - 82px - 240px); display: grid; place-items: center; text-align: center; padding: 96px 0; }
.page-center h1 { max-width: 14ch; margin-inline: auto; }
.page-center .hero-line { margin-inline: auto; max-width: 34ch; }
.page-center .btn { margin-top: 34px; }
.page-center .container {
  width: min(100% - 48px, 880px);
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px);
  background: var(--mist); border-radius: 36px;
  box-shadow: 0 20px 50px color-mix(in srgb, var(--navy) 8%, transparent);
}
.page-art { width: 120px; height: 120px; margin: 0 auto 28px; }
.page-art .bg { fill: var(--warm-white); }
.page-art .line { fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.page-art .line-navy { fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.page-art .dots { fill: none; stroke: var(--navy-700); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 0.1 7; }
.page-art .dot { fill: var(--navy); }

/* ---------- Illustration and logo colors (follow the variables above) ---------- */

.f-navy { fill: var(--navy); }
.f-navy-700 { fill: var(--navy-700); }
.f-leaf { fill: var(--leaf); }
.f-leaf-light { fill: var(--leaf-light); }
.f-pale { fill: var(--pale); }
.f-tint { fill: var(--tint); }
.f-orange { fill: var(--orange); }
.f-orange-dark { fill: var(--orange-dark); }
.f-orange-tint { fill: var(--orange-tint); }
.f-warm-white { fill: var(--warm-white); }
.f-white { fill: var(--white); }
.f-cream { fill: var(--cream); }
.f-mist { fill: var(--mist); }
.f-mist-deep { fill: var(--mist-deep); }
.s-navy { stroke: var(--navy); }
.s-navy-700 { stroke: var(--navy-700); }
.s-leaf { stroke: var(--leaf); }
.s-leaf-light { stroke: var(--leaf-light); }
.s-pale { stroke: var(--pale); }
.s-tint { stroke: var(--tint); }
.s-orange { stroke: var(--orange); }
.s-orange-dark { stroke: var(--orange-dark); }
.s-orange-tint { stroke: var(--orange-tint); }
.s-warm-white { stroke: var(--warm-white); }
.s-white { stroke: var(--white); }
.s-cream { stroke: var(--cream); }

/* ---------- Services page ---------- */

/* "Your monthly care" checklist card at the top */
.care-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow-lg); padding: clamp(28px, 4vw, 44px);
  max-width: 460px;
}
.care-card-title { font-family: var(--heading-font); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--navy); }
.care-card .checks { margin-top: 22px; gap: 16px; }
.care-card .checks li { font-size: 1.08rem; color: var(--ink); }

/* Service cards with what's included */
.svc-card .checks { margin-top: 20px; gap: 10px; }
.svc-card .checks li { font-size: .98rem; color: var(--ink); line-height: 1.45; }

/* More we take care of */
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 72px); }
.more-item { display: flex; gap: 20px; align-items: flex-start; }
.more-item .icon svg { width: 32px; height: 32px; }
.more-item h3 { font-size: 1.15rem; }
.more-item p { margin-top: 6px; color: var(--muted); }
@media (max-width: 760px) { .more-grid { grid-template-columns: 1fr; } }

/* Flat price: note about optional add-ons under the ticks */
.price-note { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.price-card.featured .price-note { color: var(--on-navy-muted); }

/* Small orange links on mist blue use the deeper orange so they stay readable */
.section-mist p a { color: var(--orange-dark); }
.section-mist p a:hover { color: var(--orange); }

/* ============================================================
   DARK MODE
   Turned on by <html data-theme="dark">, which theme.js sets from the
   visitor's toggle choice or, until they click it, their device setting.
   The dark colors are listed together just below.
   ============================================================ */

/* ---------- The toggle button (shown in both modes) ---------- */
/* hidden until theme.js has run, so it never shows when it can't work */
.theme-toggle { display: none; }
[data-theme] .theme-toggle {
  flex: none; width: 42px; height: 42px; border-radius: 12px; border: 0;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--ink);
}
.theme-toggle:hover { background: var(--orange-tint); color: var(--orange-dark); }
.theme-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav .btn { margin-right: 4px; }

/* ---------- Dark palette (change dark-mode colors here) ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1929;            /* page */
  --warm-white: #0F1929;    /* used as "page color" in glows and illustrations */
  --mist: #131F33;          /* alternate sections */
  --mist-deep: #1C2C46;     /* disc behind the diagram, circles behind drawings */
  --mist-glow: #1E3253;     /* welcome glow */
  --card: #17243A;
  --ink: #E5EAF1;           /* body text */
  --muted: #A8B3C2;
  --line: #2A3A52;
  --heading: #F1F4F8;
  --accent: #E8935F;        /* brighter burnt orange for text on dark */
  --on-navy: #F1F4F8;
  --on-navy-muted: #B9C4D3;
  --orange-light: #E8935F;
  --orange-tint: rgba(232, 147, 95, .16);
  --orange-dark: #E8935F;   /* "orange text" roles: menu hover, outline button, ticks */
  --navy-deep: #0A1220;     /* footer, a step darker than the page */
  --navy-700: #5D7BA4;
  --leaf: #6F86A8;
  --leaf-light: #4A6386;
  --pale: #3A4F70;
  --tint: #22344F;
  --cream: #1A2638;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 40px rgba(0, 0, 0, .45);
}

/* Text that is navy in light mode becomes near-white */
[data-theme="dark"] :is(h1, h2, h3, .price, .setup-note, .brand, .wm-grafted, .menu summary) { color: var(--heading); }
[data-theme="dark"] .tagline { color: var(--heading) !important; }

/* Orange text uses the brighter accent */
[data-theme="dark"] :is(a, .accent, .wm-it, .icon, .setup-note svg) { color: var(--accent); }
[data-theme="dark"] a:hover { color: #F3B08A; }
[data-theme="dark"] .btn:not(.btn-quiet) { color: #FFFFFF; }
[data-theme="dark"] .btn:not(.btn-quiet):hover { background: #9A471A; color: #FFFFFF; }
[data-theme="dark"] .btn-quiet { color: var(--accent); background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
[data-theme="dark"] .btn-quiet:hover { color: #FFFFFF; background: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
[data-theme="dark"] .card-link { color: var(--accent); }
/* Menu links stay plain text, like in light mode; orange only on hover or for the current page */
[data-theme="dark"] .nav a:not(.btn),
[data-theme="dark"] .menu-panel a:not(.btn) { color: var(--ink); }
[data-theme="dark"] .nav a:not(.btn):hover,
[data-theme="dark"] .nav a[aria-current="page"],
[data-theme="dark"] .menu-panel a:not(.btn):hover { color: var(--accent); background: var(--orange-tint); }

/* Floating menu bar */
[data-theme="dark"] .header-inner {
  background: color-mix(in srgb, var(--card) 86%, transparent);
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

/* Care-loop diagram */
[data-theme="dark"] .care-loop { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
[data-theme="dark"] .care-node circle { fill: var(--card); stroke: var(--line); }
[data-theme="dark"] .care-node text,
[data-theme="dark"] .care-wordmark .wm-grafted { fill: var(--heading); }
[data-theme="dark"] .care-wordmark .wm-it { fill: var(--accent); }
[data-theme="dark"] .care-icon { stroke: var(--accent); }
[data-theme="dark"] .care-arrow { fill: var(--accent); stroke: var(--accent); }
[data-theme="dark"] .care-shadow { flood-color: #000; flood-opacity: .45; }
[data-theme="dark"] :is(.def-word, .def-text b) { color: var(--heading); }

/* Drawings: white panels become dark cards, navy shapes lift a little */
[data-theme="dark"] .hero-art .f-white { fill: var(--card); }
[data-theme="dark"] .hero-art .f-warm-white { fill: var(--ink); }
[data-theme="dark"] .hero-art .f-navy { fill: #35527C; }
[data-theme="dark"] .hero-art .s-navy { stroke: #35527C; }
[data-theme="dark"] .hero-art .f-mist { fill: var(--tint); }

/* Lines and borders that were warm white on navy */
[data-theme="dark"] .step:not(:last-child)::after { border-color: rgba(241, 244, 248, .45); }
[data-theme="dark"] .price-card.featured { border-color: #2B4A74; }
[data-theme="dark"] .price-card.featured .checks li::before { background: rgba(255, 255, 255, .14); }
[data-theme="dark"] .contact-email a:hover,
[data-theme="dark"] .footer-links a:hover { color: #FFFFFF; }
[data-theme="dark"] .footer-bottom { border-top-color: rgba(255, 255, 255, .1); }

/* Booking / not-found panel and drawing */
[data-theme="dark"] .page-center .container { box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
[data-theme="dark"] .page-art .bg { fill: var(--card); }
[data-theme="dark"] .page-art :is(.line-navy) { stroke: var(--heading); }
[data-theme="dark"] .page-art .dot { fill: var(--heading); }
[data-theme="dark"] .page-art .line { stroke: var(--accent); }
[data-theme="dark"] .care-card-title { color: var(--heading); }
[data-theme="dark"] :focus-visible { outline-color: var(--accent); }
