@import 'menu.css';
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');
@import 'dist/jquery.fancybox.css';


/* CORE STYLES */
:root {
    --background: #f1f7f3; 
    --white: #fff;
    --writing: #444;
    --black: #000; 
    --charcoal: #222;
    --green: #71792b; 
    --alternate: rgba(115,132,40,0.5);  
    --alternate2: #515738; 
    --grey: #627b7e; 
    --lightgrey: #EFF1F2;
    --lightgrey2: #e0e0e0;
    --transgrey: rgba(30,30,30, 0.8);
    --nearlywhite: #f0f0f0;
    --transred: rgba(237, 28, 36, 0.9);
    --halfgrey: rgba(30,30,30, 0.35);
    --transwhite: rgba(255,255,255,0.7);
    --width: 940px; 
    --sliderwidth: calc(100svw - 2rem); 
  }


html{
     scroll-behavior: smooth; 
}
body{
    background-color: var(--background);
    color: var(--writing); 
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    position: relative;
    overflow-x:hidden;
}
a{
    color: var(--green)
}
img{
    border: 0;
    max-width: 100%;
}
h1, h2, h3, h4, h5, h6{
    font-weight: normal;
}
table{
    width: 100%; 
    border-collapse: collapse;
}
th{
    text-align: left;
    background-color: var(--alternate);
    color: var(--white); 
}
td, th{
    padding: 0.5rem;
    vertical-align: top;
}

form input, textarea, select {
    font-family: Open Sans, system-ui, Arial, Helvetica, sans-serif;
	font-size: 1rem;
	padding: 7px;
	background-color: var(--white);
	border: 2px solid var(--alternate);
	max-width: 100%;
    color: var(--writing); 

}

.hero{
    min-height: 50vh;
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
    display: grid;
}
/* .front{
    background-image: url('images/Hampshire-Hunt-Website-2026-0795.jpg');
} */
.hero > div{
    padding: 0.5rem;
    display: grid;
    justify-content: center;
    align-items: center;
}
.hero > div img{
    width: 100px; 
}
.hero > div > div{
    text-align: center;
}
.hero h1{
    font-size: clamp(1.5rem, 5vw, 6rem);
    margin: 0.5rem 0 0;
    color: var(--white); 
    font-family: "Playfair Display", Georgia, serif;
    text-shadow: 0 0 20px rgba(0,0,0,0.5),
     0 0 40px rgba(0,0,0,0.3),
     0 0 60px rgba(0,0,0,0.2);

}
.hero.front{
     font-size: clamp(2.5rem, 7vw, 8rem);   
}
section > .main{
    margin: auto;
    max-width: var(--width);
    padding: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}
.grid#pictures, 
.flex.pictures{
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 

}

.grid#pictures > div, 
.flex.pictures > div{
    flex: 1 1 250px; 

}
footer{
    background-color: var(--green);
    color: var(--white); 
    padding: 1rem;
    clear: both;
}
footer a{
    color: var(--white);
    text-decoration: none;
    transition: 0.4s;
}
footer a:hover{
    color: var(--black); 
}
footer > div{
    max-width: var(--width);
    margin: auto;
}
.contactform{
	border-radius: 10px; 
	padding: 20px; 
}
.page {
	height: min(700px,80vh);
	margin: auto;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
}


@media (min-width: 900px) {
    .hero{
        grid-template-columns: 1fr 1fr;
    }
    .hero > div{
        padding: 2rem;
        display: grid;
        justify-content: center;
        align-items: center;
        grid-column: 2/3;
    }
    .hero h1 span{
        font-size: 2rem;
        font-style: italic;
        display: block;
        line-height: 0.5rem;
    }
    .hero h1{
        color: var(--transwhite); 
        line-height: 1;
    }
    .hero img{
        margin: 2rem;
    }
    section > .main, 
    footer > div{
        padding: 10rem 4rem;
    }
    footer > div{
        padding: 1rem 2rem; 
    }
    footer{
        background-image: url('images/fdl2.png');
        background-repeat: no-repeat;
        background-position: 80% 50%;
        background-size: 100px;
        padding: 3rem
    }
  .grid#pictures{
    padding-block: 1rem; 
    gap: 1rem;
    background-color: var(--alternate);
}
.grid#pictures > div > img{
    width: 100%;
    height: 100%;
    display: block; 
  }

  @supports(display: grid) {
  .grid#pictures{
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 1rem;
      justify-items: center;

  }
  }
  @supports(gap: 10px){
      .grid#pictures > div{
          margin: 0;
      }
  }
  
  @supports(object-fit: cover){
  .grid#pictures > div > img,
  .grid#pictures > div > a img, 
  .flex.pictures > div > a img{
      object-fit: cover;
      height: 100%;
      width: 100%;  
      display: block;
  }
  .grid#pictures > div, 
  .flex.pictures > div {
      /* height: 25vh; */
      width: 100%;
      max-height: 500px; 
      aspect-ratio: 1.5;
  }
  }
  .contactform input:not([type="submit"]):not([type="checkbox"]),
.contactform textarea {
    outline: 3px solid transparent !important;
    width: 210px; 
    
}
.contactform:focus-within input:not([type="submit"]):invalid,
.contactform:focus-within textarea:invalid {
    outline: 3px solid red !important;
    margin-bottom: 0; 
}
.contactform:focus-within input:not([type="submit"]):valid,
.contactform:focus-within textarea:valid {
    outline: 3px solid green !important;
    margin-bottom: 0; 
}
.contactform:focus-within, .contactdiv > div:focus-within {
    background-color: var(--lightorange);
    /* color: var(--white); */
}
.newpassword {
    position: relative; 
}
input.newpassword:invalid::after{
    content: "more than 8 characters, must contatin one upper case, one lower case, one number";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background-color: red;
    color: #fff;
    padding: 10px; 
}
input, textarea, select {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; 
    font-size: 15px;
    border-radius: 5px;
    padding: 7px;
    background-color: var(--white);
    color:var(--grey);
} 
.form{
    grid-template-columns: 1fr 1fr ;
    display: grid;
    gap: 10px; 
}

}





@media screen and (orientation:landscape)
and (min-width: 1024px) {
    .hero{
        background-attachment: fixed;
        box-shadow: 0 0 200px var(--halfgrey) inset;
        min-height: unset;
        height: 80svh;
    }
    .hero.front{
        height: 100svh;
    }
    .hero.hero2{
        position: relative;
        height: 80svh;
    }
    .hero2::after {
        content: "";
        border-right: 100svw solid transparent;
        border-left: 0 solid transparent;
        border-bottom: 5svw solid var(--background);
        position: absolute;
        inset: auto 0 0 0 ;
    }
    .hero2::before {
        content: "";
        border-right: 100svw solid transparent;
        border-left: 0 solid transparent;
        border-top: 5svw solid var(--background);
        position: absolute;
        inset:  0 0 auto 0 ;
    }

}


@media (min-width: 601px) {
.mobile{ 
    display: none; 
}
.page{
    display: flex;
    justify-content: center;
    align-items: center;
}
.page h1{
    font-size: max(100px, 10vw); 
    color: var(--pale);
    text-align: center;
    /* max-width: 900px; */

}
}



@media (max-width: 600px) {
    .hero{
        background-position: center center !important;
    }
    .page h1{ 
        display: none; 
    }
    section .main *{
        float: none !important; 
    }
}






