/* ================================
   Root Variables
================================ */
:root {
  --background: #fff;
  --background-dark: #121212;
  --text: #000;
  --text-light: #fff;
  --link-highlight: #bdbdbd;
}

/* ================================
   Base Styles
================================ */
body {
  margin: 0;
}

h1, h2, h3, h4, h5, h6,
p, a, li, label, input {
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  /* font-family: Verdana, Geneva, Tahoma, sans-serif; */
}

h2 {
  font-size: 2.5em;
}

p {
  font-size: 16px;
}

.centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* ================================
   Header & Navigation
================================ */
header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  background-color: var(--background);
  z-index: 10;
}

nav {
  width: 100%;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 1000px;
}

nav ul li {
  display: flex;
  align-items: center;
}

nav a {
  display: flex;
  align-items: center;
  height: 44px;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

nav ul section {
  display: flex;
  justify-content: space-around;
  width: 35%;
}

/* --- Header Logo --- */
header .logo {
  position: relative;
  display: flex;
  justify-content: center;
  width: 30%;
  max-height: 44px;
  overflow: hidden;
  transition: max-height 0.1s ease-in-out;
}

header .logo img {
  height: 100%;
  max-width: 100%;
}

header .logo.expanded {
  max-height: 150px;
}

header .logo.expanded img {
  width: 100%;
  height: auto;
  margin: 3px;
}

.mobile-logo {
  display: none;
}

.menu-icon {
  display: none;
}

/* ================================
   Main Content
================================ */
.top-title {
    text-align: center;
    font-size: 2.5em;
    padding: 2em 0;
}

.top-title h1 {
    color: var(--text-light);
    text-shadow: 0 0 6px #00000085;
}

main {
  margin-top: 170px;
  width: 100%;
}

main > * {
  width: 80%;
  margin: 0 auto;
}

/* --- Title Section --- */
main section.title {
  width: 50%;
  margin: 8em auto;
  text-align: center;
}

main section.title .logo {
  width: 100%;
  filter: invert(1);
}

main section.title p {
  margin-top: 1em;
  font-size: 2em;
  color: var(--text-light);
  text-shadow: 2px 2px #00000080;
}

/* --- Content Article --- */
main article.content {
  width: 80%;
  padding: 5em 10%;
  display: flex;
  flex-direction: column;
  gap: 4em;
  background-color: var(--background);
}

main article.content > section {
  width: 100%;
}

/* --- Standard Paragraph Section --- */
.standard-p {
  display: flex;
  justify-content: space-between;
}

.standard-p h2,
.standard-p h3,
.standard-p h4 {
  margin-top: 0;
}

.standard-p > div {
  width: 45%;
}

.standard-p img {
  width: 100%;
  height: auto;
  min-height: 60%;
  object-fit: cover;
}

.standard-p.reverse {
  flex-direction: row-reverse;
}

/* ================================
   Footer
================================ */
footer {
  display: flex;
  justify-content: space-around;
  width: 100%;
  text-align: center;
  background-color: var(--background);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 1);
}

footer section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
}

/* ================================
   Media Queries
================================ */

/* --- Tablet Landscape (≤ 1079px) --- */
@media (max-width: 1079px) {
  main {
    margin-top: 48px;
  }

  header .logo.expanded {
    max-height: 44px;
  }

  header .logo.expanded img {
    width: auto;
    height: 100%;
    margin: 0;
  }

  nav ul {
    width: auto;
  }

  nav ul li a {
    margin: 0 0.5em;
  }

  nav ul section {
    width: auto;
  }

  h2 {
    font-size: 2em;
  }

  main section.title {
    width: 70%;
  }

  main article.content {
    width: 90%;
    padding: 5em 5%;
  }

  main > *, footer section {
    width: 90%;
  }

  .standard-p > div {
    width: 48%;
  }

  footer > section {
    width: 30%;
  }
}

/* --- Tablet Portrait / Small Screens (≤ 670px) --- */
@media (max-width: 670px) {
  header,
  nav, nav ul, nav ul li,
  nav ul li a, nav ul section {
    width: 100%;
  }

  header {
    max-height: 44px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }

  nav ul, nav ul section {
    flex-direction: column;
  }

  header .logo {
    display: none;
  }

  .mobile-logo {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 44px;
  }

  .mobile-logo img {
    height: 42px;
    margin: 1px;
  }

  .menu-icon {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
  }

  .menu-icon > span {
    position: fixed;
    right: 3px;
    display: inline-block;
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background-color: black;
    transition: all 0.3s ease-in-out;
  }

  .menu-icon span:nth-child(1) { top: 9px; }
  .menu-icon span:nth-child(2) { top: 20px; }
  .menu-icon span:nth-child(3) { top: 31px; }

  header:has(#nav-toggle:checked) {
    max-height: 350px;
  }

  header:has(#nav-toggle:checked) .menu-icon span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
  }

  header:has(#nav-toggle:checked) .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  header:has(#nav-toggle:checked) .menu-icon span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
  }

  nav a {
    justify-content: center;
  }

  .top-title {
    text-align: center;
    font-size: 1.5em;
    padding: 1em 0;
  }

  main > *, footer section {
    width: 96%;
  }

  main article.content {
    width: 96%;
    padding: 5em 2%;
    gap: 0;
  }

  footer {
    flex-direction: column;
  }

  footer section {
    margin: 0 auto;
    text-align: center;
  }

  footer section h2 {
    margin: 1em 0;
  }

  footer section p {
    margin: 0.5em 0;
  }
}

/* --- Mobile (≤ 480px) --- */
@media (max-width: 480px) {
  main section.title {
    width: 100%;
    margin: 0;
    padding: 3em 0;
  }

  main section.title,
  .standard-p > div,
  footer,
  main article.content {
    width: 100%;
  }

  .standard-p,
  .standard-p.reverse {
    flex-direction: column;
  }

  main article.content {
    padding: 0;
  }

  main article.content > section {
    width: 96%;
    margin: 0 auto;
    padding: 3em 0;
  }

  p {
    font-size: 1em;
  }
}