/* Kaihdin Åman – tyylit
   Värit ja mitat on otettu vanhan WordPress-teeman tyylitiedostosta (ulkoasu.css).
   Taustakuvat ovat palvelimella kansiossa /wp-content/themes/kaihdin/ (ks. LUE-MINUT.txt). */
:root {
  --orange: #ff5d36;        /* painikkeet, aktiivinen valikko, linkit */
  --orange-head: #e25330;   /* otsikot */
  --orange-band: #d44f2e;   /* otsikkopalkin pohjaväri */
  --text: #4c4c4c;
  --text-soft: #6d6d6d;
  --nav: #949494;
  --line: #c8c8c8;
  --grey-bg: #ebebeb;
  --grey-link: #ebeae8;
  --footer-bg: #49494b;
  --footer-text: #9a9a9a;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--orange-head); font-weight: 600; line-height: 1.2; margin: 0 0 20px; }
h1 { font-size: 34px; }
h2 { font-size: 30px; }
h3 { font-size: 20px; margin-top: 24px; }
p { margin: 0 0 20px; }
.content p, .content li { font-size: 15px; line-height: 22px; color: var(--text-soft); }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 860px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 10; }

/* Ylätunniste */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.logo img { width: 279px; max-width: 100%; height: auto; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; }
.site-header nav a {
  display: block; padding: 14px 16px; margin: 0 12px; color: var(--nav);
  font-size: 14px; font-weight: 300; text-transform: uppercase; letter-spacing: .02rem; text-decoration: none;
}
.site-header nav a:hover { color: #000; }
.site-header nav a[aria-current="page"] { color: var(--orange); }
.menu-toggle { display: none; }

@media (max-width: 991px) {
  .header-inner { flex-wrap: wrap; min-height: 70px; padding-top: 10px; padding-bottom: 10px; }
  .logo img { width: 220px; }
  .menu-toggle {
    display: block; background: #000; color: #fff; border: 0; border-radius: 4px; padding: 9px 12px;
    font: inherit; font-size: 14px; cursor: pointer;
  }
  .site-header nav { width: 100%; display: none; }
  .site-header nav.open { display: block; }
  .site-header ul { flex-direction: column; text-align: center; padding: 6px 0 10px; }
  .site-header nav a { color: #000; margin: 2px 0; border-radius: 3px; }
  .site-header nav a[aria-current="page"] { background: #d7d7d7; color: #000; }
  .site-header nav a:hover { color: #ff3300; }
}

/* Etusivun karuselli */
.slider-section { background: var(--grey-bg); }
.slider { position: relative; max-width: var(--max); margin: 0 auto; border: 15px solid #fff; background: #fff; }
.slides { position: relative; aspect-ratio: 1200 / 414; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 4px solid #fff;
  background: #ff5b06 linear-gradient(to right, rgba(0,0,0,0) 0, rgba(255,92,51,1) 100%);
  color: #fff; font-size: 30px; font-weight: 100; line-height: 26px; padding: 0 0 4px; cursor: pointer; opacity: .5;
}
.slider-btn:hover { opacity: .9; }
.slider-btn.prev { left: -75px; }
.slider-btn.next { right: -75px; }
@media (max-width: 1260px) { .slider-btn.prev { left: 10px; } .slider-btn.next { right: 10px; } }
@media (max-width: 600px) { .slider { border-width: 8px; } }

/* Etusivun laatikot */
.front-boxes { display: grid; grid-template-columns: 7fr 5fr; gap: 14px; margin: 0 15px 40px; }
.front-box { padding: 40px 40px 20px 25px; color: #fff; min-height: 280px; }
.front-box h2 { color: #fff; font-weight: 700; font-size: 34px; margin: 0 0 20px; }
.front-box p { color: #fff; font-size: 14px; line-height: 1.6; }
.front-tuotteet { background: #ca6551 url("/wp-content/themes/kaihdin/tuotteet-bg.jpg") no-repeat 0 0; background-size: cover; }
.front-toimitus { background: #ff5b36 url("/wp-content/themes/kaihdin/toimitus-tausta.jpg") no-repeat 58% top; }
.link-button {
  display: inline-block; padding: 10px 20px; background: #fff; color: var(--orange);
  border-radius: 5px; font-size: 17px; text-transform: uppercase; text-decoration: none; margin-top: 8px;
}
.link-button:hover { text-decoration: none; background: #fff3ef; }
@media (max-width: 991px) {
  .front-boxes { grid-template-columns: 1fr; margin: 0 0 30px; }
  .front-toimitus { background-position: top right; }
  .front-box { padding: 30px 24px 14px; min-height: 0; }
}

/* Oranssi otsikkopalkki (alasivut) ja EU-palkki (etusivu) */
.title-band { background: var(--orange-band) url("/wp-content/themes/kaihdin/otsikkotausta.jpg") no-repeat top right; color: #fff; margin-top: 10px; }
.band-title { color: #fff; font-size: 40px; font-weight: 600; margin: 0; padding: 12px 0; line-height: 1.2; }
.eu-band { padding: 24px 0; margin-top: 0; }
.eu-band img { width: 393px; max-width: 100%; }
@media (max-width: 600px) { .band-title { font-size: 30px; } }

/* Sisältö */
.content { padding-top: 30px; padding-bottom: 40px; }
.hero-img { width: 100%; margin-bottom: 30px; border-radius: 2px; }
.content ul { padding-left: 0; }
.content ul li { list-style: none; position: relative; padding-left: 1.4rem; margin-bottom: 4px; }
.content ul li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* Painike */
.btn {
  display: inline-block; padding: 10px 20px; background: var(--orange); color: #fff; border: 0; border-radius: 5px;
  font: inherit; font-size: 17px; text-transform: uppercase; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #e84a24; text-decoration: none; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }

/* Tuotesivujen sivupalkki */
.with-sidebar { display: grid; grid-template-columns: 255px 1fr; gap: 30px; padding-top: 22px; }
.with-sidebar .content { min-width: 0; padding-top: 0; }
.sidebar { margin-bottom: 40px; }
.sidebar img { width: 100%; }
.sidebar-title { color: #c6c6c6; font-weight: 100; text-align: center; font-size: 32px; margin: 10px 0 6px; }
.sidebar-nav { list-style: none; margin: 0; padding: 0; }
.sidebar-nav a {
  display: block; text-align: center; color: #ff5b35; font-size: 27px; font-weight: 400;
  background: var(--grey-link); margin: 4px 0; padding: 8px 0; text-decoration: none;
}
.sidebar-nav a:hover, .sidebar-nav a[aria-current="page"] { background: #dddcd9; }
@media (max-width: 991px) {
  .with-sidebar { grid-template-columns: 1fr; gap: 0; }
  .sidebar { order: 2; }
  .sidebar img { display: none; }
  .sidebar-nav a { font-size: 22px; }
}

/* Tuotelistaus */
.group-title { color: var(--text); font-size: 16px; font-weight: 400; margin: 0 0 12px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.card { display: block; background: var(--grey-link); text-decoration: none; }
.card img { width: 100%; aspect-ratio: 300 / 220; object-fit: cover; }
.card span { display: block; text-align: center; color: #ff5b35; font-size: 22px; font-weight: 400; padding: 6px 4px; }
.card:hover { text-decoration: none; }
.card:hover span { background: #dddcd9; }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr 1fr; } .card span { font-size: 18px; } }

/* Tuotesivu */
.product-img { width: 100%; margin-bottom: 26px; }
article.content h1 { color: var(--text); font-weight: 600; font-size: 38px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; background: var(--grey-link); padding: 14px 20px; margin: 10px 0 20px; font-size: 15px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--text-soft); }
@media (max-width: 500px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 8px; } }

/* Värimallit */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; margin-bottom: 24px; }
.swatch { margin: 0; text-align: center; font-size: 15px; }
.swatch img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 6px; }
.swatch span { color: #ff5b35; font-weight: 600; }

/* Yhteystiedot */
.contact-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.contact-cols > section + section { border-left: 1px solid #e8e8e8; padding-left: 40px; }
.contact-cols section > p strong { color: var(--orange-head); font-weight: 400; }
.map { position: relative; aspect-ratio: 4 / 3; margin: -8px 0 8px; border: 1px solid #e0e0e0; border-radius: 2px; overflow: hidden; background: var(--grey-bg); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.content .map-link { font-size: 14px; margin-bottom: 24px; }
@media (max-width: 860px) {
  .contact-cols { grid-template-columns: 1fr; gap: 10px; }
  .contact-cols > section + section { border-left: 0; padding-left: 0; }
}
.form label { display: block; margin-bottom: 14px; font-size: 15px; font-weight: 400; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 4px; height: 50px; padding: 0 15px; font: inherit; color: #444;
  border: 1px solid #c0c0c0; border-radius: 2px; box-shadow: inset 2px 2px 8px #dadada; background: #fff;
}
.form textarea { height: 150px; padding-top: 12px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.form .hp { position: absolute; left: -9999px; }
.form .btn { min-width: 120px; font-weight: 700; }
.small { font-size: 13px !important; }

/* Alatunniste */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 30px 0 10px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 30px; align-items: start; }
.footer-address { display: flex; gap: 16px; }
.footer-address img { width: 40px; height: auto; flex: none; align-self: flex-start; margin-top: 2px; border-radius: 4px; }
.footer-address strong { display: block; color: #fff; margin-bottom: 6px; }
.footer-address span { display: block; }
.footer-cta { display: inline-block; margin-top: 18px; }
.footer-title { color: #ff6542; font-size: 14px; font-weight: 400; margin: 4px 0 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links li { line-height: 1.8; }
.footer-links li::before { content: "• "; color: #ff663e; }
.footer-links a { color: var(--footer-text); }
.footer-badges { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.footer-badges a img { width: 25px; }
.footer-badges .aaa { width: 170px; border-radius: 6px; }
.copy { font-size: 12px; color: #7d7d80; margin: 24px auto 0; padding-top: 12px; padding-bottom: 6px; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-badges { justify-content: flex-start; }
}
.content .lang-link { font-size: 14px; margin: -8px 0 16px; }
