/**
 * Skin: Jude Rose
 * Inspired by Jude Home 4 — rose/mauve accent (#C9727A) as primary,
 * dark burgundy (#911439) hover, soft blush backgrounds, Raleway headings.
 */

/* ─── Web Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* ─── Base ─── */
body {
    background-color: #fefcfb;
    color: #202031;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: #202031;
}

.display-1, .display-2, .display-3 {
    font-weight: 800;
}

h5, h6 {
    font-weight: 600;
}

.fw-light {
    font-weight: 300 !important;
}

.lead {
    font-weight: 400;
    color: #666;
}

.text-muted {
    color: #aaa !important;
}

p {
    line-height: 1.75;
    color: #555;
}

a {
    color: #C9727A;
    transition: color .2s ease;
}

a:hover {
    color: #911439;
}

small, .small {
    color: #C9727A;
}

blockquote, blockquote p {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-style: italic;
    color: #444;
}

/* ─── Navbar ─── */
.navbar-dark.bg-dark,
.navbar.bg-dark {
    background-color: #911439 !important;
}

.navbar-dark .navbar-brand {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: #fff !important;
}

.navbar-dark .nav-link {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .85) !important;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
    color: #fff !important;
}

/* ─── Buttons ─── */
.btn {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 9999px;
    padding: .7rem 1.8rem;
    transition: all .25s ease;
}

.btn-lg {
    padding: .85rem 2.4rem;
    font-size: .85rem;
}

.btn-sm {
    padding: .45rem 1.2rem;
    font-size: .75rem;
}

.btn-dark {
    background-color: #C9727A;
    border-color: #C9727A;
    color: #fff;
}

.btn-dark:hover {
    background-color: #911439;
    border-color: #911439;
    color: #fff;
}

.btn-outline-dark {
    color: #C9727A;
    border-color: #C9727A;
}

.btn-outline-dark:hover,
.btn-outline-dark.active {
    background-color: #C9727A;
    border-color: #C9727A;
    color: #fff;
}

.btn-light {
    background-color: #fff;
    border-color: #e8d6d8;
    color: #202031;
}

.btn-light:hover {
    background-color: #C9727A;
    border-color: #C9727A;
    color: #fff;
}

.btn-outline-light {
    border-color: #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #C9727A;
}

/* ─── Cards ─── */
.card {
    background-color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(145, 20, 57, .06);
}

.card-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: #202031;
}

.card-header.bg-dark {
    background-color: #911439 !important;
    border-radius: 8px 8px 0 0;
}

.card-img-top {
    border-radius: 8px 8px 0 0;
}

/* ─── Backgrounds ─── */
.bg-dark {
    background-color: #911439 !important;
}

.bg-light {
    background-color: #fdf5f6 !important;
}

.bg-secondary {
    background-color: #e8d6d8 !important;
}

/* Dark section overrides */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-dark .display-1, .bg-dark .display-2, .bg-dark .display-3,
.bg-dark .display-4, .bg-dark .display-5, .bg-dark .display-6 {
    color: #fff;
}

.bg-dark p, .bg-dark .lead {
    color: rgba(255, 255, 255, .8);
}

.bg-dark .text-muted {
    color: rgba(255, 255, 255, .5) !important;
}

.bg-dark a {
    color: #f2c4ca;
}

.bg-dark .btn-light {
    background-color: #fff;
    border-color: #fff;
    color: #911439;
}

.bg-dark .btn-light:hover {
    background-color: #f2c4ca;
    border-color: #f2c4ca;
    color: #911439;
}

/* ─── Footer ─── */
footer.bg-dark {
    background-color: #6e0f2c !important;
}

footer a.text-light:hover,
footer a.text-decoration-none:hover {
    color: #f2c4ca !important;
}

/* ─── Tables ─── */
.table {
    --bs-table-bg: transparent;
    color: #202031;
}

.table > :not(caption) > * > * {
    border-bottom-color: #f0e4e6;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: rgba(201, 114, 122, .04);
}

.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: rgba(201, 114, 122, .07);
}

.table-dark,
thead.table-dark {
    --bs-table-bg: #911439;
    --bs-table-color: #fff;
    background-color: #911439;
    color: #fff;
}

/* ─── Badges ─── */
.badge {
    border-radius: 9999px;
}

.badge.bg-dark {
    background-color: #C9727A !important;
}

.badge.bg-secondary {
    background-color: #e8d6d8 !important;
    color: #911439;
}

.badge.bg-info {
    background-color: #C9727A !important;
}

.badge.border-dark,
.badge.border.text-dark {
    border-color: #C9727A !important;
    color: #C9727A !important;
}

/* ─── Accordion ─── */
.accordion-item {
    border-color: #f0e4e6;
}

.accordion-button:not(.collapsed) {
    background-color: #fdf5f6;
    color: #911439;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 .25rem rgba(201, 114, 122, .2);
}

/* ─── Nav pills / tabs ─── */
.nav-pills .nav-link.active {
    background-color: #C9727A;
    border-radius: 9999px;
}

.nav-pills .nav-link {
    color: #202031;
    border-radius: 9999px;
}

.nav-pills .nav-link:hover {
    color: #C9727A;
}

.nav-tabs {
    border-bottom-color: #f0e4e6;
}

.nav-tabs .nav-link.active {
    color: #911439;
    border-color: #f0e4e6 #f0e4e6 #fefcfb;
}

.nav-tabs .nav-link {
    color: #aaa;
}

.nav-tabs .nav-link:hover {
    color: #C9727A;
    border-color: #f0e4e6;
}

/* ─── List group ─── */
.list-group-item {
    border-color: #f0e4e6;
}

.list-group-item.active,
.list-group-item-action.active {
    background-color: #C9727A;
    border-color: #C9727A;
}

.list-group-item-action:hover {
    background-color: #fdf5f6;
}

/* ─── Borders ─── */
.border, .border-bottom, .border-top, .border-start, .border-end {
    border-color: #f0e4e6 !important;
}

.border-dark {
    border-color: #C9727A !important;
}

.border-light {
    border-color: #f8eced !important;
}

/* ─── Stars ─── */
.text-warning {
    color: #e8a84c !important;
}

/* ─── Gradient hero ─── */
section[style*="linear-gradient"] {
    background: linear-gradient(135deg, #911439 60%, #a52048 100%) !important;
}

/* ─── Forms ─── */
.form-control:focus, select:focus, textarea:focus {
    border-color: #C9727A;
    box-shadow: 0 0 0 .25rem rgba(201, 114, 122, .2);
}

/* ─── Shadows ─── */
.shadow-sm {
    box-shadow: 0 4px 15px rgba(145, 20, 57, .05) !important;
}

/* ─── Selection ─── */
::selection {
    background-color: #C9727A;
    color: #fff;
}

/* ─── Rounded ─── */
.rounded {
    border-radius: 8px !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

/* ─── Dotted separators ─── */
[style*="border-bottom:1px dotted"] {
    border-bottom-color: #e8d6d8 !important;
}

/* ─── Image placeholders ─── */
.bg-secondary.d-flex {
    background-color: #f0e4e6 !important;
}

.bg-secondary.d-flex .text-light {
    color: #C9727A !important;
}

/* ─── Button group filters ─── */
.btn-group .btn-outline-dark {
    color: #C9727A;
    border-color: #C9727A;
}

.btn-group .btn-outline-dark:hover {
    background-color: #C9727A;
    color: #fff;
}

.btn-group .btn-dark.active {
    background-color: #C9727A;
    border-color: #C9727A;
}
