/* JaWilly Services — rebuilt stylesheet.
   Brand values measured from the original site's computed styles:
   header purple #671AAC, accent purple #8351C7, call-bar/button yellow #FFC107,
   headings Playfair Display 700, body Open Sans, buttons radius 5px / 16px 32px. */

@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/playfair-display-700.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/open-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/open-sans-700.woff2") format("woff2"); }

:root {
  --purple-dark: #671aac;
  --purple: #8351c7;
  --purple-deep: #4b1380;
  --purple-tint: #f4effb;
  --yellow: #ffc107;
  --yellow-dark: #e0a800;
  --ink: #1b1b1f;
  --text: #333333;
  --muted: #5b5b66;
  --line: #e4dff0;
  --bg-soft: #f4f4f4;
  --white: #ffffff;
  --black: #000000;
  --radius: 5px;
  --shadow: 0 10px 30px rgba(55, 20, 100, 0.12);
  --wrap: 1200px;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Open Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.7; color: var(--text); background: var(--white); }
img, picture, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-dark); text-underline-offset: 2px; }
a:hover { color: var(--purple-deep); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
main:focus { outline: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.375rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); color: var(--purple); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
strong { color: var(--ink); }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 860px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--yellow); color: var(--black); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { left: 10px; top: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: 14px 30px; border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center; border: 2px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--yellow:hover { background: var(--yellow-dark); color: var(--black); }
.btn--purple { background: var(--purple); color: var(--white); }
.btn--purple:hover { background: var(--purple-dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--purple-dark); }
.btn--light:hover { background: var(--purple-tint); color: var(--purple-deep); }
.btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 1.4rem; }
.btn-row--left { justify-content: flex-start; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--yellow); color: var(--black); font-size: .9rem; font-weight: 700; }
.topbar__inner { padding-top: 8px; padding-bottom: 8px; }
.topbar p { margin: 0; text-align: center; }
.topbar a { color: var(--purple-deep); font-weight: 700; }
.site-header { background: var(--purple-dark); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand { display: block; flex: 0 0 auto; padding: 6px 0; }
.brand__logo img, .brand img { width: 66px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.menu__item { position: relative; margin: 0; display: flex; align-items: center; }
.menu a { display: block; color: var(--white); font-family: var(--font-head); font-size: 1rem; text-decoration: none; padding: 10px 12px; border-radius: 4px; }
.menu > li > a:hover, .menu > li > a[aria-current="page"], .menu > li > a.is-active { color: var(--yellow); }
.sub-toggle { background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px 6px 8px 0; font-size: .9rem; min-height: 44px; }
.submenu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 290px; background: var(--white); border-radius: 0 0 6px 6px; box-shadow: var(--shadow); border-top: 3px solid var(--yellow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.submenu li { margin: 0; }
.submenu a { color: var(--ink); font-family: var(--font-body); font-size: .95rem; padding: 9px 18px; border-radius: 0; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--purple-tint); color: var(--purple-dark); }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.nav-call { padding: 10px 18px; min-height: 44px; white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); border-radius: var(--radius); padding: 10px 14px; font-weight: 700; font-family: var(--font-body); cursor: pointer; min-height: 44px; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--purple-dark); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; max-height: calc(100vh - 120px); overflow-y: auto; display: none; border-top: 1px solid rgba(255,255,255,.15); }
  .site-nav.is-open { display: flex; }
  .menu { flex-direction: column; align-items: stretch; }
  .menu__item { flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.12); }
  .menu__item > a { flex: 1; padding: 13px 4px; font-size: 1.1rem; }
  .sub-toggle { padding: 12px; font-size: 1.1rem; }
  .submenu { position: static; flex-basis: 100%; min-width: 0; background: rgba(0,0,0,.18); box-shadow: none; border: 0; border-radius: 4px; opacity: 1; visibility: visible; transform: none; display: none; margin-bottom: 10px; }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: none; }
  .has-sub.is-open .submenu { display: block; }
  .submenu a { color: var(--white); }
  .submenu a:hover, .submenu a[aria-current="page"] { background: rgba(255,255,255,.08); color: var(--yellow); }
  .nav-call { margin-top: 14px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--white); text-align: center; background: var(--purple-deep); overflow: hidden; }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,8,40,.55) 0%, rgba(20,8,40,.62) 100%); }
.hero__inner { padding-top: clamp(64px, 10vw, 130px); padding-bottom: clamp(64px, 10vw, 130px); max-width: 980px; }
.hero h1 { color: var(--white); margin-bottom: .4em; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 820px; margin: 0 auto; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--yellow); font-size: .85rem; margin-bottom: .8rem; }
.hero--short .hero__inner { padding-top: 70px; padding-bottom: 70px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: 16px; padding-bottom: 4px; font-size: .9rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { margin: 0; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--muted); }

/* ---------- Sections & content components (used inside Markdown) ---------- */
.page-body > .section:first-child { padding-top: 40px; }
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--purple-tint); }
.section-title { text-align: center; color: var(--purple); }
.section-intro { text-align: center; max-width: 860px; margin: 0 auto 2rem; }
.center { text-align: center; }
.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--purple-dark); }
.prose > :first-child { margin-top: 0; }

.split { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; } .split--reverse > :first-child { order: 2; } }
.split figure, .figure { margin: 0; }
.split img, .figure img { border-radius: 8px; box-shadow: var(--shadow); width: 100%; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 2rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; box-shadow: 0 4px 18px rgba(55,20,100,.06); }
.card h3 { font-size: 1.3rem; margin: .8rem 0 .5rem; color: var(--ink); }
.card p { font-size: .95rem; flex: 1; }
.card__icon img { width: 96px; height: 96px; object-fit: contain; }
.card .btn { margin-top: .6rem; padding: 10px 24px; min-height: 44px; background: var(--purple); color: var(--white); text-transform: uppercase; font-size: .9rem; }
.card .btn:hover { background: var(--purple-dark); }
.card--photo { padding: 0; overflow: hidden; text-align: left; align-items: stretch; }
.card--photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 0; box-shadow: none; }
.card--photo .card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card--photo .btn { align-self: flex-start; }

.band { background: var(--purple); color: var(--white); position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 9vw, 110px); }
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; background: var(--white); clip-path: ellipse(75% 100% at 50% 100%); }
.band h2, .band h3, .band strong { color: var(--white); }
.band a:not(.btn) { color: var(--yellow); }
.band__lead { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.band .split img { box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.mascot-circle { position: relative; max-width: 420px; margin: 0 auto; }
.mascot-circle::before { content: ""; position: absolute; inset: 6% 6% 10%; border-radius: 50%; background: #fbb12b; z-index: 0; }
.mascot-circle img { position: relative; z-index: 1; box-shadow: none !important; }

.photo-band { position: relative; isolation: isolate; color: var(--white); text-align: center; overflow: hidden; }
.photo-band picture, .photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: rgba(15,6,30,.6); z-index: -1; }
.photo-band h2 { color: var(--white); }
.photo-band .wrap { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); max-width: 900px; }

.checklist { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 34px; margin: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.checklist--cols { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 1.6rem 0; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--purple); border-radius: 8px; padding: 22px 20px 18px; margin: 0; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--black); font-weight: 700; margin-bottom: 10px; }
.steps strong { display: block; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 4px; }

.callout { background: var(--purple-tint); border-left: 5px solid var(--purple); padding: 18px 22px; border-radius: 6px; margin: 1.6rem 0; }
.callout--warn { background: #fff8e1; border-left-color: var(--yellow-dark); }
.callout > :last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--purple-tint); color: var(--ink); }

/* ---------- FAQ / related / CTA ---------- */
.faq { background: var(--bg-soft); }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; }
.faq__item summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; color: var(--ink); position: relative; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--purple); }
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding: 0 20px 6px; }

.link-cards { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.link-cards li { margin: 0; }
.link-card { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-left: 5px solid var(--yellow); border-radius: 8px; text-decoration: none; color: var(--text); background: var(--white); transition: box-shadow .2s, transform .2s; }
.link-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.link-card strong { display: block; color: var(--purple-dark); font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 4px; }
.link-card span { font-size: .93rem; }

.cta-band { background: #9a74d6; background: linear-gradient(135deg, var(--purple) 0%, #9d77d8 100%); color: var(--white); text-align: center; padding: clamp(48px, 7vw, 80px) 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { font-size: 1.08rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h2, .post-card h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: .4rem; }
.post-card h2 a, .post-card h3 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--purple-dark); text-decoration: underline; }
.post-meta { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.post-card p { font-size: .95rem; flex: 1; }
.post-header { padding: 32px 0 8px; }
.post-header h1 { color: var(--purple-dark); font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.post-hero img { border-radius: 10px; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-body { padding: 32px 0 56px; }
.post-body .prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.post-taxonomy { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 2rem 0 0; }
.post-taxonomy li { margin: 0; }
.post-taxonomy a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--purple-tint); text-decoration: none; font-size: .85rem; }
.toc { background: var(--bg-soft); border-radius: 8px; padding: 18px 22px; margin: 0 0 2rem; }
.toc p { font-weight: 700; margin-bottom: .4rem; }
.toc ol { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-card { background: var(--bg-soft); border-radius: 10px; padding: 28px; }
.contact-card dt { font-weight: 700; color: var(--ink); margin-top: 1rem; }
.contact-card dd { margin: 0; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.form .req { color: #b00020; }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #b9b2c8; border-radius: var(--radius); background: var(--white); color: var(--ink); min-height: 48px; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--purple); }
.form__hint { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
.form__hp { position: absolute; left: -9999px; }
.form-status { padding: 14px 16px; border-radius: 6px; font-weight: 700; }
.form-status[hidden] { display: none; }
.form-status--ok { background: #e7f6ec; color: #1d5e33; }
.form-status--err { background: #fdecea; color: #8a1c13; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #e9e9ee; padding: 56px 0 0; font-size: .95rem; }
.site-footer a { color: var(--yellow); }
.site-footer a:hover { color: #ffe08a; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-title { font-family: var(--font-body); font-weight: 700; color: var(--white); font-size: 1.05rem; margin-bottom: .8rem; }
.footer-title--sub { margin-top: 1.4rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-inline { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.footer-logo img { width: 180px; margin-top: 8px; }
.footer-bottom { border-top: 1px solid #2a2a2a; margin-top: 40px; padding-top: 18px; padding-bottom: 22px; text-align: center; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 72px 0; }
.photo-band strong, .hero strong, .cta-band strong { color: var(--white); }
form:tool-form-active { outline: 3px dashed var(--purple); outline-offset: 8px; border-radius: 6px; }
