/* ==========================================================================
   Seniorclub.fi — shared stylesheet
   Palette taken from the Seniorclub gold logo; layout structure adapted
   from the Plasmaxis reference build (sticky header, dropdown nav, card
   grid). Type scale enlarged and contrast raised for a 60+ audience.
   ========================================================================== */

:root{
  --gold-900:#101B45;   /* deep navy — headings on light bg (palette: light blue / navy / white / gold) */
  --gold-800:#1B2E6B;
  --gold-700:#8F6519;   /* primary gold-bronze — buttons, links */
  --gold-600:#C4922F;
  --gold-500:#C4922F;
  --gold-400:#EFCB7C;
  --gold-300:#F7E4B4;
  --cream-100:#DCE8F5;   /* light blue tint (was cream) */
  --cream-050:#EEF4FB;   /* very light blue (was cream) */
  --ink:#14204F;
  --muted:#4B5A7A;
  --white:#FFFFFF;
  --line:#CBDAEC;
  --sky:#4C7A96;        /* small cool accent, echoes the "Mieli" photography */
  --jade-deep:#101B45;  /* brand navy (from seniorclub.fi header #162662) — CTA band, footer, dark panels */
  --jade:#1B2E6B;       /* brand navy, mid tone (site primary #162662) */
  --jade-light:#5C74C7; /* lighter navy tint for accents/badges */
  --brand-red:#DD3333;  /* brand secondary red (from seniorclub.fi customizer) — sparing use only */
  --brand-blue:#6FA6D4;      /* real seniorclub.fi section background (sampled from live site) */
  --brand-blue-deep:#4A80B0; /* darker blue for gradient depth on hero/programs */
  --glass-bg: rgba(255,255,255,0.55);
  --glass-border: rgba(239,203,124,0.55);
  --glass-shadow: 0 8px 32px rgba(16,27,69,0.25);
  --shadow: 0 20px 46px -22px rgba(16,27,69,0.35);
  --radius: 16px;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth; overflow-x:hidden; width:100%;}
body{
  font-family:'Nunito Sans', 'Segoe UI', sans-serif;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  width:100%;
  font-size:18px;
  line-height:1.6;
}
p{max-width:65ch;}
img,svg{display:block; max-width:100%;}
*{min-width:0;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
h1,h2,h3,h4{font-family:'Fraunces', 'Georgia', serif; font-weight:600; line-height:1.2; color:var(--gold-900);}
h2{font-size:clamp(1.7rem, 2.6vw, 2.4rem);}
h3{font-size:1.3rem;}
.eyebrow{
  font-size:0.85rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--gold-600);
}
.container{max-width:1200px; margin:0 auto; padding:0 28px;}
section{position:relative;}
.section-pad{padding:72px 0;}
@media (max-width:640px){ .section-pad{padding:48px 0;} }
.section-head{max-width:680px; margin:0 auto 44px; text-align:center;}
.section-head p{margin:14px auto 0; color:var(--muted); font-size:1.08rem;}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:16px 30px; border-radius:50px; font-weight:700; font-size:1rem;
  cursor:pointer; border:2px solid transparent; transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space:nowrap; text-align:center;
}
.btn:hover{transform:translateY(-2px);}
.btn-primary{background:var(--gold-700); color:#fff; box-shadow:0 14px 26px -12px rgba(140,90,40,.55);}
.btn-primary:hover{background:var(--gold-800);}
.btn-ghost{background:#fff; color:var(--gold-700); border-color:var(--gold-400);}
.btn-ghost:hover{border-color:var(--gold-700); box-shadow:0 10px 20px -12px rgba(140,90,40,.3);}
.btn-outline-light{background:transparent; color:#fff; border-color:rgba(255,255,255,.7);}
.btn-outline-light:hover{background:rgba(255,255,255,.15);}
.btn-block{width:100%; justify-content:center;}
@media (max-width:520px){
  .btn{white-space:normal; width:100%;}
}

/* ===== Topbar ===== */
.topbar{background:var(--jade-deep); color:var(--cream-100); font-size:0.86rem;}
.topbar .container{display:flex; align-items:center; justify-content:space-between; height:44px;}
.topbar-left{display:flex; align-items:center; gap:22px; flex-wrap:wrap;}
.topbar-left a{display:flex; align-items:center; gap:6px; opacity:.92;}
.topbar-left a:hover{opacity:1;}
.topbar-right{display:flex; align-items:center; gap:14px;}
.lang-link{display:flex; align-items:center; gap:6px; opacity:.75; font-weight:700; letter-spacing:.02em;}
.lang-link img{width:18px; height:13px; border-radius:2px;}
.lang-link.active,.lang-link:hover{opacity:1;}
@media (max-width:760px){
  .topbar-left .hide-sm{display:none;}
  .topbar .container{gap:10px;}
}
@media (max-width:480px){
  .lang-link span.lang-text{display:none;}
  .topbar-right{gap:10px;}
}

/* ===== Nav (dark navy bar, gold logo) ===== */
header.site-header{
  position:sticky; top:0; z-index:50; padding:0;
  background:linear-gradient(180deg, #14225A 0%, var(--jade-deep) 100%);
  border-bottom:2px solid transparent;
  border-image:linear-gradient(90deg, rgba(196,146,47,0) 0%, #C4922F 20%, #F7E4B4 50%, #C4922F 80%, rgba(196,146,47,0) 100%) 1;
  box-shadow:0 10px 30px -14px rgba(16,27,69,.55);
}
header.site-header .container{max-width:1320px; padding-left:26px; padding-right:20px;}
nav.main-nav{display:flex; align-items:center; justify-content:space-between; height:96px; gap:16px;}
.logo{display:flex; align-items:center; gap:12px; flex-shrink:0; position:relative;}
.logo img{height:68px; width:auto; opacity:0;} /* stays in the DOM for alt text + layout; the gold is painted by ::before */
/* logo painted as a shimmering gold gradient through its own alpha mask */
.logo::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  -webkit-mask:url(/assets/images/logo.png?v=3) left center/contain no-repeat;
          mask:url(/assets/images/logo.png?v=3) left center/contain no-repeat;
  background:linear-gradient(105deg,#A8741C 0%,#E9C46A 18%,#FFF4C9 30%,#D9A93F 44%,#9A6B18 58%,#F0CE7A 74%,#FFF4C9 84%,#B98425 100%);
  background-size:260% 100%;
  animation:logoGold 8s ease-in-out infinite alternate;
}
@keyframes logoGold{0%{background-position:0% 0;} 100%{background-position:100% 0;}}
@media (prefers-reduced-motion:reduce){ .logo::before{animation:none; background-position:30% 0;} }
.nav-links{display:flex; align-items:center; gap:22px; flex-wrap:wrap;}
.nav-links a{font-size:0.98rem; font-weight:700; color:#EAF1FB; opacity:.9; position:relative; padding:8px 0; white-space:nowrap;}
.nav-links a:hover{opacity:1; color:var(--gold-400);}
.nav-links a.active,.nav-links a[aria-current="page"]{opacity:1; color:var(--gold-400);}
.nav-links a.active::after,.nav-links a[aria-current="page"]::after{content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background:var(--gold-400); border-radius:2px;}
.nav-cta{display:flex; align-items:center; gap:14px; flex-shrink:0;}
.nav-cta .phone{font-weight:700; color:var(--gold-300); white-space:nowrap;}
@media (max-width:1500px){ .nav-cta .phone{display:none;} .nav-links{gap:18px;} }
.burger{display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none;}
.burger span{width:26px; height:3px; background:var(--gold-400); border-radius:2px;}

.nav-contact-li{display:none;}
.nav-dropdown{position:relative;}
.nav-dropdown > a{display:inline-flex; align-items:center; gap:4px;}
.nav-dropdown .chev{transition:transform .2s ease; width:12px; height:12px;}
.nav-dropdown:hover .chev{transform:rotate(180deg);}
.dropdown-menu{
  position:absolute; top:100%; left:0; transform:translateY(8px);
  background:#14225A; border:1px solid rgba(239,203,124,.35); border-radius:14px;
  box-shadow:0 22px 44px -18px rgba(5,10,40,.7); padding:10px; min-width:300px; z-index:80;
  opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu{opacity:1; pointer-events:auto; transform:translateY(4px);}
.dropdown-menu a{display:block; padding:11px 14px; border-radius:10px; font-size:0.94rem; font-weight:600; color:#EAF1FB; opacity:.92; white-space:normal;}
.dropdown-menu a:hover{opacity:1; background:rgba(239,203,124,.14); color:var(--gold-400);}

@media (max-width:1360px){
  .nav-links{
    position:fixed; top:140px; left:0; right:0; bottom:0; background:var(--jade-deep);
    flex-direction:column; flex-wrap:nowrap; align-items:stretch; gap:0; padding:14px 24px 32px;
    transform:translateX(-100%); transition:transform .25s ease; overflow-y:auto;
  }
  .nav-links.open{transform:translateX(0);}
  .nav-links::-webkit-scrollbar{width:6px;}
  .nav-links::-webkit-scrollbar-thumb{background:var(--gold-600); border-radius:3px;}
  .nav-links > li > a{
    padding:16px 2px; border-bottom:1px solid rgba(239,203,124,.22);
    display:flex; align-items:center; justify-content:space-between; width:100%;
    line-height:1.3;
  }
  .nav-links a.active::after,.nav-links a[aria-current="page"]::after{display:none;}
  .dropdown-menu{
    position:static; transform:none; box-shadow:none; border:none; opacity:1; pointer-events:auto;
    display:none; background:rgba(255,255,255,.06); border-radius:12px; padding:8px; margin:8px 0 12px;
    min-width:0;
  }
  .nav-dropdown.open .dropdown-menu{display:block;}
  .dropdown-menu a{border-bottom:none; padding:13px 12px; font-size:0.92rem; border-radius:8px; line-height:1.3;}
  .burger{display:flex;}
  .nav-cta .phone{display:none;}
  .nav-contact-li{display:block;}
}
@media (max-width:520px){
  nav.main-nav{height:84px;}
  .logo img{height:54px;}
  .nav-links{top:128px;}
  .nav-cta{gap:8px;}
  .nav-cta .btn-primary{display:none;}
  header.site-header .container{padding-left:16px; padding-right:12px;}
}

/* ===== Hero ===== */
.hero{
  background:
    radial-gradient(1100px 480px at 88% -10%, rgba(255,255,255,.16), transparent 60%),
    linear-gradient(180deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%);
  padding:64px 0 56px;
  overflow:hidden;
}
.hero .container{display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center;}
@media (max-width:900px){ .hero .container{grid-template-columns:1fr; gap:36px;} .hero{padding:36px 0 40px;} }
.hero-eyebrow{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px;}
.hero-eyebrow span{font-size:0.8rem; font-weight:700; color:var(--jade-deep); background:#fff; padding:7px 14px; border-radius:8px; letter-spacing:.03em;}
.hero h1{font-size:clamp(2.1rem, 4vw, 3.2rem); max-width:13ch; color:#fff;}
.hero h1 em{font-style:italic; font-weight:500; color:var(--gold-300);}
.inner-hero h1 em{font-style:italic; font-weight:500; color:var(--gold-700);}
.hero-sub{margin-top:20px; font-size:1.15rem; color:#fff; opacity:.95; max-width:44ch; line-height:1.65;}
.hero-cta{display:flex; gap:16px; margin-top:34px; flex-wrap:wrap;}
@media (max-width:640px){ .hero-cta{flex-direction:column; align-items:stretch;} .hero-cta .btn{justify-content:center; text-align:center; width:100%;} }

.hero-visual{position:relative;}
.hero-photo{width:100%; aspect-ratio:4/3.1; object-fit:cover; border-radius:20px; box-shadow:0 30px 60px -22px rgba(62,44,21,.45);}
.hero-photo-badge{
  position:absolute; bottom:-18px; left:-18px; z-index:3; display:flex; align-items:center; gap:10px;
  background:#fff; padding:14px 20px; border-radius:14px; box-shadow:var(--shadow);
  font-size:0.92rem; font-weight:700; color:var(--gold-900); max-width:230px;
}
@media (max-width:900px){ .hero-photo-badge{left:14px; bottom:-14px;} }

/* ===== Mission strip ===== */
.mission-strip{background:var(--jade-deep); color:var(--cream-100); padding:30px 0;}
.mission-strip .container{display:flex; align-items:center; gap:20px; flex-wrap:wrap; justify-content:center; text-align:center;}
.mission-strip p{max-width:80ch; font-size:1.08rem; color:var(--cream-100); opacity:.95;}
.mission-strip strong{color:var(--gold-300);}

/* ===== Pillars (Muisti / Mieli / Liike) ===== */
.pillars{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:-46px; position:relative; z-index:5;}
@media (max-width:760px){ .pillars{grid-template-columns:1fr; margin-top:24px;} }
.pillar{background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:28px 26px; text-align:center;}
.pillar-icon{width:56px; height:56px; margin:0 auto 14px; border-radius:16px; background:var(--cream-100); display:flex; align-items:center; justify-content:center;}
.pillar-icon svg{width:28px; height:28px; color:var(--gold-700);}
.pillar h3{font-size:1.15rem; margin-bottom:6px;}
.pillar p{font-size:0.96rem; color:var(--muted); margin:0 auto;}

/* ===== Programs section — real seniorclub.fi sky-blue background ===== */
#programs{background:var(--brand-blue); position:relative;}
#programs .eyebrow{color:#fff; opacity:.9;}
#programs .section-head h2{color:#fff;}
#programs .section-head p{color:#fff; opacity:.92;}

/* ===== Program cards ===== */
.card-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px; margin-top:44px;}
@media (max-width:920px){ .card-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:620px){ .card-grid{grid-template-columns:1fr;} }
.prog-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column; transition:transform .2s ease, box-shadow .2s ease;}
.prog-card:hover{transform:translateY(-4px); box-shadow:0 28px 54px -22px rgba(62,44,21,.4);}
.prog-card .thumb{width:100%; aspect-ratio:4/2.7; object-fit:cover;}
.prog-card .body{padding:24px 24px 26px; display:flex; flex-direction:column; gap:10px; flex:1;}
.prog-card .tag{font-size:0.74rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--gold-600);}
.prog-card h3{font-size:1.22rem;}
.prog-card p{font-size:0.97rem; color:var(--muted); flex:1;}
.prog-card .more{font-weight:700; color:var(--gold-700); font-size:0.94rem; display:inline-flex; align-items:center; gap:6px; margin-top:4px;}
.prog-card .more svg{width:16px; height:16px;}

/* ===== Projects (Hanketoiminta) ===== */
.projects-list{display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:40px;}
@media (max-width:700px){ .projects-list{grid-template-columns:1fr;} }
.project-item{display:flex; gap:16px; align-items:flex-start; background:var(--cream-100); border-radius:14px; padding:20px 22px; border:1px solid var(--line);}
.project-item .num{font-family:'Fraunces',serif; font-weight:600; font-size:1.4rem; color:var(--gold-500); flex-shrink:0;}
.project-item h4{font-size:1.02rem; color:var(--gold-900); margin-bottom:4px;}
.project-item p{font-size:0.92rem; color:var(--muted);}

/* ===== Help / donate strip ===== */
.help-strip{position:relative; border-radius:24px; overflow:hidden; margin:0 auto; box-shadow:var(--shadow);}
.help-strip img{width:100%; height:100%; object-fit:cover; position:absolute; inset:0;}
.help-strip .overlay{position:relative; z-index:2; background:linear-gradient(90deg, rgba(16,27,69,.9) 0%, rgba(16,27,69,.64) 55%, rgba(16,27,69,.25) 100%); padding:56px 48px; min-height:320px; display:flex; flex-direction:column; justify-content:center; max-width:640px;}
.help-strip h2{color:#fff;}
.help-strip p{color:var(--cream-100); margin-top:14px; font-size:1.05rem;}
.help-strip .hero-cta{margin-top:26px;}
@media (max-width:760px){ .help-strip .overlay{padding:36px 24px; max-width:100%;} }

/* ===== Community gallery strip ===== */
.gallery-band{border-radius:24px; overflow:hidden; box-shadow:var(--shadow);}
.gallery-band img{width:100%; max-height:420px; object-fit:cover;}

/* ===== Testimonial / feedback teaser ===== */
.feedback-teaser{background:var(--cream-100); border-radius:24px; padding:48px; display:grid; grid-template-columns:1fr 1fr; gap:36px; align-items:center;}
@media (max-width:760px){ .feedback-teaser{grid-template-columns:1fr; padding:30px 22px;} }
.feedback-teaser blockquote{font-family:'Fraunces',serif; font-size:1.3rem; color:var(--gold-900); line-height:1.5;}
.feedback-teaser cite{display:block; margin-top:14px; font-style:normal; font-weight:700; color:var(--gold-700); font-size:0.95rem;}

/* ===== CTA band ===== */
.cta-band{background:linear-gradient(135deg, var(--jade-deep), var(--jade)); border-radius:28px; padding:56px 48px; text-align:center; color:#fff; position:relative; overflow:hidden;}
.cta-band::after{content:""; position:absolute; inset:0; background:radial-gradient(600px 300px at 85% 0%, rgba(239,203,124,.16), transparent 60%); pointer-events:none;}
.cta-band h2{color:#fff;}
.cta-band p{color:var(--cream-100); max-width:56ch; margin:14px auto 0;}
.cta-band .hero-cta{justify-content:center; margin-top:30px;}
@media (max-width:640px){ .cta-band{padding:38px 22px;} }

/* ===== Footer ===== */
footer.site-footer{background:var(--jade-deep); color:var(--cream-100); padding:64px 0 28px; margin-top:0;}
.footer-grid{display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:36px;}
@media (max-width:820px){ .footer-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:520px){ .footer-grid{grid-template-columns:1fr;} }
.footer-grid h4{color:var(--gold-300); font-size:0.85rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom:16px; font-family:'Nunito Sans',sans-serif;}
.footer-grid ul li{margin-bottom:10px;}
.footer-grid a{opacity:.85; font-size:0.95rem;}
.footer-grid a:hover{opacity:1;}
.footer-logo{height:72px; width:auto; margin-bottom:16px;}
.footer-about p{opacity:.8; font-size:0.92rem; max-width:32ch;}
.social-bar{display:flex; gap:12px; margin-top:20px; flex-wrap:wrap;}
.social-bar a{
  width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); color:var(--gold-300);
  transition:background .15s ease, transform .15s ease, color .15s ease;
}
.social-bar a svg{width:19px; height:19px;}
.social-bar a:hover{background:var(--gold-700); border-color:var(--gold-700); color:#fff; transform:translateY(-2px);}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15); margin-top:46px; padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:0.85rem; opacity:.7;}

/* ===== Inner pages ===== */
.breadcrumb{font-size:0.86rem; color:var(--muted); padding:18px 0; display:flex; gap:8px; flex-wrap:wrap; align-items:center;}
.breadcrumb a{color:var(--gold-700); font-weight:600;}
.breadcrumb span{opacity:.5;}

.inner-hero{background:linear-gradient(180deg, var(--cream-050) 0%, var(--white) 100%); padding:10px 0 56px;}
.inner-hero .container{display:grid; grid-template-columns:1.1fr 0.9fr; gap:48px; align-items:center;}
@media (max-width:900px){ .inner-hero .container{grid-template-columns:1fr; gap:28px;} }
.inner-hero .tag-row{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px;}
.inner-hero .tag-row span{font-size:0.76rem; font-weight:700; color:var(--gold-700); background:var(--cream-100); padding:6px 12px; border-radius:8px;}
.inner-hero h1{font-size:clamp(1.9rem, 3.4vw, 2.7rem); max-width:15ch;}
.inner-hero .lead{margin-top:16px; font-size:1.08rem; color:var(--muted); max-width:50ch; line-height:1.65;}
.inner-hero .hero-cta{margin-top:26px;}
.inner-hero img{width:100%; aspect-ratio:4/3.1; object-fit:cover; border-radius:20px; box-shadow:0 26px 54px -22px rgba(62,44,21,.4);}

.content-block{max-width:760px; margin:0 auto 40px;}
.content-block:last-child{margin-bottom:0;}
.content-block h2{font-size:1.5rem; margin-bottom:14px;}
.content-block p{color:var(--ink); font-size:1.03rem; line-height:1.7; margin-bottom:14px; max-width:70ch;}
.content-block ul.check-list{margin:14px 0; max-width:70ch;}
.content-block ul.check-list li{position:relative; padding-left:30px; margin-bottom:10px; color:var(--ink); font-size:1.01rem; line-height:1.55;}
.content-block ul.check-list li::before{content:"✓"; position:absolute; left:0; top:0; color:var(--gold-700); font-weight:800;}

.two-col{display:grid; grid-template-columns:1.3fr 0.9fr; gap:40px; align-items:start;}
@media (max-width:860px){ .two-col{grid-template-columns:1fr;} }

.info-box{background:var(--cream-100); border:1px solid var(--line); border-radius:18px; padding:26px 28px; position:sticky; top:116px;}
.info-box h3{font-size:1.05rem; margin-bottom:16px;}
.info-box dl{display:flex; flex-direction:column; gap:14px;}
.info-box dt{font-size:0.76rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--gold-600); margin-bottom:3px;}
.info-box dd{font-size:0.98rem; color:var(--ink); line-height:1.5;}
.info-box .btn{margin-top:18px;}

.quote-grid{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
@media (max-width:760px){ .quote-grid{grid-template-columns:1fr;} }
.quote-card{background:var(--cream-100); border-radius:16px; padding:24px 26px; border:1px solid var(--line);}
.quote-card p{font-family:'Fraunces',serif; font-size:1.05rem; color:var(--gold-900); line-height:1.55; font-style:normal;}
.quote-card cite{display:block; margin-top:12px; font-style:normal; font-weight:700; color:var(--gold-700); font-size:0.88rem;}

.related-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px;}
@media (max-width:900px){ .related-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:520px){ .related-grid{grid-template-columns:1fr;} }
.related-card{display:block; background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; transition:transform .2s ease, box-shadow .2s ease;}
.related-card:hover{transform:translateY(-3px); box-shadow:var(--shadow);}
.related-card img{width:100%; aspect-ratio:4/2.6; object-fit:cover;}
.related-card .rc-body{padding:14px 16px;}
.related-card .rc-body p{font-size:.9rem; font-weight:400; color:var(--muted); margin:6px 0 0; line-height:1.5;}
.related-card h4{font-size:0.96rem; color:var(--gold-900);}

.table-scroll{overflow-x:auto; -webkit-overflow-scrolling:touch; margin-top:10px; border-radius:14px;}
.schedule-table{width:100%; min-width:640px; border-collapse:collapse;}
.schedule-table th,.schedule-table td{text-align:left; padding:14px 16px; border-bottom:1px solid var(--line); font-size:0.98rem;}
.schedule-table th{font-size:0.78rem; text-transform:uppercase; letter-spacing:.06em; color:var(--gold-600); font-weight:700;}
.schedule-table tr:last-child td{border-bottom:none;}

/* Mobile: cards instead of a horizontally-scrolling table */
.schedule-cards{display:none;}
@media (max-width:700px){
  .table-scroll{display:none;}
  .schedule-cards{display:grid; gap:14px; margin-top:10px;}
  .schedule-card{background:var(--white); border:1px solid var(--line); border-radius:14px; padding:16px 18px;}
  .schedule-card .sc-day{font-size:0.78rem; text-transform:uppercase; letter-spacing:.06em; color:var(--gold-600); font-weight:700;}
  .schedule-card .sc-group{font-family:'Fraunces',serif; font-size:1.1rem; margin:4px 0 8px;}
  .schedule-card .sc-meta{font-size:0.95rem; color:var(--muted); display:flex; flex-direction:column; gap:2px;}
}

/* ===== Marquee ticker ===== */
.marquee{background:var(--cream-100); border-top:1px solid var(--line); border-bottom:1px solid var(--line); overflow:hidden; padding:18px 0; margin:44px 0;}
.marquee-track{display:flex; width:max-content; gap:0; animation:marquee-scroll 32s linear infinite;}
.marquee-track span{font-family:'Fraunces',serif; font-size:1rem; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); padding:0 22px; white-space:nowrap; display:flex; align-items:center; gap:22px;}
.marquee-track span.accent{color:var(--gold-700); font-weight:700;}
.marquee-track span::after{content:"·"; margin-left:22px; color:var(--gold-500);}
@keyframes marquee-scroll{ from{transform:translateX(0);} to{transform:translateX(-50%);} }
@media (prefers-reduced-motion: reduce){ .marquee-track{animation:none;} }

/* ===== Quote band with ghost text ===== */
.quote-band{background:var(--jade-deep); border-radius:28px; padding:80px 40px; text-align:center; position:relative; overflow:hidden;}
.quote-band .ghost-text{
  position:absolute; left:50%; bottom:-6%; transform:translateX(-50%);
  font-family:'Fraunces',serif; font-weight:700; font-size:clamp(4rem, 14vw, 11rem);
  color:rgba(255,255,255,0.05); white-space:nowrap; pointer-events:none; letter-spacing:-.02em;
}
.quote-band blockquote{position:relative; z-index:2; font-family:'Fraunces',serif; font-style:italic; font-weight:500;
  font-size:clamp(1.3rem, 2.4vw, 1.9rem); color:#fff; max-width:32ch; margin:0 auto; line-height:1.5;}
.quote-band cite{position:relative; z-index:2; display:block; margin-top:22px; font-style:normal; font-weight:700; color:var(--gold-300); font-size:0.92rem; letter-spacing:.04em; text-transform:uppercase;}
@media (max-width:640px){ .quote-band{padding:52px 22px;} }

/* ===== Contact block (info + form) ===== */
.contact-wrap{display:grid; grid-template-columns:0.85fr 1.15fr; gap:56px; align-items:start;}
@media (max-width:860px){ .contact-wrap{grid-template-columns:1fr; gap:36px;} }
.contact-info dl{display:flex; flex-direction:column; gap:24px;}
.contact-info dt{font-size:0.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--gold-600); margin-bottom:6px;}
.contact-info dd{font-size:1.15rem; color:var(--ink); line-height:1.5;}
.contact-info dd a{color:var(--ink);}
.contact-info dd a:hover{color:var(--gold-700);}

.contact-form-card{background:var(--cream-100); border:1px solid var(--line); border-radius:28px; padding:44px;}
@media (max-width:600px){ .contact-form-card{padding:26px 22px;} }
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:22px;}
@media (max-width:600px){ .form-grid{grid-template-columns:1fr;} }
.form-field{display:flex; flex-direction:column; gap:8px;}
.form-field.full{grid-column:1 / -1;}
.form-field label{font-size:0.92rem; font-weight:700; color:var(--gold-900);}
.form-field input, .form-field select, .form-field textarea{
  font-family:'Nunito Sans', sans-serif; font-size:1rem; color:var(--ink);
  background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 16px;
  width:100%; outline:none; transition:border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  border-color:var(--gold-500); box-shadow:0 0 0 3px rgba(196,146,47,.18);
}
.form-field textarea{resize:vertical; min-height:120px;}
.contact-form-card .btn-primary{width:100%; justify-content:center; margin-top:8px; border:none; cursor:pointer; font-size:1rem;}
.form-success{
  margin-top:16px; background:rgba(92,116,199,.16); border:1px solid var(--jade-light);
  color:var(--jade-deep); border-radius:14px; padding:16px 20px; font-weight:700; font-size:0.96rem;
  display:none; align-items:center; gap:10px;
}
.form-success.show{display:flex;}
.form-error{
  margin-top:16px; background:rgba(221,51,51,.1); border:1px solid var(--brand-red, #dd3333);
  color:#8a1d1d; border-radius:14px; padding:16px 20px; font-weight:700; font-size:0.96rem;
  display:none; align-items:center; gap:10px;
}
.form-error.show{display:flex;}
.form-note{font-size:0.8rem; color:var(--muted); margin-top:14px;}
.contact-form-card .btn-primary.is-loading{opacity:.7; cursor:wait;}
.hp-field{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden;}

/* Skip link for accessibility */
body.nav-open{overflow:hidden;}
.skip-link{position:absolute; left:-999px; top:auto; background:var(--gold-700); color:#fff; padding:12px 18px; border-radius:8px; z-index:999;}
.skip-link:focus{left:16px; top:16px;}

/* needs navigation (Läheisille / Löydä sopiva toiminta) */
.need-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:8px;}
.need-card{display:block; background:#fff; border:1px solid var(--line); border-radius:16px; padding:22px 22px 20px; text-decoration:none; color:var(--ink); transition:transform .15s, box-shadow .15s, border-color .15s;}
.need-card:hover,.need-card:focus-visible{transform:translateY(-2px); box-shadow:0 10px 26px rgba(16,27,69,.12); border-color:var(--brand-blue-deep);}
.need-card .need-label{display:block; font-family:'Fraunces',serif; font-weight:600; font-size:1.12rem; line-height:1.3; color:var(--jade-deep);}
.need-card .need-to{display:block; margin-top:12px; font-weight:700; font-size:.95rem; color:var(--gold-700);}
.need-card .need-to::after{content:" →";}
.need-unsure{margin-top:34px; background:var(--cream-100); border-radius:18px; padding:26px 28px; display:flex; gap:20px; align-items:center; justify-content:space-between; flex-wrap:wrap;}
.need-unsure h3{margin:0 0 6px; font-size:1.25rem;}
.need-unsure p{margin:0; color:var(--muted);}
.mini-schedule{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,1fr); gap:10px 28px;}
.mini-schedule li{padding:12px 0; border-bottom:1px solid var(--line); font-size:.98rem; line-height:1.45;}
.mini-schedule .ms-when{display:block; font-weight:700; color:var(--gold-700); font-size:.88rem;}
.home-link-band{display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap; background:#fff; border:1px solid var(--line); border-radius:18px; padding:26px 28px;}
.home-link-band h3{margin:0; font-size:1.3rem;}
@media (max-width:900px){.need-grid{grid-template-columns:repeat(2,1fr);} .mini-schedule{grid-template-columns:1fr;}}
@media (max-width:560px){.need-grid{grid-template-columns:1fr;}}

/* --- client comments 26.10 --- */
.sched-day{font-size:1.35rem; margin:34px 0 8px; color:var(--jade);}
.sched-day:first-child{margin-top:0;}
.content-block h3.sched-day{margin:26px 0 4px; font-size:1.1rem; color:var(--jade);}
.event-list{display:grid; gap:18px; margin-top:18px;}
.event-item{background:var(--white); border:1px solid var(--line); border-radius:16px; padding:20px 24px;}
.event-item h3{margin:4px 0 10px;}
.event-item .ev-date{font-size:.82rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--gold-700);}
.ev-img{display:block; max-width:min(100%,360px); height:auto; border-radius:14px; margin:12px 0 16px;}
.ev-img-wide{display:block; max-width:100%; height:auto; border-radius:18px;}
.video-block video{width:100%; height:auto; border-radius:16px; background:#000;}
.footer-fb{color:inherit; text-decoration:underline;}
.schedule-table{table-layout:fixed;}
.schedule-table th:nth-child(1){width:15%;}
.schedule-table th:nth-child(2){width:41%;}
.schedule-table th:nth-child(3){width:44%;}
.schedule-table td:first-child{white-space:nowrap;}
.digi-block{margin-left:0;}
.ev-img-wide{max-width:520px;}

.ev-img{width:auto; height:auto; max-width:min(100%,360px); object-fit:contain;}
.ev-img-wide{width:auto; height:auto;}
/* nav: never overlap — phone lives in the top bar, menu may wrap instead of colliding */
@media (min-width:1361px){
  .nav-cta .phone{display:none;}
  .nav-links{flex:1 1 auto; min-width:0; flex-wrap:wrap; justify-content:flex-end; gap:6px 16px; margin:0 20px;}
  .nav-links a{font-size:.9rem;}
  .main-nav{gap:12px;}
}
@media (min-width:1361px) and (max-width:1700px){ .nav-links{gap:6px 13px;} .nav-links a{font-size:.86rem;} }
html[lang="ru"] .nav-links a{font-size:.84rem;}
@media (min-width:1361px){ .nav-links{margin:0 8px;} .nav-cta{gap:8px;} }
@media (min-width:1361px) and (max-width:1700px){ html[lang="ru"] .nav-cta .btn-primary{padding:10px 16px; font-size:.8rem;} html[lang="ru"] .nav-links{gap:6px 11px;} }
@media (min-width:1361px){ header.site-header .container{max-width:1500px;} }
