/* phoenixraven.com – Phoenix Raven theme: amber / charcoal / slate */

:root {
    --primary: #d97706;
    --primary-dark: #b45309;
    --primary-light: #f59e0b;
    --accent: #fbbf24;
    --charcoal: #1e293b;
    --charcoal-light: #334155;
    --slate: #475569;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-on-dark: #f1f5f9;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --shadow: rgba(217, 119, 6, 0.15);
    --shadow-strong: rgba(217, 119, 6, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1200px;
    --section-gap: 3rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    overflow-x: hidden;
    text-align: center;
}

::selection {
    background: var(--primary);
    color: #fff;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

/* Header */
.site-header {
    background: var(--charcoal);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.875rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.logo-link .logo-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: block;
}

.logo-text {
    display: inline-block;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.header-nav-link {
    color: var(--text-on-dark);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.header-nav-link:hover {
    color: var(--accent);
}

.burger-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger-line {
    width: 24px;
    height: 2px;
    background: var(--text-on-dark);
    border-radius: 1px;
}

.burger-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.burger-overlay.open {
    display: flex;
}

.burger-panel {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    max-width: 320px;
    width: 90%;
    position: relative;
}

.burger-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-on-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

.burger-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.burger-link {
    color: var(--text-on-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
}

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

@media (max-width: 768px) {
    .header-nav { display: none; }
    .burger-btn { display: flex; }
}

/* Hero */
.hero {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--charcoal) 50%, var(--charcoal-light) 100%);
    color: var(--text-on-dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.hero-shape-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; right: -100px; }
.hero-shape-2 { width: 250px; height: 250px; background: var(--accent); bottom: 20%; left: -80px; }
.hero-shape-3 { width: 150px; height: 150px; background: var(--primary-light); top: 50%; right: 15%; }

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-countdown {
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 1.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
}

.btn-hero:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-strong);
}

/* Section */
.section {
    padding: var(--section-gap) 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.section-dark .section-title {
    color: var(--text-on-dark);
}

.section-dark {
    background: var(--charcoal);
    color: var(--text-on-dark);
}

.section-dark p,
.section-dark li {
    color: var(--text-on-dark);
    opacity: 0.95;
}

.section-dark .step-card-body,
.section-dark .step-card-body p,
.section-dark .step-card-body li {
    color: #0f172a;
    opacity: 1;
}

/* Prizes */
.prize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 4fr));
    gap: 1.5rem;
}

.prize-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: none;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 32px rgba(37, 99, 235, 0.4), 0 0 0 3px #1e293b, inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 3px solid #1e293b;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.prize-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: none;
}

.prize-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.5), 0 0 0 4px #1e293b, inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: #1e293b;
}

.prize-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #1e3a8a;
    line-height: 1.3;
}

.prize-img-wrap {
    margin-top: auto;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.prize-img-wrap img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.prize-placeholder {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(96, 165, 250, 0.3) 100%);
    color: #1e40af;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 8px;
    padding: 0.5rem;
}

/* How it works – step cards */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
}

.step-card {
    position: relative;
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 50%, #fef9c3 100%);
    border: 3px solid var(--primary);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(217, 119, 6, 0.25), 0 0 0 1px rgba(217, 119, 6, 0.15);
}

.step-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
    opacity: 1;
}

.step-card:hover {
    background: linear-gradient(145deg, #fef9c3 0%, #fef3c7 50%, #fde68a 100%);
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(217, 119, 6, 0.35), 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.step-card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.step-card:hover .step-card-num {
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.6);
}

.step-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #0f172a;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.step-card:hover .step-card-title {
    color: #020617;
}

.step-card-body {
    color: #0f172a;
    font-size: 0.975rem;
    line-height: 1.6;
}

.step-card-body p {
    margin-bottom: 0.5rem;
}

.step-card-body p:last-child {
    margin-bottom: 0;
}

.step-card-body ul {
    margin: 0.5rem auto 0.75rem;
    padding-left: 1.25rem;
    display: inline-block;
    text-align: center;
    list-style-position: inside;
}

.step-card-body li {
    margin-bottom: 0.35rem;
    position: relative;
    text-align: center;
}

.step-card-body li::marker {
    color: var(--primary);
}

/* Legal */
.legal-block {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.legal-block p {
    margin-bottom: 0.5rem;
}

/* Draw CTA */
.draw-info {
    list-style: none;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    text-align: left;
}

.draw-info li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    position: relative;
}

.draw-info li::before {
    content: "▸";
    flex-shrink: 0;
    color: var(--accent);
}

/* Winners */
.winners-intro {
    margin-bottom: 0.75rem;
}

.winners-table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px var(--shadow);
}

.winners-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.winners-table th,
.winners-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.winners-table th {
    background: var(--charcoal);
    color: var(--text-on-dark);
    font-weight: 700;
}

.winners-table th:first-child,
.winners-table td:first-child {
    padding-left: 1.25rem;
}

.winners-table th:last-child,
.winners-table td:last-child {
    padding-right: 1.25rem;
}

.winners-table tbody tr:hover {
    background: var(--bg-light);
}

.winners-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 500px) {
    .winners-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .winners-table {
        min-width: 480px;
    }
}

.winners-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.section-dark .winners-note {
    color: var(--text-on-dark);
    opacity: 0.9;
}

/* Free entry – form */
.free-entry-form {
    max-width: 480px;
    margin-top: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.free-entry-form .form-row {
    margin-bottom: 1rem;
}

.free-entry-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--text-on-dark);
}

.free-entry-form .required {
    color: var(--primary-light);
}

.free-entry-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-on-dark);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.free-entry-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.free-entry-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
}

.free-entry-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.9;
    cursor: pointer;
}

.free-entry-submit {
    display: block;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.free-entry-submit:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* Modal – success */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.is-open {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background: var(--bg-light);
    color: var(--text-primary);
    padding: 2rem;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.modal-text {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-close {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-family: inherit;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: var(--primary-light);
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 2rem 0;
    text-align: center;
}

.site-footer .container {
    text-align: center;
}

.footer-top {
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer-logo .logo-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: block;
}

.footer-disclaimer {
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-badge {
    display: inline-block;
    line-height: 0;
}

.footer-badge img {
    display: block;
    width: auto;
    height: 40px;
    max-width: 80px;
    object-fit: contain;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: var(--text-on-dark);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 1rem;
    border-top: 1px solid var(--charcoal-light);
    text-align: center;
}

.footer-copy {
    font-size: 0.875rem;
    opacity: 0.85;
}

/* Policy pages – hero-style first block */
.page-header-section {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--charcoal) 50%, var(--charcoal-light) 100%);
    color: var(--text-on-dark);
    overflow: hidden;
}

.page-header-section::before,
.page-header-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    pointer-events: none;
}

.page-header-section::before {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.page-header-section::after {
    width: 250px;
    height: 250px;
    background: var(--accent);
    bottom: 20%;
    left: -80px;
}

.page-header-section .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-header-section h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-updated {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.policy-content {
    padding: 2rem 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding-left: max(20px, 5vw, env(safe-area-inset-left));
    padding-right: max(20px, 5vw, env(safe-area-inset-right));
    text-align: left;
}

@media (max-width: 768px) {
    .page-header-section .container,
    .policy-content {
        padding-left: max(24px, 5vw, env(safe-area-inset-left));
        padding-right: max(24px, 5vw, env(safe-area-inset-right));
    }
}

@media (max-width: 480px) {
    .page-header-section .container,
    .policy-content {
        padding-left: max(28px, 6vw, env(safe-area-inset-left));
        padding-right: max(28px, 6vw, env(safe-area-inset-right));
    }
}

.policy-content h2 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.policy-content p, .policy-content li {
    margin-bottom: 0.75rem;
}

.policy-content ul {
    padding-left: 1.5rem;
}

.policy-content a {
    color: var(--primary);
    text-decoration: underline;
}

.policy-content a:hover {
    color: var(--primary-dark);
}
