@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --estate-navy: #0f2b3c;
  --estate-navy-soft: #17384b;
  --estate-gold: #bd9a63;
  --estate-cream: #f3efe9;
  --estate-copy: #132d3e;
  --blue: #006aa6;
  --blue-dark: #005483;
  --green: #7b9800;
}

.estate-page {
  background: #fff;
}

/* Henkilökunta ja yhteystietojen väliotsikko, sama tyyli kuin pienvarastoissa. */
.estate-page .section-kicker {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.estate-staff { padding: 48px 0 56px; background: #fff; }
.estate-staff-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px;
}
.estate-staff-copy { min-width: 0; }
.estate-staff-title,
.estate-services h2,
.estate-process h2 {
  margin: 0 0 16px;
  color: #000;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: normal;
}
.estate-staff-intro {
  max-width: 820px;
  margin: 0;
  color: #000;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.estate-services { padding: 56px 0 64px; background: #fff; }
.estate-services-intro {
  max-width: 900px;
  color: #000;
  font: 400 17px/1.65 "Montserrat", Arial, sans-serif;
}
.estate-services-intro p { margin: 0 0 16px; }
.estate-services-intro p:last-child { margin-bottom: 0; }
@media (max-width: 800px) {
  .estate-services { padding: 40px 0 48px; }
}

.estate-process {
  padding: 56px 0 64px;
  background: var(--estate-cream);
}
.estate-process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.estate-process-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: #fff;
  font: 600 22px/1 "Montserrat", Arial, sans-serif;
}
.estate-process-steps h3 {
  margin: 0 0 12px;
  color: #000;
  font: 600 18px/1.45 "Montserrat", Arial, sans-serif;
}
.estate-process-steps p {
  margin: 0;
  color: #000;
  font: 400 17px/1.65 "Montserrat", Arial, sans-serif;
}
@media (max-width: 800px) {
  .estate-process { padding: 40px 0 48px; }
  .estate-process-steps { grid-template-columns: 1fr; gap: 30px; }
  .estate-process-number { margin-bottom: 14px; }
}
.estate-staff-portraits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  justify-content: end;
  align-items: start;
  gap: 48px;
  margin: 0;
}
.estate-staff-member {
  flex: 0 1 280px;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  text-align: center;
}
.estate-staff-member figcaption {
  margin-top: 18px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #000;
}
.estate-staff-name, .estate-staff-role { display: block; }
.estate-staff-name { font-weight: 600; }
.estate-staff-role { font-weight: 400; }
.estate-staff-portrait {
  position: relative;
  width: min(280px, 100%);
  aspect-ratio: 1;
  flex: 0 1 280px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--estate-cream);
  border: 0;
}
.estate-staff-portrait img {
  position: absolute;
  bottom: 0;
  left: 5%;
  display: block;
  width: 90%;
  height: 90%;
  object-fit: contain;
}
@media (max-width: 950px) {
  .estate-staff-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .estate-staff { padding: 36px 0 40px; }
  .estate-staff-portraits { gap: 32px; }
  .estate-staff-member { flex-basis: 220px; }
  .estate-staff-member figcaption { font-size: 16px; }
}
@media (max-width: 480px) {
  .estate-staff-portraits { grid-template-columns: minmax(0, 220px); }
}

.subpage-header {
  background: #fff;
}

.subpage-header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.subpage-logo {
  display: block;
  width: min(360px, 60vw);
  max-height: 78px;
  object-fit: contain;
}

.subpage-logo-link {
  display: inline-flex;
  align-items: center;
}

.back-link {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.back-link:hover {
  text-decoration: underline;
}

.estate-hero {
  display: grid;
  grid-template-columns: minmax(470px, 46%) 1fr;
  min-height: 720px;
  background: var(--estate-cream);
}

.estate-copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 88% 50%, rgba(243,239,233,.15), rgba(243,239,233,.98) 55%),
    var(--estate-cream);
}

.estate-copy-inner {
  width: min(610px, calc(100% - 64px));
  margin-left: max(44px, calc((100vw - 1320px) / 2));
  padding: 54px 0 48px;
}

.heart-mark {
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
}

.heart-mark svg,
.servicebar-heart svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--blue-dark);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.estate-copy h1 {
  margin: 0;
  color: #000;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(44px, 4.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -.025em;
}

.gold-line {
  width: 150px;
  height: 4px;
  margin: 30px 0 27px;
  background: linear-gradient(90deg, var(--blue) 0 42%, var(--green) 42% 100%);
}

.lead {
  max-width: 500px;
  margin: 0 0 28px;
  color: #000;
  font-size: 18px;
  line-height: 1.65;
}

.benefits {
  display: grid;
  gap: 18px;
  max-width: 540px;
}

.benefit {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
}

.benefit-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-dark);
}

.benefit-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit strong,
.benefit span {
  display: block;
}

.benefit strong {
  margin-bottom: 2px;
  color: #000;
  font-size: 15px;
}

.benefit span {
  color: #000;
  font-size: 14px;
  line-height: 1.38;
}

.estate-photo {
  min-height: 720px;
  background-image:
    linear-gradient(90deg, rgba(243,239,233,.74) 0%, rgba(243,239,233,.08) 18%, rgba(0,0,0,.05) 100%),
    url('assets/kuolinpesat.jpeg');
  background-size: cover;
  background-position: center center;
}

.estate-servicebar {
  background: var(--blue-dark);
  color: #fff;
}

.estate-servicebar-inner {
  width: min(1420px, calc(100% - 48px));
  min-height: 150px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 2.3fr;
  align-items: center;
  gap: 28px;
}

.servicebar-message {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: center;
  padding-right: 28px;
  border-right: 1px solid rgba(255,255,255,.35);
}

.servicebar-heart {
  width: 64px;
  height: 64px;
}

.servicebar-message strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.servicebar-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.servicebar-item {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .03em;
}

.servicebar-item svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.estate-servicebar .servicebar-heart svg {
  stroke: #fff;
}

.site-footer {
  color: #fff;
  background: var(--blue-dark);
}

.copyright {
  text-align: center;
  padding: 15px 20px;
  font-size: 14px;
  background: var(--blue-dark);
}

.estate-contact {
  background: var(--estate-cream);
  padding: 46px 0;
}

.estate-contact-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}

.estate-contact h2 {
  margin: 0 0 16px;
  color: #000;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: normal;
}

.estate-contact p {
  margin: 0;
  color: #42535e;
}

.estate-contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.estate-contact-links a,
.estate-contact-links strong {
  color: var(--blue-dark);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
  text-decoration: none;
}

.estate-contact-links a:hover {
  text-decoration: underline;
}

@media (max-width: 1050px) {
  .estate-hero {
    grid-template-columns: 1fr;
  }

  .estate-photo {
    min-height: 520px;
    order: -1;
    background-position: center;
  }

  .estate-copy-inner {
    width: min(760px, calc(100% - 40px));
    margin-inline: auto;
  }

  .estate-servicebar-inner {
    grid-template-columns: 1fr;
    padding: 30px 0;
  }

  .servicebar-message {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.3);
    padding: 0 0 24px;
  }
}

@media (max-width: 720px) {
  .subpage-header-inner {
    min-height: 76px;
  }

  .back-link {
    font-size: 14px;
  }

  .estate-photo {
    min-height: 360px;
  }

  .estate-copy-inner {
    width: min(100% - 30px, 680px);
    padding: 38px 0;
  }

  .estate-copy h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .lead {
    font-size: 16px;
  }

  .benefit {
    grid-template-columns: 50px 1fr;
  }

  .benefit-icon {
    width: 50px;
    height: 50px;
  }

  .benefit-icon svg {
    width: 29px;
    height: 29px;
  }

  .servicebar-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 14px;
  }

  .servicebar-message {
    grid-template-columns: 56px 1fr;
  }

  .servicebar-heart {
    width: 54px;
    height: 54px;
  }

  .estate-contact-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .estate-contact-links {
    align-items: flex-start;
  }
}

/* Sama korkeus, väri ja typografia kuin pienvarastojen slogan-palkissa. */
.estate-tagline-bar {
  box-sizing: border-box; width: 100%; min-height: 60px; margin: 0; padding: 12px 20px;
  background: #005483; display: flex; align-items: center; justify-content: center; border: 0;
}
.estate-tagline-bar p {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px;
  margin: 0; padding: 0; color: #fff; font: 400 20px/1.2 Montserrat,Arial,sans-serif;
  letter-spacing: .6px; text-align: center;
}
.estate-tagline-bar svg { width: 28px; height: 28px; flex: 0 0 auto; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) {
  .estate-tagline-bar p { font-size: 14px; gap: 6px 10px; }
  .estate-tagline-bar svg { width: 22px; height: 22px; }
}
