/* ==========================================================================
   HERITAGE WORLDWIDE — Design System
   Luxury Heritage: Black / Ivory / Champagne / Deep Burgundy / Gold
   Serif display (Playfair Display) + modern sans UI (Inter)
   ========================================================================== */

:root {
    --hw-black: #0a0a0c;
    --hw-black-soft: #14131a;
    --hw-charcoal: #1d1b24;
    --hw-ivory: #faf7f1;
    --hw-ivory-deep: #f2ecdf;
    --hw-champagne: #d9c9a3;
    --hw-champagne-deep: #c3ab77;
    --hw-gold: #c7a252;
    --hw-gold-bright: #e6c878;
    --hw-burgundy: #5c1626;
    --hw-burgundy-deep: #430f1b;
    --hw-ink: #1a1720;
    --hw-ink-soft: #4a4552;
    --hw-line: rgba(199, 162, 82, 0.28);
    --hw-white: #ffffff;

    --hw-font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --hw-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --hw-shadow-soft: 0 10px 40px rgba(10, 10, 12, 0.08);
    --hw-shadow-card: 0 16px 48px rgba(10, 10, 12, 0.10);
    --hw-shadow-deep: 0 24px 64px rgba(10, 10, 12, 0.35);

    --hw-radius: 4px;
    --hw-radius-lg: 8px;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--hw-font-sans);
    color: var(--hw-ink);
    background: var(--hw-ivory);
    -webkit-font-smoothing: antialiased;
    line-height: 1.65;
}

h1, h2, h3, h4, .font-serif {
    font-family: var(--hw-font-serif);
    font-weight: 700;
    letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }

.hw-overline {
    font-family: var(--hw-font-sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--hw-gold);
}

.hw-overline::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--hw-gold);
    margin-right: 12px;
    vertical-align: middle;
}

.hw-divider {
    width: 64px;
    height: 2px;
    background: linear-gradient(90deg, var(--hw-gold), var(--hw-champagne));
    margin: 1.25rem auto;
    border: none;
}
.hw-divider.hw-divider-left { margin-left: 0; }

.text-gold { color: var(--hw-gold) !important; }
.text-champagne { color: var(--hw-champagne) !important; }
.text-burgundy { color: var(--hw-burgundy) !important; }
.bg-hw-black { background: var(--hw-black) !important; }
.bg-hw-ivory { background: var(--hw-ivory) !important; }
.bg-hw-ivory-deep { background: var(--hw-ivory-deep) !important; }
.bg-hw-burgundy { background: var(--hw-burgundy) !important; }

/* ---------- buttons ---------- */
.btn-hw-gold {
    background: linear-gradient(135deg, var(--hw-gold-bright), var(--hw-gold));
    color: var(--hw-black);
    border: 1px solid var(--hw-gold);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .82rem;
    padding: .85rem 2.1rem;
    border-radius: var(--hw-radius);
    transition: all .25s ease;
}
.btn-hw-gold:hover {
    color: var(--hw-black);
    background: linear-gradient(135deg, var(--hw-gold), var(--hw-gold-bright));
    box-shadow: 0 8px 24px rgba(199, 162, 82, 0.45);
    transform: translateY(-2px);
}

.btn-hw-outline {
    background: transparent;
    color: var(--hw-ivory);
    border: 1px solid rgba(250, 247, 241, 0.55);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .82rem;
    padding: .85rem 2.1rem;
    border-radius: var(--hw-radius);
    transition: all .25s ease;
}
.btn-hw-outline:hover {
    color: var(--hw-black);
    background: var(--hw-ivory);
    border-color: var(--hw-ivory);
    transform: translateY(-2px);
}

.btn-hw-outline-dark {
    background: transparent;
    color: var(--hw-ink);
    border: 1px solid rgba(26, 23, 32, 0.35);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .82rem;
    padding: .85rem 2.1rem;
    border-radius: var(--hw-radius);
    transition: all .25s ease;
}
.btn-hw-outline-dark:hover {
    color: var(--hw-ivory);
    background: var(--hw-ink);
    border-color: var(--hw-ink);
}

/* ---------- navbar ---------- */
.hw-navbar {
    background: rgba(8, 8, 10, 0.98);
    border-bottom: 1px solid var(--hw-line);
    padding: .9rem 0;
    transition: padding .25s ease;
}
.hw-navbar .navbar-brand {
    font-family: var(--hw-font-serif);
    font-size: 1.4rem;
    color: var(--hw-ivory);
    letter-spacing: .06em;
}
.hw-navbar .navbar-brand span { color: var(--hw-gold); }
.hw-navbar .nav-link {
    color: rgba(250, 247, 241, 0.82);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .5rem 1rem !important;
}
.hw-navbar .nav-link:hover, .hw-navbar .nav-link.active { color: var(--hw-gold); }
.hw-navbar .dropdown-menu {
    background: var(--hw-black-soft);
    border: 1px solid var(--hw-line);
    border-radius: var(--hw-radius);
    padding: .5rem;
}
.hw-navbar .dropdown-item {
    color: var(--hw-ivory);
    font-size: .85rem;
    padding: .55rem .9rem;
    border-radius: 3px;
}
.hw-navbar .dropdown-item:hover { background: rgba(199,162,82,.14); color: var(--hw-gold-bright); }

/* ---------- hero ---------- */
.hw-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(10,10,12,.55), rgba(10,10,12,.82)), var(--hw-black);
    background-size: cover;
    background-position: center;
    color: var(--hw-ivory);
    overflow: hidden;
}
.hw-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(10,10,12,.55) 100%);
    pointer-events: none;
}
.hw-hero .container { position: relative; z-index: 2; }
.hw-hero-title {
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}
.hw-hero-sub {
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    color: var(--hw-champagne);
    font-family: var(--hw-font-serif);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 2.2rem;
}

/* ---------- sections ---------- */
.hw-section { padding: 6rem 0; }
.hw-section-title { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }

/* ---------- event / competition cards ---------- */
.hw-card {
    background: var(--hw-white);
    border-radius: var(--hw-radius-lg);
    overflow: hidden;
    box-shadow: var(--hw-shadow-card);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
    border: 1px solid rgba(199,162,82,.14);
}
.hw-card:hover { transform: translateY(-8px); box-shadow: var(--hw-shadow-deep); }
.hw-card-img {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--hw-black-soft);
}
.hw-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s ease;
}
.hw-card:hover .hw-card-img img { transform: scale(1.07); }
.hw-card-status {
    position: absolute; top: 14px; left: 14px;
    background: rgba(10,10,12,.75);
    color: var(--hw-gold-bright);
    font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    padding: .35rem .75rem; border-radius: 20px;
    border: 1px solid rgba(199,162,82,.4);
}
.hw-card-body { padding: 1.5rem 1.4rem 1.6rem; }
.hw-card-title { font-size: 1.25rem; margin-bottom: .3rem; }
.hw-card-meta { font-size: .82rem; color: var(--hw-ink-soft); margin-bottom: .9rem; }
.hw-card-meta i { color: var(--hw-gold); width: 16px; }

/* ---------- countdown ---------- */
.hw-countdown { display: flex; gap: .6rem; }
.hw-countdown .unit {
    background: rgba(199,162,82,.1);
    border: 1px solid var(--hw-line);
    border-radius: var(--hw-radius);
    padding: .5rem .3rem;
    text-align: center;
    min-width: 56px;
}
.hw-countdown .num { font-family: var(--hw-font-serif); font-size: 1.25rem; font-weight: 700; color: var(--hw-gold); display: block; }
.hw-countdown .lbl { font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--hw-ink-soft); }
.hw-hero .hw-countdown .unit { background: rgba(250,247,241,.08); border-color: rgba(250,247,241,.2); }
.hw-hero .hw-countdown .lbl { color: rgba(250,247,241,.65); }

/* ---------- badges (application status) ---------- */
.hw-badge { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 20px; display: inline-block; }
.badge-pending { background: rgba(150,150,150,.15); color: #6b6b6b; }
.badge-progress { background: rgba(59,130,246,.12); color: #2563eb; }
.badge-approved { background: rgba(34,153,84,.12); color: #1a7f43; }
.badge-finalist { background: rgba(199,162,82,.18); color: #8a6a1f; }
.badge-winner { background: linear-gradient(135deg, var(--hw-gold-bright), var(--hw-gold)); color: var(--hw-black); }
.badge-closed { background: rgba(220,38,38,.12); color: #b91c1c; }

/* ---------- titleholder / winner spotlight ---------- */
.hw-crown-card {
    text-align: center;
    background: var(--hw-black);
    color: var(--hw-ivory);
    border-radius: var(--hw-radius-lg);
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--hw-line);
}
.hw-crown-photo {
    width: 140px; height: 140px; border-radius: 50%;
    object-fit: cover; margin: 0 auto 1.2rem;
    border: 3px solid var(--hw-gold);
    box-shadow: 0 0 0 6px rgba(199,162,82,.15);
}
.hw-crown-icon { color: var(--hw-gold); font-size: 1.4rem; margin-bottom: .6rem; }

/* ---------- contestant grid ---------- */
.hw-contestant-card {
    background: var(--hw-white);
    border-radius: var(--hw-radius-lg);
    overflow: hidden;
    box-shadow: var(--hw-shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease;
}
.hw-contestant-card:hover { transform: translateY(-6px); box-shadow: var(--hw-shadow-card); }
.hw-contestant-photo { aspect-ratio: 3/4; overflow: hidden; background: var(--hw-ivory-deep); }
.hw-contestant-photo img { width: 100%; height: 100%; object-fit: cover; }
.hw-contestant-number {
    font-family: var(--hw-font-serif);
    color: var(--hw-gold);
    font-size: .78rem;
    letter-spacing: .08em;
}

/* ---------- section nav (competition sub-navigation) ---------- */
.hw-subnav {
    background: var(--hw-black);
    position: sticky; top: 0; z-index: 1020;
    border-bottom: 1px solid var(--hw-line);
}
.hw-subnav .nav-link {
    color: rgba(250,247,241,.7);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 1rem 1.1rem;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.hw-subnav .nav-link:hover { color: var(--hw-gold-bright); }
.hw-subnav .nav-link.active { color: var(--hw-gold); border-bottom-color: var(--hw-gold); }
.hw-subnav .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.hw-subnav .nav::-webkit-scrollbar { display: none; }

/* ---------- forms ---------- */
.hw-form-section {
    background: var(--hw-white);
    border-radius: var(--hw-radius-lg);
    padding: 2rem;
    box-shadow: var(--hw-shadow-soft);
    margin-bottom: 1.5rem;
}
.hw-form-section h5 {
    font-family: var(--hw-font-serif);
    color: var(--hw-burgundy);
    border-bottom: 1px solid var(--hw-line);
    padding-bottom: .75rem;
    margin-bottom: 1.5rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--hw-gold);
    box-shadow: 0 0 0 .2rem rgba(199,162,82,.18);
}
.form-label { font-size: .82rem; font-weight: 600; color: var(--hw-ink-soft); }

.hw-steps { display: flex; justify-content: center; gap: 0; margin-bottom: 2.5rem; flex-wrap: wrap; }
.hw-step {
    display: flex; align-items: center; gap: .5rem;
    padding: 0 1.2rem; position: relative;
    color: var(--hw-ink-soft); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.hw-step .circle {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(26,23,32,.25); font-family: var(--hw-font-serif);
}
.hw-step.active { color: var(--hw-burgundy); }
.hw-step.active .circle, .hw-step.done .circle { background: var(--hw-gold); border-color: var(--hw-gold); color: var(--hw-black); }
.hw-step.done { color: var(--hw-ink); }

/* ---------- footer ---------- */
.hw-footer {
    background: var(--hw-black);
    color: rgba(250,247,241,.75);
    padding: 4.5rem 0 1.8rem;
}
.hw-footer h6 { color: var(--hw-ivory); font-family: var(--hw-font-serif); font-size: 1.05rem; margin-bottom: 1.2rem; }
.hw-footer a { color: rgba(250,247,241,.65); font-size: .88rem; }
.hw-footer a:hover { color: var(--hw-gold); }
.hw-footer .social-icon {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(199,162,82,.4);
    display: inline-flex; align-items: center; justify-content: center;
    margin-right: .5rem; color: var(--hw-gold);
}
.hw-footer .social-icon:hover { background: var(--hw-gold); color: var(--hw-black); }
.hw-footer-bottom { border-top: 1px solid rgba(199,162,82,.14); margin-top: 3rem; padding-top: 1.5rem; font-size: .78rem; color: rgba(250,247,241,.45); }

/* ---------- gallery ---------- */
.hw-gallery-item { position: relative; overflow: hidden; border-radius: var(--hw-radius); aspect-ratio: 1/1; }
.hw-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hw-gallery-item:hover img { transform: scale(1.1); }

/* ---------- utility ---------- */
.hw-eyebrow-light { color: rgba(250,247,241,.7); }
.hw-max-w-content { max-width: 720px; margin: 0 auto; }
.hw-avatar-ring { border: 2px solid var(--hw-gold); border-radius: 50%; padding: 3px; }

@media (max-width: 767px) {
    .hw-section { padding: 3.5rem 0; }
    .hw-hero { min-height: 82vh; }
}
