@media (max-width: 768px) {
    .image.left {
        margin: 0 0 2rem 0;
        max-width: none;
    }

    .image.right {
        margin: 0 0 2rem 0;
        max-width: none;
    }
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px;
}

.grid-container > .dog-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    justify-self: center;
}

.dog-card {
    background: white;
    padding: 16px 16px 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.img-container {
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f8f8f8;
    position: relative;
}

.img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.03);
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.dog-name {
    text-align: center;
    font-size: 18px;
    color: #333;
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    transition: transform 0.3s ease;
}

.dog-card a {
    border: none;
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Hover Effects */
.dog-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.dog-card:hover img {
    transform: scale(1.05);
}

.dog-card:hover .dog-name {
    transform: translateY(-3px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 8px;
        max-width: 400px;
    }

    .grid-container > .dog-card:last-child:nth-child(odd) {
        max-width: none;
    }

    .dog-card {
        padding: 12px 12px 36px;
    }

    .dog-name {
        font-size: 16px;
        bottom: 12px;
    }
}

/* Medium screens */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-container {
        gap: 20px;
        padding: 16px;
        max-width: 800px;
    }
}

/* Subtle film grain texture */
.img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.partners-section {
    max-width: 1200px;
    margin: 0 auto;
}

.partner-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.8;
}

.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.partner-card.reverse {
    grid-template-columns: 1fr 300px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.partner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-content p {
    font-size: 1.1rem;
    color: #4b5563;
    margin: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {

    .partner-card,
    .partner-card.reverse {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .partner-logo {
        padding: 1rem;
        order: 1;
    }

    .partner-content {
        order: 2;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.partner-card {
    animation: fadeInUp 0.6s ease forwards;
}

.partner-card:nth-child(2) {
    animation-delay: 0.2s;
}

.partner-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* ---------- Landing page redesign ---------- */

.lp-intro .lp-lead {
    max-width: 44rem;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 2;
    color: #3c434b;
}

.lp-section-title {
    text-align: center;
    margin: 5rem 0 2.5rem;
}

.lp-section-title::after {
    content: '';
    display: block;
    width: 3rem;
    height: 2px;
    margin: 1rem auto 0;
    background: var(--custom-black);
    opacity: 0.25;
}

/* "Why I do this" callout */
.lp-why {
    max-width: 46rem;
    margin: 0 auto 4.5rem;
    padding: 2.5rem 3rem;
    background: #f6f5f2;
    border-left: 4px solid var(--custom-black);
    border-radius: 4px;
}

.lp-why h3 {
    margin-bottom: 1rem;
}

.lp-why p {
    font-style: italic;
    color: #3c434b;
}

/* Photo gallery */
.lp-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0 -1rem;
}

.lp-gallery img {
    aspect-ratio: 2 / 3;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(30, 37, 45, 0.12);
}

.lp-gallery img:nth-child(even) {
    margin-top: 2.5rem;
}

/* Journey timeline */
.lp-timeline {
    list-style: none;
    max-width: 44rem;
    margin: 0 auto;
    padding: 0 0 0 2.5rem;
    position: relative;
}

.lp-timeline::before {
    content: '';
    position: absolute;
    top: 0.6rem;
    bottom: 0.6rem;
    left: 0.55rem;
    width: 2px;
    background: linear-gradient(to bottom, rgba(30, 37, 45, 0.05), rgba(30, 37, 45, 0.25), rgba(30, 37, 45, 0.05));
}

.lp-timeline li {
    position: relative;
    padding: 0 0 2.5rem;
}

.lp-timeline li:last-child {
    padding-bottom: 0;
}

.lp-timeline li::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.35rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--custom-black);
}

.lp-timeline h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.lp-timeline p,
.lp-why p {
    margin: 0;
    line-height: 1.9;
    text-align: left;
}

/* Scroll reveal (only active when JS adds .js-reveal) */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.js-reveal .lp-timeline li:nth-child(even).reveal {
    transition-delay: 0.08s;
}

@media (max-width: 980px) {
    .lp-gallery {
        grid-template-columns: repeat(2, 1fr);
        margin: 0;
    }
}

@media (max-width: 736px) {
    .lp-intro .lp-lead {
        font-size: 1rem;
        line-height: 1.85;
    }

    .lp-why {
        padding: 1.75rem 1.5rem;
        margin-bottom: 3rem;
    }

    .lp-section-title {
        margin: 3.5rem 0 2rem;
    }

    .lp-gallery {
        gap: 8px;
    }

    .lp-gallery img:nth-child(even) {
        margin-top: 1.5rem;
    }

    .lp-timeline {
        padding-left: 2rem;
    }

    .lp-timeline li::before {
        left: -2rem;
    }
}
