/* ============================================================
   JB Azure Daylight — component styles
   Base palette/typography/buttons come from theme.json.
   This file adds the custom sections from the "Azure Daylight" design.
   ============================================================ */

:root {
  --jb-shadow-sm: 0 1px 2px rgba(21,55,95,.06), 0 2px 8px rgba(21,55,95,.05);
  --jb-shadow-md: 0 8px 24px rgba(21,55,95,.10), 0 2px 6px rgba(21,55,95,.06);
  --jb-shadow-lg: 0 18px 44px rgba(21,55,95,.14);
}

/* ---------- Eyebrow label ---------- */
.jb-eyebrow {
  color: var(--wp--preset--color--azure);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .78rem;
  margin: 0 0 .6rem;
}

/* ---------- Buttons: pill + subtle shadow (theme.json sets base color) ---------- */
.wp-block-button__link {
  box-shadow: 0 6px 16px rgba(46,130,214,.26);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.wp-block-button__link:hover { transform: translateY(-1px); }

/* Outline variant — add class "is-style-outline" or wrap button group in .jb-outline */
.jb-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--wp--preset--color--azure) !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  box-shadow: none;
}
.jb-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--azure) !important;
  background: var(--wp--preset--color--azure-soft) !important;
}

/* ---------- HERO — the single deep-navy anchor (full-bleed) ---------- */
.jb-hero {
  background:
    radial-gradient(780px 360px at 50% -12%, rgba(90,155,245,.30), transparent 70%),
    linear-gradient(180deg, var(--wp--preset--color--navy-2), var(--wp--preset--color--navy));
  text-align: center;
}
.jb-hero :is(h1,h2,h3) { color: #ffffff; }
.jb-hero .jb-eyebrow { color: #7FB6F5; }
.jb-hero .jb-sub { color: #C6DCF2; font-size: 1.16rem; max-width: 60ch; margin-inline: auto; }
.jb-hero .jb-cloud { color: var(--wp--preset--color--azure-bright); }
/* Secondary hero button → outline on navy */
.jb-hero-actions .wp-block-button:last-child .wp-block-button__link {
  background: transparent;
  color: #DBE9F8;
  border: 1px solid rgba(255,255,255,.40);
  box-shadow: none;
}
.jb-hero-actions .wp-block-button:last-child .wp-block-button__link:hover {
  background: rgba(255,255,255,.10);
  border-color: #fff;
  color: #fff;
}

/* Wave divider under the hero (navy panel, ground-colored wave cut) */
.jb-wave { line-height: 0; background: var(--wp--preset--color--navy); }
.jb-wave svg { display: block; width: 100%; height: 58px; }
.jb-wave svg path { fill: var(--wp--preset--color--ground); }

/* ---------- Section eyebrow + heading rhythm ---------- */
.jb-band { padding-block: 4.5rem; }

/* ---------- Service cards ---------- */
.jb-card {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 14px;
  padding: 1.7rem;
  box-shadow: var(--jb-shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  height: 100%;
}
.jb-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--jb-shadow-md);
  border-color: var(--wp--preset--color--azure-bright);
}
.jb-card h3 { margin: 0 0 .4rem; }
.jb-card p { color: var(--wp--preset--color--body); font-size: .98rem; margin: 0; }

/* Icon chip inside a card */
.jb-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--wp--preset--color--azure-soft);
  color: var(--wp--preset--color--azure);
  margin-bottom: 1rem;
}
.jb-ico svg { width: 26px; height: 26px; }

/* "Start here" accent card */
.jb-card--accent {
  background: linear-gradient(150deg, var(--wp--preset--color--azure-soft), var(--wp--preset--color--surface));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Chips (tech stack row) ---------- */
.jb-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.jb-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  color: var(--wp--preset--color--ink);
  padding: 9px 15px; border-radius: 999px;
  font-size: .86rem; font-weight: 600;
  box-shadow: var(--jb-shadow-sm);
}
.jb-chip svg { color: var(--wp--preset--color--azure); width: 15px; height: 15px; }

/* Figure card (intro band) */
.jb-figure {
  background: linear-gradient(160deg, var(--wp--preset--color--surface-2), var(--wp--preset--color--azure-soft));
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 18px;
  padding: 1.9rem;
  box-shadow: var(--jb-shadow-md);
}

/* ---------- Stat tiles (why band) ---------- */
.jb-stat {
  background: var(--wp--preset--color--surface-2);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: var(--jb-shadow-sm);
}
.jb-stat .n { font-size: 1.9rem; font-weight: 700; color: var(--wp--preset--color--azure); letter-spacing: -.02em; line-height: 1.1; }
.jb-stat .l { font-size: .92rem; color: var(--wp--preset--color--muted); margin-top: .25rem; }

/* Check-list (why band) */
.jb-checks { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.jb-checks li { display: flex; gap: .85rem; align-items: flex-start; }
.jb-checks li .tick {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 999px;
  background: var(--wp--preset--color--azure-soft); color: var(--wp--preset--color--azure);
  display: inline-flex; align-items: center; justify-content: center; margin-top: 2px;
}
.jb-checks li b { color: var(--wp--preset--color--ink); }

/* ---------- CTA band ---------- */
.jb-cta {
  background: linear-gradient(140deg, var(--wp--preset--color--navy-2), var(--wp--preset--color--navy));
  text-align: center;
}
.jb-cta :is(h1,h2,h3) { color: #fff; }
.jb-cta .jb-eyebrow { color: #7FB6F5; }
.jb-cta p { color: #C6DCF2; }

/* ---------- Header / footer ---------- */
.wp-block-template-part.site-header,
.jb-header {
  background: var(--wp--preset--color--surface);
  border-bottom: 1px solid var(--wp--preset--color--border);
}
.jb-nav a { color: var(--wp--preset--color--body); font-weight: 600; }
.jb-nav a:hover { color: var(--wp--preset--color--azure); }
.jb-footer { background: var(--wp--preset--color--ground-2); border-top: 1px solid var(--wp--preset--color--border); }
.jb-footer, .jb-footer a { color: var(--wp--preset--color--muted); }
.jb-footer a:hover { color: var(--wp--preset--color--azure); }

/* ---------- Layout helpers (used inside wp:html sections) ---------- */
.jb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; width: 100%; }
.jb-two { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; width: 100%; }
.jb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) {
  .jb-grid { grid-template-columns: 1fr 1fr; }
  .jb-two { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .jb-grid { grid-template-columns: 1fr; }
  .jb-stats { grid-template-columns: 1fr; }
}

/* Raw-link button (inside wp:html accent card / CTA) */
.jb-btnlink {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wp--preset--color--azure); color: #fff !important;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem;
  padding: .8rem 1.6rem; border-radius: 999px; text-decoration: none;
  box-shadow: 0 6px 16px rgba(46,130,214,.26); transition: background .15s ease, transform .15s ease;
  align-self: flex-start;
}
.jb-btnlink:hover { background: #256FBF; transform: translateY(-1px); color: #fff !important; }

.jb-cloud svg { display: block; margin: 0 auto .4rem; }

/* ---------- Contact form ---------- */
.jb-two--start { align-items: start; }
.jb-form { display: grid; gap: 1rem; }
.jb-form label { display: grid; gap: .38rem; }
.jb-form .lbl { font-weight: 600; color: var(--wp--preset--color--ink); font-size: .9rem; }
.jb-form .lbl b { color: var(--wp--preset--color--azure); font-weight: 700; }
.jb-form input,
.jb-form select,
.jb-form textarea {
  font: inherit; font-weight: 400;
  padding: .7rem .8rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 10px;
  background: #fff;
  color: var(--wp--preset--color--ink);
}
.jb-form input:focus,
.jb-form select:focus,
.jb-form textarea:focus { outline: 2px solid var(--wp--preset--color--azure); outline-offset: 1px; border-color: var(--wp--preset--color--azure); }
.jb-form textarea { min-height: 132px; resize: vertical; }
.jb-form .jb-btnlink { border: 0; cursor: pointer; margin-top: .3rem; justify-self: start; }
.jb-aside-note { margin-top: 1.3rem; }

/* ---------- Events list (design preview of upcoming sessions) ---------- */
.jb-events { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.jb-event {
  display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 14px; padding: 1.3rem 1.5rem;
  box-shadow: var(--jb-shadow-sm);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.jb-event:hover { box-shadow: var(--jb-shadow-md); border-color: var(--wp--preset--color--azure-bright); transform: translateY(-2px); }
.jb-event .date { text-align: center; background: var(--wp--preset--color--azure-soft); border-radius: 12px; padding: .6rem .5rem; min-width: 78px; }
.jb-event .date .mo { color: var(--wp--preset--color--azure); font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; }
.jb-event .date .d { color: var(--wp--preset--color--ink); font-weight: 800; font-size: 1.55rem; line-height: 1.05; }
.jb-event h3 { margin: 0 0 .2rem; }
.jb-event .time { color: var(--wp--preset--color--muted); font-size: .9rem; }
.jb-event .venue { color: var(--wp--preset--color--azure); font-weight: 600; font-size: .9rem; }
.jb-event p { margin: .5rem 0 0; color: var(--wp--preset--color--body); font-size: .96rem; }
.jb-event .free { display: inline-block; margin-top: .7rem; background: var(--wp--preset--color--azure-soft); color: var(--wp--preset--color--azure); font-weight: 700; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: .22rem .62rem; border-radius: 999px; }
.jb-note { margin-top: 1.6rem; font-size: .92rem; color: var(--wp--preset--color--muted); }

/* ============================================================
   Native Events (no plugin) — ported from the K3 kcd- theme and
   recolored to the Azure Daylight palette (navy/blue/red → navy/azure).
   Class names kept identical to the ported shortcode markup.
   Used by: [jb_events_section] (Upcoming band), [jb_events_calendar]
   (month grid), [jb_event_meta] (single-event line + Google Maps link).
   ============================================================ */

/* ---------- Section shell (used by [jb_events_section]) ---------- */
.band { padding-block: 4.5rem; }
.cloud-band { background: var(--wp--preset--color--ground); }
.wrap { max-width: 1140px; margin-inline: auto; padding-inline: 28px; }
.eyebrow {
  color: var(--wp--preset--color--azure);
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  font-size: .75rem; margin-bottom: .7rem;
}
.big { font-size: clamp(1.75rem, 3.4vw, 2.5rem); text-wrap: balance; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

/* ---------- Upcoming event cards ---------- */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 38px; }
.event {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--jb-shadow-sm); transition: transform .16s ease, box-shadow .16s ease;
}
.event:hover { transform: translateY(-4px); box-shadow: var(--jb-shadow-md); }
.event .thumb { height: 90px; position: relative; background: linear-gradient(135deg, var(--wp--preset--color--navy-2), var(--wp--preset--color--navy)); }
.event .cal {
  position: absolute; top: 14px; left: 14px; background: var(--wp--preset--color--surface);
  border-radius: 10px; overflow: hidden; width: 52px; text-align: center;
  box-shadow: 0 4px 12px rgba(21,55,95,.2); z-index: 2;
}
.event .cal b { display: block; background: var(--wp--preset--color--azure); color: #fff; font-size: .62rem; letter-spacing: .1em; padding: 3px 0; }
.event .cal i { display: block; font-style: normal; font-weight: 700; color: var(--wp--preset--color--navy); font-size: 1.3rem; padding: 2px 0; }
.event .body { padding: 22px 24px 26px; }
.event .time { color: var(--wp--preset--color--azure); font-weight: 700; font-size: .84rem; letter-spacing: .02em; }
.event h3 { font-size: 1.24rem; margin: .35em 0 .25em; line-height: 1.2; }
.event h3 a { color: inherit; text-decoration: none; }
.event h3 a:hover { color: var(--wp--preset--color--azure); text-decoration: none; }
.event p { margin: 0; }
.event .event-loc { color: var(--wp--preset--color--ink); font-weight: 600; font-size: 1rem; }
.event .event-addr { color: var(--wp--preset--color--muted); font-size: .88rem; margin-top: .25rem; }
.thumb.has-img { background-size: cover; background-position: center; }
.events-empty { color: var(--wp--preset--color--muted); grid-column: 1/-1; margin: 0; }

/* ---------- Month calendar ([jb_events_calendar]) ---------- */
.cal-wrap { max-width: 1140px; margin: 0 auto; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 6px; }
.cal-title { margin: 0; flex: 1; text-align: center; color: var(--wp--preset--color--navy); font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.cal-today-link { text-align: center; margin: 0 0 16px; font-size: .9rem; }
.cal-scroll { overflow-x: auto; border-radius: 14px; border: 1px solid var(--wp--preset--color--border); }
.cal-month { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 720px; background: var(--wp--preset--color--surface); }
.cal-month th {
  background: var(--wp--preset--color--navy); color: #fff; font-weight: 700; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; padding: 11px 8px; text-align: center;
}
.cal-month th .wd-full { display: inline; }
.cal-month th span[aria-hidden] { display: none; }
.cal-month td { border: 1px solid var(--wp--preset--color--border); vertical-align: top; height: 108px; width: 14.28%; padding: 7px; background: var(--wp--preset--color--surface); }
.cal-month td.empty { background: var(--wp--preset--color--ground); }
.cal-month td .dnum {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px;
  font-weight: 700; font-size: .85rem; color: var(--wp--preset--color--muted); margin-bottom: 5px;
}
.cal-month td.today .dnum { background: var(--wp--preset--color--azure); color: #fff; border-radius: 50%; }
.cal-month td.today { box-shadow: inset 0 0 0 2px var(--wp--preset--color--azure); }
.cal-ev {
  display: block; font-weight: 600; font-size: .72rem; line-height: 1.3;
  background: var(--wp--preset--color--azure); color: #fff; border-radius: 7px; padding: 4px 7px;
  margin-top: 5px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-ev:hover { background: var(--wp--preset--color--navy); color: #fff; text-decoration: none; }
.cal-ev b { font-weight: 700; opacity: .85; }

/* ---------- Single-event meta line + Google Maps link ([jb_event_meta]) ---------- */
.event-meta-line { color: var(--wp--preset--color--azure); font-weight: 700; font-size: .95rem; letter-spacing: .01em; margin: .2rem 0 0; }
.event-map { margin: .5rem 0 0; }
.event-map-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .9rem; color: var(--wp--preset--color--azure); text-decoration: none; }
.event-map-link:hover { text-decoration: underline; }
.event-map-link svg { width: 16px; height: 16px; flex: 0 0 16px; }

/* ---------- Buttons used by the events shortcodes (calendar nav + "See all") ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: .95rem;
  padding: .82rem 1.7rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  letter-spacing: .01em; transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 8px 20px rgba(21,55,95,.22); }
.btn-navy { background: var(--wp--preset--color--navy); color: #fff; }
.btn-navy:hover { color: #fff; }
.btn-ghost { background: transparent; color: var(--wp--preset--color--azure); border-color: var(--wp--preset--color--border); }
.btn-ghost:hover { color: var(--wp--preset--color--azure); border-color: var(--wp--preset--color--azure); }
.btn-sm { padding: .55rem 1.3rem; font-size: .9rem; }

@media (max-width: 720px) {
  .events { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cal-month th .wd-full { display: none; }
  .cal-month th span[aria-hidden] { display: inline; }
  .cal-month td { height: 76px; font-size: .9rem; }
}

/* ---------- Utility ---------- */
.jb-muted { color: var(--wp--preset--color--muted); }
.jb-lead { font-size: 1.18rem; color: var(--wp--preset--color--body); }

@media (prefers-reduced-motion: reduce) {
  .wp-block-button__link, .jb-card { transition: none; }
}
