/* ============================================
   FOOTILITY HOME - full width dashboard
   ============================================ */

.home-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 18px;
    flex: 1 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    font-family: "Kg Happy Solid", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #212529;
    box-sizing: border-box;
}

.home-shell {
    width: 100%;
    min-height: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.home-page-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(30px, 4vh, 54px);
    max-width: none;
    margin: 0;
    width: 100%;
    flex: 1 1 auto;
    justify-content: space-evenly;
}

.home-top-header {
    display: flex;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
}

.home-panel {
    position: relative;
    min-width: 0;
    border: 1px dashed #000;
    background: #fff;
    padding: 24px 16px 16px;
    overflow: visible;
}

.home-panel-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
    gap: 18px;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    padding: 20px;
}

.home-hero-copy {
    min-width: 0;
}

.home-panel-contact-top {
    flex: 0 0 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-width: 0;
}

.home-panel-projects {
    min-height: 0;
}

.home-brand {
    font-family: "Kg Happy", Arial, sans-serif;
    font-size: clamp(3rem, 5vw, 4.8rem);
    line-height: 0.95;
    margin: 0 0 0.75rem 0;
    font-weight: normal;
}

.home-brand-sub {
    font-family: "Kg Happy Solid", Arial, sans-serif;
    font-size: 19px;
    letter-spacing: 1px;
    margin: 0 0 0.75rem 0;
    line-height: 1;
}

.home-brand-link {
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: 1px dashed transparent;
    padding-bottom: 2px;
    transition: border-color 0.15s ease, opacity 0.15s ease;
}

.home-brand-link:hover {
    border-bottom-color: currentColor;
    opacity: 0.85;
}

.home-tagline {
    max-width: 700px;
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.home-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-self: stretch;
    align-content: center;
}

.home-stat-card {
    min-width: 0;
    border: 1px dashed #000;
    background: #fff;
    padding: 9px 8px;
    text-align: center;
    line-height: 1.15;
}

.home-stat-card i {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
}

.home-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
}

.home-stat-label {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: #555;
}

.home-action-link,
.home-panel-link,
.home-pill-button,
.home-service-card,
.home-project-card,
.home-tech-card,
.home-contact-card {
    color: #000 !important;
    text-decoration: none !important;
}

.home-action-link,
.home-panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    border: 1px solid #000;
    background: #000;
    color: #fff !important;
    padding: 0.5rem 0.85rem;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.home-action-link:hover,
.home-panel-link:hover {
    background: #fff;
    color: #000 !important;
    border-style: dashed;
    box-shadow: 5px 5px 0 #000;
    transform: translate(-1px, -1px);
}

.home-panel-header {
    min-width: 0;
    margin-bottom: 10px;
}

.home-section-title {
    display: flex;
    align-items: center;
    margin: 0;
    color: #000;
    font-family: "Kg Happy Solid", Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    min-height: 28px;
}

.home-panel-header p {
    margin: 0;
    color: #555;
    font-size: 12px;
    line-height: 1.35;
}

.home-section-head {
    position: absolute;
    top: 0;
    left: 18px;
    z-index: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    max-width: calc(100% - 36px);
    min-height: 34px;
    padding: 0 12px;
    background: #fff;
    color: #000;
    transform: translateY(-50%);
}

.home-section-head .home-panel-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 0;
}

.home-section-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #fff;
    color: #000;
    font-size: 1.25rem;
    line-height: 1;
}

.home-section-icon svg {
    display: block;
    width: 28px;
    height: 28px;
}

.home-section-icon-footility span {
    font-size: 2.2rem;
    line-height: 1;
}

.home-section-icon-gigamind {
    background: #fff;
    color: #000;
}

.home-project-card-grid,
.home-service-grid,
.home-tech-grid,
.home-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 0;
}

.home-contact-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.home-service-grid {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.home-project-card,
.home-service-card,
.home-tech-card,
.home-contact-card {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 126px;
    border: 3px solid #000;
    border-radius: 5px;
    background: #000;
    color: #fff !important;
    padding: 16px 14px;
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.home-contact-card {
    flex: 0 1 160px;
    min-height: 92px;
    padding: 12px;
}

.home-project-card:hover,
.home-service-card:hover,
.home-tech-card:hover,
.home-contact-card:hover {
    background: #000;
    color: #fff !important;
    background: #fff;
    color: #000 !important;
    border: 3px dashed #000;
    border-radius: 20px 0;
    box-shadow: -10px 10px 0 lightgray;
    transform: translate(3px, -3px);
}

.home-project-card-icon,
.home-service-icon,
.home-tech-icon,
.home-contact-icon {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2rem;
}

.home-project-card:hover .home-project-card-icon,
.home-service-card:hover .home-service-icon,
.home-tech-card:hover .home-tech-icon,
.home-contact-card:hover .home-contact-icon {
    color: #000;
}

.home-project-card-icon-footility span {
    font-size: 2.75rem;
    line-height: 1;
}

.home-project-card-icon-image img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: invert(1);
}

.home-project-card:hover .home-project-card-icon-image img {
    filter: none;
}

.home-project-card-icon-realpilates {
    width: auto;
    font-size: 1rem;
}

.home-project-card-icon-realpilates .real-pilates-logo .t-real {
    font-size: 19px;
}

.home-project-card-icon-realpilates .real-pilates-logo .t-pilates {
    font-size: 15px;
}

.home-project-card-body,
.home-service-card > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
}

.home-project-title,
.home-service-title,
.home-tech-title,
.home-contact-title {
    display: block;
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    text-align: center;
}

.home-project-meta {
    display: block;
    color: #666;
    font-size: 10px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.home-project-summary,
.home-service-text {
    display: -webkit-box;
    color: #333;
    font-size: 10px;
    line-height: 1.35;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.home-project-card:hover .home-project-meta,
.home-project-card:hover .home-project-summary,
.home-service-card:hover .home-service-text {
    color: #fff;
}

.home-project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.home-project-stack span {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    border: 1px solid #bbb;
    padding: 1px 5px;
    color: #555;
    font-size: 9px;
    line-height: 1.1;
}

.home-project-card:hover .home-project-stack span {
    border-color: #fff;
    color: #fff;
}

.home-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    padding: 0;
}

.home-pill-list-compact {
    gap: 6px;
}

.home-pill-button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 33px;
    max-width: 100%;
    border: 2px solid #000;
    border-radius: 5px;
    background: #000;
    color: #fff !important;
    padding: 0.65rem 0.85rem;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.home-pill-button i {
    flex: 0 0 auto;
    width: 1.1rem;
    text-align: center;
}

.home-pill-button span {
    overflow-wrap: anywhere;
}

.home-pill-button:hover {
    background: #fff;
    color: #000 !important;
    border: 2px dashed #000;
    border-radius: 18px 0;
    box-shadow: -7px 7px 0 lightgray;
    transform: translate(2px, -2px);
}

.home-modal-subtitle {
    display: none;
    margin: -0.4rem 0 0.75rem;
    color: #555;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-modal-stack {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin: 0.75rem 0 0;
}

.home-modal-stack span {
    border: 1px dashed #000;
    padding: 3px 7px;
    font-size: 10px;
}

.home-modal-highlights {
    display: none;
    margin: 0.85rem auto 0;
    padding-left: 1.1rem;
    max-width: 520px;
    text-align: left;
}

.home-modal-highlights li {
    margin-bottom: 0.35rem;
    font-size: 11px;
    line-height: 1.35;
}

.foo-card-expanded .btn.btn-dark {
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 12px;
    padding: 0.5rem 1.25rem;
}

@media (min-width: 1320px) {
}

@media (max-width: 991.98px) {
    .home-panel-contact-top {
        flex-basis: 480px;
    }
}

@media (max-width: 767.98px) {
    .home-top-header {
        flex-direction: column;
    }

    .home-panel-contact-top {
        flex-basis: auto;
        min-width: 0;
    }

    .home-contact-grid {
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .home-contact-card {
        flex: 1 1 150px;
    }
}

@media (max-width: 575.98px) {
    .home-panel-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .home-panel-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .home-stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-content: stretch;
    }
}

@media (max-width: 575.98px) {
    .home-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .home-container {
        padding: 10px;
    }

    .home-page-stack,
    .home-top-header {
        gap: 28px;
    }

    .home-panel {
        padding: 24px 16px 16px;
    }

    .home-brand {
        font-size: 3rem;
    }

    .home-brand-sub {
        font-size: 17px;
    }

    .home-tagline {
        font-size: 12px;
    }

    .home-action-link,
    .home-pill-button {
        width: 100%;
        justify-content: flex-start;
    }

    .home-project-card,
    .home-service-card {
        min-height: 0;
    }
}
