@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #10251c;
  --green-dark: #07140f;
  --cream: #f2eee6;
  --cream-deep: #e8dfd0;
  --gold: #bba982;
  --silver: #dad8d0;
  --black: #030303;
}

body {
  background: #111;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  color: #1b1b1b;
  font-family: "Inter", serif;
font-size: 15px;
}

a:link, a:active, a:visited { color: var(--green); }
a:hover { color: var(--green-dark); }

.hero_hevonen a:link, .hero_hevonen a:active, .hero_hevonen a:visited { color: var(--gold); }
.hero_hevonen a:hover { color: var(--cream); }

.layout {
  width:90%;
  max-width: 1400px;
  display: grid;
  grid-template-columns: 260px 1140px;
  background: var(--cream);
  overflow: hidden;
  border: 1px solid rgba(215, 210, 195, .95);
margin: 30px auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* LEFT SIDEBAR */
.sidebar {
  position: relative;
  background:
    radial-gradient(circle at 20% 0%, rgba(126, 156, 127, .35), transparent 24%),
    linear-gradient(165deg, #173224 0%, #0c1c15 48%, #08140f 100%);
  border-right: 2px solid #c9bb93;
  color: var(--silver);
  text-align: center;
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,.06), transparent 16%, transparent 82%, rgba(0,0,0,.22)),
    radial-gradient(circle at center, transparent, rgba(0,0,0,.35));
  pointer-events: none;
}

.side-logo { position: relative; z-index: 2; padding-top: 70px; }

.side-logo h1 {
  font-family: "Cinzel", serif;
  font-weight: 400;
  font-size: 29px;
  letter-spacing: 6px;
  line-height: 1;
  color: #eee9de;
  text-shadow: 0 2px 7px rgba(0,0,0,.65);
}

.side-logo span {
  display: block;
  margin-top: 8px;
  font-family: "Cinzel", serif;
  font-size: 18px;
  letter-spacing: 10px;
  color: #eee9de;
}

.side-logo span::before,
.side-logo span::after {
  content: "";
  display: inline-block;
  width: 29px;
  height: 1px;
  margin: 0 10px 5px;
  background: rgba(231,229,217,.55);
}

.side-logo p {
  margin-top: 37px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 3px;
}

.side-ornament {
  position: relative;
  z-index: 2;
  width: 118px;
  height: 1px;
  margin: 45px auto 52px;
  background: rgba(224,220,205,.3);
}

.side-ornament::before {
  content: "\2726";
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  color: #d9d3c4;
  font-size: 15px;
}

.menu {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-left: 38px;
  text-align: left;
}

.menu a {
  width: 152px;
  color: #f4f0e8;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Cinzel", serif;
  font-size: 14px;
  letter-spacing: 3px;
  line-height: 1;
  position: relative;
  transition: color .3s ease, letter-spacing .3s ease, transform .3s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 0%;
  width: 0;
  height: 1px;
  background: #c8b68b;
  transition: width .3s ease;
}

.menu a:hover {
  color: #d6c396;
  letter-spacing: 4px;
  transform: translateX(5px);
}

.menu a:hover::after {
  content: "\2726";
}

.landscape {
  position: relative;
  z-index: 1;
width: 100%;
top: 20px;
}

.side-footer p {
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 2.6px;
margin: 0 0 20px 0;
}
.contact p {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 2.6px;
margin: 0 0 20px 0;
}
.contact h1  {
	font-family: "Cinzel", serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 2.6px;
  line-height: .9;
  color: #f1eee7;
  margin-top: 45px;
  margin-bottom:10px;
  text-shadow: 0 3px 2px #303030, 0 0 18px rgba(255,255,255,.12);
}
.contact a {
  color: #f4f0e8;
  text-decoration: none;  
}
/* MAIN */
.main {
  background:
    radial-gradient(circle at 47% 40%, rgba(255,255,255,.98), transparent 52%),
    linear-gradient(90deg, #f5f0e8, #ede5d8);
}

.hero {
  height: 460px;
  position: relative;
  overflow: hidden;
  background:

    url("assets/hero.jpg");
  background-size: 100% 460px;
background-position: left center;
}

.hero-brand {
  position: absolute;
  z-index: 3;
  top: 58px;
  left: 45%;
  width: 520px;
  text-align: center;
  color: #f2eee6;
}

.hero-crest {
  width: 138px;
  height: 123px;
  margin: 0 auto 28px;
  position: relative;
}

.hero-brand h2 {
  font-family: "Cinzel", serif;
  font-weight: 400;
  font-size: 66px;
  letter-spacing: 10px;
  line-height: .9;
  color: #f1eee7;
  text-shadow: 0 3px 2px #303030, 0 0 18px rgba(255,255,255,.12);
}


.estate-line {
  margin: 12px auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.estate-line::before,
.estate-line::after {
  content: "";
  width: 96px;
  height: 1px;
  background: rgba(224,220,205,.5);
}

.estate-line span {
  font-family: "Cinzel", serif;
  font-size: 28px;
  letter-spacing: 17px;
  color: #e8e3d9;
}

.hero-brand p {
  font-family: "Cinzel", serif;
  font-size: 14px;
  letter-spacing: 5px;
  color: #e7e0d2;
}

.tiny-ornament {
  width: 170px;
  height: 1px;
  margin: 22px auto 0;
  background: rgba(224,220,205,.32);
  position: relative;
}

.tiny-ornament::before {
  content: "\2726";
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  color: #d8d2c3;
}


/* CONTENT */
.content {
width:100%;
  border-top: 1px solid #d8d0bf;
   padding: 30px;
  position: relative;
text-align:justify;
line-height: 1.7;
}

p { margin-bottom: 15px; }

.content h1 {
  font-family: "Cinzel", serif;
  font-weight: 500;
  font-size: 27px;
  line-height: 1.33;
  letter-spacing: .6px;
  color: #282724;
text-align:center;
}

.content h2 {
  font-family: "Cinzel", serif;
  font-weight: 500;
  font-size: 27px;
  line-height: 1.33;
  letter-spacing: .6px;
  color: #282724;
text-align:left;
margin: 50px 0 0 30px;
}

.hero-tiedot h1 {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 27px;
  line-height: 1.8;
  letter-spacing: .6px;
  color: var(--gold);
text-align:left;
}
.reunat { 
  object-fit: cover;
  padding: 4px;
  border: solid var(--gold) 1px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,.2), 0 6px 20px rgba(0,0,0,.19); }

.meriitit {   font-family: "Cinzel", serif; color: var(--cream); font-size: 16px; text-indent:15px; }
ul { text-indent: 15px; }



.horse-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.horse {
text-align:center;
min-width: 0;
}

.horse a:link, .horse a:active, .horse a:visited {
  font-family: "Cinzel", serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--green);
text-decoration:none;
}

.horse a:hover { color: var(--green-dark); }

.horse img {
  width: 100%;
  max-width: 346px;
  height: auto;
  aspect-ratio: 346 / 230;
  object-fit: cover;
  padding: 4px;
  border: solid var(--gold) 1px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,.2), 0 6px 20px rgba(0,0,0,.19);
}

.historia { color: #606060; border-left: solid var(--green) 3px; padding: 0 0 0 20px; margin: 30px 35px; }

.piilodiv {
    display:none; /* älä muuta tätä, tai muuten div ei oletuksena ole piilossa. */
}

.trigger {
    color:var(--green);
  font-family: "Cinzel", serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.33;
  letter-spacing: .6px;
margin: 50px 0 0 30px;
}

.trigger:hover {
    color:var(--dark); 
    cursor:pointer;
  font-family: "Cinzel", serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.33;
  letter-spacing: .6px;
}



.content h3 {
  font-family: "Cinzel", serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.33;
  letter-spacing: .6px;
  color: #282724;
text-align:left;
}
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: #223061;
font-size: 14px;
}

.tooltiptext {
  visibility: hidden;
  background-color: #EEEEEE;
box-shadow:0px 0px 0px #ddd;

  text-align: center;
  border-radius: 6px;
  padding: 5px 8px;
  position: absolute;
  z-index: 1;
  top: -5px;
  left: 105%;
color:#000000;
font-size: 16px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.tooltip_kisa {
  position: relative;
  display: inline-block;
font-color: #FFF;
}

.tooltip_kisa .tooltiptext_kisa {
border: solid #FFF 1px;
background-image: linear-gradient(to bottom right, #FAF1F3, #FEFEFE, #FAF1F3);
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.05), 0 6px 20px 0 rgba(0, 0, 0, 0.05);

  visibility: hidden;
  width: 180px;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: -8px;
  right: 115%;
}

.tooltip_kisa:hover .tooltiptext_kisa {
  visibility: visible;
}

.tooltiptext_kisa b { font-weight:bold; font-size: 15px; margin-right: 5px; }





/* INFO TABLE */
.info-table {
  width: 100%;
  margin: 20px 0;
border-collapse: collapse;

  background: rgba(255, 255, 255, .35);
  border: 1px solid #d8d0bf;
  box-shadow: 0 12px 35px rgba(16, 37, 28, .08);
  font-family: "Inter", serif;
  background: linear-gradient(90deg, rgba(187,169,130,.18), rgba(255,255,255,.1));
}

.info-table td, .info-table th {
border-bottom: 1px solid #d8d0bf;
padding: 8px 15px;
}

.info-table th {
font-family: Cinzel;
font-size: 16px;
letter-spacing: 1px;
}

.pedigree {
table-layout: fixed;
  width: 100%;
  margin: 20px 0;
border-collapse: separate;
  border-spacing: 10px;
}

.pedigree td { padding: 5px 15px; border: 1px solid #d8d0bf; font-family: "Inter", serif; background: rgba(255, 255, 255, .35);  vertical-align: middle;
  word-break: break-word; }
.pedigree small { color: var(--gold); }


.pikkuinfo { font-size: 12px; margin-left: 3px; color: #5F5F5F; }
.hevoskuvat { text-align:center; }
.hevoskuvat img { margin: 5px; padding: 4px; border: solid var(--gold) 1px; background-color: #FFFFFF; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); }

.collapsible {
  font-family: "Cinzel", serif;
  font-weight: 700;
  background-color: transparent;
  color: var(--green);
  cursor: pointer;
  padding: 10px 0;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 18px;
}

.active, .collapsible:hover {
  color: var(--green-dark);
}

.content_paiv {
  padding: 10px 0;
  display: none;
  overflow: hidden;
}











/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
  body {
    display: block;
  }

  .layout {
    width: 100%;
    margin: 0;
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 2px solid #c9bb93;
  }

  .side-logo {
    padding-top: 40px;
  }

  .menu {
    padding: 0 30px;
    align-items: center;
    text-align: center;
  }

  .menu a {
    width: auto;
  }

  .landscape img,
  .side-logo img,
  .hero-crest img {
    max-width: 100%;
    height: auto;
  }

  .main {
    width: 100%;
  }

  .hero {
    height: 320px;
    background-size: cover;
    background-position: right center;
  }

.hero-brand { top: 58px; left: 10%; width: 80%; }

.hero-crest { width: 100%; }

  .hero-brand h2 {
    font-size: 48px;
    letter-spacing: 7px;
  }

  .estate-line span {
    font-size: 24px;
    letter-spacing: 10px;
  }

  .estate-line::before,
  .estate-line::after {
    width: 60px;
  }

  .content {
    padding: 25px 20px;
text-align:justify;
  }
}

@media (max-width: 700px) {
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table {
    border-spacing: 0;
    overflow: hidden;
  }

  .info-table tr {
    margin-bottom: 15px;
    border-bottom: 1px solid #d8d0bf;
  }

  .info-table th {
    padding: 10px 15px 3px;
    border-bottom: 0;
    text-align: left;
    color: var(--green);
  }

  .info-table td {
    padding: 3px 15px 10px;
    border-bottom: 0;
  }

  .info-table td[colspan] {
    width: 100%;
  }
}


@media (max-width: 700px) {
  .pedigree,
  .pedigree tbody,
  .pedigree tr,
  .pedigree td {
    display: block;
    width: 100%;
  }

  .pedigree {
    border-spacing: 0;
    margin: 15px 0;
  }

  .pedigree tr {
    margin-bottom: 8px;
  }

  .pedigree td {
    margin-bottom: 8px;
    padding: 10px 14px;
    border-left: 4px solid var(--gold);
  }

  .pedigree td[rowspan] {
    min-height: auto;
  }

  .pedigree small {
    display: block;
    margin-top: 3px;
    line-height: 1.4;
  }
}


@media (max-width: 520px) {
  .side-logo h1 {
    font-size: 24px;
    letter-spacing: 4px;
  }

  .side-logo span {
    font-size: 15px;
    letter-spacing: 7px;
  }

  .hero {
    height: 430px;
  }

  .hero-brand {
    top: 55px;
  }

  .hero-crest {
    width: 110px;
    height: auto;
    margin-bottom: 22px;
  }

  .hero-brand h2 {
    font-size: 34px;
    letter-spacing: 4px;
  }

  .estate-line {
    gap: 12px;
  }

  .estate-line span {
    font-size: 17px;
    letter-spacing: 6px;
  }

  .estate-line::before,
  .estate-line::after {
    width: 38px;
  }

  .hero-brand p {
    font-size: 11px;
    letter-spacing: 3px;
  }

  .content h1 {
    font-size: 22px;
  }

  .content {
    text-align: left;
    font-size: 14px;
  }
}




@media (max-width: 1100px) {
  .horse-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .horse-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .horse-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .horse a:link,
  .horse a:active,
  .horse a:visited {
    font-size: 18px;
  }

  .horse img {
    max-width: 100%;
  }
}