/* ---- Fonts ---- */
/* Standard Fonts */
@font-face {
    font-family: 'headerfont';
    src: url('../fonts/Metamorphous-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'menufont';
    src: url('../fonts/Cinzel-VariableFont_wght.ttf') format('truetype');
}
@font-face {
    font-family: 'bodyfont';
    src: url('../fonts/Cormorant-VariableFont_wght.ttf') format('truetype');
}

/* ---- Variables ---- */
/* Standard Theme Colours & Background */
:root{
  --fg-logo: #c5bfa4;
  --fg: #c5bfa4;
  --fg-hover: #c4c2ba;
  --bg:#141f24;
  --hdr-bg: rgba(0,0,0,0.4);
  --bg-img:url('../img/background.png');
  --font-header: 'headerfont', serif;
  --font-menu:'menufont';
  --font-body: 'bodyfont', serif;
  --overlay-bg: rgba(0,0,0,0.35);
  --fg-accept: rgba(33, 160, 52, 0.9);
  --fg-accepthover: rgba(33, 221, 52, 0.9);
  --fg-cancel:rgba(88, 8, 8, 0.9);
  --fg-cancelhover:rgba(179, 11, 11, 0.9);
}

/* Standard Formats for Classes */
.font-bold {
font-weight: 900;
}

.icon{
  height:45px;
  width:45px;
  stroke: var(--fg) !important;
  vertical-align: middle;
}
.icon-small{
  height:20px;
  width:20px;
  stroke: var(--fg) !important;
  vertical-align: middle;
  padding-left: 2px;
  padding-right: 2px;
}

.icon-header{
  height:25px;
  width:25px;
  stroke: var(--fg) !important;
  vertical-align: text-bottom;
  padding-left: 5px;
}

.cancel {
 color:var(--fg-cancel);
}

.vds-theme {
  --media-brand: #c5bfa4;
  --media-focus: #c4c2ba;
}
/* ---- Main Theme CSS ---- */
/* Body Styles */
body{
  margin:0; padding:0;
  background-color: var(--bg);
  background-image: var(--bg-img);
  background-size:cover; background-position:center;
  background-attachment:fixed;
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
}

main.page {
  padding-top: var(--header-h);
  padding-bottom: var(--footer-h)
}

hr {
  background-color:var(--fg);
  height:3px;
  width:75%;
}

label {
  font-size: clamp(10px, 0.75vw, 1rem);
  font-family: var(--font-header);
  color:var(--fg);
  display: inline-flex;
  align-items: right;
  margin: 0 0 0 0.5rem;
  font-weight: 500;
  vertical-align: middle;
}

/* Fixed, top-center viewport that clears the header */
.toast-viewport{
  position: fixed;
  top: calc(var(--header-h) + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: var(--toast-gap);
  width: min(92vw, 520px);
  z-index: 12000; /* above popup (10,000) and footer/header */
  pointer-events: none; /* lets clicks pass through except on the toast */
}

/* Individual toast card */
.toast{
  pointer-events: auto;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  background: color-mix(in srgb, var(--hdr-bg) 85%, black 15%); /* matches glassy look */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: white;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  animation: toast-in 220ms ease-out, toast-out 220ms ease-in var(--toast-duration) forwards;
}

/* Color accents that match your buttons */
.toast--success{
  border-color: color-mix(in srgb, var(--fg-accept) 60%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg-accept) 40%, transparent) inset, 0 12px 40px rgba(0,0,0,.45);
}
.toast--error{
  border-color: color-mix(in srgb, var(--fg-cancel) 60%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg-cancel) 40%, transparent) inset, 0 12px 40px rgba(0,0,0,.45);
}

/* Text + icon row */
.toast__message{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font: normal 1rem/1.3 var(--font-body, serif);
}

/* Close button */
.toast__close{
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
  padding: .25rem .35rem;
  border-radius: 8px;
  transition: transform .08s ease, color .08s ease, background .12s ease;
}
.toast__close:hover{
  color: var(--fg-hover);
  transform: scale(1.05);
  background: rgba(255,255,255,.06);
}

/* In/out animations */
@keyframes toast-in{
  from{ opacity: 0; transform: translate(-50%, -8px); }
  to  { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes toast-out{
  to{ opacity: 0; transform: translate(-50%, -8px); }
}


/* -- Header Styles -- */
*, *::before, *::after {
  box-sizing: border-box;
}
/* Main Header Div */
#mainheader{
  position:fixed;
  inset: 0 0 auto 0;
  z-index:40; 
  width:100%;
  padding:1rem;
  line-height:68px;
  font: normal 0.875rem/1.25rem var(--font-header), serif;
  background: var(--hdr-bg);
  backdrop-filter:blur(5px);
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  -webkit-backdrop-filter:blur(5px);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  overflow: visible;
  box-shadow: var(--bg) 0 0 100px -20px, rgba(0,0,0,.3) 0 30px 60px -30px;
}

/* Header Content Div Style*/
#headercontents{
  display:flex; 
  height:100%;
  align-items:center; 
  justify-content: space-between;
  gap:0.5rem;
  margin:0;
  color:var(--fg);
  padding: 0 2rem;
}
/* Header Logo Style */
#headerlogo{ 
  font-family: var(--font-header); 
  letter-spacing:-0.08em; 
  font-size: 1.125rem;
  line-height: 30px;
  font-weight: bold; 
  text-transform:uppercase; 
  white-space: nowrap;
}
#headerlogo, #headerlogo a{ 
  color:var(--fg-logo); 
  text-decoration:none; 
}
#headerlogo a:hover{ 
  color:var(--fg-hover); 
}
/* Main Menu Style */
#nav-stack{
  display:flex;
  flex-direction:column;
  align-items:flex-end; 
  gap: .2rem;
  margin-left:auto;
}

#authline{
  display:flex;
  align-items:center;
  gap:.4rem;
  font-family: var(--font-menu);
  font-size: .95rem;
  line-height: 1.25rem;
  color: var(--fg);
  white-space: nowrap;
}

#authline a{
  display:inline-flex;
  align-items:center;
  color: var(--fg);
  text-decoration:none;
  transition: transform .1s ease, color .1s ease;
}

#authline a:hover span,
#authline a:hover { 
  color: var(--fg-hover);
  transform:scale(1.03);
}

#authline a + a::before{
  content:"│";
  opacity:.6;
  margin-right:.3rem;
  pointer-events:none;
  transition:none;
  transform:none;
  color:var(--fg);
}


#desktopmenu{
  margin-left:auto; 
  display:inline-flex; 
  position:initial;
  gap:0;
  font-size:1rem; 
  font-weight: 500;
  color:var(--fg);
  font-family: var(--font-menu);
  white-space: nowrap;
}

#desktopmenu a{
  display:inline-flex;
  align-items:center;
  color:var(--fg);
  text-decoration:none;
}

#desktopmenu a span{ 
  display:inline-block;
  text-decoration:none; 
  transition:transform .1s ease, color .1s ease;
}

#desktopmenu a:hover span { 
  color:var(--fg-hover); 
  transform:scale(1.03);
}

#desktopmenu a + a{ 
  margin-left:.3rem; 
}

#desktopmenu a + a::before{
  content:"│";
  opacity:.6;
  margin-right:.3rem;
  pointer-events:none;
  transition:none;
  transform:none;
  color:var(--fg);
}

#desktopmenu a.font-bold span{ 
  font-weight:700;
  color:var(--fg-hover);
}

/* Mobile Menu Style */
#mobilemenu {
  display:flex;
  align-items: center;
  margin-right:0.5rem;
}

#mobilebutton{
  display: flex;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-menu);
  color: var(--fg);
  justify-content: center;
}

#mobiledropdown {
  position: fixed; 
  right: 2rem;
  top: var(--header-h);
  z-index: 50; 
  padding-top: 0.5rem;
  padding-bottom: 0.5rem; 
  width: 11rem; 
  color: var(--fg); 
  background: var(--hdr-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-decoration:none;
  border-radius:0px 0px 15px 15px;
  background-clip: padding-box;
  border-left: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
}

#mobiledropdown a span{
  display: block; 
  padding-top: 0.5rem;
  padding-bottom: 0.3rem; 
  padding-left: 1rem;
  padding-right: 1rem; 
  font-size: 0.875rem;
  line-height: 1.25rem; 
  font-family: var(--font-menu);
  color:var(--fg);
  transition: all 0.2s ease;
  text-align: center;
  text-decoration:none; 
}

#mobiledropdown a:hover span{
  transform: scale(1.05);
  font-weight: 700;
  color:var(--fg-hover);
  text-decoration:none;
}

#mobiledropdown a,
#mobiledropdown a:visited,
#mobiledropdown a:hover {
    text-decoration: none;
}

#mobiledropdown a::after { 
  content: "";
  display: block;
  height: 1px;
  width: 40%;
  background-color: var(--fg);
  opacity:0.6;
  margin: 6px auto 0 auto;
}

#mobiledropdown a:last-child::after {
  display: none;
}

#mobiledropdown { 
  overflow: hidden;
}

#mobiledropdown a.font-bold span{ 
  font-weight:900;
  color: var(--fg-hover);
}

[x-cloak] { 
  display: none !important;
}

/*Button Styles*/
.buttonaccept {
  font-family:var(--font-body);
  color:whitesmoke;
  background: var(--fg-accept);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease-in-out;
}

.buttonaccept:hover {
  transition: background 0.2s ease-in-out;
  font-family:var(--font-body);
  background: var(--fg-accepthover);
  color:whitesmoke;
}

.buttoncancel {
  font-family:var(--font-body);
  color:whitesmoke;
  background: var(--fg-cancel);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease-in-out;
}

.buttoncancel:hover {
  transition: background 0.2s ease-in-out;
  font-family:var(--font-body);
  background: var(--fg-cancelhover);
  color:whitesmoke;
}

.floatright{
  display: flex; 
  margin-top: 1.5rem; 
  gap: 1rem; 
  justify-content: flex-end; 
}
/*Tab Styles*/


/*Content Styles*/
#contentbg {
  padding: 1.5rem; 
  overflow: auto;
  margin: 2.5rem auto;
  border-radius: 15px; 
  max-width: 1000px; 
  min-width: 315px;
  background-color: var(--hdr-bg);
  border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(5px); 
}

h1, h1 a{
  font-family: var(--font-header); 
  font-size: clamp(15px, 1.5vw, 2rem);
  line-height: 30px;
  font-weight: bold; 
  text-transform:uppercase; 
  white-space: nowrap;
  color:var(--fg-logo);
  text-decoration:none;
}

h2, h2 a{
  font-family: var(--font-header);
  font-size: clamp(12px, 1vw, 1.5rem);
  line-height: 30px;
  font-weight: bold; 
  text-transform: capitalize;
  white-space: nowrap;
  color:var(--fg-logo);
  text-decoration:none;
}

h3, h3 a{
  font-family: var(--font-header);
  color:var(--fg-logo);
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  margin: 0 0 0 0.5rem;
  font-size: clamp(10px, 0.75vw, 1.1rem);
  vertical-align: middle;
}

h1 a:hover, h2 a:hover, h3 a:hover{ 
  color:var(--fg-hover);
  text-decoration:none;
}

p {
  text-transform:initial;
  margin-left:1rem;
  font-size:large;
  font-family:var(--font-body);
  color:white;
  text-decoration:none;
}

ul {
  list-style: none;
  margin-left:2rem;
  text-transform:initial;
  font-size:large;
  font-family:var(--font-body);
  color:white;
  padding: 0;
}

li {
  position: relative;
  margin: 0.5em 0;
  padding-left: 32px;
  line-height: 1.4;
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  background: url("/assets/img/listmark.png") no-repeat center / contain;
}


.small, .small a{
  text-transform:capitalize;
  font-size: 10px;
  font-family:var(--font-menu);
  color:white;
  text-decoration:none;
}

.small a:hover{ 
  margin:0;
  color:var(--fg-hover);
  text-decoration:none;
}

/* News Styles*/
#news-box {
  text-transform:none;
  margin-bottom: 1rem;
  border-radius: 15px;
  padding: 0.25rem 1rem;
  border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
}

#blog-post, #blog-post a{
  text-transform:none;
  font-size: 18px;
  font-family:var(--font-body);
  color:white;
  text-decoration:none;
  min-width:315px;
  object-fit: contain;
  overflow-y:auto;
}

#blogpost img {
  max-width:700px;
}


/* Contact form layout & sizing */
form#stdform {
  display: grid;
  grid-template-columns: minmax(75px, 180px) clamp(110px, 55vw, 640px);
  column-gap: 0.75rem;
  row-gap: 0.5rem;
  align-items: start;
  justify-content:center;

}

form#stdform label {
  grid-column: 1;
  justify-self:end;
}

form#stdform textarea {
  min-height: 10em;
  margin-bottom: 0.75rem;
  resize: vertical;
}

form#stdform input[type="text"],
form#stdform input[type="email"],
form#stdform input[type="password"],
form#stdform textarea {
  grid-column: 2;
  width: 100%;
  max-width: none;
  padding: 0.4rem 0.5rem;
}

form#stdform .floatright {
  display:flex;
  grid-column: 2;
  width: 100%;
  margin-top: 0;
  justify-content: flex-end;
}

/*Index Styles*/
.poem-viewer {
  position: relative;
  width: 700px;
  height: 500px;
  margin: 0 auto; /* center horizontally */
  background: transparent;
  overflow: hidden;
}

.poem-stanza {
  position: absolute;
  max-width: 90%;
  font: inherit;
  font-size: clamp(18px, 3.5vw, 40px);
  line-height: 1.2;
  white-space: pre-line;
  opacity: 0;
  filter: blur(8px);
  color: white;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  will-change: opacity, filter, transform;
  pointer-events: none;
}

/* Blur in/out with 40% peak opacity */
@keyframes blurFadeInOut {
  0%   { opacity: 0;   filter: blur(12px); }
  20%  { opacity: 0.4; filter: blur(0px);  }
  80%  { opacity: 0.4; filter: blur(0px);  }
  100% { opacity: 0;   filter: blur(12px); }
}

/* Full-poem: reveal to 40% and hold */
@keyframes fullPoemReveal {
  0%   { opacity: 0;   filter: blur(6px); }
  12%  { opacity: 0.4; filter: blur(0px); }
  100% { opacity: 0.4; filter: blur(0px); }
}

/* Full-poem container */
.poem-full {
  position: absolute;
  inset: 0;
  padding: 12px 16px;
  color: white;
  opacity: 0;
  will-change: opacity, filter, font-size;
  overflow: hidden;
}

/* Three-column flow for desktop */
.poem-full-inner {
  column-count: 3;
  column-gap: 18px;
  font: inherit;
  text-align: left;
  line-height: 1.18;
  white-space: pre-wrap;
  word-break: normal;
  hyphens: auto;
}


/*About Us Styles*/
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  border: 1px solid var(--fg);
  border-radius: 12px;
  padding: 1.5rem;
  width: 240px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.contact-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2px solid var(--accent);
}


/*Footer Styles*/
footer {
position: fixed; 
bottom: 0; 
left: 0;
z-index: 50; 
padding-top: 0.5rem;
padding-bottom: 0.5rem; 
padding-left: 1rem;
padding-right: 1rem; 
width: 100%; 
font-size: 0.875rem;
line-height: 1.25rem; 
color: var(--fg); 
background: var(--hdr-bg);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
text-decoration:none;
background-clip: padding-box;
border-top: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
white-space: nowrap;
}

/* Footer container: 3 columns */
footer .footerbar{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  gap: .75rem;
  min-height: 30px;
}

footer .footer-center{ justify-self: center; }
footer .footer-right{ justify-self: end; display: inline-flex; gap: .6rem; align-items: center; }

/* Links & Footer Features*/

.linklike {
  font-family: var(--font-menu);
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--fg);
  display: inline-flex; align-items: center; gap: .25rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .1s ease, color .1s ease;
}

.linklike:hover{ color: var(--fg-hover); transform: scale(1.03); }

.dropup-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.dropup{
  position: fixed;
  bottom: var(--footer-h);
  left: var(--dropup-x, 50vw);
  transform: translateX(-50%);
  z-index: 60;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem; 
  width: 11rem; 
  color: var(--fg); 
  background: var(--hdr-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-decoration: none;
  border-radius: 15px 15px 0 0;
  background-clip: padding-box;
  border-left: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  overflow: hidden;
}

.dropup-item{
  display: block; 
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.dropup-item span{
  display: block;
  padding-top: 0.5rem;
  padding-bottom: 0.3rem; 
  padding-left: 1rem;
  padding-right: 1rem; 
  font-size: 0.875rem;
  line-height: 1.25rem; 
  font-family: var(--font-menu);
  color: var(--fg);
  transition: all 0.2s ease;
}
.dropup-item:hover span{
  transform: scale(1.05);
  font-weight: 700;
  color: var(--fg-hover);
}
.dropup-item::after { 
  content: "";
  display: block;
  height: 1px;
  width: 40%;
  background-color: var(--fg);
  opacity:.6;
  margin: 6px auto 0 auto;
}

.popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background-color: var(--hdr-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
}

.popup > div {
  width: min(92vw, 640px);
  max-height: 85vh;
  overflow: auto;
  padding: 1.5rem;
  background-color: var(--hdr-bg);
  border-radius: 15px; 
  pointer-events: auto;
  border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dropup-item:last-child::after { display: none; }

/* Google Recaptcha Badge */
.grecaptcha-badge { 
  visibility: hidden !important; 
}

/*Full Screen Details*/
@media (min-width: 951px) {
  .text-short {
  display: none !important;
  }
  #mobiledropdown {
  display:none !important;
  }
  #mobilemenu {
  display:none !important;
  }

  .popup > div { max-height: 92vh; }
}

/* Responsive overrides for smaller screens */
@media (max-width: 768px) {
  .poem-viewer {
    width: 95vw;
    height: 70vh;
  }
  .poem-full-inner {
    column-count: 2;
    column-gap: 14px;
  }
  .poem-stanza {
    font-size: clamp(16px, 5vw, 28px);
  }
}

@media (max-width: 480px) {
  .poem-viewer {
    width: 95vw;
    height: 80vh; 
  }
  .poem-full-inner {
    column-count: 1;
  }
  .poem-stanza {
    font-size: clamp(14px, 6vw, 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .poem-stanza,
  .poem-full {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}