/* Requires tokens.css (palette + craft tokens) to be linked first. */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    /* Solid background so the hero's bottom fade lands on exactly
       this color with no visible seam (the old radial gradient was
       slightly lighter right below the hero). */
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
}

a {
    color: inherit;
    text-decoration: none;
}

.hero {
    position: relative;
    min-height: clamp(560px, 72vh, 860px);
    padding: 110px 56px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Bottom vignette: fade the photo fully into the page background
   so its true color never shows along the lower edge */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to top,
        var(--bg) 0%,
        rgba(8, 9, 11, .88) 12%,
        rgba(8, 9, 11, .55) 26%,
        transparent 44%
    );
}

.hero-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.hero-identity {
    width: 100%;
    max-width: 640px;
    animation: heroIntro .9s var(--ease-out) both;
}

@keyframes heroIntro {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 18px;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(44px, 5.8vw, 76px);
    line-height: 1.08;
    letter-spacing: -1px;
    margin: 0 0 20px;
}

.hero h1 span {
    color: var(--gold);
    font-style: italic;
}

.hero-identity p {
    color: var(--muted-soft);
    font-size: 18px;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

/* Compact Consergeria entry — centered under identity */
.hero-consergeria {
    width: 100%;
    max-width: 640px;
    text-align: left;
    margin-top: 0;
    padding: 18px 18px 16px;
    border-radius: 16px;
    border: 1px solid rgba(184, 148, 106, 0.35);
    background: rgba(13, 15, 16, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    animation: heroIntro .9s var(--ease-out) .2s both;
}

.hero-consergeria-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: .02em;
    margin-bottom: 12px;
    text-align: center;
}

.hero-consergeria-eyebrow .vella-mark {
    width: 12px;
    height: 14px;
    color: var(--gold-light);
}

.hero-consergeria-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.hero-consergeria-form textarea {
    flex: 1;
    min-height: 52px;
    max-height: 120px;
    resize: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #F4F1EA;
    font: inherit;
    font-size: 15px;
    line-height: 1.45;
    padding: 14px 16px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.hero-consergeria-form textarea::placeholder {
    color: rgba(210, 213, 218, 0.55);
}

.hero-consergeria-form textarea:focus {
    border-color: rgba(184, 148, 106, 0.55);
    box-shadow: 0 0 0 3px rgba(184, 148, 106, 0.12);
}

.hero-consergeria-send {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-on-gold, #111);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(145deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
    box-shadow: 0 8px 20px rgba(184, 148, 106, 0.28);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.hero-consergeria-send:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 10px 24px rgba(184, 148, 106, 0.36);
}

.hero-consergeria-send:active {
    transform: scale(.96);
}

.hero-consergeria-reassure {
    margin: 14px 0 0;
    color: rgba(210, 213, 218, 0.72);
    font-size: 13px;
    line-height: 1.5;
    max-width: none;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .hero-identity,
    .hero-consergeria {
        animation: none;
    }
}

.section {
    padding: 74px 56px;
}

.section h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 40px;
    letter-spacing: -.4px;
    margin: 0;
}

.section p.subtitle {
    color: var(--muted);
    margin: 8px 0 0;
}

.categories {
    --category-gap: 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--category-gap);
}

.category-card {
    position: relative;
    display: flex;
    align-items: stretch;
    min-width: 0;
    min-height: 156px;
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(160deg, #1a1d24 0%, #0c0e12 100%);
    transition:
        transform var(--motion-base) var(--ease-out),
        border-color var(--motion-base) var(--ease-out),
        box-shadow var(--motion-base) var(--ease-out);
}

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

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--category-image, none);
    background-size: cover;
    background-position: center;
    /* Same slow zoom as card images/videos */
    transition: transform .7s var(--ease-out);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(8, 9, 11, .18) 0%,
        rgba(8, 9, 11, .62) 52%,
        rgba(8, 9, 11, .9) 100%
    );
    transition: background var(--motion-base) ease;
}

.category-card:hover {
    /* Whole tile grows, like the carousel cards */
    transform: scale(1.04) translateY(-6px);
    z-index: 2;
    border-color: var(--gold-border);
    box-shadow:
        var(--shadow-1),
        inset 0 0 0 1px rgba(184, 148, 106, .18);
}

.category-card:hover::after {
    transform: scale(1.08);
}

.category-card:hover::before {
    background: linear-gradient(
        180deg,
        rgba(8, 9, 11, .1) 0%,
        rgba(8, 9, 11, .5) 52%,
        rgba(8, 9, 11, .84) 100%
    );
}

.category-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    min-height: 156px;
    padding: 24px 22px;
}

.category-icon {
    margin-bottom: 18px;
    color: var(--gold);
    line-height: 0;
}

.category-icon svg {
    width: 28px;
    height: 28px;
    transition: transform var(--motion-base) var(--ease-out);
}

.category-card:hover .category-icon svg {
    transform: translateY(-2px);
}

.category-card strong {
    display: block;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 7px;
}

.category-card span {
    display: -webkit-box;
    min-height: 2.8em;
    overflow: hidden;
    color: #C8CDD4;
    font-size: 13px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

/* Carousel layout lives in shared_ux.css */


.card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #1A1C20 0%, #111316 100%);
    border: 1px solid var(--border);
    box-shadow:
        var(--shadow-2),
        inset 0 1px 0 rgba(255,255,255,.04);
    transition:
        transform var(--motion-base) var(--ease-out),
        border-color var(--motion-base) var(--ease-out),
        box-shadow var(--motion-base) var(--ease-out),
        opacity var(--motion-base) var(--ease-out),
        filter var(--motion-base) var(--ease-out);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-border);
    box-shadow:
        var(--shadow-3),
        inset 0 0 0 1px rgba(184, 148, 106, .16),
        inset 0 1px 0 rgba(255, 255, 255, .06);
}

.card-image {
    position: relative;
    height: 270px;
    overflow: hidden;
}

.card.catalog-card .card-image {
    height: auto;
    aspect-ratio: 3 / 4;
}

.card-image:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.08));
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease-out);
}

.card-preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    pointer-events: none;
    transition: transform .7s var(--ease-out);
}

video.card-preview-video::-webkit-media-controls {
    display: none !important;
}

video.card-preview-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

.card-preview-youtube {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.2);
    transform-origin: center;
}

.card:hover img,
.card:hover .card-preview-video {
    transform: scale(1.06);
}

.card:hover .card-preview-youtube {
    transform: scale(1.28);
}

.badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    background: rgba(8,9,11,.72);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content {
    padding: 24px;
}

.location {
    font-size: 11px;
    color: #8D929A;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 8px;
}

.card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-xl);
    line-height: 1.28;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}

.card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
    margin: 0 0 16px;
}

.price {
    color: var(--gold);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
}

.trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.03);
}

.trust-item strong {
    display: block;
    margin-bottom: 8px;
}

.trust-item span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(14px);
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.video-modal.open {
    display: flex;
    animation: modalFadeIn var(--motion-base) ease both;
}

.video-modal.open .video-modal-content {
    animation: modalPopIn var(--motion-base) var(--ease-out) both;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(.96) translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.video-modal-content {
    position: relative;
    width: min(1100px, 100%, calc(177.78dvh - 100px));
    max-height: calc(100dvh - 56px);
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 40px 100px rgba(0,0,0,.7);
}

.video-player {
    width: 100%;
    height: 100%;
    display: none;
    background: #000;
}

.video-player.active {
    display: block;
}


.video-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(0,0,0,.65);
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: all var(--motion-fast) ease;
}

.video-close:hover {
    border-color: var(--gold-border-strong);
    color: var(--gold-light);
}

.card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (min-width: 1001px) and (max-height: 820px) {
    .hero {
        min-height: calc(100dvh - 82px);
        padding-top: 48px;
        padding-bottom: 40px;
    }

    .hero-shell {
        gap: 16px;
    }

    .hero h1 {
        margin-bottom: 14px;
        font-size: clamp(40px, 5vw, 60px);
    }

    .hero-identity p {
        font-size: 16px;
        line-height: 1.5;
    }

    .hero-consergeria {
        padding: 14px;
    }

    .hero-consergeria-eyebrow {
        margin-bottom: 8px;
    }

    .hero-consergeria-reassure {
        margin-top: 10px;
    }
}

@media (max-width: 1000px) {
    .hero,
    .section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero {
        min-height: auto;
        padding-top: 96px;
        padding-bottom: 56px;
        align-items: center;
    }

    .hero-shell {
        gap: 20px;
        max-width: none;
    }

    .hero-identity {
        max-width: none;
    }

    .hero h1 {
        font-size: clamp(34px, 8.5vw, 48px);
    }

    .hero-identity p {
        font-size: 16px;
    }

    .hero-consergeria {
        max-width: none;
        padding: 16px 14px 14px;
        border-radius: 14px;
    }

    .hero-consergeria-send {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 600px) {
    .hero-consergeria-form textarea {
        min-height: 56px;
        font-size: 16px; /* avoid iOS zoom */
    }

    .categories {
        grid-template-columns: 1fr;
    }

    .grid,
    .trust-bar {
        grid-template-columns: 1fr;
    }
}
