/* =========================================================
   PLATFORMA — Premium Residence Template
   Flagship luxury — editorial, cinematic, image-led
   ========================================================= */

/* ─── 1. TOKENS ─────────────────────────────────────────── */

:root {
    --pr-bg:            #0C0C0C;
    --pr-bg-warm:       #111110;
    --pr-surface:       #1A1918;
    --pr-text:          #F5F0E8;
    --pr-text-soft:     #C8C2B8;
    --pr-text-muted:    #8A857D;
    --pr-text-faint:    #5C574F;
    --pr-gold:          #B8965A;
    --pr-gold-light:    rgba(184, 150, 90, 0.12);
    --pr-gold-hover:    #D4AF6E;
    --pr-border:        rgba(245, 240, 232, 0.08);
    --pr-border-mid:    rgba(245, 240, 232, 0.14);
    --pr-container:     1000px;
    --pr-section-gap:   8rem;
    --pr-font-body:     system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --pr-font-heading:  Georgia, "Times New Roman", "Palatino Linotype", serif;
}

/* ─── 2. PAGE SHELL ─────────────────────────────────────── */

.pr {
    background: var(--pr-bg);
    color: var(--pr-text);
    font-family: var(--pr-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pr-container {
    max-width: var(--pr-container);
    margin: 0 auto;
    padding: 0 2rem;
}

.platforma-site-main:has(> .pr) {
    max-width: none;
    padding: 0;
}

/* Override site header for dark template */
body:has(.pr) .platforma-site-header {
    background: var(--pr-bg);
    box-shadow: none;
    border-bottom: 1px solid var(--pr-border);
}

body:has(.pr) .platforma-site-brand-name,
body:has(.pr) .platforma-site-nav-link {
    color: var(--pr-text);
}

body:has(.pr) .platforma-site-brand-subtitle {
    color: var(--pr-text-muted);
}

body:has(.pr) .platforma-site-brand-logo {
    background: var(--pr-gold);
}

body:has(.pr) .platforma-site-nav-link:hover {
    background: var(--pr-surface);
}

body:has(.pr) .platforma-site-nav-link-active {
    background: var(--pr-gold);
    color: var(--pr-bg);
}

body:has(.pr) .platforma-site-nav-link-cta {
    background: transparent;
    color: var(--pr-gold);
    border: 1px solid var(--pr-gold);
    font-weight: 500;
}

body:has(.pr) .platforma-site-nav-link-cta:hover {
    background: var(--pr-gold);
    color: var(--pr-bg);
}

body:has(.pr) .platforma-site-footer {
    background: var(--pr-bg);
    border-color: var(--pr-border);
    color: var(--pr-text-muted);
}

body:has(.pr) .platforma-site-shell {
    background: var(--pr-bg);
}

/* ─── 3. PREVIEW BANNER ────────────────────────────────── */

.pr-preview-banner {
    background: var(--pr-gold);
    color: var(--pr-bg);
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pr-preview-banner-link {
    color: var(--pr-bg);
    opacity: 0.7;
    margin-left: 1rem;
    text-decoration: underline;
}

.pr-preview-banner-link:hover { opacity: 1; }

/* ─── 4. CINEMATIC HERO (100vh fullscreen) ─────────────── */

.pr-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--pr-bg);
}

.pr-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.pr-hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    padding: 2rem;
}

.pr-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

.pr-hero-title {
    font-family: var(--pr-font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--pr-text);
    margin: 0;
}

.pr-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--pr-text-soft);
    max-width: 500px;
    margin: 0;
    font-weight: 300;
}

.pr-hero-actions {
    padding-top: 0.75rem;
}

.pr-hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--pr-gold), transparent);
    opacity: 0.5;
    z-index: 1;
}

@media (max-width: 768px) {
    .pr-hero { min-height: 85vh; }
    .pr-hero-title { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .pr-hero { min-height: 75vh; }
    .pr-hero-title { font-size: 2rem; }
    .pr-hero-subtitle { font-size: 0.95rem; }
}

/* ─── 4b. SUB-PAGE HERO + CTA (Slice 4.9b) ──────────────
   Editorial variants used on non-home pages. Quieter than the
   home hero (50vh instead of 100vh, eyebrow-title-rule-subtitle
   stack) but visually in the same family. */

.pr-hero--subpage {
    min-height: 50vh;
}

.pr-hero--subpage .pr-hero-title {
    font-size: 2.75rem;
}

.pr-hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pr-gold);
    margin: 0;
}

.pr-hero-rule {
    display: block;
    width: 48px;
    height: 1px;
    background: var(--pr-gold);
    margin: 0.25rem 0 0.5rem;
    opacity: 0.7;
}

.pr-cta-section {
    background: var(--pr-bg-warm);
    padding: 5rem 2rem;
    border-top: 1px solid var(--pr-border);
    border-bottom: 1px solid var(--pr-border);
}

.pr-cta-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pr-cta-rule {
    display: block;
    width: 64px;
    height: 1px;
    background: var(--pr-gold);
    margin: 0.5rem 0;
    opacity: 0.8;
}

.pr-cta-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--pr-text-soft);
    font-weight: 300;
    max-width: 520px;
    margin: 0;
}

.pr-cta-action {
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .pr-hero--subpage { min-height: 42vh; }
    .pr-hero--subpage .pr-hero-title { font-size: 2rem; }
    .pr-cta-section { padding: 3.5rem 1.5rem; }
    .pr-cta-title { font-size: 1.6rem; }
}

/* ─── 5. SECTIONS (shared) ─────────────────────────────── */

.pr-section {
    padding: var(--pr-section-gap) 0;
}

.pr-section-eyebrow {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pr-gold);
    margin: 0 0 0.75rem;
}

.pr-section-title {
    font-family: var(--pr-font-heading);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--pr-text);
    letter-spacing: -0.01em;
    margin: 0 0 3rem;
    line-height: 1.2;
}

/* ─── 6. EDITORIAL INTRO ──────────────────────────────── */

.pr-section--intro {
    padding: 6rem 0;
    text-align: center;
}

.pr-intro {
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.pr-intro-rule {
    width: 40px;
    height: 1px;
    background: var(--pr-gold);
}

.pr-intro-text {
    font-family: var(--pr-font-heading);
    font-size: 1.25rem;
    line-height: 1.75;
    color: var(--pr-text-soft);
    margin: 0;
    font-weight: 400;
    font-style: italic;
}

/* ─── 7. RESIDENCES / FACILITIES (alternating editorial) ─ */

.pr-section--residences {
    padding-bottom: 4rem;
}

.pr-residences {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pr-residence {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 420px;
}

.pr-residence--reversed {
    grid-template-columns: 1fr 1.2fr;
}

.pr-residence--reversed .pr-residence-visual {
    order: 2;
}

.pr-residence--reversed .pr-residence-content {
    order: 1;
}

/* Stabilize 5 — tilføj aspect-ratio til residence-image-container.
   Uden aspect-ratio kollapser img height:100% til 0 (da parent har
   ingen definit højde), eller stretcher grid-cellen til billedets
   naturlige proportioner og bryder 2-kolonne-layoutet. 4:3 passer
   residential-showcase-stil og giver ensartet crop uanset upload. */
.pr-residence-visual {
    overflow: hidden;
    background: var(--pr-surface);
    aspect-ratio: 4 / 3;
}

.pr-residence-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.pr-residence:hover .pr-residence-visual img {
    transform: scale(1.03);
}

.pr-residence-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem 4rem;
    gap: 1rem;
    background: var(--pr-bg-warm);
    border: 1px solid var(--pr-border);
}

.pr-residence-name {
    font-family: var(--pr-font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--pr-text);
    margin: 0;
    line-height: 1.25;
}

.pr-residence-desc {
    font-size: 0.92rem;
    color: var(--pr-text-soft);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 800px) {
    .pr-residence,
    .pr-residence--reversed {
        grid-template-columns: 1fr;
    }
    .pr-residence-visual { min-height: 260px; }
    .pr-residence--reversed .pr-residence-visual { order: 0; }
    .pr-residence--reversed .pr-residence-content { order: 0; }
    .pr-residence-content { padding: 2.5rem 2rem; }
}

/* ─── 8. EVENTS (elegant list) ─────────────────────────── */

.pr-section--events {
    background: var(--pr-bg-warm);
    border-top: 1px solid var(--pr-border);
    border-bottom: 1px solid var(--pr-border);
}

.pr-events {
    display: flex;
    flex-direction: column;
}

.pr-event {
    display: flex;
    align-items: baseline;
    gap: 3rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--pr-border);
}

.pr-event:first-child {
    padding-top: 0;
}

.pr-event:last-child {
    border-bottom: none;
}

.pr-event-date {
    display: flex;
    flex-direction: column;
    min-width: 7rem;
    flex-shrink: 0;
}

.pr-event-day {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--pr-text);
}

.pr-event-time {
    font-size: 0.78rem;
    color: var(--pr-text-muted);
    margin-top: 0.15rem;
}

.pr-event-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pr-event-title {
    font-family: var(--pr-font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--pr-text);
    margin: 0;
}

.pr-event-location {
    font-size: 0.82rem;
    color: var(--pr-text-muted);
}

@media (max-width: 480px) {
    .pr-event { flex-direction: column; gap: 0.3rem; }
    .pr-event-date { flex-direction: row; gap: 0.75rem; min-width: auto; }
}

/* ─── 9. NOTICES (editorial) ───────────────────────────── */

.pr-notices {
    display: flex;
    flex-direction: column;
}

.pr-notice {
    padding: 2rem 0;
    border-bottom: 1px solid var(--pr-border);
}

.pr-notice:first-child {
    padding-top: 0;
}

.pr-notice:last-child {
    border-bottom: none;
}

.pr-notice-date {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pr-gold);
    margin-bottom: 0.5rem;
}

.pr-notice-title {
    font-family: var(--pr-font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--pr-text);
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.pr-notice-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.pr-notice-link:hover {
    color: var(--pr-gold);
}

.pr-notice-preview {
    font-size: 0.92rem;
    color: var(--pr-text-soft);
    line-height: 1.65;
    margin: 0;
    max-width: 640px;
}

/* ─── 10. CONTACT CTA ──────────────────────────────────── */

.pr-section--cta {
    background: var(--pr-bg-warm);
    border-top: 1px solid var(--pr-border);
    padding: 6rem 0;
    text-align: center;
}

.pr-cta-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pr-cta-eyebrow {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pr-gold);
    margin: 0;
}

.pr-cta-title {
    font-family: var(--pr-font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--pr-text);
    margin: 0 0 0.5rem;
}

/* ─── 11. BUTTONS ───────────────────────────────────────── */

.pr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border: 1px solid transparent;
    font-family: var(--pr-font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.pr-btn--hero {
    background: transparent;
    color: var(--pr-text);
    border-color: rgba(245, 240, 232, 0.4);
}

.pr-btn--hero:hover {
    background: var(--pr-text);
    color: var(--pr-bg);
    border-color: var(--pr-text);
}

.pr-btn--outline {
    background: transparent;
    color: var(--pr-gold);
    border-color: var(--pr-gold);
}

.pr-btn--outline:hover {
    background: var(--pr-gold);
    color: var(--pr-bg);
}

.pr-btn--gold {
    background: transparent;
    color: var(--pr-gold);
    border-color: var(--pr-gold);
    padding: 0.85rem 2.5rem;
    font-size: 0.82rem;
}

.pr-btn--gold:hover {
    background: var(--pr-gold);
    color: var(--pr-bg);
}

.pr-btn--disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* ─── 12. EMPTY STATE ───────────────────────────────────── */

.pr-empty {
    text-align: center;
    color: var(--pr-text-muted);
    font-size: 0.95rem;
    padding: 4rem 0;
}

/* ─── 13. PRINT ─────────────────────────────────────────── */

@media print {
    .pr-preview-banner,
    .pr-section--cta { display: none; }
    .pr { background: #fff; color: #000; }
    .pr-hero { min-height: auto; }
    .pr-section { padding: 1.5rem 0; }
}
