/* CanvasWebsites visual design system.
   Register: "capable craft, moving fast" -- distinct from CanvasPM's
   "precise, buttoned-up, trustworthy" and CanvasAutomate's "responsive,
   clean, fast." CanvasWebsites sells hands-on building work with a real
   end date (see the days/weeks-not-months positioning on Pricing), so the
   register leans warmer and more tactile than either sibling -- craft,
   not just speed.

   Palette: the navy anchor (#17274b) and navy-deep (#0f1c38) are shared
   with canvaspm-net and canvasautomate on purpose -- family resemblance
   under the CanvasPM umbrella. The accent is a new, distinct amber/ochre
   (not CanvasPM's warm red, not CanvasAutomate's teal-green) -- "canvas
   and paint," and a warmer, more hand-built feel than either sibling's
   accent, 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. The pale
   amber fails AA on white and is marked decorative/dark-section-only,
   mirroring both siblings' own "pale tint, decoration only" convention. */

:root {
  color-scheme: light;

  /* Brand palette */
  --color-navy: #17274b;        /* shared anchor with CanvasPM/CanvasAutomate -- 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 */
  --color-accent: #a15c00;      /* CanvasWebsites' own accent (amber/ochre) -- 5.19:1 on white */
  --color-amber-pale: #e8c27a;  /* decorative / dark-bg text ONLY -- 10.01:1 on navy-deep, ~1.69: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: #f6efe1;      /* pale neutral, amber-tinted (vs CanvasPM's blue-tint, CanvasAutomate's green-tint) */

  /* Elevation -- warm navy-tinted shadows (not generic gray/black) so
     "lift" reads as part of the same paint/canvas palette instead of a
     bolted-on UI-kit effect. Two steps: resting and hover/raised. */
  --shadow-rest: 0 1px 2px rgba(23, 39, 75, 0.08), 0 1px 1px rgba(23, 39, 75, 0.05);
  --shadow-raised: 0 8px 20px rgba(23, 39, 75, 0.14), 0 2px 6px rgba(23, 39, 75, 0.08);

  /* Roboto for both body and headings -- no licensed display face exists
     for this sub-brand either (same reasoning as CanvasAutomate); weight
     and tight letter-spacing carry the register instead of an uppercase
     display treatment. */
  --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);
  box-shadow: var(--shadow-rest);
  position: relative;
  z-index: 20;
}
.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;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.logo__mark {
  display: block;
  border-radius: 0.2rem;
}

.btn {
  display: inline-block;
  padding: 0.5em 1em;
  border-radius: 0.35em;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--accent);
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn--book, .btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-rest);
}
.btn--book:hover, .btn--primary:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}
.btn--book:active, .btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-rest);
}

.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);
  border-radius: 0.4rem;
  padding: 0.5rem;
  list-style: none;
  min-width: 14rem;
  box-shadow: var(--shadow-raised);
  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 row of short
   diagonal "brushstroke" marks under every hero -- a canvas/paint motif,
   a different *shape* from CanvasPM's static Mondrian color blocks and
   CanvasAutomate's dashed connector-pipeline, not a recolor of either.
   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: 10px;
  margin-top: 1.25rem;
  background-image: repeating-linear-gradient(
    115deg,
    var(--color-navy) 0 10px,
    var(--color-accent) 10px 20px,
    transparent 20px 30px
  );
  background-size: 30px 10px;
  background-repeat: repeat-x;
}

.section { margin: 2.5rem 0; }

/* Secondary divider -- a short accent-colored rule, deliberately not the
   full-width gray hairline it replaces and not the diagonal brushstroke
   either (that stays the hero's one signature landmark, guide Section
   5/10). This is the everyday "new section starts here" mark. */
.section--credibility {
  padding-top: 2rem;
  position: relative;
}
.section--credibility::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
  margin-bottom: 1.5rem;
}

.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;
  background: var(--paper);
  box-shadow: var(--shadow-rest);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card-grid li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-raised);
  border-color: var(--color-accent);
}
.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-color: var(--surface-tint);
  background-image: radial-gradient(circle at 1px 1px, rgba(23, 39, 75, 0.05) 1px, transparent 0);
  background-size: 5px 5px;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-rest);
}
.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;
  position: relative;
}
.sibling-nav::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
  margin-bottom: 1.5rem;
}

.flag-note {
  background: var(--surface-tint);
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}

/* 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, so footer links
   use --color-amber-pale instead (10.01:1), the same pattern both sibling
   sites use for their own pale accent tint on the same navy-deep. */
.site-footer {
  background-color: var(--color-navy-deep);
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 5px 5px;
  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-amber-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-amber-pale); font-size: 0.9rem; margin: 0; }
