/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Mulish', sans-serif;
  background: #ffffff;
  color: #000000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

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

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1.5px solid #000000;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ===== NAV ===== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.35rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 3px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: #f6d236;
  color: #000000;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #000000;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MAIN ===== */
main {
  flex: 1;
  padding: 2.5rem 1.25rem 7rem;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

/* ===== SECTION HEADING ===== */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #000000;
  padding-bottom: 0.5rem;
}

.section-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #222;
}

/* ===== CONTACT FORM ===== */
.contact-section {
  margin-top: 3rem;
}

.contact-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 540px;
}

.contact-form label {
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  font-family: 'Mulish', sans-serif;
  font-size: 0.9375rem;
  color: #000000;
  background: #ffffff;
  border: 1.5px solid #000000;
  border-radius: 3px;
  padding: 0.6rem 0.75rem;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f6d236;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button[type="submit"] {
  font-family: 'Mulish', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.18s ease;
}

.contact-form button[type="submit"]:hover {
  background: #f6d236;
  color: #000000;
}

/* ===== POST LIST (category pages) ===== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.post-card {
  padding: 1.5rem;
  border: 1.5px solid #000000;
  border-radius: 4px;
  scroll-margin-top: 72px;
}

.post-card .post-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.post-card .post-meta {
  font-size: 0.8rem;
  font-weight: 300;
  color: #444;
  margin-bottom: 0.75rem;
}

.post-card .post-preview {
  font-size: 1rem;
  line-height: 1.65;
  color: #222;
}

/* ===== HOMEPAGE LATEST POSTS ===== */
.latest-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.latest-post-link {
  display: block;
  padding: 1.5rem;
  border: 1.5px solid #000000;
  border-radius: 4px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.latest-post-link:hover {
  background: #f6d236;
  border-color: #f6d236;
}

.latest-post-link .post-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.latest-post-link .post-meta {
  font-size: 0.8rem;
  font-weight: 300;
  color: #444;
  margin-bottom: 0.75rem;
}

.latest-post-link:hover .post-meta {
  color: #000000;
}

.latest-post-link .post-preview {
  font-size: 1rem;
  line-height: 1.65;
  color: #222;
}

.latest-post-link:hover .post-preview {
  color: #000000;
}

.latest-post-link .post-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #ffffff;
  border-top: 1.5px solid #000000;
  padding: 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.footer-icon svg {
  width: 22px;
  height: 22px;
  fill: #000000;
  transition: fill 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.footer-icon--linkedin:hover svg { fill: #0077b5; }
.footer-icon--facebook:hover svg { fill: #1877f2; }
.footer-icon--instagram:hover svg { fill: #e1306c; }
.footer-icon--x:hover { opacity: 0.55; transform: scale(1.12); }

.footer-copy {
  font-size: 0.8125rem;
  color: #444;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1.5px solid #000000;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    font-size: 1rem;
  }

  main { padding: 2rem 1rem 10rem; }

  .contact-form { max-width: 100%; }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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