/* Start custom CSS *//* ------------------------------
   DF WEBINAARIT: LAYOUT & TEKSTIT
--------------------------------- */

:root{
  --dfw-mint: #30C7B5;
  --dfw-teal: #00AC97;
  --dfw-deep: #14261C;
  --dfw-slate:#4F5655;

  --dfw-card: rgba(255,255,255,0.03);
  --dfw-border: rgba(255,255,255,0.10);
  --dfw-border-strong: rgba(48,199,181,0.38);
}

/* --- WRAPPER (ALEMPI LAATIKKO) --- */
.dfw-wrap{
  /* 1. Keskitys ja maksimileveys isolle näytölle */
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  
  /* 2. Poistetaan sivupadding, jotta tausta menee reunaan asti */
  padding: 3rem 0 4rem;
  
  color: #ffffff;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(48,199,181,0.18), transparent 55%),
              radial-gradient(900px 500px at 90% 0%, rgba(0,172,151,0.14), transparent 50%),
              linear-gradient(180deg, rgba(20,38,28,0.98), rgba(20,38,28,0.92));
  border-radius: 18px;
  box-sizing: border-box; /* Varmistaa että paddingit eivät riko leveyttä */
}

/* Tekstit valkoiseksi */
.dfw-wrap h1,
.dfw-wrap h2,
.dfw-wrap h3,
.dfw-wrap h4,
.dfw-wrap p,
.dfw-wrap a{
  color:#ffffff !important;
}

.dfw-section + .dfw-section{
  margin-top: 3rem;
}

/* 3. TÄSSÄ on tekstin sisennys wrapperin sisällä */
.dfw-section {
  padding-left: 2rem;
  padding-right: 2rem;
}

.dfw-section h2{
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

/* ------------------------------
   LISTA & KORTIT
--------------------------------- */

.dfw-list{
  display:flex;
  flex-direction:column;
  gap: 1rem;
}

.dfw-item{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: var(--dfw-card);
  border: 1px solid var(--dfw-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}

.dfw-title{
  flex: 1 1 240px;
  font-size: 1rem;
  margin:0;
}

/* ------------------------------
   HINTA
--------------------------------- */

.dfw-price{
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  font-weight: 700;
}

.dfw-price-now{
  color: var(--dfw-mint) !important;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

/* ------------------------------
   NAPIT
--------------------------------- */

.dfw-actions{
  display:flex;
  flex-wrap:wrap;
  gap: 0.5rem;
  margin-left:auto;
}

.dfw-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration:none;
  border: 1px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease, border-color 0.15s ease;
  white-space:nowrap;
}

.dfw-btn.info{
  background: transparent;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.30);
}

.dfw-btn.cart{
  background: linear-gradient(135deg, var(--dfw-mint), var(--dfw-teal));
  color: #08130f !important;
  border-color: rgba(0,0,0,0.0);
}

.dfw-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

/* ------------------------------
   MOBIILI
--------------------------------- */
@media (max-width: 768px){
  .dfw-item{ align-items:flex-start; }
  .dfw-actions{ margin-left:0; }
  
  /* Mobiilissa hieman pienempi sisennys reunoilla */
  .dfw-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ------------------------------
   KELLUVA OSTOSKORI-ILMOITUS
--------------------------------- */

.dfw-cart-toast{
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 9999;
  background: rgba(20,38,28,0.96);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 12px 34px rgba(0,0,0,0.55);
  border: 1px solid var(--dfw-border-strong);
  display:none;
  max-width: 280px;
  font-size: 0.92rem;
}

.dfw-cart-toast-title{
  font-weight: 800;
  margin-bottom: 0.25rem;
  color:#ffffff;
}

.dfw-cart-toast-link{
  font-size: 0.86rem;
  text-decoration: underline;
  color: var(--dfw-mint) !important;
}

.dfw-cart-toast.dfw-cart-toast--visible{
  display:block;
}

@media (max-width: 600px){
  .dfw-cart-toast{
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    max-width:none;
  }
}

/* ------------------------------
   DF HERO – ARVONTA
--------------------------------- */

.dfw-hero{
  padding: 2.5rem 0 1.5rem;
  background: transparent;
}

/* --- HERO INNER (Sama logiikka kuin wrapper) --- */
.dfw-hero-inner {
  /* 1. Tismalleen samat mitat kuin wrapperissa */
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  
  /* 2. Ei paddingia -> tausta leviää */
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.dfw-hero-content{
  margin: 0;
  background: linear-gradient(180deg, rgba(20,38,28,0.96), rgba(20,38,28,0.92));
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 22px;
  
  /* 3. Sisäinen padding pitää tekstin ilmavana */
  padding: 2.5rem 2.5rem 2.8rem;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
}

/* Hero-tekstien värit */
.dfw-hero h1,
.dfw-hero h2,
.dfw-hero h3,
.dfw-hero p,
.dfw-hero a,
.dfw-hero li{
  color: #ffffff !important;
}

.dfw-hero-badge{
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: rgba(48,199,181,0.18);
  color: #30C7B5 !important;
}

.dfw-hero-title{
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: #ffffff !important;
}

.dfw-hero-lead{
  font-size: 1.05rem;
  max-width: 720px;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.85) !important;
}

.dfw-hero-points{
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.5rem;
}

.dfw-hero-points li{
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9) !important;
}

.dfw-hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.dfw-hero-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.dfw-hero-btn.primary{
  background: linear-gradient(135deg, #30C7B5, #00AC97);
  color: #08130f !important;
}

.dfw-hero-btn.secondary{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #ffffff !important;
}

.dfw-hero-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

.dfw-hero-note{
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55) !important;
}

@media (max-width: 768px){
  .dfw-hero{
    padding: 1.8rem 0 1rem;
  }
  
  .dfw-hero-content{
    padding: 1.6rem 1.4rem 1.9rem;
  }
  
  .dfw-hero-title {
    /* Estää tekstin menemisen reunan yli */
    overflow-wrap: break-word;
    word-wrap: break-word;

    /* Kytkee automaattisen tavutuksen päälle */
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto; 
  }
}

/* Fuengirola-napin tyyli */
.dfw-hero-btn.fuge {
  background: rgba(255, 255, 255, 0.1); /* Hieman vaaleampi tausta */
  border: 1px solid rgba(255, 255, 255, 0.6); /* Kirkkaampi reuna kuin info-napissa */
  color: #ffffff !important;
}

.dfw-hero-btn.fuge:hover {
  background: #ffffff;
  color: #14261C !important; /* Teksti tummaksi hoverissa */
  border-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

/* --- MODAALI --- */

.dfw-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000; /* Päällä kaiken */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Kun modaali on auki (JS lisää tämän luokan) */
.dfw-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.dfw-modal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px); /* Tyylikäs sumennus taustalle */
}

.dfw-modal-container {
  position: relative;
  width: 90%;
  max-width: 500px;
  background: #14261C; /* Sama tumma vihreä kuin teemassa */
  border: 1px solid rgba(48,199,181,0.3); /* Minttu reunus */
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  transform: translateY(20px);
  transition: transform 0.2s ease;
  z-index: 2;
}

.dfw-modal.is-open .dfw-modal-container {
  transform: translateY(0);
}

.dfw-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: color 0.2s;
}

.dfw-modal-close:hover {
  color: #ffffff;
}

.dfw-modal-content h3 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1rem;
}

.dfw-modal-content p,
.dfw-modal-content li {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  line-height: 1.5;
}

.dfw-modal-content strong {
  color: #30C7B5; /* Minttu korostus */
}

.dfw-modal-content ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Lisää tämä CSS:n alkuun, jos siellä ei vielä ole */
html {
  scroll-behavior: smooth; /* Tekee vierityksestä liukuvan */
}

/* Tämä varmistaa, että kun linkkiä klikataan, se jättää hieman tilaa yläpuolelle */
#dfw-webinaarit {
  scroll-margin-top: 2rem; /* Säädä tarvittaessa */
}/* End custom CSS */