* { box-sizing: border-box; }
html, body { overflow-x: hidden; }

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #2D3D58;
  background-image: url('Anathema.webp');
  background-repeat: repeat;
background-size: auto;
background-position: top left;

}
main {
  flex: 1;
  padding-top: 180px;
}


  /*headings and paragraphs*/
h1 {
  font-family: "Alice", serif;
  font-weight: 900;
  font-style: normal;
  font-size: 60px;
  color: #bfa16a;
}

h2 {color: #bfa16a;

  font-family: "Alice", serif;
  }


p { font-family: "Alice", serif;
  font-weight: 500;
  font-style: normal;
color: #bfa16a;}

/* Nav bar  */
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #2D3D58;
 font-family: "Alice", serif;
}

ul li {
  float: left;
}

ul li a {
  display: block;
  color: #bfa16a;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

ul li a:hover {
  background-color: #111111;
}



/* Links */
a {
    color: white;
    text-decoration: none;
}

/* Footer */
footer{
   position: static; /* or just remove position entirely */
  width: 100%;
  text-align: center;
  padding: 10px;
    background-color:#2D3D58;
    color: white;
   
    margin-top: 40px;
}

/* hero */
.hero {
    
    padding: 20px;
    text-align: center;
}

/* ===== Burger Menu ===== */

.nav {
  position: relative;
}

/* hide checkbox */
.nav-toggle {
  display: none;
}

/* burger button */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 14px 16px;
}

.burger span {
  width: 26px;
  height: 3px;
  background: #bfa16a;
  margin: 4px 0;
  border-radius: 2px;
}

/* mobile styles */
@media (max-width: 768px) {

  ul.nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background-color: #2D3D58;
  }

  ul.nav-links li {
    float: none;
    text-align: center;
  }

  .burger {
    display: flex;
  }

  /* show menu when toggled */
  .nav-toggle:checked + .burger + .nav-links {
    display: flex;
  }
}


/* Simple, reusable card system (no brand styling) */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb; /* light gray */
  border-radius: 10px;
  padding: 16px;
  text-align: center;;
}

.card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #bfa16a; /* near-black */
}

.card__text {
  margin: 0;
  color: #bfa16a; /* gray */
  line-height: 1.5;
}

.card__footer {
  margin-top: 12px;
}

.card__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

main.cards {
  padding-top: 40px;  /* pushes content down below nav */
  padding-bottom: 120px; /* prevents fixed footer overlap */
}

.card-grid {
  margin-top: 40px; /* extra drop for the cards specifically */
  padding: 0 20px 20px;
}



/* Tarot page layout polish (scoped so cards remain reusable elsewhere) */
body.tarot-page main {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Make cards readable on dark/image background */
body.tarot-page .card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(229, 231, 235, 0.9);
}

/* Slightly better spacing/typography for this page */
body.tarot-page .card__title {
  font-size: 1.1rem;
  line-height: 1.2;
}

body.tarot-page .card__text {
  font-size: 0.98rem;
}

main.cards > p {
  max-width: 760px;
  margin: 0 auto 48px;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Tarot page intro text (above cards) */
body.tarot-page main.cards > p {
  max-width: 760px;
  margin: 24px auto 40px;   /* space above + below */
  padding: 0 16px;          /* safe on mobile */
  line-height: 1.75;        /* easier reading */
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

body.tarot-page .tarot-intro p {
  margin: 0 0 16px;
}
body.tarot-page .tarot-intro p:last-child {
  margin-bottom: 0;
}
body.tarot-page .tarot-intro {
  max-width: 820px;
  margin: 24px auto 40px;
  padding: 18px 18px;
  background: rgba(45, 61, 88, 0.72);  /* same family as your background colour */
  border-radius: 12px;
}

/* Tarot page – make cards match intro panel */
body.tarot-page .card {
  background: rgba(45, 61, 88, 0.72);
  border-color: rgba(191, 161, 106, 0.35);
  color: #bfa16a;
}

.tarot-intro h1 {
  text-align: center;
  font-size: 30px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Reusable opaque panel (works on any page) */
.panel {
  background: rgba(45, 61, 88, 0.72);
  border-radius: 12px;
  padding: 10px;
   margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  margin-bottom: 20px;
}

body.indexPage .panel {
  max-width: 780px;
}
body.aboutPage .panel {
  max-width: 680px;
  
}

body.contactPage .panel {
  max-width: 600px;
}
body.eventsPage .panel {
  max-width: 600px;
}
body.eventsPage .panel h2 {
  font-size: 56px;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.social-icons a {
  color: #bfa16a;
  font-size: 20px;
}

.social-icons a:hover {
  opacity: 0.75;
}

/* ===== Expandable Events ===== */

.events-list {
  display: grid;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.event-card {
  background: rgba(45, 61, 88, 0.72);
  border-radius: 12px;
  overflow: hidden;
}

/* clickable header row */
.event-summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;              
  justify-content: space-between;   /* title left, meta right */
  gap: 16px;
}

/* remove default marker */
.event-card summary::-webkit-details-marker {
  display: none;
}

/* left side */
.event-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #bfa16a;
}

/* right side group (date + chevron NOW grouped) */
.event-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;     /* forces it to the far right */
  flex-shrink: 0;
}

.event-date {
  color: #bfa16a;
  white-space: nowrap;
  font-size: 1rem;
  opacity: 0.95;
}

.event-chevron {
  color: #bfa16a;
  font-size: 0.95rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

/* rotate chevron when open */
.event-card[open] .event-chevron {
  transform: rotate(180deg);
}

/* expanded content */
.event-details {
  padding: 0 20px 18px;
  color: #bfa16a;
}

.event-details p {
  margin: 10px 0;
  line-height: 1.7;
}

/* mobile tweaks */
@media (max-width: 600px) {
  .event-title { font-size: 1.1rem; }
  .event-date { font-size: 0.95rem; }
}

.card__img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: block;
}








/* ===== Tarot Fan Animation (clean version) ===== */

.tarot-fan {
  --card-w: 170px;
  --spread: 130px;
  --lift: 18px;

  position: relative;
  width: min(720px, 100%);
  height: 320px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  pointer-events: none; /* animation only */
}

/* Responsive sizing */
@media (max-width: 600px) {
  .tarot-fan {
    --card-w: 130px;
    --spread: 96px;
    height: 260px;
  }
}

.fan-card {
  width: var(--card-w);
  height: auto;
  border-radius: 12px;
  display: block;

  /* Start state */
  opacity: 0;
  transform: translateY(42px) scale(0.96);

  /* Keep layout stable + crisp */
  will-change: transform, opacity;
  backface-visibility: hidden;

  /* Stack nicely */
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 50% 85%;

  animation: deal 900ms ease forwards;
}

/* Each card has its own rotation + offset */
.f1 {
  --r: -10deg;
  --x: calc(var(--spread) * -1);
  z-index: 1;
  animation-delay: 120ms;
}

.f2 {
  --r: 0deg;
  --x: 0px;
  z-index: 2;
  animation-delay: 240ms;
}

.f3 {
  --r: 10deg;
  --x: var(--spread);
  z-index: 1;
  animation-delay: 360ms;
}

/* End state is clean + aligned */
@keyframes deal {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(var(--x)) translateY(calc(var(--lift) * -1))
               rotate(var(--r)) scale(1);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fan-card {
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%) translateX(var(--x)) translateY(calc(var(--lift) * -1))
               rotate(var(--r)) scale(1);
  }
}


/* Footer iframe embed styling */
.footer-form{
  max-width: 900px;
  margin: 14px auto;
  border-radius: 14px;
  overflow: hidden;            /* rounds the iframe corners */
  background: rgba(45, 61, 88, 0.72);
  border: 1px solid rgba(191, 161, 106, 0.35);
}

/* Make iframe behave */
.footer-form iframe{
  display: block;
  width: 100%;                 /* avoid 99% weirdness */
  height: 500px;               /* keep your chosen height */
  border: 0;
}

/* Mobile: give it more room */
@media (max-width: 600px){
  .footer-form iframe{ height: 620px; }
}

/* ===== Intro overlay ===== */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;                 /* above nav */
  display: grid;
  place-items: center;
  background: rgba(15, 20, 30, 0.35); /* optional: soft veil */
  backdrop-filter: blur(2px);         /* optional */
  transition: opacity 500ms ease, visibility 500ms ease;
}

/* Hide the “bottom” fan until intro ends */
.tarot-fan--bottom {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
}

/* When intro is done… */
body.intro-done .intro-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.intro-done .tarot-fan--bottom {
  opacity: 1;
  transform: translateY(0);
}
