/* =============================================================================
   Sevart Gallery — home.css
   Home page sections. New sections appended as we build them.
   ============================================================================= */


/* ─── Hero ──────────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* Background image */
.hero__bg {
    position: absolute;
    inset: 0;
    background-color: #2C2A27; /* dark fallback while image loads */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Subtle scale-in on load */
    animation: hero-scale 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes hero-scale {
    from { transform: scale(1.04); }
    to   { transform: scale(1); }
}

/* Gradient overlay — dark at bottom, light at top */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 25, 23, 0.55) 0%,   /* 🔥 darker top for nav readability */
        rgba(26, 25, 23, 0.25) 30%,
        rgba(26, 25, 23, 0.15) 55%,
        rgba(26, 25, 23, 0.75) 100%  /* keep strong bottom for text */
    );
}

/* Content block — sits in the lower-left */
.hero__content {
    position: relative;
    padding: 0 var(--page-pad) 80px;
    max-width: calc(760px + var(--page-pad) * 2);

    /* Fade + rise entrance */
    opacity: 0;
    transform: translateY(24px);
    animation: hero-enter 0.9s ease 0.25s forwards;
}

@keyframes hero-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__eyebrow {
    /* eyebrow + eyebrow--light utility classes handle typography */
    margin-bottom: 20px;
}

.hero__heading {
    font-size: var(--text-hero);
    color: #FAF7F4;
    margin-bottom: 18px;
    max-width: 640px;
}

.hero__subtext {
    font-family: var(--font-sans);
    font-size: 17px;
    color: rgba(250, 247, 244, 0.78);
    margin-bottom: 36px;
    line-height: 1.65;
    max-width: 520px;
}

.hero__cta {
    /* btn-gold utility class handles colours/padding */
}

/* Scroll indicator — bottom right */
.hero__scroll {
    position: absolute;
    bottom: 40px;
    right: var(--page-pad);
    display: flex;
    align-items: center;
    gap: 12px;

    opacity: 0;
    animation: hero-enter 0.9s ease 0.8s forwards;
}

.hero__scroll-line {
    width: 32px;
    height: 1px;
    background: rgba(250, 247, 244, 0.4);
}

.hero__scroll-label {
    font-family: var(--font-sans);
    font-size: 11px;
    color: rgba(250, 247, 244, 0.5);
    letter-spacing: 0.14em;
}




/* ─── Intro Strip ───────────────────────────────────────────────────────────── */

.intro-strip {
    padding-top: var(--section-pad-v);
    padding-bottom: var(--section-pad-v);
}

.intro-strip__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: var(--space-12);
}

.intro-strip__heading {
    font-size: var(--text-2xl);
    color: var(--color-dark);
}

.intro-strip__body {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--color-text-mid);
    line-height: 1.8;
    margin-bottom: 28px;
}



/* ─── Categories Section ────────────────────────────────────────────────────── */

.categories-section {
    padding-top: var(--section-pad-v);
    padding-bottom: var(--section-pad-v);
}

.categories-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
}

.categories-section__heading {
    font-size: var(--text-2xl);
}

.categories-section__view-all {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-decoration: none;
    white-space: nowrap;
    padding-bottom: 4px;
    transition: color var(--transition-fast);
    flex-shrink: 0;
}

.categories-section__view-all:hover {
    color: var(--color-dark);
}

/* Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card */
.cat-card {
    display: flex;
    flex-direction: column;
}

.cat-card__image-wrap {
    display: block;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 5 / 6;   /* keeps cards uniform height even before images load */
    background: var(--color-bg-alt);
}

.cat-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

.cat-card:hover .cat-card__image {
    transform: scale(1.04);
}

/* Placeholder stripe pattern — shown until image is uploaded */
.cat-card__placeholder {
    width: 100%;
    height: 100%;
    background-color: #E8E4DE;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 14px,
        #D6D1C9 14px,
        #D6D1C9 15px
    );
}

.cat-card__title {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.cat-card__title a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

.cat-card__title a:hover {
    color: var(--color-gold);
}

.cat-card__desc {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text-mid);
    line-height: 1.7;
    margin-bottom: 18px;
    flex: 1; /* pushes link to the bottom */
}

.cat-card__link {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-gold);
    text-decoration: none;
    border-bottom: 1px solid var(--color-gold);
    padding-bottom: 2px;
    align-self: flex-start;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.cat-card__link:hover {
    color: var(--color-gold-hover);
    border-bottom-color: var(--color-gold-hover);
}

/* ─── Featured Showcase (NEW replaces old Featured Works) ─────────────────── */

.featured-showcase {
    background: var(--color-bg-alt);
    padding-top: var(--section-pad-v);
    padding-bottom: var(--section-pad-v);
}

/* ─── Top layout ─────────────────────────────────────────────────────────── */

.featured-showcase__top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

/* Hero image (controlled height) */
.featured-showcase__image {
    height: 520px;
    overflow: hidden;
}

.featured-showcase__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── Dark panel ─────────────────────────────────────────────────────────── */

.featured-showcase__panel {
    background: var(--color-dark);
    color: #FAF7F4;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 520px;
}

.featured-showcase__title {
    color: #FAF7F4;
    margin: 12px 0 18px;
}

.featured-showcase__desc {
    font-size: 14px;
    color: rgba(250,247,244,0.7);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Optional meta (if used later) */
.featured-showcase__meta {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.featured-showcase__meta span {
    font-size: 11px;
    color: rgba(250,247,244,0.5);
}

.featured-showcase__meta strong {
    font-size: 13px;
}

/* CTA */
.featured-showcase__link {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
}


/* ─── Bottom grid ────────────────────────────────────────────────────────── */

.featured-showcase__bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card */
.featured-card {
    position: relative;
    overflow: hidden;
}

/* Image sizing (FIXED size issue) */
.featured-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

/* Hover zoom */
.featured-card:hover img {
    transform: scale(1.04);
}

/* Overlay */
.featured-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background: linear-gradient(
        to top,
        rgba(26, 25, 23, 0.5),
        rgba(26, 25, 23, 0.05)
    );
}

/* Title */
.featured-card__overlay h3 {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FAF7F4;
}


.featured-showcase__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 40px;
}

.featured-showcase__heading {
    font-size: var(--text-2xl);
}

.featured-showcase__all {
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .featured-showcase__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 900px) {

    .featured-showcase__top {
        grid-template-columns: 1fr; 
    }

    .featured-showcase__image {
        height: auto; 
    }

    .featured-showcase__panel {
        max-height: none;
        padding: 32px 24px;
    }

    .featured-showcase__bottom {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 600px) {

    .featured-showcase__bottom {
        grid-template-columns: 1fr;
    }

    .featured-card img {
        height: 240px;
    }

    .featured-showcase__header {
        gap: 16px;
    }

    .featured-showcase__heading {
        font-size: var(--text-xl);
    }
}

/* ─── Hospitality Split ─────────────────────────────────────────────────────── */

.hosp-split {
    padding-top: var(--section-pad-v);
}

.hosp-split__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    padding-bottom: var(--section-pad-v);
}

/* Image */
.hosp-split__image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.hosp-split__placeholder {
    width: 100%;
    height: 520px;
    background-color: #E8E4DE;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 14px,
        #D6D1C9 14px,
        #D6D1C9 15px
    );
}

/* Copy column */
.hosp-split__heading {
    font-size: var(--text-2xl);
    margin-bottom: 24px;
}

.hosp-split__body {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--color-text-mid);
    line-height: 1.8;
    margin-bottom: 36px;
}



/* ─── Dark CTA Band ─────────────────────────────────────────────────────────── */

.cta-band {
    background: var(--color-dark);
    padding: 100px var(--page-pad);
}

.cta-band__inner {
    text-align: center;
    max-width: 720px;
}

.cta-band__heading {
    font-size: var(--text-3xl);
    color: #FAF7F4;
    max-width: 600px;
    margin: 0 auto 28px;
}

.cta-band__body {
    font-family: var(--font-sans);
    font-size: 16px;
    color: rgba(250, 247, 244, 0.6);
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.8;
}


/* ─── Catalogue Strip ───────────────────────────────────────────────────────── */

.catalogue-strip {
    padding: 80px var(--page-pad);
}

.catalogue-strip__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

.catalogue-strip__heading {
    font-size: var(--text-xl);
    margin-bottom: 20px;
}

.catalogue-strip__body {
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--color-text-mid);
    max-width: 400px;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Pending state — no PDF uploaded yet */
.catalogue-strip__btn--pending {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}


/* ─── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .hero__content {
        padding-bottom: 56px;
    }

    .hero__scroll {
        display: none;
    }

    .intro-strip__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .categories-section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .featured-grid {
        columns: 2;
    }

    .hosp-split__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hosp-split__image,
    .hosp-split__placeholder {
        height: 380px;
    }

    .cta-band__heading {
        font-size: var(--text-2xl);
    }

    /* CTA band and catalogue use page-pad via CSS variable, stays correct */
    .cta-band {
        padding-left: var(--page-pad);
        padding-right: var(--page-pad);
    }

    .catalogue-strip {
        padding-left: var(--page-pad);
        padding-right: var(--page-pad);
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 100svh; /* use svh on modern browsers for real viewport height on mobile */
        min-height: 560px;  /* fallback for older browsers */
    }

    /* Ensure hero content never clips on small screens */
    .hero__content {
        width: 100%;
        box-sizing: border-box;
    }

    .hero__subtext {
        font-size: 15px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .featured-grid {
        columns: 1;
    }

    .featured-item__img,
    .featured-item__placeholder,
    .featured-item--tall .featured-item__img,
    .featured-item--tall .featured-item__placeholder {
        height: 260px;
    }

    .hosp-split__image,
    .hosp-split__placeholder {
        height: 260px;
    }

    .cta-band {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .cta-band__heading {
        font-size: var(--text-xl);
    }

    /* Catalogue strip centred on mobile */
    .catalogue-strip__inner {
        padding-left: 0;
        padding-right: 0;
    }
}