/* Apple-inspired design system — NBC */
:root {
    --nbc-radius: 20px;
    --nbc-radius-lg: 24px;
    --nbc-radius-sm: 16px;
    --nbc-space: clamp(4rem, 10vw, 8rem);
    --nbc-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --nbc-glass: rgba(255, 255, 255, 0.55);
    --nbc-glass-border: rgba(255, 255, 255, 0.45);
    --nbc-surface: #f5f5f7;
    --nbc-ink: #1d1d1f;
    --nbc-muted: #86868b;
}

body {
    background-color: #ffffff;
    color: var(--nbc-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.display-xl {
    font-family: 'Noreva Regular', Georgia, serif;
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    font-weight: 400;
}
.display-lg {
    font-family: 'Noreva Regular', Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
}
.display-md {
    font-family: 'Noreva Regular', Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nbc-muted);
}
.lead {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--nbc-muted);
    font-weight: 400;
}

/* Surfaces */
.section-apple {
    padding-top: var(--nbc-space);
    padding-bottom: var(--nbc-space);
}
.surface-soft {
    background: var(--nbc-surface);
}

/* Glassmorphism */
.glass {
    background: var(--nbc-glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--nbc-glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.glass-dark {
    background: rgba(29, 29, 31, 0.45);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.glass-featured {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.04),
        0 24px 64px rgba(0, 0, 0, 0.08);
}

/* Cards */
.card-apple {
    border-radius: var(--nbc-radius);
    background: #fff;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: transform 0.5s var(--nbc-ease), box-shadow 0.5s var(--nbc-ease), border-color 0.4s ease;
}
.card-apple:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 122, 79, 0.2);
}
.card-apple-lg {
    border-radius: var(--nbc-radius-lg);
}
.rounded-apple { border-radius: var(--nbc-radius) !important; }
.rounded-apple-lg { border-radius: var(--nbc-radius-lg) !important; }
.rounded-apple-sm { border-radius: var(--nbc-radius-sm) !important; }

/* Bento grid */
.bento {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .bento { gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .bento {
        gap: 1.5rem;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: minmax(160px, auto);
    }
    .bento-span-2 { grid-column: span 2; }
    .bento-span-3 { grid-column: span 3; }
    .bento-row-2 { grid-row: span 2; }
}

.bento-tile {
    border-radius: var(--nbc-radius);
    overflow: hidden;
    position: relative;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: transform 0.55s var(--nbc-ease), box-shadow 0.55s var(--nbc-ease), border-color 0.4s ease;
}
.bento-tile:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(13, 122, 79, 0.15);
}
.bento-tile-media {
    position: absolute;
    inset: 0;
}
.bento-tile-media img,
.bento-tile-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bento-tile-body {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 1.75rem;
}

/* Buttons */
.btn-apple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 980px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: transform 0.35s var(--nbc-ease), background 0.35s ease, box-shadow 0.35s ease;
}
.btn-apple:hover { transform: scale(1.03); }
.btn-apple-primary {
    background: var(--primary, #0d7a4f);
    color: #fff;
    box-shadow: 0 8px 24px rgba(13, 122, 79, 0.28);
}
.btn-apple-primary:hover { background: #065f3b; }
.btn-apple-glass {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.btn-apple-glass:hover { background: rgba(255, 255, 255, 0.28); }
.btn-apple-ghost {
    background: transparent;
    color: var(--primary, #0d7a4f);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-apple-ghost:hover {
    border-color: var(--primary, #0d7a4f);
    background: rgba(13, 122, 79, 0.04);
}

/* Cinematic hero */
.hero-cinematic {
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}
.hero-cinematic-media {
    position: absolute;
    inset: 0;
}
.hero-cinematic-media video,
.hero-cinematic-media img {
    width: 100%;
    height: 120%;
    object-fit: cover;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.1s ease;
    pointer-events: none;
}
.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.hero-slide video,
.hero-slide img {
    width: 100%;
    height: 120%;
    object-fit: cover;
}
.hero-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.45rem;
}
.hero-slider-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.45);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}
.hero-slider-dot.is-active {
    width: 1.35rem;
    background: #fff;
}
.hero-cinematic-veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 35%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.82) 100%),
        linear-gradient(90deg, rgba(0,0,0,0.45) 0%, transparent 55%);
}
.page-hero {
    min-height: 62vh;
}
@media (min-width: 768px) {
    .page-hero { min-height: 68vh; }
}

/* Link underline Apple-style */
.link-apple {
    color: var(--primary, #0d7a4f);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.35s var(--nbc-ease);
}
.link-apple:hover { gap: 0.65rem; }

/* Sitewide modern cards (legacy class upgrades) */
.card-hover {
    border-radius: var(--nbc-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: transform 0.5s var(--nbc-ease), box-shadow 0.5s var(--nbc-ease), border-color 0.4s ease;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 122, 79, 0.18);
}

/* Soft content cards used across listing pages */
main .bg-white.rounded-2xl.shadow-sm,
main .bg-white.rounded-3xl.shadow-sm,
main .bg-gray-50.rounded-3xl.card-hover,
main .bg-white.rounded-2xl.border.border-gray-100 {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    border-radius: var(--nbc-radius-lg) !important;
    transition: transform 0.5s var(--nbc-ease), box-shadow 0.5s var(--nbc-ease), border-color 0.4s ease;
}
main .bg-white.rounded-2xl.shadow-sm:hover,
main .bg-white.rounded-3xl.shadow-sm:hover,
main a:hover .bg-white.rounded-3xl.shadow-sm,
main a.group:hover .bg-gray-50.rounded-3xl {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.09) !important;
    border-color: rgba(13, 122, 79, 0.16) !important;
}

/* Natural front-end icon chips — no filled backgrounds */
main .w-12.h-12.bg-primary\/10:has(> i[data-lucide]),
main .w-14.h-14.bg-primary\/10:has(> i[data-lucide]),
main .w-10.h-10.bg-primary\/10:has(> i[data-lucide]),
main .w-12.h-12.bg-primary\/10:has(> svg),
main .w-14.h-14.sm\:w-16.sm\:h-16.bg-primary:has(> svg) {
    background: transparent !important;
    border-radius: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    .card-apple,
    .bento-tile,
    .btn-apple,
    .card-hover { transition: none !important; }
    .card-apple:hover,
    .bento-tile:hover,
    .btn-apple:hover,
    .card-hover:hover { transform: none !important; }
}
