/* /assets/css/hairterms.css
   HairTerms — Rosewood (Beauty/Editorial) theme layer for Bootstrap 5
   Load AFTER Bootstrap and AFTER your Google Fonts link.
*/

/* ==========================================================
   1) Design tokens (palette, type, radii, shadows)
========================================================== */
:root {
    /* Core palette */
    --ht-bg: #faf7f4;
    /* warm paper */
    --ht-surface: #ffffff;
    /* card/surface */
    --ht-text: #1f2937;
    /* slate 800 */
    --ht-muted: #6b7280;
    /* slate 500 */
    --ht-border: #e7e2dc;
    /* warm border */

    /* Accent: Rosewood */
    --ht-rosewood: #8a3d4a;
    --ht-rosewood-700: #72313c;
    --ht-rosewood-100: #f4e6e8;
    --ht-rosewood-050: #fbf3f4;

    /* Optional supporting (sparingly) */
    --ht-gold: #b0892e;

    /* Shadows + radii */
    --ht-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
    --ht-shadow-soft: 0 8px 22px rgba(31, 41, 55, 0.06);
    --ht-shadow-hover: 0 14px 34px rgba(31, 41, 55, 0.10);

    --ht-radius-lg: 18px;
    --ht-radius-md: 14px;
    --ht-radius-sm: 10px;

    /* Typography */
    --ht-font-head: "Fraunces", ui-serif, Georgia, serif;
    --ht-font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
        Roboto, Arial, sans-serif;

    /* Focus ring */
    --ht-focus: 0 0 0 0.25rem rgba(138, 61, 74, 0.15);
}

/* ==========================================================
   2) Global base
========================================================== */
html,
body {
    height: 100%;
}

body {
    font-family: var(--ht-font-body);
    background: var(--ht-bg);
    color: var(--ht-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--ht-font-head);
    letter-spacing: -0.02em;
}

a {
    color: var(--ht-rosewood);
    text-decoration: none;
}

a:hover {
    color: var(--ht-rosewood-700);
    text-decoration: underline;
}

/* Better focus (keyboard users) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--ht-focus) !important;
    border-radius: 10px;
}

/* Tighter hero feel */
.display-hero {
    font-family: var(--ht-font-head);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

/* ==========================================================
   3) Readable widths (fix “too wide on desktop”)
========================================================== */
.ht-wrap {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.ht-wrap-narrow {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.ht-prose {
    max-width: 68ch;
}

@media (min-width: 992px) {

    .ht-search {
        width: 280px;
    }

    .lead.ht-prose {
        line-height: 1.65;
    }
}




/* ==========================================================
   4) Navbar + brand lockup
========================================================== */
.ht-navbar {
    background: rgba(250, 247, 244, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ht-border);
}



.navbar-brand {
    text-decoration: none !important;
    font-family: var(--ht-font-head);
    font-weight: 650;
    letter-spacing: -0.02em;
}


.ht-brand {
    font-family: var(--ht-font-head);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1;
    font-size: 1.25rem;
}


.ht-icon {
    width: 36px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: var(--ht-rosewood);
    color: #fff;

    font-family: var(--ht-font-body);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    font-size: 0.95rem;
    line-height: 1;

    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 18px rgba(138, 61, 74, 0.22);

    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.ht-icon::before {
    content: "";
    position: absolute;
    width: 140%;
    height: 140%;
    left: -55%;
    top: -65%;
    transform: rotate(25deg);
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.18),
            transparent);
    pointer-events: none;
}

@media (max-width: 576px) {
    .ht-icon {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .ht-brand {
        font-size: 1rem;
    }
}

.navbar-brand .ht-brand {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    text-decoration-color: rgba(138, 61, 74, 0.35);
}

.navbar-brand:hover .ht-brand {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    text-decoration-color: var(--ht-rosewood);

}

/* Nav links (active/hover polish) */
.navbar .nav-link {
    color: var(--ht-text);
    opacity: 0.86;
    text-decoration: none !important;
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
}

.navbar .nav-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.65);
}

.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
    opacity: 1;
    color: var(--ht-rosewood-700);
    background: rgba(138, 61, 74, 0.08);
}

/* ==========================================================
   5) Buttons
========================================================== */
.btn-rosewood {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--ht-rosewood);
    --bs-btn-border-color: var(--ht-rosewood);

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--ht-rosewood-700);
    --bs-btn-hover-border-color: var(--ht-rosewood-700);

    --bs-btn-focus-shadow-rgb: 138, 61, 74;

    --bs-btn-active-bg: var(--ht-rosewood-700);
    --bs-btn-active-border-color: var(--ht-rosewood-700);

    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-weight: 600;
}

.btn-ghost {
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-weight: 600;
    border: 1px solid var(--ht-border);
    background: rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
    background: #fff;
    border-color: rgba(138, 61, 74, 0.35);
}

.btn-sm.btn-ghost {
    padding: 0.45rem 0.75rem;
}

/* ==========================================================
   6) Surfaces, cards, lanes
========================================================== */
.ht-surface {
    background: var(--ht-surface);
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-lg);
    box-shadow: var(--ht-shadow);
}

.ht-card {
    background: var(--ht-surface);
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-lg);
    box-shadow: var(--ht-shadow-soft);
    transition: 180ms ease;
}

.ht-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ht-shadow-hover);
}

.ht-lane {
    border-radius: var(--ht-radius-lg);
    border: 1px solid var(--ht-border);
    background: rgba(255, 255, 255, 0.75);
    padding: 1rem;
    height: 100%;
    transition: 160ms ease;
}

.ht-lane:hover {
    border-color: rgba(138, 61, 74, 0.32);
    background: #fff;
}

/* ==========================================================
   7) Kicker / chips / badges
========================================================== */
.ht-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: var(--ht-muted);
    font-weight: 700;
}

.ht-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--ht-border);
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    color: var(--ht-text);
}

.ht-chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--ht-rosewood);
    display: inline-block;
}

.ht-badge {
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--ht-border);
    background: #fff;
    font-size: 0.85rem;
    white-space: nowrap;
}

.ht-badge.low {
    background: #ecfdf3;
    border-color: #a7f3d0;
    color: #065f46;
}

.ht-badge.med {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.ht-badge.high {
    background: var(--ht-rosewood-050);
    border-color: rgba(138, 61, 74, 0.25);
    color: var(--ht-rosewood-700);
}

/* ==========================================================
   8) Script box (PREsell block)
========================================================== */
.ht-script {
    background: linear-gradient(180deg, var(--ht-rosewood-050), #fff);
    border: 1px solid rgba(138, 61, 74, 0.18);
    border-radius: var(--ht-radius-lg);
    padding: 1rem;
}

.ht-script .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ht-script .title h5 {
    margin: 0;
    font-family: var(--ht-font-body);
    font-weight: 800;
    letter-spacing: 0;
}

/* ==========================================================
   9) Image placeholders (replace with real images later)
========================================================== */
.ht-img,
.ht-thumb {
    border-radius: var(--ht-radius-md);
    border: 1px solid var(--ht-border);
    background: radial-gradient(1200px circle at 20% 10%,
            rgba(138, 61, 74, 0.12),
            transparent 35%),
        radial-gradient(900px circle at 80% 50%,
            rgba(176, 137, 46, 0.10),
            transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 247, 244, 0.9));
    position: relative;
    overflow: hidden;
}

.ht-img {
    height: 240px;
}

.ht-thumb {
    height: 150px;
}

/* Turn off placeholder labels when you start using real images:
   Add class "ht-img--real" or "ht-thumb--real" to your <img> wrappers */
.ht-img::after,
.ht-thumb::after {
    content: "Example image";
    position: absolute;
    inset: auto 10px 10px 10px;
    padding: 0.35rem 0.55rem;
    font-size: 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--ht-border);
    color: var(--ht-muted);
    width: fit-content;
}

.ht-thumb::after {
    content: "Thumbnail";
}

.ht-img--real::after,
.ht-thumb--real::after {
    content: none !important;
}

/* Responsive image height tweaks */
@media (max-width: 576px) {
    .ht-img {
        height: 210px;
    }
}

/* ==========================================================
   10) Filters + form controls (hub pages)
========================================================== */
.ht-filter {
    border: 1px solid var(--ht-border);
    background: rgba(255, 255, 255, 0.75);
    border-radius: var(--ht-radius-lg);
}

/* Make Bootstrap inputs feel on-brand */
.form-control,
.form-select,
.form-check-input,
.input-group-text {
    border-color: var(--ht-border) !important;
}

/* Remove harsh Bootstrap shadows and use brand focus ring */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    box-shadow: var(--ht-focus) !important;
    border-color: rgba(138, 61, 74, 0.4) !important;
}

/* ==========================================================
   11) Breadcrumbs, tables, pagination
========================================================== */
.breadcrumb {
    --bs-breadcrumb-divider-color: var(--ht-muted);
}

.breadcrumb-item,
.breadcrumb-item+.breadcrumb-item,
.breadcrumb-item.active {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: var(--ht-muted);
    font-weight: 700;
}


.breadcrumb-item,
.breadcrumb-item+.breadcrumb-item,
.breadcrumb-item.active,
.breadcrumb-item+.breadcrumb-item::before {
    color: var(--ht-rosewood);
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.table thead th {
    border-bottom: 1px solid var(--ht-border) !important;
}

.table> :not(caption)>*>* {
    border-color: var(--ht-border) !important;
}

/* A subtle table header background on light pages */
.table thead {
    background: rgba(255, 255, 255, 0.55);
}

/* Pagination polish */
.pagination .page-link {
    border-color: var(--ht-border);
    color: var(--ht-text);
    background: rgba(255, 255, 255, 0.7);
}

.pagination .page-link:hover {
    border-color: rgba(138, 61, 74, 0.35);
    background: #fff;
}

.pagination .page-item.active .page-link {
    background: var(--ht-rosewood);
    border-color: var(--ht-rosewood);
    color: #fff;
}

/* ==========================================================
   12) Footer
========================================================== */
footer {
    border-top: 1px solid var(--ht-border);
    background: rgba(255, 255, 255, 0.55);
}

/* ==========================================================
   13) Minor utilities (replace inline border styles)
========================================================== */
.ht-hr {
    border-color: var(--ht-border) !important;
}

.ht-panel-soft {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-lg);
}

/* Use these instead of inline styles like style="border-color: var(--ht-border)" */
.ht-border {
    border-color: var(--ht-border) !important;
}

.ht-border-top {
    border-top: 1px solid var(--ht-border) !important;
}

.ht-border-bottom {
    border-bottom: 1px solid var(--ht-border) !important;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    .ht-card,
    .ht-lane {
        transition: none !important;
    }

    .ht-card:hover {
        transform: none !important;
    }
}

/* ---------------------------------------------
   Active nav link (pill style)
   --------------------------------------------- */
.ht-navbar .nav-link {
    position: relative;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
}

/* Active state */
.ht-navbar .nav-link.is-active,
.ht-navbar .nav-link[aria-current="page"] {
    color: var(--ht-ink);
    font-weight: 700;
    background: rgba(138, 61, 74, 0.08);
    /* rosewood tint */
    border: 1px solid rgba(138, 61, 74, 0.18);
}

/* Hover keeps your existing feel but stays consistent */
.ht-navbar .nav-link:hover {
    background: rgba(138, 61, 74, 0.06);
    border: 1px solid rgba(138, 61, 74, 0.14);
}

/* Prevent layout shift when hover adds border */
.ht-navbar .nav-link {
    border: 1px solid transparent;
}

/* Better spacing in collapsed mobile nav */
@media (max-width: 991.98px) {
    .ht-navbar .navbar-nav .nav-item {
        margin-bottom: 0.25rem;
    }
}

/* make “Start Here” a slightly stronger pill */
.ht-navbar .nav-link.is-active[href^="/start-here"],
.ht-navbar .nav-link[aria-current="page"][href^="/start-here"] {
    background: rgba(138, 61, 74, 0.12);
    border-color: rgba(138, 61, 74, 0.24);
}

/* ---------------------------------------------
   Navbar mobile layout: stacked links + full-width search
   --------------------------------------------- */

/* Keep nav links pill-friendly (works with your active pill styles) */
.ht-navbar .nav-link {
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    border: 1px solid transparent;
    /* prevents hover/active shift */
}

/* Active pill */
.ht-navbar .nav-link.is-active,
.ht-navbar .nav-link[aria-current="page"] {
    color: var(--ht-ink);
    font-weight: 700;
    background: rgba(138, 61, 74, 0.08);
    border-color: rgba(138, 61, 74, 0.18);
}

/* Hover pill */
.ht-navbar .nav-link:hover {
    background: rgba(138, 61, 74, 0.06);
    border-color: rgba(138, 61, 74, 0.14);
}

/* Optional: Start Here slightly stronger (feels like a soft CTA) */
.ht-navbar .nav-link.is-active[href^="/start-here"],
.ht-navbar .nav-link[aria-current="page"][href^="/start-here"] {
    background: rgba(138, 61, 74, 0.12);
    border-color: rgba(138, 61, 74, 0.24);
}

/* Mobile: stack nav items and make search full width */
@media (max-width: 991.98px) {
    .ht-navbar .navbar-collapse {
        padding-top: 0.75rem;
    }

    /* Links become a tidy vertical list */
    .ht-navbar .navbar-nav {
        gap: 0.25rem;
    }

    .ht-navbar .navbar-nav .nav-item {
        margin: 0;
    }

    /* Links feel like full-width pills */
    .ht-navbar .navbar-nav .nav-link {
        display: block;
        width: 100%;
    }

    /* Search sits below links and spans full width */
    .ht-navbar .ht-nav-search {
        width: 100%;
        margin-top: 0.75rem;
    }

    .ht-navbar .ht-nav-search .ht-search {
        width: 100%;
        flex-wrap: nowrap;
    }

    .ht-navbar .ht-nav-search .input-group {
        flex: 1 1 auto;
    }

    .ht-navbar .ht-nav-search .btn {
        white-space: nowrap;
    }
}

/* ---------------------------------------------
   Navbar toggler: rosewood icon + themed focus
   --------------------------------------------- */

/* Ensure Bootstrap's toggler button uses our theme */
.ht-navbar .navbar-toggler {
    border-color: rgba(138, 61, 74, 0.22);
    border-radius: 88px;
    padding: 0.4rem 0.6rem;
}

/* Replace Bootstrap's default icon with a rosewood "hamburger" */
.ht-navbar .navbar-toggler-icon {
    background-image: none;
    width: 1.4rem;
    height: 1.4rem;
    position: relative;
}

/* Draw 3 lines */
.ht-navbar .navbar-toggler-icon::before,
.ht-navbar .navbar-toggler-icon::after,
.ht-navbar .navbar-toggler-icon span {
    content: "";
    position: absolute;
    left: 0.15rem;
    right: 0.15rem;
    height: 2px;
    border-radius: 2px;
    background: rgba(138, 61, 74, 0.9);
}

/* Top line */
.ht-navbar .navbar-toggler-icon::before {
    top: 0.35rem;
}

/* Middle line (use a real element for consistent rendering) */
.ht-navbar .navbar-toggler-icon span {
    top: 0.65rem;
}

/* Bottom line */
.ht-navbar .navbar-toggler-icon::after {
    top: 0.95rem;
}

/* Themed focus ring */
.ht-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(138, 61, 74, 0.18);
}

/* Nice hover */
.ht-navbar .navbar-toggler:hover {
    background: rgba(138, 61, 74, 0.06);
}