/*!
* Theme for London City Farm Yarn Project
*/

/* Google Fonts: Lora (serif) for headings, Source Sans Pro (sans-serif) for body */
body {
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  color: #333;
  letter-spacing: 0.05em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Lora", "Times New Roman", Times, serif;
  font-weight: 700;
}

/* Color Palette
   Primary: SaddleBrown #8B4513
   Accent: Dark Olive Green #556B2F
   Light BG: Beige #F5F5DC
   Dark BG: Dark Slate Gray #2F4F4F
   Text: Dark Gray #333
*/

a {
  color: #8B4513;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
a:hover {
  color: #556B2F;
  text-decoration: underline;
}

.btn-primary {
  background-color: #8B4513;
  border-color: #8B4513;
  color: #fff;
  padding: 1.25rem 2rem;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  border-radius: 0;
  transition: all 0.3s;
}
.btn-primary:hover {
  background-color: #556B2F;
  border-color: #556B2F;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Navigation --- */
#mainNav {
  min-height: 3.5rem;
  background-color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease-in-out;
}
#mainNav .navbar-brand {
  color: #333;
  font-family: "Lora", serif;
  font-weight: 700;
}
#mainNav .navbar-toggler {
  font-size: 80%;
  padding: 0.75rem;
  color: #8B4513;
  border: 1px solid #8B4513;
}
#mainNav .navbar-nav .nav-link {
  color: #333;
  font-weight: 700;
  padding: 0.75rem 1rem;
}
#mainNav .navbar-nav .nav-link:hover, #mainNav .navbar-nav .nav-link.active {
  color: #8B4513;
}

@media (min-width: 992px) {
  #mainNav {
    box-shadow: none;
    background-color: transparent;
  }
  #mainNav .navbar-brand {
    color: rgba(255, 255, 255, 0.8);
  }
  #mainNav .nav-link {
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
  }
  #mainNav .nav-link:hover {
    color: #fff;
  }
  #mainNav.navbar-shrink {
    background-color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  }
  #mainNav.navbar-shrink .navbar-brand {
    color: #333;
  }
  #mainNav.navbar-shrink .nav-link {
    color: #333;
  }
  #mainNav.navbar-shrink .nav-link:hover, #mainNav.navbar-shrink .nav-link.active {
    color: #8B4513;
  }
}

/* --- Masthead --- */
.masthead {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 35rem;
  padding: 15rem 0;
  /* TODO: Replace with a hero image of a sheep or yarn */
  background: linear-gradient(to bottom, rgba(79 72 47 / 60%) 0%, rgba(79 72 47 / 80%) 100%), url("../assets/img/spitalfields-2.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: cover;
}
.masthead h1, .masthead .h1 {
  font-family: "Lora", serif;
  font-size: 2.5rem;
  line-height: 2.5rem;
  letter-spacing: 0.5rem;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
.masthead h2, .masthead .h2 {
  font-family: "Source Sans Pro", sans-serif;
  max-width: 30rem;
  font-size: 1.25rem;
  color: #fff;
}
@media (min-width: 992px) {
  .masthead {
    height: 100vh;
    padding: 0;
  }
  .masthead h1, .masthead .h1 {
    font-size: 5rem;
    line-height: 5rem;
  }
}

/* --- Section Styling --- */
.about-section {
  padding-top: 10rem;
  padding-bottom: 5rem;
  background-color: #4f3f2f; /* Dark Slate Gray */
}
.about-section .text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1.8;
}

.process-section {
  padding: 8rem 0;
}
.process-section .process-item {
    max-width: 20rem;
    margin: 0 auto;
}
.process-section .process-item i {
  color: #8B4513;
  opacity: 0.7;
}
.process-section .process-item h4 {
  margin-bottom: 0.5rem;
}

.products-section {
    padding: 8rem 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.8) 100%), url("../assets/img/spitalfields-5.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}
.products-section .card {
    border: none;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.products-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}
.products-section .card-body {
    padding: 1.5rem;
}
.products-section .card-title {
    color: #8B4513;
}

.farms-section {
    padding: 8rem 0;
}
.farms-section .list-group-item {
    background-color: transparent;
    border-color: #dee2e6;
    font-size: 1.1rem;
    padding: 1rem 0;
}
.farms-section .partner-logo img {
    /* max-height: 60px; */
    filter: grayscale(80%);
    opacity: 0.8;
    transition: all 0.3s;
}
.farms-section .partner-logo a:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.contact-section {
  padding: 8rem 0;
  background-color: #7f5e2c; /* Dark Olive Green */
}
.contact-section .contact-details {
    background-color: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 5px;
}
.contact-section .contact-details h5 {
    color: #fff;
    margin-bottom: 1rem;
}
.contact-section .contact-details a {
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.contact-section .contact-details a:hover {
    text-decoration: none;
    opacity: 0.8;
}
.contact-section .social a {
  text-align: center;
  height: 3rem;
  width: 3rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100%;
  line-height: 3rem;
  color: rgba(255, 255, 255, 0.7);
}
.contact-section .social a:hover {
  color: #fff;
}

/* --- Footer --- */
.footer {
  padding: 3rem 0;
}

.max-width-700 {
  max-width: 700px;
}

/* COOKIE POPUP STYLES */

.cookie-section {
  padding-top: 400px;
  padding-bottom: 300px;
  background: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.9) 75%, rgba(0, 0, 0, 0.8) 100%), url("../assets/img/matrix.jpg");
}
.cookie-section p {
  margin-bottom: 5rem;
}

.cookie-popup {
  
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: fixed;
  bottom: -6.25rem;
  left: 1.25rem;
  right: 1.25rem;
  padding: 0.625rem 0.9375rem;
  box-shadow: 0 0 0.625rem 0 rgba(0,0,0, .15);
  line-height: 150%;
  transition: opacity .5s;
  opacity: 0;
}
.cookie-popup--short {
  right: none;
  width: 21.875rem; 
}
.cookie-popup--dark {
  background: #000;
  color: #fff;
}
.cookie-popup--not-accepted {
  opacity: 1;
  animation: cookie-popup-in .5s ease forwards;  
}
.cookie-popup--accepted {
  opacity: 0;
}
.cookie-popup a {
  color: skyblue;
}
.cookie-popup a:visited {
  color: skyblue;
  text-decoration: none;
}
.cookie-popup-actions {
  flex: 1;
  text-align: right;
}
.cookie-popup-actions button {
  color: orange;
  border: none;
  background: none;
  font-family: inherit;
  font-style: inherit;
  font-size: inherit;
  font-weight: bold;
  text-transform: uppercase;
  font-size:  1rem;
  padding: 0;
  cursor: pointer;
  margin-top: 20px;
}
.cookie-popup-actions button:hover {
  text-decoration: underline;
}

@keyframes cookie-popup-in {
  from { bottom: -6.25rem; }
  to { bottom: 1.25rem; }
}