/* 
  VYBE CSS Stylesheet

  Structure:
  - Root Styles (variables, base font, etc.)
  - Typography (font family, headings)
  - Universal Styles (global resets, box-sizing) 
  - Component-Specific Styles (buttons, navigation, footer)
*/

@font-face {
  font-family: 'Nyght';
  src:
    url('../fonts/nyght-serif-main/fonts/WEB/NyghtSerif-Light.woff2') format('woff2'),
    url('../fonts/nyght-serif-main/fonts/WEB/NyghtSerif-Light.woff') format('woff'),
    url('../fonts/nyght-serif-main/fonts/TTF/NyghtSerif-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --------- Root Styles --------- */
:root {
  /* Colors */
  --blue: #EDFFFB;
  --darkblue: #C3D7D6;
  --white: #FFFFFF;
  --green: #013933;
  --yellow: #E5B885;

  /* Fonts */
  --base-font-size: 16px;
  --heading-font-family: 'Nyght', serif;
  --body-font-family: 'Be Vietnam Pro', sans-serif;
}

/* --------- Typography --------- */
body {
  font-family: var(--body-font-family);
  font-size: var(--base-font-size);
  line-height: 1.6;
  color: var(--green);
  display: flex;
  flex-direction: column;
}

/* Heading Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font-family);
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: var(--white);
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--white);
}

p {
  font-size: 1rem;
  color: var(--white);
}

a {
  color: var(--white);
  text-decoration: none;
}

a:hover {
  cursor: pointer;
}

button {
  background-color: var(--white);
  opacity: 0.9;
  color: var(--green);
  border: none;
  border-radius: 30px;
  font-size: var(--base-font-size);
  font-family: var(--body-font-family);
  transition: all 0.3s ease;
}

button:hover {
  background-color: var(--green);
  color: var(--white);
  cursor: pointer;
}

.green {
  color: var(--green);
}

.gold {
  color: var(--yellow);
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    color: var(--white);
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
    color: var(--white);
  }
}

/* --------- Universal Selector --------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

.global-wrapper {
  width: 100vw;
  height: 100vh;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

/* --------- Navigation --------- */
.nav-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 80vw;
  height: 15vh;
}

.nav-links {
  width: 45%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
}

.nav-links a {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.7;
}

.nav-bar img {
  width: 10%;
}

@media (max-width: 768px) {
  .nav-bar {
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  .nav-bar img {
    width: 40%;
  }
}

/* --------- Footer --------- */
footer {
  width: 100vw;
  min-height: 50vh;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4% 0 2%;
}

.footer-logo {
  width: 100vw;
  height: auto;
  display: flex;
  align-items: flex-end;
  margin-bottom: 30px;
}

.footer-logo img {
  height: 50px;
  margin-left: 5%;
}

.footer-info {
  width: 90vw;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5%;
  padding: 30px 0;
}

.footer-links {
  width: 35%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links-container {
  display: flex;
  flex-direction: row;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-links-container a {
  color: var(--green);
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}

.footer-links-container a:hover {
  opacity: 0.7;
}

.footer-links > p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-newsletter {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-newsletter-submit {
  width: 100%;
  height: auto;
  min-height: 40px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.footer-newsletter-submit input[type="email"] {
  width: 65%;
  height: 40px;
  border: 1px solid var(--green);
  border-radius: 15px;
  padding-left: 12px;
  font-family: var(--body-font-family);
  font-size: 0.85rem;
  color: var(--green);
  outline: none;
  transition: border-color 0.3s ease;
}

.footer-newsletter-submit input[type="email"]::placeholder {
  font-family: var(--body-font-family);
  font-style: italic;
  color: #999;
}

.footer-newsletter-submit input[type="email"]:focus {
  border-color: var(--yellow);
}

.footer-newsletter-submit button {
  width: 30%;
  height: 40px;
  background-color: var(--green);
  color: var(--white);
  font-size: smaller;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.footer-newsletter-submit button:hover {
  opacity: 0.85;
  background-color: var(--green);
  color: var(--white);
}

.footer-contact {
  width: 20%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact a {
  color: var(--green);
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-copyright {
  width: 100vw;
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(1, 57, 51, 0.1);
}

@media (min-width: 768px) and (max-width: 992px) {
  .footer-info {
    flex-wrap: wrap;
    gap: 30px;
  }

  .footer-links {
    width: 100%;
  }

  .footer-newsletter {
    width: 45%;
  }

  .footer-contact {
    width: 40%;
  }
}

@media (max-width: 768px) {
  footer {
    padding: 10% 0 5%;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-logo img {
    margin: 0;
  }

  .footer-info {
    flex-direction: column;
    gap: 30px;
  }

  .footer-links {
    width: 90%;
  }

  .footer-links-container {
    gap: 15px;
  }

  .footer-newsletter {
    width: 90%;
  }

  .footer-contact {
    width: 90%;
  }
}
