/* COLORS & VARIABLES */

:root {
  --hw-brown: #6a3c09;
  --hw-brown-dark: #4b240c;
  --hw-cream: #efe3be;
  --hw-hover: #c78b3a;
  --hw-text: #8f4e06;
  --hw-gold: #ffe18e;
}

/* RESET */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Crimson Text", "Times New Roman", serif;
  color: var(--hw-text);
  background-color: var(--hw-cream);
  text-transform: uppercase;
}

/* === FONT UTILITIES === */

.all-caps-heading {
  font-family: "Cinzel Decorative", serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.script-font {
  font-family: "Parisienne", cursive;
  font-size: 2.2rem;
  font-weight: 600;
  text-transform: none;
}

.small-caps-subheading {
  font-family: "Cinzel Decorative", serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}

.text-center {
  text-align: center;
}

/* use this if not all caps is needed somewhere */
.mixed-case {
  text-transform: none;
}

/* LAYOUT HELPERS */

.section {
  padding: 3rem 1.5rem;
}

.section-tight {
  padding: 2.5rem 1.5rem;
}

.cream-bg {
  background-color: var(--hw-cream);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.container.narrow {
  max-width: 800px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.two-column-balanced {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.centered-copy {
  text-align: center;
  max-width: 680px;
  margin: 1rem auto 2rem;
}

.centered-copy.small {
  font-size: 0.9rem;
}

/* Sparkle Overlay */
.page-shimmer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* SINGLE SPARKLE */
.shimmer-sparkle {
  position: absolute;
  width: var(--s, 18px);
  height: var(--s, 18px);
  opacity: 0;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.35));
  animation: shimmer-pop var(--dur, 2.6s) ease-in-out forwards;
}

/* PULSE + FADE OUT */
@keyframes shimmer-pop {
  0% {
    transform: scale(0.65) rotate(0deg);
    opacity: 0;
    filter: drop-shadow(0 0 0 rgba(255,255,255,0));
  }
  18% {
    opacity: 0.9;
    transform: scale(1) rotate(10deg);
    filter: drop-shadow(0 0 14px rgba(255,255,255,0.45));
  }
  40% {
    opacity: 0.7;
    transform: scale(0.82) rotate(-8deg);
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.25));
  }
  62% {
    opacity: 1;
    transform: scale(1.06) rotate(12deg);
    filter: drop-shadow(0 0 18px rgba(255,255,255,0.55));
  }
  78% {
    opacity: 0.55;
    transform: scale(0.9) rotate(-6deg);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.28));
  }
  100% {
    opacity: 0;
    transform: scale(0.7) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(255,255,255,0));
  }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .shimmer-sparkle {
    animation: none;
    opacity: 0;
  }
}



/* HEADER & NAV */

.hw-header {
  background: linear-gradient(to bottom, var(--hw-brown-dark), var(--hw-brown));
  color: var(--hw-gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hw-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hw-logo img {
  height: 50px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

.hw-site-title {
  font-family: "Cinzel Decorative", serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  flex: 1;
}

.hw-menu-toggle {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hw-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--hw-gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* X animation */

.hw-menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.hw-menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hw-nav {
  background-color: var(--hw-brown-dark);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.hw-nav.open {
  max-height: 220px;
}

.hw-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.5rem 1rem;
}

.hw-nav li + li {
  margin-top: 0.5rem;
}

.hw-nav a {
  font-family: "Cinzel Decorative", serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  text-decoration: none;
  color: #ffe18e;
}

.hw-nav a:hover {
  color: var(--hw-hover);
}

/* PAGE HERO (non-home pages) */

.page-hero {
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
}

.page-hero-title {
  font-family: "Parisienne", cursive;
  font-size: 2.3rem;
  margin-bottom: 0.2rem;
}

.page-hero-subtitle {
  font-family: "Cinzel Decorative", serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
}

/* HOME HERO */

.hero {
  position: relative;
  height: 80vh;
  min-height: 420px;
  max-height: 860px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("images/hw-main-photo.png");
  background-size: cover;
  background-position: 50% 22%;
  filter: saturate(1.5);
  filter: opacity(.8);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--hw-text);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  padding: 0 1.5rem;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(255, 247, 220, 0.35),
    transparent 90%
  );
}

.hero-title {
  font-size: clamp(3rem, 10vw, 10rem);
}

.hero-subtitle {
  font-family: "Cinzel Decorative", serif;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: clamp(1.5rem, 5vw, 3rem);
  margin-top: -2rem;
}

/* INTRO */

.intro-section p {
  font-size: 1rem;
  line-height: 1.7;
}

.intro-image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(111, 59, 20, 0.35);
}

/* BUTTON */

.hw-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: 5px;
  background: var(--hw-brown);
  color: var(--hw-gold);
  font-family: "Cinzel Decorative", serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(111, 59, 20, 0.45);
}

.hw-button:hover {
  filter: brightness(1.05);
}

/* REALMS GRID */

.realms-section h2 {
  margin-bottom: 2.5rem;
}

.realms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.realm-card {
  text-align: center;
}

.realm-card a {
  color: inherit;
  text-decoration: none;
}

.realm-image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(111, 59, 20, 0.45);
}

.realm-name {
  margin-top: 1rem;
}

.realm-tagline {
  font-style: italic;
  margin-top: 0.3rem;
}

/* ONCE UPON */

.once-section .once-image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(111, 59, 20, 0.45);
}

.once-text p {
  font-size: 1rem;
  line-height: 1.8;
}

/* PRICING */

.pricing-block + .pricing-block {
  margin-top: 1.8rem;
}

.pricing-block h3 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.pricing-block p {
  text-align: center;
  margin: 0;
}

/* CONTRACT / SCROLL */

.contract-section {
  background-color: var(--hw-cream);
}


.scroll-wrapper {
  background-image: url("images/scroll.PNG");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  padding: 3.5rem 1rem;
}

.scroll-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  color: var(--hw-gold);
}

/* Contract dropdown container */
.contract-list {
  padding-left: 1.25rem;
}

/* Dropdown wrapper — transparent */
.contract-list details {
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
}

/* Summary header */
.contract-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

/* Remove default marker */
.contract-list summary::-webkit-details-marker {
  display: none;
}

/* Chevron icon */
.contract-list summary::after {
  content: "▾";
  position: absolute;
  right: 0;
  top: 0;
  transition: transform 0.3s ease;
}

/* Rotate arrow when open */
.contract-list details[open] summary::after {
  transform: rotate(180deg);
}

/* Smooth fade + slide animation */
.contract-list details > *:not(summary) {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Visible content */
.contract-list details[open] > *:not(summary) {
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* REALM PAGES */

.realm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}

.realm-main-image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 18px 38px rgba(111, 59, 20, 0.45);
}

.realm-scroll {
  position: relative;
  background: none; /* disable background-image scroll */
  padding: 0;
}

/* the real scroll image */
.realm-scroll .scroll-img {
  width: 100%;
  height: auto;
  display: block;
}

/* text inside scroll — INHERITS ALL ORIGINAL STYLES */
.realm-scroll-inner {
  position: absolute;

  /* safe text area */
  top: 14%;
  bottom: 16%;
  left: 10%;
  right: 10%;

  margin: 0;
  max-width: none;
  padding: 0.5rem;
  color: var(--hw-gold);
  overflow-y: auto;

  text-align: center;
}
.realm-scroll-inner h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.realm-scent-grid {
  margin-top: 3rem;
}

.scent-card h3 {
  margin-bottom: 0.5rem;
}

.scent-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* FOOTER */

.hw-footer {
  background: linear-gradient(to top, var(--hw-brown-dark), var(--hw-brown));
  color: hsl(35, 83%, 91%);
  padding: 0rem 1.5rem 0.5rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;   /* mobile stays stacked */
  align-items: center;
  gap: 1rem;
}

.footer-logo img {
  height: 90px;
  width: auto;
  display: block;
}

.footer-text p {
  margin: 0.15rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-text a {
  color: #ffe6b9;
  text-decoration: none;
}

.footer-text a:hover {
  text-decoration: underline;
}

/* Force all footer text to use the same size */
.footer-text,
.footer-text p,
.footer-text a {
  font-size: 0.78rem;
  line-height: 1.4;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .two-column,
  .two-column-balanced,
  .realm-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .hw-nav {
    max-height: none;
    background: transparent;
  }

  .hw-nav ul {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.2rem 1.5rem 0.6rem;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
  }

  .hw-nav li + li {
    margin-top: 0;
  }

  .hw-menu-toggle {
    display: none;
  }
  .hw-logo img {
    height: 80px;
    transform: translateY(25px);
  }
  .hw-site-title {
    font-size: 1.8rem;
    padding-right: 10%; ;
  }

  .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;   /* mobile stays stacked */
  align-items: center;
  gap: 1rem;
}
.footer-line {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: nowrap;
  }

  .footer-line span {
    white-space: nowrap;
  }
.footer-text {
    max-width: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;      
    white-space: nowrap;     
  }

  /* Turn each <p> into an inline item */
  .footer-text p {
    margin: 0;
    display: inline;         
    font-size: 0.75rem;      
    letter-spacing: 0.10em;  
  }


}