/* ============================
   FONTS
============================ */
@font-face {
  font-family: "Gothic";
  src: url("fonts/Gothic-Regular.woff2") format("woff2");
  font-weight: 400;
}
@font-face {
  font-family: "Gothic";
  src: url("fonts/Gothic-Bold.woff2") format("woff2");
  font-weight: 700;
}
@font-face {
  font-family: "OldEnglish";
  src: url("fonts/OldEnglish.woff2") format("woff2");
}

/* ============================
   RESET
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  color: #000;
  font-family: "Gothic", sans-serif;
  overflow-x: hidden;
  background-color: #fafafa;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

/* ============================
   SPLASH NAV (shared across pages)
============================ */
.splash-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;

  view-transition-name: main-nav;
}

.splash-nav a {
  color: #000;
  text-decoration: none;
  font-family: "OldEnglish";
  font-size: 1.9rem;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.splash-nav a:hover {
  opacity: 0.6;
}

.splash-nav a.active {
  color: #bbb;
  pointer-events: none;
}

/* ============================
   SPLASH FOOTER (shared across pages)
============================ */
.splash-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;

  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 30px 40px;

  view-transition-name: main-footer;
}

.splash-footer-icon {
  width: 44px;
  height: auto;
  display: block;
}

.splash-footer a {
  color: #000;
  text-decoration: none;
  font-family: "OldEnglish";
  font-size: 1.5rem;
  line-height: 1;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.splash-footer a:hover {
  opacity: 0.6;
}

.splash-nav a.active,
.splash-footer a.active,
.splash-footer-left.active,
.splash-footer-right.active {
  color: #31FF2F !important; /* Your vivid bright green */
  opacity: 1 !important;
  pointer-events: none;
}

/* ===================================================
   SHARED VIEW TRANSITIONS
=================================================== */
main, 
.about-content, 
.home-content {
  animation: pageFadeIn 0.4s ease-out forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================
   MOBILE STICKY OVERLAYS & DRAWER
========================================== */

/* Hide Mobile Elements on Desktop */
.mobile-header,
.mobile-footer-logo,
.mobile-drawer {
  display: none;
}

/* Shared Mobile Styles (Screens <= 700px) */
@media (max-width: 700px) {
  /* 1. Hide Desktop Nav & Desktop Footer Bar */
  .desktop-only-nav,
  .desktop-only-footer {
    display: none !important;
  }

  /* 2. Fixed Top "Menu" Button */
  .mobile-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 24px;
    box-sizing: border-box;
    z-index: 1000;
    pointer-events: none;
  }

  .menu-toggle-btn,
  .drawer-close-btn {
    pointer-events: auto;
    background: none;
    border: none;
    font-family: "OldEnglish", serif;
    font-size: 2.1rem; /* Increased from 1.8rem to 2.2rem (adjust as needed) */
    color: #000;
    cursor: pointer;
    padding: 0;
    line-height: 1;
  }

  /* 3. Fixed Bottom Centered Logo */
  .mobile-footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1000;
    pointer-events: none;
  }

  .mobile-footer-logo a {
    pointer-events: auto;
    display: inline-block;
  }

  .mobile-footer-logo .splash-footer-icon {
    width: 40px;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* 4. Full Screen Overlay Drawer */
  .mobile-drawer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #fafafa;
    z-index: 2000;
    padding: 40px 24px;
    box-sizing: border-box;
    
    /* Flat fade-in transition */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .mobile-drawer.is-open {
    opacity: 1;
    visibility: visible;
  }

  .drawer-header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 24px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
  }

  .drawer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 32px;
  }

  .drawer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .drawer-nav a {
    font-family: "OldEnglish", serif;
    font-size: 2.2rem;
    color: #000;
    text-decoration: none;
  }

  /* Fixed active state coloring */
  .drawer-nav a.active {
    color: #31FF2F !important;
    pointer-events: none;
  }

  .drawer-footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; /* Same vertical gap as .drawer-nav */
  }

  .drawer-footer-links a {
    font-family: "OldEnglish", serif;
    font-size: 1.8rem; /* Matches main drawer links */
    color: #000;
    text-decoration: none;
  }
  
  .drawer-nav a.active,
  .drawer-footer-links a.active {
    color: #31FF2F !important; /* Your vivid bright green hex code */
    opacity: 1 !important;     /* OVERRIDES the 0.4 opacity so it isn't washed out/faded */
    pointer-events: none;
  }

  .drawer-logo-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .drawer-logo-wrap .splash-footer-icon {
    width: 40px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}