/*
Theme Name: Babulinka
Theme URI: https://babulinkabooks.com/
Author: iquadrat
Author URI: https://iquadrat.com/
Description: Custom theme Babulinka.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: babulinka
*/

:root {
    --back-color: #fff;
    --salmon: #ff9966;
    --beige: #F3EFE0;
    --light-beige: #F9F7EF;
    --blue: #30C8E8;
    --dark: #202020;
    --main-margin-top: 6.5rem;
}

* { box-sizing: border-box; }

.futura {
    font-family: "futura-pt", sans-serif;
    font-style: normal;
    &.book { font-weight: 400; }
    &.medium { font-weight: 500;}
    &.bold {    font-family: "futura-pt-bold", sans-serif; font-weight: 700;}
}

.playfair {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-style: normal;
    &.regular {     font-weight: 400; }
    &.bold {     font-weight: 600; }    
  }


  html {
    font-size: 16px;
  }

  body {
    font-family: "futura-pt", sans-serif;    
    margin: 0;
    padding: 0;
    background-color: var(--back-color);
  }

  .container {
    max-width: 1320px; 
    padding: 0 1rem;
    margin: auto;
    width: 100%;
    @media (max-width: 1200px) {
        width: 90%;
    }
  }

  section {

    &.full-height {
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
  }

  main {
    --extra-offset: 0px;
    --scroll-offset: 0px;
    margin-top: calc(var(--main-margin-top) + var(--extra-offset) - var(--scroll-offset));
    transition: .4s;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1.3;

  }

    label {
        font-size: 16px;
        font-weight: 500;
        color: white;
        font-family: 'futura-pt', sans-serif;
        letter-spacing: .5px;
    }

    h1, .h1 {
        font-family: 'Playfair Display', serif;
        font-weight: 500;
        font-size: 3rem;
        line-height: 1;
        margin: 0;
        color: var(--blue);  
        &.big-h1 { font-size: 6rem; }      
    }

    h3, .h3 {
        font-family: 'Playfair Display', serif;
        font-weight: 500;
        font-size: 2.5rem;
        line-height: 1.2;
        margin: 0;
        color: var(--blue);
    }

    h4 {
        font-family: 'futura-pt', serif;
        font-weight: 500;
        text-transform: uppercase;
        color: var(--blue);
        font-size: 1.25rem;
        letter-spacing: 1px;
        max-width: 35ch;
    }

    h5, .h5 {
        font-family: 'futura-pt', serif;
        font-weight: 600;
        font-size: 1.25rem;
        line-height: 1.2;
        text-transform: uppercase;
        margin: 0;
        color: var(--salmon);
        letter-spacing: 1px;
    }

    button.cta, .btn.cta {
        font-family: 'futura-pt';
        color: white;
        background-color: var(--salmon);
        border: 0;
        padding: 1.5rem 2rem;
        border-radius: 3rem;
        font-size: 1.1rem;
        font-weight: 600;
        letter-spacing: 1px;
        cursor: pointer;
        transition: 1s;
        display:inline-block;
        text-decoration: none;
        text-transform: uppercase;
        &:hover {
            background-color: var(--dark);
        }
        @media (max-width : 576px) {
            font-size: .875rem;
            padding: 1rem 1.5rem;
        }
    }
    .btn {
        font-family: 'futura-pt';
        color: white;
        background-color: var(--salmon);
        border: 0;
        padding: 1.5rem 2rem;
        border-radius: 3rem;
        font-size: 1.1rem;
        font-weight: 600;
        letter-spacing: 1px;
        cursor: pointer;
        transition: 1s;
        display:inline-block;
        text-decoration: none;
        text-transform: uppercase;
        &.non-cta {
            background-color: white;
            color: var(--salmon);
            border: 2px solid var(--salmon);
            font-size: 1rem;
            font-weight: 500;
            &:hover {
                background-color: var(--salmon);
                color: white;
            }
        }
        &:hover {
            background-color: var(--dark);
        }
        @media (max-width : 576px) {
            font-size: .875rem;
            padding: 1rem 1.5rem;
        }
    }

    .tag-wrapper {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: .5rem;
    }
    .tags, .categories {
        font-family: 'futura-pt';
        background-color: var(--light-beige);
        border: 0;
        padding: .5rem .75rem;
        border-radius: 3rem;
        font-size: .875rem; 
        font-weight: 400;
        letter-spacing: 1px;
        cursor: pointer;
        transition: 1s;
        display: inline-block;
        text-decoration: none;
        text-transform: uppercase;
        color: var(--dark);
        border: 1.5px solid var(--dark);
    }

    ul.inline-list {
        list-style: none;
        display: inline;
        margin: 0;
        padding: 0;
        li {
            display: inline;
            &:before {
                content: ',';
                margin-right: 1ch;
            }
            &:first-child:before {
                display:none;
            }
            &:last-child:before {
                content:' y';
            }            
            &:last-child:after {
                content:'.';
            }                        
        }
    }

    .categories {
        color: white;
        background-color: var(--salmon);
        border-color: var(--salmon);
        font-weight: 500;
        font-size: 1rem;
        padding: .75rem 1.5rem;
    }

    a.tags {
        &:hover {
            background-color: var(--dark);
            color: var(--light-beige);
        }
    }
    a.categories {
        text-transform: initial;
        &:hover {
            background-color: var(--white);
            color: var(--salmon);
        }
    }

  body:has(.lang-prompt-msg) main {
    --extra-offset: 3rem;
    @media (max-width: 768px) {
        --extra-offset: 3.5rem;
    }
    @media (max-width: 576px) {
        --extra-offset: 4rem;
    }    
  }

  body:has(header.scrolled) main {
    --scroll-offset: 0;
  }

    .swiper{
        .swiper-pagination {
            display: flex;
            justify-content: center;
            gap: 1rem;
            .swiper-pagination-bullet {
                width: .75rem;
                height: .75rem;
                background: white;
                opacity: 100;
            }
            .swiper-pagination-bullet-active {
                background-color: var(--salmon);
            }
        }
    }

    .my-4 { margin-top: 4rem; margin-bottom: 4rem; }

  .otgs-development-site-front-end { display:none; }

#cmplz-document { 
    margin: auto; 
    h2 {
        max-width: 50ch;
        margin-left: auto;
    }
}