/* ===== Global Styles - styles.css ===== */
/* Include this on ALL pages for consistent header/footer */

:root {
  --bg-dark: #0a0600;
  --text-light: #ffffff;
  --text-muted: rgb(171, 163, 152);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: white;
  font-family: Arial, Helvetica, sans-serif;
  padding-top: 0;
  padding-bottom: 0;
}

main {
  flex: 1;
  margin-top: 90px; /* Push content below fixed header */
  margin-bottom: 0; /* No bottom margin needed */
  padding-bottom: 80px; /* Space for fixed footer */
}

/* Marble background for select pages */
.marble-bg main {
  background-image: url('images/marble.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ===== Header ===== */
.site-header {
  background-color: var(--bg-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 32px;
  letter-spacing: 3px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 90px; /* Define explicit height */
  box-sizing: border-box;
}

.site-name {
  text-decoration: none;
  color: var(--text-light);
  font-size: 25px;
  cursor: pointer;
  z-index: 1001;
}

.site-name:hover {
  opacity: 0.9;
}

/* Hamburger menu button (hidden on desktop) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation wrapper */
.nav-wrapper {
  display: block;
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 12px;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--text-muted);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--text-light);
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-size: 11px;
  letter-spacing: 2px;
  text-decoration: none;
  transition: background-color 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--text-light);
  color: #000;
  border-color: var(--text-light);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.25);
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--bg-dark);
  padding: 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.footer-inner {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.site-footer a {
  display: inline-block;
  line-height: 0;
}

.site-footer img {
  width: 22px;
  height: 22px;
  opacity: 0.85;
  transition: opacity 0.2s ease,
              transform 0.2s ease,
              filter 0.2s ease;
}

.site-footer img:hover {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85));
  transform: scale(1.06);
}

/* ===== Mobile Responsive ===== */
@media (max-width: 980px) {
  .site-header {
    padding: 20px 18px;
    letter-spacing: 2px;
    height: 70px; /* Smaller on mobile */
    justify-content: space-between; /* Space between name and hamburger */
  }

  main {
    margin-top: 70px; /* Match mobile header height */
  }

  .site-name {
    font-size: 18px; /* Slightly smaller on mobile */
    display: block; /* Show on mobile */
  }

  /* Show hamburger menu on mobile */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Hide desktop navigation on mobile */
  .nav-wrapper {
    display: none; /* Hidden by default on mobile */
  }

  /* Mobile navigation dropdown */
  .nav-wrapper {
    position: fixed;
    top: 70px; /* matches mobile header height */
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    background-color: var(--bg-dark);
    padding: 20px 0;
    display: none;
    z-index: 999; /* Make sure it appears above other content */
  }

  .nav-wrapper.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
    align-items: flex-end; /* Align items to the right */
    padding: 0;
    padding-right: 18px; /* Add some padding from the edge */
  }

  .nav-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: auto; /* Don't stretch full width */
    text-align: right; /* Align text to the right */
  }

  .nav-menu a {
    display: block;
    padding: 18px 24px;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-align: right; /* Align text to the right */
  }

  .nav-cta {
    margin: 16px 24px;
    text-align: center;
    display: block;
  }
}