/* =========================
   1. Reset / Base
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

/* =========================
   2. Variables
========================= */

:root {
  --blue: #1a2bb8;
  --blue-dark: #11218c;
  --yellow: #fae81c;
  --white: #ffffff;
  --black: #000000;
  --shadow: rgba(0, 0, 0, 0.2);
}

/* =========================
   3. Base Typography
========================= */

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--black);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

p a,
.contact-box ul a {
  font-weight: 600;
  color: blue;
  text-decoration: none;
  border-bottom: 1px solid green;
}

p a:hover {
  border-bottom: yellow;
}

ul,
li {
  list-style-position: outside;
  padding-left: 1.5rem; /* adjust to taste */
}

h1 {
  padding-bottom: 15px;
}

/* =========================
   4. Layout Containers
========================= */

.header,
.main,
.footer {
  width: 100%;
}

/* =========================
   5. HEADER
========================= */

.header {
  background: var(--blue);
  border-bottom: 3px solid var(--yellow);
}

.header_inner {
  max-width: 1100px;
  margin: 0 auto;

  display: flex;
  align-items: center;

  gap: 2rem;

  padding: 1rem;
}

/* Logo */
.logo {
  height: 75px;
  width: auto;
  flex-shrink: 0;
}

.logo_link {
  justify-self: start;
}

/* Hamburger */
.menu_toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--yellow);
  cursor: pointer;
}

/* Nav */
.nav_menu {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.nav_menu li {
  position: relative;
}

.nav_menu a {
  text-decoration: none;
  color: var(--yellow);
  padding: 0.5rem 0.75rem;
  display: block;

  letter-spacing: 0.02em;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Dropdown */
.dropdown_menu {
  position: absolute;
  top: 100%;
  left: 0;

  background: #222;
  min-width: 180px;

  list-style: none;
  padding: 0.5rem 0;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;

  box-shadow: 0 4px 10px var(--shadow);
  z-index: 1000;
}

.dropdown:hover .dropdown_menu {
  opacity: 1;
  visibility: visible;
}

.dropdown_menu a {
  color: var(--white);
  padding: 0.5rem 1rem;
}

.dropdown_menu a:hover {
  color: var(--yellow);
}

/* Nav Menu without Dropdowns */
.nav_menu > li > a {
  position: relative;
  transition: color 0.2s ease;
}

/* underline animatie */
.nav_menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--yellow);
  transition: width 0.25s ease;
}

.nav_menu > li:hover > a::after {
  width: 100%;
}

/* =========================
   6. MAIN
========================= */

.main {
  flex: 1;
  padding: 2rem 1rem;

  display: flex;
  justify-content: center;
}

/* Card */
.card {
  width: 100%;
  max-width: 900px;

  background: var(--white);
  padding: 2rem;

  border-radius: 12px;
  box-shadow: 0 8px 24px var(--shadow);
}

.card p {
  margin-bottom: 1.5rem;
}

/* Contact Box */
.contact-box {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem;

  border: 2px solid var(--blue);
  border-radius: 10px;

  background: #f7f9ff;

  box-shadow: 0 4px 12px var(--shadow);
}

.contact-box ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-box ul a {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.6rem 0.75rem;
  border-radius: 8px;

  text-decoration: none;
  font-weight: 600;

  color: var(--blue);
  background: white;

  border: 1px solid transparent;

  transition: all 0.2s ease;
}

.contact-box ul a:hover {
  border-color: var(--blue);
  transform: translateX(4px);
}

.contact-box i {
  width: 1.2rem;
  text-align: center;
}

/* Info-Grid */
.info-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.info-block {
  padding: 1rem;
  border-left: 3px solid var(--blue);
  background: #f9faff;
  border-radius: 8px;
}

.info-block p {
  margin: 0;
}

/* Images section */
.flair {
  margin: 2rem 0;
  text-align: center;
}

.flair img {
  display: block;
  margin: 0 auto;

  max-width: 600px; /* 👈 adjust to taste */
  width: 100%;
  height: auto;
}

figcaption {
  align-items: center;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.flair_clickable {
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.flair_clickable:hover {
  transform: scale(1.015);
  opacity: 0.9;
}

.flair_clickable {
  display: inline-block; /* ensures hover area matches image */
  cursor: pointer;
}

/* =========================
   7. FOOTER
========================= */

.footer {
  padding: 1rem;
  background: var(--blue);
  color: var(--white);
  border-top: 3px solid var(--yellow);

  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================
   8. MOBILE
========================= */

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header_inner {
    flex-wrap: wrap; /* 👈 THIS is the key */
  }

  .menu_toggle {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav_menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    order: 3; /* 👈 push it below logo + button */
  }

  .nav_menu a {
    font-size: 1.2rem;
    padding: 0.75rem 0.75rem;
  }

  .nav_menu.active {
    display: flex;
  }

  .dropdown_menu {
    position: static;
    opacity: 1;
    visibility: visible;
    background: #333;
    box-shadow: none;
  }

  .main {
    padding: 1rem;
  }

  .card {
    padding: 1.25rem;
  }
}
