/*
Theme Name: Joulukuusitukku
Theme URI: https://www.joulukuusitukku.fi/
Author: Joulukuusitukku
Description: Tyylikäs ja responsiivinen WordPress-teema kotimaiselle joulukuusitukulle.
Version: 1.1.1
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: joulukuusitukku
*/

:root {
  --forest: #113d2d;
  --forest-deep: #08281d;
  --pine: #1f6047;
  --moss: #afbe8f;
  --cream: #f7f2e7;
  --paper: #fffdf8;
  --ink: #183129;
  --muted: #65736b;
  --gold: #c89b4b;
  --line: rgba(17, 61, 45, 0.14);
  --shadow: 0 24px 70px rgba(8, 40, 29, 0.15);
  --radius: 28px;
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.wrap { width: var(--wrap); margin-inline: 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;
}
.skip-link:focus { position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; z-index: 999; }

.site-header {
  position: absolute; inset: 0 0 auto; z-index: 20; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; position: relative; flex: 0 0 auto; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-style: solid; }
.brand-mark::before { top: 0; border-width: 0 13px 19px; border-color: transparent transparent var(--moss); }
.brand-mark::after { top: 12px; border-width: 0 18px 25px; border-color: transparent transparent #fff; }
.brand-mark i { position: absolute; width: 3px; height: 8px; background: var(--gold); left: calc(50% - 1px); bottom: 0; }
.brand-name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.55rem; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: .86rem; font-weight: 700; letter-spacing: .04em; }
.site-nav a { text-decoration: none; opacity: .88; transition: opacity .2s; }
.site-nav a:hover { opacity: 1; }
.nav-cta { padding: 12px 19px; border: 1px solid rgba(255,255,255,.45); border-radius: 99px; }
.menu-toggle { display: none; padding: 10px; color: #fff; background: transparent; border: 0; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px 0; background: currentColor; }

.hero { position: relative; min-height: 820px; display: grid; align-items: end; overflow: hidden; color: #fff; background: var(--forest-deep); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,28,20,.94) 0%, rgba(5,28,20,.72) 44%, rgba(5,28,20,.16) 78%),
    linear-gradient(0deg, rgba(5,28,20,.58), transparent 44%),
    var(--hero-image, url("https://www.joulukuusitukku.fi/wp-content/uploads/2025/10/20250919_101905-scaled.jpg")) center 42% / cover;
  transform: scale(1.01);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, rgba(8,40,29,.42)); }
.hero-content { position: relative; z-index: 2; padding: 190px 0 110px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: var(--moss); text-transform: uppercase; letter-spacing: .19em; font-size: .75rem; font-weight: 800; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.hero h1 { max-width: 780px; margin: 0; font: 600 clamp(4rem, 8.5vw, 7.6rem)/.83 "Cormorant Garamond", Georgia, serif; letter-spacing: -.055em; }
.hero h1 em { display: block; color: var(--moss); font-weight: 500; }
.hero-lead { max-width: 590px; margin: 34px 0 40px; color: rgba(255,255,255,.78); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 54px; padding: 0 25px; border-radius: 99px; background: var(--cream); color: var(--forest-deep); text-decoration: none; font-size: .84rem; font-weight: 800; letter-spacing: .04em; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-outline { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.42); }
.hero-note { position: absolute; right: 0; bottom: 108px; display: grid; grid-template-columns: auto auto; gap: 12px 40px; align-items: center; }
.hero-note strong { grid-row: span 2; font: 600 3.4rem/1 "Cormorant Garamond", Georgia, serif; color: var(--moss); }
.hero-note span { font-size: .73rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.68); }
.hero-note b { font-size: .95rem; }

.trust-bar { background: var(--forest); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 28px 34px; border-right: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; gap: 15px; }
.trust-item:last-child { border: 0; }
.trust-number { color: var(--moss); font: 600 2.2rem/1 "Cormorant Garamond", Georgia, serif; }
.trust-item span { color: rgba(255,255,255,.72); font-size: .78rem; line-height: 1.35; text-transform: uppercase; letter-spacing: .08em; }

.section { padding: 130px 0; }
.section-kicker { margin: 0 0 14px; color: var(--pine); font-size: .73rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.section-title { max-width: 760px; margin: 0; font: 600 clamp(2.9rem, 5vw, 5rem)/.95 "Cormorant Garamond", Georgia, serif; letter-spacing: -.035em; }
.section-copy { max-width: 600px; color: var(--muted); font-size: 1.05rem; }
.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: center; }
.image-stack { position: relative; min-height: 610px; }
.image-main { width: 78%; height: 560px; object-fit: cover; border-radius: 220px 220px 22px 22px; box-shadow: var(--shadow); }
.image-detail { position: absolute; width: 43%; height: 295px; right: 0; bottom: 0; object-fit: cover; border: 10px solid var(--paper); border-radius: 120px 120px 18px 18px; }
.intro-copy .section-title { margin-bottom: 30px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 38px 0 0; padding: 0; list-style: none; }
.feature-list li { padding: 16px 0 16px 30px; position: relative; border-top: 1px solid var(--line); font-weight: 700; }
.feature-list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }

.products { background: var(--cream); }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 55px; }
.section-heading-row .section-copy { margin: 0 0 5px; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-card { position: relative; min-height: 590px; overflow: hidden; border-radius: var(--radius); color: #fff; box-shadow: var(--shadow); }
.product-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.product-card:hover img { transform: scale(1.035); }
.product-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,28,20,.9), rgba(5,28,20,.08) 65%); }
.product-content { position: absolute; z-index: 2; inset: auto 0 0; padding: 42px; }
.product-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); font-weight: 800; }
.product-card h3 { margin: 8px 0 10px; font: 600 2.7rem/1 "Cormorant Garamond", Georgia, serif; }
.product-meta { display: flex; gap: 25px; color: rgba(255,255,255,.78); font-size: .9rem; }

.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 95px; align-items: start; }
.steps { margin-top: 48px; counter-reset: step; }
.step { position: relative; padding: 0 0 34px 70px; counter-increment: step; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 45px; bottom: 8px; width: 1px; background: var(--line); }
.step::before { content: "0" counter(step); position: absolute; left: 0; top: 0; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--pine); font-size: .72rem; font-weight: 800; }
.step h3 { margin: 0 0 6px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }
.service-panel { position: sticky; top: 28px; padding: 55px; background: var(--forest-deep); color: #fff; border-radius: var(--radius); overflow: hidden; }
.service-panel::after { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(175,190,143,.18); border-radius: 50%; right: -80px; bottom: -100px; box-shadow: 0 0 0 50px rgba(175,190,143,.04), 0 0 0 100px rgba(175,190,143,.03); }
.service-panel .section-title { font-size: 3.4rem; }
.service-panel p { color: rgba(255,255,255,.68); }
.locations { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 38px; }
.locations span { padding: 8px 13px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 99px; font-size: .78rem; }

.gallery { background: #e9eadf; overflow: hidden; }
.gallery-head { margin-bottom: 50px; }
.gallery-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr; grid-template-rows: 250px 250px; gap: 16px; }
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: 18px; }
.gallery-grid figure:first-child { grid-row: 1 / 3; }
.gallery-grid figure:nth-child(4) { grid-column: 2 / 4; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-grid figure:hover img { transform: scale(1.04); }

.contact { position: relative; overflow: hidden; background: var(--forest); color: #fff; }
.contact::before { content: ""; position: absolute; inset: 0; opacity: .08; background: repeating-linear-gradient(135deg, transparent 0 24px, #fff 25px 26px); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.contact .section-kicker { color: var(--moss); }
.contact .section-title { font-size: clamp(3.2rem, 6vw, 6rem); }
.contact-card { padding: 44px; background: var(--paper); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-card p { margin-top: 0; color: var(--muted); }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 800; }
.contact-link:last-child { border-bottom: 0; }
.contact-link span { color: var(--pine); }

.site-footer { padding: 42px 0; background: var(--forest-deep); color: rgba(255,255,255,.62); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: center; font-size: .8rem; }
.footer-inner a { color: #fff; text-decoration: none; }

@media (max-width: 900px) {
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .site-nav { position: fixed; inset: 0; padding: 120px 30px 40px; flex-direction: column; align-items: flex-start; background: var(--forest-deep); transform: translateX(100%); transition: transform .3s; font-size: 1.15rem; }
  .site-nav.is-open { transform: translateX(0); }
  .hero { min-height: 720px; }
  .hero-note { display: none; }
  .intro-grid, .service-grid, .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .image-stack { min-height: 520px; }
  .image-main { height: 480px; }
  .product-card { min-height: 500px; }
  .section-heading-row { display: block; }
  .section-heading-row .section-copy { margin-top: 24px; }
  .service-panel { position: relative; top: 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 360px 220px 220px; }
  .gallery-grid figure:first-child { grid-column: 1 / 3; grid-row: auto; }
  .gallery-grid figure:nth-child(4) { grid-column: 1 / 3; }
}

@media (max-width: 640px) {
  :root { --wrap: min(100% - 28px, 1180px); --radius: 20px; }
  .nav-wrap { min-height: 74px; }
  .brand-name { font-size: 1.25rem; }
  .hero { min-height: 690px; }
  .hero-content { padding: 150px 0 70px; }
  .hero h1 { font-size: clamp(3.5rem, 18vw, 5rem); }
  .hero-lead { margin: 28px 0 32px; font-size: 1rem; }
  .hero-actions { display: grid; }
  .trust-grid { grid-template-columns: 1fr; padding: 10px 0; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding: 20px 5px; }
  .section { padding: 86px 0; }
  .intro-grid { gap: 42px; }
  .image-stack { min-height: 420px; }
  .image-main { height: 390px; width: 84%; }
  .image-detail { height: 205px; border-width: 6px; }
  .feature-list, .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 470px; }
  .product-content { padding: 28px; }
  .product-card h3 { font-size: 2.25rem; }
  .service-panel { padding: 35px 28px; }
  .service-panel .section-title { font-size: 2.8rem; }
  .gallery-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 280px 180px 180px; }
  .gallery-grid figure:first-child { grid-column: 1 / 3; }
  .gallery-grid figure:nth-child(4) { grid-column: 1 / 3; }
  .contact-card { padding: 30px 24px; }
  .contact-link { align-items: flex-start; flex-direction: column; gap: 3px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
