:root {
    --bg: #F5EFE0;
    --ink: #1a1a1a;
    --cream: #EDE8D8;
    --cream-mid: #D9D1BC;
    --mid: #7a7570;
    --white: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    margin-top: 5rem;
    min-height: 100vh;
}

/* ─── CUSTOM CURSOR ─── */
#bd-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .22s, height .22s, background .22s;
    mix-blend-mode: multiply;
}

#bd-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform .18s ease, width .28s, height .28s;
    opacity: .35;
}

@media (max-width: 960px) {

    #bd-cursor,
    #bd-cursor-ring {
        display: none;
    }

    body {
        cursor: auto;
    }
}

@media (min-width: 961px) {
    body {
        cursor: none;
    }
}

/* ─── TICKER ─── */
.bd-ticker {
    overflow: hidden;
    white-space: nowrap;
    background: var(--ink);
    padding: 13px 0;
}

.bd-ticker-track {
    display: inline-flex;
    animation: bdTicker 24s linear infinite;
}

.bd-ticker-track span {
    font-size: 10px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 0 2.5rem;
}

.bd-ticker-track .dot {
    opacity: .3;
}

@keyframes bdTicker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ─── TYPOGRAPHY ─── */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--ink);
}

h2 {
    font-size: clamp(20px, 3vw, 36px);
    letter-spacing: -1px;
}

h3 {
    font-size: clamp(18px, 2.5vw, 28px);
}

h4 {
    font-size: clamp(15px, 2vw, 22px);
}

h5,
h6 {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink);
}

p,
li,
span,
label {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    line-height: 1.9;
    color: var(--mid);
    font-weight: 300;
}

.lead {
    font-size: 15px;
    color: var(--mid);
    font-weight: 300;
}

strong {
    color: var(--ink);
    font-weight: 600;
}

hr {
    border: none;
    border-top: 1px solid var(--cream-mid);
    opacity: 1;
    margin: 2rem auto;
    width: 80%;
}

/* ─── FORM CARD ─── */
.card-form {
    background: var(--white);
    padding: 3rem;
    border: 1px solid var(--cream-mid);
    transition: transform .3s, box-shadow .3s;
}

.card-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
}

.rounded-4 {
    border-radius: 0 !important;
    overflow: hidden;
}

h6.text-center {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.85;
    margin-bottom: 2rem;
    text-transform: none;
    letter-spacing: 0;
}

/* ─── FORM FIELDS ─── */
form p {
    margin-bottom: 1.4rem;
    position: relative;
}

form label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 8px;
    display: block;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--cream-mid);
    border-radius: 0;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    color: var(--ink);
    background: var(--bg);
    transition: border-color .25s, box-shadow .25s;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: none;
    background: var(--white);
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

form input[type="file"] {
    padding: 10px 14px;
    cursor: pointer;
}

form input[type="file"]::-webkit-file-upload-button {
    background: var(--ink);
    color: var(--white);
    padding: 8px 18px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background .25s;
}

form input[type="file"]::-webkit-file-upload-button:hover {
    background: #3a3330;
}

/* ─── SUBMIT BUTTON ─── */
.btn-success {
    background: var(--ink) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 15px 40px;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--white) !important;
    transition: background .25s !important;
    box-shadow: none !important;
}

.btn-success:hover {
    background: #3a3330 !important;
}

.rounded-pill {
    border-radius: 0 !important;
}

/* ─── SIZE CHART TRIGGER BUTTON ─── */
.size-chart-trigger {
    display: block;
    width: fit-content;
    margin: 2rem auto 0;
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
    padding: 14px 36px;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border-radius: 0;
    transition: background .25s, color .25s;
    cursor: pointer;
}

.size-chart-trigger:hover {
    background: var(--ink);
    color: var(--white);
}

/* ─── FOOTER INFO BOX ─── */
.footer {
    color: var(--mid);
    border: 1px solid var(--cream-mid);
    width: 90%;
    margin: 3rem auto 1.5rem;
    padding: 2rem 2.5rem;
    background: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    line-height: 1.9;
    font-weight: 300;
    border-radius: 0;
}

.footer a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    transition: opacity .2s;
}

.footer a:hover {
    opacity: .6;
}

/* ─── PAGE FOOTER ─── */
footer.bg-dark {
    background: var(--ink) !important;
    color: var(--white);
    padding: 2.5rem 1.5rem;
    margin-top: 0;
}

footer p {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    margin-bottom: .6rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 500;
    transition: color .2s;
}

footer a:hover {
    color: var(--white);
}

/* ─── HELPTEXT & ERRORS ─── */
.helptext {
    font-size: 11px;
    color: var(--mid);
    margin-top: 4px;
    display: block;
    font-weight: 300;
}

.errorlist {
    list-style: none;
    padding: 0;
    color: #c0392b;
    font-size: 11px;
    margin-top: 4px;
    font-weight: 500;
}

/* ─── MODAL ─── */
.modal-content {
    border-radius: 0 !important;
    border: 1px solid var(--cream-mid);
}

.modal-header {
    background: var(--ink);
    border-bottom: none;
    padding: 1.2rem 1.6rem;
}

.modal-header .modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: .7;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    background: var(--bg);
    padding: 2rem;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-dialog {
    max-width: 95%;
}

/* ─── MODAL INNER CARDS ─── */
.modal-body .card {
    border: 1px solid var(--cream-mid) !important;
    border-radius: 0 !important;
    background: var(--white);
    box-shadow: none !important;
    margin-bottom: 1.5rem;
    transition: none;
}

.modal-body .card.bg-light {
    background: var(--cream) !important;
}

.modal-body .card-body {
    padding: 1.6rem;
}

.modal-body .brand-pill {
    background: var(--ink);
    color: var(--white);
    border-radius: 0;
    padding: .6rem 1.4rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Modal tables */
.modal-body .table thead th {
    background: var(--ink) !important;
    color: var(--white) !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: none !important;
    white-space: nowrap;
}

.modal-body .table tbody td,
.modal-body .table tbody th {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--mid);
    font-weight: 300;
    border-color: var(--cream-mid);
    vertical-align: middle;
}

.modal-body .table-striped>tbody>tr:nth-of-type(odd)>* {
    background: var(--bg);
}

.modal-body .table-bordered th,
.modal-body .table-bordered td {
    border-color: var(--cream-mid) !important;
}

.modal-body table th {
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.modal-body table th:last-child {
    border-right: none !important;
}

.modal-body .unit {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.modal-body .badge.bg-info {
    background: var(--ink) !important;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    padding: 6px 12px;
    font-weight: 700;
}

/* Modal info/tip/measurement boxes */
.modal-body .info-box {
    background: var(--cream);
    border-left: 3px solid var(--ink);
    padding: 1.2rem 1.4rem;
    margin: 1rem 0;
    border-radius: 0;
}

.modal-body .tip-box {
    background: var(--white);
    border: 1px solid var(--cream-mid);
    border-radius: 0;
    padding: 1.2rem 1.4rem;
    margin: 0;
    height: 100%;
}

.modal-body .measurement-guide {
    background: var(--cream);
    border: 1px solid var(--cream-mid);
    border-radius: 0;
    padding: 1.2rem 1.4rem;
    margin: 0 0 1rem;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container.my-5 {
    animation: fadeInUp 0.8s ease-out;
}

.bd-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .75s ease, transform .75s ease;
}

.bd-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .card-form {
        padding: 1.6rem;
    }

    h1 {
        letter-spacing: -1px;
    }

    .size-chart-trigger {
        width: 100%;
        text-align: center;
    }

    .footer {
        padding: 1.4rem;
    }
}