/* 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 burnt-orange
   (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. A second, brighter accent (--color-accent-bright) exists
   purely for bold decorative fills -- big blocks, badges, image
   placeholders -- paired with navy or white text on top, never as text
   color on its own against white (see its comment below for why).

   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: #c2410c;      /* CanvasWebsites' own accent (bold burnt orange) -- 5.18:1 on white, safe for text/buttons */
  --color-accent-bright: #f59e0b; /* vivid amber-gold, DECORATIVE FILLS ONLY (badges, placeholders, bold blocks) -- ~2.2:1 on white, never text-on-white; navy-on-this is 6.85:1, white-on-this fails and must not be used */
  --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.15;
}
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.4rem); }
.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: clamp(2.25rem, 1.7rem + 2.5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 0.3em;
}
.dek { color: var(--muted); font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem); }
.price-line {
  display: inline-block;
  color: var(--color-navy);
  background: var(--color-accent-bright);
  font-weight: 700;
  padding: 0.15em 0.6em;
  border-radius: 0.3em;
  margin-top: 0.25em;
}

/* Hero split layout: headline/dek/CTA on one side, an image-placeholder
   slot on the other, when a page opts in with .hero--with-visual (see
   .img-placeholder below). Stacks on narrow screens. */
.hero--with-visual {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 48rem) {
  .hero--with-visual { grid-template-columns: 3fr 2fr; }
}
.hero--with-visual::after { grid-column: 1 / -1; }

/* 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: 700; font-size: 1.1rem; text-decoration: none; }
.card-grid .img-placeholder { margin-bottom: 0.75rem; }

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: 2rem 1.5rem;
  background-color: var(--color-accent-bright);
  background-image: radial-gradient(circle at 1px 1px, rgba(23, 39, 75, 0.08) 1px, transparent 0);
  background-size: 5px 5px;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-raised);
}
.cta-band__headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.6rem);
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}
.cta-band .btn--primary {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}
.cta-band .btn--primary:hover {
  background: var(--color-navy-deep);
  border-color: var(--color-navy-deep);
}
.cta-band .btn { margin: 0 0.4rem; }
.mid-page-cta { text-align: center; }

/* Image placeholder -- a slot for real photography/screenshots that
   doesn't exist yet (site.portfolio items, the About headshot, the home
   hero) without faking a stock photo or a bare gray box. Built from the
   same brushstroke motif as the hero ornament and logo mark so an empty
   slot still reads as on-brand, not broken. Swap the <div> for a real
   <img> per-instance once photography/screenshots are supplied -- the
   class is layout-only for size, not meant to persist alongside a real
   image. */
.img-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 0.6rem;
  border: 2px dashed var(--color-accent);
  background-color: var(--surface-tint);
  background-image: repeating-linear-gradient(
    115deg,
    var(--color-navy) 0 10px,
    var(--color-accent-bright) 10px 20px,
    transparent 20px 34px
  );
  background-size: 48px 16px;
  background-repeat: repeat;
  background-blend-mode: soft-light;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
.img-placeholder--square { aspect-ratio: 1 / 1; }
.img-placeholder--wide { aspect-ratio: 16 / 9; }
.img-placeholder__label {
  background: var(--paper);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4em 0.8em;
  border-radius: 0.3em;
  box-shadow: var(--shadow-rest);
}

.contact-form {
  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; }

/* Honeypot field for the contact form (Web3Forms botcheck) -- off-screen, not display:none, so bots still fill it. */
.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Real portfolio screenshot on /work/ -- same footprint as .img-placeholder--wide. */
.work-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  margin-bottom: 0.75rem;
}

/* Hero illustration (assets/hero.svg) -- same 16:9 footprint as .img-placeholder--wide. */
.hero-visual {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
  box-shadow: var(--shadow-raised);
}
