:root {
  /* Colors */
  --dark-jungle-green: hsl(188, 63%, 7%);
  --prussian-blue: hsl(200, 69%, 14%);
  --raisin-black-1: hsl(227, 29%, 13%);
  --raisin-black-2: hsl(229, 17%, 19%);
  --yellow-green: hsl(89, 72%, 45%);
  --orange-soda: hsl(9, 100%, 62%);
  --cultured-1: hsl(0, 0%, 93%);
  --cultured-2: hsl(192, 24%, 96%);
  --misty-rose: hsl(7, 56%, 91%);
  --alice-blue: hsl(210, 100%, 97%);
  --seashell: hsl(8, 100%, 97%);
  --cadet: hsl(200, 15%, 43%);
  --white: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);
  --opal: hsl(180, 20%, 62%);

  /* Typography */
  --ff-nunito-sans: "Nunito Sans", sans-serif;
  --ff-poppins: "Poppins", sans-serif;

  --fs-1: 1.875rem;
  --fs-2: 1.5rem;
  --fs-3: 1.375rem;
  --fs-4: 1.125rem;
  --fs-5: 0.875rem;
  --fs-6: 0.813rem;
  --fs-7: 0.75rem;

  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;

  --transition: 0.25s ease;
  --section-padding: 100px;

  --shadow-1: 0 5px 20px 0 hsla(219, 56%, 21%, 0.1);
  --shadow-2: 0 16px 32px hsla(188, 63%, 7%, 0.1);
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
li { list-style: none; }
a { text-decoration: none; }
a, img, span, button, ion-icon { display: block; }
button { border: none; background: none; font: inherit; cursor: pointer; }
address { font-style: normal; }
ion-icon { pointer-events: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--cadet); border-left: 2px solid var(--white); }

/* Base */
html {
  background: url(1stimg.jpg) no-repeat center center fixed;
  background-size: cover;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
body {
  color: #C0C0C0;
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

/* HEADER */
.header { position: relative; z-index: 2; }
.header-top { background: var(--prussian-blue); padding-block: 15px; }
.header-top .container,
.header-top-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.header-top .container { gap: 8px 20px; }
.header-top-list { gap: 15px; }
.header-top-link {
  color: var(--white); font-size: var(--fs-6); font-weight: var(--fw-700);
  display: flex; align-items: center; gap: 5px;
}
.header-top-link:hover { color: var(--orange-soda); }
.header-top-link ion-icon { color: var(--orange-soda); font-size: 15px; }

.header-top .wrapper { display: flex; gap: 20px; }
.header-top-social-list { display: flex; gap: 8px; }
.header-top-social-link { color: var(--white); font-size: 15px; }

.header-bottom { background: wheat; padding-block: 25px; }
.header-bottom .logo img { margin-inline: auto; }

.navbar {
  background: var(--white);
  position: fixed;
  top: 0; left: -310px;
  max-width: 300px; width: 100%; height: 100%;
  box-shadow: 0 3px 10px hsla(0, 0%, 0%, 0.3);
  z-index: 5; padding: 60px 20px;
  visibility: hidden; transition: 0.15s ease-in;
}
.navbar.active { visibility: visible; transform: translateX(310px); transition: 0.25s ease-out; }
.navbar-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--cultured-1); margin-bottom: 25px; }
.navbar-link { color: var(--cadet); font-size: var(--fs-5); font-weight: var(--fw-600); text-transform: uppercase; padding-block: 15px; }
.navbar-link:hover { color: var(--orange-soda); }

.overlay {
  position: fixed; inset: 0; background: hsla(0, 0%, 0%, 0.7);
  opacity: 0; pointer-events: none; transition: var(--transition); z-index: 4;
}
.overlay.active { opacity: 1; pointer-events: all; }

/* CONTACT FORM */
#contact-form {
  background-color: rgba(72,72,72,0.9);
  padding: 20px 30px;
  max-width: 520px;
  margin: 50px auto;
  border-radius: 7px;
  position: relative;
}
#contact-form h1 { margin-bottom: 10px; }
#contact-form h4 { margin-bottom: 20px; }
#contact-form input,   
#contact-form select,   
#contact-form textarea { 
  width: 100%;
  background: #fff;
  border: 0; 
  border-radius: 4px;
  margin-bottom: 25px;  
  padding: 8px;  
  font-size: 15px;
}  
#contact-form input:focus, #contact-form select:focus, #contact-form textarea:focus {
  background-color: #E5E6E7;
}
#contact-form textarea { height: 150px; }
#contact-form button[type="submit"] {
  cursor: pointer;
  width: 100%;
  border: none;
  background: var(--orange-soda);
  color: #FFF;
  margin: 0 0 5px;
  padding: 12px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: var(--fw-600);
  transition: background 0.3s ease-in-out;
}
#contact-form button[type="submit"]:hover {
  background: var(--black);
}
#contact-form .required { font-weight: bold; color: var(--cultured-1); }
#failure, #success { color: #6EA070; display: none; }

/* FOOTER */
main {
  flex: 1; /* pushes footer down */
}
.footer {
  background: var(--prussian-blue);
  color: var(--white);
  font-family: var(--ff-nunito-sans);
  padding-top: 50px;
}
.footer-top { padding-bottom: 40px; border-bottom: 1px solid var(--raisin-black-2); }
.footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}
.footer-brand .logo img { max-width: 180px; margin-bottom: 15px; }
.footer-brand .section-text { font-size: var(--fs-6); line-height: 1.6; margin-bottom: 20px; color: var(--cultured-1); }
.footer .contact-list { margin-bottom: 20px; }
.footer .contact-link {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-size: var(--fs-6); margin-bottom: 10px; transition: var(--transition);
}
.footer .contact-link:hover { color: var(--orange-soda); }
.footer .social-list { display: flex; gap: 15px; }
.footer .social-link { font-size: 20px; color: var(--white); transition: var(--transition); }
.footer .social-link:hover { color: var(--orange-soda); }

.footer-link-box { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-list-title { font-size: var(--fs-5); font-weight: var(--fw-700); margin-bottom: 15px; color: var(--orange-soda); }
.footer-link { font-size: var(--fs-6); color: var(--cultured-1); margin-bottom: 8px; transition: var(--transition); }
.footer-link:hover { color: var(--orange-soda); }

.footer-bottom { text-align: center; padding: 20px 0; border-top: 1px solid var(--raisin-black-2); }
.footer-bottom .copyright { font-size: var(--fs-6); color: var(--cultured-1); }
.footer-bottom .copyright a { color: var(--orange-soda); margin-left: 5px; transition: var(--transition); }
.footer-bottom .copyright a:hover { color: var(--white); }

/* Responsive */
@media only screen and (max-width: 768px) {
  .footer .container { grid-template-columns: 1fr; text-align: center; }
  .footer .contact-link { justify-content: center; }
  .footer .social-list { justify-content: center; }
  .footer-link-box { flex-direction: column; align-items: center; }
  #contact-form { margin: 20px auto; width: 90%; }
}
