@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Exo:ital,wght@0,100..900;1,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Kaushan+Script&display=swap');

@font-face { 
    font-family: 'Mallia'; 
    src: url('Mallia.ttf');
}

@font-face { 
    font-family: 'Quetine'; 
    src: url('Quetine.ttf');
}

/* =========================================================
   MAYFIELD ESTATE
   Luxury equestrian website stylesheet
   ========================================================= */

:root {
  --bg: #FAF9F8;
  --purple: #4c285f;
  --purple-dark: #24152e;
  --purple-deep: #120d17;
  --purple-light: #745286;
  --ink: #5e5960;
  --white: #fbfaf8;
  --ivory: #f3f0eb;
  --paper: #fffdf9;
  --gold: #bda77a;
  --gold-soft: #d5c49e;
  --muted: #756f77;
  --sidebar: 300px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --script: "Italianno", cursive;

  --font1: "Inter";
  --font2: "Exo";
  --font3: "Chakra Petch";
  --font4: "Kaushan Script";
  --font5: "Mallia";
  --font6: "Quetine";
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  background: var(--ivory);
}

body, table, td, p { 
color: var(--ink);
  font-family: var(--font2);
  font-weight: 400;
  line-height: 1.75;
  font-size: 15px;
text-align:justify;
 }

body.menu-open { overflow: hidden; }

a:link, a:active, a:visited {color: #603771; text-decoration:none; -webkit-transition: all 0.9s ease-in; -moz-transition: all 0.9s ease-in; -o-transition: all 0.9s ease-in; transition: all 0.9s ease-in;}
a:hover {color: #B0A292; }

.sidebar {
  position: fixed;
  z-index: 100;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  min-height: 100vh;
background: #301c39 url(k/pattern2.png);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.sidebar a { color: #EEE; }

.sidebar-top { padding-top: 28px; }

.brand {
  display: block;
  text-align: center;
  padding: 0 18px 24px;
}

.crest {
text-align:center;
  position: relative;
  margin: 0 auto 4px;
  color: var(--gold-soft);
}

.stablename {
  font: 500 50px var(--font6);
text-align:center;
  position: relative;
  color: #B0A292;
}

.crest img { max-width: 100%; }

.crest-shield {
  position: absolute;
  inset: 28px 20px 4px;
  border: 1px solid var(--gold);
  clip-path: polygon(50% 0, 100% 18%, 91% 75%, 50% 100%, 9% 75%, 0 18%);
  display: grid;
  place-items: center;
  font: 600 45px/1 var(--serif);
}

.crest-wings {
  position: absolute;
  inset: 30px 0 0;
  font-size: 48px;
  opacity: .8;
}

.crest-crown {
  position: absolute;
  top: -7px;
  left: 35px;
  z-index: 2;
  font-size: 27px;
}

.brand-name,
.brand-estate {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 4px;
  line-height: 1;
}

.brand-name { font-size: 27px; }
.brand-estate { font-size: 20px; margin-top: 7px; letter-spacing: 5px; }

.brand-country {
  margin-top: 16px;
  color: #c9c1ca;
  font: 400 11px var(--serif);
  letter-spacing: 4px;
}

.ornament {
  color: var(--gold);
  font: 16px var(--font1);
  letter-spacing: 4px;
  margin-top: 11px;
}

.nav { margin-top: 8px; }

.nav-link {
  display: flex;
  align-items: center;
  min-height: 53px;
  padding: 0 20px;
  border-left: 3px solid transparent;
  color: #eee9ef;
  font: 400 18px var(--font3);
  letter-spacing: 1px;
text-transform:uppercase;
  transition: .25s ease;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(90deg, rgba(63,41,75,.65), rgba(63,41,75,.65));
  border-left-color: var(--gold);
  color: #fff;
}

.sidebar-bottom {
  padding: 20px 20px 27px;
  text-align: center;
  color: #b7adb9;
}

.sidebar-bottom p {
  margin: 12px 0 0;
  font: 500 11px/1.6 var(--font3);
  color: #918795;
  letter-spacing: 1px;
text-transform:uppercase;
  text-align: center;
}

.page {
  margin-left: var(--sidebar);
 max-width: 1100px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.mobile-header {
  display: none;
}

.eyebrow,
.section-kicker {
  font: 600 16px var(--font3);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.gold-rule,
.title-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
}

.gold-rule:before,
.gold-rule:after,
.title-rule:before,
.title-rule:after {
  content: "";
  display: block;
  height: 1px;
  width: 48px;
  background: currentColor;
  opacity: .75;
}


.content-section {
  padding: 40px;
  background: #FFFFFF;
}

.welcome {

  align-items: center;
}

.section-kicker { color: var(--purple); }

h2 {
  margin: 6px 0 8px 0;
  color: var(--purple);
  font: 500 clamp(42px, 4vw, 36px)/.95 var(--font3);
  letter-spacing: -.5px;
}

h3 {
  margin: 50px 0 8px 0;
  color: var(--purple);
  font: 500 clamp(30px, 4vw, 30px)/.95 var(--font3);
  letter-spacing: -.5px; line-height: 1.1;
}

h3 small { font-size: 18px; }

h4 {
  margin: 30px 0 8px 0;
  color: var(--purple);
  font: 500 clamp(26px, 4vw, 26px)/.95 var(--font3);
  letter-spacing: -.5px;
}

b, strong { font-weight: 700; }

.title-rule { margin: 18px 0 31px; }
.title-rule:before, .title-rule:after { width: 48px; }

.text-column p,
.long-copy p {
  color: #5e5960;
  font-size: 15px; text-align:justify;
}

.signature {
  margin-top: 10px;
  color: var(--purple);
  font: 400 20px var(--font5);
}

.manor-card { float:right;
  background: #fff;
  border: 1px solid #ddd7d0;
  padding: 7px;
  box-shadow: 0 16px 50px rgba(35,20,42,.09);
margin: 0 0 30px 30px;
}

.manor-info {
  min-height: 78px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: var(--purple);
  text-align: left;
}

.small-crest {
  width: 40px;
  height: 46px;
  display: grid;
  place-items: center;
}

.manor-info strong,
.manor-info span {
  display: block;
  font-family: var(--serif);
}

.manor-info strong {
  font-size: 16px;
  letter-spacing: 2px;
}

.manor-info span {
  margin-top: 3px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 3px;
}

.etusivu {
background: var(--ivory);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
  padding: 20px;
border: solid 1px #DAD2C9;
}

.feature-card {
text-align:center;
  background: #f6f2ee;
  box-shadow: 0 8px 35px rgba(28,18,31,.05);
}

.feature-image {
  position: relative;
  height: 245px;
  overflow: hidden;
}

.feature-image img { transition: transform .6s ease; }
.feature-card:hover .feature-image img { transform: scale(1.04); }

.feature-image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20,12,24,.3));
}

.feature-image span {
  position: absolute;
  z-index: 2;
  right: 15px;
  top: 14px;
  color: #fff;
  font: 500 20px var(--font4);
  letter-spacing: 2px;
}

.feature-body { padding: 26px 25px 28px; }

.card-kicker {
  color: var(--purple);
  font: 600 18px var(--font3);
text-transform:uppercase;
  letter-spacing: 2px;
}

.feature-body p {
  margin: 16px 0 17px;
  color: #666068;
  font-size: 13px; font-weight: 500;  letter-spacing: 2px;
  line-height: 1.7;
text-transform:uppercase;
}

.feature-body a {
  color: var(--purple);
  font: 500 14px var(--font3);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.feature-body a b { margin-left: 8px; color: var(--gold); }

.dark-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  padding: 80px clamp(35px, 7vw, 105px);
  color: #fff;
  background:
    radial-gradient(circle at 80% 30%, rgba(113,75,135,.45), transparent 35%),
    var(--purple-deep);
}

.dark-band .eyebrow { color: var(--gold-soft); }
.dark-band h2 { color: #fff; margin-top: 16px; }

.outline-button {
  flex: 0 0 auto;
  border: 1px solid var(--gold);
  padding: 15px 25px;
  color: #fff;
  font: 500 10px var(--sans);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: .25s ease;
}

.outline-button:hover {
  background: var(--gold);
  color: var(--purple-deep);
}

.long-content {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 80px;
  background: var(--ivory);
}

.quote-box {
  align-self: center;
  padding: 55px;
  border: 1px solid #d7cec4;
  background: rgba(255,253,249,.6);
  text-align: center;
}

.quote-mark {
  display: block;
  color: var(--gold);
  font: 90px/.6 var(--serif);
}

blockquote {
  margin: 0;
  color: var(--purple);
  font: 500 27px/1.3 var(--serif);
}

.quote-box .gold-rule {
  justify-content: center;
  margin: 26px 0 17px;
}

.quote-box .gold-rule:before,
.quote-box .gold-rule:after { width: 35px; }

.quote-box small {
  color: #8b808c;
  font: 500 9px var(--sans);
  letter-spacing: 2px;
}

.gallery-section {
  padding: 85px clamp(25px, 5vw, 80px) 95px;
  background: var(--paper);
}

.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 30px;
}

.gallery-heading h2 { margin-bottom: 0; }
.gallery-heading > a {
  color: var(--purple);
  font: 500 10px var(--sans);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: 1.45fr .8fr .8fr;
  grid-template-rows: 220px 220px;
  gap: 10px;
}

.gallery img { min-height: 0; }
.gallery img:first-child { grid-row: span 2; }
.gallery img:last-child { grid-column: 2 / span 2; }





.tiimilistaus {
width: 100%;
padding: 0px;
border-collapse:collapse;
margin: 15px 0;
}

.hevoslistaus {
width: 100%;
float:left;
padding: 30px 0 0 0;
border-collapse:collapse;
margin: 10px;
}

.hevoslistaus td { padding: 10px 0px; text-align:center; text-transform:uppercase; letter-spacing: 1px; line-height: 1.7; word-spacing: 5px; font-weight:500; font-size: 13px; }
.tiimilistaus td { letter-spacing: 1px; line-height: 1.7; }

.hevoslistaus a:link, #hevoslistaus a:active, #hevoslistaus a:visited {
font-family: var(--font3);
font-weight: 500;
color: #603771;
 font-size: 20px;
letter-spacing:2px;
 word-spacing: 0px;
}

.hevoslistaus a:hover, .tiimilistaus a:hover { color: #333; }

.tiimilistaus a:link, #tiimilistaus a:active, #tiimilistaus a:visited {
font-family: var(--font3);
font-weight: 500;
color: #603771;
 font-size: 17px;
letter-spacing:1px;
line-height: 1.5;
margin-left: 20px;
}


.border { border-radius: 10px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); }


.hevoslistaus img {
width: 90%; max-width:400px;  
height:250px;
object-fit:cover;
object-position:50% 50%;
background-position:fixed;
filter:grayscale(30%);
-webkit-transition: all 0.9s ease-in;
    -moz-transition: all 0.9s ease-in;
    -o-transition: all 0.9s ease-in;
    transition: all 0.9s ease-in;
border-radius: 10px;
}

.tiimikuva img {
width: 250px;  
height:250px;
object-fit:cover;
object-position:50% 50%;
background-position:fixed;
filter:grayscale(30%);
border-radius:10px 10px 0px 0px;-webkit-transition: all 0.9s ease-in;
    -moz-transition: all 0.9s ease-in;
    -o-transition: all 0.9s ease-in;
    transition: all 0.9s ease-in;
border-radius: 10px;
margin-right: 15px;
}

.photo-frame-team {position:relative;border:1px solid #D9D2C9;transform:rotate(-1deg);box-shadow:10px 10px 0 rgba(36,75,60,.09)}
.photo-frame-team img {display:block;width:100%;object-fit:cover;background:#d8d3c6; height:250px;}


.tiimilistaus b { 
font-family: var(--font3);
text-transform: uppercase;
font-weight: 500;
color: #603771;
 font-size: 20px;
letter-spacing:2px;
line-height: 1.6;
}

.tiimilistaus i {
  color:#6d5a47;
font-weight:500;
  text-transform:uppercase;
  letter-spacing:1.5px;
font-style:normal;
font-size: 14px;
}



.container {
  overflow: hidden;
}

.filterDiv_listaus {
  float: left;
  width: 33%;
  text-align: justify;
  display: none; /* Hidden by default */
margin: 1px 0;
}

.filterDiv {
  width: 100%;
  text-align: justify;
  display: none; /* Hidden by default */
margin: 1px 0;
}

/* The "show" class is added to the filtered elements */
.show {
  display: block;
}

/* Style the buttons */
.btn {
text-transform: uppercase;
        font-family: var(--font3);
        font-size: 17px;
        font-weight: 500;
        color: #603771;
        text-shadow: 2px 1px 7px #fff;
	letter-spacing: 2px;


  border: none;
  outline: none;
  padding: 10px 15px;
  cursor: pointer;
margin: 17px 10px;
border-radius: 10px;
background: #FFFFFF;
}

/* Add a light grey background on mouse-over */
.btn:hover {
background: #593469 url(img/pattern2.png); border-radius: 10px; box-shadow: 1px 1px 3px #7E7E7E;
        color: #EEE;
        text-shadow: 2px 1px 7px #000;
}

/* Add a dark background to the active button */
.btn.active {
background: #593469 url(img/pattern2.png); border-radius: 10px; box-shadow: 1px 1px 3px #7E7E7E;
        color: #EEE;
        text-shadow: 2px 1px 7px #000;
}

















::-webkit-scrollbar { width: 7px; height: 3px; }
::-webkit-scrollbar-button { width: 0px; height: 0px; }
::-webkit-scrollbar-thumb { background: #C1C1C1; border: 0px dotted #ffffff; border-radius: 50px; }
::-webkit-scrollbar-thumb:hover { background: #A8A8A8; }
::-webkit-scrollbar-thumb:active { background: #A8A8A8; }
::-webkit-scrollbar-track { background: #F1F1F5; border: 0px none #ffffff; border-radius: 50px; }
::-webkit-scrollbar-track:hover { background: #F1F1F5; }
::-webkit-scrollbar-track:active { background: #F1F1F5; }
::-webkit-scrollbar-corner { background: transparent; }




















@media (max-width: 1100px) {
  :root { --sidebar: 190px; }
  .welcome { gap: 45px; }
  .manor-card > img { height: 380px; }
  .feature-image { height: 210px; }
  .long-content { gap: 45px; }
}

@media (max-width: 820px) {
  :root { --sidebar: 0px; }

  .mobile-header {
    position: fixed;
    z-index: 200;
    inset: 0 0 auto;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(18,13,23,.96);
    color: #fff;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 500 20px var(--serif);
    letter-spacing: 2px;
  }

  .mini-crest {
    width: 31px;
    height: 37px;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold);
    color: var(--gold);
    font: 500 22px var(--serif);
    clip-path: polygon(50% 0,100% 15%,90% 76%,50% 100%,10% 76%,0 15%);
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    margin: 6px auto;
    background: #fff;
    transition: .25s;
  }

  .sidebar {
    width: 280px;
    transform: translateX(-100%);
    transition: transform .3s ease;
    padding-top: 65px;
  }

  .sidebar.open { transform: translateX(0); }

  .page { margin-left: 0; }
  .hero { min-height: 620px; padding-top: 68px; }
  .hero-copy { left: 35px; right: 25px; }
  .hero h1 { font-size: clamp(48px, 12vw, 72px); }

  .welcome,
  .long-content { grid-template-columns: 1fr; }

  .manor-card { max-width: 600px; width: 100%; }
  .feature-grid { grid-template-columns: 1fr; max-width: 700px; margin: auto; }
  .feature-image { height: 280px; }

  .dark-band { align-items: flex-start; flex-direction: column; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 230px 170px 170px; }
  .gallery img:first-child { grid-row: span 2; }
  .gallery img:last-child { grid-column: 1 / span 2; }

  .content-section { padding-top: 75px; padding-bottom: 75px; }
}

@media (max-width: 520px) {
  .hero { min-height: 560px; }
  .hero-caption { display: none; }

  .hero-copy { top: 53%; }
  .hero h1 { font-size: 49px; }
  .hero p { font-size: 11px; }

  h2 { font-size: 43px; }
  .text-column h3 { font-size: 19px; }

  .content-section { padding-left: 24px; padding-right: 24px; }

  .manor-card > img { height: 300px; }
  .feature-grid { padding-left: 20px; padding-right: 20px; }
  .feature-image { height: 230px; }

  .quote-box { padding: 38px 25px; }
  blockquote { font-size: 23px; }

  .gallery-section { padding-left: 20px; padding-right: 20px; }
  .gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 190px 150px 150px; }
  .gallery img:first-child { grid-row: span 1; grid-column: span 2; }
  .gallery img:last-child { grid-column: span 2; }

  .gallery-heading { align-items: start; flex-direction: column; }

  .footer-contact { flex-wrap: wrap; }
}

/* Reduced-motion accessibility */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
