/* css/site.css — shared visual polish layered on top of the Tailwind CDN build. */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    letter-spacing: -0.015em;
}

/* Hero sections with a photographic background + readable overlay */
.hero-photo {
    position: relative;
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.hero-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 32, 80, 0.92), rgba(30, 58, 138, 0.82) 55%, rgba(59, 130, 246, 0.55));
    z-index: 0;
}

.hero-photo > * {
    position: relative;
    z-index: 1;
}

/* Cards: a slightly lighter, more modern lift on hover */
.card-modern {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-modern:hover {
    transform: translateY(-3px);
}

/* Consistent photo treatment for in-content images */
.photo-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.photo-rounded {
    border-radius: 0.75rem;
}

/* Slightly tighter, calmer section rhythm site-wide */
.section-tight {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .section-tight {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }
}
