/* =========================
   LAYOUT RESETS
   ========================= */
body,

.page,

.site {
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  overflow-x: hidden;
}

/* Neutralize Astra’s container grip */

.page .ast-container,

.page .site-content,

.page .content-area {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100vw !important;
  width: 100% !important;
}

/* Stretch Cover block to full width and height */

.page .wp-block-cover {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh !important;
  background-size: cover !important;
  background-position: center center !important;
}

/* Ensure overlay background stretches inside */

.wp-block-cover__background {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Layer text above overlay */

.wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  max-width: 100% !important;
  padding: 0 2rem;
}

/* Fade-in animation */

.overlay-panel {
  background-color: rgba(0, 0, 0, 0.75); /* semi-transparent dark overlay */
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 0.5rem;
  color: white;
}

.oak-footer {
  background-color: rgba(0, 0, 0, 0.7);
  color: #dddddd;
  padding: 1rem 1rem;
  font-size: 0.85rem;
  text-align: center;
}

.oak-footer a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 0.5rem;
}

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

.oak-footer p {
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important; /* Adjust this as needed */
  line-height: 1.4; /* Optional: adjust for tighter or looser lines */
}

.oak-footer a {
  text-decoration: none;
  color: #dddddd; /* or whatever color you're using */
}

.oak-footer a:hover {
  text-decoration: underline; /* optional: remove this line if you don’t want any underline */
  color: #ffffff; /* brighten on hover, optional */
}

.wp-block-cover.custom-cover-height {
  min-height: 100vh !important;
  height: auto !important;
}

.oak-portrait {
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5) !important;
}

/* Ensure WPForms labels are visible */

.single-post .ast-container {
  max-width: 100vw !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.single-post .site-content {
  padding: 0 !important;
}

/* Remove padding and background from single post containers */

.single-post .site-content,

.single-post .ast-container {
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}

.single-post .site-main > article {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Reduce overall gap between stacked elements */
.wp-block-cover__inner-container {
  gap: 0.75rem !important;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Title: tighter margin */
.fade-in-top {
  margin-bottom: 0.25rem !important;
}

/* Subtitle: slightly smaller spacing below */
.fade-in-then-out {
  margin-top: 0.25rem !important;
  margin-bottom: 0.5rem !important;
}

/* Button stack: closer to subtitle */
.fade-in-links,
.quote-button-stack {
  margin-top: 1rem !important;
}

/* Reduce space between buttons */
.grove-buttons {
  gap: 0.75rem !important;
}

.side-nav-panel {
  background: rgba(0, 0, 0, 0.5); /* or use your bark image */
  padding: 2rem 1.5rem;
  border-radius: 0.5rem;
  max-width: 220px;
}

@media (min-width: 1024px) {
  .side-nav-panel {
    position: sticky;
    top: 2rem;
  }
}

/* =========================
   HOMEPAGE ANIMATIONS
   ========================= */
.delay-fade-in {
  opacity: 0;
  animation: fadeInSoft 2s ease-in-out 3s forwards;
}

@keyframes fadeInSoft {
  to {
    opacity: 1;
  }
}

.fade-in-slow {
  opacity: 0;
  animation: fadeCenterOut 5s ease-in-out forwards;
}

@keyframes fadeCenterOut {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

.fade-in-top {
  opacity: 0;
  animation: fadeTopIn 2s ease-in-out 8.5s forwards;
  font-size: 1.5rem;
  text-align: center;
  position: absolute;
  top: 0 rem;
  left: 50%;
  transform: none !important;
  z-index: 3;
  color: white;
}

@keyframes fadeTopIn {
  to {
    opacity: 1;
  }
}

/* Unified fade-in then fade-out for quote */

.fade-in-then-out {
  opacity: 0;
	color: white !important;
  animation: quoteAppearDisappear 6s ease-in-out 5s forwards;
}

@keyframes quoteAppearDisappear {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

#quote-text {
  color: white !important;
  font-size: 1.25rem;
  text-align: center;
}

/* Links fade in after quote disappears */

.fade-in-links {
  opacity: 0;
  animation: fadeInLinks 2.5s ease-in-out 10.5s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform: none !important; /* prevent drift */
  margin-top: 2rem;
}

@keyframes fadeInLinks {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in-definition {
  opacity: 0;
  animation: fadeInDef 3s ease-in-out 9.5s forwards;
  color: white;
  font-size: 1.1rem;
  text-align: center;
	margin-top: 3rem;
  margin-bottom: 1rem;
}

@keyframes fadeInDef {
  to {
    opacity: 1;
  }
}

/* Fade-in animation */

.delay-fade-in {
  opacity: 0;
  animation: fadeInSoft 2s ease-in-out 3s forwards;
}

@keyframes fadeInSoft {
  to {
    opacity: 1;
  }
}
/* Group layout */

.quote-button-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  width: 100%;
  margin-top: 2rem;
}

.quote-button-stack p,
.quote-button-stack .wp-block-buttons {
  position: static !important;
  transform: none !important;
  width: auto;
  margin: 0 auto;
}

.intro-top-gap {
  padding-top: 1rem !important;  /* Adjust this as needed */
}

@media (max-width: 768px) {
  .intro-top-gap {
    padding-top: 1.5rem !important;
  }
}

/* Tighten up spacing under the title */
.intro-title {
  margin-bottom: 0rem !important;
}

/* Reduce space between quote and button stack */
.quote-button-stack {
  margin-top: 0rem !important;
  gap: 0rem;
}

/* Optional: control internal spacing of the Buttons block */
.quote-button-stack .wp-block-buttons {
  margin-top: 0rem !important;
}

/* =========================
   BUTTON STYLES
   ========================= */
.grove-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
	justify-content: center;
  gap: 1.25rem;
	margin: 0 auto;
  text-align: center;
  margin-top: 1rem;
}

/* Force Grove Button Styles */

.grove-buttons .wp-block-button__link {
  background-color: transparent !important;
  border: 2px solid white !important;
  color: white !important;
  padding: 0.6rem 1.8rem !important;
  border-radius: 999px !important;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

/* Hover style */

.grove-buttons .wp-block-button__link:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  transform: scale(1.03);
  color: white !important;
}

.wpforms-form select:focus {
  outline: none !important;
  border-color: rgba(255,255,255,0.8) !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}

/* Submit button styling to match grove-buttons */

.wpforms-form button[type="submit"] {
  background-color: transparent !important;
  border: 2px solid white !important;
  color: white !important;
  padding: 0.6rem 1.8rem !important;
  border-radius: 999px !important;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.wpforms-form button[type="submit"]:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  transform: scale(1.03);
  color: white !important;
}

/* Force WPForms labels to white — strongest override */

.grove-buttons {
  overflow: visible !important;
}

.grove-buttons .wp-block-button__link {
  display: inline-block;
}

/* =========================
   FORM OVERRIDES
   ========================= */
.wpforms-form .wpforms-field-label,

.wpforms-form .wpforms-field-sublabel,

.wpforms-form .wpforms-field-description,

.wpforms-form label,

.wpforms-form legend {
  color: #ffffff !important;
  visibility: visible !important;
  display: block !important;
  opacity: 1 !important;
}

/* WPForms field styling */

.wpforms-form input[type="text"],

.wpforms-form input[type="email"],

.wpforms-form input[type="tel"],

.wpforms-form textarea,

.wpforms-form select {
  background-color: #111 !important;
  border: 2px solid white !important;
  color: white !important;
  border-radius: 999px !important;
  padding: 0.6rem 1.2rem !important;
  font-size: 1rem !important;
  width: 100% !important;
  box-sizing: border-box;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

/* Textarea slightly less rounded */

.wpforms-form textarea {
  border-radius: 1rem !important;
  min-height: 140px !important;
}

/* Placeholder text styling */

.wpforms-form input::placeholder,

.wpforms-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Focus state styling */

.wpforms-form input:focus,

.wpforms-form textarea:focus,

.wpforms-form .wpforms-field-label,

.wpforms-form .wpforms-field-label.wpforms-required-label,

.wpforms-form label,

.wpforms-form .wpforms-field-label-inline,

.wpforms-form .wpforms-field label {
  color: white !important;
  visibility: visible !important;
  display: inline-block !important;
  opacity: 1 !important;
}

/* Checkbox text specifically */

.wpforms-form .wpforms-field input[type="checkbox"] + label,

.wpforms-form .wpforms-field input[type="radio"] + label {
  color: white !important;
}

/* Placeholder text */

.wpforms-form input::placeholder,

.wpforms-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Hide post metadata on blog index and archive pages */

/* =========================
   BLOG CLEANUP
   ========================= */
.blog .entry-meta,

.archive .entry-meta,

.blog .post-meta,

.archive .post-meta,

.blog .posted-on,

.archive .posted-on,

.blog .byline,

.archive .byline,

.blog .cat-links,

.archive .cat-links,

.blog .tags-links,

.archive .tags-links {
  display: none !important;
}

/* Style post titles */

.blog .entry-title {
  font-size: 1.6rem;
  color: white;
  margin-bottom: 0.5rem;
}

/* Style post excerpts */

.blog .entry-summary {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.6;
}

/* Add spacing between posts */

.blog .entry {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.single-post .entry-title {
  display: none;
}

.single-post .content-area,

.single-post .content-area {
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 100vw !important;
  background: transparent !important;
}

.wp-block-latest-posts {
  color: white;
  font-family: inherit;
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: center;
  margin: 2rem auto;
  max-width: 800px;
}

.wp-block-latest-posts a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.wp-block-latest-posts a:hover {
  color: #9ac7ff;
}

/* === Override Astra Blog Archive === */
body.blog .ast-article-post,
body.archive .ast-article-post {
  background: transparent !important;
  color: white !important;
  text-align: center;
  font-size: 1.25rem;
  padding: 2rem 1rem;
  max-width: 750px;
  margin: 0 auto;
  border: none;
  box-shadow: none;
}

body.blog .entry-title a,
body.archive .entry-title a {
  color: white !important;
  text-decoration: none;
  font-weight: normal;
}

body.blog .entry-title a:hover,
body.archive .entry-title a:hover {
  color: #9ac7ff !important;
}

/* Optional: shrink spacing between posts */
body.blog .ast-article-post,
body.archive .ast-article-post {
  margin-bottom: 1.5rem;
}

/* Apply bark background to blog archive */
body.blog,
body.archive {
  background: url('https://tranquiloak.com/wp-content/uploads/2025/04/wyxina-tresse-QiwzXOpvu_w-unsplash.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
}

/* Make post titles quieter, more poetic */
body.blog .entry-title a,
body.archive .entry-title a {
  color: white !important;
  font-weight: 400;
  font-family: 'Georgia', serif; /* or a more scriptive font if you use Google Fonts */
  font-size: 1.5rem;
  text-align: center;
  display: block;
  margin-bottom: 2rem;
  text-decoration: none;
  transition: opacity 0.4s ease-in-out;
}

body.blog .entry-title a:hover,
body.archive .entry-title a:hover {
  opacity: 0.6;
}

/* Reduce spacing between posts */
.ast-article-post {
  margin-bottom: 2rem !important;
  padding: 1rem 0;
}

/* Optional: center posts and control width */
.ast-article-post {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}


/* =========================
   MOBILE TWEAKS
   ========================= */


/* =========================
   UNCATEGORIZED
   ========================= */



/* =========================
   HOMEPAGE STRUCTURE FIXES
   ========================= */

/* Container to control vertical stacking */
.wp-block-cover__inner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Force title above subtitle visually */
.fade-in-top {
  order: -1;
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  margin: 0;
  animation: fadeTopIn 2s ease-in-out 8.5s forwards;
  opacity: 0;
  position: static !important; /* Remove absolute positioning */
  transform: none !important;
}

.fade-in-then-out {
  order: 0;
  font-size: 1.25rem;
  color: white;
  opacity: 0;
  animation: quoteAppearDisappear 6s ease-in-out 5s forwards;
  margin: 0;
}

/* Buttons stay last */
.fade-in-links {
  order: 1;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeInLinks 4s ease-in-out 10.5s forwards;
}


/* =========================
   GHOST BUTTON GAG
   ========================= */
.wp-block-button .ghost-button {
  all: unset;
  display: inline-block;
  background: transparent !important;
  border: 2px solid white !important;
  color: white !important;
  border-radius: 999px !important;
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
  cursor: pointer;

  writing-mode: horizontal-tb;
  white-space: nowrap;
  text-align: center;
  max-width: 100%;
  min-width: 180px;
  box-sizing: border-box;
}

.ghost-button.fading-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
}

/* Remove visual noise from parent wrapper */
.wp-block-button:has(.ghost-button) {
  border: none !important;
  padding: 0 !important;
  background: none !important;
}


/* =========================
   BLOG OVERLAYS AND ENHANCEMENTS
   ========================= */

/* Soft dark overlay over bark background */
body.blog::before,
body.archive::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4); /* Adjust darkness here */
  z-index: -1;
  pointer-events: none;
}

/* Background behind post titles for readability */
body.blog .entry-title,
body.archive .entry-title {
  background: rgba(0, 0, 0, 0.5);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}


/* =========================
   BLOG OVERLAYS AND ENHANCEMENTS (ANIMATED)
   ========================= */

/* Soft dark overlay with fade-in */
body.blog::before,
body.archive::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4); /* Adjust darkness here */
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  animation: overlayFadeIn 2s ease forwards;
}

@keyframes overlayFadeIn {
  to { opacity: 1; }
}

/* Background behind post titles with fade-in */
body.blog .entry-title,
body.archive .entry-title {
  background: rgba(0, 0, 0, 0.5);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: titleFadeIn 1.5s ease 0.5s forwards;
}

@keyframes titleFadeIn {
  to { opacity: 1; }
}
