/* ==========================================================================
   Tenant public website (homepage, events, blog, gallery)
   Modern, lightweight design system. Shared visual language with the shop and
   profile pages. All classes are prefixed with hp- to avoid collisions.
   ========================================================================== */

.hp-body {
    --hp-accent: #1e90ff;
    --hp-accent-dark: #1565c0;
    --hp-accent-2: #7c3aed;
    --hp-ink: #0f172a;
    --hp-text: #475569;
    --hp-muted: #718096;
    --hp-border: #e2e8f0;
    --hp-bg: #ffffff;
    --hp-bg-soft: #f6f9fc;
    --hp-radius: 16px;
    --hp-radius-lg: 22px;
    --hp-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --hp-shadow-lg: 0 16px 48px rgba(30, 144, 255, 0.16);
    --hp-font: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
        sans-serif;

    margin: 0;
    min-height: 100vh;
    background: var(--hp-bg);
    color: var(--hp-ink);
    font-family: var(--hp-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.hp-body *,
.hp-body *::before,
.hp-body *::after {
    box-sizing: border-box;
}

.hp-body img,
.hp-body svg {
    display: block;
    max-width: 100%;
}

.hp-body a {
    color: inherit;
    text-decoration: none;
}

.hp-body h1,
.hp-body h2,
.hp-body h3,
.hp-body h4,
.hp-body p,
.hp-body ul,
.hp-body ol {
    margin: 0;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.hp-container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.hp-section {
    padding: 72px 0;
}

.hp-section-alt {
    background: var(--hp-bg-soft);
    border-top: 1px solid var(--hp-border);
    border-bottom: 1px solid var(--hp-border);
}

.hp-section-head {
    max-width: 680px;
    margin: 0 auto 40px;
    text-align: center;
}

.hp-section-head.is-left {
    margin-left: 0;
    text-align: left;
}

.hp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hp-accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hp-kicker::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.hp-h2 {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hp-section-head .hp-h2 {
    margin-top: 12px;
}

.hp-lead {
    margin-top: 12px;
    color: var(--hp-text);
    font-size: 1.02rem;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 11px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease,
        border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.hp-btn:hover {
    transform: translateY(-1px);
}

.hp-btn:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

.hp-btn-primary {
    background: var(--hp-accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.25);
}

.hp-btn-primary:hover {
    background: var(--hp-accent-dark);
}

.hp-btn-outline {
    background: var(--hp-bg);
    border-color: var(--hp-border);
    color: var(--hp-ink);
}

.hp-btn-outline:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.hp-btn-white {
    background: #fff;
    color: var(--hp-ink) !important;
}

.hp-btn-white:hover {
    background: #eef2f7;
}

.hp-btn-ghost-light {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    background: transparent;
}

.hp-btn-ghost-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.hp-btn-sm {
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 0.85rem;
}

.hp-btn-lg {
    padding: 14px 26px;
    border-radius: 12px;
    font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */

.hp-skip {
    position: absolute;
    top: 0;
    left: -9999px;
    z-index: 2000;
    padding: 12px 18px;
    border-radius: 0 0 10px 0;
    background: #fff;
    color: var(--hp-ink);
    font-weight: 700;
    box-shadow: var(--hp-shadow);
}

.hp-skip:focus {
    left: 0;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.hp-header {
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 1px solid var(--hp-border);
    background: #fff;
    transition: box-shadow 0.25s ease;
}

.hp-header.is-solid {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.hp-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.hp-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
}

.hp-brand-logo {
    width: auto;
    height: 40px;
    object-fit: contain;
}

.hp-brand-name {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--hp-ink);
}

.hp-brand-name small {
    display: block;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hp-muted);
}

.hp-header.is-transparent .hp-brand-name {
    color: #fff;
}

.hp-header.is-transparent .hp-brand-name small {
    color: rgba(255, 255, 255, 0.75);
}

.hp-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.hp-nav-link {
    padding: 9px 13px;
    border-radius: 9px;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--hp-text);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.hp-nav-link:hover {
    background: rgba(30, 144, 255, 0.09);
    color: var(--hp-accent-dark);
}

.hp-nav-link.is-active {
    color: var(--hp-accent-dark);
    font-weight: 700;
}

.hp-header.is-transparent .hp-nav-link {
    color: rgba(255, 255, 255, 0.92);
}

.hp-header.is-transparent .hp-nav-link:hover,
.hp-header.is-transparent .hp-nav-link.is-active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.hp-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.hp-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--hp-border);
    border-radius: 11px;
    background: #fff;
    color: var(--hp-ink);
    cursor: pointer;
}

.hp-header.is-transparent .hp-menu-btn {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.hp-menu-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 14px;
}

.hp-menu-icon span {
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.hp-menu-icon span:nth-child(1) { top: 0; }
.hp-menu-icon span:nth-child(2) { top: 6px; }
.hp-menu-icon span:nth-child(3) { top: 12px; }

.hp-menu-btn[aria-expanded="true"] .hp-menu-icon span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}
.hp-menu-btn[aria-expanded="true"] .hp-menu-icon span:nth-child(2) {
    opacity: 0;
}
.hp-menu-btn[aria-expanded="true"] .hp-menu-icon span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

.hp-mobile-nav {
    display: none;
    border-top: 1px solid var(--hp-border);
    background: #fff;
    padding: 12px 24px 20px;
}

.hp-mobile-nav.is-open {
    display: block;
}

.hp-mobile-nav a {
    display: block;
    padding: 11px 12px;
    border-radius: 9px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--hp-ink);
}

.hp-mobile-nav a:hover,
.hp-mobile-nav a.is-active {
    background: rgba(30, 144, 255, 0.09);
    color: var(--hp-accent-dark);
}

/* --------------------------------------------------------------------------
   Hero slider
   -------------------------------------------------------------------------- */

.hp-hero {
    position: relative;
    height: min(88vh, 760px);
    min-height: 520px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 40%, #7c3aed 100%);
}

.hp-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hp-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hp-slide-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hp-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 18, 40, 0.82) 0%,
        rgba(13, 24, 54, 0.55) 55%,
        rgba(13, 24, 54, 0.25) 100%
    );
}

.hp-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hp-slide-inner {
    max-width: 640px;
}

.hp-slide-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hp-slide-title {
    margin-top: 20px;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.06;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hp-slide-sub {
    max-width: 560px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.02rem;
    line-height: 1.7;
}

.hp-slide-cta {
    margin-top: 28px;
}

.hp-slider-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 30px;
    z-index: 3;
}

.hp-slider-controls-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hp-slider-arrow {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hp-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
}

.hp-slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hp-slider-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    transition: width 0.25s ease, background 0.25s ease;
}

.hp-slider-dot.is-active {
    width: 26px;
    background: #fff;
}

/* --------------------------------------------------------------------------
   Split (image + text) sections
   -------------------------------------------------------------------------- */

.hp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hp-split.is-flip .hp-split-media {
    order: 2;
}

.hp-split-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--hp-radius-lg);
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    box-shadow: var(--hp-shadow);
    min-height: 300px;
}

.hp-split-media img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.hp-split-body .hp-h2 {
    margin-top: 12px;
}

.hp-split-body p {
    margin-top: 14px;
    color: var(--hp-text);
    line-height: 1.75;
}

.hp-split-body .hp-btn {
    margin-top: 22px;
}

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */

.hp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.hp-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hp-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: var(--hp-shadow);
}

.hp-card-media {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

.hp-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.hp-card-media-fallback {
    display: grid;
    place-items: center;
    color: #cbd5e1;
}

.hp-card:hover .hp-card-media img {
    transform: scale(1.05);
}

.hp-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.hp-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--hp-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.hp-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--hp-border);
}

.hp-card-title {
    margin-top: 10px;
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.hp-card-title a:hover {
    color: var(--hp-accent-dark);
}

.hp-card-text {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 8px;
    color: var(--hp-text);
    font-size: 0.9rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hp-card-foot {
    margin-top: auto;
    padding-top: 16px;
}

.hp-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hp-accent-dark);
    font-size: 0.86rem;
    font-weight: 700;
}

.hp-arrow-link:hover {
    color: var(--hp-accent);
}

/* Date badge used on event cards */
.hp-date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
    color: var(--hp-ink);
}

.hp-date-badge strong {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.hp-date-badge span {
    margin-top: 2px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hp-accent-dark);
}

/* --------------------------------------------------------------------------
   Gallery album tiles
   -------------------------------------------------------------------------- */

.hp-album {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--hp-radius);
    background: linear-gradient(135deg, #1e3c72, #7c3aed);
    box-shadow: var(--hp-shadow);
}

.hp-album img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hp-album:hover img {
    transform: scale(1.06);
}

.hp-album-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(to top, rgba(10, 18, 40, 0.85), transparent 60%);
    color: #fff;
    text-align: center;
}

.hp-album-overlay h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.hp-album-overlay span {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Page header (inner pages)
   -------------------------------------------------------------------------- */

.hp-pagehead {
    position: relative;
    padding: 96px 0 64px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 45%, #7c3aed 100%);
    color: #fff;
}

.hp-pagehead h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.hp-pagehead p {
    max-width: 620px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.02rem;
    line-height: 1.7;
}

.hp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-weight: 600;
}

.hp-breadcrumb a:hover {
    color: #fff;
}

.hp-breadcrumb .sep {
    opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Article / detail
   -------------------------------------------------------------------------- */

.hp-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
    padding: 48px 0 72px;
}

.hp-article-media {
    overflow: hidden;
    border-radius: var(--hp-radius-lg);
    background: var(--hp-bg-soft);
}

.hp-article-media img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.hp-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 22px 0 0;
    color: var(--hp-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.hp-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hp-prose {
    margin-top: 18px;
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.82;
}

.hp-prose > * + * {
    margin-top: 1.1em;
}

.hp-prose h2,
.hp-prose h3 {
    color: var(--hp-ink);
    line-height: 1.3;
}

.hp-prose a {
    color: var(--hp-accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hp-prose ul,
.hp-prose ol {
    padding-left: 1.35em;
}

.hp-prose img {
    border-radius: 12px;
}

.hp-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hp-widget {
    padding: 22px;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    background: #fff;
}

.hp-widget-title {
    margin-bottom: 14px;
    color: var(--hp-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hp-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    list-style: none;
}

.hp-info-item {
    display: flex;
    gap: 12px;
}

.hp-info-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(30, 144, 255, 0.1);
    color: var(--hp-accent-dark);
}

.hp-info-item strong {
    display: block;
    margin-bottom: 2px;
    color: var(--hp-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-info-item span,
.hp-info-item div > span {
    color: var(--hp-ink);
    font-size: 0.9rem;
    font-weight: 600;
}

.hp-pager {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--hp-border);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.hp-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 34px 0 0;
}

.hp-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--hp-border);
    border-radius: 10px;
    background: #fff;
    color: var(--hp-text);
    font-size: 0.88rem;
    font-weight: 600;
}

.hp-page-link:hover {
    border-color: #93c5fd;
    color: var(--hp-accent-dark);
}

.hp-page-link.is-active {
    background: var(--hp-accent);
    border-color: var(--hp-accent);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */

.hp-empty {
    grid-column: 1 / -1;
    padding: 60px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: var(--hp-radius);
    background: #fff;
    text-align: center;
}

.hp-empty-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    color: #cbd5e1;
}

.hp-empty h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.hp-empty p {
    max-width: 420px;
    margin: 8px auto 0;
    color: var(--hp-muted);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.hp-cta {
    padding: 68px 0;
}

.hp-cta-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    overflow: hidden;
    padding: 48px 52px;
    border-radius: 26px;
    background: linear-gradient(135deg, #0b1220 0%, #172554 52%, #1d4ed8 100%);
    color: #fff;
}

.hp-cta-panel::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -60px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(96, 165, 250, 0.4), transparent);
}

.hp-cta-copy,
.hp-cta-actions {
    position: relative;
    z-index: 1;
}

.hp-cta-copy {
    max-width: 620px;
}

.hp-cta-copy h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.16;
}

.hp-cta-copy p {
    margin-top: 12px;
    color: #cbd5e1;
    font-size: 1rem;
}

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

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.hp-footer {
    padding: 56px 0 24px;
    background: #0b1220;
    color: #94a3b8;
}

.hp-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.hp-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hp-footer-brand img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.hp-footer-brand span {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hp-footer-about {
    max-width: 320px;
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.hp-footer h2 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hp-footer ul {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 0;
    list-style: none;
}

.hp-footer a,
.hp-footer button.hp-footer-link {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
}

.hp-footer a:hover,
.hp-footer button.hp-footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

.hp-footer button.hp-footer-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.hp-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
}

.hp-footer-bottom ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
}

.hp-footer-bottom a,
.hp-footer-bottom button.hp-footer-link {
    color: #94a3b8;
    font-size: 0.82rem;
}

.hp-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 800;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--hp-border);
    border-radius: 12px;
    background: #fff;
    color: var(--hp-ink);
    box-shadow: var(--hp-shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.15s ease;
}

.hp-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.hp-to-top:hover {
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

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

    .hp-article-layout {
        grid-template-columns: 1fr;
    }

    .hp-sidebar {
        position: static;
    }

    .hp-split {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hp-split.is-flip .hp-split-media {
        order: 0;
    }

    .hp-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .hp-nav,
    .hp-header-actions {
        display: none;
    }

    .hp-menu-btn {
        display: inline-flex;
    }

    .hp-cta-panel {
        flex-direction: column;
        align-items: flex-start;
        padding: 36px;
    }

    .hp-hero {
        height: 80vh;
    }
}

@media (max-width: 640px) {
    .hp-container {
        padding: 0 18px;
    }

    .hp-section,
    .hp-cta {
        padding: 52px 0;
    }

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

    .hp-slide-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .hp-pagehead {
        padding: 84px 0 52px;
    }

    .hp-slider-arrow {
        display: none;
    }

    .hp-slider-controls-inner {
        justify-content: center;
    }

    .hp-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .hp-footer-brand-col {
        grid-column: 1 / -1;
    }

    .hp-article-layout {
        padding: 32px 0 56px;
    }
}

@media (max-width: 460px) {
    .hp-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-slide,
    .hp-card,
    .hp-card-media img,
    .hp-album img,
    .hp-btn {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.hp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hp-field.is-full {
    grid-column: 1 / -1;
}

.hp-field label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--hp-ink);
}

.hp-field input,
.hp-field select,
.hp-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--hp-border);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 0.94rem;
    color: var(--hp-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hp-field input::placeholder,
.hp-field textarea::placeholder {
    color: #94a3b8;
}

.hp-field input:focus,
.hp-field select:focus,
.hp-field textarea:focus {
    outline: none;
    border-color: var(--hp-accent);
    box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.12);
}

.hp-field textarea {
    min-height: 140px;
    resize: vertical;
}

.hp-errorlist {
    margin: 0;
    padding: 0;
    color: #b91c1c;
    font-size: 0.8rem;
    list-style: none;
}

/* --------------------------------------------------------------------------
   Alerts / Django messages
   -------------------------------------------------------------------------- */

.hp-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.hp-alert {
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 0.9rem;
}

.hp-alert-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.hp-alert-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.hp-alert-info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

/* --------------------------------------------------------------------------
   Contact layout
   -------------------------------------------------------------------------- */

.hp-contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: start;
}

/* --------------------------------------------------------------------------
   Auth (sign in / sign up / verification / password reset)
   -------------------------------------------------------------------------- */

.hp-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 48px 0;
}

.hp-auth-card {
    width: 100%;
    max-width: 440px;
    padding: 34px;
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-lg);
    box-shadow: var(--hp-shadow-lg);
}

.hp-auth-brand {
    text-align: center;
}

.hp-auth-brand img {
    height: 46px;
    margin: 0 auto;
    object-fit: contain;
}

.hp-auth-title {
    margin: 18px 0 4px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

.hp-auth-sub {
    color: var(--hp-muted);
    font-size: 0.9rem;
    text-align: center;
}

.hp-auth .hp-form {
    margin-top: 22px;
}

.hp-auth-foot {
    margin-top: 20px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--hp-muted);
}

.hp-auth-foot a {
    color: var(--hp-accent-dark);
    font-weight: 600;
}

.hp-auth-note {
    margin-top: 18px;
    text-align: center;
    font-size: 0.72rem;
    color: var(--hp-muted);
    line-height: 1.5;
}

.hp-auth-note a {
    color: var(--hp-muted);
    text-decoration: underline;
}

.hp-btn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.hp-legal {
    max-width: 780px;
    color: var(--hp-text);
}

.hp-legal h1 {
    color: var(--hp-ink);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hp-legal h2 {
    margin-top: 1.9rem;
    color: var(--hp-ink);
    font-size: 1.15rem;
    font-weight: 700;
}

.hp-legal h3 {
    margin-top: 1.4rem;
    color: var(--hp-ink);
    font-size: 1rem;
    font-weight: 700;
}

.hp-legal p {
    margin-top: 0.85rem;
    line-height: 1.75;
}

.hp-legal ul,
.hp-legal ol {
    margin-top: 0.85rem;
    padding-left: 1.4em;
    line-height: 1.75;
}

.hp-legal li + li {
    margin-top: 0.4em;
}

.hp-legal a {
    color: var(--hp-accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hp-legal img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.2em 0;
}

.hp-legal .hp-legal-updated {
    color: var(--hp-muted);
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Error pages
   -------------------------------------------------------------------------- */

.hp-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 48px 24px;
    text-align: center;
}

.hp-error-code {
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, #1e90ff, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hp-error h1 {
    margin-top: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.hp-error p {
    margin-top: 10px;
    color: var(--hp-muted);
}

.hp-error .hp-btn {
    margin-top: 26px;
}

/* --------------------------------------------------------------------------
   Responsive (forms / contact / auth)
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
    .hp-contact-grid {
        grid-template-columns: 1fr;
    }

    .hp-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hp-auth-card {
        padding: 26px 22px;
    }
}

/* ==========================================================================
   Gallery: photo grid, like button, lightbox slideshow
   ========================================================================== */

.hp-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hp-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--hp-radius);
    background: #e2e8f0;
}

.hp-photo-open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.hp-photo-open img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.hp-photo:hover .hp-photo-open img {
    transform: scale(1.05);
}

.hp-photo-bar {
    position: absolute;
    left: 10px;
    bottom: 10px;
}

.hp-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--hp-ink);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.hp-like-btn:hover {
    transform: translateY(-1px);
    background: #fff;
}

.hp-like-btn svg {
    color: var(--hp-ink);
    transition: color 0.15s ease, fill 0.15s ease;
}

.hp-like-btn.is-liked {
    color: #e11d48;
}

.hp-like-btn.is-liked svg {
    fill: #e11d48;
    color: #e11d48;
}

/* Lightbox */
.hp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 24, 0.93);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.hp-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.hp-lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(92vw, 1100px);
    max-height: 88vh;
}

.hp-lightbox-stage img {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.hp-lightbox-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.hp-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hp-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
}

.hp-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.hp-lightbox-arrow.is-prev { left: 18px; }
.hp-lightbox-arrow.is-next { right: 18px; }

.hp-lightbox-meta {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-lightbox-counter {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.hp-lightbox .hp-like-btn {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.hp-lightbox .hp-like-btn.is-liked {
    color: #fb7185;
}

.hp-lightbox .hp-like-btn.is-liked svg {
    fill: #fb7185;
    color: #fb7185;
}

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

    .hp-lightbox-arrow {
        display: none;
    }
}

@media (max-width: 520px) {
    .hp-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}
