/*
Theme Name: CILI – Agnieszka Piech-Krupka
Theme URI: https://example.com/
Author: Agnieszka Piech-Krupka
Description: Motyw WordPress odtwarzający aktualny wygląd strony CILI.
Version: 1.0.4
Text Domain: cili
*/

/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Montserrat',sans-serif;
    background:#FCFBF8;
    color:#3F4A5A;
    overflow-x:hidden;
}

img{
    max-width:100%;
    display:block;
}
#logo1{
    width: 80px;
    height: 80px;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

/* =========================
   ZMIENNE
========================= */

:root{

    --primary:#1F3F73;
    --secondary:#4A90E2;

    --bg:#FCFBF8;
    --white:#FFFFFF;

    --text:#3F4A5A;

    --shadow:
        0 10px 30px rgba(31,63,115,.08);

    --shadow-hover:
        0 18px 40px rgba(31,63,115,.14);

    --radius-card:20px;
    --radius-btn:30px;

}
.container{
    width:min(1320px,92%);
    margin:auto;
}
.header{

    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:90px;

    background:rgba(255,255,255,.95);

    backdrop-filter:blur(12px);

    border-bottom:1px solid #F0F2F5;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 40px;

    z-index:9999;

    transition:.3s;
}

.header.shrink{
    height:70px;
}

.logo-wrapper{
    display:flex;
    align-items:center; 
   
    
}

.logo-link{
    display:flex;
    align-items:center;
    gap:18px;
}

.logo{
    width:52px;
    height:auto;
}
#cale {
    width: 20px;
    height: 20px;
    float: right;
}
span {
    display: flex;
    flex-direction: row;
}
.hero {
    background-image: url('banerHERO.png ') ;
    width: 100%;
}
.hero-content {
    width: 100%;
}

    
    


.logo-text h2{

    font-family:'Cormorant Garamond',serif;

    font-size:clamp(1rem,2.5vw,2.5rem);

    color:var(--primary);

    font-weight:600;

    margin-bottom: 0px;
    width: 100%;

}
.logo-text h3 {
    color: #275db6;
}
.logo-text {
    width: 400px;
}
.logo-wrapper {
    
    width: 100%;
}

.logo-text span{

    display:block;

    margin-top:4px;

    font-size:clamp(0.5rem,1vw,1rem);;

    color:#1d5ea8 ;

    font-weight:500;

    margin-top: -130px;
}
.desktop-menu ul{

    display:flex;
    align-items:center;
    
    gap:45px;
}
#cos {
    width: 90px;
}
#cos a {
    width: 100%;
}
#cos1 {
    width: 70px;
}
#cos1 a {
    width: 100%;
}
.menu-link{

    position:relative;

    color:#243B67;

    font-size:20px;

    font-weight:500;

    transition:.3s;
}

.menu-link:hover{

    color:var(--primary);
}

.menu-link::after{

    content:'';

    position:absolute;

    left:50%;
    bottom:-8px;

    width:0;
    height:2px;

    background:var(--secondary);

    transition:.3s;
}

.menu-link:hover::after{

    width:100%;
    left:0;
}

.menu-link.active{

    font-weight:700;

    color:var(--primary);
}

.menu-link.active::after{

    width:100%;
    left:0;
}
.hamburger{

    display:none;

    border:none;
    background:none;

    font-size:34px;

    color:var(--primary);

    cursor:pointer;
}

.mobile-menu{

    position:fixed;

    top:70px;
    left:-100%;

    width:100%;

    background:white;

    padding:40px;

    transition:.4s;

    z-index:9000;
}

.mobile-menu.active{

    left:0;
}

.mobile-menu a{

    display:block;

    margin:15px 0;

    color:var(--primary);

    font-size:20px;
}
.hero{

    position:relative;

    min-height:100vh;

    background-image:url('../images/hero-home.jpg');

    background-position:center center;

    background-size:cover;

    display:flex;
    align-items:center;
}

.hero-overlay{

    position:absolute;
    inset:0;

    background:
    linear-gradient(
        rgba(255,255,255,.25),
        rgba(255,255,255,.15)
    );
}

.hero-content{

    position:relative;

    z-index:2;

    margin-left:100px;

    max-width:700px;
}

.hero h1{

    font-family:'Cormorant Garamond',serif;

    color:var(--primary);

    font-size:72px;

    line-height:1.05;

    font-weight:600;
    width: 100%;
}
.hero-script{

    margin-top:20px;

    font-family:'Parisienne',cursive;

    font-size:48px;

    color:var(--primary);
}

.hero-heart{

    margin-top:12px;

    font-size:40px;
}

.hero p{

    margin-top:40px;

    font-size:24px;

    color:#333;

    line-height:1.5;
}
.hero-btn{

    display:inline-block;

    margin-top:35px;

    background:var(--primary);

    color:white;

    padding:16px 40px;

    border-radius:30px;

    font-size:22px;

    font-weight:600;

    transition:.3s;
}

.hero-btn:hover{

    background:#2C5AA0;

    transform:translateY(-2px);
}
.hero-gradient{

    position:absolute;

    left:0;
    right:0;
    bottom:0;

    height:180px;

    background:
    linear-gradient(
        transparent,
        #FCFBF8
    );
}
/* =========================
   KAFELKI
========================= */

.cards-section{

    padding:120px 0;

    background:#FCFBF8;
}

.cards-grid{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:35px;
}

.card{

    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:.35s;

    display:flex;

    flex-direction:column;

    min-height:720px;

    position:relative;
}

.card:hover{

    transform:translateY(-10px);

    box-shadow:var(--shadow-hover);
}
.card-icon{

    padding-top:35px;

    display:flex;

    justify-content:center;
}

.card-icon img{

    width:70px;

    height:70px;

    object-fit:contain;
}

.card-heart{

    text-align:center;

    color:#8BB4F7;

    font-size:26px;

    margin-top:15px;
}
.card h2{

    font-family:
    'Cormorant Garamond',
    serif;

    color:var(--primary);

    font-size:38px;

    text-align:center;

    padding:25px 30px 10px;

    line-height:1.15;
    color: #1F3F73;
}

.card p{

    text-align:center;

    padding:10px 35px;

    font-size:18px;

    line-height:1.7;

    flex-grow:1;
}
.kaf {
    font-weight: bold;
    color:#3F4A5A;
    
    
}
.card-image{

    height:260px;

    overflow:hidden;
}

.card-image img{

    width:100%;
    height:100%;

    object-fit:cover;

    transition:.5s;
}

.card:hover .card-image img{

    transform:scale(1.05);
}
.card-btn{

    width:85%;

    margin:25px auto 35px;

    text-align:center;

    background:var(--primary);

    color:white;

    padding:15px 20px;

    border-radius:30px;

    font-size:18px;

    font-weight:600;

    transition:.3s;
}

.card-btn:hover{

    background:#4A90E2;
}
/* =========================
   WARTOŚCI
========================= */

.value-bar{

    background:white;

    padding:100px 0;
}

.value-grid{

    display:grid;

    grid-template-columns:
    repeat(5,1fr);

    gap:25px;
}
.value-item{

    background:#FCFBF8;

    border-radius:20px;

    padding:35px;

    text-align:center;

    transition:.3s;

    color:inherit;
}

.value-item:hover{

    transform:translateY(-5px);

    box-shadow:var(--shadow);
}

.value-item img{

    width:65px;

    height:65px;

    margin:auto auto 20px;
}

.value-item h3{

    font-family:
    'Cormorant Garamond',
    serif;

    color:var(--primary);

    font-size:32px;

    margin-bottom:15px;
}

.value-item p{

    font-size:17px;

    line-height:1.6;
}
/* =========================
   CYTAT
========================= */

.quote-section{

    

    background:
    linear-gradient(
        180deg,
        #FCFBF8,
        #F3F5F7
    );
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

blockquote{

    max-width:1100px;

    margin:auto;

    text-align:center;

    font-family:
    'Cormorant Garamond',
    serif;

    color:var(--primary);

    font-size:44px;

    line-height:1.3;

    font-style:italic;
}
/* =========================
   FOOTER
========================= */

.footer{

    background:#1F3F73;

    color:white;

    
    height: 240px;
}

.footer-logo{

    text-align:center;
}

.footer-logo img{

    width:90px;

    margin:auto;
}

.footer-logo h3{

    margin-top:20px;

    font-family:
    'Cormorant Garamond',
    serif;

    font-size:32px;
}

.footer-logo p{

    margin-top:10px;

    color:#D6E5FF;
}
.footer-menu{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:30px;

    margin:45px 0;
}

.footer-menu a{

    color:white;

    font-size:18px;
}

.footer-menu a:hover{

    color:#8BB4F7;
}

.footer-copy{

    text-align:center;

    font-size:15px;

    opacity:.8;
}
@media(max-width:1200px){

.hero h1{
    font-size:60px;
}

.cards-grid{
    grid-template-columns:
    repeat(2,1fr);
}

.value-grid{
    grid-template-columns:
    repeat(2,1fr);
}

blockquote{
    font-size:48px;
}

}
@media(max-width:1500px){

.desktop-menu{
    display:none;
}

.hamburger{
    display:block;
}

.hero-content{

    margin:0 30px;
}

.hero h1{

    font-size:46px;
}

.hero-script{

    font-size:34px;
}

.hero p{

    font-size:20px;
}

.cards-grid{

    grid-template-columns:1fr;
}

.value-grid{

    grid-template-columns:1fr;
}

blockquote{

    font-size:34px;

    padding:0 20px;
}

.logo-text h2{

    font-size:26px;
}

.logo-text span{

    font-size:13px;
}

.header{

    padding:0 20px;
}

}
.autoship-image {
    margin: 30px auto 55px;
    text-align: center;
}

.autoship-image img {
    width: 100%;
    max-width: 680px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .autoship-image {
        margin: 24px auto 42px;
    }

    .autoship-image img {
        max-width: 100%;
        border-radius: 8px;
    }
}
.card h2,
.card .kaf {
    position: relative;
    z-index: 2;
    text-shadow:
        -1px -1px 1px rgba(255, 255, 255, 0.75),
         1px -1px 1px rgba(255, 255, 255, 0.75),
        -1px  1px 1px rgba(255, 255, 255, 0.75),
         1px  1px 1px rgba(255, 255, 255, 0.75),
         0 0 4px rgba(255, 255, 255, 0.35);
}

/* ===== KAFELEK 2 — ZWARTY TEKST ARTYKUŁÓW ===== */

.kafelek2-compact-section {
    padding: 45px 0 !important;
}

.kafelek2-compact-text {
    text-align: left !important;
    font-size: 19px !important;
    line-height: 1.65 !important;
    max-width: 900px;
    margin: 0 auto;
}

.kafelek2-compact-text p {
    text-align: left !important;
    font-size: 19px !important;
    line-height: 1.65 !important;
    margin-bottom: 18px !important;
    letter-spacing: 0 !important;
    word-spacing: normal !important;
}

.kafelek2-compact-text b,
.kafelek2-compact-text strong {
    font-weight: 700;
}

.kafelek2-compact-text h3 {
    margin-top: 34px !important;
    margin-bottom: 16px !important;
    font-size: clamp(28px, 3vw, 36px) !important;
    line-height: 1.25 !important;
    color: #1F3F73;
}


/* =========================================================
   WORDPRESS – dopasowanie menu i wyszukiwarki
========================================================= */
.desktop-menu{
    display:flex;
    align-items:center;
    gap:28px;
}

.desktop-menu > ul{
    margin:0;
    padding:0;
}

.desktop-menu > ul > li:first-child{
    width:70px;
}

.desktop-menu > ul > li:nth-child(2){
    width:90px;
}

.desktop-menu .current-menu-item > .menu-link,
.desktop-menu .current_page_item > .menu-link,
.menu-link.active{
    font-weight:700;
    color:var(--primary);
}

.desktop-menu .current-menu-item > .menu-link::after,
.desktop-menu .current_page_item > .menu-link::after,
.menu-link.active::after{
    width:100%;
    left:0;
}

.search-menu-item{
    display:flex;
    align-items:center;
}

.search-button,
.mobile-search-button{
    border:none;
    background:#1F3F73;
    color:#fff;
    cursor:pointer;
    font-weight:600;
    transition:.3s;
}

.search-button{
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 18px;
    border-radius:30px;
    font-size:15px;
    white-space:nowrap;
}

.search-button:hover,
.mobile-search-button:hover{
    background:#30589b;
    transform:translateY(-2px);
}

.search-icon{font-size:18px;}

.mobile-divider{
    margin:20px 0;
    border:none;
    border-top:1px solid #d9d9d9;
}

.mobile-search-button{
    width:100%;
    margin-top:18px;
    padding:14px;
    border-radius:10px;
    font-size:16px;
}

/* Wyszukiwarka korzysta z natywnego mechanizmu WordPressa. */
.search-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    display:none;
    justify-content:center;
    align-items:flex-start;
    padding:80px 20px;
    z-index:999999;
    backdrop-filter:blur(8px);
}
.search-modal.active{display:flex;}
.search-box{
    width:100%;
    max-width:900px;
    background:#fff;
    border-radius:22px;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
    overflow:hidden;
    padding-bottom:35px;
}
.search-close{
    float:right;
    margin:20px;
    border:none;
    background:none;
    font-size:42px;
    cursor:pointer;
    color:#999;
}
.search-close:hover{color:#1F3F73;}
.search-box h2{
    margin:35px 40px 10px;
    font-size:34px;
    color:#1F3F73;
}
.search-box p{
    margin:0 40px 25px;
    color:#666;
    line-height:1.6;
}
.cili-search-form{
    display:flex;
    gap:12px;
    margin:0 40px;
}
.cili-search-form input[type="search"]{
    flex:1;
    min-width:0;
    padding:18px 22px;
    border:2px solid #d9d9d9;
    border-radius:14px;
    font-size:18px;
    outline:none;
}
.cili-search-form input[type="search"]:focus{
    border-color:#1F3F73;
    box-shadow:0 0 0 4px rgba(31,63,115,.12);
}
.cili-search-form button{
    padding:0 28px;
    border:0;
    border-radius:14px;
    background:#1F3F73;
    color:#fff;
    font-weight:600;
    cursor:pointer;
}

/* Ogólne treści WordPress – podstrony i wyniki wyszukiwania */
.wp-content-section{
    padding:140px 0 80px;
    min-height:60vh;
}
.wp-content-section h1{
    font-family:'Cormorant Garamond',serif;
    color:#1F3F73;
    font-size:clamp(42px,6vw,72px);
    margin-bottom:30px;
}
.wp-content-section .entry-content{
    max-width:950px;
    margin:0 auto;
    font-size:19px;
    line-height:1.75;
}

/* Uniwersalny baner podstrony edytowany w WordPressie. */
.wp-subpage-hero{
    position:relative;
    min-height:350px;
    height:400px;
    margin-top:90px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    background-position:center;
    background-size:cover;
}
.wp-subpage-hero::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(rgba(255,255,255,.35),rgba(255,255,255,.15));
}
.wp-subpage-hero__content{
    position:relative;
    z-index:2;
    width:min(1000px,90%);
}
.wp-subpage-hero h1{
    font-family:'Cormorant Garamond',serif;
    color:#1F3F73;
    font-size:clamp(3rem,6vw,5rem);
    line-height:1.05;
    margin-bottom:20px;
}
.wp-subpage-hero p{
    font-size:clamp(1.1rem,2vw,1.8rem);
    color:#243B67;
    font-weight:600;
}
.wp-subpage-content{
    padding:45px 0 70px;
}
.wp-subpage-content .entry-content{
    max-width:900px;
    margin:0 auto;
    font-size:19px;
    line-height:1.65;
}

@media(max-width:1500px){
    .desktop-menu{display:none;}
}

@media(max-width:768px){
    .search-text{display:none;}
    .search-button{
        width:46px;
        height:46px;
        border-radius:50%;
        justify-content:center;
        padding:0;
    }
    .search-modal{padding:20px 10px;}
    .search-box{margin-top:20px;border-radius:18px;}
    .search-box h2{margin:25px;font-size:28px;}
    .search-box p{margin:0 25px 20px;}
    .cili-search-form{margin:0 25px;flex-direction:column;}
    .cili-search-form button{padding:16px 20px;}
}

/* Wersja robocza 0.2 – dopasowanie głównych podstron */
.wp-subpage-content .entry-content > h2:first-child{
    color:#3F4A5A;
    font-family:'Montserrat',sans-serif;
    font-size:24px;
    line-height:1.25;
    margin-bottom:8px;
}
.wp-subpage-content .entry-content p{
    margin-bottom:18px;
}
.cili-placeholder-cta{
    text-align:center;
    margin-top:40px !important;
}
.cili-placeholder-cta .hero-btn{
    margin-top:0;
}

/* Wersja robocza 0.3 – treści strukturalne migrowane z HTML */
.wp-subpage-content.is-structured{
    padding:0;
}
.wp-subpage-content.is-structured > section{
    max-width:none;
}


/* ===== CILI 1.0.4 – integracja WordPress ===== */
.cili-wordpress-main{display:block;}
