/* mainsite site styles — plain CSS, served directly by Propshaft (no Sass).
   Brand palette + Bootstrap theme overrides live in theme.css, loaded first.
   Uses native CSS nesting (Baseline 2023). */

/* ============================ animations ============================ */
@keyframes kenBurnsToLeft {
	from {
		transform: scale(1.1);
	}

	to {
		transform: scale(1);
	}
}

/* ============================ buttons ============================ */
.btn-rounded {
  border-radius: 35px;
}

.btn-rounded-lg {
  border-radius: 50px;
}

.btn:hover,
.btn-primary,
.btn-primary:hover {
  color: white;
}

/* ============================ footer ============================ */
footer {
  padding-top: 5rem;
  padding-bottom: 3rem;
  font-size: 0.9rem;
  background-color: var(--dark-blue);
  color: white;

  img.logo {
    height: 38px;
    margin-bottom: 1rem;
  }

  .header {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  li {
    margin-bottom: 0.5rem;
  }

  a {
    color: white;
    text-decoration: none;
  }

  .disclosure {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);

    p {
      margin: 0;
    }
  }
}

/* ============================ forms ============================ */
label {
  font-size: 1.2rem;
  font-weight: 600;
}

.form-control,
.form-select {
  font-weight: 300;
}

/* ============================ header ============================ */
header {
  padding: 1.75rem 0;
  position: relative;
  background-color: var(--dark-blue);
  color: white;

  h1 {
    color: #fff;
    display: inline-block;
    font-size: 22px;
    line-height: 1;
    margin: 0;
    padding: 0;
    font-weight: 300;
    position: relative;
    top: 1px;

    &:after {
      content: '';
      width: 100%;
      height: 5px;
      background: var(--light-blue);
      position: absolute;
      bottom: -30px;
      left: 0;
      z-index: 10;
    }
  }

  &:after {
    content: '';
    width: 100%;
    height: 5px;
    background: var(--dark-gray);
    position: absolute;
    bottom: 0;
    left: 0;
  }
}

/* ============================ navbar ============================ */
.navbar {
  border-top: 3px solid #00baea;
  font-weight: 600;
  padding: 1.5rem 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);

  .navbar-brand img {
    height: 38px;
  }

  &.navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 0;
    padding-right: 0;
    margin-left: 1rem;
    margin-right: 1rem;
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.9rem;
  }

  a.nav-link {
    color: var(--dark-blue);
    border-bottom: 3px solid #fff;

    &:hover {
      color: var(--dark-blue);
      border-bottom: 3px solid var(--dark-blue);
    }
  }

  .navbar-nav .nav-link.active,
  .navbar-nav .nav-link.show {
    color: var(--dark-blue);
  }
}

/* ============================ sections ============================ */
section {
  padding-top: 5rem;
  padding-bottom: 5rem;

  img {
    padding: 0.25rem;
    border: 8px solid white;
    max-width: 100%;
    height: auto;
    box-shadow: 0px 0px 50px rgba(28, 54, 93, 0.15);
  }

  &.section-hero {
    position: relative;
    padding: 225px 0 75px;
    overflow: hidden;

    .container {
      max-width: 1350px;
    }

    .hero-bg {
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      background: url("/assets/home/background-4bbeeafe.jpg") no-repeat center center fixed;
      background-size: cover;
      animation-duration: 8s;
      animation-fill-mode: both;
      animation-name: kenBurnsToLeft;
      animation-timing-function: linear;
      transform-origin: left;
    }

    .card-group {
      box-shadow: 0px 0px 50px rgba(0,0,0,0.30);
    }

    .card {
      padding: 3rem;
      background-color: rgba(255,255,255,0.95);
      border-top: 5px solid rgba(0, 186, 234, 0.8);
      border-bottom: 2px solid rgba(0, 186, 234, 0.8);
    }

    .card:first-child {
      border-left: 2px solid rgba(0, 186, 234, 0.8);
    }

    .card:last-child {
      border-right: 2px solid rgba(0, 186, 234, 0.8);
    }

    h4 {
      font-weight: 700;
      margin-bottom: 1rem;

      i {
        margin-right: 1rem;
      }
    }
  }

  &.section-accent {
    padding-top: 4rem;
    padding-bottom: 4rem;
    border-bottom: 3px solid #00baea;
    background-color: var(--dark-blue);
    color: white;
  }
}

/* ============================ typography ============================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin: 0;
  letter-spacing: -.05em;
  -webkit-font-smoothing: antialiased;
}

.ls-wide {
  letter-spacing: .05em;
}

h2 {
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.text-justify {
  text-align: justify;
}

.lead {
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.8rem;
}

.fw-lightest {
  font-weight: 200;
}

/* ============================ areas ============================ */
.section-area-hero {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
  overflow: hidden;

  .area-hero-img {
    position: absolute;
    top: 0;
    bottom: 0;
    right: -5rem;
    width: 60%;
    object-fit: cover;
    height: 100%;
    object-fit: cover;
    object-position: center;

    padding: 0;
    border: none;
    box-shadow: none;
  }

  .area-description {
    position: relative;
    z-index: 1;
    background: linear-gradient(to right, rgba(244, 247, 255, 0.95), rgba(255, 255, 255, 0.95));
    border-left: 5px solid var(--light-blue);
    padding: 1rem;
    width: 60%;
  }
}

/* ============================ layout / image-grid ============================ */

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
}

.image-grid {
  .image-grid--outer {
    display: inline-block;
    overflow: hidden;
    padding: 4px;
    margin-right: 10px;
    margin-bottom: 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.15);

    &:hover img {
      transform: scale(1.1, 1.1);
    }

    &:hover .image-grid--label {
      opacity: 1;
    }
  }

  .image-grid--inner {
    position: relative;
    overflow: hidden;
  }

  img {
    transition: all 0.3s ease;
    width: 200px;

    padding: 0;
    border: none;
  }

  .image-grid--label {
    transition: all 0.3s ease;
    position: absolute;
    opacity: 0;
    left: 0;
    max-width: 90%;
    bottom: 10px;
    font-size: 0.9rem;
    color: white;
    padding: 0.5rem 0.75rem;
    background-color: var(--dark-blue);
  }
}
