/*
Theme Name: Sweet Nest Doula
Theme URI: https://sweetnestdoula.com
Author: Sweet Nest Doula & Maruja Studio
Author URI: https://www.marujastudio.com
Description: Custom WordPress theme for Sweet Nest Doula (Yami Polanco) — Postpartum & Infant Care Specialist.
Version: 1.0.0
Text Domain: sweetnest-doula
*/

/* --- Global Base Styles --- */
html, body, #page, #primary, #main, main, .site-content, .wp-site-blocks {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #52432F;
  font-family: 'EB Garamond', serif;
}

* {
  box-sizing: border-box;
}

a {
  color: #C57A5B;
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: #C99A3E;
}

::selection {
  background: #F5DDD4;
}

/* Fixed Canvas for Scroll Background Animation */
#scroll-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1 !important;
  pointer-events: none !important;
  display: block !important;
}

/* --- Keyframe Animations --- */
@keyframes sndRise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-reveal] {
  animation: sndRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes sndFloatA {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(1.2deg); }
}

@keyframes sndFloatB {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-1.5deg); }
}

@keyframes sndFeatherFloatL {
  0%, 100% { transform: rotate(25deg) scaleX(-1) translateY(0px); }
  50% { transform: rotate(27deg) scaleX(-1) translateY(-4px); }
}

@keyframes sndFeatherFloatR {
  0%, 100% { transform: rotate(-25deg) translateY(0px); }
  50% { transform: rotate(-27deg) translateY(-4px); }
}

.snd-deco {
  animation: sndFloatA 7.5s ease-in-out infinite alternate;
  will-change: transform;
}

.snd-deco-alt {
  animation: sndFloatB 8.5s ease-in-out infinite alternate;
  will-change: transform;
}

.snd-feather-l {
  animation: sndFeatherFloatL 6.5s ease-in-out infinite alternate;
  will-change: transform;
}

.snd-feather-r {
  animation: sndFeatherFloatR 7s ease-in-out infinite alternate;
  will-change: transform;
}

/* --- Buttons & Micro-Interactions --- */
.snd-btn-primary {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  background: #EAC163;
  color: #52432F;
  font-size: 17px;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(201,154,62,0.28);
  transition: background 0.25s cubic-bezier(0.25, 1, 0.5, 1), transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.snd-btn-primary:hover {
  background: #E3B44E;
  transform: translateY(-2.5px) scale(1.015);
  box-shadow: 0 10px 24px rgba(201, 154, 62, 0.35);
}

.snd-btn-primary:hover .snd-btn-arrow {
  transform: translateX(4px);
}

.snd-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #8C8C68;
  color: #F7F1E3;
  font-size: 16.5px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(111,111,82,0.25);
  transition: background 0.25s cubic-bezier(0.25, 1, 0.5, 1), transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.snd-btn-secondary:hover {
  background: #6F6F52;
  transform: translateY(-2.5px) scale(1.015);
  box-shadow: 0 8px 22px rgba(111,111,82,0.35);
}

.snd-btn-secondary:hover .snd-btn-arrow {
  transform: translateX(4px);
}

.snd-btn-blush {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #EFC9BE;
  color: #52432F;
  font-size: 16px;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(239,201,190,0.5);
  transition: background 0.25s cubic-bezier(0.25, 1, 0.5, 1), transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.snd-btn-blush:hover {
  background: #E8B8AA;
  transform: translateY(-2.5px) scale(1.015);
  box-shadow: 0 8px 22px rgba(239,201,190,0.65);
}

.snd-btn-blush:hover .snd-btn-arrow {
  transform: translateX(4px);
}

.snd-btn-arrow {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Service Card Micro-Interactions */
.snd-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  background: rgba(251,247,236,0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(140,140,104,0.18);
  border-radius: 22px;
  padding: 26px 18px 20px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(82,67,47,0.06);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s ease;
}

.snd-service-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 36px rgba(82,67,47,0.12);
  border-color: rgba(197,122,91,0.35);
}

.snd-service-card:hover .snd-service-icon {
  transform: scale(1.08) rotate(2deg);
}

.snd-service-card:hover .snd-card-arrow {
  transform: translateX(4px);
}

.snd-service-icon {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.snd-card-arrow {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Testimonial Card Micro-Interactions */
.snd-testimonial-box {
  position: relative;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  padding: 60px 42px 65px;
  border-radius: 26px;
  box-shadow: 0 10px 28px rgba(82,67,47,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 280px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.snd-testimonial-box:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: 0 20px 45px rgba(82,67,47,0.14);
}

/* --- Header Styles --- */
.snd-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.snd-dropdown-wrap:hover .snd-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) scale(1) !important;
}

.snd-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.98);
  width: 280px;
  background: #FBF7EC;
  border: 1px solid rgba(140,140,104,0.24);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(82,67,47,0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1), transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.26s;
  z-index: 100;
  margin-top: 8px;
}

.snd-dropdown-item {
  position: relative;
  transition: background 0.22s cubic-bezier(0.25, 1, 0.5, 1), color 0.22s ease, transform 0.22s cubic-bezier(0.25, 1, 0.5, 1), padding-left 0.22s ease !important;
}

.snd-dropdown-item:hover {
  background: rgba(234,193,99,0.18) !important;
  color: #C57A5B !important;
  padding-left: 18px !important;
  transform: translateX(2px);
}

.snd-dropdown-item:hover .snd-arrow {
  opacity: 1 !important;
  transform: translateX(2px) !important;
}

.snd-cta-btn {
  flex: 0 0 auto;
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px;
  background: #8C8C68 !important;
  color: #F7F1E3 !important;
  font-family: 'Fraunces', serif !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  letter-spacing: 0.1px !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  border: none !important;
  outline: none !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(111,111,82,0.22) !important;
  transition: background .25s cubic-bezier(0.25,1,0.5,1),transform .25s cubic-bezier(0.25,1,0.5,1),box-shadow .25s cubic-bezier(0.25,1,0.5,1) !important;
  white-space: nowrap !important;
  margin-left: 8px !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

.snd-cta-btn:hover, .snd-cta-btn:focus {
  background: #6F6F52 !important;
  color: #F7F1E3 !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 22px rgba(111,111,82,0.35) !important;
  outline: none !important;
  text-decoration: none !important;
}

.snd-desktop-nav a:not(.snd-cta-btn) {
  position: relative;
}

.snd-desktop-nav a:not(.snd-cta-btn)::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: transparent !important;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.snd-desktop-nav a:not(.snd-cta-btn):hover::after {
  transform: scaleX(1);
}

.snd-desktop-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1 1 auto;
  justify-content: center;
}

.snd-hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 102;
}

.snd-hamburger-bar {
  width: 26px;
  height: 2.5px;
  background: #52432F;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.snd-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(40,30,20,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 99;
}

.snd-mobile-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.snd-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px,85vw);
  background: #FBF7EC;
  border-left: 1px solid rgba(140,140,104,0.25);
  box-shadow: -8px 0 30px rgba(82,67,47,0.18);
  padding: 75px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2,0.9,0.3,1);
  z-index: 100;
}

.snd-mobile-drawer.open {
  transform: translateX(0);
}

.snd-mobile-link {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 18px;
  color: #52432F;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(140,140,104,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s, transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.snd-mobile-link:hover {
  color: #C57A5B;
  transform: translateX(3px);
}

.snd-mobile-sublink {
  font-family: 'EB Garamond', serif;
  font-size: 16.5px;
  color: #6C5E4A;
  text-decoration: none;
  padding: 6px 0 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s, transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.snd-mobile-sublink:hover {
  color: #C57A5B;
  transform: translateX(3px);
}

.snd-header-sticky {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247,241,227,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(140,140,104,0.14);
  font-family: 'EB Garamond', serif;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.snd-header-sticky.is-scrolled {
  background: rgba(247,241,227,0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 22px rgba(82,67,47,0.08);
}

/* --- Footer Styles --- */
.snd-footer-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 45px 40px 26px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
  gap: 36px;
  position: relative;
}

.snd-footer-link {
  position: relative;
  display: inline-block;
  color: #EDE7D6;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.snd-footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: transparent !important;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.snd-footer-link:hover {
  color: #EAC163 !important;
  transform: translateX(2px);
}

.snd-footer-link:hover::after {
  transform: scaleX(1);
}

.snd-footer-marigold-1 {
  animation: sndDecoFloat1 7s ease-in-out infinite alternate;
  will-change: transform;
}

.snd-footer-marigold-2 {
  animation: sndDecoFloat2 8.5s ease-in-out infinite alternate;
  will-change: transform;
}

.snd-footer-logo-link {
  display: inline-block;
  text-decoration: none;
  max-width: 200px;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.snd-footer-logo-link:hover {
  transform: translateY(-2px) scale(1.02);
  opacity: 0.95;
}

/* --- Credentials Component Styles --- */
.snd-credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 330px));
  justify-content: center;
  gap: 26px;
  max-width: 1100px;
  margin: 0 auto;
}

.snd-credential-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 24px 26px;
  background: #FBF7EC;
  border: 1px solid rgba(140, 140, 104, 0.22);
  border-radius: 22px;
  box-shadow: 0 6px 18px rgba(82, 67, 47, 0.06);
  box-sizing: border-box;
}

.snd-credential-card:hover .snd-credential-logo-img {
  transform: scale(1.06);
}

.snd-credential-logo-box {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.snd-credential-logo-img {
  max-height: 74px;
  max-width: min(200px, 90%);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.snd-credential-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 17.5px;
  line-height: 1.38;
  color: #52432F;
  margin-top: auto;
}

/* --- Closing CTA Component Styles --- */
.snd-closing-cta-wrap {
  position: relative;
  max-width: 1340px;
  margin: 0 auto;
  padding: 115px 130px;
  min-height: 440px;
}

.snd-closing-sprig {
  animation: sndClosingSprigFloat 7s ease-in-out infinite alternate;
  will-change: transform;
}

.snd-closing-img {
  animation: sndClosingImgFloat 8s ease-in-out infinite alternate;
  will-change: transform;
}

.snd-closing-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #EAC163;
  color: #52432F;
  font-size: 17.5px;
  letter-spacing: 0.3px;
  padding: 16px 34px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(201,154,62,0.3);
  text-align: center;
  transition: background 0.25s cubic-bezier(0.25, 1, 0.5, 1), transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.snd-closing-btn:hover {
  background: #E3B44E;
  transform: translateY(-2.5px) scale(1.015);
  box-shadow: 0 10px 24px rgba(201, 154, 62, 0.38);
}

.snd-closing-btn:hover .snd-btn-arrow {
  transform: translateX(4px);
}

/* --- Media Queries & Responsive rules --- */
@media (max-width: 1024px) {
  .snd-desktop-nav, .snd-desktop-cta { display: none !important; }
  .snd-hamburger-btn { display: flex !important; }
  .snd-header-inner { padding: 10px 20px !important; }
}

@media (max-width: 992px) {
  .snd-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; padding: 36px 24px 20px !important; }
  .snd-credentials-grid { grid-template-columns: 1fr !important; width: 100% !important; max-width: 480px !important; margin: 0 auto !important; gap: 18px !important; }
  .snd-credential-card { width: 100% !important; padding: 24px 20px 22px !important; text-align: center !important; align-items: center !important; justify-content: center !important; }
  .snd-closing-cta-wrap { padding: 60px 28px !important; min-height: auto !important; text-align: center !important; }
  .snd-closing-cta-side-img { display: none !important; }
  .snd-closing-cta-section { padding: 24px 16px 36px !important; }
}

@media (max-width: 768px) {
  .snd-footer-marigold-1, .snd-footer-marigold-2 { display: none !important; }
  .snd-footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; padding: 30px 20px 20px !important; text-align: center !important; }
  .snd-footer-grid > div { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; }
  .snd-footer-bottom { flex-direction: column !important; text-align: center !important; justify-content: center !important; padding: 16px 20px !important; }
  .snd-deco { display: none !important; }
  .snd-closing-cta-wrap h2, .snd-closing-cta-wrap p { text-align: center !important; }
  .snd-closing-btn { margin-left: auto !important; margin-right: auto !important; width: 100% !important; max-width: 340px !important; justify-content: center !important; }
}

@media (max-width: 600px) {
  .snd-footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; padding: 30px 20px 20px !important; }
  .snd-footer-bottom { flex-direction: column !important; text-align: center !important; justify-content: center !important; padding: 16px 20px !important; }
  .snd-closing-cta-wrap { padding: 44px 20px !important; }
}

/* --- Hero Component Layout Rules --- */
.snd-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 34px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 40px 40px;
}

.snd-hero-portrait-col {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 122%;
  margin-left: -22%;
}

.snd-hero-left {
  position: relative;
  z-index: 2;
}

.snd-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  background: #EAC163;
  color: #52432F;
  font-size: 17px;
  letter-spacing: 0.3px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(201,154,62,0.28);
  transition: background 0.25s cubic-bezier(0.25, 1, 0.5, 1), transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.snd-hero-btn:hover {
  background: #E3B44E;
  transform: translateY(-2.5px) scale(1.015);
  box-shadow: 0 10px 24px rgba(201, 154, 62, 0.35);
}

.snd-hero-btn:hover .snd-btn-arrow {
  transform: translateX(4px);
}

.snd-hero-img-interactive {
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.snd-hero-portrait-col:hover .snd-hero-img-interactive {
  transform: scale(1.025);
}

@media (max-width: 1250px) {
  .snd-hero-wreath { display: none !important; }
}

@media (max-width: 992px) {
  .snd-hero-grid { grid-template-columns: 1fr !important; gap: 30px !important; padding: 36px 20px 30px !important; text-align: center !important; }
  .snd-hero-left { display: flex; flex-direction: column; align-items: center; text-align: center !important; }
  .snd-hero-portrait-col { width: 100% !important; margin-left: 0 !important; min-height: auto !important; margin-top: 16px !important; }
  .snd-hero-portrait-col img { margin: 0 auto !important; max-width: min(320px, 85vw) !important; }
}

@media (max-width: 768px) {
  .snd-hero-wreath, .snd-deco { display: none !important; }
  .snd-hero-btn { margin-left: auto !important; margin-right: auto !important; width: 100% !important; max-width: 320px !important; }
}

@media (max-width: 600px) {
  .snd-hero-grid { padding: 24px 16px 24px !important; }
}

/* --- Organic Panel & Frameless Video Rules (Theme V3.0) --- */
.snd-testimonial-box {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.snd-frameless-video-wrap {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(82, 67, 47, 0.16), 0 4px 16px rgba(82, 67, 47, 0.08);
  border: 4px solid #FBF7EC;
  background: #281E14;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.snd-frameless-video-wrap:hover {
  transform: translateY(-3px) scale(1.006);
  box-shadow: 0 24px 60px rgba(82, 67, 47, 0.2), 0 6px 20px rgba(82, 67, 47, 0.1);
}

.snd-support-panel-wrap,
.snd-cta-band-wrap,
.snd-resources-panel,
.snd-contact-banner {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE, HERO STACK & PANEL FIT OVERRIDES (Theme V3.4)
   Optimized for 335px wide to 992px viewports
   ========================================================================== */

@media (max-width: 992px) {
  /* --- Navigation & Header Mobile Fixes --- */
  .snd-desktop-nav,
  .snd-desktop-cta {
    display: none !important;
  }

  .snd-hamburger-btn {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
    cursor: pointer !important;
    z-index: 102 !important;
  }

  .snd-hamburger-bar {
    width: 26px !important;
    height: 2.5px !important;
    background: #52432F !important;
    border-radius: 2px !important;
  }

  .snd-mobile-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(35,27,18,0.55) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    z-index: 999998 !important;
  }

  .snd-mobile-backdrop.open {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .snd-mobile-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    width: min(320px, 88vw) !important;
    background: #FBF7EC !important;
    border-left: 1px solid rgba(140,140,104,0.25) !important;
    box-shadow: -10px 0 35px rgba(40,30,20,0.25) !important;
    padding: 60px 20px 30px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.2,0.9,0.3,1) !important;
    z-index: 999999 !important;
    box-sizing: border-box !important;
  }

  .snd-mobile-drawer.open {
    transform: translateX(0) !important;
  }

  .snd-mobile-drawer .snd-mobile-close-btn {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(140,140,104,0.12) !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    color: #52432F !important;
    cursor: pointer !important;
  }

  .snd-mobile-link {
    font-family: 'Fraunces', serif !important;
    font-weight: 400 !important;
    font-size: 16.5px !important;
    color: #52432F !important;
    text-decoration: none !important;
    padding: 10px 6px !important;
    border-bottom: 1px dashed rgba(140,140,104,0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .snd-mobile-sublink {
    font-family: 'EB Garamond', serif !important;
    font-size: 15px !important;
    color: #6C5E4A !important;
    text-decoration: none !important;
    padding: 6px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .snd-header-inner {
    padding: 10px 18px !important;
  }

  /* Hide decorative floral illustrations and wreaths on mobile so they NEVER overlay text */
  .snd-support-ornament,
  .snd-deco,
  .snd-deco-alt,
  .snd-closing-sprig,
  .snd-closing-img,
  .snd-hero-wreath,
  .snd-feather-l,
  .snd-feather-r,
  .snd-leaf-left,
  .snd-leaf-right {
    display: none !important;
  }

  /* Ensure text container sits above background images with safe z-index */
  .snd-support-panel-wrap > div,
  .snd-home-intro-wrap > div,
  .snd-home-services-panel > div,
  .snd-cta-band-wrap > div,
  .snd-resources-panel > div,
  .snd-contact-banner > div,
  .snd-kindwords-card > div {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* --- Global Text & Image Centering --- */
  .snd-hero-grid,
  .snd-home-section,
  .snd-support-panel-section,
  .snd-help-section,
  .snd-closing-cta-section,
  .snd-about-section,
  .snd-kindwords-section,
  .snd-resources-section,
  .snd-contact-section {
    text-align: center !important;
  }

  /* --- Hero Component Stack (Hero Image FIRST / TOP above H1) --- */
  .snd-hero-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 32px 18px 24px !important;
    text-align: center !important;
  }

  .snd-hero-portrait-col,
  .snd-hero-img-box {
    order: 1 !important; /* HERO IMAGE TOP ABOVE H1 TITLE */
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 12px !important;
    min-height: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
  }

  /* Hide unscaled absolute blob-hero background on mobile to prevent raw overflow */
  .snd-hero-portrait-col > img[src*="blob-hero"] {
    display: none !important;
  }

  .snd-hero-portrait-col > div {
    width: min(270px, 78vw) !important;
    height: min(330px, 92vw) !important;
    max-width: 270px !important;
    max-height: 330px !important;
    margin: 0 auto !important;
  }

  .snd-hero-portrait-col img:not([src*="blob-hero"]),
  .snd-hero-img-box img {
    margin: 0 auto !important;
    max-width: min(270px, 78vw) !important;
    max-height: min(330px, 92vw) !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .snd-hero-left,
  .snd-hero-text-col {
    order: 2 !important; /* H1 TITLE, TAGLINE & BUTTON BELOW HERO IMAGE */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .snd-hero-left h1,
  .snd-hero-left p,
  .snd-hero-left div {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .snd-hero-btn,
  .snd-btn-primary,
  .snd-btn-secondary,
  .snd-btn-blush {
    margin-left: auto !important;
    margin-right: auto !important;
    display: inline-flex !important;
    justify-content: center !important;
    max-width: 100% !important;
  }

  /* --- Panel Wrappers Mobile Fit (Enclose text 100% inside brush) --- */
  .snd-home-intro-wrap,
  .snd-support-panel-wrap,
  .snd-home-services-panel,
  .snd-cta-band-wrap,
  .snd-resources-panel,
  .snd-contact-banner,
  .snd-kindwords-card {
    background-size: 100% 100% !important;
    padding: 75px 20px 85px !important;
    min-height: auto !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .snd-home-intro-wrap p,
  .snd-support-panel-wrap p,
  .snd-home-services-panel p,
  .snd-cta-band-wrap p,
  .snd-resources-panel p,
  .snd-contact-banner p,
  .snd-kindwords-card p {
    font-size: 15px !important;
    line-height: 1.55 !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .snd-home-intro-wrap h1, .snd-home-intro-wrap h2,
  .snd-support-panel-wrap h1, .snd-support-panel-wrap h2,
  .snd-home-services-panel h1, .snd-home-services-panel h2,
  .snd-cta-band-wrap h1, .snd-cta-band-wrap h2,
  .snd-resources-panel h1, .snd-resources-panel h2,
  .snd-contact-banner h1, .snd-contact-banner h2,
  .snd-kindwords-card h1, .snd-kindwords-card h2 {
    font-size: clamp(24px, 5.5vw, 32px) !important;
    line-height: 1.15 !important;
    text-align: center !important;
  }

  /* --- Home Meet Yami Section --- */
  .snd-home-intro-flex {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 24px !important;
  }

  .snd-home-intro-img {
    margin: 0 auto !important;
    width: min(260px, 80vw) !important;
  }

  .snd-home-intro-flex > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* --- How I Support Your Family (Icons Top, Text Below) --- */
  .snd-help-grid-wrap {
    padding: 30px 16px !important;
  }

  .snd-help-grid-inner {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .snd-help-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 16px 10px !important;
  }

  .snd-icon-circle {
    margin: 0 auto 10px !important;
    order: 1 !important;
  }

  .snd-help-text-wrap {
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .snd-help-text-wrap h3 {
    order: 1 !important;
    text-align: center !important;
  }

  .snd-help-text-wrap p {
    order: 2 !important;
    text-align: center !important;
  }

  /* --- Ways We Can Work Together & Services Overview (2 Columns Side-by-Side on Mobile) --- */
  .snd-home-services-grid,
  .snd-services-list-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
    width: 100% !important;
  }

  .snd-service-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px 10px 18px !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .snd-service-icon,
  .snd-service-icon-box {
    margin: 0 auto 8px !important;
    order: 1 !important;
    flex: 0 0 auto !important;
    width: 52px !important;
    height: 52px !important;
  }

  .snd-service-card > span:not(.snd-service-icon-box):not(.snd-service-icon) {
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .snd-service-card span {
    text-align: center !important;
  }

  .snd-service-card span[style*="font-size:24px"],
  .snd-service-card span[style*="font-size:20px"] {
    font-size: 16px !important;
    line-height: 1.15 !important;
    margin-bottom: 5px !important;
    text-align: center !important;
  }

  .snd-service-card span[style*="font-size:16px"] {
    font-size: 13px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    margin-bottom: 6px !important;
  }

  .snd-service-card span[style*="color:#C57A5B"] {
    font-size: 13px !important;
    text-align: center !important;
    margin-top: 4px !important;
  }

  .snd-home-ways-title {
    margin-bottom: -40px !important;
  }

  .snd-home-ways-bottom {
    margin-top: -30px !important;
    margin-bottom: 30px !important;
  }

  /* --- Kind Words Testimonials --- */
  .snd-home-testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .snd-testimonial-box {
    padding: 44px 20px 48px !important;
    min-height: auto !important;
    text-align: center !important;
    align-items: center !important;
  }

  /* --- Support Panel Component --- */
  .snd-support-panel-wrap > div > div {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 24px !important;
  }

  .snd-point-row {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .snd-point-icon {
    margin: 0 auto 8px !important;
    order: 1 !important;
  }

  .snd-point-row > div {
    order: 2 !important;
    text-align: center !important;
  }

  .snd-point-row h3,
  .snd-point-row p {
    text-align: center !important;
  }

  /* --- CTA Band Component --- */
  .snd-cta-band-wrap > div {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* --- Closing CTA Component --- */
  .snd-closing-cta-side-img {
    display: none !important;
  }

  /* --- Credentials Component --- */
  .snd-credentials-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .snd-credential-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 22px 16px !important;
  }

  .snd-credential-logo-box {
    margin: 0 auto 12px !important;
    order: 1 !important;
  }

  .snd-credential-title {
    order: 2 !important;
    text-align: center !important;
  }

  /* --- Footer Component --- */
  .snd-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    text-align: center !important;
  }

  .snd-footer-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .snd-footer-col * {
    text-align: center !important;
  }

  /* --- Contact Page --- */
  .snd-contact-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .snd-contact-banner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .snd-contact-banner > div {
    text-align: center !important;
  }

  .snd-contact-item-link {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* --- Resources Page --- */
  .snd-resources-flex {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
}

/* Extra Mobile Adjustments for Screens <= 480px down to 335px */
@media (max-width: 480px) {
  .snd-help-grid-inner {
    grid-template-columns: 1fr !important;
  }

  .snd-hero-grid {
    padding: 24px 14px 20px !important;
  }

  .snd-mobile-drawer {
    width: 100% !important;
  }
}






