/* ============================================================
   TFW Red Chair Highland Hub — Theme Styles v1.0.0
   Thinking ForWord Social CIC (SC881418)
   ============================================================ */

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

:root {
    --rch-red:        #E0180A;
    --rch-red-dark:   #B5120A;
    --rch-red-pale:   #FEF0EF;
    --tfw-teal:       #1D9E75;
    --tfw-teal-dark:  #0F6E56;
    --tfw-teal-pale:  #E8F6F1;
    --ink:            #111110;
    --ink-70:         #4a4a47;
    --ink-45:         #888884;
    --ink-15:         #EBEBEA;
    --paper:          #F7F7F5;
    --white:          #FFFFFF;
    --border:         #E3E3E0;
    --font-main:      'DM Sans', sans-serif;
    --font-serif:     'Fraunces', serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   TOP BAR
   ============================================================ */

.tfw-topbar {
    background: var(--tfw-teal-dark);
    padding: 0.55rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tfw-topbar__left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tfw-topbar__chip {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.tfw-topbar__name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.tfw-topbar__right {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.tfw-topbar__right a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color 0.2s;
}

.tfw-topbar__right a:hover {
    color: #fff;
}

/* ============================================================
   MAIN NAV
   ============================================================ */

.tfw-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 2.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Brand lockup */
.tfw-nav__brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-shrink: 0;
}

.tfw-nav__logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Fallback if no logo image - shows initials */
.tfw-nav__logo-fallback {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--rch-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.tfw-nav__brand-text {
    line-height: 1.25;
}

.tfw-nav__brand-main {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    display: block;
}

.tfw-nav__brand-sub {
    font-size: 11px;
    color: var(--ink-45);
    font-weight: 400;
    display: block;
}

/* Powered-by pill */
.tfw-nav__powered {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-left: 1px solid var(--border);
    margin-left: 0.5rem;
    padding-left: 0.9rem;
}

.tfw-nav__powered-label {
    font-size: 11px;
    color: var(--ink-45);
    white-space: nowrap;
}

.tfw-nav__powered-chip {
    background: var(--tfw-teal-pale);
    border: 1px solid rgba(29, 158, 117, 0.25);
    border-radius: 100px;
    padding: 0.2rem 0.65rem;
    font-size: 11px;
    font-weight: 600;
    color: var(--tfw-teal-dark);
    white-space: nowrap;
}

/* Nav links */
.tfw-nav__links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tfw-nav__links li {
    margin: 0;
    padding: 0;
}

.tfw-nav__links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-70);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    display: block;
    white-space: nowrap;
}

.tfw-nav__links a:hover,
.tfw-nav__links .current-menu-item > a {
    color: var(--rch-red);
    background: var(--rch-red-pale);
}

/* Contact Colin CTA */
.tfw-nav__cta {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--rch-red-pale);
    border: 1px solid rgba(224, 24, 10, 0.22);
    border-radius: 100px;
    padding: 0.45rem 1.1rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--rch-red-dark);
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.tfw-nav__cta:hover {
    background: #fddedd;
    color: var(--rch-red-dark);
}

.tfw-nav__cta-icon {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Hamburger — mobile only */
.tfw-nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.4rem;
    background: none;
    border: none;
}

.tfw-nav__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav drawer */
.tfw-nav__mobile {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem 1.5rem;
    z-index: 99;
    flex-direction: column;
    gap: 0.25rem;
}

.tfw-nav__mobile.is-open {
    display: flex;
}

.tfw-nav__mobile a {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-70);
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    display: block;
}

.tfw-nav__mobile a:hover {
    color: var(--rch-red);
    background: var(--rch-red-pale);
}

.tfw-nav__mobile .tfw-nav__cta {
    margin-top: 0.5rem;
    justify-content: center;
    border-radius: 10px;
}

/* ============================================================
   PAGE CONTENT WRAPPER
   ============================================================ */

.tfw-content {
    min-height: 60vh;
}

/* ============================================================
   FOOTER
   ============================================================ */

.tfw-footer {
    background: var(--ink);
    padding: 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.tfw-footer__left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tfw-footer__name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.tfw-footer__name strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.tfw-footer__sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.tfw-footer__badge {
    background: rgba(29, 158, 117, 0.18);
    border: 1px solid rgba(29, 158, 117, 0.35);
    border-radius: 100px;
    padding: 0.2rem 0.7rem;
    font-size: 11px;
    font-weight: 600;
    color: #6ee7bf;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.tfw-footer__right {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    text-align: right;
    line-height: 1.7;
}

.tfw-footer__right a {
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s;
}

.tfw-footer__right a:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .tfw-topbar {
        padding: 0.5rem 1.25rem;
    }

    .tfw-topbar__name {
        display: none;
    }

    .tfw-nav {
        padding: 0 1.25rem;
        position: relative;
    }

    .tfw-nav__powered,
    .tfw-nav__links,
    .tfw-nav__cta {
        display: none;
    }

    .tfw-nav__hamburger {
        display: flex;
    }

    .tfw-footer {
        padding: 1.5rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .tfw-footer__right {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .tfw-topbar__right {
        display: none;
    }
}

/* ============================================================
   HOME BUTTON (topbar) — v1.2.0
   ============================================================ */

.tfw-topbar__home {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    padding: 0.22rem 0.65rem;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.tfw-topbar__home:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

/* ============================================================
   HOMEPAGE — two hub cards — v1.2.0
   ============================================================ */

.rch-home {
    padding: 3rem 2.5rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.rch-home__intro {
    margin-bottom: 2.5rem;
}

.rch-home__greeting {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tfw-teal);
    margin-bottom: 0.5rem;
}

.rch-home__title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.15;
}

.rch-home__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.rch-hub-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.rch-hub-card:hover {
    border-color: var(--rch-red);
    box-shadow: 0 4px 20px rgba(224, 24, 10, 0.08);
    color: inherit;
}

.rch-hub-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--rch-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.rch-hub-card__icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rch-hub-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.rch-hub-card__desc {
    font-size: 14px;
    color: var(--ink-70);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.5rem;
}

.rch-hub-card__sub-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-45);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--paper);
    margin-bottom: 1rem;
    width: fit-content;
    transition: border-color 0.2s, color 0.2s;
}

.rch-hub-card__sub-link:hover {
    color: var(--rch-red);
    border-color: rgba(224, 24, 10, 0.3);
}

.rch-hub-card__sub-link svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.rch-hub-card__arrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rch-red);
    margin-top: auto;
}

.rch-hub-card__arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s;
}

.rch-hub-card:hover .rch-hub-card__arrow svg {
    transform: translateX(3px);
}

@media (max-width: 640px) {
    .rch-home {
        padding: 2rem 1.25rem 3rem;
    }
    .rch-home__cards {
        grid-template-columns: 1fr;
    }
}
