/*
Theme Name: Magiczny Oddech V2
Author: OpenAI
Version: 1.0
Description: Motyw WordPress inspirowany projektem Magiczny Oddech z oddzielnymi obrazkami.
*/

:root{
  --purple:#6652c8;
  --purple-dark:#4e3ea4;
  --lavender:#ece5fb;
  --text:#4e3475;
  --white:#ffffff;
  --shadow:0 12px 30px rgba(72, 47, 125, .18);
  --radius:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: "Trebuchet MS", Arial, sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#f4efff 0%, #e9e1fb 40%, #ddd3f5 100%);
}
a{
  color:inherit;
  text-decoration:none;
}
img{
  max-width:100%;
  display:block;
}
.site-wrap{
  width:min(1240px, calc(100% - 32px));
  margin:0 auto;
}
.site-header{
  display:none;
}

/* HERO */
.hero{
  position:relative;
  min-height:640px;
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(89,74,168,.18), rgba(255,255,255,.08)),
    url('img/logo.png') center/cover no-repeat;
}
.hero__inner{
  position:relative;
  min-height:640px;
  display:flex;
  align-items:center;
  padding:60px 50px;
}
.hero__content{
  max-width:620px;
  color:#fff;
  text-shadow:0 2px 14px rgba(78,52,117,.28);
}
.hero__title{
  margin:0 0 14px;
  font-size:86px;
  line-height:1;
  font-family: Georgia, "Times New Roman", serif;
  font-style:italic;
  font-weight:500;
}
.hero__subtitle{
  margin:0 0 28px;
  font-size:28px;
}
.hero__image{
  position:absolute;
  right:35px;
  bottom:0;
  width:min(390px, 36vw);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:12px 28px;
  border:none;
  border-radius:12px;
  background:linear-gradient(180deg, #7c6de0 0%, var(--purple) 100%);
  color:#fff;
  font-size:18px;
  font-weight:700;
  box-shadow:0 10px 20px rgba(85,65,172,.25);
  transition:all .2s ease;
  cursor:pointer;
}
.btn:hover,
.btn:focus-visible{
  background:linear-gradient(180deg, #8b7cf0 0%, #5846bd 100%);
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(85,65,172,.35);
  outline:none;
}
.btn--small{
  min-height:46px;
  padding:10px 22px;
  font-size:17px;
}
.btn--input{
  border-top-left-radius:0;
  border-bottom-left-radius:0;
}

/* Generic sections */
.section{
  background:rgba(255,255,255,.25);
}
.section--soft{
  background:
    linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,.18)),
    radial-gradient(circle at top, rgba(255,255,255,.42), transparent 42%);
}
.section__inner{
  padding:38px 28px 34px;
}
.section-title{
  display:flex;
  align-items:center;
  gap:18px;
  justify-content:center;
  margin:0 0 28px;
  color:#533486;
  font-family: Georgia, "Times New Roman", serif;
  font-style:italic;
  font-weight:500;
  font-size:42px;
  text-align:center;
}
.section-title:before,
.section-title:after{
  content:"";
  height:1px;
  width:140px;
  background:rgba(83,52,134,.35);
}

/* Feature grid */
.feature-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
}
.card-link{
  display:block;
  background:rgba(255,255,255,.92);
  border:2px solid rgba(102,82,200,.08);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor:pointer;
}
.card-link:hover,
.card-link:focus-visible{
  transform:translateY(-4px);
  box-shadow:0 18px 34px rgba(72,47,125,.23);
  border-color:rgba(102,82,200,.35);
  outline:none;
}
.card-link__img{
  aspect-ratio:16/10;
  object-fit:cover;
  width:100%;
}
.card-link__body{
  padding:16px 16px 20px;
  text-align:center;
}
.card-link__title{
  margin:0 0 14px;
  font-size:24px;
  color:#54378a;
  font-family: Georgia, "Times New Roman", serif;
  font-style:italic;
}
.card-link__cta{
  width:100%;
}

/* Materials */
.material-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
}
.material-card{
  display:block;
  text-align:center;
  cursor:pointer;
}
.material-card__frame{
  overflow:hidden;
  border-radius:16px;
  box-shadow:var(--shadow);
  border:2px solid rgba(102,82,200,.08);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.material-card:hover .material-card__frame,
.material-card:focus-visible .material-card__frame{
  transform:translateY(-4px);
  box-shadow:0 18px 34px rgba(72,47,125,.23);
  border-color:rgba(102,82,200,.35);
}
.material-card:focus-visible{
  outline:none;
}
.material-card__img{
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
}
.material-card__title{
  margin:14px 0 0;
  font-size:24px;
  line-height:1.15;
  color:#4d337b;
}

/* Newsletter */
.newsletter{
  background:
    linear-gradient(180deg, rgba(125,107,200,.15), rgba(95,79,165,.18)),
    url('img/newsletter-bg.jpg') center/cover no-repeat;
  color:#fff;
}
.newsletter .section__inner{
  padding:52px 28px 40px;
  text-align:center;
}
.newsletter .section-title{
  color:#fff;
  text-shadow:0 2px 10px rgba(74,46,120,.35);
}
.newsletter .section-title:before,
.newsletter .section-title:after{
  background:rgba(255,255,255,.4);
}
.newsletter__text{
  margin:0 0 20px;
  font-size:18px;
  text-shadow:0 2px 10px rgba(74,46,120,.35);
}
.newsletter__form{
  display:flex;
  justify-content:center;
  gap:0;
  flex-wrap:wrap;
}
.newsletter__input{
  min-width:min(100%, 360px);
  height:54px;
  padding:0 18px;
  border:none;
  border-radius:12px 0 0 12px;
  font-size:18px;
}
.newsletter__input:focus{
  outline:2px solid rgba(255,255,255,.75);
  outline-offset:2px;
}

.site-footer{
  padding:22px 20px 34px;
  text-align:center;
  color:#fff;
  background:linear-gradient(180deg, rgba(95,79,165,1), rgba(80,64,145,1));
}
.site-footer p{
  margin:0;
  opacity:.92;
}

@media (max-width: 1024px){
  .hero__title{font-size:68px}
  .hero__subtitle{font-size:24px}
  .feature-grid{grid-template-columns:1fr}
  .material-grid{grid-template-columns:repeat(2, 1fr)}
  .hero__image{width:min(320px, 34vw)}
}

@media (max-width: 760px){
  .site-wrap{width:min(100%, calc(100% - 20px))}
  .hero, .hero__inner{min-height:auto}
  .hero__inner{
    display:block;
    padding:34px 20px 0;
    text-align:center;
  }
  .hero__content{
    max-width:none;
  }
  .hero__title{font-size:52px}
  .hero__subtitle{font-size:22px}
  .hero__image{
    position:relative;
    right:auto;
    margin:22px auto 0;
    width:min(320px, 86vw);
  }
  .section__inner{padding:28px 16px}
  .section-title{
    font-size:34px;
    gap:10px;
  }
  .section-title:before,
  .section-title:after{
    width:60px;
  }
  .material-grid{grid-template-columns:1fr}
  .newsletter__form{display:block}
  .newsletter__input{
    min-width:0;
    width:100%;
    border-radius:12px;
    margin-bottom:12px;
  }
  .btn--input{
    width:100%;
    border-radius:12px;
  }
}

/* TOP MENU */
.topbar{
 position:sticky;
 top:0;
 width:100%;
 background:#ffffffee;
 backdrop-filter: blur(6px);
 border-bottom:1px solid rgba(0,0,0,.08);
 z-index:1000;
}

.topbar__inner{
 max-width:1240px;
 margin:auto;
 display:flex;
 align-items:center;
 justify-content:space-between;
 padding:10px 20px;
}

.logo a{
 display:flex;
 align-items:center;
 font-size:20px;
 font-weight:700;
 color:#533486;
}

.logo__icon{
 margin-right:8px;
}

.nav a{
 margin:0 12px;
 font-weight:600;
}

.nav a:hover{
 color:#6652c8;
}

.social a{
 margin-left:10px;
 display:inline-flex;
}

.social img{
 width:22px;
 height:22px;
}

