@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Mea+Culpa&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
  font-family: Cimlajin; /* set name */
  src: url(Cimlajin.ttf); /* url of the font */
font-weight:400;
}

:root {
  --blush: #f7e9e6;
  --blush-deep: #efd2cd;
  --cream: #fffdfb;
  --white: #ffffff;
  --rose: #c98d82;
  --rose-dark: #a86f65;
  --gold: #c79b72;
  --ink: #3b3432;
  --muted: #857773;
  --line: rgba(180, 123, 113, .28);
  --font1: "Montserrat";
  --font2: "Mea Culpa";
  --font3: "Instrument Serif";
  --font4: "Cimlajin";
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font1);
font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}
a:link, a:active, a:visited { color: var(--rose); text-decoration: none; }
a:hover { color: var(--rose-dark); text-decoration: none; }

.site-header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  background: var(--blush);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 58px;
}
.nav a {
  position: relative;
  padding: 38px 0 34px;
font-family: var(--font3);
color: var(--rose);
font-weight:600;
  font-size: 15px;
  letter-spacing: .23em;
  text-transform: uppercase;
  transition: color .25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 24px;
  height: 1px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.nav a:hover,
.nav a.active { color: var(--rose-dark); }
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }

.brand {
  position: absolute;
  left: 11%;
  top: 10px;
  width: 262px;
  height: 76px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--rose-dark);
}
.brand-main {
  font: 500 37px/1 var(--font3);
  letter-spacing: -.12em;
}
.brand-main span { font-size: 27px; }
.brand-crown {
  position: absolute;
  top: 1px;
  font-size: 18px;
  color: var(--gold);
}

.menu-toggle { display: none; }

.hero {
  width: min(1300px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 450px;
  background:
    radial-gradient(circle at 0 100%, rgba(252, 236, 235, .75), transparent 50%, rgba(252, 236, 235, .75)),
    var(--cream);
  overflow: hidden;
}
.hero-copy {
  position: relative;
  padding: 70px 50px 75px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}
.eyebrow {
  margin: 0 0 17px;
  color: var(--rose-dark);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font: 400 clamp(64px, 6.2vw, 62px)/.77 var(--font4);
  letter-spacing: -.045em;
}

.inset-text { color: rgba(201,141,130, 0.8); text-shadow: 1px 2px 3px #E8CECA, 0 0 0 #000, 1px 4px 6px #B45F50; }

.hero h1 em {
  display: block;
  margin: 15px 0 0 11%;
  font: 400 clamp(70px, 6.4vw, 104px)/.7 var(--serif);
  letter-spacing: -.04em;
  text-transform: none;
}
.hero-divider {
  width: 280px;
  margin: 47px 0 29px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--gold);
}
.hero-divider span { flex: 1; height: 1px; background: var(--line); }
.hero-divider i { font-size: 25px; font-style: normal; }
.quote {
  margin: 20px 0 0 30px;
  color: var(--ink);
  font: italic 500 22px/1.45 var(--font3);
}
.hero-image {
  height: 400px;
  position: relative;
  overflow: hidden;
}
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255,253,251,.28), transparent 25%);
  pointer-events: none;
}
.hero-image img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.image-caption {
  position: absolute;
  right: 25px;
  bottom: 22px;
  z-index: 2;
  color: white;
  font-size: 10px;
  letter-spacing: .22em;
}

.profile-card {
  width: min(1300px, calc(100% - 70px));
  margin: -1px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 35% 65%;
  background: rgba(255, 253, 251, .98);
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(87, 50, 43, .07);
}
.basic-info {
  margin: 30px 0;
  padding: 0 34px 8px;
  border-right: 1px solid var(--line);
}
.section-label {
  padding: 15px 22px;
  margin-bottom: 0;
  background: var(--blush);
  color: var(--rose);
  font-family: var(--font3);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .21em;
  text-transform: uppercase;
}
.info-row {
  min-height: 52px;
  align-items: center;
  border-bottom: 1px solid rgba(180,123,113,.15);
padding: 10px;
  font-weight: 400;
  font-size: 16px;
}
.info-row span {
  font: italic 600 20px/1.45 var(--font3);
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 16px;
font-style:normal;
}
.info-row strong {
  font-weight: 400;
  text-align: right;
  font-size: 15px;
}

.pikkuinfo {
  color: var(--muted);
font-size: 14px;
font-style:normal;
}

.about-copy {
  padding: 30px;
text-align:justify;
}
.about-copy h2,
.section-heading h2 {
  margin: 0 0 10px 0;
  font: 500 32px/1 var(--font3);
  color: var(--rose);
  letter-spacing: -.02em;
}

.section-heading h3 {
  margin: 0 0 10px 0;
  font: 500 32px/1 var(--font3);
  color: var(--rose);
  letter-spacing: -.02em;
}

.pedigree h3 {
  margin: 0 0 10px 20px;
  font: 500 30px/1 var(--font3);
  color: var(--rose);
  letter-spacing: -.02em;
}

.mini-rule {
  margin: 23px 0;
  color: var(--gold);
  font-size: 38px;
}
.about-copy p:not(.eyebrow) {
  margin: 0 0 17px 0;
  color: #665b58;
  font-size: 16px;
  line-height: 1.9;
}
.signature {
  margin-top: 23px;
  color: var(--rose);
  font: italic 500 28px var(--serif);
}
.signature span { font-family: Arial; font-size: 17px; }



.foals {
  width: min(1300px, calc(100% - 70px));
  margin: -1px auto 0;
  position: relative;
  z-index: 3;
  background: rgba(255, 253, 251, .98);
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(87, 50, 43, .07);
}





.highlights {
  width: min(1300px, calc(100% - 70px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 0 100%, rgba(252, 236, 235, .75), transparent 50%, rgba(252, 236, 235, .75)),
    var(--cream);
}
.highlight {
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 25px;
  border-right: 1px solid var(--line);
}
.highlight:last-child { border-right: 0; }
.highlight-icon {
  color: var(--rose);
  font-size: 28px;
  font-family: var(--serif);
}
.highlight small,
.highlight strong {
  display: block;
  letter-spacing: .14em;
}
.highlight small {
  text-transform: uppercase;
  color: var(--rose);
  font-size: 16px;
  font-weight:500;
  line-height: 1.4;
}
.highlight strong {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.gallery-section, .pedigree-section {
  width: min(1300px, 100%);
  margin: 0 auto;
  padding: 82px 35px 75px;
  background: var(--blush);
}
.section-heading { text-align: center; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-heading h2 {
  font-size: 52px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.section-heading h3 {
  font-size: 48px;
  text-transform: uppercase;
  letter-spacing: .02em;
margin-top: 40px;
}

.section-heading .mini-rule { margin: 16px 0 28px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background: #ead5d1;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 3px 10px 0 rgba(0, 0, 0, 0.11);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .6s ease;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(47,32,29,.4));
  opacity: .65;
}
.gallery-item:hover img {
  transform: scale(1.045);
  filter: saturate(.9);
}
.gallery-item span {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 17px;
  color: white;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.closing {
  width: min(1300px, 100%);
  margin: 0 auto;
  min-height: 150px;
  padding: 28px 8%;
  display: grid;
  grid-template-columns: auto 400px 400px;
  align-items: center;
  gap: 30px;
  background:
    linear-gradient(rgba(224,178,169,.82), rgba(224,178,169,.82)),
    radial-gradient(circle at 30% 50%, #f5ded9, transparent 35%);
  color: white;
}
.closing-brand {
  position: relative;
  width: 70px;
  text-align: center;
}
.closing-brand span {
  display: block;
  color: white;
  font-size: 13px;
}
.closing-brand strong {
  display: block;
  margin-top: -3px;
  font: 500 40px/1 var(--serif);
  letter-spacing: -.1em;
}
.closing-quote { text-align: center; }
.closing-quote p {
  margin: 0;
  font: 400 16px/1.55 var(--serif);
  letter-spacing: .03em;
}
.closing-rule {
  width: 100px;
  height: 1px;
  margin: 15px auto 0;
  background: rgba(255,255,255,.75);
}
.socials {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  font-size: 13px;
  transition: background .25s, color .25s;
}
.socials a:hover { background: white; color: var(--rose-dark); }

footer {
  width: min(1300px, 100%);
  margin: auto;
  min-height: 55px;
  padding: 18px 35px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  background: var(--cream);
  font-size: 13px;
  letter-spacing: .18em;
}




.tooltip { position: relative; display: inline-block; cursor: pointer; font-size: 15px; color: var(--rose); font-style:normal; }

.tooltiptext {
font-family: var(--font1);
text-transform: none;
font-size: 15px;
font-style:normal;
  visibility: hidden;
  width: 130px;
  background: #FFF;
box-shadow: 0px 0px 1px #000000;
  color: #333333;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: -7px;
  left: 105%;
}

.tooltip:hover .tooltiptext, .tooltip2:hover .tooltiptext2 {
  visibility: visible;
}

.tooltip2 { position: relative; display: inline-block; cursor: pointer; font-size: 13px; color: var(--rose); margin-left: 10px; }

.tooltiptext2 {
text-transform: none;
font-size: 12pt;
  visibility: hidden;
  width: 200px;
  background: #FFF;
box-shadow: 0px 0px 1px #000000;
  color: #333333;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: -12px;
  left: 105%;
}






.tooltip-pkk { position: relative; display: inline-block; cursor: pointer; font-size: 15px; color: var(--rose); font-style:normal; }

.tooltiptext-pkk {
  visibility: hidden;
  width: 550px;
  padding: 0px;
  position: absolute;
  z-index: 100;
  top: -15px;
  right: 110%;
}

.tooltiptext-pkk img { width:100%;  border-radius: 10px; border: solid var(--line) 1px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1); }

.tooltip-pkk:hover .tooltiptext-pkk {
  visibility: visible;
}













.txt a:link, .txt a:active, .txt a:visited { font-family: var(--font3); font-size: 20px; font-weight: 500; }
.txt small { color: var(--muted); font-size: 14px; font-weight: 500; }


.haka
{
font-family: Times New Roman;
font-size: 4.8em; 
color:var(--rose); 
text-align:left;
}
.pikkuhaka
{
font-family: Times New Roman;
font-size: 2.5em; 
color:var(--rose); 
text-align:center;
}


.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: var(--font3);
font-weight:500;
font-size: 24px;
    color: var(--gold);
text-transform:uppercase;
    width: 100%;
    text-align: center;
    background: rgb(238,238,238);
    background: linear-gradient(0deg, rgba(246,233,230,1) 0%, rgba(246,233,230,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; text-align:justify;
}






.kisakalenteri { width:100%; border-collapse:collapse; border-top: solid var(--line) 1px; }
.kisakalenteri td { border-bottom: solid var(--line) 1px; padding: 10px; }
.kisakalenteri img { margin-right: 5px; }
.kisakalenteri tr:hover {background-color: rgba(201, 138, 129, 0.05); }



.pkk {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
border-radius: 10px;
margin: 5px 0 0 -5px;
width: 95%;
height:auto;
}





.tab {
  overflow: hidden;
}

/* Style the buttons inside the tab */
.tab button {
    font-family: var(--font3);
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px 35px;
  transition: 0.3s;
  font-size: 22px;
font-weight: 600;
letter-spacing: 2px;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 0px;
  border-top: none;
}











@media (max-width: 900px) {
  .site-header { height: 78px; justify-content: flex-end; padding-right: 28px; }
  .brand { left: 28px; top: 6px; }
  .menu-toggle {
    width: 38px; height: 38px; padding: 8px;
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    border: 0; background: transparent; cursor: pointer;
  }
  .menu-toggle span { width: 100%; height: 1px; background: var(--ink); }
  .nav {
    position: absolute; top: 77px; left: 0; right: 0;
    display: none; flex-direction: column; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 15px 30px rgba(50,30,25,.08);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 17px 25px; text-align: center; }
  .nav a::after { bottom: 10px; left: 42%; right: 42%; }

  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 430px; padding: 75px 9% 55px; }
  .hero h1 { font-size: clamp(62px, 15vw, 94px); }
  .hero h1 em { font-size: clamp(68px, 15vw, 98px); }
  .hero-image { height: 520px; min-height: 0; }
  .profile-card { width: calc(100% - 36px); grid-template-columns: 1fr; }
  .basic-info { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 25px 18px; }
  .about-copy { padding: 45px 30px; }
  .highlights { width: calc(100% - 36px); grid-template-columns: 1fr 1fr; }
  .highlight:nth-child(2) { border-right: 0; }
  .highlight:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .gallery-section { padding: 65px 18px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .closing { grid-template-columns: 1fr; text-align: center; padding: 40px 25px; }
  .closing-brand { margin: auto; }
  .socials { justify-content: center; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 520px) {
  .hero-copy { min-height: 390px; }
  .hero h1 { font-size: 60px; }
  .hero h1 em { font-size: 68px; margin-left: 4%; }
  .hero-divider { width: 200px; margin-top: 35px; }
  .hero-image { height: 390px; }
  .profile-card { width: calc(100% - 24px); }
  .highlights { width: calc(100% - 24px); grid-template-columns: 1fr; }
  .highlight { border-right: 0; border-bottom: 1px solid var(--line); }
  .highlight:last-child { border-bottom: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-section { padding-left: 10px; padding-right: 10px; }
  .about-copy h2 { font-size: 38px; }
}
