/*
Theme Name: Wissthaven
Theme URI: https://wissthaven.com
Description: Child theme of Twenty Twenty-Four for Wissthaven Retreat — a one-of-a-kind vacation rental near The Villages, Florida.
Author: Wissthaven
Version: 0.2.0
Template: twentytwentyfour
Text Domain: wissthaven
*/

/* === Atmospheric layer === */

/* Page-wide film grain — SVG turbulence as fixed overlay.
   Reads as printed-paper texture; sits above content but pointer-events none. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.65 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: multiply;
}

/* Hero ambience — gold + cream starfield with slow twinkle, plus warm vignette glow */
.wh-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Starfield */
.wh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.3px 1.3px at 8% 22%, rgba(242,232,213,0.85), transparent 55%),
    radial-gradient(1px 1px at 22% 9%, rgba(212,160,23,0.65), transparent 55%),
    radial-gradient(1.5px 1.5px at 38% 18%, rgba(242,232,213,0.7), transparent 55%),
    radial-gradient(1px 1px at 53% 7%, rgba(212,160,23,0.55), transparent 55%),
    radial-gradient(1.2px 1.2px at 68% 25%, rgba(242,232,213,0.7), transparent 55%),
    radial-gradient(1px 1px at 81% 12%, rgba(212,160,23,0.55), transparent 55%),
    radial-gradient(1.5px 1.5px at 92% 30%, rgba(242,232,213,0.75), transparent 55%),
    radial-gradient(1px 1px at 14% 62%, rgba(212,160,23,0.5), transparent 55%),
    radial-gradient(1.2px 1.2px at 32% 78%, rgba(242,232,213,0.6), transparent 55%),
    radial-gradient(1px 1px at 48% 88%, rgba(212,160,23,0.55), transparent 55%),
    radial-gradient(1.5px 1.5px at 64% 70%, rgba(242,232,213,0.65), transparent 55%),
    radial-gradient(1px 1px at 79% 85%, rgba(212,160,23,0.5), transparent 55%),
    radial-gradient(1.3px 1.3px at 90% 60%, rgba(242,232,213,0.55), transparent 55%);
  animation: wh-twinkle 7s ease-in-out infinite alternate;
}

/* Warm vignette — single gentle gold glow centered behind the H1 area */
.wh-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 75% 55% at 50% 38%, rgba(212,160,23,0.10) 0%, rgba(212,160,23,0.04) 35%, transparent 70%);
}

/* Keep hero contents above the atmospheric layers */
.wh-hero > *,
.wh-hero .wp-block-cover__inner-container { position: relative; z-index: 1; }

@keyframes wh-twinkle {
  0%   { opacity: 0.55; }
  50%  { opacity: 1; }
  100% { opacity: 0.65; }
}

/* === Section divider ornaments === */
.wh-ornament {
  text-align: center;
  margin: 0 auto;
  padding: 1.5rem 0;
  color: var(--wp--preset--color--lighthouse-gold, #d4a017);
  line-height: 0;
}
.wh-ornament svg {
  width: 72px;
  height: auto;
  display: inline-block;
  opacity: 0.75;
}

/* Italiana has no bold weight — fatten the thin strokes just enough to read easily */
h1, h2, h3, h4, h5, h6 {
  -webkit-text-stroke: 0.5px currentColor;
}

/* === ZGW featured banner === */
.wh-zgw-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.4rem 2rem;
  background: linear-gradient(135deg, rgba(212,160,23,0.12) 0%, rgba(212,160,23,0.04) 100%);
  border-top: 1px solid var(--wp--preset--color--lighthouse-gold, #d4a017);
  border-bottom: 1px solid var(--wp--preset--color--lighthouse-gold, #d4a017);
  text-align: center;
}
.wh-zgw-text {
  font-family: "Italiana", "Cardo", serif;
  font-size: clamp(0.85rem, 1.8vw, 1.15rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wp--preset--color--lighthouse-gold, #d4a017);
}
.wh-zgw-text em {
  font-style: normal;
  color: var(--wp--preset--color--sand, #f2e8d5);
}
.wh-zgw-star {
  color: var(--wp--preset--color--lighthouse-gold, #d4a017);
  font-size: 0.65rem;
  opacity: 0.7;
}

/* === Subtle hover treatments === */
.wp-block-button__link {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wp-block-button__link:hover {
  box-shadow: 0 0 0 4px rgba(212,160,23,0.18);
  transform: translateY(-1px);
}

/* Rounded corners on all block images */
.wp-block-image img,
.wp-block-image figure img {
  border-radius: 8px !important;
}

.wp-block-image figure { transition: filter 0.4s ease; }
.wp-block-column:hover .wp-block-image figure {
  filter: brightness(1.06) saturate(1.08);
}

/* === Global polish === */
html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(212,160,23,0.45) #062e31;
  scrollbar-width: thin;
}
::selection { background: rgba(212,160,23,0.3); color: #083f43; }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #062e31; }
::-webkit-scrollbar-thumb { background: rgba(212,160,23,0.45); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #d4a017; }
*:focus-visible { outline: 2px solid #d4a017; outline-offset: 3px; border-radius: 2px; }

@keyframes wh-page-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
body { animation: wh-page-enter 0.6s ease-out both; }

/* === Body text links in sand sections === */
.has-sand-background-color a:not(.wp-block-button__link):not(.wh-nav-link) {
  text-decoration: underline;
  text-decoration-color: rgba(212,160,23,0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease, color 0.3s ease;
}
.has-sand-background-color a:not(.wp-block-button__link):not(.wh-nav-link):hover {
  text-decoration-color: #d4a017;
  color: #083f43;
}

/* Smooth, slightly-lifted nav link underline */
.wh-nav-link {
  position: relative;
  padding-bottom: 0.25rem;
  transition: color 0.3s ease;
}
.wh-nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s ease, left 0.35s ease;
}
.wh-nav-link:hover::after,
.wh-nav-link:focus::after {
  width: 100%;
  left: 0;
}
.wh-nav-link:hover { color: #f2e8d5; }

/* === Footer nav consistency === */
.wh-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  font-family: 'Cardo', serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.wh-footer-nav a {
  color: #d4a017;
  text-decoration: none;
}

/* === Contact form === */
.wh-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 480px;
  margin: 0 auto;
}
.wh-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.wh-form-field label {
  font-family: 'Cardo', serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #083f43;
  opacity: 0.7;
}
.wh-form-field input,
.wh-form-field textarea {
  font-family: 'Cardo', serif;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(8,63,67,0.2);
  border-radius: 3px;
  background: rgba(255,255,255,0.5);
  color: #083f43;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.wh-form-field input:focus,
.wh-form-field textarea:focus {
  outline: none;
  border-color: #d4a017;
  box-shadow: 0 0 0 3px rgba(212,160,23,0.12);
}
.wh-form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.wh-form-submit {
  font-family: 'Cardo', serif;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border: none;
  border-radius: 0;
  background: #d4a017;
  color: #083f43;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  align-self: center;
  margin-top: 0.5rem;
}
.wh-form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(212,160,23,0.18);
}
.wh-form-success {
  text-align: center;
  padding: 2rem;
  border: 1px solid rgba(212,160,23,0.4);
  border-radius: 3px;
  max-width: 480px;
  margin: 0 auto;
}
.wh-form-error {
  color: #8b3a3a;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
  border: 1px solid rgba(139,58,58,0.3);
  border-radius: 3px;
  background: rgba(139,58,58,0.05);
}
