/* Begonia Counselling — design tokens and signature components
 * Enqueue after the theme's style.css. Values match the approved mockups exactly.
 * Colours are duplicated here as plain custom properties so non-block CSS
 * (ribbons, accordion, arches) does not depend on theme.json preset names.
 */

:root {
  /* ---- colour ------------------------------------------------------- */
  --bg-cream: #FCF4E1;        /* page ground */
  --bg-moss: #4A4C29;         /* pillar band, buttons, header pill */
  --bg-forest: #3E4122;       /* footer */
  --bg-parchment: #ECDEBA;    /* quiet sections, arches, cards */
  --ink-bark: #312D13;        /* headings and body on cream */
  --ink-bark-soft: #4F4A33;   /* secondary body on cream */
  --ink-meta: #6B6247;        /* dates, captions, labels on cream */
  --ink-rust: #A2551F;        /* eyebrows, links, "+" on cream */
  --ink-rust-deep: #8F4A18;   /* eyebrows and links on parchment (AA) */
  --ink-amber: #E3B36C;       /* small uppercase labels on moss/forest (AA) */
  --ink-cream: #F5F0CF;       /* headings on moss/forest */
  --ink-khaki: #CDCCAA;       /* body on moss */
  --ink-footer: #B8B597;      /* footer legal row */
  --accent-amber: #D3953E;    /* sparkle, social rings, gold button */
  --accent-rust: #A85724;     /* the pot in the mark, sun motif */
  --accent-olive: #6F7140;    /* mark arc, ribbon */
  --line-rule: #E4D5B7;       /* hairlines on cream */
  --line-border: #CDBD8E;     /* outlined pills, dashed placeholders */
  --line-on-dark: rgba(205, 204, 170, 0.28);  /* dividers on moss */
  --line-footer: rgba(205, 204, 170, 0.18);   /* divider above legal row */

  /* ---- ribbon bands (outer -> inner) -------------------------------- */
  --band-1: #A85725;  /* rust */
  --band-2: #E0AE62;  /* peach */
  --band-3: #CF8E3C;  /* orange */
  --band-4: #6F7141;  /* olive */
  --band-5: #C5B071;  /* khaki */
  --band-w: 22px;     /* stroke width, desktop */

  /* ---- type --------------------------------------------------------- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fvs-display: "SOFT" 100, "WONK" 1;   /* always set on Fraunces */

  /* ---- layout ------------------------------------------------------- */
  --gutter: 64px;              /* desktop page gutter */
  --gutter-inset: 180px;       /* left inset where the ribbon runs */
  --max-page: 1280px;
  --radius-pill: 999px;
  --radius-card: 28px;
}

@media (max-width: 781px) {
  :root { --band-w: 16px; --gutter: 24px; --gutter-inset: 24px; }
}

/* ---- Fraunces must always carry the soft/wonky axes ----------------- */
h1, h2, h3, h4, .u-display {
  font-family: var(--font-display);
  font-variation-settings: var(--fvs-display);
}

/* ---- eyebrow / small caps label ------------------------------------- */
.u-eyebrow {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-rust);
}
.u-eyebrow--on-dark { color: var(--ink-amber); letter-spacing: 0.18em; font-size: 12px; }

/* ---- sparkle rule (four-point star + hairline) ---------------------- */
.c-sparkle { display: flex; align-items: center; gap: 10px; }
.c-sparkle svg { display: block; width: 16px; height: 16px; }
.c-sparkle::after {
  content: ""; display: block; width: 90px; height: 1.5px;
  background: rgba(211, 149, 62, 0.7);
}
.u-eyebrow--on-parchment { color: var(--ink-rust-deep); }
.c-sparkle--rust::after { background: rgba(162, 85, 31, 0.5); width: 70px; }

/* ---- buttons --------------------------------------------------------- */
.c-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 16px 28px;
  border: none; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  background: var(--bg-moss); color: var(--ink-cream);
  transition: background-color 120ms ease;
}
.c-btn:hover { background: var(--bg-forest); color: var(--ink-cream); }
.c-btn--amber { background: var(--accent-amber); color: var(--ink-bark); }
.c-btn--amber:hover { background: #C4842C; }
.c-btn--outline {
  background: transparent; color: var(--bg-moss);
  border: 1.5px solid var(--bg-moss); padding: 14.5px 26.5px;
}
.c-btn--header { padding: 14px 24px; letter-spacing: 0.08em; }

/* arrow link: label + 22x12 arrow, 12px gap */
.c-arrowlink {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-rust);
}
.c-arrowlink:hover svg { transform: translateX(3px); }
.c-arrowlink svg { transition: transform 120ms ease; }

/* ---- focus ----------------------------------------------------------- */
:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- arch image style (core/image style variation "arch") ------------ */
.wp-block-image.is-style-arch img,
.c-arch {
  display: block;
  border-radius: 9999px 9999px 14px 14px; /* clamps to half the width */
  overflow: hidden;
  object-fit: cover;
}
/* thin amber outline arch, offset 18px around a portrait */
.c-arch-frame { position: relative; display: inline-block; }
.c-arch-frame::before {
  content: ""; position: absolute; inset: -18px -18px 0 -18px;
  border: 1.5px solid var(--accent-amber); border-bottom: none;
  border-radius: 9999px 9999px 0 0; pointer-events: none;
}

/* ---- ribbon ---------------------------------------------------------- */
/* The ribbon is inline SVG, absolutely positioned inside a clipping
 * section. Stroke colours come from --band-1..5; never recolour per page. */
.c-ribbon { position: absolute; display: block; pointer-events: none; }
.c-ribbon path { fill: none; stroke-width: 22.5; }
.c-ribbon path:nth-child(1) { stroke: var(--band-1); }
.c-ribbon path:nth-child(2) { stroke: var(--band-2); }
.c-ribbon path:nth-child(3) { stroke: var(--band-3); }
.c-ribbon path:nth-child(4) { stroke: var(--band-4); }
.c-ribbon path:nth-child(5) { stroke: var(--band-5); }
.c-ribbon--hero { left: 0; top: 0; }
.c-ribbon--bottom { right: 0; bottom: 0; }
.has-ribbon { position: relative; overflow: hidden; }

/* ---- seasons accordion (core/details) -------------------------------- */
.c-seasons { border-top: 1px solid var(--line-rule); }
.c-seasons details { border-bottom: 1px solid var(--line-rule); }
.c-seasons summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 44px; padding: 10px 2px;
  font-size: 16px; font-weight: 500; color: var(--ink-bark);
  cursor: pointer; list-style: none;
}
.c-seasons summary::-webkit-details-marker { display: none; }
.c-seasons summary::after {
  content: "+"; font-size: 20px; line-height: 1; color: var(--ink-rust);
}
.c-seasons details[open] summary::after { content: "\2212"; }  /* minus */
.c-seasons details > p {
  margin: 0 0 14px; font-size: 15px; line-height: 1.6;
  color: var(--ink-bark-soft);
}

/* ---- social rings ---------------------------------------------------- */
.c-social a {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--accent-amber); color: var(--ink-cream);
}
.c-social a:hover { background: var(--accent-amber); color: var(--ink-bark); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
