:root {
    --bg-dark: #06110c;
    --bg-deep: #0d241b;
    --bg-soft: #f5f1e8;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(255, 255, 255, 0.14);
    --card-light: #ffffff;
    --text-light: #f7f8fb;
    --text-muted: rgba(247, 248, 251, 0.74);
    --text-dark: #14231c;
    --accent: #ff8452;
    --accent-dark: #ef6c39;
    --border-soft: rgba(255, 255, 255, 0.14);
    --shadow-lg: 0 24px 60px rgba(6, 17, 12, 0.26);
    --shadow-md: 0 18px 40px rgba(13, 36, 27, 0.14);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text-dark);
    background:
        radial-gradient(circle at top left, rgba(255, 132, 82, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(63, 121, 89, 0.16), transparent 28%),
        linear-gradient(180deg, #06110c 0%, #0d241b 34%, #f3efe6 34%, #f7f3ea 100%);
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.custom-navbar {
    backdrop-filter: blur(18px);
    background: rgba(6, 17, 12, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
    font-family: "Unbounded", sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
}

.nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.small-link {
    font-size: 0.95rem;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #ffb36a);
    color: #111827;
    font-weight: 800;
    border: none;
    padding: 0.82rem 1.4rem;
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(255, 132, 82, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-accent:hover,
.btn-accent:focus {
    background: linear-gradient(135deg, var(--accent-dark), #ff9d52);
    color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(255, 132, 82, 0.35);
}

.hero-section {
    padding: 5.5rem 0 4rem;
    color: var(--text-light);
}

.hero-copy-col {
    padding-right: 2rem;
}

.hero-visual-col {
    padding-left: 1rem;
}

@media (min-width: 992px) {
    .hero-visual-col {
        margin-top: 6rem;
    }
}

.eyebrow-badge,
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-tag.light {
    color: rgba(255, 255, 255, 0.8);
}

.hero-title,
.page-header h1,
.section-heading h2,
.cta-card h2 {
    font-family: "Unbounded", sans-serif;
    line-height: 1.18;
}

.hero-title {
    font-size: clamp(2.4rem, 4.3vw, 4rem);
    margin-bottom: 1.2rem;
    max-width: 8.5ch;
    position: relative;
    z-index: 2;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.75;
    max-width: 60ch;
    color: var(--text-muted);
}

.hero-metrics .metric-card {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-soft);
    height: 100%;
}

.metric-card strong {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
    color: #ffffff;
}

.metric-card span {
    color: rgba(255, 255, 255, 0.72);
}

.hero-panel {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-panel-top,
.hero-panel-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
}

.hero-panel-body {
    min-height: 360px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(255, 132, 82, 0.2), transparent 30%),
        linear-gradient(180deg, rgba(6, 17, 12, 0.5), rgba(6, 17, 12, 0.12));
}

.hero-orbit {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    animation: rotateOrbit 16s linear infinite;
}

.hero-orbit-main {
    width: 270px;
    height: 270px;
}

.hero-orbit-secondary {
    width: 180px;
    height: 180px;
    animation-direction: reverse;
    animation-duration: 10s;
}

.hero-core {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 132, 82, 0.92), rgba(255, 190, 92, 0.85));
    color: #121826;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 18px 34px rgba(255, 132, 82, 0.32);
}

.hero-core span {
    font-size: 0.95rem;
    opacity: 0.8;
}

.hero-core strong {
    font-size: 1.25rem;
    line-height: 1.35;
}

.section-space {
    padding: 5rem 0;
}

.about-section {
    background: #f7f3ea;
    padding-top: 6rem;
}

.section-heading {
    margin-bottom: 2.4rem;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #0f2119;
    margin-bottom: 1rem;
}

.section-heading p,
.page-header p,
.case-detail-text,
.cta-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(15, 33, 25, 0.8);
    max-width: 68ch;
}

.info-card,
.form-card,
.contact-card,
.empty-state,
.case-detail-card,
.admin-table-wrapper {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(13, 36, 27, 0.1);
}

.info-card h3,
.contact-card h2,
.form-card h2,
.empty-state h2,
.case-list-body h2 {
    font-family: "Unbounded", sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.info-card p,
.contact-card p,
.contact-points li,
.admin-hint,
.footer-text {
    color: rgba(20, 35, 28, 0.8);
    line-height: 1.7;
}

.muted-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.52));
}

.case-card,
.case-list-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(13, 36, 27, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.case-card {
    display: flex;
    flex-direction: column;
}

.case-list-card {
    display: flex;
}

.case-card:hover,
.case-list-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(13, 36, 27, 0.2);
}

.case-card-image-wrapper {
    overflow: hidden;
    height: 240px;
}

.case-card-image,
.case-list-image,
.case-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-card-image {
    transition: transform 0.45s ease;
}

.case-card:hover .case-card-image {
    transform: scale(1.06);
}

.case-card-body,
.case-list-body {
    padding: 1.5rem;
}

.case-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 250px;
}

.case-card-content {
    flex: 1 1 auto;
}

.case-card-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.case-card-body h3,
.case-detail-card h2 {
    font-family: "Unbounded", sans-serif;
    font-size: 1.35rem;
    color: #0e2018;
    margin-bottom: 0.9rem;
}

.case-card-body p,
.case-list-body p {
    color: rgba(14, 32, 24, 0.78);
    line-height: 1.7;
}

.case-list-body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.case-list-content {
    flex: 1 1 auto;
}

.case-list-actions {
    margin-top: auto;
    padding-top: 1.25rem;
}

.case-list-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.case-card-body p {
    margin-bottom: 1rem;
}

.case-chip {
    display: inline-flex;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 132, 82, 0.12);
    color: #d15f30;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.9rem;
}

.case-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(18, 48, 37, 0.18);
    border-radius: 14px;
    background: rgba(18, 48, 37, 0.04);
    color: #123025;
    font-weight: 800;
    line-height: 1;
}

.case-link:hover {
    background: rgba(255, 132, 82, 0.1);
    color: #d15f30;
}

.page-header {
    padding: 4rem 0 2rem;
    color: var(--text-light);
}

.cases-page-header {
    padding-top: 6.5rem;
    padding-bottom: 8rem;
}

.cases-grid-section {
    position: relative;
    margin-top: 2rem;
    padding-top: 4.5rem;
    padding-bottom: 5rem;
    background: linear-gradient(180deg, #f4efe6 0%, #f8f4ec 100%);
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

.case-detail-page-header {
    padding-bottom: 7rem;
}

.case-detail-section {
    position: relative;
    margin-top: 2rem;
    padding-top: 4.5rem;
    padding-bottom: 5rem;
    background: linear-gradient(180deg, #f4efe6 0%, #f8f4ec 100%);
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

.page-header h1 {
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(247, 248, 251, 0.78);
}

.case-list-image {
    min-height: 100%;
    height: 100%;
}

.case-detail-card {
    padding: 2rem;
}

.case-detail-content {
    display: flex;
    flex-direction: column;
}

.case-detail-actions {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 1rem;
    align-items: start;
}

.case-detail-actions .btn {
    justify-self: stretch;
    text-align: center;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.case-detail-image {
    min-height: 420px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.contact-points {
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-note {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 132, 82, 0.08);
}

.form-control,
.form-select {
    border-radius: 16px;
    border: 1px solid rgba(13, 36, 27, 0.14);
    padding: 0.95rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(255, 132, 82, 0.6);
    box-shadow: 0 0 0 0.25rem rgba(255, 132, 82, 0.15);
}

.cta-section {
    padding-top: 0;
}

.cta-card {
    background: linear-gradient(145deg, #0d1d16, #163528);
    color: var(--text-light);
    border-radius: 32px;
    padding: 2.2rem;
    box-shadow: var(--shadow-lg);
}

.cta-card p {
    color: rgba(247, 248, 251, 0.74);
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 700;
}

.admin-table {
    margin-bottom: 0;
}

.admin-table thead th {
    color: rgba(14, 32, 24, 0.74);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom-width: 1px;
}

.admin-table td,
.admin-table th {
    vertical-align: middle;
    padding: 1rem 0.85rem;
}

.message-cell {
    min-width: 240px;
    max-width: 320px;
    white-space: normal;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.site-footer {
    padding: 2rem 0;
    background: #08130e;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 4rem;
}

.footer-title {
    font-family: "Unbounded", sans-serif;
    font-size: 1.1rem;
}

.flash-stack {
    max-width: 920px;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes rotateOrbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991.98px) {
    body {
        background:
            radial-gradient(circle at top left, rgba(255, 132, 82, 0.2), transparent 34%),
            linear-gradient(180deg, #06110c 0%, #0d241b 30%, #f3efe6 30%, #f7f3ea 100%);
    }

    .hero-section {
        padding-top: 4rem;
    }

    .hero-copy-col,
    .hero-visual-col {
        padding-left: calc(var(--bs-gutter-x) * 0.5);
        padding-right: calc(var(--bs-gutter-x) * 0.5);
    }

    .hero-panel-body {
        min-height: 300px;
    }

    .page-header {
        padding-top: 3rem;
    }

    .cases-page-header {
        padding-top: 5rem;
        padding-bottom: 6rem;
    }

    .cases-grid-section {
        margin-top: 1.5rem;
        padding-top: 3.5rem;
    }

    .case-detail-page-header {
        padding-bottom: 5.5rem;
    }

    .case-detail-section {
        margin-top: 1.5rem;
        padding-top: 3.5rem;
    }
}

@media (max-width: 767.98px) {
    .section-space {
        padding: 3.8rem 0;
    }

    .hero-actions .btn,
    .cta-card .btn {
        width: 100%;
    }

    .hero-panel-top,
    .hero-panel-bottom {
        flex-direction: column;
    }

    .case-list-image,
    .case-detail-image {
        min-height: 260px;
    }

    .case-list-actions .btn {
        width: 100%;
    }

    .case-detail-actions .btn {
        width: 100%;
    }

    .case-detail-actions {
        grid-template-columns: 1fr;
    }

    .cases-grid-section {
        border-top-left-radius: 28px;
        border-top-right-radius: 28px;
        padding-top: 2.75rem;
        padding-bottom: 3.8rem;
    }

    .case-detail-section {
        border-top-left-radius: 28px;
        border-top-right-radius: 28px;
        padding-top: 2.75rem;
        padding-bottom: 3.8rem;
    }

    .form-card,
    .contact-card,
    .info-card,
    .case-detail-card,
    .admin-table-wrapper {
        padding: 1.3rem;
    }
}
