/*
Theme Name: Vesuko
Theme URI: https://vesuko.fi/
Author: Vesuko Oy / TJ-Design
Description: Kevyt, responsiivinen Vesuko Oy:n WordPress-teema.
Version: 2.2.0
Text Domain: vesuko
*/

:root {
  --vesuko-red: #c40000;
  --vesuko-red-dark: #910000;
  --vesuko-ink: #292929;
  --vesuko-muted: #656565;
  --vesuko-surface: #f4f4f2;
  --vesuko-line: #dededb;
  --vesuko-max: 1180px;
  --vesuko-shadow: 0 18px 50px rgba(0, 0, 0, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--vesuko-ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.68;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { width: min(calc(100% - 40px), var(--vesuko-max)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 86px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; flex: 0 0 auto; width: 205px; text-decoration: none; }
.brand img { width: 100%; }
.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(15px, 1.8vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav-list a { position: relative; display: block; padding: 29px 0 26px; color: #3e3e3e; font-size: 14px; font-weight: 750; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.nav-list a::after { content: ""; position: absolute; right: 0; bottom: 20px; left: 0; height: 3px; background: var(--vesuko-red); transform: scaleX(0); transition: transform .2s ease; }
.nav-list a:hover::after, .nav-list a:focus-visible::after, .nav-list .current-menu-item a::after { transform: scaleX(1); }
.header-phone { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--vesuko-red); border-radius: 999px; padding: 10px 15px; color: var(--vesuko-red); font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.header-phone:hover, .header-phone:focus-visible { color: #fff; background: var(--vesuko-red); }
.menu-toggle { display: none; width: 46px; height: 46px; margin-left: auto; padding: 10px; border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 6px 0; background: #222; transition: transform .2s, opacity .2s; }

.hero { position: relative; min-height: min(74svh, 790px); overflow: hidden; background: #111; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.5s ease, visibility 1.5s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.64) 29%, rgba(255,255,255,.10) 56%, rgba(0,0,0,.10) 100%); }
.hero-slide--dark::after { background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.42) 35%, rgba(0,0,0,.05) 64%); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-content { position: relative; z-index: 2; display: flex; min-height: min(74svh, 790px); align-items: center; padding-block: 72px; }
.hero-copy { width: min(570px, 48%); }
.hero-logo { width: clamp(260px, 34vw, 500px); margin-bottom: 34px; }
.hero-phone { display: inline-block; margin: 0 0 22px; color: var(--vesuko-red); font-size: clamp(28px, 3vw, 44px); font-weight: 900; font-style: italic; line-height: 1; text-decoration: underline; text-underline-offset: 7px; }
.hero-title { max-width: 560px; margin: 0; color: var(--vesuko-red); font-size: clamp(30px, 3.3vw, 52px); font-weight: 900; font-style: italic; line-height: 1.08; letter-spacing: -.025em; }
.hero-slide--dark .hero-phone, .hero-slide--dark .hero-title { color: #fff; }
.hero-progress { position: absolute; z-index: 5; right: 0; bottom: 0; left: 0; height: 4px; background: rgba(255,255,255,.28); }
.hero-progress span { display: block; width: 0; height: 100%; background: var(--vesuko-red); }
.hero.is-running .hero-progress span { animation: vesuko-progress 5s linear; }
.hero-toggle { display: none; position: absolute; z-index: 6; right: max(20px, calc((100vw - var(--vesuko-max)) / 2)); bottom: 20px; min-width: 82px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; color: #fff; background: rgba(21,21,21,.72); font: inherit; font-size: 13px; font-weight: 800; line-height: 1.2; cursor: pointer; }
.js .hero-toggle { display: block; }
.hero-toggle:hover, .hero-toggle:focus-visible { background: var(--vesuko-red); }
@keyframes vesuko-progress { to { width: 100%; } }

.intro { padding: clamp(76px, 9vw, 130px) 0; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: clamp(50px, 8vw, 110px); align-items: start; }
.eyebrow { margin: 0 0 12px; color: var(--vesuko-red); font-size: 13px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.intro h1 { max-width: 740px; margin: 0 0 22px; color: #454545; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5.4vw, 76px); line-height: 1; letter-spacing: -.035em; }
.intro h2 { max-width: 760px; margin: 0 0 28px; font-size: clamp(25px, 3vw, 38px); line-height: 1.2; }
.intro p { max-width: 760px; margin: 0 0 24px; }
.principles { margin: 0; padding: 0; list-style: none; }
.principles li { position: relative; padding: 13px 0 13px 34px; border-bottom: 1px solid var(--vesuko-line); }
.principles li::before { content: "\2713"; position: absolute; left: 0; color: var(--vesuko-red); font-weight: 900; }
.trust-card { position: sticky; top: 120px; padding: 34px; background: var(--vesuko-surface); border-top: 5px solid var(--vesuko-red); box-shadow: var(--vesuko-shadow); }
.admin-bar .trust-card { top: 152px; }
.trust-card h2 { margin: 0 0 22px; font-size: 24px; }
.socials { display: flex; gap: 12px; margin-bottom: 30px; }
.socials a { display: block; width: 50px; border-radius: 50%; overflow: hidden; transition: transform .2s; }
.socials a:hover { transform: translateY(-3px); }
.credentials { display: grid; gap: 20px; }
.credentials img { max-height: 76px; max-width: 220px; width: auto; object-fit: contain; object-position: left center; }

.service-area { padding: clamp(55px, 7vw, 95px) 0; background: var(--vesuko-ink); color: #fff; }
.service-area .wrap { display: grid; grid-template-columns: .65fr 1.35fr; gap: 40px; align-items: center; }
.service-area h2 { margin: 0; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 56px); line-height: 1.05; }
.service-area p { margin: 0; font-size: clamp(18px, 2vw, 24px); line-height: 1.55; }

.site-footer { background: #151515; color: rgba(255,255,255,.76); }
.footer-main { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding-block: 56px; }
.footer-brand { width: 190px; margin-bottom: 25px; filter: invert(1); opacity: .92; }
.footer-main p { margin: 5px 0; }
.footer-main a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.footer-social a { display: block; width: 30px; height: 30px; }
.footer-social img { display: block; width: 30px; height: 30px; object-fit: contain; }
.footer-meta { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.footer-meta .wrap { text-align: center; }
.footer-meta p { margin: 0; }
.footer-meta a { color: #fff; }
.site-credit { padding: 10px 16px; background: #fff; color: #777; text-align: center; font-size: 11px; line-height: 1.4; }
.site-credit p { margin: 0; }
.site-credit a { color: inherit; text-decoration-color: rgba(119,119,119,.55); text-underline-offset: 2px; }
.site-credit a:hover { color: #444; }

.page-shell { min-height: 58vh; padding: 90px 0; }
.page-shell h1 { color: var(--vesuko-red); font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; }
.page-content { max-width: 850px; }
.page-content h2 { margin-top: 42px; }

.subhero { position: relative; min-height: 360px; overflow: hidden; background: #ddd; }
.subhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.72) 29%, rgba(255,255,255,.10) 60%); }
.subhero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.subhero-inner { position: relative; z-index: 2; display: flex; min-height: 360px; align-items: center; }
.subhero-copy { width: min(480px, 45%); }
.subhero-logo { width: clamp(220px, 25vw, 350px); margin-bottom: 27px; }
.subhero-title { margin: 0; color: var(--vesuko-red); font-size: clamp(31px, 3.2vw, 47px); font-weight: 900; line-height: 1.08; letter-spacing: -.025em; }
.subhero--huoneistoremontit .subhero-media { object-position: center center; }
.subhero--kylpyhuoneremontit .subhero-media { object-position: center center; }
.subhero--terassit-ja-saunat .subhero-media { object-position: center center; }
.subhero--muut-palvelut .subhero-media { object-position: center center; }
.subhero--yhteystiedot .subhero-media,
.subhero--galleria .subhero-media,
.subhero--verkkolaskutustiedot .subhero-media { object-position: center center; }

.page-shell--subpage { padding-block: clamp(68px, 8vw, 110px); }
.page-shell--subpage .page-content { max-width: 920px; }
.page-content > :first-child { margin-top: 0; }
.page-content h2 { color: #3e3e3e; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -.02em; }
.page-content h3 { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.3; }
.page-content p { overflow-wrap: anywhere; }
.page-content a { color: var(--vesuko-red); font-weight: 700; text-underline-offset: 3px; }
.page-content a:hover, .page-content a:focus-visible { color: var(--vesuko-red-dark); }

.testimonials-section { margin-top: clamp(60px, 8vw, 100px); }
.testimonials-section > h2 { margin-bottom: 30px; color: var(--vesuko-red); font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4.3vw, 54px); }
.testimonial { margin-top: 28px; padding: clamp(27px, 4vw, 46px); background: var(--vesuko-surface); border-left: 5px solid var(--vesuko-red); box-shadow: 0 12px 34px rgba(0,0,0,.06); }
.testimonial h3 { margin: 0 0 24px; color: #3d3d3d; }
.testimonial p { max-width: none; }
.testimonial-author { margin-top: 26px !important; font-weight: 800; }

.service-pair { display: block; max-width: none; }
.service-pair > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.service-pair .service-card { min-width: 0; }
.service-card { padding: clamp(28px, 4vw, 44px); background: var(--vesuko-surface); border-top: 5px solid var(--vesuko-red); box-shadow: 0 12px 34px rgba(0,0,0,.06); }
.service-card h2 { margin: 0 0 26px; }
.service-card p:last-child { margin-bottom: 0; }

.service-list { margin: 32px 0; padding: 0; list-style: none; }
.service-list li { position: relative; padding: 15px 16px 15px 40px; border-bottom: 1px solid var(--vesuko-line); }
.service-list li::before { content: "\2713"; position: absolute; left: 10px; color: var(--vesuko-red); font-weight: 900; }

.company-contact { max-width: 560px; padding: clamp(28px, 4vw, 44px); background: var(--vesuko-surface); border-top: 5px solid var(--vesuko-red); }
.company-contact h2 { margin: 0 0 20px; }
.email-image { margin: 14px 0 22px; }
.email-image img { width: auto; max-width: 100%; height: auto; }
.contact-intro { max-width: 820px; margin: clamp(52px, 7vw, 82px) 0 28px !important; font-family: Georgia, "Times New Roman", serif; font-size: clamp(27px, 3vw, 38px); font-weight: 700; line-height: 1.3; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.contact-card { min-width: 0; padding: clamp(27px, 4vw, 40px); border: 1px solid var(--vesuko-line); }
.contact-card h3 { margin: 0 0 18px; }
.contact-card p { margin-bottom: 0; }
.invoice-content { max-width: 820px; padding: clamp(28px, 5vw, 52px); background: var(--vesuko-surface); border-left: 5px solid var(--vesuko-red); }
.invoice-content p { max-width: none; }

.gallery-page { padding: clamp(64px, 8vw, 104px) 0 clamp(80px, 9vw, 126px); }
.gallery-intro { max-width: 760px; margin: 0 auto clamp(34px, 5vw, 58px); text-align: center; font-size: clamp(18px, 2vw, 22px); }
.gallery-nav { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto clamp(56px, 7vw, 88px); padding: 0; list-style: none; }
.gallery-nav a { display: block; padding: 10px 16px; border: 1px solid var(--vesuko-line); border-radius: 999px; color: #3e3e3e; font-size: 14px; font-weight: 800; line-height: 1.25; text-decoration: none; }
.gallery-nav a:hover, .gallery-nav a:focus-visible { border-color: var(--vesuko-red); color: var(--vesuko-red); }
.gallery-section { margin-top: clamp(64px, 8vw, 104px); scroll-margin-top: 120px; }
.admin-bar .gallery-section { scroll-margin-top: 152px; }
.gallery-section:first-of-type { margin-top: 0; }
.gallery-section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--vesuko-line); }
.gallery-section h2 { margin: 0 0 14px; color: #3e3e3e; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; }
.gallery-back { flex: 0 0 auto; color: var(--vesuko-muted); font-size: 13px; font-weight: 700; text-underline-offset: 3px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.gallery-item { min-width: 0; margin: 0; }
.gallery-item a { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--vesuko-surface); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.gallery-item a::after { content: ""; position: absolute; inset: 0; border: 3px solid transparent; transition: border-color .2s, background .2s; }
.gallery-item a:hover::after, .gallery-item a:focus-visible::after { border-color: var(--vesuko-red); background: rgba(196,0,0,.05); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-item a:hover img { transform: scale(1.025); }
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox { position: fixed; z-index: 10000; inset: 0; display: grid; grid-template-columns: minmax(48px, 1fr) minmax(0, 1200px) minmax(48px, 1fr); align-items: center; padding: 72px 16px 30px; background: rgba(10,10,10,.94); }
.gallery-lightbox-stage { grid-column: 2; display: flex; justify-content: center; align-items: center; min-width: 0; min-height: 0; height: calc(100vh - 102px); }
.gallery-lightbox-image { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gallery-lightbox-close, .gallery-lightbox-prev, .gallery-lightbox-next { position: absolute; display: grid; place-items: center; border: 0; color: #fff; background: rgba(255,255,255,.10); cursor: pointer; }
.gallery-lightbox-close:hover, .gallery-lightbox-close:focus-visible, .gallery-lightbox-prev:hover, .gallery-lightbox-prev:focus-visible, .gallery-lightbox-next:hover, .gallery-lightbox-next:focus-visible { background: var(--vesuko-red); }
.gallery-lightbox-close { top: 16px; right: 18px; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; }
.gallery-lightbox-prev, .gallery-lightbox-next { top: 50%; width: 48px; height: 64px; transform: translateY(-50%); font-size: 34px; }
.gallery-lightbox-prev { left: 14px; }
.gallery-lightbox-next { right: 14px; }
.gallery-lightbox-count { position: absolute; top: 24px; left: 50%; margin: 0; color: rgba(255,255,255,.82); font-size: 13px; transform: translateX(-50%); }
body.gallery-lightbox-open { overflow: hidden; }

@media (max-width: 1120px) {
  .header-phone { display: none; }
  .nav-list { gap: 16px; }
  .nav-list a { font-size: 13px; }
}
@media (max-width: 900px) {
  .admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 72px; flex-wrap: wrap; }
  .brand { width: 175px; }
  .site-nav { width: 100%; margin-left: 0; }
  .js .header-inner { flex-wrap: nowrap; }
  .js .menu-toggle { display: block; }
  .js .site-nav { position: absolute; top: 100%; right: 0; left: 0; width: auto; max-height: 0; overflow: hidden; background: #fff; border-bottom: 1px solid var(--vesuko-line); box-shadow: 0 18px 34px rgba(0,0,0,.1); transition: max-height .3s ease; }
  .js .site-header.is-open .site-nav { max-height: 600px; }
  .site-header.is-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-list { display: block; width: min(calc(100% - 40px), var(--vesuko-max)); margin-inline: auto; padding: 12px 0 22px; }
  .nav-list a { padding: 12px 0; font-size: 17px; }
  .nav-list a::after { display: none; }
  .hero, .hero-content { min-height: 650px; }
  .hero-copy { width: min(520px, 76%); }
  .hero-slide::after { background: linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,255,255,.57) 64%, rgba(255,255,255,.12)); }
  .hero-slide--dark::after { background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.38) 70%, rgba(0,0,0,.08)); }
  .intro-grid { grid-template-columns: 1fr; }
  .trust-card { position: static; }
  .subhero, .subhero-inner { min-height: 320px; }
  .subhero-copy { width: min(460px, 64%); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-section { scroll-margin-top: 104px; }
  .admin-bar .gallery-section { scroll-margin-top: 150px; }
}
@media (max-width: 760px) {
  .service-pair > .wp-block-group__inner-container { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { width: min(calc(100% - 32px), var(--vesuko-max)); }
  .hero, .hero-content { min-height: calc(100svh - 72px); }
  .hero-media { object-position: 62% center; }
  .hero-slide:nth-child(2) .hero-media { object-position: 66% center; }
  .hero-slide:nth-child(3) .hero-media { object-position: 58% center; }
  .hero-slide::after, .hero-slide--dark::after { background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.70) 47%, rgba(0,0,0,.12) 100%); }
  .hero-slide--dark::after { background: linear-gradient(180deg, rgba(0,0,0,.74), rgba(0,0,0,.45) 60%, rgba(0,0,0,.22)); }
  .hero-content { align-items: flex-start; padding-top: 70px; }
  .hero-copy { width: 100%; }
  .hero-logo { width: min(83vw, 360px); margin-bottom: 30px; }
  .hero-title { max-width: 390px; font-size: clamp(30px, 9vw, 42px); }
  .hero-phone { font-size: 30px; }
  .intro { padding-block: 70px; }
  .intro h1 { font-size: 48px; }
  .trust-card { padding: 27px; }
  .service-area .wrap, .footer-main { grid-template-columns: 1fr; }
  .subhero, .subhero-inner { min-height: 330px; }
  .subhero::after { background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.70) 62%, rgba(255,255,255,.22)); }
  .subhero-copy { width: 100%; }
  .subhero-logo { width: min(76vw, 300px); }
  .subhero-title { max-width: 340px; }
  .subhero--huoneistoremontit .subhero-media { object-position: 63% center; }
  .subhero--kylpyhuoneremontit .subhero-media { object-position: 65% center; }
  .subhero--terassit-ja-saunat .subhero-media { object-position: 65% center; }
  .subhero--muut-palvelut .subhero-media { object-position: 62% center; }
  .subhero--yhteystiedot .subhero-media,
  .subhero--galleria .subhero-media,
  .subhero--verkkolaskutustiedot .subhero-media { object-position: 53% center; }
  .page-shell--subpage { padding-block: 62px; }
  .testimonial, .service-card, .company-contact, .contact-card, .invoice-content { padding: 25px; }
  .contact-cards { grid-template-columns: 1fr; }
  .gallery-page { padding-top: 56px; }
  .gallery-nav { gap: 8px; }
  .gallery-nav a { padding: 9px 13px; font-size: 13px; }
  .gallery-section-header { display: block; }
  .gallery-back { display: inline-block; margin-bottom: 13px; }
  .gallery-lightbox { padding: 66px 10px 18px; }
  .gallery-lightbox-stage { height: calc(100vh - 84px); }
  .gallery-lightbox-prev, .gallery-lightbox-next { top: auto; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; transform: none; }
}
@media (max-width: 440px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
