/* JewelSTAR Consulting
   Layout: white header with star mark + pill nav; split hero (text / tall photo frame);
   service pages keep the original Who / What / When / Where blocks as a 2x2 grid of
   charcoal, slate, and lavender panels; deep-plum call-to-action band before the footer. */

:root {
  --plum: #6a1fa0;          /* brand purple, from the original nav buttons */
  --plum-deep: #4b1373;
  --plum-soft: #efe6f7;     /* lavender panel */
  --ink: #1d1a22;           /* near-black with a violet bias */
  --slate: #3d3846;         /* the original charcoal-gray panel */
  --muted: #625b6c;
  --line: #e4dde9;
  --bg: #fbfafc;
  --surface: #ffffff;
  --on-dark: #f7f3fb;
  --on-dark-muted: #cfc4db;

  --font-display: "Josefin Sans", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --maxw: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --plum: #b98ae6; --plum-deep: #8a4fc4; --plum-soft: #2c2236;
    --ink: #f1ecf6; --slate: #2a2531; --muted: #b3a9bf; --line: #3a3243;
    --bg: #16131a; --surface: #1e1a23; --on-dark: #f7f3fb; --on-dark-muted: #cfc4db;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --plum: #b98ae6; --plum-deep: #8a4fc4; --plum-soft: #2c2236;
  --ink: #f1ecf6; --slate: #2a2531; --muted: #b3a9bf; --line: #3a3243;
  --bg: #16131a; --surface: #1e1a23; --on-dark: #f7f3fb; --on-dark-muted: #cfc4db;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--plum); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--plum);
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 28px; padding-block: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.star { width: 44px; height: 44px; fill: var(--plum); flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: .01em; line-height: 1.1; }
.brand-name b, .footer-brand b { font-weight: 700; color: var(--plum); }
.brand-tag { font-size: .82rem; color: var(--muted); font-style: italic; }

.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nav a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--ink); text-decoration: none; line-height: 1.2;
  transition: background-color .15s ease, color .15s ease;
}
.nav a:hover { background: var(--plum-soft); }
.nav a[aria-current="page"] { background: var(--plum-soft); color: var(--plum); }
.nav .nav-cta { background: var(--plum); color: #fff; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: var(--plum-deep); color: #fff; }
@media (max-width: 640px) {
  .nav { gap: 4px; }
  .nav a { padding: 6px 11px; font-size: .88rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  background: var(--plum); color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .04em;
  border: 2px solid var(--plum);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--plum-deep); border-color: var(--plum-deep); }
.btn-ghost { background: transparent; color: var(--plum); }
.btn-ghost:hover { background: var(--plum-soft); color: var(--plum); border-color: var(--plum); }
.btn-light { background: #fff; color: #4b1373; border-color: #fff; }
.btn-light:hover { background: #efe6f7; border-color: #efe6f7; }

/* ---------- Home hero ---------- */
.hero { padding-block: 56px 72px; }
.hero-inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 64px; } }
.hero-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -.005em; }
.hero-text > p:not(.eyebrow):not(.lede) { max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.hero-photo { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.photo-frame {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%;
  border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden; background: var(--slate);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-fallback {
  position: absolute; inset: 0; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--on-dark-muted); text-align: center; padding: 24px;
  background: radial-gradient(circle at 50% 35%, #4b1373 0%, #2a2531 70%);
  font-family: var(--font-display); font-size: 1.05rem;
}
.photo-fallback .star { width: 64px; height: 64px; fill: #b98ae6; }
.photo-fallback small { font-family: var(--font-body); opacity: .8; }
.no-photo img { display: none; }
.no-photo .photo-fallback { display: flex; }
.hero-photo figcaption { font-size: .8rem; color: var(--muted); text-align: right; }

/* ---------- Services grid ---------- */
.services { padding-block: 64px; background: var(--surface); border-block: 1px solid var(--line); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 28px; }
.svc-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.svc-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.svc-card:hover { border-color: var(--plum); transform: translateY(-2px); }
.svc-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.svc-blurb { color: var(--muted); flex: 1; }
.svc-more { font-weight: 700; color: var(--plum); font-size: .95rem; }

/* ---------- Service page head ---------- */
.page-head { padding-block: 56px 40px; }
.page-head .wrap { display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }

/* ---------- Who / What / When / Where ---------- */
.wwww-section { padding-bottom: 72px; }
.wwww-grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .wwww-grid { grid-template-columns: 1fr 1fr; } }
.wwww {
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
.wwww-who   { background: #1d1a22; color: var(--on-dark); }
.wwww-what  { background: var(--slate); color: var(--on-dark); }
.wwww-when  { background: var(--plum-soft); color: var(--ink); }
.wwww-where { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.wwww-head { display: flex; align-items: center; gap: 14px; }
.wwww-head h2 {
  font-size: 1.05rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  padding-top: 3px;
}
.wwww-when h2, .wwww-where h2 { color: var(--plum); }
.wwww-icon {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid currentColor;
}
.wwww-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wwww-when .wwww-icon, .wwww-where .wwww-icon { color: var(--plum); }
.wwww-body { display: flex; flex-direction: column; gap: 12px; }
.wwww-who .wwww-body, .wwww-what .wwww-body { color: #e9e2f1; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 5px 13px; border-radius: 999px; font-size: .93rem;
  border: 1px solid rgba(255,255,255,.35); color: #fff;
}
.questions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.questions li {
  padding: 12px 16px; border-radius: 10px;
  background: rgba(255,255,255,.08); border-left: 3px solid #b98ae6;
  font-weight: 600; color: #fff;
}

/* ---------- CTA band ---------- */
.cta-band { background: #4b1373; color: #fff; padding-block: 48px; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: #e3d4f2; margin-top: 6px; }

/* ---------- Contact ---------- */
.contact-section { padding-bottom: 80px; }
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.contact-card .wwww-icon { color: var(--plum); }
.contact-card h2 { font-size: .9rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.contact-value { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; line-height: 1.3; }
a.contact-value:hover { color: var(--plum); }
.contact-note { color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: #1d1a22; color: #e9e2f1; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-block: 40px 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.footer-brand .star { width: 30px; height: 30px; fill: #b98ae6; }
.footer-brand b { color: #b98ae6; }
.footer-tag { color: #b3a9bf; font-style: italic; font-size: .9rem; margin-top: 4px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.footer-contact a:hover { color: #d8bff2; }
.footer-base { border-top: 1px solid #3a3243; padding-block: 18px; font-size: .85rem; color: #b3a9bf; }

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