/* True Influence Method — site styles (joanna.html dark-dominant branding) */

:root {
    /* joanna.html palette */
    --ivory: #faf8f5;
    --navy: #0f203d;
    --navy-light: #162d4a;
    --gold: #d4b478;
    --gold-light: #e8a838;
    --gold-pale: #e8d4a0;
    --muted: #8a95a8;
    --border-gold: rgba(212, 180, 120, 0.2);
    --accent-red: #8b3a3a;

    /* mapped to existing variable names */
    --paper: #faf8f5;
    --ink: #0f203d;
    --ink-soft: #8a95a8;
    --cream: #162d4a;
    --blush: #e8d4a0;
    --accent: #d4b478;
    --accent-strong: #e8a838;
    --accent-soft: #e8d4a0;
    --rule: rgba(212, 180, 120, 0.2);
    --display: "Cormorant Garamond", Georgia, serif;
    --body:
        "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
        sans-serif;
    --hand: "Caveat", cursive;
}

* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
}
body {
    font-family: var(--body);
    color: var(--ivory);
    background: var(--navy);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a {
    color: inherit;
    cursor: pointer;
}
button {
    font-family: inherit;
}

/* ── nav (joanna.html style) ───────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 32, 61, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-gold);
}
.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 32px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.brand-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.brand-name {
    font-family: var(--display);
    font-style: normal;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1;
    color: var(--ivory);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-left: 12px;
    border-left: 1px solid var(--border-gold);
}
.footer-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
}
.nav-items {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.nav-item {
    position: relative;
}
.nav-link {
    background: none;
    border: 0;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--ivory);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 0;
    white-space: nowrap;
    font-family: var(--body);
}
.nav-link:hover {
    background: rgba(212, 180, 120, 0.08);
    color: var(--gold);
}
.nav-caret {
    font-size: 24px;
    opacity: 0.6;
    color: var(--gold);
    transform: translateY(-2px);
}
.nav-menu {
    position: absolute;
    top: 80%;
    right: 0;
    min-width: 240px;
    background: var(--navy);
    border: 1px solid var(--border-gold);
    border-radius: 0;
    padding: 6px;
    margin-top: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
    display: flex;
    flex-direction: column;
}
.nav-menu-item {
    background: none;
    border: 0;
    padding: 9px 12px;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    border-radius: 0;
    color: var(--ivory);
    font-family: var(--body);
}
.nav-menu-item:hover {
    background: rgba(212, 180, 120, 0.08);
    color: var(--gold);
}

/* ── buttons (joanna.html style) ────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--body);
}
.btn:hover {
    transform: translateY(-1px);
}
.btn-primary {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold);
    color: white;
}
.btn-secondary {
    background: var(--navy-light);
    border-color: var(--border-gold);
    color: var(--ivory);
}
.btn-secondary:hover {
    background: rgba(212, 180, 120, 0.15);
}
.btn-ghost {
    border-color: var(--border-gold);
    background: transparent;
    color: var(--gold);
}
.btn-ghost:hover {
    background: rgba(212, 180, 120, 0.08);
}
.btn-lg {
    padding: 14px 26px;
    font-size: 0.75rem;
}
.btn-sm {
    padding: 7px 14px;
    font-size: 0.68rem;
}

/* ── layout ─────────────────────────────────────────── */
.section {
    padding: 80px 0;
}
.section-paper {
    background: var(--navy);
    color: var(--ivory);
}
.section-cream {
    background: var(--navy-light);
    color: var(--ivory);
}
.section-ink {
    background: var(--navy);
    color: var(--ivory);
}
.section-ink .eyebrow {
    color: var(--gold);
    opacity: 0.8;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}
.container.narrow {
    max-width: 860px;
}

/* ── typography ─────────────────────────────────────── */
.display {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(40px, 5.5vw, 76px);
    line-height: 1.08;
    letter-spacing: -0.5px;
    margin: 0 0 22px;
    color: var(--ivory);
}
.display.sm {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 300;
    line-height: 1.1;
}
.display.xs {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 400;
    line-height: 1.2;
}
.display em {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}

.eyebrow {
    font-family: var(--body);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}
.lead {
    font-size: 19px;
    line-height: 1.5;
    color: rgba(250, 248, 245, 0.85);
    max-width: 56ch;
}
.muted {
    color: var(--ink-soft);
}
.small {
    font-size: 13px;
}

.overline {
    font-family: var(--hand);
    font-size: 26px;
    color: var(--accent);
    margin-top: 24px;
    text-align: center;
}

.underline-accent {
    position: relative;
    display: inline-block;
    color: var(--accent);
}
.underline-svg {
    position: absolute;
    left: -2%;
    right: -2%;
    bottom: -10px;
    width: 104%;
    height: 12px;
    color: var(--accent);
}
/* CMS-compatible underline — same visual as <Underline> component but usable from HTML */
.u {
    position: relative;
    display: inline-block;
    color: var(--accent);
}
.u::after {
    content: "";
    position: absolute;
    left: -2%;
    right: -2%;
    bottom: -10px;
    width: 104%;
    height: 12px;
    background: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 8 Q 50 2 100 7 T 198 5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E")
        no-repeat bottom;
    -webkit-mask-size: 104% 12px;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 8 Q 50 2 100 7 T 198 5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E")
        no-repeat bottom;
    mask-size: 104% 12px;
    opacity: 0.6;
}
.hairline {
    border-top: 1px solid var(--rule);
    margin: 24px 0;
}

/* ── pill / badges ──────────────────────────────────── */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.pill-ink {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ivory);
    border: 1px solid var(--border-gold);
}
.pill-accent {
    background: var(--accent);
    color: white;
}

/* ── lists ──────────────────────────────────────────── */
.check-list,
.x-list,
.dot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.check-list li,
.x-list li,
.dot-list li {
    position: relative;
    padding-left: 30px;
    padding-bottom: 14px;
    line-height: 1.5;
    color: rgba(250, 248, 245, 0.85);
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--display);
    color: var(--accent);
    font-size: 18px;
    font-weight: 700;
}
.check-list.compact li {
    padding-bottom: 10px;
    font-size: 15px;
}
.x-list li::before {
    content: "✗";
    color: var(--ink-soft);
    position: absolute;
    left: 0;
    top: 0;
}
.dot-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    left: 6px;
    top: 9px;
}

/* ── hamburger (hidden on desktop) ───────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border-gold);
    border-radius: 0;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transition:
        transform 0.25s,
        opacity 0.25s;
}
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── sidebar overlay ──────────────────────────────── */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* ── sidebar drawer ───────────────────────────────── */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--navy);
    border-left: 1px solid var(--border-gold);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-gold);
}
.sidebar-title {
    font-family: var(--display);
    font-size: 1.1rem;
    color: var(--ivory);
}
.sidebar-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gold);
    cursor: pointer;
    padding: 4px 8px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-group {
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 14px 20px;
    font-size: 15px;
    font-family: var(--body);
    color: var(--ivory);
    cursor: pointer;
    text-align: left;
    border-radius: 0;
}
.sidebar-link:hover,
.sidebar-link.expanded {
    background: rgba(212, 180, 120, 0.08);
    color: var(--gold);
}

.sidebar-caret {
    font-size: 20px;
    transition: transform 0.2s;
    color: var(--gold);
    opacity: 0.6;
}
.sidebar-caret.open {
    transform: rotate(180deg);
}

.sidebar-sub {
    display: flex;
    flex-direction: column;
    background: var(--navy-light);
}

.sidebar-sub-link {
    background: none;
    border: none;
    padding: 12px 20px 12px 32px;
    font-size: 14px;
    font-family: var(--body);
    color: var(--ivory);
    cursor: pointer;
    text-align: left;
    border-radius: 0;
    opacity: 0.85;
}
.sidebar-sub-link:hover {
    background: rgba(212, 180, 120, 0.08);
    color: var(--gold);
    opacity: 1;
}

.sidebar-cta {
    padding: 16px 20px;
    margin-top: auto;
    border-top: 1px solid var(--border-gold);
}

/* ── mobile responsive ───────────────────────────── */
@media (max-width: 960px) {
    .hamburger {
        display: flex;
    }
    .nav-items {
        display: none;
    }
    .btn-start-desktop {
        display: none;
    }
    .brand-name {
        display: none;
    }
    .nav-inner {
        justify-content: space-between;
    }
}
@media (max-width: 480px) {
    .brand-hero-title {
        font-size: 1.75rem !important;
    }
    figure {
        margin-inline-start: 0px;
        margin-inline-end: 0px;
    }
}
