/* CUSTOM PROPERTIES */
:root {
  --first-color: rgb(154, 195, 28);
  --second-color: rgb(128, 141, 140);
  --white-color: rgb(255, 255, 255);
  --black-color: rgb(0, 0, 0);
  --link-color: rgb(173, 199, 98);
  --bg-color: rgb(71, 69, 76);
}

/* RESET STYLES */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Ubuntu", sans-serif;
}

a {
  color: var(--white-color);
  text-decoration: none;
}

a:hover {
  color: var(--first-color);
  transition: all 0.3s ease-out;
}

/* BOOTSTRAP STYLES */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    padding 0.3s ease, height 0.3s ease;
  padding-top: 10rem;
  position: fixed;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Add background color to the expanded menu*/
.navbar-collapse {
  z-index: 1050;
  position: relative;
}

/* navbar links visible */
.navbar-collapse .nav-link {
  color: var(--white-color);
}

/* For hover state */
.navbar-collapse .nav-link:hover {
  color: var(--white-color);
}

/* Transparent state */
.navbar.transparent {
  background-color: transparent;
  box-shadow: none;
  padding-top: 2rem;
}

/* Scrolled state (white background) */
.navbar.scrolled {
  background-color: var(--white-color) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding-top: 0.5rem;
  transition: height 0.3s ease;
  z-index: 1050;
}

.navbar.scrolled .nav-link {
  color: var(--white-color);
}

/* Add transition to the contact info section */
.navbar .row {
  transition: padding 0.3s ease;
}

/* Shrink padding when scrolled */
.navbar.scrolled .row {
  padding-top: 0;
}

/* Minimize navbar height */
.navbar.fixed-top {
  height: 7rem;
  transition: height 0.3s ease;
}

.nav-link {
  color: var(--white-color);
}

.nav-link:hover {
  color: var(--first-color) !important;
}

/* Navbar Toggler Style */
.navbar-toggler {
  border: none;
  margin-left: auto;
  z-index: 1050;
  color: var(--white-color) !important;
}

.navbar-nav {
  background-color: var(--bg-color);
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  max-height: 5rem;
}

/* Fix the color of the navbar-toggler icon */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-h {
  height: 9rem !important;
  background-color: var(--bg-color) !;
}

.active {
  color: var(--first-color) !important;
  font-weight: 700 !important;
}

.btn-success {
  background-color: var(--first-color);
  border: none;
}

.btn-success:hover {
  background-color: var(--second-color) !important;
}

.icon {
  width: 30%;
}

.text-success {
  color: var(--first-color) !important;
}

/* MY STYLES */
.phone {
  padding: 0.5rem 0;
  z-index: 1100;
  position: relative;
}

.phone a {
  font-size: small;
  z-index: 1100;
  position: relative;
}

.phone img {
  height: auto;
  width: 1rem;
  vertical-align: middle;
  margin-right: 0.2rem;
  z-index: 1100;
  position: relative;
}

.header-phone-links {
  position: relative;
  z-index: 1051;
}

.header-phone-links .row {
  display: flex;
  align-items: center;
}

.header-phone-links .col-lg-4,
.header-phone-links .col-lg-3 {
  display: flex;
  align-items: center;
}

.hero {
  background-color: var(--bg-color);
  background-size: cover;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(img/mountain.jpg);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-attachment: fixed;
  position: relative;
  z-index: 10;
}

.hero-content {
  padding-top: 10rem;
  padding-bottom: 2rem;
  margin-top: 2rem;
}

.hero a {
  padding: 10px;
  display: inline-block;
}

/* Adjust the row containing phone/email */
.hero .row {
  position: relative;
  z-index: 20;
}

h1 {
  font-weight: 700;
  color: var(--white-color);
  position: relative;
  z-index: 1;
}

.history {
  background-size: cover;
  background-color: var(--bg-color);
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}

.dott {
  height: auto;
  width: 15%;
}

.products {
  background-size: cover;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(img/castano_tree.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}

.contact {
  background-size: contain;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(img/quebracho_tree.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}

footer {
  background-color: var(--bg-color);
}

.green {
  color: var(--first-color);
}

/* // X-Small devices (portrait phones, less than 576px)
// No media query for `xs` since this is the default in Bootstrap */

@media (min-width: 768px) {
  .navbar {
    padding-top: 7rem;
  }

  .navbar.scrolled {
    height: 7rem;
  }

  .navbar.scrolled .nav-link {
    color: var(--black-color);
  }

  .navbar-toggler-icon {
    background-image: none;
  }

  .navbar-nav {
    background-color: transparent;
  }

  h1 {
    font-size: 5rem;
  }
}
