
/*
Theme Name: onepen-2027
Template: onepen-core
Author: 1pen
Description: Elven Glass layout with sliding footer
Version: 1.3.2
*/

/* =========================================================
   BASE
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Tangerine:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400&family=Inter:wght@300;400&display=swap');

body {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  background-color: #0B0F12;
  color: #F5F7F8;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================================================
   HEADER
========================================================= */
header {
  text-align: center;
  padding: 2rem 0 2.5rem;
  background: none;
  border: none;
}

header .header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12rem; /* controls spacing between menu items */
  flex-wrap: wrap;
  margin: 0 auto;
  width: fit-content;
}

header .header-nav a {
  font-family: "Tangerine", cursive;
  font-weight: 500;
  font-size: 3rem;
  letter-spacing: 0.15rem;
  color: #B98C2D;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.25s ease;
}

header .header-nav a:hover {
  color: #F5E8B8;
  text-shadow: 0 0 8px rgba(245, 232, 184, 0.5);
  transform: scale(1.08);
}

/* Responsive: adjust spacing on small screens */
@media (max-width: 900px) {
  header .header-nav {
    gap: 5rem;
  }

  header .header-nav a {
    font-size: 2.4rem;
  }
}

/* =========================================================
   FOOTER PANEL — FIXED + FADE/SLIDE WORKING VERSION
========================================================= */

 
#footer-panel {
  position: fixed;
  left: 0;
  bottom: -400px;
  width: 100%;
  backdrop-filter: blur(12px) saturate(140%);
  background: rgba(25, 100, 132, 0.095);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 1.8rem 0 1.4rem;
  z-index: 100;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  will-change: bottom, opacity;
  transition: bottom 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

/* slide up */
#footer-panel.open {
  bottom: 0;
  opacity: 1;
  pointer-events: all;
}

/* slide down */
#footer-panel.closing {
  bottom: -400px;
  opacity: 0;
  pointer-events: none;
}



/* Only after animation ends, the hidden attribute fully removes it */
#footer-panel[hidden] {
  display: none;
}



/* Inner layout */
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* 3-column layout */
.footer-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 5rem;
  flex-wrap: nowrap;
}

/* Divider between groups */
.divider {
  width: 30px;
  height: 140px;
  background: url("https://1pen.dk/wp-content/themes/onepen-2027/assets/img/Divider%20Footer.png") no-repeat center;
  background-size: contain;
  opacity: 0.7;
}

/* Link groups */
.footer-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-group a {
  font-family: "Tangerine", cursive;
  font-size: 2rem;
  color: #d4b66cb3;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.25s ease;
}

.footer-group a:hover {
  color: #f5e8b8cb;
  text-shadow: 0 0 8px rgba(245, 232, 184, 0.6);
  transform: scale(1.05);
}
/* Copyright — adjusted for tighter vertical rhythm */
.footer-copy {
  font-family: "Poppins", "Inter", sans-serif !important;
  font-weight: 300 !important;
  font-size: 0.8rem !important;
  color: #196484b7 !important;
  letter-spacing: 0.05em !important;
  opacity: 0.9 !important;
  margin-top: 0.3rem !important; /* reduced from 1rem */
  margin-bottom: 0 !important;
  text-shadow: none !important;
  text-transform: none !important;
}

/* =========================================================
   FOOTER BUTTON — GLASS ORB STYLE
========================================================= */
#footer-button {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 50%;
  background: url("https://1pen.dk/wp-content/themes/onepen-2027/assets/img/footer_button.png") no-repeat center center;
  background-size: contain;
  background-color: transparent;
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.3s ease, filter 0.3s ease;
}

#footer-button:hover {
  transform: scale(1.08);
  filter: brightness(1.2);
}

/* =========================================================
   RESPONSIVE — STACKED FOOTER
========================================================= */
@media (max-width: 900px) {
  .footer-layout {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .divider {
    display: none;
  }

  .footer-group a {
    font-size: 2rem;
  }

  #footer-button {
    width: 56px;
    height: 56px;
  }
}
/* =========================================================
   FIX: override the native hidden attribute
========================================================= */

#footer-panel[hidden] {
  display: none !important;
}

#footer-panel.open {
  display: block !important;
  bottom: 0;
  opacity: 1;
  pointer-events: all;
  transition: bottom 1s ease, opacity 0.8s ease;
}
/* =========================================================
   FOOTER TOGGLE BEHAVIOUR — FINAL WORKING CONTROL
========================================================= */

/* When JS hides it (hidden attribute added) */
#footer-panel[hidden] {
  bottom: -400px;
  opacity: 0;
  pointer-events: none;
  transition: bottom 1s ease, opacity 0.8s ease;
}

/* When JS adds .open (visible) */
#footer-panel.open {
  bottom: 0;
  opacity: 1;
  pointer-events: all;
  transition: bottom 1s ease, opacity 0.8s ease;
}
.page-standard {
  padding: 2rem 0;
}
.page-special-first {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow: hidden;
  background: rgba(214,240,242,.10);
}
