/* =======================================
   Komponentit – dividerit, herot, kortit, FAQ, footer
   Jo Designs
======================================= */

/* ==  Väliotsikot & siirtymäosiot == */
.section-divider {
  background: linear-gradient(180deg, #f6f7f3 0%, #fff 100%);
  border-top: 1px solid rgba(158,161,132,0.25);
}

.divider-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #3a2f2a;
  margin-bottom: 1rem;
  position: relative;
 text-align:center;
}

.divider-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background-color: #d3b8aa;
  display: block;
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-transition-hero {
  background-color: #f4f1ec;
  padding: 80px 20px;
  text-align: center;
}

.section-transition-hero h2 {
  font-family: var(--font-heading);
  color: #3a2f2a;
  margin-bottom: 1rem;
}

.section-transition-hero p {
  font-size: 1.1rem;
  color: #5a524c;
  max-width: 600px;
  margin: 0 auto;
}

.web-mini-note {
  font-size: 0.95rem;
  color: #604573;
  font-style: italic;
  margin-top: -0.4em;
  margin-bottom: 2em;
}

.web-mini-cta {
 text-align: center;
}

.web-mini-cta p {
 font-family: var(--font-body);
 max-width: 900px;
 line-height: 1.6;
/*padding: clamp(0.6rem, 1vw + 0.4rem, 0.9rem) clamp(1.2rem, 1.8vw + 0.5rem, 1.8rem);*/
	text-align: center;
	margin: 0 auto;
}

.herolead { 
text-align: center;
font-size: 1.05rem;
margin-bottom: 2em;
}

/*---- hinnat -----*/

.price {
  font-family: var(--font-body);
  font-weight: 600;
  color: ;
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

/* Hintahuomautus tai pieni lisäteksti */
.note {
  font-size: 0.9rem;
  color: #555;
  background: #f5f1eb;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 10px;
  font-family: var(--font-body);
}

/* ==== ETUSIVU ===== */
.hero-section {
  text-align: center;
  color: #2c2c2c;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-sizing: border-box;
}

.hero-intro__text h1 span {
  display: block;
 font-family: var(--font-heading);
}

.hero-intro__text {
  max-width: 700px;
  width: 90%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  padding: 60px 20px 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  box-sizing: border-box;
  text-align: center;
}

/* Otsikot */
.hero-intro__text .eyebrow {
  display: block;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: #b9955d;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.hero-intro__text p {
  font-family: var(--font-body);
  color: #444;
  margin-bottom: 2rem;
}

.herosub {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--editorial-soft); /* esim. #777 tai lämmin harmaa */
  letter-spacing: 0.02em;
}

/* Mobiili */
@media (max-width: 768px) {
  .hero-section {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 40px 16px !important;
  box-sizing: border-box;
  overflow: hidden;
  }
		
  .hero-intro__text {
   max-width: 100%;
    padding: 24px 16px;
    border-radius: 0; /* jos käytössä */
  }
}

.hero-intro__text h1 br {
  display: block;
}

@media (max-width: 768px) {
  .hero-intro__text h1 br {
    display: none;
  }
}

/* = HELLO-BLOCK = */
.hello-block {
  position: relative;
  overflow: hidden;
  background: #f9f9f9 url('https://jo-designs.net/wp-content/uploads/2025/10/elegant_marble_background_with_gold_glitter_2605-scaled-e1760091937502.jpg') center/cover no-repeat;
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.hello-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
}

.hello-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  pointer-events: none;
  z-index: 1;
}

.hello-block::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 100%);
  pointer-events: none;
  z-index: 2;
}

.hello-heading {
  font-family: var(--font-heading);
  font-style: italic;
  max-width: 850px;
	letter-spacing: 0;             
  line-height: 1.25;             
  font-weight: 500;               
  margin-bottom: 0.6em;
}

.hello-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
}

.hello-columns p {
  color: #444;
  margin: 0;
}

/* --- Mobiili ja saavutettavuus --- */
@media (max-width: 900px) {
  .hello-block {
    padding: 60px 16px 50px;
    text-align: center;
  }

.hello-heading {
    font-size: 1.5rem;
  }

  .hello-block::after {
    height: 50px;
  }

  /* Palstat päällekkäin */
  .hello-columns {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .hello-columns p {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* --- Kenelle -- */
.for-who-split {
  width: 100%;
  background-color: #fdf7f6;
  display: flex;
  align-items: center;
  min-height: 600px; /* Voit säätää haluamaksesi korkeudeksi */
  padding: 0;
}

/* --- SISÄINEN GRID --- */
.for-who-split .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  gap: 0; 
  width: 100%;
  align-items: stretch;
}

.for-who__image {
  height: 100%;
}

.for-who__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.for-who__content {
  background-color: #ffffff;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* --- TYPOGRAFIA --- */
.for-who__content .eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b7956e;
  display: block;
}

.for-who__content h3 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
	margin-top: 0.95rem;
	color: var(--color-accent);
	line-height: 1.5;
}

.for-who__content ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.5rem 0;
}

.for-who__content ul li {
  position: relative;
  margin-bottom: 0.8rem;
  padding-left: 1.4rem;
  font-family: var(--font-body);
}

.for-who__content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background-color: #b7956e;
  border-radius: 50%;
}

.for-who__content p {
  font-family: var(--font-body);
  margin-bottom: 1.5rem;
}

/* --- NAPPI --- */
.cta-buttons {
  margin-top: 1rem;
}

/* --- MOBIILINA ALLEKKAIN --- */
@media (max-width: 768px) {
  .for-who-split .inner {
    grid-template-columns: 1fr;
  }

  .for-who__image {
    order: -1;
  }

  .for-who__content {
    padding: 40px 24px;
  }

  .for-who__content h3 {
    font-size: 1.2rem;
  }

  .for-who-split {
    min-height: auto;
    padding: 40px 0;
  }
}

.servicesfront {
  text-align: center;
  margin: 0 auto 3rem;
  padding: 0 1rem;
  max-width: 900px;
}

.servicesfront h2 {
  font-size: 2.2rem;
  color: var(--violet);
  margin-bottom: 1.2rem;
}

.servicesfront .lead {
  max-width: 900px;
  margin: 1 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .servicesfront h2 {
    font-size: 1.7rem;
  }
  .servicesfront .lead {
    font-size: 1rem;
    line-height: 1.65;
  }
}

/* ==== PALVELUKORTIT ==== */

.jo-offer__grid--two {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* aina 2 saraketta */
  gap: 1.8rem;
  max-width: 1150px;
  margin: 70px auto 0;
  padding: 0 20px;
}

/* Mobiilissa yksi per rivi */
@media (max-width: 900px) {
  .jo-offer__grid--two {
    grid-template-columns: 1fr;
    gap: 26px;
    max-width: 94%;
  }
}

/* ==== PALVELUKORTIT ==== */

/* Kortti – perusmuotoilu */
.jo-offer__card {
  position: relative;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  border: 1px solid #b9955d;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 1;
  transform: none; 
}

/* Hover-efekti */
.jo-offer__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  background-color: #f5f1eb;
}

/* Klikattava linkki koko kortille */
.jo-offer__card .stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-indent: -9999px;
}

.jo-offer__body,
.jo-offer__title,
.jo-offer__text,
.jo-btn {
  position: relative;
  z-index: 2;
}

/* Kuva */
.jo-offer__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.05) contrast(0.95) saturate(0.95) sepia(0.03);
}

/* Sisältö */
.jo-offer__body {
  padding: 2rem 1.6rem 2.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Eyebrow */
.jo-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9955d;
  margin-bottom: 0.6rem;
}

/* Otsikko */
.jo-offer__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 1rem 0 0.75rem;
  color: #604573 !important;
  text-align: left;
  position: relative;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Teksti */
.jo-offer__text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 0.3rem;
  flex-grow: 1;
}

/* Tiivistetään listan aloitusta */
.jo-offer__card ul {
  padding-left: 1.2rem;
}

/* Otsikko ja johdanto yläpuolella */
.jo-offer h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: #604573;
  text-align: center;
  margin-bottom: 1.2rem;
  line-height: 1.3;
  position: relative;
}

/* Yleinen johdantoteksti otsikon alla */
.jo-offer > p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #555;
  text-align: center;
  max-width: 750px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* Korttien sisäiset kappaleet */
.jo-offer__card p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #555;
  text-align: left;
  margin-bottom: 0.6rem;
  line-height: 1.8;
  max-width: 100%; /* tai poista kokonaan */
}

.jo-offer__card .jo-link {
  display: inline-block;
  margin-top: 1.2rem;
  position: relative;
  padding-top: 1rem;
}

.jo-offer__card .jo-link::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background-color: rgba(96, 69, 115, 0.25);
  margin: 0 auto 0.8rem;
}

.jo-offer__card ul {
  max-width: 750px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.jo-offer__card li {
  margin-bottom: 0.35rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: #555;
  line-height: 1.8;
}

/* Responsiivisuus */

@media (max-width: 900px) {
  .jo-offer__card {
    border-width: 1px;
    padding: 0;
  }

  .jo-offer__body {
    padding: 1.6rem 1.4rem 2rem;
  }

  .jo-offer__title {
    font-size: 1.15rem;
    hyphens: none;
    word-break: normal;
  }

  .jo-offer__card p,
  .jo-offer__card li {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .jo-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }

  .jo-offer__img {
    height: 180px;
  }
}

/* ===  CTA – Etusivu ==== */
.cta-final {
  background: 
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
    url('https://jo-designs.net/wp-content/uploads/2026/02/marblebg-1.webp')
    center/cover no-repeat;
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid #b9955d;
  border-bottom: 1px solid rgba(185,149,93,0.2);
  color: #3a1460;
	margin-bottom: 0;
}

.cta-final__inner {
  max-width: 760px;
  margin: 0 auto;
}

.cta-final h2 {
  font-family: var(--font-heading);
  color: #604573;
  margin-bottom: 1.2rem;
}

.cta-final p {
  font-family: var(--font-body);
  color: #333;
  margin: 1.5rem auto 2.5rem;
  max-width: 720px;
}

/* === CTA – Alasivujen kompakti ===== */
.cta-section {
  background-color: #f4f6f2; /* vaalea sage brush */
  border-top: 4px solid #b7c5a6;
  text-align: center;
  padding: 50px 20px;
  margin: 0;
}

.cta-section h2 {
  font-family: var(--font-heading);
  color: #3a1460;
  margin-bottom: 1rem;
}

.cta-section p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #333;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* ===   FAQ / USEIN KYSYTYT === */

/* Perusrakenne */
.jo-faq {
  padding: 80px 20px;
  text-align: left;
  background-color: var(--color-cream);
}

.faq-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-align: center;
  color: var(--golden-ochre)!important;
  margin-bottom: 3rem;
  position: relative;
}

.faq-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent-color, #B9955D);
  margin: 12px auto 0;
  border-radius: 2px;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 0;
  margin-bottom: 0; 
  overflow: hidden;
  box-shadow: none;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.faq-item:first-of-type {
  border-top: 1px solid rgba(0,0,0,0.08);
}

.faq-item:last-of-type {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Summary (otsikko) */
.faq-item summary {
  cursor: pointer;
  padding: 1.2rem 1.5rem 1.2rem 2.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: #2E2E2E;
  position: relative;
  display: flex;
  align-items: center;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Ikoni vasemmalle */
.faq-item summary i {
  color: var(--accent-color, #B9955D);
  font-size: 1.1rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

/* Plus / X merkki oikealle */
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  font-size: 1.2rem;
  color: var(--accent-color, #B9955D);
  font-weight: 700;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item[open] summary::after {
  content: "×";
  transform: rotate(90deg);
  color: #604573;
}

/* Vastauksen teksti */
.faq-item p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  background: #fff;
  margin: 0;
  padding: 1rem 2rem 1.5rem 3.4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item ul {
  margin: 0.5rem 0 1rem 4.8rem;
  padding: 0;
  list-style-position: outside;
}

.faq-item li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

/* Hover ja focus */
.faq-item summary:hover,
.faq-item summary:focus-visible {
  background-color: rgba(0,0,0,0.03);
  outline: none;
}

/* Responsiivisuus */
@media (max-width: 600px) {
  .jo-faq {
    padding: 40px 4vw;
    background-color: var(--color-cream);
  }

  .jo-faq .faq-item {
    margin: 0;
    border-radius: 4px;
    border-left: none;
    border-right: none;
  }

  .jo-faq .faq-item summary {
    padding: 0.9rem 0.8rem 0.9rem 1.4rem;
    font-size: 0.97rem;
  }

  .jo-faq .faq-item p {
    padding: 1rem 1.4rem 1.2rem 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .faq-title {
    font-size: 1.55rem;
    margin-bottom: 2rem;
    text-align: center;
    padding: 0 4vw;
  }
}

/* ==============================
   TEMAATTISET VÄRIT
============================== */

/* Brändi */
.theme-brand .jo-faq {
  background: var(--color-cream);
  --accent-color: var(--color-golden-ochre);
}

/* Palvelut (yleinen palvelusivu) */
.theme-services .jo-faq {
  background: var(--color-sand-dune);
  --accent-color: var(--color-golden-ochre);
}

/* ======================================
   Accessibility-safe FAQ animations
====================================== */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item p,
  .faq-item ul,
  .faq-item ol {
    animation: fadeIn 0.3s ease;
  }
}

/* FOOTER */
.site-footer {
  margin-top: 0 !important;
  padding-top: 30px;
}
		
/* ===== FOOTER MOBILE ===== */
@media (max-width: 768px) {
  footer, 
  #colophon, 
  .site-footer {
    padding-left: 25px !important;
    padding-right: 25px !important;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  /* Jos footerin sisällä on tekstiblokkeja tai rivejä */
  .site-footer .widget,
  .site-footer .textwidget,
  .site-footer .panel-grid,
  .site-footer .panel-grid-cell {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

.site-info {
  display: none !important;
}
