/* ==========================================================================
   TreeHouse Counseling - Custom Stylesheet
   Kidscool-inspired styling with floating decorations, Swiper carousel,
   visual footer with waves/clouds
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #ed145b;
  --primary-rgb: 237, 20, 91;
  --secondary: #0a6375;
  --secondary-rgb: 10, 99, 117;
  --tertiary: #f7941e;
  --tertiary-rgb: 247, 148, 30;

  --body-bg: #ffffff;
  --body-text: #555568;
  --heading-color: #2d2d3c;
  --link-color: #0a6375;
  --link-hover: #ed145b;
  --border-color: #e0e0e0;
  --accent-text: #ffffff;
  --light-bg: #f9f7f4;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

  --font-body: 'Nunito', sans-serif;
  --font-heading: 'Bubblegum Sans', cursive;
  --font-accent: 'Outfit', sans-serif;

  --header-height: 80px;
  --max-width: 1140px;
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: url('/images/decorative/wood-floor.svg') repeat top center;
  background-size: 400px 120px;
}

body {
  position: relative;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--body-text);
  background-color: var(--body-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--link-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1em;
}

ul, ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

strong {
  font-weight: 700;
}

.content-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--body-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: 20px;
}

.site-logo {
  flex-shrink: 0;
  background: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 8px;
}

.site-logo img {
  height: 60px;
  width: auto;
}

/* Navigation */
.main-nav {
  flex: 1;
}

.main-nav .nav-menu {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.main-nav .nav-menu > li {
  position: relative;
}

.main-nav .nav-menu > li > a {
  display: block;
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--heading-color);
  background: rgba(255,255,255,0.85);
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

/* Pencil hover icon on main nav items */
.main-nav .nav-menu > li > a::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 50%;
  width: 22px;
  height: 22px;
  background-image: url('/images/decorative/menu_butterfly.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform: translateY(8px);
  opacity: 0;
  transition: var(--transition);
  margin-top: -11px;
}

.main-nav .nav-menu > li > a:hover::before,
.main-nav .nav-menu > li.active > a::before {
  opacity: 1;
  transform: translateY(0);
}

.main-nav .nav-menu > li > a:hover,
.main-nav .nav-menu > li.active > a {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.07);
}

/* Dropdown */
.main-nav .sub-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: rgba(255,255,255,0.85);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 999;
}

.main-nav .has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .sub-menu li a {
  display: block;
  padding: 10px 20px 10px 36px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--body-text);
  position: relative;
}

.main-nav .sub-menu li a::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  margin-top: -9px;
  width: 18px;
  height: 18px;
  background-image: url('/images/decorative/submenu_butterfly.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: var(--transition);
}

.main-nav .sub-menu li a:hover::before {
  opacity: 1;
}

.main-nav .sub-menu li a:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
}

/* Header Appointment Button */
.header-appointment {
  flex-shrink: 0;
}

.header-appointment .wdt-button-holder {
  padding: 0;
  text-align: center;
}

.header-appointment .wdt-button {
  padding: 10px 22px;
  font-size: 0.9rem;
  white-space: nowrap;
  outline: 2px solid #fff;
  outline-offset: 0px;
}

.mobile-appointment {
  display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 30px;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--heading-color);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) { top: 4px; }
.mobile-menu-toggle span:nth-child(2) { top: 13px; }
.mobile-menu-toggle span:nth-child(3) { top: 22px; }

.mobile-menu-toggle.is-active span:nth-child(1) {
  top: 13px;
  transform: rotate(45deg);
}
.mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.is-active span:nth-child(3) {
  top: 13px;
  transform: rotate(-45deg);
}

/* ---------- Appointment Button (SimplePractice) ---------- */
.wdt-button-holder {
  text-align: center;
  padding: 10px 0;
}

.wdt-button {
  display: inline-block;
  padding: 14px 36px;
  background: var(--tertiary);
  color: var(--accent-text) !important;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(var(--tertiary-rgb), 0.4);
  text-decoration: none;
}

.wdt-button:hover {
  background: var(--primary);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
  transform: translateY(-2px);
  color: var(--accent-text) !important;
}

.wdt-button-text span {
  font-weight: 600;
}

.wdt-button-sm {
  padding: 10px 22px;
  font-size: 0.95rem;
}

/* ---------- Swiper Carousel ---------- */
.home-carousel {
  position: relative;
  overflow: visible;
  max-width: 900px;
  margin: 30px auto;
  padding: 0 60px;
}

.home-swiper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.home-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.home-carousel .swiper-button-prev,
.home-carousel .swiper-button-next {
  color: var(--accent-text);
  background: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(237, 20, 91, 0.3);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.home-carousel .swiper-button-prev {
  left: 6px;
}

.home-carousel .swiper-button-next {
  right: 6px;
}

.home-carousel .swiper-button-prev:hover,
.home-carousel .swiper-button-next:hover {
  background: var(--secondary);
  box-shadow: 0 3px 10px rgba(10, 99, 117, 0.3);
}

.home-carousel .swiper-button-prev::after,
.home-carousel .swiper-button-next::after {
  font-size: 1rem;
  font-weight: 700;
}

.home-swiper .swiper-pagination-bullet {
  background: var(--secondary);
  opacity: 0.4;
  width: 10px;
  height: 10px;
}

.home-swiper .swiper-pagination-bullet-active {
  background: var(--primary);
  opacity: 1;
}

/* ---------- Homepage Sections ---------- */
.home-about {
  padding: 40px 0;
  background: var(--light-bg);
  text-align: center;
}

.home-about .content-inner {
  max-width: 800px;
  font-size: 1.05rem;
  line-height: 1.9;
}

.home-signature {
  padding: 10px 0 30px;
  background: var(--light-bg);
  text-align: center;
}

.signature-img {
  max-width: 280px;
  margin: 0 auto;
}

.home-description {
  padding: 50px 0;
  background: var(--secondary);
  color: var(--accent-text);
  text-align: center;
}

.home-description .content-inner {
  max-width: 800px;
}

.home-description p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

/* ---------- Services Carousel ---------- */
.home-services {
  padding: 60px 0 40px;
  background: var(--body-bg);
  position: relative;
}

.services-subtitle {
  text-align: center;
  max-width: 800px;
  margin: -20px auto 40px;
  font-size: 0.95rem;
  color: var(--body-text);
  line-height: 1.7;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--tertiary);
  border-radius: 2px;
  margin: 12px auto 0;
}

.services-carousel-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 70px 20px;
}

.services-swiper {
  padding-bottom: 50px;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

/* Carousel card */
.service-carousel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 10px 15px 20px;
  transition: transform 0.3s ease;
}

.service-carousel-card:hover {
  transform: translateY(-6px);
  color: inherit;
}

/* Icons above photo frames */
.service-card-icon {
  width: 75px;
  height: 75px;
  margin-bottom: -15px;
  position: relative;
  z-index: 0;
}

.service-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Photo frame base */
.service-card-frame {
  position: relative;
  width: 300px;
  height: 300px;
  margin-bottom: 20px;
  overflow: hidden;
}

.service-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Rounded rectangle frame - teal */
.service-frame-rect {
  border-radius: 12px;
  border: 8px solid #71d1cc;
  box-shadow: 0 8px 20px rgba(113, 209, 204, 0.25);
}

/* Circle frame - gold */
.service-frame-circle {
  border-radius: 50%;
  border: 8px solid #fccb13;
  box-shadow: 0 8px 20px rgba(252, 203, 19, 0.25);
}

/* Hexagon frame - purple */
.service-frame-hexagon {
  border: none;
  background: #ad5ff3;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  padding: 8px;
  overflow: visible;
}

.service-frame-hexagon img {
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

/* Diamond frame - coral */
.service-frame-diamond {
  border: none;
  background: #e8836b;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  padding: 8px;
  overflow: visible;
}

.service-frame-diamond img {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.service-carousel-card:has(.service-frame-diamond) .service-card-icon img {
  transform: scale(1.5);
}

.service-carousel-card:has(.service-frame-house) .service-card-icon {
  margin-bottom: -28px;
}

/* House/pentagon frame - green */
.service-frame-house {
  border: none;
  background: #6dbe6d;
  clip-path: polygon(50% 0%, 100% 35%, 100% 100%, 0% 100%, 0% 35%);
  padding: 8px;
  overflow: visible;
}

.house-img-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(50% 0%, 100% 35%, 100% 100%, 0% 100%, 0% 35%);
  background: white;
}

.service-frame-house img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.25);
}

/* Inverted triangle frame - blue */
.service-frame-triangle {
  border: none;
  background: #5b9bd5;
  clip-path: polygon(3% 0%, 97% 0%, 65% 97%, 35% 97%);
  padding: 8px;
  overflow: visible;
}

.service-frame-triangle img {
  clip-path: polygon(3% 0%, 97% 0%, 65% 97%, 35% 97%);
}

/* Card text */
.service-carousel-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading-text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-carousel-card p {
  font-size: 0.9rem;
  color: var(--body-text);
  line-height: 1.6;
  max-width: 280px;
}

/* Pagination dots */
.services-pagination .swiper-pagination-bullet {
  background: var(--secondary);
  opacity: 0.3;
  width: 10px;
  height: 10px;
}

.services-pagination .swiper-pagination-bullet-active {
  background: var(--primary);
  opacity: 1;
}

/* Decorative elements around the carousel */
.services-decor {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}

.services-decor img {
  display: block;
}

.services-decor-butterfly {
  top: 30px;
  left: 50px;
  width: 130px;
}

.services-decor-butterfly img {
  width: 100%;
  height: auto;
}

.services-decor-rainbow {
  top: -50px;
  right: -10px;
  width: 260px;
}

.services-decor-rainbow img {
  width: 100%;
  height: auto;
}

/* Spider navigation buttons */
.services-carousel-wrap .swiper-button-prev,
.services-carousel-wrap .swiper-button-next {
  width: 60px;
  height: 60px;
  top: 38%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3;
  animation: rockshake 3s ease-in-out infinite alternate both;
}

@keyframes rockshake {
  0%   { transform: translateY(-50%) translate(1px, 1px) rotate(0deg); }
  10%  { transform: translateY(-50%) translate(-1px, -2px) rotate(-1deg); }
  20%  { transform: translateY(-50%) translate(-3px, 0px) rotate(1deg); }
  30%  { transform: translateY(-50%) translate(3px, 2px) rotate(0deg); }
  40%  { transform: translateY(-50%) translate(1px, -1px) rotate(1deg); }
  50%  { transform: translateY(-50%) translate(-1px, 2px) rotate(-1deg); }
  60%  { transform: translateY(-50%) translate(-3px, 1px) rotate(0deg); }
  70%  { transform: translateY(-50%) translate(3px, 1px) rotate(-1deg); }
  80%  { transform: translateY(-50%) translate(-1px, -1px) rotate(1deg); }
  90%  { transform: translateY(-50%) translate(1px, 2px) rotate(0deg); }
  100% { transform: translateY(-50%) translate(1px, -2px) rotate(-1deg); }
}

.services-carousel-wrap .swiper-button-prev:hover,
.services-carousel-wrap .swiper-button-next:hover {
  animation-play-state: paused;
}

.services-carousel-wrap .swiper-button-prev::after,
.services-carousel-wrap .swiper-button-next::after {
  display: none;
}

.services-carousel-wrap .swiper-button-prev img,
.services-carousel-wrap .swiper-button-next img {
  width: 100%;
  height: auto;
  display: block;
}

/* Meandering pink dotted trail for left spider */
.services-carousel-wrap .swiper-button-prev::before {
  content: "";
  position: absolute;
  top: 20%;
  right: -75px;
  width: 100px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='30' fill='none'%3E%3Cpath d='M0 15 Q12 5, 25 12 T50 8 T75 18 T100 10' stroke='%23f4a0b5' stroke-width='2.5' stroke-dasharray='4 5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center;
  pointer-events: none;
}

/* Meandering pink dotted trail for right spider */
.services-carousel-wrap .swiper-button-next::before {
  content: "";
  position: absolute;
  top: 20%;
  left: -95px;
  width: 120px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30' fill='none'%3E%3Cpath d='M0 12 Q15 22, 30 14 T60 20 T90 10 T120 16' stroke='%23f4a0b5' stroke-width='2.5' stroke-dasharray='4 5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center;
  pointer-events: none;
}

.services-carousel-wrap .swiper-button-prev {
  left: -15px;
}

.services-carousel-wrap .swiper-button-prev img {
  transform: scaleX(-1) rotate(90deg);
}

.services-carousel-wrap .swiper-button-next img {
  transform: rotate(90deg);
}

.services-carousel-wrap .swiper-button-next {
  right: 5px;
}

.services-carousel-wrap .swiper-button-prev,
.services-carousel-wrap .swiper-button-next,
.services-carousel-wrap .swiper-button-prev.swiper-button-lock,
.services-carousel-wrap .swiper-button-next.swiper-button-lock,
.services-carousel-wrap .swiper-button-prev.swiper-button-disabled,
.services-carousel-wrap .swiper-button-next.swiper-button-disabled {
  display: flex !important;
  opacity: 1 !important;
}

/* ---------- Renee Page ---------- */
.counselor-profile {
  position: relative;
}

.renee-butterflies {
  position: absolute;
  top: 0;
  right: -20px;
  bottom: 0;
  width: 55%;
  pointer-events: none;
  overflow: visible;
}

.renee-butterfly {
  position: absolute;
  width: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  animation: butterflyFloat 4s ease-in-out infinite alternate;
}

@keyframes butterflyFloat {
  0% { margin-top: 0; }
  100% { margin-top: -3px; }
}

/* ---------- Page Content ---------- */
.page-content {
  padding: 50px 0;
}

.page-title {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--tertiary);
  border-radius: 2px;
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.entry-content h2 {
  color: var(--secondary);
  margin-top: 1.5em;
}

.entry-content h3 {
  color: var(--heading-color);
  margin-top: 1.2em;
}

.entry-content img {
  border-radius: var(--radius);
  margin: 1em 0;
}

.entry-content a {
  color: var(--primary);
  font-weight: 600;
}

.entry-content a:hover {
  text-decoration: underline;
}

.featured-image {
  margin-bottom: 30px;
}

.featured-image img {
  width: 75%;
  height: auto;
  border-radius: var(--radius);
}

/* Lists in content */
.page-content .entry-content ul,
.page-content .entry-content ol {
  margin-bottom: 1.2em;
}

.page-content .entry-content li {
  margin-bottom: 0.4em;
}

/* ---------- Default List Page ---------- */
.page-list {
  margin-top: 30px;
}

.page-list .list-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-list .list-item:last-child {
  border-bottom: none;
}

.page-list .list-item h2 {
  font-size: 1.4rem;
  margin-bottom: 0.3em;
}

.page-list .list-item h2 a {
  color: var(--secondary);
}

.page-list .list-item h2 a:hover {
  color: var(--primary);
}

/* ---------- Blog ---------- */
.blog-list {
  margin-top: 30px;
}

.blog-card {
  display: flex;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border-color);
}

.blog-card:last-child {
  border-bottom: none;
}

.blog-card-image {
  flex: 0 0 280px;
}

.blog-card-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.blog-card-content h2 {
  font-size: 1.4rem;
  margin-bottom: 0.3em;
}

.blog-card-content h2 a {
  color: var(--secondary);
}

.blog-card-content h2 a:hover {
  color: var(--primary);
}

.blog-meta {
  font-size: 0.88rem;
  color: #999;
  margin-bottom: 10px;
  font-family: var(--font-accent);
}

.blog-meta time {
  margin-right: 12px;
}

.blog-categories a,
.blog-tags a {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  margin: 2px 3px;
}

.blog-categories a:hover,
.blog-tags a:hover {
  background: var(--primary);
  color: var(--accent-text);
}

.read-more {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-accent);
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.read-more:hover {
  color: var(--secondary);
}

/* Blog Filters */
.blog-filters {
  display: flex;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.blog-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog-filter label {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-filter select {
  padding: 8px 32px 8px 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--body-text);
  background: var(--body-bg);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 200px;
}

.blog-filter select:focus {
  border-color: var(--primary);
  outline: none;
}

/* Blog Date Badge */
.blog-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  width: 60px;
  min-width: 60px;
  height: 68px;
  margin-right: 15px;
  float: left;
  text-align: center;
  line-height: 1;
}

.blog-card-date .date-day {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-accent);
}

.blog-card-date .date-month {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--font-accent);
  letter-spacing: 1px;
}

.blog-card-date .date-year {
  font-size: 0.65rem;
  font-family: var(--font-accent);
  opacity: 0.85;
}

/* Blog Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.page-numbers {
  display: flex;
  gap: 4px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 4px 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

a.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
}

.page-link.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-prev,
.page-next {
  font-size: 0.85rem;
}

/* Taxonomy page */
.taxonomy-back {
  margin-bottom: 10px;
}

.taxonomy-back a {
  font-family: var(--font-accent);
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.taxonomy-back a:hover {
  color: var(--secondary);
}

/* Blog Single */
.blog-post {
  padding: 50px 0;
}

.post-title {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

.blog-post .blog-meta {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.blog-post .entry-content {
  margin-bottom: 40px;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  gap: 20px;
}

.post-nav a {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary);
  padding: 10px 0;
}

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

.prev-post::before {
  content: '\2190 ';
}

.next-post::after {
  content: ' \2192';
}

/* ---------- FAQ Page ---------- */
.entry-content h3 + p,
.entry-content h4 + p {
  margin-bottom: 1.5em;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: var(--body-bg);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.gallery-item a {
  display: block;
  line-height: 0;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 0;
}

.gallery-caption {
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--body-text);
  text-align: center;
  font-family: var(--font-accent);
  margin: 0;
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact Page ---------- */
.entry-content iframe {
  border-radius: var(--radius);
  margin: 1em 0;
  max-width: 100%;
}

/* ==========================================================================
   Treehouse Theme — Canopy Header, Trunk Borders, Platform Footer
   ========================================================================== */

/* ---------- Canopy Header ---------- */
.canopy-header {
  position: relative;
  z-index: 10;
  background: url('/images/decorative/canopy.png') no-repeat top center;
  background-size: 2560px 250px;
  height: 250px;
  box-shadow: none;
}

.canopy-header .header-inner {
  height: 80px;
  align-items: center;
}

.header-cardinal {
  position: absolute;
  right: calc(50% - 510px);
  top: 65px;
  height: 120px;
  width: auto;
  transform: scaleX(-1);
  cursor: pointer;
  z-index: 5;
}

.header-cardinal.fly-away {
  animation: flyAway 1.5s ease-in forwards;
}

@keyframes flyAway {
  0% { transform: scaleX(-1); opacity: 1; }
  25% { transform: scaleX(-1) translate(300px, -20px) rotate(-5deg); opacity: 1; }
  50% { transform: scaleX(-1) translate(700px, -60px) rotate(-10deg); opacity: 1; }
  75% { transform: scaleX(-1) translate(1200px, -120px) rotate(-15deg); opacity: 0.6; }
  100% { transform: scaleX(-1) translate(1800px, -200px) rotate(-20deg); opacity: 0; }
}

.header-cardinal-left {
  position: absolute;
  left: calc(50% - 510px);
  top: 65px;
  height: 120px;
  width: auto;
  cursor: pointer;
  z-index: 5;
}

.header-cardinal-left.fly-away {
  animation: flyAwayRight 1.5s ease-in forwards;
}

@keyframes flyAwayRight {
  0% { opacity: 1; }
  25% { transform: translate(300px, -20px) rotate(5deg); opacity: 1; }
  50% { transform: translate(700px, -60px) rotate(10deg); opacity: 1; }
  75% { transform: translate(1200px, -120px) rotate(15deg); opacity: 0.6; }
  100% { transform: translate(1800px, -200px) rotate(20deg); opacity: 0; }
}


/* ---------- Dynamic Butterflies ---------- */
[class^="canopy-butterfly-"],
[class^="platform-butterfly-"],
[class^="trunk-butterfly-"] {
  animation: butterflyFloat 4s ease-in-out infinite alternate;
}

.canopy-butterfly-1,
.canopy-butterfly-1c {
  position: absolute;
  left: calc(50% - 275px);
  top: 25px;
  height: 50px;
  width: auto;
  pointer-events: none;
  z-index: 5;
  transform: rotate(-8deg);
  filter: hue-rotate(0deg);
}
.canopy-butterfly-1c { filter: hue-rotate(120deg); }

.canopy-butterfly-2,
.canopy-butterfly-2c {
  position: absolute;
  right: calc(50% - 350px);
  top: 95px;
  height: 45px;
  width: auto;
  pointer-events: none;
  z-index: 5;
  transform: rotate(10deg) scaleX(-1);
  filter: hue-rotate(200deg);
}
.canopy-butterfly-2c { filter: hue-rotate(60deg); }

.canopy-butterfly-3,
.canopy-butterfly-3c {
  position: absolute;
  left: calc(50% + 100px);
  top: 105px;
  height: 40px;
  width: auto;
  pointer-events: none;
  z-index: 5;
  transform: rotate(5deg);
  filter: hue-rotate(270deg);
}
.canopy-butterfly-3c { filter: hue-rotate(330deg); }

/* Far left canopy — above left trunk */
.canopy-butterfly-4,
.canopy-butterfly-4c {
  position: absolute;
  left: calc(50% - 680px);
  top: 60px;
  height: 45px;
  width: auto;
  pointer-events: none;
  z-index: 5;
  transform: rotate(7deg);
  filter: hue-rotate(40deg);
}
.canopy-butterfly-4c { filter: hue-rotate(190deg); }

.canopy-butterfly-5,
.canopy-butterfly-5c {
  position: absolute;
  left: calc(50% - 655px);
  top: 90px;
  height: 38px;
  width: auto;
  pointer-events: none;
  z-index: 5;
  transform: rotate(-10deg) scaleX(-1);
  filter: hue-rotate(280deg);
}
.canopy-butterfly-5c { filter: hue-rotate(100deg); }

/* Far right canopy — above right trunk */
.canopy-butterfly-6,
.canopy-butterfly-6c {
  position: absolute;
  right: calc(50% - 650px);
  top: 70px;
  height: 42px;
  width: auto;
  pointer-events: none;
  z-index: 5;
  transform: rotate(-6deg);
  filter: hue-rotate(310deg);
}
.canopy-butterfly-6c { filter: hue-rotate(140deg); }

.canopy-butterfly-7,
.canopy-butterfly-7c {
  position: absolute;
  right: calc(50% - 560px);
  top: 110px;
  height: 48px;
  width: auto;
  pointer-events: none;
  z-index: 5;
  transform: rotate(12deg) scaleX(-1);
  filter: hue-rotate(220deg);
}
.canopy-butterfly-7c { filter: hue-rotate(50deg); }

.platform-butterfly-1,
.platform-butterfly-1c {
  position: absolute;
  top: -25px;
  right: calc(50% - 350px);
  height: 50px;
  width: auto;
  pointer-events: none;
  z-index: 3;
  transform: rotate(-6deg) scaleX(-1);
  filter: hue-rotate(90deg);
}
.platform-butterfly-1c { filter: hue-rotate(180deg); }

.trunk-butterfly-left {
  position: absolute;
  right: 180px;
  top: 25%;
  height: 55px;
  width: auto;
  pointer-events: none;
  z-index: 51;
  transform: rotate(12deg);
  filter: hue-rotate(150deg);
}

.trunk-butterfly-right {
  position: absolute;
  left: 200px;
  top: 20%;
  height: 50px;
  width: auto;
  pointer-events: none;
  z-index: 51;
  transform: rotate(-8deg) scaleX(-1);
  filter: hue-rotate(45deg);
}

/* ---------- Trunk Borders ---------- */
.trunk-left,
.trunk-right {
  position: fixed;
  top: 0;
  bottom: 0;
  width: calc((100vw - var(--max-width)) / 2);
  z-index: 50;
  pointer-events: none;
  filter: brightness(0.9) saturate(1.3) sepia(0.15);
}

.trunk-left {
  left: 0;
  background: url('/images/decorative/trunk.png') no-repeat top right;
  background-size: 920px 4636px;
}

.trunk-right {
  right: 0;
  overflow: hidden;
}

.trunk-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/decorative/trunk.png') no-repeat top right;
  background-size: 920px 4636px;
  transform: scaleX(-1);
}

.trunk-woodpecker {
  position: absolute;
  right: 130px;
  top: 35%;
  height: 112px;
  width: auto;
  pointer-events: auto;
  z-index: 51;
  transform-origin: left center;
  animation: woodpeck 2.5s ease-in-out infinite;
}

.trunk-woodpecker-right {
  position: absolute;
  left: 230px;
  top: calc(35% - 75px);
  height: 112px;
  width: auto;
  pointer-events: auto;
  z-index: 51;
  transform: scaleX(-1);
  transform-origin: left center;
  animation: woodpeck-right 2.5s ease-in-out infinite;
}

.trunk-woodpecker-right.pecking-paused {
  animation-play-state: paused;
}

@keyframes woodpeck-right {
  0%, 100% { transform: scaleX(-1) rotate(0deg); }
  10% { transform: scaleX(-1) rotate(-12deg); }
  15% { transform: scaleX(-1) rotate(0deg); }
  25% { transform: scaleX(-1) rotate(-12deg); }
  30% { transform: scaleX(-1) rotate(0deg); }
  40% { transform: scaleX(-1) rotate(-12deg); }
  45% { transform: scaleX(-1) rotate(0deg); }
}

.trunk-woodpecker.pecking-paused {
  animation-play-state: paused;
}

.trunk-running-squirrel-left {
  position: absolute;
  right: 200px;
  top: calc(35% + 300px);
  height: 150px;
  width: auto;
  pointer-events: auto;
  cursor: pointer;
  z-index: 51;
  filter: brightness(1.3) saturate(1.2);
}

.trunk-running-squirrel-right {
  position: absolute;
  left: 230px;
  top: calc(35% + 225px);
  height: 150px;
  width: auto;
  pointer-events: auto;
  cursor: pointer;
  z-index: 51;
  transform: scaleX(-1);
  filter: brightness(1.3) saturate(1.2);
}

.trunk-running-squirrel-left.scurry-up {
  animation: scurryUp 1s ease-in forwards;
}

.trunk-running-squirrel-right.scurry-up {
  animation: scurryUpFlipped 1s ease-in forwards;
}

@keyframes scurryUp {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-120vh); opacity: 0; }
}

@keyframes scurryUpFlipped {
  0% { transform: scaleX(-1); opacity: 1; }
  80% { transform: scaleX(-1) translateY(-80vh); opacity: 1; }
  100% { transform: scaleX(-1) translateY(-120vh); opacity: 0; }
}

@keyframes woodpeck {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(12deg); }
  15% { transform: rotate(0deg); }
  25% { transform: rotate(12deg); }
  30% { transform: rotate(0deg); }
  40% { transform: rotate(12deg); }
  45% { transform: rotate(0deg); }
}

@media (max-width: 1279px) {
  .trunk-left,
  .trunk-right {
    display: none;
  }
}

/* ---------- Treehouse Footer / Platform ---------- */
.treehouse-footer {
  position: relative;
  z-index: 200;
  width: 100%;
  overflow: visible;
  padding-top: 0;
}

.treehouse-platform {
  position: relative;
  z-index: 2;
  background: url('/images/decorative/platform.png') no-repeat top center;
  background-size: 2560px 450px;
  min-height: 450px;
}

/* ---------- Footer Inner Grid ---------- */
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 140px 20px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.footer-col {
  position: relative;
  background: #F5EDE0;
  border-radius: 4px;
  padding: 22px 22px 8px;
  box-shadow: 2px 3px 6px rgba(0,0,0,0.25);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(200,180,150,0.06) 3px,
      rgba(200,180,150,0.06) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 5px,
      rgba(180,160,130,0.04) 5px,
      rgba(180,160,130,0.04) 6px
    );
}

.footer-col::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #E85040, #C0392B 50%, #962D22 100%);
  box-shadow:
    0 2px 3px rgba(0,0,0,0.4),
    inset 0 1px 2px rgba(255,255,255,0.3);
  z-index: 3;
}

.footer-col::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: linear-gradient(to bottom, #888, #AAA);
  border-radius: 0 0 1px 1px;
  z-index: 2;
}

.footer-col:nth-child(1) { transform: rotate(-1.5deg); }
.footer-col:nth-child(2) { transform: rotate(1deg); z-index: 3; }
.footer-col:nth-child(3) { transform: rotate(-0.7deg); }

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--tertiary);
  border-radius: 2px;
}

.footer-col p {
  color: #5A4A3A;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li:last-child {
  margin-bottom: 0;
}

.footer-nav-menu > li.has-children {
  position: relative;
}

.footer-nav-menu > li.has-children > a {
  display: inline;
}

.footer-toggle {
  background: none;
  border: none;
  color: #5A4A3A;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 0.65rem;
  vertical-align: middle;
  transition: transform 0.2s;
}

.footer-nav-menu > li.has-children:hover .footer-toggle {
  transform: rotate(180deg);
}

.footer-sub-menu {
  list-style: none;
  padding: 10px 16px;
  margin: 0;
  display: none;
  position: absolute;
  top: -10px;
  left: 50%;
  white-space: nowrap;
  width: auto;
  background: #F5EDE0;
  border-radius: 4px;
  box-shadow: 2px 3px 6px rgba(0,0,0,0.25);
  z-index: 10;
}

.footer-nav-menu > li.has-children:hover > .footer-sub-menu {
  display: block;
}

.footer-sub-menu li {
  margin-bottom: 5px;
  font-size: 0.85rem;
}

.footer-sub-menu li:last-child {
  margin-bottom: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
  color: #5A4A3A;
  font-size: 0.95rem;
}

.footer-col ul li i {
  color: var(--tertiary);
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.footer-col ul li a {
  color: #5A4A3A;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-logo img {
  max-width: 140px;
  margin-bottom: 15px;
  filter: none;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
  color: #fff;
}

.footer-appointment {
  margin-top: 20px;
}

.footer-appointment .wdt-button-holder {
  padding: 0;
  text-align: left;
}

.platform-bat {
  position: absolute;
  bottom: -10px;
  left: calc(50% - 600px);
  height: 360px;
  width: auto;
  pointer-events: none;
  z-index: 3;
}

.platform-squirrel {
  position: absolute;
  top: -10px;
  left: calc(50% - 80px);
  height: 90px;
  width: auto;
  pointer-events: none;
  z-index: 3;
}

.platform-squirrel-left {
  position: absolute;
  top: -10px;
  left: calc(50% - 650px);
  height: 90px;
  width: auto;
  pointer-events: none;
  z-index: 3;
  transform: scaleX(-1);
}

.platform-cat {
  position: absolute;
  top: -100px;
  left: calc(50% + 120px);
  height: 180px;
  width: auto;
  pointer-events: none;
  z-index: 3;
}

.platform-cat-left {
  position: absolute;
  top: -100px;
  left: calc(50% - 650px);
  height: 180px;
  width: auto;
  pointer-events: none;
  z-index: 3;
  transform: scaleX(-1);
}

.platform-mitt {
  position: absolute;
  bottom: -10px;
  left: calc(50% - 400px);
  height: 120px;
  width: auto;
  pointer-events: none;
  z-index: 3;
  transform: rotate(15deg);
}

.platform-yoyo {
  position: absolute;
  bottom: -70px;
  left: calc(50% - 360px);
  height: 65px;
  width: auto;
  pointer-events: none;
  z-index: 3;
}

.platform-telescope {
  position: absolute;
  top: -30px;
  right: calc(50% - 650px);
  height: 120px;
  width: auto;
  pointer-events: none;
  z-index: 3;
}

.platform-walkietalkie {
  position: absolute;
  bottom: -50px;
  right: calc(50% - 450px);
  height: 150px;
  width: auto;
  pointer-events: none;
  z-index: 3;
}

.platform-flashlight {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  height: 45px;
  width: auto;
  pointer-events: auto;
  cursor: pointer;
  z-index: 3;
}

.platform-football {
  position: absolute;
  bottom: -35px;
  left: calc(50% - 250px);
  height: 120px;
  width: auto;
  pointer-events: none;
  z-index: 3;
}

.platform-soccerball {
  position: absolute;
  bottom: -10px;
  left: calc(50% + 80px);
  height: 100px;
  width: auto;
  pointer-events: none;
  z-index: 3;
}

.platform-checkers {
  position: absolute;
  bottom: -65px;
  left: calc(50% + 180px);
  height: 85px;
  width: auto;
  pointer-events: none;
  z-index: 3;
}

/* ---------- Seasonal Overrides ----------
   Body gets .season-christmas, .season-easter, or .season-fall
   Use these classes to swap canopy images, add seasonal colors, etc.
   Uncomment and fill in as seasonal assets are created.
*/

/* -- Christmas --
.season-christmas .canopy-header {
  background-image: url('/images/seasonal/canopy-christmas.png');
}
.seasonal-lights-header {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 5;
}
.seasonal-lights-rail {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 5;
}
.seasonal-christmas-tree {
  position: absolute;
  bottom: -10px;
  left: calc(50% - 60px);
  height: 150px;
  width: auto;
  pointer-events: none;
  z-index: 3;
}
*/

/* -- Easter --
.seasonal-easter-basket {
  position: absolute;
  bottom: -10px;
  left: calc(50% + 100px);
  height: 100px;
  width: auto;
  pointer-events: none;
  z-index: 3;
}
*/

/* -- Fall --
.season-fall .canopy-header {
  background-image: url('/images/seasonal/canopy-fall.png');
}
.seasonal-leaf-1 {
  position: absolute;
  bottom: -40px;
  left: calc(50% - 200px);
  height: 50px;
  width: auto;
  pointer-events: none;
  z-index: 3;
}
.seasonal-leaf-2 {
  position: absolute;
  bottom: -50px;
  left: calc(50% + 150px);
  height: 45px;
  width: auto;
  pointer-events: none;
  z-index: 3;
}
*/

/* ---------- Contact Form ---------- */
.contact-form {
  max-width: 600px;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-accent);
  font-weight: 600;
  color: var(--heading-color);
}

.form-group .optional {
  font-weight: 400;
  color: #999;
  font-size: 0.85em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--body-text);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

.form-group textarea {
  resize: vertical;
}

.contact-submit {
  display: inline-block;
  padding: 12px 32px;
  background: var(--secondary);
  color: var(--accent-text);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.contact-submit:hover {
  background: var(--primary);
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin-top: 1rem;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-status.form-success {
  color: #2e7d32;
  padding: 12px 16px;
  background: #e8f5e9;
  border-radius: var(--radius);
}

.form-status.form-error {
  color: #c62828;
  padding: 12px 16px;
  background: #ffebee;
  border-radius: var(--radius);
}

.cf-turnstile {
  margin-bottom: 1rem;
}

/* ---------- Footer Copyright ---------- */
.footer-copyright {
  background: url('/images/decorative/wood-floor.svg') repeat top center;
  background-size: 400px 120px;
  margin-top: -50px;
  padding: 58px 0 8px;
  position: relative;
  z-index: 1;
}

.footer-copyright-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-family: var(--font-accent);
  text-align: center;
}


/* ---------- Responsive Footer ---------- */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    z-index: 4;
  }

  .treehouse-platform {
    background-size: cover;
    min-height: auto;
  }

  .platform-cat,
  .platform-cat-left,
  .platform-squirrel,
  .platform-squirrel-left {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 65px;
  }

  .mobile-menu-toggle {
    display: block;
    order: 3;
  }

  .header-appointment {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--body-bg);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    padding: 80px 0 30px;
    flex: none;
    display: flex;
    flex-direction: column;
  }

  .main-nav .nav-menu {
    flex: 1;
  }

  .mobile-appointment {
    display: block;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
  }

  .mobile-appointment .wdt-button {
    width: 100%;
  }

  .main-nav.is-open {
    right: 0;
  }

  .main-nav .nav-menu {
    flex-direction: column;
    gap: 0;
  }

  .main-nav .nav-menu > li > a {
    padding: 12px 24px;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .main-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background: var(--light-bg);
    display: none;
  }

  .main-nav .has-children.is-open > .sub-menu {
    display: block;
  }

  .main-nav .sub-menu li a {
    padding-left: 40px;
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    display: none;
  }

  .mobile-overlay.is-visible {
    display: block;
  }

  .blog-card {
    flex-direction: column;
    gap: 15px;
  }

  .blog-card-image {
    flex: none;
  }

  .blog-card-image img {
    height: 200px;
  }

  .blog-filters {
    flex-direction: column;
  }

  .blog-filter select {
    min-width: 100%;
  }

  .blog-pagination {
    gap: 6px;
  }

  .page-prev,
  .page-next {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .home-about .content-inner {
    font-size: 1rem;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .page-title {
    font-size: 1.8rem;
  }

  .post-title {
    font-size: 1.8rem;
  }

  .post-nav {
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-sub-menu {
    left: 120px;
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 12px;
  }

  .canopy-header {
    height: 150px;
    background-size: 1920px 150px;
  }

  .treehouse-platform {
    background-size: cover;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .wdt-button {
    padding: 12px 24px;
    font-size: 1rem;
  }

  .site-logo img {
    height: 45px;
  }

  .service-card-frame {
    width: 200px;
    height: 200px;
  }

  .services-carousel-wrap {
    padding: 0 15px 20px;
  }
}

@media (max-width: 768px) {
  .service-card-frame {
    width: 240px;
    height: 240px;
  }

}

/* ---------- Scroll to Top Rocket ---------- */
