/*
Theme Name: Shoobie.org Child
Template: astra
Author: Shoobie.org
Description: Custom child theme for Shoobie.org
Version: 1.2
*/

:root {
    --shoobie-sand: #f6ead2;
    --shoobie-sand-light: #fff8eb;
    --shoobie-postcard: #f1cf9a;
    --shoobie-wood: #9c5f38;
    --shoobie-wood-dark: #62381f;
    --shoobie-ocean: #0f6f8b;
    --shoobie-ocean-dark: #16475c;
    --shoobie-ink: #243642;
    --shoobie-muted: #6f6558;
    --shoobie-card: rgba(255, 250, 239, 0.94);
    --shoobie-shadow: 0 18px 45px rgba(65, 42, 24, 0.16);
}

html {
    overflow-x: hidden;
}

body {
    background:
        linear-gradient(180deg, rgba(246, 234, 210, 0.55), rgba(255, 248, 235, 0.65)),
        url("assets/textures/sand-texture.jpg");
    background-attachment: fixed, fixed;
    background-repeat: repeat, repeat;
    background-size: auto, 420px 420px;
    color: var(--shoobie-ink);
    overflow-x: hidden;
}

.site-header {
    border-bottom: 1px solid rgba(156, 95, 56, 0.18);
    box-shadow: 0 6px 24px rgba(36, 54, 66, 0.05);
    position: relative;
    z-index: 20;
}

.main-header-menu .menu-link,
.ast-header-custom-item a {
    letter-spacing: 0.01em;
}

.shoobie-home {
    margin: 0 auto;
    overflow: visible;
    position: relative;
}

.shoobie-home h1,
.shoobie-home h2,
.shoobie-home h3 {
    color: var(--shoobie-ocean-dark);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.08;
}

.shoobie-home p {
    color: var(--shoobie-muted);
    font-size: 1.075rem;
    line-height: 1.75;
}

.shoobie-kicker,
.shoobie-card__eyebrow,
.shoobie-feature__label {
    color: var(--shoobie-wood);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1.3;
    margin: 0 0 0.9rem;
    text-transform: uppercase;
}

/* ---------- Hero ---------- */

.shoobie-hero {
    align-items: center;
    background:
        linear-gradient(to bottom, transparent 62%, rgba(246, 234, 210, 0.9) 100%),
        linear-gradient(100deg, rgba(15, 45, 60, 0.55) 0%, rgba(15, 45, 60, 0.28) 32%, rgba(15, 45, 60, 0.04) 58%),
        var(--shoobie-hero-image, linear-gradient(135deg, var(--shoobie-ocean), var(--shoobie-postcard)));
    background-position: center;
    background-size: cover;
    display: flex;
    min-height: clamp(360px, 48vh, 540px);
    padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
    position: relative;
    z-index: 1;
}

.shoobie-hero__inner {
    margin: 0 auto;
    max-width: 1120px;
    width: 100%;
}

.shoobie-hero .shoobie-kicker {
    color: #ffe8b8;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}

.shoobie-hero h1 {
    color: #fff8eb;
    font-size: clamp(2.2rem, 4.6vw, 4.4rem);
    margin: 0;
    max-width: 820px;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.32);
}

.shoobie-hero__lede {
    color: #fff1d1 !important;
    font-size: clamp(1rem, 1.6vw, 1.2rem) !important;
    margin: 1.1rem 0 0;
    max-width: 640px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.shoobie-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.shoobie-button,
.shoobie-button:visited,
.shoobie-button:hover,
.shoobie-button:focus {
    background: var(--shoobie-postcard);
    border: 2px solid rgba(255, 248, 235, 0.72);
    border-radius: 999px;
    color: var(--shoobie-wood-dark);
    display: inline-flex;
    font-weight: 800;
    line-height: 1;
    padding: 0.95rem 1.3rem;
    text-decoration: none;
}

.shoobie-button:hover,
.shoobie-button:focus {
    background: #ffe3ad;
    transform: translateY(-1px);
}

.shoobie-button--secondary,
.shoobie-button--secondary:visited {
    background: rgba(255, 248, 235, 0.13);
    color: #fff8eb;
}

.shoobie-button--secondary:hover,
.shoobie-button--secondary:focus {
    background: rgba(255, 248, 235, 0.24);
    color: #fff8eb;
}

/* Postcard tucked mid-height on the right side of the hero */
.shoobie-decor--postcard {
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35));
    right: clamp(1rem, 6vw, 5rem);
    top: 50%;
    transform: translateY(-50%) rotate(6deg);
    width: clamp(160px, 16vw, 250px);
    z-index: 10;
}

/* ---------- Wave / sand transition strip ---------- */

.shoobie-wave-edge {
    line-height: 0;
    margin-top: -70px;
    position: relative;
    z-index: 2;
}

.shoobie-wave-edge img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.55) 18px, black 42px);
    display: block;
    height: clamp(90px, 11vw, 160px);
    mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.55) 18px, black 42px);
    object-fit: cover;
    width: 100%;
}

/* ---------- Decorative scatter (shells / starfish) ---------- */

.shoobie-decor-host {
    overflow: visible;
    position: relative;
}

.shoobie-decor {
    filter: drop-shadow(0 12px 20px rgba(65, 42, 24, 0.28));
    pointer-events: none;
    position: absolute;
    user-select: none;
    z-index: 1;
}

/* Anchored to the "What is a Shoobie?" feature card */
.shoobie-feature {
    overflow: visible;
    position: relative;
}

.shoobie-decor--shell-scallop {
    bottom: -28px;
    left: -46px;
    transform: rotate(-12deg);
    width: clamp(80px, 6.5vw, 120px);
}

.shoobie-decor--starfish-small {
    right: -24px;
    top: -30px;
    transform: rotate(14deg);
    width: clamp(70px, 5.5vw, 100px);
}

/* Anchored to the card grid */
.shoobie-card-grid {
    overflow: visible;
    position: relative;
}

.shoobie-decor--starfish-big {
    left: -90px;
    top: -40px;
    transform: rotate(-16deg);
    width: clamp(100px, 9vw, 160px);
}

.shoobie-decor--shell-mix {
    right: -70px;
    top: -50px;
    transform: rotate(8deg);
    width: clamp(110px, 10vw, 170px);
}

.shoobie-decor--conch {
    bottom: -34px;
    left: -60px;
    transform: rotate(18deg);
    width: clamp(90px, 8vw, 140px);
}

.shoobie-decor--shell-cluster {
    bottom: -30px;
    right: -60px;
    transform: rotate(-8deg);
    width: clamp(100px, 9vw, 150px);
}

@media (max-width: 1180px) {
    .shoobie-decor--shell-scallop,
    .shoobie-decor--starfish-small,
    .shoobie-decor--starfish-big,
    .shoobie-decor--shell-mix,
    .shoobie-decor--conch,
    .shoobie-decor--shell-cluster {
        display: none;
    }
}

/* Scattered shells/starfish along the far outer margins on wide screens */
.shoobie-margin-decor {
    opacity: 0.92;
    z-index: 1;
}

.shoobie-margin-decor--l1 {
    left: 1.5%;
    top: 6%;
    transform: rotate(-14deg);
    width: clamp(70px, 5.5vw, 110px);
}

.shoobie-margin-decor--l2 {
    left: 0.5%;
    top: 34%;
    transform: rotate(10deg);
    width: clamp(60px, 4.5vw, 90px);
}

.shoobie-margin-decor--l3 {
    left: 2%;
    top: 64%;
    transform: rotate(-8deg);
    width: clamp(80px, 6vw, 130px);
}

.shoobie-margin-decor--r1 {
    right: 1%;
    top: 10%;
    transform: rotate(8deg);
    width: clamp(90px, 6.5vw, 140px);
}

.shoobie-margin-decor--r2 {
    right: 1.5%;
    top: 42%;
    transform: rotate(-12deg);
    width: clamp(70px, 5.5vw, 110px);
}

.shoobie-margin-decor--r3 {
    right: 0.5%;
    top: 70%;
    transform: rotate(12deg);
    width: clamp(65px, 5vw, 100px);
}

@media (max-width: 1700px) {
    .shoobie-margin-decor {
        display: none;
    }
}

/* ---------- Content wrap ---------- */

.shoobie-content-wrap {
    margin: 0 auto;
    max-width: 1232px;
    padding: clamp(2.25rem, 5vw, 4.5rem) 1.25rem clamp(4.5rem, 9vw, 8rem);
    position: relative;
    z-index: 4;
}

.shoobie-feature {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 248, 235, 0.96), rgba(241, 207, 154, 0.54)),
        repeating-linear-gradient(0deg, rgba(156, 95, 56, 0.07) 0 1px, transparent 1px 13px);
    border: 1px solid rgba(156, 95, 56, 0.22);
    border-radius: 26px;
    box-shadow: var(--shoobie-shadow);
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 0.8fr 2.2fr auto;
    margin: 0 auto clamp(2.8rem, 6vw, 5rem);
    overflow: visible;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    position: relative;
    width: 80%;
}

.shoobie-feature h2 {
    font-size: clamp(2rem, 4vw, 3.35rem);
    margin: 0 0 0.45rem;
}

.shoobie-feature p {
    margin: 0;
}

.shoobie-text-link,
.shoobie-text-link:visited {
    color: var(--shoobie-ocean-dark);
    font-weight: 800;
    text-decoration-color: rgba(15, 111, 139, 0.35);
    text-underline-offset: 0.28em;
    white-space: nowrap;
}

.shoobie-section-heading {
    margin: 0 auto 1.75rem;
    max-width: 980px;
    text-align: center;
}

.shoobie-section-heading .shoobie-kicker {
    color: var(--shoobie-wood);
}

.shoobie-section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin: 0;
}

.shoobie-card-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shoobie-card {
    background: var(--shoobie-card);
    border: 1px solid rgba(156, 95, 56, 0.2);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(65, 42, 24, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.25rem 1.35rem;
    position: relative;
}

.shoobie-card::before {
    background: linear-gradient(90deg, var(--shoobie-ocean), var(--shoobie-postcard), var(--shoobie-wood));
    border-radius: 8px 8px 0 0;
    content: "";
    height: 5px;
    left: -1px;
    position: absolute;
    right: -1px;
    top: -1px;
}

.shoobie-card h3 {
    font-size: 1.5rem;
    margin: 0 0 0.55rem;
}

.shoobie-card h3 a,
.shoobie-card h3 a:visited {
    color: var(--shoobie-ocean-dark);
    text-decoration: none;
}

.shoobie-card h3 a:hover,
.shoobie-card h3 a:focus,
.shoobie-card__link:hover,
.shoobie-card__link:focus {
    color: var(--shoobie-ocean);
}

.shoobie-card p:not(.shoobie-card__eyebrow) {
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 1.3rem;
}

.shoobie-card__link,
.shoobie-card__link:visited {
    align-self: flex-start;
    background: rgba(15, 111, 139, 0.1);
    border: 1px solid rgba(15, 111, 139, 0.24);
    border-radius: 999px;
    color: var(--shoobie-ocean-dark);
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    margin-top: auto;
    padding: 0.7rem 0.9rem;
    text-decoration: none;
    text-decoration-color: rgba(156, 95, 56, 0.38);
    text-underline-offset: 0.24em;
}

.shoobie-card__link:hover,
.shoobie-card__link:focus {
    background: var(--shoobie-ocean);
    border-color: var(--shoobie-ocean);
    color: #fff8eb;
}

.shoobie-card h3 a {
    align-items: center;
    display: inline-flex;
    gap: 0.65rem;
    max-width: 100%;
}

.shoobie-card h3 a span:last-child {
    min-width: 0;
}

.shoobie-card__icon {
    align-items: center;
    background: rgba(241, 207, 154, 0.45);
    border: 1px solid rgba(156, 95, 56, 0.18);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1.71rem;
    height: 3.06rem;
    justify-content: center;
    line-height: 1;
    width: 3.06rem;
}

/* ---------- Share-a-memory band ---------- */

.shoobie-share-memory {
    background:
        linear-gradient(135deg, rgba(15, 111, 139, 0.92), rgba(22, 71, 92, 0.96)),
        repeating-linear-gradient(90deg, rgba(255, 248, 235, 0.08) 0 1px, transparent 1px 34px);
    border: 9px solid transparent;
    border-image: repeating-linear-gradient(
        45deg,
        #b3844f 0 7px,
        #8a5f38 7px 14px
    ) 9;
    border-radius: 4px;
    box-shadow: var(--shoobie-shadow);
    margin-top: clamp(2.2rem, 5vw, 4rem);
    padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1.5rem, 4vw, 3rem);
    position: relative;
    text-align: center;
}

.shoobie-share-memory .shoobie-kicker {
    color: var(--shoobie-postcard);
}

.shoobie-share-memory h2 {
    color: var(--shoobie-sand-light);
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin: 0 0 0.9rem;
}

.shoobie-share-memory p {
    color: #fff1d1;
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
}

.shoobie-share-memory__email {
    font-weight: 800;
    margin-bottom: 0;
    margin-top: 1.35rem;
}

.shoobie-share-memory__email a,
.shoobie-share-memory__email a:visited {
    color: #fff8eb;
    text-decoration-color: rgba(255, 248, 235, 0.42);
    text-underline-offset: 0.24em;
}

.shoobie-share-memory__email a:hover,
.shoobie-share-memory__email a:focus {
    color: var(--shoobie-postcard);
}

/* Vintage photo stack overhanging the bottom-left of the band */
.shoobie-decor--photo-stack {
    bottom: -34px;
    height: 110px;
    left: clamp(0.5rem, 4vw, 2.5rem);
    position: absolute;
    width: 190px;
    z-index: 5;
}

.shoobie-decor--photo {
    border: 7px solid #f8f2e2;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35);
    filter: sepia(0.6) contrast(1.05) saturate(1.1);
    height: auto;
    position: absolute;
    width: 140px;
}

.shoobie-decor--photo-1 {
    left: 0;
    top: 4px;
    transform: rotate(-9deg);
    z-index: 1;
}

.shoobie-decor--photo-2 {
    left: 36px;
    top: 18px;
    transform: rotate(7deg);
    z-index: 2;
}

/* Message bottle overhanging the bottom-right of the band */
.shoobie-decor--bottle {
    bottom: -40px;
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.35));
    position: absolute;
    right: clamp(0.75rem, 4vw, 2.5rem);
    transform: rotate(-8deg);
    width: clamp(100px, 10vw, 145px);
    z-index: 5;
}

/* Small starfish tucked at the top-left of the band */
.shoobie-decor--band-starfish {
    left: clamp(0.5rem, 3vw, 1.5rem);
    top: -18px;
    transform: rotate(-10deg);
    width: clamp(55px, 5vw, 78px);
    z-index: 4;
}

@media (max-width: 900px) {
    .shoobie-decor--photo-stack,
    .shoobie-decor--bottle,
    .shoobie-decor--band-starfish {
        display: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .shoobie-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .shoobie-hero {
        min-height: 580px;
        padding: 4.5rem 1.1rem;
    }

    .shoobie-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .shoobie-button {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .shoobie-decor--postcard {
        right: 1rem;
        top: 55%;
        width: 130px;
    }

    .shoobie-feature {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .shoobie-text-link {
        white-space: normal;
    }

    .shoobie-card h3 a {
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .shoobie-card-grid {
        grid-template-columns: 1fr;
    }

    .shoobie-card {
        padding: 1.25rem;
    }
}
