/*===========================
HERO SECTION IMAGE + TEXT BOX
==============================*/
.hero-section {
  margin: 0 auto 8px;
  display: block;
}

.hero-container {
max-width: 1000px;
margin: 0 auto;
align-items: flex-start;
display: flex;
justify-content: center;
gap: 10px;
}

.hero-image {
flex: 0 1 460px;
flex-shrink: 0;
}

.hero-image img {
width: 100%;
height: auto;
display: block;
}

.hero-text-stack {
flex: 0 1 525px;
display: flex;
flex-direction: column;
flex-shrink: 0;
gap: 6px;
}

.text-box-caption img {
width: 100%;
height: auto;
display: block;
margin: 0 auto;
filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
}

.text-box {
border-radius: 20px;
border-width: 3.5px;
border-style: solid;
padding: 7px 7px;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
}

.text-box p {
margin: 0;
font-family: 'Sniglet', arial, sans-serif;
text-align: center;
}

.text-box-1 { background: #FFFCDB; border-color: #8867A3; flex: .7; box-shadow: 0 0 4px 2px rgba(255, 245, 150, 0.84); }

.text-box-1 p { color: #8867A3; font-size: 2.6rem; line-height: 1.1; }

.text-box-2 { background: #F5FDFF; border-color: #67A0A3; padding: 9px 12px; flex: 1; box-shadow: 0 0 4px 2px rgba(255, 245, 150, 0.84); }

.text-box-2 p { color: #67A0A3; font-size: 2.8rem; line-height: 1.15; }

.text-box-3 { background: #F0F6FF; border-color: #5674A3; flex: .16; box-shadow: 0 0 4px 2px rgba(255, 245, 150, 0.84); }

.text-box-3 p { color: #5674A3; font-size: 1.9rem; line-height: 1.1; }

/*=============
Hero Swap
=============*/
.hero-swap {
  position: relative;
  display: block;
  width: 100%;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.05s ease;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
}

.hero-img--hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* Desktop hover */
.hero-swap:hover .hero-img--default {
  opacity: 0;
}
.hero-swap:hover .hero-img--hover {
  opacity: 1;
}

/* Mobile first-tap state */
.hero-swap.tap-active .hero-img--default {
  opacity: 0;
}
.hero-swap.tap-active .hero-img--hover {
  opacity: 1;
}

.hero-img--hover.rounded-image {
  border-radius: 50%;
}

/*==========================================================
JELLO EFFECT (Main Nav & Footer Nav Button Hover/Tap Effect)
===========================================================*/
@keyframes jello {
  0%, 100% { transform: scale(1, 1); }
  30% { transform: scale(1.15, 0.85); }
  50% { transform: scale(0.9, 1.1); }
  70% { transform: scale(1.05, 0.95); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-swap:hover .hero-img,
  .hero-swap.tap-active .hero-img {
    animation: jello 0.6s ease;
  }

/*==========================================
FEATURE PAIR (rectangle+caption vs square+row)
============================================*/

.feature-pair {
display: flex;
gap: 8px;
max-width: 1000px;
margin: 0 auto;
align-items: flex-start;
}

.rect-col  { flex: 0 0 430px; }
.square-col { flex: 0 0 562px; }

.rect-col img,
.square-col .square-image {
width: 100%;
height: auto;
display: block;
}

.rect-col .rect-caption { margin-top: 10px; }

.caption-row {
display: flex;
gap: 8px;
margin: 0 auto;
}

.caption-row img {
min-width: 0;
height: auto;
display: block;
}

.caption-row img:nth-child(1) { flex: 394 1 0; }
.caption-row img:nth-child(2) { flex: 147 1 0; }
.caption-row img:nth-child(3) { flex: 118 1 0; }

/*=========================
Text Boxes and Large Images
==========================*/

.text-box-png img {
width: 100%;
height: auto;
display: block;
margin-top: 2px;
margin-bottom: 7px;
filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9))
drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
}

/*====================
TEXT BOX (HTML FORMAT)
====================*/

.text-box-solo {
max-width: 1000px;
width: 99%;
margin: 0 auto;
border-radius: 20px;
border-width: 4px;
border-style: solid;
padding: 5px 4px;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 0 4px 2px rgba(255, 245, 150, 0.84);
background: #dfe7f7;
border-color: #4d5ca8;
margin-bottom: 5px;
margin-top: 5px;
}

.text-box-solo p {
margin: 0;
font-family: 'Sniglet', arial, sans-serif;
font-size: 1.84rem;
letter-spacing: 0.04em;
line-height: 1.2;
text-align: center;
color: #5960b2;
}

#moby-dock {
--rounded-border-color: #4D6493;
}

/* ====================
MOBILE RESPONSIVE
==================== */
@media (max-width: 768px) {

.hero-container {
flex-direction: column;
height: auto;
align-items: center;
max-width: 100%;
padding: 0 2px;
box-sizing: border-box;
gap: 4px;
}

.hero-image {
width: 100%;
flex: none;              
}

.hero-image img {
height: auto; 
object-fit: cover;
}

.hero-text-stack {
width: 100%;
height: auto;
flex: none;
gap: 9px;
}

.hero-text-stack {
display: contents;
}

.text-box-1 {
order: 1;
}

.text-box-2 {
order: 2;
}

.hero-image {
order: 3;
}

.text-box-caption {
order: 4;
}

.text-box-3 {
order: 5;
}

.text-box {
height: auto;
min-height: 80px;
padding: 8px 8px;
}

.text-box-1 p { font-size: clamp(2.4rem, 5.8vw, 3.4rem); }
.text-box-2 p { font-size: clamp(2.3rem, 5.6vw, 3.6rem); }
.text-box-3 p { font-size: clamp(1.2rem, 5.6vw, 3.6rem); }

.feature-pair {
flex-direction: column;
align-items: center;
}

.rect-col,
.square-col {
flex: 0 0 auto;
width: 100%;
max-width: 98%;
}
}
