/* =========================
   Sataman Parkkitalo — Scandi Premium (LIGHT + FAST)
   Replace your whole style.css with this
   ========================= */

:root{
  --bg:#070A10;
  --surface: rgba(255,255,255,.06);
  --surface2: rgba(255,255,255,.04);
  --border: rgba(255,255,255,.10);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);

  --accent:#A7F3D0;

  --radius: 18px;
  --radius-lg: 22px;

  --shadow: 0 14px 40px rgba(0,0,0,.42);
  --shadow-soft: 0 10px 26px rgba(0,0,0,.32);

  --max: 1150px;
  --pad: clamp(16px, 3vw, 28px);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color: var(--text);
  background:
     radial-gradient(900px 520px at 12% 0%, rgba(167,243,208,.10), transparent 60%),
     radial-gradient(900px 520px at 100% 10%, rgba(120,150,255,.08), transparent 58%),
     var(--bg);
}

/* safe images */
img{
  max-width:100%;
  height:auto;
  display:block;
}

/* ===== Layout ===== */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section{
  padding: clamp(34px, 5vw, 56px) 0;
}

.section h2{
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.meta{
  margin: 0 0 18px;
  color: var(--muted);
}

/* ===== Hero ===== */
.hero{
  position: relative;
  min-height: 72vh;
  display:flex;
  align-items:flex-end;
  padding: 64px 0 54px;
  overflow:hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.08);
  background-image: url("/static/images/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
     radial-gradient(circle at 50% 35%, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.85) 100%),
     linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.18));
  pointer-events:none;
}

.hero-logo{
  position:absolute;
  top: 18px;
  left: 18px;
  width: 90px;
  max-width: 90px;
  height:auto;
  z-index: 2;
  opacity: .95;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.60));
  pointer-events:none;
}

.hero-inner{
  position:relative;
  z-index: 1;
  width:100%;
  text-align:center;
  padding: 0 var(--pad);
}

.hero-title{
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 900;
  text-shadow: 0 12px 30px rgba(0,0,0,.65);
}

.hero-sub{
  margin: 0 auto 18px;
  max-width: 70ch;
  color: rgba(255,255,255,.82);
  text-shadow: 0 10px 28px rgba(0,0,0,.65);
}

.hero-actions{
  display:flex;
  gap: 12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top: 18px;
}

/* ===== Pills (address etc) ===== */
.pill{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding: .48rem .9rem;
  border-radius: 999px;
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: .92rem;
  box-shadow: var(--shadow-soft);
}

.address-pill{ margin-bottom: 14px; }

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: .78rem 1.15rem;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 800;

  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.34);
  color: rgba(255,255,255,.92);

  transition: transform .16s ease, background .16s ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,.52);
}

.btn.primary{
  background: rgba(167,243,208,.94);
  color: rgba(0,0,0,.86);
  border-color: rgba(167,243,208,.50);
}

.btn.primary:hover{ background: rgba(167,243,208,1); }

/* ===== Cards ===== */
.cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.card{
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--surface2));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
}

.card-img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  display:block;
  filter: saturate(1.04) contrast(1.03) brightness(.95);
}

.card-body{ padding: 16px 16px 18px; }

.card h3{
  margin: 0 0 8px;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

.price{
  margin: 6px 0 0;
  font-weight: 900;
  font-size: 2.2rem;
}

.price-sub{
  margin: 0 0 14px;
  color: var(--muted);
}

.card-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.88);
  font-weight: 750;
  font-size: .86rem;
}

.features{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap: 8px;
  color: rgba(255,255,255,.84);
}
.features li{
  display:flex;
  align-items:center;
  gap: 10px;
}
.features li::before{
  content:"✓";
  width: 20px;
  height: 20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: rgba(167,243,208,.12);
  border: 1px solid rgba(167,243,208,.22);
  color: rgba(167,243,208,.95);
  font-weight: 900;
}

.card.featured{
  border-color: rgba(167,243,208,.22);
  box-shadow: 0 18px 52px rgba(0,0,0,.52);
}

.recommend{
  position:absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-weight: 850;
  font-size: .86rem;
  box-shadow: var(--shadow-soft);
}

/* ===== Panels ===== */
.panel{
  background: linear-gradient(180deg, var(--surface), var(--surface2));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
  margin-bottom: 14px;
}

.steps{
  margin: 0 0 10px 18px;
  color: rgba(255,255,255,.88);
}

.note{ margin: 0; color: var(--muted); }

/* ===== Map ===== */
.map-wrap{
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow-soft);
}
.map{
  width:100%;
  height: 320px;
  border:0;
  display:block;
}

/* ===== Language switch (top-right) ===== */
.lang-switch{
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-soft);
}
.lang-btn{
  display:inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
.lang-btn:hover{ background: rgba(255,255,255,.10); }
.lang-btn.active{
  color: #0b0f14;
  background: rgba(167,243,208,.95);
  border-color: rgba(167,243,208,.35);
}

/* ===== Motion ===== */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
  .card, .btn{ transition:none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 640px){
  .hero{ min-height: 78vh; padding: 72px 0 44px; }
  .hero-logo{ width: 70px; max-width: 70px; top: 14px; left: 14px; }
  .hero-actions{ width:100%; }
  .btn{ width:100%; }
  .card-img{ height: 220px; }
  .map{ height: 280px; }
}

/* =========================
   FAQ
   ========================= */

/* whole group container */
.faq-group{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(10, 14, 20, .28);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

/* summary row (clickable header) */
.faq-group-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  cursor:pointer;
  list-style:none;
  user-select:none;
}

.faq-group-title::-webkit-details-marker{ display:none; }

/* kill any accidental pseudo markers */
.faq-group-title::before,
.faq-group-title::after{
  content: none !important;
}

/* title text inside */
.faq-group-title-text{
  font-weight: 900;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  letter-spacing: -0.02em;
}

/* pill button on the right (FI/EN style) */
.faq-toggle-pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-soft);
}

.faq-toggle-pill .faq-toggle-text-open,
.faq-toggle-pill .faq-toggle-text-closed{
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .2px;
  color: rgba(255,255,255,.90);
}

/* icon bubble inside pill */
.faq-toggle-icon{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);

  font-weight: 900;
  line-height: 1;

  transition: transform .18s ease;
}

/* show only the NEXT action (Avaa when closed, Sulje when open) */
.faq-group[open] .faq-toggle-text-closed{ display:none; }
.faq-group:not([open]) .faq-toggle-text-open{ display:none; }

/* rotate + into an X when open */
.faq-group[open] .faq-toggle-icon{
  transform: rotate(45deg);
}

/* meta under header */
.faq-group-meta{
  margin: 12px 0 14px;
  color: var(--muted);
}

/* tools row */
.faq-tools{
  margin: 10px 0 16px;
  display:flex;
  justify-content:flex-start;
}

/* "Avaa kaikki" should look like your pills */
.btn.faq-toggle-all{
  padding: .62rem 1rem;
  border-radius: 999px;
  font-weight: 900;
}

/* list of items */
.faq{
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

/* each Q/A item */
.faq-item{
  background: rgba(10, 14, 20, .38);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  overflow: hidden;
}

/* question row */
.faq-item > summary{
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item > summary::-webkit-details-marker{ display: none; }

/* plus/minus bubble on the right */
.faq-item > summary::after{
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  flex: 0 0 auto;
  font-weight: 900;
  transition: transform .18s ease;
}
.faq-item[open] > summary::after{
  transform: rotate(45deg);
}

/* hover */
.faq-item > summary:hover{
  background: rgba(255,255,255,.04);
}

/* answer area */
.faq-body{
  padding: 0 16px 14px;
  color: rgba(255,255,255,.82);
}
.faq-body p{
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
}

/* support block (only once, inside FAQ) */
.faq-support{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.faq-support-title{
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 900;
}
.faq-support-meta{
  margin: 0 0 14px;
}
.faq-support-mail{
  color: rgba(167,243,208,.95);
  text-decoration: none;
  font-weight: 900;
}
.faq-support-mail:hover{
  text-decoration: underline;
}

/* mobile tighten */
@media (max-width: 640px){
  .faq-item > summary{ padding: 13px 14px; }
  .faq-body{ padding: 0 14px 12px; }
  .faq-toggle-pill{ padding: 7px 10px; }
  .faq-toggle-icon{ width: 26px; height: 26px; border-radius: 10px; }
}
/* ===== FAQ toggle värit (Avaa = vihreä, Sulje = punainen) ===== */

.faq-toggle-btn{
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

/* AVATTUNA = SULJE (punainen) */
.faq-group[open] .faq-toggle-btn{
  background: rgba(255, 90, 90, .12);
  border-color: rgba(255, 90, 90, .35);
  color: rgba(255, 140, 140, .95);
}

/* SULJETTUNA = AVAA (vihreä) */
.faq-group:not([open]) .faq-toggle-btn{
  background: rgba(167,243,208,.15);
  border-color: rgba(167,243,208,.45);
  color: rgba(167,243,208,.95);
}

/* hover vähän vahvempi */
.faq-toggle-btn:hover{
  filter: brightness(1.1);
}
/* ===== FAQ toggle värit (Avaa = vihreä, Sulje = punainen) ===== */

.faq-toggle-btn{
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

/* AVATTUNA = SULJE (punainen) */
.faq-group[open] .faq-toggle-btn{
  background: rgba(255, 90, 90, .12);
  border-color: rgba(255, 90, 90, .35);
  color: rgba(255, 140, 140, .95);
}

/* SULJETTUNA = AVAA (vihreä) */
.faq-group:not([open]) .faq-toggle-btn{
  background: rgba(167,243,208,.15);
  border-color: rgba(167,243,208,.45);
  color: rgba(167,243,208,.95);
}

/* hover vähän vahvempi */
.faq-toggle-btn:hover{
  filter: brightness(1.1);
}
/* ===== FAQ toggle värit (Avaa = vihreä, Sulje = punainen) ===== */

/* AVAA (kun FAQ kiinni) */
details.faq-group:not([open]) summary .faq-toggle-pill{
  background: rgba(167,243,208,.18);
  border-color: rgba(167,243,208,.50);
  color: rgba(167,243,208,.98);
}

/* SULJE (kun FAQ auki) */
details.faq-group[open] summary .faq-toggle-pill{
  background: rgba(255,90,90,.16);
  border-color: rgba(255,90,90,.45);
  color: rgba(255,150,150,.98);
}

/* Hover */
details.faq-group summary .faq-toggle-pill:hover{
  filter: brightness(1.08);
}
