@import url('https://fonts.googleapis.com/css2?family=Carattere&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* =========================================================
   TEAM HELANTO — LUXURY DRESSAGE TEMPLATE
   1400px centered layout / responsive
   ========================================================= */

:root {
  --black: #101112;
  --black-2: #171819;
  --charcoal: #242425;
  --cream: #eee9df;
  --paper: #e8e2d7;
  --gold: #b49358;
  --gold-light: #d0b477;
  --muted: #a8a39a;
  --white: #f7f5f0;
  --max: 1200px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

a:link, a:active, a:visited { color: var(--gold); font-weight:500; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Inter;
  font-weight: 300;
  letter-spacing: .035em;
line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--max));
  height: 112px;
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.13);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 11px;
  letter-spacing: .18em;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  transition: color .25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-light);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.nav-divider {
  color: rgba(255,255,255,.25);
}

/* HERO */

.hero {
  position: relative;
  width: min(100%, var(--max));
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
  background: url("https://virtuaalikuvat.kuvat.fi/kuvat/D/bg.png/full");
	background-repeat: no-repeat;
	background-size:cover;
background-position: top center;
}

.hero_horse {
  display: grid;
  grid-template-columns: 1fr, 1fr;

  position: relative;
  width: min(100%, var(--max));
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
  background: url("https://virtuaalikuvat.kuvat.fi/kuvat/D/bg.png/full");
	background-repeat: no-repeat;
	background-size:cover;
background-position: top center;
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    url("https://virtuaalikuvat.kuvat.fi/kuvat/D/Raituva.png/full")
    right bottom no-repeat;
  transform: scale(1.02);
}

.hero-image-horse {
  position: absolute;
  inset: 0;
  transform: scale(1.02);
}

.hero-image-horse img { float: right; height: 350px; margin: 80px 120px 0 0; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); border: solid var(--gold) 1px; }
.pikkuinfo { font-size: 15px; color: #888888; letter-spacing:0; font-weight: 400; }

.hero-copy, .hero-copy-horse {
  position: absolute;
  z-index: 2;
  top: 90px;
  left: 8%;
  max-width: 500px;
}

.hero-copy p, .hero-copy-horse p { line-height: 1.8; font-size: 17px; }
.hero-copy img { max-height: 280px; }

.eyebrow {
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: .32em;
  margin: 0 0 24px;
}

.hero h1, .hero_horse h1 {
  font-family: Carattere;
  font-weight: 300;
  font-size: 50px;
  line-height: .92;
  margin: 0;
  letter-spacing: .02em;
color: var(--gold);
}

.ornament {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 250px;
  margin: 35px 0 27px;
}

.ornament span {
  height: 1px;
  background: var(--gold);
  flex: 1;
  opacity: .75;
}

.ornament b {
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 300;
}

.hero-lead {
  color: #d1cdc5;
  line-height: 1.9;
  font-size: 13px;
  letter-spacing: .04em;
}

.vertical-words {
font-family: Inter;
background: rgba(0,0,0,.85);
  position: absolute;
  right: 0px;
  top: 0px; bottom: 0;
padding: 20px 20px;
  writing-mode: vertical-rl;
  color: var(--gold-light);
  font-size: 22px;
}

.vertical-words a { margin: 10px; font-weight:300; }

/* PHILOSOPHY */

.philosophy {
  width: min(100%, var(--max));
  margin: 0 auto;
  background: var(--paper);
}

.paper-panel {
  position: relative;
  padding: 60px 50px;
  color: #2a2927;
  overflow: hidden;
}

.section-number {
  position: absolute;
  right: 45px;
  top: 40px;
  font-family: "Cormorant Garamond", serif;
  font-size: 80px;
  color: rgba(42,41,39,.07);
}

.paper-panel h2 {
  font-family: Carattere;
  font-weight: 300;
  font-size: 40px;
  line-height: .92;
  margin: 0;
  letter-spacing: .02em;
}

.paper-panel h3 {
  font-family: Carattere;
  font-weight: 300;
  font-size: 40px;
  line-height: .92;
  margin: 70px 0 0 0;
  letter-spacing: .02em;
}

.gold-line {
  width: 68px;
  height: 1px;
  background: var(--gold);
  margin: 28px 0;
}

.paper-panel > p { position: relative; width: 100%; font-size: 15px; line-height: 2; text-align:justify; }

.signature { display: block; margin-top: 32px; color: #9a7740; font-family: Carattere; font-size: 39px; font-style: italic; }

/* THREE SERVICES */

.services {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 72px 70px 82px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background:
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 30%),
    var(--black-2);
}

.service-card {
  position: relative;
  padding: 0 55px;
  text-align: center;
  border-right: 1px solid rgba(180,147,88,.5);
}

.service-card:first-child { padding-left: 35px; }
.service-card:last-child {
  border-right: 0;
  padding-right: 35px;
}

.shape-image {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
  overflow: hidden;
  border: 1px solid var(--gold);
}

.shape-image.hex {
  clip-path: polygon(25% 6%,75% 6%,100% 50%,75% 94%,25% 94%,0 50%);
}

.shape-image.diamond {
  transform: rotate(45deg);
  width: 130px;
  height: 130px;
  margin-bottom: 50px;
}

.shape-image.diamond .horse-detail {
  transform: rotate(-45deg) scale(1.45);
}

.shape-image.circle {
  border-radius: 50%;
}

.horse-detail {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.image-one {
  background-image: url("https://virtuaalikuvat.kuvat.fi/kuvat/D/N/p%C3%A4%C3%A4kuva2.png/full");
}

.image-two {
  background-image: url("https://virtuaalikuvat.kuvat.fi/kuvat/D/W/Miuku+VRL-13834.jpg/full");
}

.image-three {
  background-image: url("https://virtuaalikuvat.kuvat.fi/kuvat/muut/Lurkki/hevosrekka.png/full");
}

.service-number {
  display: block;
  color: var(--gold-light);
  font-family: Inter;
  font-size: 24px;
  letter-spacing: .08em;
}

.service-card h3 {
  margin: 4px 0 14px;
  font-family: Inter;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .08em;
}

.service-card p {
  max-width: 260px;
  margin: 0 auto;
  color: #9e9a92;
  font-size: 13px;
  line-height: 1.9;
}

.service-card a {
  display: inline-block;
  margin-top: 23px;
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(180,147,88,.6);
  padding-bottom: 7px;
}


/* FOOTER */

.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  min-height: 90px;
  padding: 25px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #77746e;
  background: #0c0d0d;
  font-size: 13px;
  letter-spacing: .12em;
}






/* =========================
   HEVOSLISTAUS
========================= */

.estate-horses{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  align-items:start;
}

.estate-horse{
  position:relative;
  background: #F0EDE6;
  border:1px solid rgba(184,130,49,.35);
  box-shadow:
    0 18px 40px rgba(0,0,0,.10);
  overflow:hidden;
  transition:.35s ease;
text-align:center;
}

.estate-horse:hover{
  transform:translateY(-4px);
  box-shadow:
    0 28px 55px rgba(0,0,0,.16);
}

.estate-image{
  position:relative;
  overflow:hidden;
}

.estate-image:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to top,
      rgba(0,0,0,.18),
      transparent 45%);
}

.estate-image img{
  width:100%;
  height:250px;
  object-fit:cover;
  display:block;
  transition:transform .7s ease;
}

.estate-horse:hover .estate-image img{
  transform:scale(1.05);
}

.estate-content{
  position:relative;
  padding:0 30px 20px 30px;
}

.estate-content h3{
  font-family:Carattere;
  font-size:32px;
  font-weight:500;
  color:#161514;
margin-top:30px;;
  margin-bottom:14px;
  letter-spacing:1px;
}

.estate-horse p {
  border-top:1px solid rgba(184,130,49,.22);
padding-top: 20px;
  font-family:Inter;
  font-size:14px;
line-height: 1.7;
text-align:justify;
}

.estate-meta{
  font-family:Inter;
  font-size:11px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:#9d6d2b;
  margin-bottom:20px;
line-height: 1.8;
}

.estate-awards{
  padding-top:18px;
  border-top:1px solid rgba(184,130,49,.22);
  font-family:Inter;
  font-size:13px;
  color:#9d6d2b;
}



.kuvagalleria { text-align:center; margin-bottom: 30px; }
.kuvagalleria img { height: 155px; margin: 10px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); border: solid var(--gold) 1px; }

.sukutaulu { width: 100%; border-collapse:separate; border-spacing: 10px; }
.sukutaulu td {
font-size: 15px;
padding: 10px 20px;
   background: #F0EDE6;
  border-color: rgba(184,130,49,.35);
border-width: 1px 1px 1px 5px;
border-style: solid;
  box-shadow:
    0 8px 20px rgba(0,0,0,.10);
  transition:.35s ease;
 }

.sukutaulu td small {
font-size: 13px; color: var(--gold);
}

.evm { font-size: 10px; font-weight:500; text-transform:uppercase; float:right; padding: 3px 5px; border: solid rgba(184,130,49,.35) 1px; background: #eee; border-radius: 3px; }

.sukutaulu td:hover {
  transform:scale(1.01);
}



.horse-pedigree-desc {
    height: 170px;
    overflow: hidden;
}

.horse-pedigree-desc-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.horse-pedigree-desc-wrapper label {
    position: absolute;
    top: 100%;
    font-family: 'Carattere', serif;
font-weight:500;
font-size: 30px;
    color: var(--gold);
    width: 100%;
    text-align: center;
    background: rgb(238,238,238);
    background: linear-gradient(0deg, rgba(231,226,215,1) 0%, rgba(231,226,215,0) 100%);
    margin-top: -100px;
    padding-top: 100px;
}

.horse-pedigree-desc-wrapper input {
    display: none;
}

.horse-pedigree-desc-wrapper label:after {
    content: "Näytä lisää";
}

.horse-pedigree-desc-wrapper input:checked + label:after {
    content: "Näytä vähemmän";
}

.horse-pedigree-desc-wrapper input:checked + label {
    background: none;
    margin-top: 0px;
    padding-top: 0px;
}

.horse-pedigree-desc-wrapper input:checked ~ div {
    height: 100%;
}

.horse-pedigree-desc p {
font-size: 15px; line-height: 2;
}







/* =========================
   HEVOSLISTAUS
========================= */

.horse-foals{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  align-items:start;
margin-top: 60px;
}

.horse-foal {
  position:relative;
  background: #F0EDE6;
  border:1px solid rgba(184,130,49,.35);
  box-shadow:
    0 18px 40px rgba(0,0,0,.10);
  overflow:hidden;
  transition:.35s ease;
text-align:center;
}

.horse-foal:hover{
  transform:translateY(-4px);
  box-shadow:
    0 28px 55px rgba(0,0,0,.16);
}

.foal-image{
  position:relative;
  overflow:hidden;
}

.foal-image:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to top,
      rgba(0,0,0,.18),
      transparent 45%);
}

.foal-image img{
  width:100%;
  height:250px;
  object-fit:cover;
  display:block;
  transition:transform .7s ease;
}

.horse-foal:hover .foal-image img{
  transform:scale(1.05);
}




.kilpailut {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
  align-items:start;
}


.menu-toggle { display: none; }






/* RESPONSIVE */

@media (max-width: 900px) {

  .site-header {
    height: 92px;
    padding: 22px 28px;
  }

  .main-nav {
    gap: 13px;
    font-size: 9px;
  }

  .nav-divider {
    display: none;
  }

  .brand-main { font-size: 24px; }

  .hero {
    height: 320px;
  }

  .hero-image { height: 0px; width:0px;
  }

  .hero h1 {
    font-size: clamp(56px, 12vw, 90px);
  }

  .vertical-words {
    font-size: 0px; height: 320px; text-align:center; z-index:900;
  }

  .vertical-words a { display: inline-block; font-size: 11px; margin: 10px 0px; z-index:1000; }

  .philosophy {
    grid-template-columns: 1fr;
  }

  .stable-image {
    min-height: 420px;
  }

  .services {
    padding: 60px 25px;
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .service-card,
  .service-card:first-child,
  .service-card:last-child {
    padding: 0 20px 55px;
    border-right: 0;
    border-bottom: 1px solid rgba(180,147,88,.35);
  }

  .service-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

.estate-horses, .horse-foals, .kilpailut {
  grid-template-columns:repeat(1,1fr);
  gap:10px;
}



.hero_horse { height: 320px; }

.hero-image-horse img { height: 0px; width: 0px; margin: 0px; }
.pikkuinfo { font-size: 13px; }

.hero-copy, .hero-copy-horse { top: 30px;
  left: 8%;
  max-width: 100%;
}

.hero-copy-horse p { line-height: 1.8; font-size: 14px; }
.hero-copy img { height: auto; width: 75%; margin-top: 40px; }

.hero h1, .hero_horse h1 {
  font-size: 30px;
}

}

@media (max-width: 600px) {

.hero_horse { height: 320px; }

.hero-image-horse img { height: 0px; width: 0px; margin: 0px; }
.pikkuinfo { font-size: 13px; }

.hero-copy, .hero-copy-horse { top: 30px;
  left: 8%;
  max-width: 100%;
}

.hero-copy-horse p { line-height: 1.8; font-size: 14px; }
.hero-copy img { height: auto; width: 75%; margin-top: 40px; }

.hero h1, .hero_horse h1 {
  font-size: 30px;
}

  .site-header {
    position: absolute;
    padding: 18px 20px;
  }

  .brand {
    min-width: 0;
  }

  .brand-small,
  .brand-sub {
    font-size: 7px;
  }

  .brand-main {
    font-size: 21px;
  }

  .main-nav {
    gap: 10px;
    font-size: 7px;
    letter-spacing: .12em;
  }

  .monogram {
    display: none;
  }

  .hero {
    height: 320px;
  }

  .hero-image { height: 0px; width:0px;
  }

  .vertical-words {
    font-size: 0px; height: 320px; text-align:center; z-index:900;
  }

  .vertical-words a { display: inline-block; font-size: 11px; margin: 10px 0px; z-index:1000; }

  .hero h1 {
    font-size: 58px;
  }

  .hero-lead {
    font-size: 11px;
  }

  .paper-panel {
    padding: 70px 30px;
  }

  .paper-panel h2 {
    font-size: 42px;
  }

  .stable-image {
    min-height: 320px;
  }

  .site-footer {
    padding: 25px 20px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

.estate-horses, .horse-foals, .kilpailut {
  grid-template-columns:repeat(1,1fr);
  gap:10px;
}
}
