
/* Sihlman Data Oy - tyyli.css */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: #0f172a; background: #ffffff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1100px, 92%); margin: 0 auto; }

:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --primary: #0ea5e9;
  --primary-ink: #0c4a6e;
  --ink: #0f172a;
  --muted: #475569;
  --ring: #bae6fd;
}

.header { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid #e2e8f0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .2px; }
.brand img { height: 64px; width: auto; border-radius: 8px; box-shadow: 0 4px 14px rgba(2,132,199,.25); }
.menu { display: flex; gap: 18px; align-items: center; }
.menu a { padding: 8px 10px; border-radius: 8px; color: var(--muted); }
.menu a:hover, .menu a[aria-current="page"] { background: var(--surface); color: var(--ink); }
.cta { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(180deg, #38bdf8, #0ea5e9); color: white; padding: 10px 14px; border-radius: 10px; font-weight: 600; box-shadow: 0 6px 18px rgba(14,165,233,.35); }
.cta:hover { filter: brightness(1.05); }



  .menu.open { display: flex; }
  
}
  .menu.open { display: flex; }
  
}

.hero { padding: 72px 0 32px; background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 70%); border-bottom: 1px solid #e2e8f0; }
.hero h1 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 10px; letter-spacing: -0.5px;}
.hero p { color: var(--muted); font-size: clamp(16px, 2vw, 19px); margin: 0 0 22px; }
.hero .grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }
@media (max-width: 900px){ .hero .grid { grid-template-columns: 1fr; }}

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
@media (max-width: 900px){ .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; }
.card h3 { margin: 6px 0 6px; }
.badge { display: inline-block; background: #ecfeff; border: 1px solid var(--ring); color: var(--primary-ink); padding: 4px 8px; border-radius: 999px; font-size: 12px;}

.section { padding: 48px 0; }
.section h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); }
.section p.lead { margin: 0 0 16px; color: var(--muted); }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px){ .features { grid-template-columns: 1fr; } }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature i { width: 28px; height: 28px; border-radius: 8px; background: var(--surface); border: 1px solid #e2e8f0; display: grid; place-items: center; }

.table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 12px; }
.table th, .table td { padding: 12px 14px; text-align: left; }
.table thead th { background: var(--surface); border-bottom: 1px solid #e2e8f0; }
.table tbody tr + tr td { border-top: 1px solid #e2e8f0; }
.table tfoot td { font-weight: 700; }

.footer { background: #0b1220; color: #cbd5e1; padding: 28px 0; margin-top: 32px; }
.footer a { color: #e2e8f0; }
.footer small { color: #94a3b8; }

input, textarea, select { width: 100%; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: white; font: inherit; }
label { display: block; font-weight: 600; margin: 12px 0 6px; }
button { font: inherit; cursor: pointer; }
.button { display: inline-flex; align-items:center; gap:8px; padding: 10px 14px; border-radius: 10px; border: 1px solid #e2e8f0; background: #ffffff; }
.button.primary { background: var(--primary); border-color: var(--primary); color: white; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 800px){ .form-grid { grid-template-columns: 1fr; } }

.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 22px; }
.mt-5 { margin-top: 30px; }
.shadow { box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08); }
.round { border-radius: 16px; }

header .container { min-height: 88px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 640px) {
  
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 640px) {
  
}

/* Header brand name visibility */
.brand span:not(.brand-name){ display:none; }


/* Larger logo for better visibility */
.brand img{
  height: 80px;
  width: auto;
}
header .container{
  min-height: 104px;
}

/* Slightly smaller on tablets */
@media (max-width: 1024px){
  .brand img{ height: 68px; }
  header .container{ min-height: 96px; }
}

/* Mobile keeps compact */
@media (max-width: 640px){
  .brand img{ height: 56px; }
}

.top-contact{
  font-weight:600;
  color:#0b6bb3;
  margin-left:16px;
  white-space:nowrap;
}
@media(max-width:1024px){
  .top-contact{ display:none; }
}


/* Fix: ensure nav links don't overlap the CTA */
.menu { flex-wrap: wrap; }
.menu a { position: relative; z-index: 1; }
.menu a.cta { z-index: 2; }

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

}



.burger{
  display:none;
  border:1px solid #e2e8f0;
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-size:18px;
  cursor:pointer;
}

@media (max-width: 860px){
  .burger{ display:inline-flex; align-items:center; justify-content:center; }
  .menu{ display:none; position:absolute; left:0; right:0; top:88px; background:rgba(255,255,255,.98); border-bottom:1px solid #e2e8f0; padding:12px; flex-direction:column; gap:8px; }
  .menu.open{ display:flex; }
}

/* Ensure burger hidden on desktop */
.burger{ display:none !important; }
@media (max-width: 860px){
  .burger{ display:inline-flex !important; }
}

/* Larger logo in header */
.brand img{
  height: 96px;
  width: auto;
}

/* Adjust header height accordingly */
header .container{
  min-height: 120px;
}

/* Tablet adjustment */
@media (max-width: 1024px){
  .brand img{ height: 80px; }
  header .container{ min-height: 108px; }
}

/* Mobile adjustment */
@media (max-width: 860px){
  .brand img{ height: 64px; }
  header .container{ min-height: 96px; }
}

/* Louhi-style tighter header */
header{
  padding-top: 6px;
  padding-bottom: 6px;
}
header .container{
  min-height: 96px;
}

/* Brand layout */
.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

/* Bigger brand text */
.brand-name{
  font-size: 1.6rem;
  font-weight: 700;
  color:#0b3a6f;
  white-space:nowrap;
}

/* Responsive tweaks */
@media (max-width:1024px){
  .brand-name{ font-size:1.4rem; }
}
@media (max-width:860px){
  .brand-name{ font-size:1.2rem; }
}

/* Tighter header like Louhi */
header{
  padding-top: 2px;
  padding-bottom: 2px;
}
header .container{
  min-height: 72px;
}

/* Remove excess white around logo */
.brand img{
  height: 72px;
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

/* Mobile adjustments */
@media (max-width: 860px){
  header .container{ min-height: 64px; }
  .brand img{ height: 56px; }
}

/* Larger logos for better readability */

/* Header logo */
.brand img{
  height: 88px;
}

/* Footer / lower logo */
footer .brand img,
.footer-logo img{
  height: 80px;
  width:auto;
}

/* Header height follows logo */
header .container{
  min-height: 96px;
}

/* Tablet */
@media (max-width:1024px){
  .brand img{ height: 72px; }
  footer .brand img,
  .footer-logo img{ height: 64px; }
}

/* Mobile */
@media (max-width:860px){
  .brand img{ height: 60px; }
  footer .brand img,
  .footer-logo img{ height: 56px; }
}

/* Extra large logo for maximum readability */

/* Header logo */
.brand img{
  height: 104px;
}

/* Header container */
header .container{
  min-height: 112px;
}

/* Footer logo */
footer .brand img,
.footer-logo img{
  height: 96px;
}

/* Tablet */
@media (max-width:1024px){
  .brand img{ height: 88px; }
  footer .brand img,
  .footer-logo img{ height: 80px; }
}

/* Mobile */
@media (max-width:860px){
  .brand img{ height: 68px; }
  footer .brand img,
  .footer-logo img{ height: 64px; }
}

/* === FORCE LARGE SVG LOGO SIZES === */

/* Header logo */
.brand img,
.brand svg{
  height: 120px !important;
  width: auto !important;
  max-height: none !important;
}

/* Header container */
header .container{
  min-height: 132px !important;
}

/* Footer logo */
footer .brand img,
footer svg,
.footer-logo img,
.footer-logo svg{
  height: 104px !important;
  width: auto !important;
}

/* Tablet */
@media (max-width: 1024px){
  .brand img,
  .brand svg{ height: 96px !important; }
  footer .brand img,
  footer svg{ height: 88px !important; }
}

/* Mobile */
@media (max-width: 860px){
  .brand img,
  .brand svg{ height: 72px !important; }
  footer .brand img,
  footer svg{ height: 64px !important; }
}

/* Reduce visible white margin in footer logo by scaling inside container */
footer .brand,
.footer-logo{
  overflow:hidden;
}

footer .brand img,
footer .brand svg,
.footer-logo img,
.footer-logo svg{
  transform: scale(1.25);
  transform-origin: left center;
}

/* === Make footer logo same size as header logo === */

/* Header logo reference size */
.brand img,
.brand svg{
  height: 120px;
}

/* Footer logo matches header */
footer .brand img,
footer .brand svg,
.footer-logo img,
.footer-logo svg{
  height: 120px;
  width: auto;
}

/* Keep footer layout clean */
footer .brand,
.footer-logo{
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Responsive */
@media (max-width:1024px){
  .brand img,
  .brand svg,
  footer .brand img,
  footer .brand svg{
    height: 96px;
  }
}

@media (max-width:860px){
  .brand img,
  .brand svg,
  footer .brand img,
  footer .brand svg{
    height: 72px;
  }
}

/* === Mobile menu button: right aligned & larger === */
header .container{
  position: relative;
}

@media (max-width: 860px){
  .burger{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    font-size: 28px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
    cursor: pointer;
  }

  .menu{
    top: 86px;
  }
}

/* === Extra large logo sizing (especially mobile) === */

/* Desktop */
.brand img,
.brand svg{
  height: 140px !important;
}

/* Footer same size */
footer .brand img,
footer .brand svg{
  height: 140px !important;
}

/* Tablet */
@media (max-width: 1024px){
  .brand img,
  .brand svg,
  footer .brand img,
  footer .brand svg{
    height: 120px !important;
  }
}

/* Mobile: make logo clearly visible */
@media (max-width: 860px){
  .brand img,
  .brand svg{
    height: 96px !important;
  }

  footer .brand img,
  footer .brand svg{
    height: 96px !important;
  }

  /* Reduce header padding so logo has more room */
  header .container{
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* === Reduce footer logo size (keep header large) === */

/* Desktop footer */
footer .brand img,
footer .brand svg{
  height: 96px !important;
}

/* Tablet footer */
@media (max-width: 1024px){
  footer .brand img,
  footer .brand svg{
    height: 80px !important;
  }
}

/* Mobile footer */
@media (max-width: 860px){
  footer .brand img,
  footer .brand svg{
    height: 64px !important;
  }
}

/* === Footer logo grayscale version === */
footer .brand img,
footer .brand svg{
  filter: grayscale(100%) brightness(0.9);
  opacity: 0.9;
}

/* === Lighter grayscale footer logo === */
footer .brand img,
footer .brand svg{
  filter: grayscale(100%) brightness(1.15) contrast(0.9);
  opacity: 0.8;
}

/* === Footer logo hover effect: grayscale → color === */
footer .brand img,
footer .brand svg{
  filter: grayscale(100%) brightness(1.15) contrast(0.9);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

footer .brand:hover img,
footer .brand:hover svg{
  filter: none;
  opacity: 1;
}

/* === Footer logo: normal color, background matches footer === */
footer .brand{
  background: inherit;
  padding: 8px 12px;
}

footer .brand img,
footer .brand svg{
  filter: none;
  opacity: 1;
}

/* === Ensure footer logo background matches footer === */
footer{
  background-color: #0f172a; /* footer background (dark blue/gray) */
}

footer .brand,
footer .footer-logo{
  background-color: transparent !important;
}

footer .brand img,
footer .brand svg{
  background-color: transparent !important;
}

/* === Footer: text brand instead of logo image === */
.footer-brand{
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #cbd5e1; /* light blue-gray */
  margin-bottom: 10px;
}

@media (max-width: 860px){
  .footer-brand{
    font-size: 1.05rem;
  }
}

/* === Fix extra white space on Meistä page === */
.page-meista main,
.page-meista .content,
.page-meista section:last-of-type{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* === Slightly reduce header logo size === */
.header-logo img,
.header-logo svg{
  max-height: 64px; /* was too large */
}

@media (max-width: 768px){
  .header-logo img,
  .header-logo svg{
    max-height: 52px;
  }
}

/* === Layout: keep footer at bottom (removes white gap on short pages) === */
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
footer {
  flex-shrink: 0;
}

/* === Header logo: slightly smaller (especially on mobile) === */
header .brand img,
header .brand svg{
  height: 96px !important;
  width: auto !important;
}

@media (max-width: 1024px){
  header .brand img,
  header .brand svg{
    height: 80px !important;
  }
}

@media (max-width: 860px){
  header .brand img,
  header .brand svg{
    height: 56px !important;
  }
}

/* === Footer: align 'Sihlman Data Oy' title with text block === */
footer .footer-brand{
  display: block;
  text-align: left;
  margin-left: 0;
}

/* If footer left column uses extra padding, align the title with paragraph start */
footer .col:first-child .footer-brand{
  padding-left: 0;
}

/* Nudge title slightly right to match paragraph start (tweak) */
footer .col:first-child .footer-brand{
  margin-left: 4px;
}

/* === Footer: shift 'Sihlman Data Oy' title to align with paragraph text === */
.footer .brand .footer-brand{
  margin-left: 14px !important;
}

.footer .brand{
  justify-content: flex-start !important;
}

/* === Footer: add left padding to the first column so title starts same as text block === */
.footer .grid-3 > div:first-child{
  padding-left: 20px !important;
}

/* Reset any previous title nudges */
.footer .grid-3 > div:first-child .footer-brand{
  margin-left: 0 !important;
}

/* Photo-style hero section (v50) */
.hero-photo{
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:2rem;
}
.hero-overlay{
  background: rgba(0,0,0,0.55);
  color:#fff;
  padding:2rem 3rem;
  border-radius:12px;
  text-align:center;
  max-width:900px;
}
.hero-overlay h1{margin:0 0 .5rem 0;}

/* Hero (yhtenäinen kuva + varakuva vanhemmille selaimille) */
.hero-photo{
  min-height: 320px;
  background-size: cover;
  background-position: center center;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:2rem;

  /* Fallback vanhemmille selaimille */
  background-image: url("hero.jpg");
/* Modernit selaimet käyttävät AVIF:iä (pienempi, parempi laatu) */
  background-image: image-set(
    url("hero.avif") type("image/avif"),
    url("hero.jpg") type("image/jpeg")
  );
}

.hero-overlay{
  background: rgba(0,0,0,0.55);
  color:#fff;
  padding:2rem 3rem;
  border-radius:12px;
  text-align:center;
  max-width:900px;
}

/* Mobiilirajaus + typografia */
@media (max-width: 768px){
  .hero-photo{
    min-height: 220px;
    /* Rajataan niin että teksti pysyy hyvällä alueella */
    background-position: 70% center;
  }
  .hero-overlay{
    padding: 1.25rem 1.25rem;
    border-radius: 12px;
    max-width: 92vw;
  }
  .hero-overlay h1{
    font-size: 1.6rem;
    line-height: 1.15;
  }
  .hero-overlay p{
    font-size: 1rem;
  }
}


/* Hero image override (custom) */
.hero-photo{
  background-image: url("hero.png");
}
@supports not (background-image: url("hero.png")){
  .hero-photo{ background-image: url("hero.jpg"); }
}
