/* =====================================================
   ANIMAL CONNECT TRUST
   FINAL CSS
   Desktop: full-screen poster layout
   Mobile: clean vertical layout — same brand,
           same photos, same cloud, same buttons,
           arranged so nothing overlaps and text is readable.
   Plus: Welcome popup on page load with full image.
===================================================== */

:root {
    --dark-green: #21472f;
    --forest-green: #315b36;
    --olive-green: #668744;
    --light-olive: #78964d;
    --orange: #ef7538;
    --cream: #f8f8e8;
    --paper: #fffef1;
    --text-green: #315638;
    --blend-bg: #7a8a5e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: #000;
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

.page {
    width: 100%;
    max-width: 1500px;
    margin: auto;
    background: var(--cream);
    overflow-x: hidden;
}

/* =====================================================
   NAVBAR
===================================================== */
.navbar {
    height: 90px;
    padding: 0 5%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 100;
}

.brand-area { display: flex; align-items: center; gap: 12px; }

.brand-logo { width: 62px; height: 62px; overflow: hidden; flex-shrink: 0; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }

.brand-text h1 {
    font-family: Georgia, serif;
    font-size: 23px; line-height: 1; white-space: nowrap;
}
.brand-text h1 span { color: var(--orange); }
.brand-text h1 b { color: var(--olive-green); }

.brand-text p {
    margin-top: 6px;
    font-family: "Caveat", cursive;
    color: var(--olive-green);
    font-size: 16px;
}

nav { display: flex; align-items: center; gap: 34px; }

nav a {
    color: var(--dark-green);
    font-size: 16px; font-weight: 600;
    position: relative; transition: 0.25s ease;
}
nav a:hover { color: var(--orange); }

nav .active::after {
    content: ""; position: absolute;
    left: 0; right: 0; bottom: -12px;
    height: 3px; background: var(--dark-green);
    border-radius: 50%;
}

.donate {
    color: white !important;
    background: var(--dark-green);
    padding: 13px 21px; border-radius: 12px;
    display: flex; align-items: center; gap: 9px;
    transition: 0.25s ease;
}
.donate:hover { background: var(--forest-green); transform: translateY(-2px); }
.nav-paw { color: var(--olive-green); font-size: 22px; }

/* =====================================================
   HERO
===================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 700px;
    overflow: hidden;
    background: var(--blend-bg);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: var(--blend-bg);
}

.hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center center;
    filter: brightness(1.02) saturate(1.05) contrast(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, transparent 20%, transparent 75%, rgba(0,0,0,0.35) 100%);
}

/* =====================================================
   SIDE BORDERS
===================================================== */
.side-border {
    position: absolute;
    z-index: 20;
    top: 0; bottom: 0;
    width: 55px;
    background: linear-gradient(to bottom,
        rgba(33, 71, 47, 0.85) 0%,
        rgba(49, 91, 54, 0.90) 50%,
        rgba(33, 71, 47, 0.85) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.15);
}

.side-border.left { left: 0; border-right: 2px solid rgba(255, 255, 255, 0.15); }
.side-border.right { right: 0; border-left: 2px solid rgba(255, 255, 255, 0.15); }

.side-border-text {
    font-family: "Caveat", cursive;
    font-size: 22px; font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 3px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}
.side-border.right .side-border-text { transform: rotate(0deg); }

.side-border-icon {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    animation: pulse-icon 3s ease-in-out infinite;
}
.side-border-icon:nth-child(2) { animation-delay: 0.5s; }
.side-border-icon:nth-child(3) { animation-delay: 1s; }

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.2); opacity: 1; color: var(--orange); }
}

.side-border-dot {
    width: 5px; height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.mobile-top-block { display: contents; }
.photo-row { display: contents; }

/* =====================================================
   CLOUD TITLE
===================================================== */
.main-title {
    position: absolute;
    z-index: 30;
    bottom: 190px;
    left: 75px;
    width: 100%;
    min-width: 260px;
    max-width: 320px;
    padding: 16px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 40px 40px 40px 12px;
    box-shadow: 0 10px 30px rgba(33, 71, 47, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.main-title h2 {
    margin: 0;
    font-family: "Kalam", cursive;
    font-size: clamp(20px, 2.3vw, 28px);
    line-height: 0.95; font-weight: 700;
    color: var(--dark-green);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.7);
}
.main-title h2 span { color: var(--olive-green); }

.main-title p {
    margin-top: 8px;
    color: var(--text-green);
    font-size: 11px; line-height: 1.35; font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 6px rgba(255, 255, 255, 0.7);
}

.title-heart, .title-lines, .title-paw {
    position: absolute; color: var(--dark-green); opacity: 0.7;
}
.title-heart { top: 10px; left: 18px; font-size: 22px; transform: rotate(-15deg); }
.title-lines { top: 15px; left: 42px; font-size: 15px; transform: rotate(-20deg); }
.title-paw { right: 18px; bottom: 18px; font-size: 17px; transform: rotate(-15deg); }

.title-underline {
    width: 90px; height: 3px;
    margin: 8px auto 0;
    background: var(--olive-green);
    border-radius: 50%;
    transform: rotate(-2deg); opacity: 0.8;
}

/* =====================================================
   TYPEWRITER
===================================================== */
.typewriter,
.typewriter-2,
.typewriter-3,
.typewriter-4 {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid transparent;
    width: 0;
    animation-fill-mode: forwards;
}

.typewriter { animation: typing 2s steps(20, end) 0.5s forwards, blink-caret 0.75s step-end infinite; }
.typewriter-2 { animation: typing 1.5s steps(15, end) 2.5s forwards, blink-caret 0.75s step-end infinite; }
.typewriter-3 { animation: typing 2.5s steps(30, end) 4s forwards, blink-caret 0.75s step-end infinite; }
.typewriter-4 { animation: typing 1.5s steps(15, end) 6.5s forwards, blink-caret 0.75s step-end infinite; }

@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--olive-green); }
}

/* =====================================================
   PHOTO CARDS
===================================================== */
.photo-card {
    position: absolute;
    z-index: 25;
    background: var(--paper);
    padding: 12px 12px 55px 12px;
    border-radius: 4px;
    border: 3px solid #ffffff;
    outline: 1px solid rgba(33, 71, 47, 0.15);
    outline-offset: 3px;
    box-shadow:
        0 4px 8px rgba(38, 60, 31, 0.15),
        0 10px 25px rgba(38, 60, 31, 0.25),
        0 20px 40px rgba(38, 60, 31, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    max-width: calc(100% - 20px);
}

.photo-card::before,
.photo-card::after {
    content: "";
    position: absolute;
    width: 45px; height: 18px;
    background: rgba(255, 249, 200, 0.75);
    border: 1px solid rgba(200, 190, 140, 0.5);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 5;
}
.photo-card::before { top: -8px; left: 20px; transform: rotate(-8deg); }
.photo-card::after { top: -8px; right: 20px; transform: rotate(8deg); }

.photo-card img {
    display: block; width: 100%;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(33, 71, 47, 0.1);
}

.photo-label {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    bottom: 15px;
    padding: 8px 18px;
    background: var(--forest-green);
    color: white; border-radius: 20px;
    font-family: "Caveat", cursive;
    font-size: 17px; line-height: 1.05;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 2px solid rgba(255, 255, 255, 0.9);
    text-align: center;
    white-space: nowrap;
}

.left-card {
    width: 240px; height: 270px;
    left: 75px; top: 60px;
    padding: 10px 10px 52px 10px;
    transform: rotate(-4deg);
    animation: float-left 4.5s ease-in-out infinite;
}
.left-card img {
    height: 180px;
    border: 2px dashed rgba(33, 71, 47, 0.2);
    padding: 3px;
    background: #fffef1;
}

.right-top-card {
    width: 220px; height: 290px;
    right: 75px; top: 50px;
    padding: 10px 10px 52px 10px;
    transform: rotate(-6deg);
    animation: float-right-top 5.2s ease-in-out infinite;
    border-color: #f5e6a8;
}
.right-top-card img { height: 195px; }
.right-top-card p {
    position: absolute;
    bottom: 14px; left: 0; right: 0;
    text-align: center;
    font-family: "Caveat", cursive;
    color: var(--text-green);
    font-size: 14px; line-height: 1.1;
    padding: 0 8px;
}

.right-bottom-card {
    width: 220px; height: 300px;
    right: 75px; bottom: 100px;
    padding: 10px 10px 52px 10px;
    transform: rotate(5deg);
    animation: float-right-bottom 4.8s ease-in-out infinite;
    border-color: #d4e5b8;
}
.right-bottom-card img { height: 210px; }
.right-bottom-card p {
    position: absolute;
    bottom: 15px; left: 0; right: 0;
    text-align: center;
    font-family: "Caveat", cursive;
    color: var(--text-green);
    font-size: 14px;
    padding: 0 8px;
}

@keyframes float-left {
    0%   { transform: rotate(-4deg) translateY(0) scale(1); }
    50%  { transform: rotate(-4deg) translateY(-14px) scale(1.02); }
    100% { transform: rotate(-4deg) translateY(0) scale(1); }
}
@keyframes float-right-top {
    0%   { transform: rotate(-6deg) translateY(0) scale(1); }
    50%  { transform: rotate(-6deg) translateY(-16px) scale(1.02); }
    100% { transform: rotate(-6deg) translateY(0) scale(1); }
}
@keyframes float-right-bottom {
    0%   { transform: rotate(5deg) translateY(0) scale(1); }
    50%  { transform: rotate(5deg) translateY(-12px) scale(1.02); }
    100% { transform: rotate(5deg) translateY(0) scale(1); }
}

.center-heart {
    position: absolute; z-index: 15; left: 48%; top: 380px;
    color: white; font-family: "Caveat", cursive;
    font-size: 55px; transform: rotate(-10deg);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* =====================================================
   ACTION BUTTONS
===================================================== */
.actions {
    position: absolute;
    z-index: 40;
    left: 50%;
    transform: translateX(-50%);
    bottom: 55px;
    width: 65%;
    max-width: 720px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.action {
    min-height: 100px;
    padding: 14px 16px;
    background: rgba(248, 247, 219, 0.95);
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(36, 61, 33, 0.15), inset 0 1px 0 rgba(255,255,255,0.5);
    transition: 0.3s ease;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.8);
}
.action:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(36, 61, 33, 0.25); }

.action-icon {
    width: 50px; min-width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: white; font-size: 22px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.action-icon.orange { background: var(--orange); }
.action-icon.green { background: var(--olive-green); }

.action-text h3 { font-family: "Caveat", cursive; font-size: 26px; line-height: 1; color: var(--olive-green); }
.action:nth-child(3) h3 { color: var(--orange); }
.action-text p { color: var(--text-green); font-size: 12px; line-height: 1.3; margin-top: 5px; }

/* =====================================================
   BOTTOM GREEN STRIP
===================================================== */
.bottom {
    position: absolute; z-index: 35;
    bottom: 0; left: 0; width: 100%; height: 44px;
    background: var(--forest-green);
    display: flex; justify-content: center; align-items: center;
}
.bottom::before { display: none; }

.bottom p {
    position: relative; z-index: 5; color: white;
    font-family: "Caveat", cursive; font-size: 20px; letter-spacing: 1px;
}
.bottom-decoration { position: absolute; z-index: 5; color: var(--olive-green); font-size: 42px; }
.bottom-decoration.left { left: 60px; bottom: -8px; transform: rotate(-30deg); }
.bottom-decoration.right { right: 60px; bottom: -8px; transform: rotate(30deg); }

/* =====================================================
   TRUST STRIP
===================================================== */
.trust-strip {
    background: var(--dark-green);
    padding: 26px 20px;
    position: relative;
    z-index: 10;
    border-top: 4px solid var(--orange);
}

.trust-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex; align-items: baseline; gap: 6px;
    color: #fffef1; white-space: nowrap;
}
.trust-number {
    font-family: "Kalam", cursive;
    font-size: 34px; font-weight: 700;
    color: var(--cream); line-height: 1;
}
.trust-plus {
    font-family: "Kalam", cursive;
    font-size: 26px; font-weight: 700;
    color: var(--orange); line-height: 1;
}
.trust-label {
    font-size: 15px; font-weight: 500;
    color: rgba(255, 254, 241, 0.92);
    letter-spacing: 0.5px; margin-left: 4px;
}
.trust-divider {
    color: var(--olive-green);
    font-size: 24px; font-weight: 700;
    line-height: 1; opacity: 0.75;
}

/* =====================================================
   SITE FOOTER
===================================================== */
.site-footer {
    background: var(--cream);
    color: var(--dark-green);
    padding: 40px 5% 0 5%;
    border-top: 3px solid var(--olive-green);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1.4fr auto;
    gap: 40px;
    align-items: center;
    padding-bottom: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo {
    width: 60px; height: 60px; flex-shrink: 0;
    background: white; border-radius: 50%;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(33, 71, 47, 0.15);
}
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand-text h3 {
    font-family: Georgia, serif; font-size: 20px; line-height: 1; margin: 0;
}
.footer-brand-text h3 span { color: var(--orange); }
.footer-brand-text h3 b { color: var(--olive-green); }
.footer-brand-text p {
    font-family: "Caveat", cursive;
    color: var(--olive-green); font-size: 15px; margin-top: 4px;
}
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-item {
    display: flex; align-items: center; gap: 12px;
    color: var(--dark-green);
    transition: transform 0.2s ease, color 0.2s ease;
}
.footer-item:hover { transform: translateX(4px); color: var(--orange); }
.footer-icon {
    width: 40px; min-width: 40px; height: 40px;
    border-radius: 50%; background: var(--forest-green);
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(33, 71, 47, 0.2);
}
.footer-text { display: flex; flex-direction: column; line-height: 1.2; }
.footer-text small {
    font-size: 11px; text-transform: uppercase;
    letter-spacing: 1px; color: var(--olive-green); font-weight: 600;
}
.footer-text strong { font-size: 15px; font-weight: 600; color: var(--dark-green); }
.footer-social { display: flex; gap: 10px; justify-content: flex-end; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--dark-green); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: 0.25s ease;
    box-shadow: 0 4px 10px rgba(33, 71, 47, 0.2);
}
.footer-social a:hover { background: var(--orange); transform: translateY(-3px); }
.footer-copy {
    border-top: 1px solid rgba(33, 71, 47, 0.15);
    padding: 16px 0; text-align: center;
}
.footer-copy p { font-size: 12px; color: var(--olive-green); letter-spacing: 0.3px; }

/* =====================================================
   TABLET (901 – 1200)
===================================================== */
@media (min-width: 901px) and (max-width: 1200px) {
    .navbar { padding: 0 3%; }
    nav { gap: 18px; }
    nav a { font-size: 14px; }

    .side-border { width: 45px; }
    .side-border-text { font-size: 18px; letter-spacing: 2px; }
    .side-border-icon { font-size: 15px; }

    .main-title { bottom: 160px; left: 60px; max-width: 300px; padding: 14px 16px; }
    .main-title h2 { font-size: 24px; }

    .left-card { width: 190px; height: 220px; left: 55px; top: 50px; padding: 8px 8px 45px 8px; }
    .left-card img { height: 150px; }
    .right-top-card { width: 180px; height: 240px; right: 55px; top: 40px; padding: 8px 8px 45px 8px; }
    .right-top-card img { height: 160px; }
    .right-bottom-card { width: 180px; height: 250px; right: 55px; bottom: 90px; padding: 8px 8px 45px 8px; }
    .right-bottom-card img { height: 170px; }

    .actions { width: 70%; bottom: 50px; gap: 12px; }
    .action { padding: 12px 14px; min-height: 90px; }
    .action-text h3 { font-size: 22px; }
}

/* =====================================================
   SMALL DESKTOP (701 – 900)
===================================================== */
@media (min-width: 701px) and (max-width: 900px) {
    .side-border { width: 40px; }
    .side-border-text { font-size: 15px; letter-spacing: 1px; }
    .side-border-icon { font-size: 13px; }

    .main-title { bottom: 140px; left: 45px; max-width: 280px; padding: 12px 14px; }
    .main-title h2 { font-size: 22px; }
    .main-title p { font-size: 10px; }

    .left-card { width: 160px; height: 180px; left: 45px; top: 40px; padding: 8px 8px 40px 8px; }
    .left-card img { height: 120px; }
    .right-top-card { width: 150px; height: 200px; right: 45px; top: 35px; padding: 8px 8px 40px 8px; }
    .right-top-card img { height: 130px; }
    .right-bottom-card { width: 150px; height: 210px; right: 45px; bottom: 80px; padding: 8px 8px 40px 8px; }
    .right-bottom-card img { height: 140px; }

    .actions { width: 80%; bottom: 45px; gap: 10px; }
    .action { padding: 10px 12px; min-height: 85px; }
    .action-text h3 { font-size: 20px; }
    .action-icon { width: 44px; min-width: 44px; height: 44px; font-size: 20px; }

    .photo-label { font-size: 12px; padding: 6px 12px; }
    .right-top-card p, .right-bottom-card p { font-size: 11px; }
}

/* =====================================================
   MOBILE (≤ 700)
===================================================== */
@media (max-width: 700px) {

    body { background: var(--cream); overflow-x: hidden; }
    .page { width: 100%; max-width: 100%; transform: none; }

    /* ---------- NAVBAR ---------- */
    .navbar {
        height: auto;
        padding: 10px 12px;
        flex-direction: column;
        gap: 8px;
        justify-content: center;
    }
    .brand-area { justify-content: center; width: 100%; gap: 8px; }
    .brand-logo { width: 42px; height: 42px; }
    .brand-text h1 { font-size: 16px; white-space: nowrap; }
    .brand-text p { font-size: 12px; margin-top: 2px; }
    nav { gap: 12px; flex-wrap: wrap; justify-content: center; width: 100%; }
    nav a { font-size: 12px; }
    .donate { padding: 7px 12px; font-size: 12px; border-radius: 8px; gap: 5px; }
    .nav-paw { font-size: 16px; }
    nav .active::after { bottom: -5px; height: 2px; }

    /* ---------- HERO — vertical stack ---------- */
    .hero {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
        overflow: visible;
        background: var(--blend-bg);
        padding: 0 0 12px 0;
    }

    .hero-image {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        order: 1;
        z-index: 1;
        background: var(--blend-bg);
    }
    .hero-image img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
        object-position: center top;
        filter: none;
    }
    .hero-overlay { display: none; }

    .side-border { display: none; }

    /* ---------- CLOUD — full width card below the image ---------- */
    .main-title {
        position: relative;
        inset: auto;
        top: auto; left: auto; right: auto; bottom: auto;
        order: 2;
        width: calc(100% - 24px);
        max-width: 100%;
        min-width: 0;
        margin: 12px auto 0 auto;
        padding: 16px 18px;
        border-radius: 22px 22px 22px 8px;
        background: var(--paper);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 2px solid rgba(33, 71, 47, 0.12);
        box-shadow: 0 6px 20px rgba(33, 71, 47, 0.12);
        z-index: 30;
    }
    .main-title h2 { font-size: 20px; line-height: 1.1; }
    .main-title p { font-size: 12px; margin-top: 6px; line-height: 1.3; }
    .title-heart, .title-lines, .title-paw { display: none; }
    .title-underline { width: 70px; height: 2px; margin-top: 8px; }

    .typewriter,
    .typewriter-2,
    .typewriter-3,
    .typewriter-4 {
        white-space: nowrap;
        font-size: 20px;
        line-height: 1.1;
    }
    .main-title p .typewriter-3,
    .main-title p .typewriter-4 {
        font-size: 12px;
        line-height: 1.3;
    }

    /* ---------- 3 PHOTO CARDS in one row ---------- */
    .mobile-top-block {
        display: contents;
        order: 3;
    }
    .photo-row {
        display: flex;
        order: 3;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
        width: calc(100% - 24px);
        margin: 12px auto 0 auto;
        padding: 0;
    }

    .photo-card {
        position: relative;
        top: auto; left: auto; right: auto; bottom: auto;
        width: 32%;
        height: auto;
        padding: 6px 6px 26px 6px;
        border-width: 2px;
        outline-width: 1px;
        transform: rotate(-2deg);
        animation: none;
        max-width: none;
    }
    .photo-card::before,
    .photo-card::after { display: none; }

    .left-card { transform: rotate(-3deg); }
    .right-top-card { transform: rotate(2deg); }
    .right-bottom-card { transform: rotate(-2deg); }

    .photo-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
    .left-card img {
        border: 1px dashed rgba(33, 71, 47, 0.2);
        padding: 2px;
    }

    .photo-label {
        font-size: 10px;
        padding: 3px 8px;
        bottom: 6px;
        border-width: 1px;
        white-space: normal;
        line-height: 1.1;
    }
    .right-top-card p,
    .right-bottom-card p {
        font-size: 9px;
        bottom: 6px;
        padding: 0 4px;
        line-height: 1.1;
    }

    .center-heart { display: none; }

    /* ---------- ACTION BUTTONS ---------- */
    .actions {
        position: relative;
        order: 4;
        left: auto;
        transform: none;
        bottom: auto;
        width: calc(100% - 24px);
        max-width: 100%;
        margin: 14px auto 0 auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        z-index: 40;
    }
    .action {
        min-height: 74px;
        padding: 12px 16px;
        border-radius: 16px;
        flex-direction: row;
        text-align: left;
        gap: 14px;
    }
    .action-icon {
        width: 44px; min-width: 44px; height: 44px;
        font-size: 20px;
        border-width: 2px;
    }
    .action-text h3 { font-size: 20px; }
    .action-text p { font-size: 12px; line-height: 1.25; margin-top: 3px; }
    .action-text strong { font-size: 12px; }

    /* ---------- BOTTOM GREEN STRIP ---------- */
    .bottom {
        position: relative;
        order: 5;
        bottom: auto;
        height: 40px;
        margin-top: 14px;
        width: 100%;
    }
    .bottom p {
        font-size: 13px;
        letter-spacing: 0.4px;
        padding: 0 40px;
        text-align: center;
    }
    .bottom-decoration { font-size: 24px; }
    .bottom-decoration.left { left: 14px; bottom: -4px; }
    .bottom-decoration.right { right: 14px; bottom: -4px; }

    /* ---------- TRUST STRIP ---------- */
    .trust-strip { padding: 18px 10px; }
    .trust-inner {
        gap: 4px;
        flex-wrap: nowrap;
        justify-content: space-between;
        max-width: 100%;
    }
    .trust-item {
        flex-direction: column;
        align-items: center;
        gap: 0;
        flex: 1 1 0;
    }
    .trust-number { font-size: 22px; }
    .trust-plus { font-size: 16px; margin-left: -1px; }
    .trust-label {
        font-size: 10px;
        margin-left: 0;
        margin-top: 3px;
        letter-spacing: 0.2px;
        text-align: center;
    }
    .trust-divider { display: none; }

    /* ---------- FOOTER ---------- */
    .site-footer { padding: 24px 14px 0 14px; }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-bottom: 18px;
        text-align: center;
    }
    .footer-brand { flex-direction: column; align-items: center; gap: 8px; }
    .footer-logo { width: 48px; height: 48px; }
    .footer-brand-text h3 { font-size: 17px; }
    .footer-brand-text p { font-size: 13px; }

    .footer-contact { align-items: center; }
    .footer-item {
        justify-content: flex-start;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        text-align: left;
    }
    .footer-text strong { font-size: 13px; }
    .footer-text small { font-size: 10px; }

    .footer-social { justify-content: center; }
    .footer-copy { padding: 12px 0; }
    .footer-copy p { font-size: 11px; line-height: 1.4; }

    /* ---------- Disable floating on mobile ---------- */
    .left-card,
    .right-top-card,
    .right-bottom-card,
    .main-title {
        animation: none;
    }
    .actions .action,
    .action-icon {
        animation: none;
    }
}

/* Extra small phones */
@media (max-width: 400px) {
    .main-title h2 { font-size: 18px; }
    .main-title p { font-size: 11px; }
    .action-text h3 { font-size: 18px; }
    .action-text p { font-size: 11px; }
    .trust-number { font-size: 20px; }
    .trust-label { font-size: 9px; }
    .bottom p { font-size: 12px; }
}

/* =====================================================
   FLOATING ANIMATIONS (desktop/tablet only)
===================================================== */
.main-title {
    animation: cloud-breathe 6s ease-in-out infinite;
}
@keyframes cloud-breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-3px) scale(1.01); }
}

.actions .action { animation: bob 3.6s ease-in-out infinite; }
.actions .action:nth-child(1) { animation-delay: 0s; }
.actions .action:nth-child(2) { animation-delay: 0.4s; }
.actions .action:nth-child(3) { animation-delay: 0.8s; }

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

.actions .action:hover {
    animation-play-state: paused;
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 16px 40px rgba(36, 61, 33, 0.3),
        0 0 0 3px rgba(239, 117, 56, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

.action-icon { animation: icon-pulse 2.6s ease-in-out infinite; }
.actions .action:nth-child(2) .action-icon { animation-delay: 0.5s; }
.actions .action:nth-child(3) .action-icon { animation-delay: 1s; }

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

.bottom-decoration { animation: leaf-sway 3s ease-in-out infinite; }
.bottom-decoration.right {
    animation-name: leaf-sway-right;
    animation-delay: 1.5s;
}
@keyframes leaf-sway {
    0%, 100% { transform: rotate(-30deg) translateY(0); }
    50%      { transform: rotate(-25deg) translateY(-3px); }
}
@keyframes leaf-sway-right {
    0%, 100% { transform: rotate(30deg) translateY(0); }
    50%      { transform: rotate(25deg) translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
    .left-card, .right-top-card, .right-bottom-card,
    .actions .action, .action-icon, .main-title, .bottom-decoration {
        animation: none !important;
    }
}

/* =====================================================
   WELCOME POPUP
   The image now fills the top of the popup at its
   natural aspect ratio — no cropping, no distortion.
===================================================== */
.welcome-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.welcome-popup.is-visible {
    display: flex;
}

/* Dimmed overlay behind the popup */
.welcome-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 40, 25, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.welcome-popup.is-visible .welcome-overlay {
    opacity: 1;
}

/* The popup box */
.welcome-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 40px);
    background: var(--paper);
    border-radius: 22px;
    border: 3px solid #ffffff;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        0 0 0 6px rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.92) translateY(10px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2),
                opacity 0.3s ease;
    z-index: 2;
}
.welcome-popup.is-visible .welcome-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Close (×) button */
.welcome-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-green);
    border: none;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 10;
}
.welcome-close:hover {
    background: var(--orange);
    color: white;
    transform: rotate(90deg) scale(1.05);
}

/* ---------- Image area — FULL IMAGE, no cropping ---------- */
/* ---------- Image area — fills the popup width, edge to edge ---------- */
/* ---------- Image area — FULL IMAGE, no cropping ---------- */
.welcome-image {
    width: 100%;
    height: auto;               /* Let the height adjust to the image */
    max-height: 55vh;           /* Prevents the image from taking over the whole screen */
    overflow: hidden;
    background: var(--blend-bg); /* Fills any empty space with your brand color */
    line-height: 0;
    border-radius: 22px 22px 0 0;
    flex-shrink: 0;
    display: flex;              /* Flex to perfectly center the image */
    justify-content: center;
    align-items: center;
}

.welcome-image img {
    width: 100%;
    height: auto;               /* Keeps the natural square aspect ratio */
    display: block;
    object-fit: contain;        /* Shows the ENTIRE image, zero cropping */
    object-position: center center;
    border-radius: 22px 22px 0 0;
} /* Removed the extra } that was breaking your CSS here */

/* Text content */
.welcome-content {
    padding: 22px 24px 24px;
    text-align: center;
    overflow-y: auto;             /* in case the popup gets very tall on tiny screens */
}

.welcome-content h3 {
    font-family: "Kalam", cursive;
    font-size: 24px;
    line-height: 1.1;
    color: var(--dark-green);
    margin-bottom: 10px;
}

.welcome-content p {
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-green);
    margin-bottom: 18px;
}
.welcome-content p strong {
    color: var(--orange);
    font-weight: 700;
}

/* Buttons inside popup */
.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.welcome-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 14px;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.25s ease;
    text-decoration: none;
}

.welcome-btn.primary {
    background: var(--orange);
    color: white;
    box-shadow: 0 6px 18px rgba(239, 117, 56, 0.35);
}
.welcome-btn.primary:hover {
    background: #d9631f;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(239, 117, 56, 0.45);
}

.welcome-btn.ghost {
    background: transparent;
    color: var(--text-green);
    border: 2px solid rgba(33, 71, 47, 0.2);
}
.welcome-btn.ghost:hover {
    background: rgba(33, 71, 47, 0.06);
    border-color: rgba(33, 71, 47, 0.4);
}

/* Prevent body scroll when popup is open */
body.popup-open {
    overflow: hidden;
}

/* Mobile tweaks for popup */
/* Mobile tweaks for popup */
@media (max-width: 480px) {
    .welcome-popup { padding: 14px; }
    .welcome-box {
        max-width: 100%;
        max-height: calc(100vh - 28px);
        border-radius: 18px;
    }
    .welcome-image {
        height: auto;
        max-height: 45vh;       /* Keeps the image smaller on phones so text/buttons are visible */
        border-radius: 18px 18px 0 0;
    }
    .welcome-image img {
        height: auto;
        object-fit: contain;
        border-radius: 18px 18px 0 0;
    }
    .welcome-content { padding: 18px 18px 20px; }
    .welcome-content h3 { font-size: 21px; }
    .welcome-content p { font-size: 13px; margin-bottom: 14px; }
    .welcome-btn { padding: 12px 16px; font-size: 14px; }
    .welcome-close { width: 30px; height: 30px; font-size: 20px; }
}   .welcome-close { width: 30px; height: 30px; font-size: 20px; }
}