/* CanvasAutomate visual design system -- Phase 4 (Styling).
   Register: "responsive, clean, fast" (plan.md's Section 5 note --
   distinct from CanvasPM's "precise, buttoned-up, trustworthy"; this
   line sells speed and revenue capture, not strategic depth).

   Palette: the navy anchor is shared with canvaspm-net/src/assets/
   scaffold.css on purpose -- family resemblance under the CanvasPM
   umbrella (plan.md Phase 4: "derive from CanvasPM's existing brand
   anchor color... but with its own accent"). The accent is a new,
   distinct teal-green (automation/"go", not CanvasPM's warm red) so a
   visitor can tell this is a related-but-different offering, not a
   re-skin.

   Every text/background pairing actually used below was computed with
   the real WCAG relative-luminance formula (not eyeballed) before being
   assigned a role -- see the ratios in each token's comment. Pairings
   that fail AA (the bright mint, the accent-on-navy-deep combination)
   are marked decorative-only / dark-section-only and never used as
   light-background body or link text, mirroring canvaspm-net's own
   "light blues test at ~2:1, decoration only" convention. */

:root {
  color-scheme: light;

  /* Brand palette */
  --color-navy: #17274b;         /* shared anchor with CanvasPM -- 14.70:1 on white */
  --color-navy-deep: #0f1c38;    /* darkest -- dark-section/footer bg, 16.89:1 on white */
  --color-slate: #46586e;        /* secondary text -- 7.29:1 on white, 6.54:1 on tint */
  --color-accent: #0a7a5c;       /* CanvasAutomate's own accent -- 5.31:1 on white, 4.77:1 on tint */
  --color-mint-pale: #a9d9c9;    /* decorative / dark-bg text ONLY -- 10.82:1 on navy-deep, ~2:1 on white */
  --color-mint-bright: #35c99a;  /* decorative accent, dark sections/graphics ONLY -- 8.02:1 on navy-deep, 2.11:1 on white */
  --color-line: #d7dee5;         /* light neutral border/divider -- decorative, not text */
  --color-white: #ffffff;

  /* Semantic tokens -- components read these, not the raw brand names */
  --ink: var(--color-navy);
  --paper: var(--color-white);
  --muted: var(--color-slate);
  --line: var(--color-line);
  --accent: var(--color-accent);
  --accent-ink: var(--color-white);
  --surface-tint: #eef4f2;       /* pale neutral, green-tinted (vs CanvasPM's blue-tinted) -- 13.20:1 with --ink */

  /* Clean, lean sans for both body and headings -- no separate licensed
     display face exists for this sub-brand, and a heavy uppercase
     treatment (CanvasPM's Lovelo Black) would read as "monumental," not
     "fast." Weight and tight letter-spacing carry the register instead. */
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.logo { font-weight: 700; letter-spacing: -0.01em; }

a { color: var(--accent); }
a:hover { color: var(--color-navy); }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5em 1em;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1.5rem;
  background: var(--paper);
}
.site-header__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.logo {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  padding: 0.5em 1em;
  border-radius: 0.35em;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--accent);
  /* Snappy, short transition -- "fast" register; CanvasPM's is 0.15s too,
     kept identical since speed-of-feedback isn't a brand differentiator. */
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.btn--book, .btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--book:hover, .btn--primary:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0.5rem 0 0;
  margin: 0;
}
.primary-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.primary-nav a:hover { color: var(--accent); }
.primary-nav .has-children { position: relative; }
.primary-nav .sub-nav {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.5rem;
  list-style: none;
  min-width: 12rem;
  z-index: 10;
}
.primary-nav .has-children:hover .sub-nav,
.primary-nav .has-children:focus-within .sub-nav {
  display: block;
}

/* Main content */
main { max-width: 60rem; margin: 0 auto; padding: 2rem 1.5rem; }

.hero { margin-bottom: 2rem; padding-bottom: 1.5rem; }
.hero h1 { font-size: 2rem; margin-bottom: 0.25em; }
.dek { color: var(--muted); font-size: 1.15rem; }
.price-line { color: var(--accent); font-weight: 600; }

/* The one signature ornamental element (guide Section 5): a segmented
   "connector" line under every hero -- nodes linked in sequence, reading
   as a pipeline/workflow rather than CanvasPM's static Mondrian color
   blocks. Deliberately a different *shape* of motif, not just a recolor
   of the sibling site's, per plan.md's "distinct enough... not a
   re-skin" note. Applied once via ::after so no template has to
   remember to include it (guide Section 10 duplicate-component
   warning); static, not animated, so it needs no reduced-motion guard. */
.hero::after {
  content: "";
  display: block;
  height: 6px;
  margin-top: 1.25rem;
  background-image:
    radial-gradient(circle, var(--color-navy) 2.5px, transparent 2.5px),
    repeating-linear-gradient(
      to right,
      var(--color-accent) 0 22px,
      transparent 22px 32px
    );
  background-position: 0 center, 0 center;
  background-repeat: repeat-x;
  background-size: 32px 6px, 32px 6px;
}

.section { margin: 2.5rem 0; }
.section--credibility { border-top: 1px solid var(--line); padding-top: 2rem; }

.card-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
}
.card-grid li {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1rem;
}
.card-grid a { font-weight: 600; text-decoration: none; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { text-align: left; padding: 0.5em 0.75em; border-bottom: 1px solid var(--line); }

.cta-band {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--surface-tint);
  border-radius: 0.5rem;
  text-align: center;
}
.cta-band__headline { font-family: var(--font-heading); font-weight: 700; margin-bottom: 0.75rem; }
.cta-band .btn { margin: 0 0.4rem; }
.mid-page-cta { text-align: center; }

.contact-form, .booking-embed {
  display: grid;
  gap: 0.5rem;
  max-width: 24rem;
}
.contact-form input, .contact-form textarea {
  padding: 0.5em;
  border: 1px solid var(--line);
  border-radius: 0.3em;
  font-family: var(--font-body);
}
.contact-form button {
  padding: 0.5em 1em;
  border-radius: 0.35em;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  cursor: pointer;
}

.sibling-nav {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Footer -- a deliberately dark section on the brand's darkest navy,
   with its own fixed contract for text/links/borders (guide Section 5:
   "handle dark sections as one reusable contract, not per-component
   patches"). Every color used here was checked against --color-navy-deep
   specifically -- the saturated accent fails AA there (3.18:1), so
   footer links use --color-mint-pale instead (10.82:1), the same
   pattern canvaspm-net uses for its own pale blue on the same navy-deep. */
.site-footer {
  background: var(--color-navy-deep);
  color: var(--color-white);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}
.site-footer .logo { color: var(--color-white); }
.site-footer a { color: var(--color-mint-pale); }
.site-footer a:hover { color: var(--color-white); }
.site-footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0.25rem 0;
}
.family-note { color: var(--color-mint-pale); font-size: 0.9rem; margin: 0; }
