/* ══════════════════════════════════════════════════════════
   Yasashi Foundation – Common Styles
   ══════════════════════════════════════════════════════════ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Selection */
::selection {
    background: var(--gold-muted);
    color: var(--navy-dark);
}

/* Skip to content (accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--navy);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ── Gallery Grid ──────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.balanced-gallery-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.balanced-gallery-grid .gallery-item {
    grid-column: span 3;
}

.balanced-gallery-grid--last-3 .gallery-item:nth-last-child(-n+3) {
    grid-column: span 4;
}

.balanced-gallery-grid--last-2 .gallery-item:nth-last-child(-n+2) {
    grid-column: span 6;
}

.balanced-gallery-grid--last-1 .gallery-item:last-child {
    grid-column: span 12;
}

@media (max-width: 767px) {
    .balanced-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .balanced-gallery-grid .gallery-item,
    .balanced-gallery-grid--last-3 .gallery-item:nth-last-child(-n+3),
    .balanced-gallery-grid--last-2 .gallery-item:nth-last-child(-n+2),
    .balanced-gallery-grid--last-1 .gallery-item:last-child {
        grid-column: span 1;
    }
}

.gallery-grid .gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-grid .gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 34, 64, 0.7), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-grid .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ── Volunteer Cards ───────────────────────────────────── */
.volunteer-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.volunteer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(23, 55, 94, 0.08);
}

.volunteer-card .volunteer-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold-muted);
    margin-bottom: 1rem;
}

.volunteer-card h5 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.volunteer-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Blog Cards ────────────────────────────────────────── */
.blog-card .card-body h5 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    transition: color 0.3s;
}

.blog-card:hover .card-body h5 {
    color: var(--gold);
}

.blog-card .blog-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* ── Impact Counters ───────────────────────────────────── */
.impact-counter {
    text-align: center;
    padding: 2rem 1rem;
}

.impact-counter .counter-value {
    font-family: var(--font-display);
    font-size: 2.75rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.impact-counter .counter-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Values / Feature Cards ────────────────────────────── */
.value-card {
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}

.value-card:hover {
    border-color: var(--gold-muted);
    box-shadow: 0 8px 24px rgba(197, 165, 90, 0.1);
}

.value-card .value-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.value-card h5 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ── Breadcrumbs ───────────────────────────────────────── */
.breadcrumb-yasashi {
    background: transparent;
    padding: 0.75rem 0;
    font-size: 0.85rem;
}

.breadcrumb-yasashi .breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-yasashi .breadcrumb-item a:hover {
    color: var(--navy);
}

.breadcrumb-yasashi .breadcrumb-item.active {
    color: var(--navy);
    font-weight: 500;
}

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── Print ─────────────────────────────────────────────── */
@media print {

    .top-bar,
    #mainNavbar,
    .site-footer,
    .btn-back-top,
    #newsletter,
    .hero {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }
}