/* Font */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");

:root {
  scroll-behavior: smooth;

  --shadow: 0px 0px 25px rgba(0, 0, 0, 0.25);
  --radius: 25px;
  --radius-sm: 7px;
  --nav-height: 10vh;
  --strip-height: 5vh;

  --p: 0.85rem;
  --h1: 2.5rem;
  --h2: 1.56rem;
  --h3: 1.25rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  --bg: #fff;
  --primary: #012249;
  --secondary: #d51f26;
  --text: #1e1e1e;
  --danger: #b50000;
  --danger-text: #3a0000;
  --success: #50b500;
  --success-text: #193a00;
  --warn: #e29301;
  --warn-text: #584402;
  --white: #fff;
  --whatsapp-green: #489f28;

  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden !important;
  position: relative;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
}

/* ----------------------------------- GENERAL STYLES ------------------------------------------- */
p,
li,
a,
label {
  font-size: var(--p);
}

p {
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

li {
  list-style: none;
}

section {
  position: relative;
  width: 100%;
}

h1,
.h-xl {
  font-size: var(--h1);
}
h2,
.h-lg {
  font-size: var(--h2);
}
h3,
.h-md {
  font-size: var(--h3);
}

.flex,
.flex-res {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.success {
  color: var(--success);
}

.fa-bars {
  display: none;
}

.image-container {
  position: relative;
  overflow: hidden;
  width: 30%;
}
.image-container img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.fas,
.fa-brands {
  font-size: calc(var(--p) * 1.35);
}

.input {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
}

select,
::picker(select) {
  appearance: base-select;
}

select {
  border: 3px solid var(--primary);
  background: var(--bg);
  padding: 1rem;
  transition: 0.4s;
  font-size: var(--p);
  margin-top: 1rem;
  width: 100%;
}

select::picker-icon {
  color: var(--text);
  transition: 0.4s rotate;
}

select:open::picker-icon {
  rotate: 180deg;
}

::picker(select) {
  border: none;
}

option {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  font-size: var(--p);
  border: 2px solid #dddddd;
  background: var(--bg);
  padding: 10px;
  transition: 0.4s;
}

option:first-of-type {
  border-radius: 8px 8px 0 0;
}

option:last-of-type {
  border-radius: 0 0 8px 8px;
}

::picker(select) {
  border-radius: 8px;
}

option:not(option:last-of-type) {
  border-bottom: none;
}

option:hover,
option:focus {
  background: var(--primary);
  color: var(--white);
}

.input input,
.input textarea {
  outline: none;
  border: 3px solid var(--primary);
  width: 100%;
  height: 100%;
  font-family: inherit;
  color: var(--text);
  background-color: var(--bg);
  padding: 1rem;
  padding-left: 1.5rem;
  border-radius: var(--radius-sm);
}

.input textarea {
  margin-top: 2rem;
}

.input .error {
  color: var(--secondary);
}

input[type="submit"] {
  font-family: inherit;
  width: fit-content;
}

.hidden {
  display: none;
}
/* ----------------------------------- GENERAL STYLES ------------------------------------------- */

/* ----------------------------------- ALERT BOX ------------------------------------------- */
.alert {
  position: fixed;
  width: fit-content;
  top: -15rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1rem;
  z-index: 990;
  transition: top 300ms ease-in-out;
}
.alert::after {
  content: "";
  height: 5px;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}
.alert .message-field {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.alert.error {
  color: var(--danger-text);
  background-color: #ffb6b8;
}
.alert.error::after {
  background-color: var(--danger);
}
.alert.success {
  color: var(--success-text);
  background-color: #b9ffb6;
}
.alert.success::after {
  background-color: var(--success);
}
.alert.warn {
  color: var(--warn-text);
  background-color: #ffeeb6;
}
.alert.warn::after {
  background-color: var(--warn);
}
.alert.show {
  top: calc(var(--nav-height) + var(--strip-height) + 1rem);
}
/* ----------------------------------- ALERT BOX ------------------------------------------- */

/* ----------------------------------- CARDS ------------------------------------------- */
.card {
  background-color: var(--bg);
  border-radius: var(--radius);
  overflow-x: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card .image-container {
  width: 100%;
  height: 15rem;
}
.card .card-details {
  padding: 5%;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card h3 {
  color: var(--primary);
  text-transform: uppercase;
}
.card p {
  margin: 1rem 0;
}
.card .btn {
  margin-top: auto;
}
/* ----------------------------------- CARDS ------------------------------------------- */

/* ----------------------------------- BUTTONS ------------------------------------------- */
.btn {
  display: block;
  width: fit-content;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid;
  cursor: pointer;
  transition:
    background-color 300ms ease,
    border-color 300ms ease,
    color 300ms ease;
}
.btn.btn-primary {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--white);
}
.btn.btn-primary:hover {
  border-color: var(--secondary);
  background-color: var(--secondary);
  color: var(--white);
}
.btn.btn-secondary {
  border-color: var(--secondary);
  background-color: var(--secondary);
  color: var(--white);
}
.btn.btn-secondary:hover {
  border-color: var(--danger);
  background-color: var(--danger);
  color: var(--white);
}
.btn.btn-open {
  border-color: var(--white);
  background-color: var(--transparent);
  color: var(--white);
}
.btn.btn-open:hover {
  border-color: var(--danger);
  background-color: var(--danger);
  color: var(--white);
}
/* ----------------------------------- BUTTONS ------------------------------------------- */

/* ----------------------------------- WHATSPP BUTTON ------------------------------------------- */
.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: var(--whatsapp-green);
  padding: 2%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: fixed;
  bottom: 5%;
  right: 3%;
  overflow: hidden;
  cursor: pointer;
  z-index: 1000;
  transition:
    background-color 300ms ease-in-out,
    padding 300ms ease-in-out;
}
.whatsapp-button:hover {
  background-color: #276111;
  padding: 2.5%;
}
.whatsapp-button:hover > a {
  font-size: 2.5rem;
}
.whatsapp-button a {
  position: relative;
  color: var(--white);
  font-size: 2rem;
  transition: font-size 300ms ease-in-out;
}
.whatsapp-button .fa-brands {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: inherit;
}
/* ----------------------------------- WHATSPP BUTTON ------------------------------------------- */

/* ----------------------------------- HEADER SECTION------------------------------------------- */
header {
  width: 100%;
  height: calc(var(--strip-height) + var(--nav-height));
  position: sticky;
  top: 0;
  left: 0;
  z-index: 999;
}
header .fa-bars {
  display: none;
}
header .strip {
  background-color: var(--secondary);
  color: var(--white);
  padding: 0 5%;
  height: var(--strip-height);
}
header .strip p {
  font-weight: 600;
}
header .strip .fas {
  color: var(--white);
  margin-left: 0.5rem;
}
header .logo-nav {
  background-color: var(--primary);
  height: var(--nav-height);
  padding: 0 5%;
  color: var(--white);
}
header .nav {
  width: 50%;
}
header .image-container {
  width: 8%;
}
header a {
  transition: color 300ms ease-in-out;
}
header li a:hover {
  color: var(--danger);
}
/* ----------------------------------- HEADER SECTION------------------------------------------- */

/* ----------------------------------- SUBSCRIBE SECTION ------------------------------------------- */
.subscribe {
  background-color: var(--primary);
  padding: 5%;
  color: var(--white);
  text-align: center;
}
.subscribe h2 {
  color: var(--secondary);
}
.subscribe p {
  margin: 1rem auto 2rem;
  width: 60%;
}
.subscribe form {
  margin: 0 auto;
  width: 70%;
  justify-content: center;
}
.subscribe .input {
  position: relative;
  width: 70%;
}
.subscribe .input .error {
  position: absolute;
  top: 20%;
  left: 67%;
  transform: translateY(-50%);
  width: 30%;
  text-align: right;
}

/* ----------------------------------- SUBSCRIBE SECTION ------------------------------------------- */

/* ----------------------------------- CONTACT US SECTION ------------------------------------------- */
.contact {
  padding: 5%;
  margin: 3rem 0;
}
.contact h2 {
  text-align: center;
  color: var(--primary);
}
.contact p {
  text-align: center;
  margin: 1rem auto 5rem;
  width: 70%;
}
.form-details {
  align-items: flex-start;
}
.form-details .details {
  position: relative;
  background-color: var(--primary);
  color: var(--white);
  width: 40%;
  padding: 3%;
  border-radius: var(--radius);
  box-shadow: -2rem -2rem 0px rgb(213, 31, 38);
  z-index: 2;
}
.form-details .details .contact {
  justify-content: flex-start;
  text-align: left;
  margin: 0;
}
.form-details .details h3 {
  color: var(--secondary);
}
.form-details .details p {
  margin: 0;
  text-align: left;
}
.map h3 {
  margin-bottom: 2rem;
}
.map .map-container {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}
.form-details .form {
  width: 50%;
}
.contact .input {
  margin-bottom: 0.5rem;
}
.contact .input p {
  margin: 0;
  width: 100%;
  text-align: right;
}
.contact .mailings {
  margin: 1rem 0;
}
.contact .mailings label {
  width: 80%;
}
.contact .mailings input {
  width: 20px;
  height: 20px;
}
/* ----------------------------------- CONTACT US SECTION ------------------------------------------- */

/* ----------------------------------- FOOTER SECTION ------------------------------------------- */
footer {
  margin-top: 3rem;
  padding: 0 5%;
}
footer .container {
  background-color: var(--primary);
  color: var(--white);
  padding: 5%;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  align-items: flex-start;
}
footer .links {
  width: 50%;
  justify-content: flex-start;
  align-items: flex-start;
}
footer .links .socials {
  margin-left: 2rem;
}
footer h3 {
  margin-bottom: 1rem;
}
footer li,
footer .socials a {
  margin-bottom: 0.65rem;
  justify-content: flex-start;
}
footer a {
  transition:
    padding 300ms ease-in-out,
    color 300ms ease-in-out;
}
footer .container a:hover {
  padding-left: 0.5rem;
  color: var(--secondary);
}
footer a:hover {
  color: var(--secondary);
}
footer .info {
  width: 40%;
}
footer .info p {
  margin-bottom: 0.65rem;
}
footer .image-container {
  width: 50%;
}
footer .copyrights {
  padding: 1rem 0;
}
/* ----------------------------------- FOOTER SECTION ------------------------------------------- */

@media screen and (max-width: 1080px) {
}

@media screen and (max-width: 768px) {
  :root {
    --h1: 2.1rem;
    --h2: 1.25rem;
    --h3: 1rem;
    --p: 0.75rem;
  }
  header .image-container {
    width: 15%;
  }
  header .nav {
    position: absolute;
    left: -100%;
    top: calc(var(--nav-height) + var(--strip-height));
    width: 100%;
    background-color: var(--primary);
    padding: 5%;
    flex-direction: column;
    transition: left 300ms ease-in-out;
  }
  header .nav.show {
    left: 0;
  }
  header .nav li {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--white);
    padding: 1rem;
    width: 100%;
    text-align: center;
  }
  header .fa-bars {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1rem;
    color: var(--white);
    cursor: pointer;
    z-index: 999;
  }
  header .strip {
    display: none;
  }
  header {
    height: var(--nav-height);
  }
  header .nav {
    top: var(--nav-height);
  }
  .subscribe form,
  .subscribe .input,
  .form-details .details,
  .btn {
    width: 100%;
  }
  .contact p {
    width: 90%;
  }
  .whatsapp-button {
    padding: 4%;
  }
  .whatsapp-button:hover {
    padding: 5%;
  }
  .form-details .details,
  .form-details .form {
    width: 100%;
  }
}

@media screen and (max-width: 550px) {
  :root {
    --h1: 1.56rem;
    --h2: 1.25rem;
    --h3: 1rem;
  }
  p,
  h1,
  h2,
  h3 {
    width: 100%;
    text-align: center;
  }
  .flex-res {
    width: 100%;
    padding: 3%;
    flex-direction: column;
  }
  .alert.show {
    top: calc(var(--nav-height) + 1rem);
    width: 90%;
    text-align: center;
  }
  p {
    text-align: center;
  }
  .card .image-container {
    height: 12rem;
  }
  .whatsapp-button {
    padding: 5%;
  }
  .whatsapp-button:hover {
    padding: 7%;
  }
  .subscribe form,
  .subscribe .form,
  .subscribe .input,
  footer .info,
  footer .links,
  .btn {
    width: 100%;
  }
  .contact p {
    width: 90%;
  }
  .contact .form {
    width: 100%;
  }
  .form-details .details {
    box-shadow: -1rem -1rem 0px rgb(213, 31, 38);
  }
  footer .info p {
    margin-bottom: 1rem;
  }
  footer .image-container {
    margin: 0 auto;
  }
  footer .copyrights {
    flex-direction: column-reverse;
    gap: 10px;
  }
}

@media screen and (max-width: 440px) {
  :root {
    --nav-height: 12vh;
  }
  ::placeholder {
    font-size: var(--p);
  }
  header .image-container {
    width: 20%;
  }
  .whatsapp-button {
    padding: 6%;
  }
  .whatsapp-button:hover {
    padding: 7%;
  }
}

@media screen and (max-width: 370px) {
  footer .links .socials {
    margin-left: 0;
  }
}
