/*
Theme Name: Edutainer Lead Child
Theme URI: https://edutainer.ro/
Description: Child theme pentru Edutainer Lead Theme, cu conținut editorial și setări administrabile prin Secure Custom Fields.
Author: Asociația AdLittera
Template: edutainer-lead-theme
Version: 1.4.0
Text Domain: edutainer-lead-child
*/

/* Stilurile principale sunt încărcate din tema părinte. */

/* Zonele SCF editabile păstrează sistemul vizual al temei părinte. */
.edutainer-editable-content > *:first-child { margin-top: 0; }
.edutainer-editable-content > *:last-child { margin-bottom: 0; }
.edutainer-section-hidden { display: none !important; }

/* Typography refinement 1.0.1: preserve the parent scale while improving hierarchy. */
h1 { font-size: clamp(calc(3rem - 2px), calc(6vw - 2px), calc(5.75rem - 2px)); }
h2 { font-size: clamp(calc(2.25rem - 2px), calc(4vw - 2px), calc(3.9rem - 2px)); }

/* No visible microcopy should render below 12px. */
small,
.eyebrow,
.benefit-number,
.module-tag,
.plan-label,
.popular-tag,
.price small,
.calculator-result span,
.final-action small,
.art-card small,
.choice em,
.connect-steps small,
.field small,
.form-consent label,
.form-submit p,
.footer-legal p,
.delivery-label small,
.check-group small,
.checklist-help,
.safety-note,
.testimonial-card footer span { font-size: 12px !important; }

/* Footer headings return to the compact parent-theme proportion. */
.site-footer .footer-grid h2,
.site-footer--legal .footer-grid h2 { font-size: 12px !important; line-height: 1.2; letter-spacing: .03em; }


/* 1.0.2: prevent long module titles from overwhelming the two-column layout. */
.module-detail-heading { min-width: 0; }
.module-detail-heading > div { min-width: 0; }
.module-detail-heading h2 { font-size: clamp(1.85rem, 3vw, 2.55rem) !important; line-height: 1.02; overflow-wrap: anywhere; }
.module-detail-heading p { font-size: 12px !important; line-height: 1.35; }

/* Forms: preserve hierarchy while keeping labels, help text, and notices readable. */
.form-panel-heading h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem) !important; }
.form-panel-heading p,
.intent-intro,
.intent-intro p,
.form-section h3,
.check-group legend,
.checklist-section legend,
.field label,
.field input,
.field select,
.field textarea,
.form-notice,
.checklist-help,
.safety-note,
.form-consent label,
.form-submit p { font-size: 14px !important; }
.field small,
.check-group small,
.checklist-help,
.safety-note { font-size: 14px !important; }

@media (max-width: 960px) {
  .module-detail { grid-template-columns: 1fr; gap: 28px; }
  .module-detail-heading h2 { font-size: clamp(1.8rem, 6vw, 2.5rem) !important; }
}


/* 1.1.1: readability for Program modular delivery cards. */
.modules-detail-section .module-delivery-grid > section > ul li { font-size: calc(1em + 2px); }
.modules-detail-section .module-delivery-grid .delivery-label strong { font-size: calc(1em + 2px); }
.modules-detail-section .module-delivery-grid .delivery-label small { font-size: calc(12px + 2px) !important; }


/* 1.2.0: Testimonials are rendered as a balanced three-column grid. */
.testimonials-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.testimonials-grid--three .testimonial-card { min-width: 0; }
.testimonials-grid--three .testimonial-card blockquote p { font-size: 15px; line-height: 1.55; }
@media (max-width: 900px) {
  .testimonials-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .testimonials-grid--three { grid-template-columns: 1fr; }
}


/* 1.4.0: Agenda editorial layout inspired by the approved reference. */
.agenda-sections-section { padding-top: 52px; }
.agenda-section { padding: 0 0 72px; }
.agenda-section + .agenda-section { padding-top: 72px; border-top: 1px solid var(--line); }
.agenda-section-heading { display: grid; grid-template-columns: minmax(0, .85fr) minmax(260px, .65fr); align-items: end; gap: 58px; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.agenda-section-heading .eyebrow { margin-bottom: 14px; }
.agenda-section-heading h2 { max-width: 620px; margin-bottom: 0; }
.agenda-section-heading > p { max-width: 430px; margin: 0 0 4px; color: var(--ink-soft); font-size: 16px; }
.agenda-list { display: grid; }
.agenda-event { display: grid; grid-template-columns: minmax(190px, 24%) minmax(0, 1fr); gap: 52px; padding: 28px 0 34px; border-bottom: 1px solid var(--line); }
.agenda-event-meta { align-self: start; min-width: 0; padding: 17px 20px 18px; border: 1px solid rgba(174, 36, 34, .55); border-radius: 12px; background: rgba(255, 253, 248, .45); }
.agenda-event-module { margin: 0 0 10px; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.3; }
.agenda-event-date, .agenda-event-duration { display: flex; gap: 5px; align-items: baseline; flex-wrap: wrap; color: var(--ink-soft); font-size: 13px; line-height: 1.4; }
.agenda-event-date span, .agenda-event-duration span { color: var(--ink-soft); }
.agenda-event-date strong, .agenda-event-duration strong { color: var(--ink); font-weight: 800; }
.agenda-event-duration { margin-top: 5px; }
.agenda-event-content { min-width: 0; padding: 0 0 2px; }
.agenda-event-content h3 { margin: 0 0 17px; font-size: clamp(1.3rem, 2.3vw, 1.8rem); line-height: 1.18; }
.agenda-event-description { max-width: 760px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.agenda-event-description p { margin: 0 0 10px; }
.agenda-event-description p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .agenda-sections-section { padding-top: 35px; }
  .agenda-section { padding-bottom: 48px; }
  .agenda-section + .agenda-section { padding-top: 48px; }
  .agenda-section-heading { grid-template-columns: 1fr; gap: 16px; padding-bottom: 22px; }
  .agenda-section-heading > p { font-size: 15px; }
  .agenda-event { grid-template-columns: 1fr; gap: 18px; padding: 22px 0 27px; }
  .agenda-event-meta { max-width: 310px; }
  .agenda-event-content h3 { margin-bottom: 12px; }
  .agenda-event-description { font-size: 14px; }
}
