/*
Theme Name: WALLSPEAK 
Text Domain: Public Speaking Company
Version: 1.6
Description: Budujemy WSPANIAŁE WYSTĄPIENIA.
Nie rzucamy słów na wiatr.
Tags: left-sidebar, responsive, fancy
Author: Karol Ślasko
Author URI: Your own URL

===========================================
TABLE OF CONTENTS
===========================================
1. CSS Variables (Custom Properties)
2. Reset & Base Styles
3. Typography
4. Layout Components
   4.1 Container
   4.2 Header/Navigation
   4.3 Hero Section
   4.4 Main Content Areas
   4.4 Footer
5. UI Components
   5.1 Buttons
   5.2 Forms
   5.3 Cards
6. Utility Classes
7. Page-Specific Styles
8. WordPress Content Styles
9. Media Queries
10. Meta Data
===========================================

*/



/* ===========================================
   1. CSS Variables (Custom Properties)
   =========================================== */
:root {

    --primary: #ffffff;
    --secondary: black;
    --tertiary: #ba0a0f;
    --color-accent:#d1d1d1;
    --tertiary-dark: #8a0709;
    --primary-background: black;
    --secondary-background: #ba0a0f;
    --tertiary-background: #ffffff;
    --success: #28a745;
    --info: #17a2b8;
    --popup: #47182f;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    /* Font Sizes */
    --font-normal: 1em;
    --font-small: 0.8125rem;

      /* Sizes */
    --h1-size: clamp(1.6rem, 7vw, 8rem);
    --h2-size: clamp(1.45rem, 2.75vw, 3.2rem);
    --h3-size: clamp(1.2rem, 4vw, 2.3rem);

    --li-size: clamp(1.05rem, 2vw + 0.4rem, 2rem);
    --p-size:  clamp(0.95rem, 1vw + 0.4rem, 1.2rem);


     /* Base line-heights */
    --lh-tight: 1.1;
    --lh-normal: 1.6;

     /* Spacing system */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 5rem;
    --spacing-3xl: 8rem;
    
    /* Border radius system */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
    --radius-full: 999px;

    /* Indexes */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-overlay: 500;
    --z-tooltip: 600;

      /* Other */
    --head-height: 6rem;
}



/* ===========================================
   2. Reset & Base Styles
   =========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    line-height: 1.15;
    background-color: var(--primary-background);
    scroll-behavior: smooth;

}
body {
    color: var(--primary);
    padding: 0;
    margin: 0;
    

}



/* ===========================================
   3. Typography
   =========================================== */

a{
    color: var(--tertiary);
}

h1,
h2,
h3,
h4,
h5,
h6{
    color: var(--primary);
    font-weight: bold;
}

h1 {
  font-size: var(--h1-size);
  line-height: clamp(
    1.05,
    calc(var(--lh-tight) + 0.15vw),
    1.2
  );
}

h2{
  font-size: var(--h2-size);
  line-height: clamp(
    1.15,
    calc(1.2 + 0.1vw),
    1.35
  );

}

h3{
  font-size: var(--h3-size);
  line-height: clamp(
    1.15,
    calc(1.2 + 0.1vw),
    1.35
  );

}

li {
  font-size: var(--li-size);
  line-height: clamp(
    1.15,
    calc(1.2 + 0.1vw),
    1.35
  );

}

p {
  font-size: var(--p-size);
  line-height: clamp(
    1.5,
    calc(var(--lh-normal) + 0.05vw),
    1.75
  );
}

a {
    color: var(--tertiary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--tertiary-dark);
}

a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}



.form-control {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    height: 2.75rem;
    border-color: var(--primary);
}




/* ===========================================
   4. Layout Components
   =========================================== */


 hr{
    border: 1px solid var(--tertiary-dark);
    width: 70%;
 }




   /* ===========================================
   4.1 Container
   =========================================== */


.container {
    width: 100%;
    max-width: 75rem;
    margin-inline: auto;
    padding-inline: var(--spacing-md);
}



   /* ===========================================
   4.2 Header/Navigation
   =========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    height: var(--head-height);
    width: 100%;
    z-index: var(--z-fixed);
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem min(5rem, 5vw) 0 0;
    
}

.header__logo {
    width: 180px;
    height: 90px;
    object-fit: cover;
}




/* TOGGLE MENU */

.menu {
  display: none;
}


.menu--active {
  display: flex; 
  flex-direction: column;
  position: fixed;
  left: 0;
  bottom: 0;
  max-width: 15rem;
  height: 100%;
  background-color: var(--primary-background);
  z-index: var(--z-modal);
}


.menu__list {
    margin-top: var(--spacing-3xl);
    flex-grow: 0;
    padding: var(--spacing-sm);
    list-style: none;
    font-weight: 700;
}

.menu__list--top {
    margin-top: var(--spacing-sm);

}

.menu__item {
    list-style-type: none;
    font-weight: 700;
    margin: var(--spacing-sm);}

.menu__link {
    color: var(--primary);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
}

.menu__footer {
    margin-top: auto;
    background-color: var(--primary-background);
    color: var(--primary);
    padding: var(--radius-md) var(--spacing-sm);
    text-align: center;
}

.menu-toggle {

  background: none;
  position: fixed;
  border: none;
  cursor: pointer;
  margin: 0 var(--spacing-xl);
  z-index: calc(var(--z-modal) + 1);
}


.menu-toggle--active .menu-toggle__icon {
    background: transparent;
}

.menu-toggle--active .menu-toggle__icon::before {
    transform: rotate(45deg);
    top: 0;
    background: var(--tertiary-background);
}

.menu-toggle--active .menu-toggle__icon::after {
    transform: rotate(-45deg);
    top: 0;
    background: var(--tertiary-background);
}

.menu-toggle__icon {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background: var(--primary);
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--primary);
    left: 0;
    transition: 0.3s;
}

.menu-toggle__icon::before {
    top: -0.5rem;
}

.menu-toggle__icon::after {
    bottom: -0.5rem;
}



/* ===========================================
    4.3 Hero Section
   =========================================== */

/* Block */
.hero {
    width: 100%;
    color: var(--primary);
    border-bottom: 3px solid var(--primary-background);
    margin-top: calc(-1 * var(--head-height));
    padding-top: var(--head-height);
    background-color: transparent;
    position: relative;
    min-height: 50rem;
    top: 0;
}

/* Element */
.hero__content {
    padding: var(--spacing-lg);
}


.hero__subtitle {
    margin: var(--spacing-sm) 0;
    padding: var(--spacing-sm);
    max-width: 46rem;
    width: 100%;
}

.hero__subtitle--accent {
    font-size: calc(var(--h1-size) - 1.5vw);
    color: var(--color-accent);
    
}


.hero__content p {
    padding-bottom: var(--spacing-2xl);
}

.hero__content h1 {
    font-size: var(--h1-size);
}


/* ===========================================
   HERO POPUP 
   =========================================== */

.popup {
    display: grid;
    grid-template-columns: 50% 50%;
    position: fixed;
    margin: 5rem 2rem;
    border-radius: 10px;
    border: 4px solid black;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    max-height: 90vw;
    width: 90vw;
    max-width: 48rem;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.3s ease;
    z-index: var(--z-sticky);
}

/* Modifier - open state */
.popup--open {
    opacity: 1;
    pointer-events: all;
}

/* Element */
.popup__content {
    background: var(--popup);
    overflow: auto;
    padding: var(--spacing-sm);


}

.popup__subtitle {
    text-align: center;
}

.popup__subtitle--accent {
    font-size: calc(var(--h3-size) - 0.5rem);
    color: var(--color-accent);
}


/* Element */
.popup__image {
    background-image: url(assets/image/_DSC7386.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

.popup__close {
    position: relative;
    top: var(--spacing-sm);
    left: 80%;
    padding: 0 var(--spacing-xs);
}


/* ===========================================
   4.4 OFFER SECTION
   =========================================== */

/* Offer */

.offer {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-2xl);
    background-color: var(--secondary-background);
    text-align: center;
}

.offer__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 4/5;
    max-width: 31.25rem;
    min-width: 0;

    background-size: cover;
    background-repeat: no-repeat;
    padding: var(--spacing-sm);
    border-radius: var(--radius-lg);
}

.offer__image--1{
    background-image: url(./assets/image/Szymborska_Head.jpg);
}

.offer__image--2{
    background-image: url(./assets/image/_DSC7386.jpg);
}

.offer__image--3{
    background-image: url(./assets/image/Szymborska_Head_2.jpg);
}

/* Pseudo-element for overlay */
.offer__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.203);
    transition: background-color 0.25s ease;
    pointer-events: none;
    border-radius: var(--radius-lg);
}
 
/* Modifier - hover state */
.offer__card:hover::before {
    background-color: rgba(255, 255, 255, 0);
}

/* Element */
.offer__ulist {
    background-color: rgba(0, 0, 0, 0.61);
    border-radius: var(--spacing-md);
    list-style-type: none;
    padding: 0;
    margin-top: var(--spacing-2xl);
}

.offer__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: var(--spacing-sm);
    padding: var(--spacing-md);
    border-radius: var(--radius-full);
    border: 2px solid var(--primary);
    text-decoration: none;
    font-size: clamp(0.5rem, 2vw + 0.1rem, 2rem);
    font-weight: 600;
    color: var(--primary);
    background-color: transparent;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease;
}

/* Modifier - hover state */
.offer__button:hover {
    background-color: var(--primary);
    color: var(--secondary);
    transform: translateY(-2px);
}



/* ===========================================
   ABOUT SECTION 
   =========================================== */

/* O mnie */
 .about{
    background-color: var(--primary-background);
    padding: var(--spacing-2xl);  
 }



/* ===========================================
   4.5 Footer
   =========================================== */

.footer {
    background-color: var(--secondary-background);
}
    

.footer__container {
    display: flex;
    justify-content: center;
    gap: var(--spacing-3xl);
    align-items: center;
}

.footer__cta {
    margin-right: var(--spacing-lg);
}

.footer__container a {
    color: var(--primary);
}

.footer__container .btn {
    display: block;
    margin: var(--spacing-md);
    padding: 0 var(--spacing-md);
}

.footer__form {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    background-color: transparent;
    width: 100%;
    max-width: 20rem;
    border-bottom: 1px solid var(--primary);
    border: none;
    outline: none;
    box-shadow: 0 1px 0 var(--primary);
    resize: none;
    overflow: hidden;
    padding: var(--spacing-xl) 0 var(--spacing-xs);

    box-sizing: border-box;
}

.footer__form__text{
    display: block;
    color: var(--primary);
    font-weight: 600;
    margin: var(--spacing-xs);
    font-size: var(--h3-size);
    padding: var(--spacing-md) 0;
}

.footer__form__text--copyright{
    text-align: center;
    font-size: 1rem;

}


.footer__form-wrapper.form-sent form {
    display: none;
}

.footer__form--wrapper.form-sent .footer__form-thankyou {
    display: block;
}

.footer__form--thankyou {
    display: none;
    text-align: center;
    padding: var(--spacing-md) 0;
}

.footer__button {
    background-color: var(--tertiary-background);
    color: var(--secondary);
    display: block;
    padding: var(--spacing-sm);
    margin: var(--spacing-lg);
    border-radius: var(--radius-sm);
    max-width: 100%;
    width: auto;
    height: 5rem;
    font-size: 1.4rem;
    font-weight: 600;
}


/* ===========================================
    5. UI Components
   =========================================== */



/* ===========================================
     5.1 Buttons
   =========================================== */

.btn {
    display: block;
    font-weight: bold;
    transition: all 0.4s ease-in-out;
    padding: var(--spacing-sm);
    margin: 0 auto var(--spacing-lg);
    border-radius: 2rem;
    box-shadow:var(--secondary);
}

.btn__text{
    color: var(--secondary);
    margin: var(--spacing-xs);
    font-size: var(--h3-size);
}

.btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary {
    color: var(--secondary);
}   


.popup__button{
    pointer-events: auto;
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: 0 0.5rem;
    z-index: 999999;
}

/* ===========================================
      5.2 Forms
   =========================================== */


   /* ===========================================
      5.2.1 MailerLite Form (NON_BEM)
   =========================================== */

#mailerlite-form_1 {
    max-width: 420px;
    margin: 0 auto;
}

 #mailerlite-form_1 .mailerlite-form-inputs {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) var(--spacing-md) var(--spacing-lg);
}


#mailerlite-form_1 input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;

    border-radius: var(--radius-md);
    border: 1px solid var(--primary);
    outline: none;

}

#mailerlite-form_1 input[type="email"]:focus {
    border-color: black;
}

#mailerlite-form_1 .mailerlite-subscribe-submit {
    width: 100%;
    padding: 0.75rem 1rem;
    

    font-size: 1rem;
    font-weight: 600;

    background: var(--secondary);
    color: var(--primary);
    font-weight: bold;

    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;

    transition: all 0.4s ease-in-out;
    box-shadow:var(--secondary);

}

#mailerlite-form_1 .mailerlite-subscribe-submit:hover {
    opacity: 0.9;
}

#mailerlite-form_1 .mailerlite-form-response {
    margin-top: var(--spacing-sm);
    text-align: center;
}

#mailerlite-form_1 .mailerlite-form-response h4 {
    font-size: 1rem;
    color: var(--tertiary);
}




/* ===========================================
     5.3 Cards
   =========================================== */


/* ===========================================
     5.4 Icons
   =========================================== */

.social__link {
    width: 32px;
    height: 32px;
    padding-top: 5px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
    background-color: var(--tertiary-background);
}


/* ===========================================
   ERROR PAGE 
   =========================================== */

.error-page {
    margin: var(--spacing-xl) 0;
    display: grid;
    background-color: var(--primary-background);
    padding: var(--spacing-3xl) var(--spacing-md);
    text-align: center;
}

/* Element */
.error-page__title {
    font-size: 20rem;
    margin: 0;
}


/* ===========================================
    8. WordPress Content Styles
   =========================================== */

/* Block */
.page {
    min-height: 100vh;
    padding-top: calc(var(--head-height) + var(--spacing-sm));
}

/* Element */
.page__header {
    max-width: 56.25rem;
    margin: 0 auto var(--spacing-xl);
    padding: 0 var(--spacing-md);
}

/* Element */
.page__title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.2;
    transition: all 0.2s;
}

/* Element */
.page__content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md) var(--spacing-3xl);
}

.page__content > * {
    margin-bottom: 1.6em;
}

.page__content h2 {
    margin-top: var(--spacing-lg);
}

.page__content h3 {
    margin-top: var(--spacing-md);
}

.page__content p {
    max-width: 65ch;
}

.page__content ul,
.page__content ol {
    padding-left: var(--spacing-md);
}

.page__content li {
    margin-bottom: var(--spacing-xs);
}

.page__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--spacing-sm);
}

/* ===========================================
   BLOG NAVIGATION (BEM Refactor)
   =========================================== */

/* Block */


/* Element */
.blog-nav__link {
    background: var(--primary);
    color: var(--primary);
    font-size: 1rem;
    padding: var(--spacing-sm);
    font-weight: bold;
    position: relative;
}

/* Modifier */
.blog-nav__link:hover {
    background: var(--secondary);
}

/* Modifier */
.blog-nav__link--prev {
    border-right: 1px solid var(--secondary);
}

/* Element */
.blog-nav__arrow--prev {
    position: absolute;
    left: var(--spacing-sm);
    top: 1.25rem;
    color: var(--primary);
}

/* Element */
.blog-nav__arrow--next {
    position: absolute;
    right: var(--spacing-sm);
    top: 1.25rem;
    color: var(--primary);
}


 /* ===========================================
    10 Meta Data
   =========================================== */


/* Block */
.meta {
    font-size: var(--font-small);
}

/* Element */
.meta__item {
    display: inline-block;
    margin-right: 0.25em;
}

/* Element */
.meta__link {
    color: inherit;
}

/* Modifier */
.meta__link:hover {
    color: var(--secondary);
}

/* Modifier - tag style */
.meta__item--tag {
    padding: 0 var(--spacing-xs);
    border-radius: var(--radius-sm);
}

.meta__item:last-child::after {
    display: none;
}





/* ===========================================
    9. Media Queries
   =========================================== */

/* ============================
   PC (≤ 1380px)
   ============================ */
@media (max-width: 1200px) {

.offer{
    gap: var(--spacing-md);
    padding: var(--spacing-md);
}


}


/* ============================
   TABLET (≤ 768px)
   ============================ */
@media (max-width: 768px) {

    
    

 #mailerlite-form_1 .mailerlite-form-inputs {

    margin: var(--spacing-sm) var(--spacing-sm) var(--spacing-md);
}

    .hero__subtitle{
        text-align: center;
        margin: var(--spacing-md) 0;
    }

    .about{
        padding: var(--spacing-sm);
    }
    .about__subtitle{
        text-align: center;
    }
    .offer__listitem
     {
        font-size: var(--h2-size);
        margin: var(--spacing-xs);
    }


/* Header */
  .header {
    padding: var(--spacing-md) var(--spacing-sm);;
  }

 .header__logo {
   display: none;
  }


  /* Menu */
  .menu {
    width: 100%;
    height: 100%;
    max-width: none;
    top: 0;
    justify-content: left;
  }

  .footer__cta {
    margin-right: 0;
}

  .menu__list {
    margin-top: var(--spacing-lg);
    align-items: center;
  }

  .menu-toggle {
  position: fixed;       
  top: var(--spacing-md);
  left: var(--spacing-md);
  right: auto;        
  margin: 0;
  z-index: 10001;
}



  .menu__link {
    font-size: 0.9rem;
  }

  /* Hero */
  .hero {
    margin-top: 0;
    padding-top: var(--spacing-lg);
    min-height: auto;
  }

  .hero__content {
    padding: var(--spacing-md);
  }

  /* Offer */
  .offer {
    flex-direction: column;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    justify-content: center;
  }

  .offer__card {
    width: 100%;
    aspect-ratio: auto;
    min-height: 40rem;
  }

  .offer__ulist {
   margin-top: auto;
}
   

.offer__button {
    font-size: 1.4rem;
    padding: var(--spacing-sm);
  }

  /* Popup */
  .popup {
    display: block;
    width: 60%;
    height: auto;
  }


  .popup__image {
    display: none;
  }

  /* Footer */
  .footer__container {
    flex-direction: column;
    gap: var(--spacing-lg);
    text-align: center;
  }

  .footer__form {
    width: 100%;
    
  }
}


/* ============================
   PHONE (≤ 480px)
   ============================ */
@media (max-width: 480px) {

.header {
    z-index: 10;
  }

  .menu-toggle {
    z-index: 20;
  }

   
  /* Menu */
  .menu__link {
    font-size: 1.5rem;
  }

  /* Hero */
  .hero__content h1 {
    font-size: 3rem;
  }

  .hero__subtitle {
    padding: var(--spacing-xs);
  }

  /* Offer */
  .offer {
    padding: var(--spacing-md);
  }

  

  /* Popup */
  .popup {

    position: fixed;
    inset: 0;     
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;

    margin: 0;
    border-radius: 0;

    transform: none;
    overflow-y: auto;

    transition: opacity 0.3s ease;
    z-index: var(--z-sticky);
    
  }

  


    .popup__content {
  padding: var(--spacing-xl) 0;

}

.popup__button{
    pointer-events: auto;
    position: absolute;
    bottom: var(--spacing-sm);
    top: auto;
    right: var(--spacing-sm);
    left: var(--spacing-sm);
    padding: 0 4rem;
}
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}