/* Mökin myyntisivu – kevyt, responsiivinen template
   Muokkaa värejä & typografiaa tarvittaessa: :root -muuttujat. */

:root{
  --hero-bg-default: url(assets/img/full/julkisivu1-0254.webp);
  --bg: #f6f5f3;
  --surface: rgba(255,255,255,.78);
  --surface-solid: #ffffff;
  --text: #0f172a;
  --muted: rgba(15,23,42,.68);
  --line: rgba(15,23,42,.12);

  --accent: #0f766e;
  --accent-2: #1d4ed8;

  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;

  --shadow: 0 18px 55px rgba(2,6,23,.12);
  --shadow-soft: 0 10px 35px rgba(2,6,23,.10);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(15,118,110,.12), transparent 60%),
              radial-gradient(1000px 650px at 110% 0%, rgba(29,78,216,.10), transparent 55%),
              var(--bg);
  line-height:1.55;
}

img{ max-width:100%; display:block; }

a{ color: inherit; }
.container{
  width:min(1100px, calc(100% - 44px));
  margin:0 auto;
}

.skip{
  position:absolute; left:-9999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:16px; width:auto; height:auto;
  padding:10px 12px; background:var(--surface-solid);
  border:1px solid var(--line);
  border-radius:999px;
  z-index:9999;
}

header.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(246,245,243,.72);
  border-bottom:1px solid rgba(15,23,42,.08);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
}
.brand-badge{
  width:36px; height:36px;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(15,118,110,.18), rgba(29,78,216,.18));
  border:1px solid rgba(15,23,42,.10);
  display:grid; place-items:center;
  box-shadow: 0 10px 26px rgba(2,6,23,.10);
}
.brand-badge svg{ width:20px; height:20px; opacity:.9; }
.brand-title{
  font-weight:740;
  letter-spacing:-.02em;
}
.brand-sub{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:1px;
}

.nav-links{
  display:flex; align-items:center; gap:6px;
}
.nav-links a{
  text-decoration:none;
  font-size:14px;
  padding:10px 12px;
  border-radius:999px;
  color:rgba(15,23,42,.8);
}
.nav-links a:hover{
  background: rgba(15,23,42,.06);
}
.nav-cta{
  display:flex; gap:10px; align-items:center;
}
.btn{
  border:1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.72);
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  font-weight:640;
  font-size:14px;
  display:inline-flex; align-items:center; gap:8px;
  box-shadow: 0 10px 24px rgba(2,6,23,.08);
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(2,6,23,.12);
}
.btn.primary{
  background: linear-gradient(135deg, rgba(15,118,110,.95), rgba(29,78,216,.92));
  color:#fff;
  border-color: rgba(255,255,255,.18);
}
.btn.primary:hover{
  filter:saturate(1.05);
}
.btn:active{
  transform: translateY(0px);
}

.hamburger{
  display:none;
  border:1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.72);
  border-radius:12px;
  padding:10px;
  width:44px; height:44px;
}
.hamburger svg{ width:22px; height:22px; }

/* Always keep mobile drawer hidden unless opened (prevents duplicates) */
.mobile-drawer{ display:none; }
.mobile-drawer.open{ display:block; }

.hero{
  position:relative;
  min-height: 72vh;
  display:flex;
  align-items:stretch;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image: var(--hero-bg, var(--hero-bg-default));
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  transform: scale(1.02);
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(246,245,243,.62) 0%, rgba(246,245,243,.34) 40%, rgba(246,245,243,.12) 70%, rgba(246,245,243,0) 100%),
    linear-gradient(180deg, rgba(2,6,23,.10), transparent 30%, rgba(2,6,23,.14));
}
.hero-inner{
  position:relative;
  padding: 56px 0 44px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:26px;
  align-items:end;
}
.hero-card{
  background: rgba(255,255,255,.82);
  border:1px solid rgba(15,23,42,.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 26px 24px 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.kicker{
  color: var(--accent);
  font-weight:740;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:12px;
}
h1{
  margin:10px 0 10px;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height:1.08;
  letter-spacing:-.03em;
}
.lead{
  margin:0 0 14px;
  color: rgba(15,23,42,.78);
  font-size: 16px;
  max-width: 52ch;
}
.pills{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-top:14px;
}
.pill{
  padding:8px 10px;
  border-radius:999px;
  background: rgba(15,23,42,.06);
  border:1px solid rgba(15,23,42,.08);
  font-size:13px;
  color: rgba(15,23,42,.74);
}
.hero-actions{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top: 18px;
}

.hero-facts{
  display:grid;
  gap:12px;
  align-content:end;
}
.fact-panel{
  background: rgba(255,255,255,.72);
  border:1px solid rgba(15,23,42,.12);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.fact-panel h2{
  margin:0 0 10px;
  font-size:14px;
  letter-spacing:.02em;
  color: rgba(15,23,42,.74);
  text-transform:uppercase;
}
.facts-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px 12px;
}
.fact{
  padding:10px 10px;
  border-radius: 14px;
  background: rgba(15,23,42,.05);
  border:1px solid rgba(15,23,42,.07);
}
.fact .k{ font-size:12px; color:var(--muted); margin-bottom:2px; }
.fact .v{ font-size:14px; font-weight:700; }

section{
  padding: 56px 0;
}
.section-title{
  display:flex; align-items:flex-end; justify-content:space-between; gap:16px;
  margin-bottom: 18px;
}
.section-title h2{
  margin:0;
  font-size: 26px;
  letter-spacing:-.02em;
}
.section-title p{
  margin:0;
  color: var(--muted);
  max-width: 58ch;
}
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.card{
  background: rgba(255,255,255,.76);
  border:1px solid rgba(15,23,42,.10);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card h3{
  margin: 10px 0 6px;
  font-size: 16px;
  letter-spacing:-.01em;
}
.card p{
  margin:0;
  color: var(--muted);
  font-size: 14px;
}
.icon{
  width:38px; height:38px;
  border-radius: 14px;
  background: rgba(15,118,110,.10);
  border:1px solid rgba(15,118,110,.18);
  display:grid; place-items:center;
}
.icon svg{ width:20px; height:20px; }

.details{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:16px;
  align-items:start;
}
.details .card{ padding: 20px; }
.dl{
  display:grid;
  gap:10px;
  margin-top: 10px;
}
.row{
  display:flex; justify-content:space-between; gap:14px;
  padding:10px 12px;
  border-radius: 14px;
  background: rgba(15,23,42,.05);
  border:1px solid rgba(15,23,42,.07);
}
.row .k{ color: var(--muted); font-size: 13px; }
.row .v{ font-weight: 720; font-size: 13px; text-align:right; }

.note{
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

.gallery-controls{
  display:flex; flex-wrap:wrap; gap:8px;
  margin: 14px 0 16px;
}
.chip{
  border:1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.70);
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 680;
  font-size: 13px;
  cursor:pointer;
}
.chip[aria-pressed="true"]{
  background: rgba(15,118,110,.14);
  border-color: rgba(15,118,110,.34);
}
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.thumb{
  border:0;
  padding:0;
  border-radius: 18px;
  overflow:hidden;
  cursor:pointer;
  background: transparent;
  position:relative;
  box-shadow: 0 14px 30px rgba(2,6,23,.10);
}
.thumb::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 55%, rgba(2,6,23,.48));
  opacity:.0;
  transition: opacity .18s ease;
}
.thumb:hover::after{ opacity:1; }
.thumb img{
  width:100%;
  height: 230px;
  object-fit:cover;
  transform: scale(1.01);
  transition: transform .18s ease;
}
.thumb:hover img{ transform: scale(1.04); }
.thumb .cap{
  position:absolute;
  left:12px; right:12px; bottom:10px;
  color:#fff;
  font-weight:700;
  font-size: 13px;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
  opacity:0;
  transition: opacity .18s ease;
  z-index:2;
}
.thumb:hover .cap{ opacity: 1; }

.gallery-more{
  margin-top: 16px;
  display:flex;
  justify-content:center;
}

.map{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
.map-embed{
  border-radius: var(--radius-lg);
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow-soft);
  min-height: 320px;
  background: rgba(15,23,42,.05);
  display:grid;
  place-items:center;
  color: var(--muted);
  padding: 18px;
}

.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
.contact .card p{ font-size: 14px; }
.contact-list{
  margin: 10px 0 0;
  display:grid;
  gap:10px;
}
.contact-item{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:10px 12px;
  border-radius: 14px;
  background: rgba(15,23,42,.05);
  border:1px solid rgba(15,23,42,.07);
  font-size: 14px;
}
.contact-item .k{ color: var(--muted); }

footer{
  padding: 24px 0 42px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid rgba(15,23,42,.10);
  background: rgba(246,245,243,.55);
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background: rgba(2,6,23,.74);
  z-index:200;
  display:none;
  align-items:center;
  justify-content:center;
  padding: 18px;
}
.lightbox.open{ display:flex; }
.lb-panel{
  width:min(1100px, 100%);
  display:grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
}
.lb-top{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  color: rgba(255,255,255,.92);
}
.lb-title{ font-weight: 720; }
.lb-btn{
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color:#fff;
  border-radius: 12px;
  width:44px; height:44px;
  display:grid; place-items:center;
  cursor:pointer;
}
.lb-btn:hover{ background: rgba(255,255,255,.16); }
.lb-media{
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.16);
  box-shadow: 0 28px 70px rgba(0,0,0,.32);
}
.lb-media img{
  width:100%;
  height: min(72vh, 760px);
  object-fit:contain;
  background: rgba(0,0,0,.20);
}
.lb-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  color: rgba(255,255,255,.86);
}
.lb-help{
  font-size: 13px;
  color: rgba(255,255,255,.72);
}
.lb-nav{
  display:flex; gap:10px;
}

.fab{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:60;
}
.fab a{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 12px 14px;
  border-radius:999px;
  text-decoration:none;
  color:#fff;
  background: linear-gradient(135deg, rgba(15,118,110,.96), rgba(29,78,216,.94));
  box-shadow: 0 18px 55px rgba(2,6,23,.18);
  border:1px solid rgba(255,255,255,.20);
  font-weight: 720;
}

/* Responsive */
@media (max-width: 960px){
  .hero-inner{ grid-template-columns: 1fr; align-items:start; }
  .hero{ min-height: 64vh; }
  .facts-grid{ grid-template-columns: 1fr 1fr; }
  .details{ grid-template-columns: 1fr; }
  .map{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .container{ width: calc(100% - 32px); }
  .nav-links, .nav-cta{ display:none; }
  .hamburger{ display:inline-grid; place-items:center; }
  header.site-header{ background: rgba(246,245,243,.92); }

  .mobile-drawer{
    display:none;
    padding: 0 0 14px;
  }
  .mobile-drawer.open{ display:block; }
  .mobile-drawer a{
    display:block;
    padding: 12px 10px;
    border-radius: 12px;
    text-decoration:none;
    color: rgba(15,23,42,.86);
  }
  .mobile-drawer a:hover{ background: rgba(15,23,42,.06); }
  .mobile-drawer .btn{ width:100%; justify-content:center; margin-top: 10px; }

  .cards{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr 1fr; }
  .thumb img{ height: 190px; }
  .hero-inner{ padding-top: 36px; }
}

@media (max-width: 420px){
  .grid{ grid-template-columns: 1fr; }
  .thumb img{ height: 210px; }
  .facts-grid{ grid-template-columns: 1fr; }
}


.phone-number{
  margin-top:10px;
  text-align:center;
  font-weight:700;
  letter-spacing:.02em;
  color: rgba(15,23,42,.78);
}
