/* ==========================================================================
   EMOTIONSPÄDAGOGIK INSTITUT — BRAND STYLESHEET
   
   This file contains ALL brand-specific CSS for the Elementor build.
   It works with Elementor Free by targeting Elementor's generated classes
   and custom CSS classes you assign to sections/widgets.
   
   HOW TO USE WITH ELEMENTOR:
   - Add CSS classes to sections/widgets via Advanced → CSS Classes
   - This stylesheet targets those classes + Elementor defaults
   - No Elementor Pro "Custom CSS" field needed
   ========================================================================== */


/* ==========================================================================
   1. CSS VARIABLES (BRAND TOKENS)
   ========================================================================== */

:root {
  /* Colors */
  --ep-coral: #FF8A65;
  --ep-pink: #E83E8C;
  --ep-purple: #A86BBE;
  --ep-cream: #F7F3EE;
  --ep-white: #FFFFFF;
  --ep-text: #3A3A3A;
  --ep-text-muted: #6B6B6B;
  --ep-border: #E6E0DA;

  /* Typography */
  --ep-font-heading: 'Libre Baskerville', Georgia, serif;
  --ep-font-body: 'Source Sans 3', -apple-system, sans-serif;

  /* Spacing */
  --ep-section-padding: 100px;
  --ep-section-padding-large: 130px;
  --ep-section-padding-mobile: 64px;
  --ep-container-max: 1100px;
  --ep-card-radius: 8px;
  --ep-button-radius: 24px;

  /* Effects */
  --ep-shadow-soft: 0 1px 2px rgba(58, 58, 58, 0.02);
  --ep-gradient-warm: linear-gradient(135deg, #FF8A65 0%, #E83E8C 100%);
  --ep-gradient-authority: linear-gradient(135deg, #A86BBE 0%, #8B5CA0 100%);
  --ep-transition: 0.25s ease;
}


/* ==========================================================================
   2. BASE & BODY OVERRIDES
   ========================================================================== */

body.ep-brand {
  font-family: var(--ep-font-body);
  color: var(--ep-text-muted);
  background-color: var(--ep-cream);
  font-size: 0.92rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.ep-brand a {
  color: var(--ep-pink);
  text-decoration: none;
  transition: all var(--ep-transition);
}

body.ep-brand a:hover {
  color: #d1357d;
}


/* ==========================================================================
   3. TYPOGRAPHY — ELEMENTOR OVERRIDES
   
   Elementor generates headings inside .elementor-heading-title
   These rules ensure brand fonts override Elementor defaults.
   ========================================================================== */

body.ep-brand h1,
body.ep-brand h2,
body.ep-brand h3,
body.ep-brand h4,
body.ep-brand .elementor-heading-title {
  font-family: var(--ep-font-heading);
  color: var(--ep-text);
  font-weight: 400;
  line-height: 1.3;
}

body.ep-brand h1,
body.ep-brand h1.elementor-heading-title {
  font-size: 3.35rem;
  line-height: 1.15;
}

body.ep-brand h2,
body.ep-brand h2.elementor-heading-title {
  font-size: 2.45rem;
  margin-bottom: 52px;
}

body.ep-brand h3,
body.ep-brand h3.elementor-heading-title {
  font-size: 1.4rem;
}

body.ep-brand h4,
body.ep-brand h4.elementor-heading-title {
  font-size: 1.2rem;
}

body.ep-brand .elementor-widget-text-editor {
  font-family: var(--ep-font-body);
  color: var(--ep-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Section label — the small uppercase pink label above headings */
/* Add class "ep-section-label" to a Heading widget set to <span> or <p> */
body.ep-brand .ep-section-label,
body.ep-brand .ep-section-label .elementor-heading-title {
  font-family: var(--ep-font-body) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--ep-pink) !important;
  margin-bottom: 18px !important;
}

/* White section label (on colored backgrounds) */
body.ep-brand .ep-section-label-white,
body.ep-brand .ep-section-label-white .elementor-heading-title {
  font-family: var(--ep-font-body) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-bottom: 18px !important;
}

/* Muted body text helper */
body.ep-brand .ep-text-muted,
body.ep-brand .ep-text-muted .elementor-heading-title {
  color: var(--ep-text-muted) !important;
}


/* ==========================================================================
   4. BUTTONS
   
   Apply these classes to Elementor Button widgets via Advanced → CSS Classes
   ========================================================================== */

/* Primary pink button — class: ep-btn-primary */
body.ep-brand .ep-btn-primary .elementor-button {
  background-color: var(--ep-pink) !important;
  color: #FFFFFF !important;
  border-radius: var(--ep-button-radius) !important;
  padding: 14px 28px !important;
  font-family: var(--ep-font-body) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

body.ep-brand .ep-btn-primary .elementor-button:hover {
  background-color: #d1357d !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Large primary — class: ep-btn-primary-lg */
body.ep-brand .ep-btn-primary-lg .elementor-button {
  background-color: var(--ep-pink) !important;
  color: #FFFFFF !important;
  border-radius: var(--ep-button-radius) !important;
  padding: 14px 28px !important;
  font-family: var(--ep-font-body) !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

body.ep-brand .ep-btn-primary-lg .elementor-button:hover {
  background-color: #d1357d !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Secondary outline button — class: ep-btn-secondary */
body.ep-brand .ep-btn-secondary .elementor-button {
  background-color: transparent !important;
  color: var(--ep-pink) !important;
  border: 1.5px solid rgba(232, 62, 140, 0.45) !important;
  border-radius: var(--ep-button-radius) !important;
  padding: 14px 28px !important;
  font-family: var(--ep-font-body) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

body.ep-brand .ep-btn-secondary .elementor-button:hover {
  border-color: var(--ep-pink) !important;
  transform: translateY(-2px);
}

/* White button (on colored backgrounds) — class: ep-btn-white */
body.ep-brand .ep-btn-white .elementor-button {
  background-color: #FFFFFF !important;
  color: var(--ep-pink) !important;
  border-radius: var(--ep-button-radius) !important;
  padding: 18px 40px !important;
  font-family: var(--ep-font-body) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

body.ep-brand .ep-btn-white .elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Small button — add "ep-btn-sm" alongside primary/secondary */
body.ep-brand .ep-btn-sm .elementor-button {
  padding: 10px 22px !important;
  font-size: 0.88rem !important;
}


/* ==========================================================================
   5. CARDS
   
   Apply class "ep-card" to an Elementor container/column
   ========================================================================== */

body.ep-brand .ep-card {
  background: var(--ep-white);
  border-radius: var(--ep-card-radius);
  padding: 32px;
  box-shadow: var(--ep-shadow-soft);
  border: 1px solid rgba(230, 224, 218, 0.6);
  transition: all 0.3s ease;
}

body.ep-brand .ep-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(58, 58, 58, 0.06);
  border-color: rgba(232, 62, 140, 0.25);
}


/* ==========================================================================
   6. ICON CONTAINERS
   
   Apply class "ep-icon-wrap" to a container holding an icon widget
   ========================================================================== */

body.ep-brand .ep-icon-wrap {
  width: 42px;
  height: 42px;
  background: rgba(232, 62, 140, 0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 20px;
}

body.ep-brand .ep-icon-wrap svg,
body.ep-brand .ep-icon-wrap i {
  width: 19px;
  height: 19px;
  color: var(--ep-pink);
  stroke: var(--ep-pink);
  stroke-width: 1.5;
  fill: none;
}

body.ep-brand .ep-icon-wrap-purple {
  background: rgba(168, 107, 190, 0.08);
}

body.ep-brand .ep-icon-wrap-purple svg,
body.ep-brand .ep-icon-wrap-purple i {
  color: var(--ep-purple);
  stroke: var(--ep-purple);
}

body.ep-brand .ep-icon-wrap-lg {
  width: 52px;
  height: 52px;
}

body.ep-brand .ep-icon-wrap-lg svg {
  width: 22px;
  height: 22px;
}


/* ==========================================================================
   7. SECTION BACKGROUNDS
   
   Apply these classes to Elementor SECTIONS via Advanced → CSS Classes
   ========================================================================== */

/* Cream background (default page background) */
body.ep-brand .ep-bg-cream {
  background-color: var(--ep-cream) !important;
}

/* White background */
body.ep-brand .ep-bg-white {
  background-color: var(--ep-white) !important;
}

/* Warm gradient band (coral) */
body.ep-brand .ep-band-warm {
  background: var(--ep-gradient-warm) !important;
  color: #FFFFFF;
}

body.ep-brand .ep-band-warm h2,
body.ep-brand .ep-band-warm h3,
body.ep-brand .ep-band-warm h4,
body.ep-brand .ep-band-warm .elementor-heading-title {
  color: #FFFFFF !important;
}

body.ep-brand .ep-band-warm p,
body.ep-brand .ep-band-warm .elementor-widget-text-editor {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Authority band (purple) */
body.ep-brand .ep-band-authority {
  background: var(--ep-gradient-authority) !important;
  color: #FFFFFF;
}

body.ep-brand .ep-band-authority h2,
body.ep-brand .ep-band-authority h3,
body.ep-brand .ep-band-authority h4,
body.ep-brand .ep-band-authority .elementor-heading-title {
  color: #FFFFFF !important;
}

body.ep-brand .ep-band-authority p,
body.ep-brand .ep-band-authority .elementor-widget-text-editor {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Coral solid background */
body.ep-brand .ep-bg-coral {
  background-color: var(--ep-coral) !important;
}

/* Section padding standard */
body.ep-brand .ep-section-standard {
  padding-top: var(--ep-section-padding) !important;
  padding-bottom: var(--ep-section-padding) !important;
}

/* Section padding large (authority/important sections) */
body.ep-brand .ep-section-large {
  padding-top: var(--ep-section-padding-large) !important;
  padding-bottom: var(--ep-section-padding-large) !important;
}


/* ==========================================================================
   8. NAVIGATION (for UAE Header Builder)
   
   These styles target the UAE header. Build the header as:
   - Container with nav-logo (left)
   - UAE Nav Menu widget (center/right)
   - Language switcher via shortcode [ep_lang_switch]
   - CTA button (right)
   ========================================================================== */

/* Overall header bar */
body.ep-brand .ep-header {
  background: var(--ep-white) !important;
  border-bottom: 1px solid rgba(230, 224, 218, 0.5);
  height: 72px;
}

/* Nav link styling */
body.ep-brand .ep-header .uae-nav-menu .menu-item > a,
body.ep-brand .ep-header .uae-nav-menu a {
  font-family: var(--ep-font-body) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: var(--ep-text-muted) !important;
  transition: color var(--ep-transition) !important;
}

body.ep-brand .ep-header .uae-nav-menu .menu-item > a:hover,
body.ep-brand .ep-header .uae-nav-menu a:hover {
  color: var(--ep-pink) !important;
}

/* Active nav item */
body.ep-brand .ep-header .uae-nav-menu .current-menu-item > a {
  color: var(--ep-text) !important;
  font-weight: 600 !important;
}

/* Nav CTA button */
body.ep-brand .ep-nav-cta .elementor-button {
  background: var(--ep-pink) !important;
  color: var(--ep-white) !important;
  padding: 10px 22px !important;
  border-radius: var(--ep-button-radius) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  font-family: var(--ep-font-body) !important;
  transition: transform var(--ep-transition), box-shadow var(--ep-transition) !important;
}

body.ep-brand .ep-nav-cta .elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 62, 140, 0.25);
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  background: var(--ep-cream);
  border: 1px solid var(--ep-border);
  border-radius: 20px;
  padding: 2px 3px;
  font-family: var(--ep-font-body);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.lang-switch a {
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 16px;
  transition: all 0.2s;
  font-weight: 500;
}

.lang-switch a.lang-active {
  background: var(--ep-white);
  color: var(--ep-text) !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.lang-switch a.lang-inactive {
  color: var(--ep-text-muted) !important;
  opacity: 0.6;
}

.lang-switch a.lang-inactive:hover {
  opacity: 1;
  color: var(--ep-text) !important;
}


/* ==========================================================================
   9. FOOTER
   
   Build footer with UAE Footer Builder or as a section at page bottom.
   Apply class "ep-footer" to the footer section.
   ========================================================================== */

body.ep-brand .ep-footer {
  background: var(--ep-white) !important;
  border-top: 1px solid var(--ep-border);
  padding: 56px 0 36px !important;
}

body.ep-brand .ep-footer .ep-footer-title {
  font-family: var(--ep-font-body) !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--ep-text-muted) !important;
  margin-bottom: 14px !important;
}

body.ep-brand .ep-footer a {
  display: block;
  font-family: var(--ep-font-body);
  font-size: 0.82rem;
  color: var(--ep-text-muted);
  padding: 4px 0;
  transition: color var(--ep-transition);
}

body.ep-brand .ep-footer a:hover {
  color: var(--ep-pink);
}

body.ep-brand .ep-footer-divider {
  border: none;
  border-top: 1px solid var(--ep-border);
  margin-bottom: 20px;
}

body.ep-brand .ep-footer-badges img {
  height: 25px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

body.ep-brand .ep-footer-badges img:hover {
  filter: grayscale(0%);
  opacity: 0.85;
}

body.ep-brand .ep-footer-copyright {
  font-family: var(--ep-font-body);
  font-size: 0.7rem;
  color: var(--ep-text-muted);
  opacity: 0.6;
  text-align: center;
}


/* ==========================================================================
   10. FAQ / ACCORDION
   
   Elementor Free has a built-in Accordion widget.
   Apply class "ep-faq" to the Accordion widget container.
   ========================================================================== */

body.ep-brand .ep-faq {
  max-width: 700px;
}

body.ep-brand .ep-faq .elementor-accordion {
  border: none !important;
}

body.ep-brand .ep-faq .elementor-accordion-item {
  border-bottom: 1px solid rgba(230, 224, 218, 0.6) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

body.ep-brand .ep-faq .elementor-tab-title {
  font-family: var(--ep-font-body) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  color: var(--ep-text) !important;
  padding: 24px 0 !important;
  background: transparent !important;
}

body.ep-brand .ep-faq .elementor-tab-title .elementor-accordion-icon {
  color: var(--ep-pink) !important;
}

body.ep-brand .ep-faq .elementor-tab-title a {
  color: var(--ep-text) !important;
  text-decoration: none !important;
}

body.ep-brand .ep-faq .elementor-tab-content {
  font-family: var(--ep-font-body) !important;
  font-size: 0.88rem !important;
  line-height: 1.75 !important;
  color: var(--ep-text-muted) !important;
  padding: 0 0 24px !important;
  max-width: 620px;
  border: none !important;
  background: transparent !important;
}


/* ==========================================================================
   11. TESTIMONIALS
   
   Build as a grid of containers. Apply "ep-testimonial-card" to each.
   ========================================================================== */

body.ep-brand .ep-testimonial-card {
  background: var(--ep-white);
  border-radius: var(--ep-card-radius);
  padding: 32px;
  box-shadow: var(--ep-shadow-soft);
  border: 1px solid rgba(230, 224, 218, 0.6);
}

body.ep-brand .ep-testimonial-card blockquote,
body.ep-brand .ep-testimonial-card .ep-testimonial-quote {
  font-family: var(--ep-font-heading);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ep-text);
  line-height: 1.65;
  margin-bottom: 24px;
  border: none;
  padding: 0;
}

body.ep-brand .ep-testimonial-author strong {
  display: block;
  font-family: var(--ep-font-body);
  font-size: 0.85rem;
  color: var(--ep-text);
}

body.ep-brand .ep-testimonial-author span {
  font-size: 0.78rem;
  color: var(--ep-text-muted);
}

body.ep-brand .ep-testimonial-photo img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}


/* ==========================================================================
   12. PORTRAIT / TRAINER SECTION
   ========================================================================== */

body.ep-brand .ep-portrait-circle img {
  width: 408px;
  height: 408px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
}

body.ep-brand .ep-portrait-caption strong {
  display: block;
  font-family: var(--ep-font-heading);
  font-size: 1.01rem;
  color: var(--ep-text);
  font-weight: 400;
  margin-bottom: 4px;
}

body.ep-brand .ep-portrait-caption span {
  font-size: 0.98rem;
  color: var(--ep-text-muted);
}


/* ==========================================================================
   13. EMAIL FORM (for WPForms / Contact Form 7)
   
   Style override for email capture in the Final CTA section.
   ========================================================================== */

body.ep-brand .ep-email-form input[type="email"],
body.ep-brand .ep-email-form .wpforms-field input {
  font-family: var(--ep-font-body);
  font-size: 0.92rem;
  padding: 16px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--ep-button-radius);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  outline: none;
  transition: border-color 0.3s;
  width: 320px;
}

body.ep-brand .ep-email-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

body.ep-brand .ep-email-form input[type="email"]:focus {
  border-color: rgba(255, 255, 255, 0.6);
}

body.ep-brand .ep-email-form button[type="submit"],
body.ep-brand .ep-email-form .wpforms-submit {
  background: white;
  color: var(--ep-pink);
  padding: 16px 32px;
  border-radius: var(--ep-button-radius);
  font-family: var(--ep-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

body.ep-brand .ep-email-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}


/* ==========================================================================
   14. ELEMENTOR CONTAINER OVERRIDES
   
   Ensure Elementor's container system respects our max-width and spacing.
   ========================================================================== */

/* Override Elementor's default container max-width */
body.ep-brand .elementor-section .elementor-container {
  max-width: var(--ep-container-max);
}

/* Remove Elementor's default widget spacing where we handle it manually */
body.ep-brand .ep-no-gap .elementor-widget:not(:last-child) {
  margin-bottom: 0;
}

/* Overflow visible on sections (for blob images that bleed) */
body.ep-brand .ep-overflow-visible,
body.ep-brand .ep-overflow-visible > .elementor-container {
  overflow: visible !important;
}


/* ==========================================================================
   15. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {

  body.ep-brand .ep-footer .elementor-container {
    flex-wrap: wrap;
  }

  body.ep-brand .ep-portrait-circle img {
    width: 336px;
    height: 336px;
  }
}

@media (max-width: 768px) {

  body.ep-brand h1,
  body.ep-brand h1.elementor-heading-title {
    font-size: 2.6rem !important;
  }

  body.ep-brand h2,
  body.ep-brand h2.elementor-heading-title {
    font-size: 2rem !important;
    margin-bottom: 36px !important;
  }

  body.ep-brand h3,
  body.ep-brand h3.elementor-heading-title {
    font-size: 1.2rem !important;
  }

  body.ep-brand .ep-section-standard {
    padding-top: var(--ep-section-padding-mobile) !important;
    padding-bottom: var(--ep-section-padding-mobile) !important;
  }

  body.ep-brand .ep-section-large {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }

  body.ep-brand .ep-portrait-circle img {
    width: 280px;
    height: 280px;
  }

  body.ep-brand .ep-email-form input[type="email"] {
    width: 100%;
  }

  /* Hide lang switch on mobile (accessible via hamburger menu) */
  .lang-switch {
    display: none;
  }
}

@media (max-width: 480px) {

  body.ep-brand h1,
  body.ep-brand h1.elementor-heading-title {
    font-size: 2.2rem !important;
  }

  body.ep-brand h2,
  body.ep-brand h2.elementor-heading-title {
    font-size: 1.8rem !important;
  }
}


/* ==========================================================================
   16. UTILITY CLASSES
   ========================================================================== */

/* Center content */
.ep-text-center { text-align: center; }
.ep-text-left { text-align: left; }

/* Max-width helpers */
.ep-max-w-narrow { max-width: 620px; }
.ep-max-w-medium { max-width: 800px; }

/* Spacing helpers */
.ep-mb-0 { margin-bottom: 0 !important; }
.ep-mb-sm { margin-bottom: 18px !important; }
.ep-mb-md { margin-bottom: 36px !important; }
.ep-mb-lg { margin-bottom: 52px !important; }
.ep-mb-xl { margin-bottom: 80px !important; }
.ep-mt-0 { margin-top: 0 !important; }

/* Gap helpers for Elementor flex containers */
.ep-gap-sm { gap: 14px !important; }
.ep-gap-md { gap: 28px !important; }
.ep-gap-lg { gap: 48px !important; }
.ep-gap-xl { gap: 64px !important; }
