/* weSodashi hub — layout, header, card grid */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body.hub-page {
    margin: 0;
}

.hub-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    color: var(--hub-primary-deep);
    font-family: "DM Sans", system-ui, sans-serif;
}

.hub-header {
    padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 4vw, 2rem);
    border-bottom: 1px solid rgba(26, 54, 93, 0.12);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hub-header__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: clamp(1rem, 3vw, 1.5rem);
}

.hub-top {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.5rem;
    width: 100%;
}

.hub-brand-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(0.65rem, 2.2vw, 1rem);
    line-height: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.hub-logo-mark {
    display: block;
    object-fit: contain;
    object-position: center center;
    width: auto;
    height: clamp(174px, 42vw, 228px);
    max-width: min(264px, 66vw);
    flex-shrink: 0;
    transform: translateY(-2px);
}

.hub-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.08;
    min-width: 0;
    padding-top: clamp(0.25rem, 1.2vw, 0.5rem);
}

.hub-logo-name {
    font-size: clamp(1.65rem, 4.5vw, 2.35rem);
    font-weight: 700;
    font-style: italic;
    color: var(--hub-primary);
    letter-spacing: -0.02em;
}

/* Hub header nav: horizontal on desktop, hamburger + panel on small screens */
.hub-header-nav {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.hub-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hub-nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--hub-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hub-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.hub-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hub-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

.hub-nav-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 1.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hub-nav-menu a {
    font-family: inherit;
    font-size: clamp(0.9rem, 2vw, 0.98rem);
    font-weight: 600;
    font-style: normal;
    color: var(--hub-primary);
    text-decoration: none;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hub-nav-menu a:hover,
.hub-nav-menu a:focus-visible {
    color: var(--hub-primary-deep);
    border-bottom-color: var(--hub-mint);
    outline: none;
}

@media (max-width: 768px) {
    .hub-nav-toggle {
        display: flex;
    }

    .hub-nav-menu {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        left: auto;
        min-width: min(17rem, calc(100vw - 2rem));
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 0;
        padding: 0.5rem 0;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(26, 54, 93, 0.12);
        border-radius: 12px;
        box-shadow: 0 12px 40px rgba(26, 54, 93, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
        z-index: 1000;
    }

    .hub-nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hub-nav-menu li {
        border-bottom: 1px solid rgba(26, 54, 93, 0.08);
    }

    .hub-nav-menu li:last-child {
        border-bottom: none;
    }

    .hub-nav-menu a {
        display: block;
        padding: 0.85rem 1.15rem;
        border-bottom: none;
    }

    .hub-nav-menu a:hover,
    .hub-nav-menu a:focus-visible {
        background: var(--hub-mint);
    }
}

.hub-logo-sub {
    font-size: clamp(1.05rem, 2.8vw, 1.25rem);
    font-weight: 500;
    color: var(--hub-primary);
}

/* Statement bar above cards (slogan) */
.hub-statement {
    margin: 0 auto 1.25rem;
    max-width: 900px;
    font-size: clamp(0.95rem, 2.1vw, 1.05rem);
    line-height: 1.45;
    font-weight: 700;
    color: var(--hub-primary-deep);

    background: rgba(30, 73, 118, 0.06);
    border: 1px solid rgba(30, 73, 118, 0.14);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .hub-statement {
        text-align: left;
        padding: 0.9rem 1.1rem;
    }
}

.hub-main {
    flex: 1;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
}

.hub-main__inner {
    max-width: 900px;
    margin: 0 auto;
}

.hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
}

@media (min-width: 640px) {
    .hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hub-card {
    margin: 0;
    min-height: 140px;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--hub-card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 54, 93, 0.08);
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    font-weight: 600;
    color: var(--hub-primary);
    line-height: 1.35;
}

.hub-card__title {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

.hub-card--static {
    cursor: default;
    user-select: none;
}

.hub-card--link {
    text-decoration: none;
    color: var(--hub-primary);
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.hub-card--link:hover {
    box-shadow: var(--shadow-hover);
    background: var(--hub-mint);
    transform: translateY(-2px);
}

.hub-card--link:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.hub-card--link:focus:not(:focus-visible) {
    outline: none;
}

.hub-card--link:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

/* Footer (match consulting.html) */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer .container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-section p a {
    color: #b0d4ff;
    text-decoration: none;
}

.footer-section p a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-site-nav {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-site-nav li {
    margin-bottom: 0.45rem;
}

.footer-site-nav a {
    color: #b0d4ff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-site-nav a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-site-nav a[aria-current="page"] {
    color: var(--white);
    font-weight: 700;
}

.footer-address {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
