/* Font declarations */
@font-face {
  font-family: 'NB International';
  src: url('/fonts/NB-International-Pro-Regular.ttf');
  font-weight: normal;
}

@font-face {
  font-family: 'NB International';
  src: url('/fonts/NB-International-Pro-Light.ttf');
  font-weight: lighter;
}

@font-face {
  font-family: 'NB International';
  src: url('/fonts/NB-International-Pro-Bold.ttf');
  font-weight: bold;
}

@font-face {
  font-family: 'Roslindale';
  src: url('/fonts/Roslindale-DeckNarrowSemiBold-Testing.otf');
}

/* Root variables */
:root {
  --light: #f0f0e0;
  --green-drk: #1e3223;
  --green-light: #5f7364;
  --green: #005541;
  --tangerine: #f55f30;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base styles */
* {
  box-sizing: border-box;
  -ms-overflow-style: none; 
  scrollbar-width: none;  

*::-webkit-scrollbar {
  display: none;
}


body {
  background-color: var(--green-drk);
  color: var(--light);
  font-family: 'NB International', sans-serif;
  font-weight: lighter;
  margin: 0;
}

h1 {
  font-family: 'NB International', sans-serif;
  font-weight: lighter;
  font-size: clamp(0.85rem, 0.54vw + 0.77rem, 1rem);
  margin: 0;
  color: var(--green-light);
}

h2 {
  font-family: 'Roslindale', sans-serif;
  font-size: clamp(2.50rem, 5vw + 1.50rem, 5rem);
  margin: 0;
}

p {
  font-size: clamp(0.88rem, 0.36vw + 0.80rem, 1.12rem);
  max-width: 58ch;
  margin: 0;
  line-height: 1.4;
}

/* Layout containers */
.container {
  margin: auto;
  max-width: 120rem;
  padding: 0rem 2rem;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-height: 100%;
  gap: 4rem;
}

.text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

/* Image styles */
.image-holder {
  object-fit: contain;
}

.wrap {
  height: 100%;
}

img, .wrapper {
  overflow: hidden;
  outline: 1px solid var(--green);
  outline-offset: 1rem;
  box-shadow: 4px 4px 1rem rgba(0, 0, 0, 0.2);
  max-width: 35%;
  max-height: 80vh;
  aspect-ratio: 1/1.4;
  object-fit: contain;
  margin:0;
  padding: 0;
}

/* Slider styles */
.slider-section {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  grid-auto-columns: 1fr;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}

.slider-canvas {
  position: absolute;
  left: 0%;
  top: 0%;
  right: 0%;
  bottom: 0%;
}


.silder-control-holder {
  position: absolute;
  left: auto;
  top: 2vh;
  right: 0%;
  bottom: auto;
  z-index: 5;
  display: none;
}

.ctrlbtn {
  display: flex;
  width: 5vw;
  height: 5vw;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* Form styles */
form {
  position: relative;
  margin-top:1rem
}

.form-wrapper {
  display: flex;
  gap: 0.5rem;
}

input {
  background-color: var(--light);
  height: 2.8rem;
  padding: 0px 1rem;
  border: none;
  border-radius: 0.25rem;
  color: var(--green);
  max-width: 100%;
  width: 28ch;
}

input::placeholder {
  color: var(--green-light);
}

input:focus {
  outline: none;
  border: none;
}

button {
  background-color: var(--green);
  border: none;
  border-radius: 0.25rem;
  height: 2.8rem;
  padding: 0px 0.5rem;
  width: 100%;
  max-width: 18ch;
  color: var(--light);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

button:hover {
  background-color: var(--tangerine);
}

.form-success {
  display: none;
  justify-content: center;
  align-items: center;
  height: 2.5rem;
  padding: 0px 1rem;
  border-radius: 0.25rem;
  background-color: var(--green);
  pointer-events: none;
  z-index: 10;
  position: absolute;
  top: 0;
  width: 100%;
  opacity: 0;
}

/* Media Queries */
@media (max-width: 991px) {
  .container {
    padding: 4rem 1.5rem;
    max-width: 100%;
  }
  
  .content {
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 3rem;
  }

  form {
    margin:0;
  }

  img, .wrap {
    outline-offset: 0.5rem;
    
  }

  img, .wrapper {
    max-width: 60%;
    order: -999;
    max-height: 100%;
    margin-left: 0.875rem;
  }

  .text-wrapper {
    width: 100%;
  }
  
  .form-wrapper {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
    display: flex;
  }

  input, button {
    height: 3rem;
    border-radius: 0.5rem;  
    max-width: 100%;
    width: auto;
  }
}

