/* ============================================================
   HOME PAGE — home.css
   ============================================================ */

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100svh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: var(--c-black);
    /* Page-load fade-in */
    animation: hero-reveal 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-reveal {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Background wrapper — extra height for parallax travel */
.hero__bg {
    position: absolute;
    top: -15%;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130%;
    will-change: transform;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*
     * Shift right so cream/light areas of the composition sit in the upper-right
     * quadrant, away from the bottom-left typography zone.
     */
    object-position: 68% 35%;
    display: block;
}

/*
 * Three stacked gradient layers:
 * 1. Left shield   — protects typography from painting tones
 * 2. Bottom scrim  — anchors the heading/subtitle area
 * 3. Top vignette  — keeps nav readable
 * Layers blend additively; none individually looks like a "block".
 */
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,
            rgba(0,0,0,0.62) 0%,
            rgba(0,0,0,0.38) 22%,
            rgba(0,0,0,0.10) 45%,
            rgba(0,0,0,0.0)  60%
        ),
        linear-gradient(to top,
            rgba(0,0,0,0.72) 0%,
            rgba(0,0,0,0.45) 18%,
            rgba(0,0,0,0.10) 38%,
            rgba(0,0,0,0.0)  55%
        ),
        linear-gradient(to bottom,
            rgba(0,0,0,0.28) 0%,
            rgba(0,0,0,0.0)  20%
        );
    pointer-events: none;
}

/* ── Hero content — bottom-left, editorial ───────────────── */
.hero__content {
    position: relative;
    z-index: 2;
    padding: 0 var(--gutter) clamp(var(--space-12), 6vw, var(--space-20));
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    animation: hero-content-rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

@keyframes hero-content-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: var(--space-3);
}

.hero__name {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 7.5vw, 7rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.015em;
    color: var(--c-white);
    text-shadow: 0 2px 32px rgba(0,0,0,0.35);
    margin: 0 0 var(--space-5);
}

.hero__subtitle {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 300;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.72);
    max-width: none;
    margin: 0;
}

/* ── Scroll indicator ───────────────────────────────────── */
.hero__scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    z-index: 2;
    text-decoration: none;
    animation: hero-content-rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
    transition: opacity var(--transition-base);
}

.hero__scroll-indicator:hover {
    opacity: 0.6;
}

.hero__scroll-line {
    display: block;
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.3);
    transform-origin: top;
    animation: scroll-drop 2.6s cubic-bezier(0.45, 0, 0.55, 1) 1.2s infinite;
}

@keyframes scroll-drop {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
    30%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    31%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
    65%  { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
    100% { transform: scaleY(0); transform-origin: top; opacity: 0; }
}

.hero__scroll-label {
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 480px) {
    .hero__name {
        font-size: clamp(3rem, 13vw, 3.5rem);
    }
    .hero__eyebrow {
        font-size: 9px;
        letter-spacing: 0.18em;
    }
    .hero__content {
        padding-bottom: var(--space-20);
    }
}

/* ── Intro ───────────────────────────────────────────────── */
/*
 * Asymmetric padding: less top (hero above provides weight), more bottom
 * (leads the eye into the featured grid). Intentionally lighter than .section.
 */
.intro-section {
    text-align: center;
    padding-top: clamp(var(--space-16), 5vw, var(--space-20));
    padding-bottom: clamp(var(--space-20), 7vw, var(--space-28));
}

.intro-text {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
    font-weight: 300;
    line-height: 1.65;
    color: var(--c-grey-dark);
    margin-inline: auto;
}

/* ── Featured section ───────────────────────────────────── */
/*
 * Thin top rule marks the landing point — makes the transition from intro
 * (white) feel deliberate rather than accidental. Explicit padding overrides
 * section--tight to ensure the grid has room to breathe.
 */
.featured-section {
    padding-block: clamp(var(--space-12), 5vw, var(--space-20));
    border-top: 1px solid var(--c-grey-line);
}

/* ── Featured section header ────────────────────────────── */
.featured-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.featured-header .section-heading {
    margin-bottom: 0;
}

.featured-view-all {
    font-size: var(--text-sm);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--c-grey-mid);
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.featured-view-all:hover {
    color: var(--c-black);
}

/* ── Services ────────────────────────────────────────────── */
.services-section {
    background-color: var(--c-grey-light);
}

/* Tighter heading-to-grid gap — the grey bg provides enough weight above */
.services-section .section-heading {
    margin-bottom: var(--space-10);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-10);
    }
}

.service-item {
    text-align: center;
}

.service-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-inline: auto;
    margin-bottom: var(--space-4);
    color: var(--c-black);
    transition: transform 400ms var(--ease-spring);
}

.service-item:hover .service-item__icon {
    transform: translateY(-3px);
}

.service-item__title {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 400;
    margin-bottom: var(--space-2);
}

.service-item__desc {
    font-size: var(--text-sm);
    font-weight: 300;
    color: var(--c-grey-mid);
    line-height: 1.6;
    margin-inline: auto;
}

/* ── Testimonials ────────────────────────────────────────── */
/*
 * Extra top padding separates this visually from the services section above —
 * both are grey-light, so spatial pause does the work the border can't alone.
 */
.testimonials-section {
    padding-top: clamp(var(--space-20), 7vw, var(--space-28));
}

.testimonials-section .section-heading {
    margin-bottom: var(--space-10);
}

.testimonials-swiper {
    padding-bottom: var(--space-10);
}

.testimonials-pagination {
    bottom: 0 !important;
}

.testimonials-pagination .swiper-pagination-bullet {
    background: var(--c-grey-mid);
    opacity: 0.4;
}

.testimonials-pagination .swiper-pagination-bullet-active {
    background: var(--c-black);
    opacity: 1;
}
