/* ICON Family: Hub Host, Hub Pods, Hub Bio.
   Builds on default.css tokens; add after it. */

/* Section heading shared by the homepage teaser and the family page */
.family-section {
    padding: 6rem 2rem;
    background-color: var(--color-light-gray);
}

.family-section .section-head {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.family-section .section-head h2 {
    font-size: 2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-graphite);
    display: inline-block;
    border-bottom: 2px solid var(--color-black);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.family-section .section-head p {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-graphite);
}

/* Homepage teaser cards */
.family-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.family-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.family-card:hover {
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.family-card .card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: var(--color-light-gray);
}

.family-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.family-card:hover .card-image img {
    transform: scale(1.05);
}

.family-card .card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.family-card .kicker,
.product .kicker {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #777777;
    margin-bottom: 0.5rem;
}

.family-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.family-card p {
    font-weight: 300;
    color: var(--color-graphite);
    flex: 1;
}

.family-card .more {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

/* Family page: one block per product */
.family-intro {
    margin-top: var(--header-height);
    padding: 8rem 2rem 4rem;
}

.family-index {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin-top: 1rem;
}

.family-index a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-graphite);
    border-bottom: 1px solid var(--color-graphite);
    padding-bottom: 2px;
}

.product {
    padding: 6rem 2rem;
    scroll-margin-top: var(--header-height);
}

.product:nth-of-type(even) {
    background-color: var(--color-light-gray);
}

.product-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product.flip .product-media {
    order: 2;
}

.product-media {
    display: grid;
    gap: 1rem;
}

.product-media img {
    width: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    background-color: var(--color-white);
}

.product-media .pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.product-media .pair img {
    aspect-ratio: 16/10;
    object-fit: cover;
}

.product h2 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.product .tagline {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-graphite);
    margin-bottom: 1.5rem;
}

.product .body p {
    font-weight: 300;
    color: var(--color-graphite);
}

.product .components-list {
    margin: 0.5rem 0 2rem;
}

.product .cta {
    display: inline-block;
    border: 1px solid var(--color-black);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 960px) {
    .family-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .product-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .product.flip .product-media {
        order: 0;
    }
}

@media (max-width: 768px) {
    .family-section,
    .product {
        padding: 4rem 1rem;
    }

    .family-intro {
        padding: 5rem 1rem 2rem;
    }

    .family-index {
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
    }

    .product h2 {
        font-size: 2rem;
    }
}

/* The AGENT: sibling to the ICON, shown on the homepage */
.agent-section {
    padding: 6rem 2rem;
    background-color: #111111;
    color: var(--color-white);
    scroll-margin-top: var(--header-height);
}

.agent-section .section-head {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.agent-section .kicker {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #aaaaaa;
    margin-bottom: 1rem;
}

.agent-section h2 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    display: inline-block;
    border-bottom: 2px solid var(--color-white);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.agent-section .section-head p {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
    color: #dddddd;
}

.agent-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.agent-feature {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 1.5rem;
}

.agent-feature .num {
    display: block;
    font-size: 0.9rem;
    color: #aaaaaa;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.agent-feature h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.agent-feature p {
    font-weight: 300;
    color: #cccccc;
}

.agent-note {
    max-width: 900px;
    margin: 3rem auto 0;
    text-align: center;
    font-weight: 300;
    color: #aaaaaa;
}

@media (max-width: 960px) {
    .agent-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }
}

@media (max-width: 768px) {
    .agent-section {
        padding: 4rem 1rem;
    }

    .agent-section h2 {
        font-size: 2.25rem;
    }
}
