/* store-academy.css — "Академия" (Martines Coffee Academy) page.
 * Loaded only for the 'academy' info page (see index.php's
 * store_handle_info_page()), alongside store-home-fonts.css +
 * store-home.css for the shared coffee/martines color tokens and the
 * already-built .store-home-shell/-eyebrow/-section-heading/-divider/
 * .store-btn-primary/-outline classes this page reuses rather than
 * redefining. No new colors, no new fonts -- only this page's own layout
 * lives here, built the same compact/editorial way as store-about.css.
 */

.store-academy { color: var(--martines-text); background: var(--martines-bg); overflow-x: clip; }
/* Same global .store-footer margin-top:2rem fix as the About page --
   that margin sits outside this page's own box, over the raw white
   <body>, otherwise reading as an unwanted white gap before the footer. */
.store-academy + .store-footer { margin-top: 0; }
.store-academy h2 { margin: 0 0 8px; color: var(--martines-green); font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.2; }
.store-academy p { margin: 0; color: var(--martines-muted); font-size: 13px; line-height: 1.6; }

/* 2026-10-06: the green primary-CTA variant (martines.coffee's own
   reference screenshot) is gone -- per explicit instruction ("разгледайте
   курсовете не може да е в зелено, трябва да е като на другите херота").
   .store-academy-green is no longer referenced in the PHP (kept defined
   nowhere so a stray class on either CTA button is a harmless no-op);
   both CTAs now fall through to .store-btn-primary's own default caramel,
   same as every other hero's primary button site-wide. */

/* ---- Hero ----
   Same fluid technique as .store-home-hero/.store-about-hero: capped text
   column (real flow, max-width so it never balloons on a wide monitor)
   + an absolutely-positioned, uncapped image column (right:0, keeps
   growing with the viewport) + a multi-layer cream "mist" fade between
   them. Not wrapped in .store-home-shell on purpose, same reason as the
   About hero. */
.store-academy-hero { position: relative; overflow: hidden; min-height: 520px; background: linear-gradient(180deg, #fafaf8 0%, #fafaf8 88%, var(--martines-bg) 100%); }
.store-academy-hero-inner {
  position: relative; min-height: 520px; display: flex;
  padding-left: max(24px, calc((100vw - 1280px) / 2));
}
/* 2026-10-06: same whole-hero dark-brown wash as the homepage/About
   heroes (.store-home-hero-inner::after/.store-about-hero-inner::after)
   -- --coffee-roasted at .14 opacity, multiply -- per explicit
   instruction to match. z-index:1 sits above the media's own stacking
   and below the copy column's z-index:2 (already set below), same
   layering as the other two heroes. */
.store-academy-hero-inner::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--coffee-roasted); opacity: .14; mix-blend-mode: multiply;
}
.store-academy-hero-copy {
  position: relative; z-index: 2; width: 46%; max-width: 500px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 32px 24px 32px 0;
}
.store-academy-hero-brand { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--martines-green); }
.store-academy-hero-badge { margin: 2px 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coffee-caramel); }
.store-academy-hero-title { margin: 0 0 10px; font-family: var(--font-display); color: var(--martines-text); font-weight: 600; line-height: 1.22; }
.store-academy-hero-title span { display: block; font-size: 26px; }
.store-academy-lead { margin: 0 0 14px; font-size: 13.5px; color: var(--martines-muted); max-width: 46ch; }
.store-academy-hero-actions { display: flex; gap: 10px; margin-top: 4px; }
.store-academy-hero-actions .btn { align-self: flex-start; }
.store-academy-hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: calc(32% - 40px); overflow: hidden; }
.store-academy-hero-media picture { display: block; width: 100%; height: 100%; }
.store-academy-hero-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
/* Cream-to-transparent mist fade, same recipe as the About hero's own
   (3 offset radial blobs + a linear base), recolored to match this
   page's own #fafaf8 hero fill. */
/* 2026-10-06: ellipse/linear reach widened (24/20/15% & 28% ->
   46/40/30% & 56%, matching .store-home-hero-media::before's own
   proportions exactly) -- per direct feedback the fade was there but
   too narrow/weak to actually read as the same "mist" effect the home/
   About heroes have. */
.store-academy-hero-media::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 62% at 8% 28%, #fafaf8 0%, rgba(250,250,248,.96) 24%, rgba(250,250,248,.68) 44%, rgba(250,250,248,.18) 64%, rgba(250,250,248,0) 78%),
    radial-gradient(ellipse 40% 72% at 16% 78%, rgba(250,250,248,.94) 0%, rgba(250,250,248,.70) 30%, rgba(250,250,248,.24) 55%, rgba(250,250,248,0) 74%),
    radial-gradient(ellipse 30% 48% at 27% 42%, rgba(250,250,248,.44) 0%, rgba(250,250,248,.20) 42%, rgba(250,250,248,0) 68%),
    linear-gradient(90deg, #fafaf8 0%, rgba(250,250,248,.98) 12%, rgba(250,250,248,.82) 24%, rgba(250,250,248,.50) 36%, rgba(250,250,248,.16) 46%, rgba(250,250,248,0) 56%);
}
/* ---- 4 benefits, one row, thin separators (same pattern as
   .store-about-values-row) ---- */
.store-academy-benefits { padding-top: 32px; padding-bottom: 32px; background: var(--martines-bg-alt); }
.store-academy-benefits-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.store-academy-benefit { padding: 0 18px; border-left: 1px solid var(--martines-border); }
.store-academy-benefit:first-child { border-left: none; padding-left: 0; }
.store-academy-benefit-icon { display: block; color: var(--coffee-plantation); margin-bottom: 8px; }
.store-academy-benefit-title { font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--martines-text); margin-bottom: 4px; }
.store-academy-benefit-desc { font-size: 11.5px; color: var(--martines-muted); line-height: 1.4; }

/* ---- 3 direction cards ---- */
.store-academy-directions { padding-top: 75px; padding-bottom: 32px; }
.store-academy-directions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.store-academy-direction-card { display: flex; flex-direction: column; border: 1px solid #d9d9d9; }
.store-academy-direction-img { width: 100%; height: 190px; overflow: hidden; }
.store-academy-direction-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-academy-direction-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -22px 20px 0; border-radius: 50%; background: var(--martines-bg); border: 1px solid var(--martines-border); color: var(--coffee-plantation); position: relative; z-index: 1; }
.store-academy-direction-en { margin: 14px 20px 0; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--martines-text); }
.store-academy-direction-bg { margin: 2px 20px 0; font-size: 12px; color: var(--martines-muted); }
.store-academy-direction-desc { margin: 10px 20px 0; font-size: 12.5px; color: var(--martines-muted); line-height: 1.55; }
.store-academy-direction-cta { margin: 14px 20px 20px; align-self: flex-start; }

/* ---- Recommended courses: 3 columns x 2 rows, compact horizontal cards ---- */
.store-academy-courses { padding-top: 75px; padding-bottom: 32px; background: var(--martines-bg-alt); }
.store-academy-courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.store-academy-course-card {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px;
  border: 1px solid #d9d9d9; background: var(--color-surface, #fff);
  padding: 12px; text-decoration: none; color: inherit;
}
.store-academy-course-img { width: 110px; height: 110px; overflow: hidden; border-radius: var(--radius-sm, 6px); }
.store-academy-course-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-academy-course-body { display: flex; flex-direction: column; min-width: 0; }
.store-academy-course-category { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--coffee-caramel); }
.store-academy-course-name { margin: 3px 0 0; font-family: var(--font-display); font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--martines-text); }
.store-academy-course-desc { margin: 4px 0 0; font-size: 11px; line-height: 1.4; color: var(--martines-muted); display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.store-academy-course-footer { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.store-academy-course-duration { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--martines-muted); }
.store-academy-course-price { margin-left: auto; font-weight: 700; font-size: 13px; color: var(--martines-green); }
.store-academy-course-cta { margin-top: 8px; height: 26px; padding-inline: 10px; font-size: 9px; align-self: flex-start; }

/* 2026-10-06: .store-academy h2's own blanket 19px (matching the rest
   of the page) read as too small for this block's own heading weight in
   the reference -- scoped bump for just these two headings, not a
   change to the shared rule (course/direction headings etc. keep 19px).
   Same fix for the eyebrow: .store-academy p's own blanket rule
   (specificity 0,1,1) was silently beating .store-home-eyebrow's own
   color (0,1,0) -- the exact "class+element beats class-alone" bug
   store-home.css's own comments already warn about -- so every eyebrow
   on this page was rendering muted gray instead of the intended bronze/
   orange. Re-asserted here at matching specificity. */
.store-academy .store-home-eyebrow { color: var(--martines-orange); }
.store-academy-process h2, .store-academy-signup h2, .store-academy-trust-copy h2 { font-size: 25px; }

/* ---- Training process (left) + signup steps (right), two columns ----
   2026-10-06: padding-bottom trimmed 32px -> 24px and the trust
   section's own padding-top cut 75px -> 40px (both per explicit
   instruction -- the two blocks read as one paired "information block"
   in the reference, not two sections separated by the site's normal
   75px rhythm; that rhythm stays everywhere else on the page/site,
   just not between these two specific blocks). */
.store-academy-process-signup { padding-top: 75px; padding-bottom: 24px; }
/* Vertical divider between the two halves, centered in the grid's own
   48px gap -- present in the reference, was missing entirely. */
.store-academy-process-signup-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.store-academy-process-signup-grid::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--martines-border); }

/* 2026-10-06: step width 128px -> 170px and the connector arrow changed
   from a small fixed-size icon to a flex:1 line (own wide 120x24 viewBox
   SVG, store_academy_page.php) that fills the real remaining space
   between circles -- per explicit instruction, the reference's timeline
   uses almost the full column width, not 3 small clusters pinned to the
   left with a tiny chevron between them. Circle 30px -> 40px to read as
   the dominant element the line connects, per the same instruction. */
/* 2026-10-06 (2nd pass): step width 170px -> 140px -- at 170px, 3 steps
   already consumed 510 of the column's ~566px, leaving only ~28px per
   connector (measured live) -- nowhere near a visible "long line"
   timeline. 140px leaves ~73px per connector, a real, clearly visible
   line matching the reference. */
.store-academy-process-steps { display: flex; align-items: flex-start; gap: 0; margin-top: 22px; }
.store-academy-process-step { flex: 0 0 auto; width: 140px; text-align: left; }
.store-academy-process-num { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--coffee-plantation); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.store-academy-process-step-title { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--martines-text); }
.store-academy-process-step-sub { font-size: 11.5px; color: var(--coffee-caramel); font-weight: 600; margin-top: 1px; }
.store-academy-process-step-desc { margin-top: 4px; font-size: 11.5px; line-height: 1.45; color: var(--martines-muted); max-width: 42ch; }
.store-academy-process-arrow { flex: 1 1 auto; min-width: 24px; color: var(--martines-border); margin-top: 19px; align-self: flex-start; }
.store-academy-process-arrow svg { display: block; width: 100%; height: 16px; }

/* 2026-10-06: signup-step width 130px -> 150px, justify-content:
   space-between (was a tight 4px gap) so the 4 columns spread across
   the full available column width, per explicit instruction. Icon
   circle 68px -> 84px -- the reference makes these large circles the
   dominant visual element of this half, bigger again than the previous
   pass's 68px. */
.store-academy-signup-steps { display: flex; align-items: flex-start; justify-content: space-between; margin-top: 22px; }
.store-academy-signup-step { flex: 0 0 auto; width: 150px; text-align: left; }
.store-academy-signup-icon { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: var(--martines-bg-alt); border: 1px solid var(--martines-border); color: var(--coffee-plantation); margin-bottom: 12px; }
.store-academy-signup-step-title { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--martines-text); }
.store-academy-signup-step-desc { margin-top: 4px; font-size: 11px; line-height: 1.45; color: var(--martines-muted); }
.store-academy-signup-arrow { flex: 0 0 auto; color: var(--coffee-plantation); margin-top: 36px; }

/* ---- Trust/testimonial ----
   2026-10-06: column split 34/66 -> 32/68 (tuned once more against the
   reference's own measured proportions), padding-top cut 75px -> 40px
   (see the process-signup comment above -- these two blocks read as one
   paired information section, not two independently-rhythmed ones).
   Section background reverted from var(--martines-bg-alt) to the page's
   own var(--martines-bg) -- the reference shows only a hairline
   separation from the block above it, not a visibly different section
   background tint. */
.store-academy-trust { padding-top: 40px; padding-bottom: 32px; background: var(--martines-bg); border-top: 1px solid var(--martines-border); }
.store-academy-trust-grid { display: grid; grid-template-columns: minmax(0, 32%) minmax(0, 1fr); gap: 32px; align-items: center; }
.store-academy-trust-copy h2 { max-width: 18ch; }
.store-academy-trust-cta { margin-top: 14px; align-self: flex-start; }
/* 2026-10-06: dark --coffee-plantation card background removed -- the
   reference's testimonial block is light/cream, not a dark green card,
   per explicit instruction ("махни тъмнозеления фон"). Now a light
   surface with a fine border, same treatment as other bordered cards on
   this page (.store-academy-catalog-card etc.), and shortened
   (min-height 260px -> 180px) to read as "wide and relatively low" like
   the reference instead of tall/heavy. */
.store-academy-testimonial { position: relative; overflow: hidden; border-radius: var(--radius-sm, 8px); border: 1px solid var(--martines-border); background: var(--color-surface, #fff); color: var(--martines-text); padding: 26px 28px; min-height: 180px; display: flex; flex-direction: column; justify-content: center; }
.store-academy-testimonial-quote-mark { position: absolute; top: 10px; left: 22px; font-family: Georgia, serif; font-size: 56px; line-height: 1; color: var(--coffee-caramel); opacity: .55; }
.store-academy-testimonial-quote { position: relative; z-index: 1; max-width: 50%; font-size: 13.5px; line-height: 1.55; color: var(--martines-text); margin: 10px 0 10px; }
.store-academy-testimonial-source { position: relative; z-index: 1; max-width: 50%; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--martines-muted); }
.store-academy-testimonial-media { position: absolute; top: 0; right: 0; bottom: 0; width: 44%; }
.store-academy-testimonial-media picture { display: block; width: 100%; height: 100%; }
/* object-position tuned for the real source photo (1024x683, subject's
   face/apron sits upper-left-of-center in the original frame). */
.store-academy-testimonial-img { width: 100%; height: 100%; object-fit: cover; object-position: 32% 22%; display: block; }
/* Soft fade from the card's own light surface into the photo instead of
   a hard vertical seam -- per explicit instruction ("TEXT -> светло
   преливане -> IMAGE"), same left-edge-fade technique used by every
   other hero/media panel on this site, just inverted (fading INTO the
   image here, not out of it). */
.store-academy-testimonial-media::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--color-surface, #fff) 0%, rgba(255,255,255,.85) 12%, rgba(255,255,255,.45) 28%, rgba(255,255,255,0) 50%);
}

/* ---- Fluid wide-desktop widening, same breakpoint/cap as the homepage's
   and About page's own identical rule. ---- */
@media (min-width: 1600px) {
  .store-academy .store-home-shell { width: min(100% - 16px, 1680px); }
  .store-academy-hero-inner { padding-left: max(24px, calc((100vw - 1680px) / 2)); }
  .store-academy-hero-title span { font-size: 29px; }
  .store-academy-lead { font-size: 14.5px; }
}

/* ---- Tablet ---- */
@media (max-width: 899.98px) {
  .store-academy-hero { min-height: 0; }
  .store-academy-hero-inner { position: static; display: block; min-height: 0; padding-left: 0; }
  .store-academy-hero-copy { position: static; width: auto; max-width: none; padding: 28px 20px 20px; }
  .store-academy-hero-media { position: static; width: auto; height: 260px; }
  .store-academy-hero-media::before { background: none; }
  .store-academy-benefits-row { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .store-academy-benefit { border-left: none; padding: 0; }
  .store-academy-directions-grid { grid-template-columns: 1fr; }
  .store-academy-courses-grid { grid-template-columns: repeat(2, 1fr); }
  .store-academy-process-signup-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Mobile ---- */
@media (max-width: 575.98px) {
  .store-academy section { padding: 28px 0; }
  .store-academy-hero-title span { font-size: 21px; }
  .store-academy-hero-actions { flex-wrap: wrap; }
  .store-academy-courses-grid { grid-template-columns: 1fr; }
  .store-academy-course-card { grid-template-columns: 90px 1fr; }
  .store-academy-process-steps, .store-academy-signup-steps { flex-direction: column; }
  .store-academy-process-arrow, .store-academy-signup-arrow { display: none; }
  .store-academy-process-step, .store-academy-signup-step { width: auto; }
  .store-academy-trust-grid { grid-template-columns: 1fr; }
  .store-academy-testimonial-media { position: static; width: 100%; height: 180px; margin-top: 16px; }
  .store-academy-testimonial-quote, .store-academy-testimonial-source { max-width: none; }
}
