/* Hippo Labs ? Modern homepage
   Scoped to .hippo-modern-home.
   No admin styles or inline styling.
*/

.hippo-modern-home {
    --hm-navy: #10294a;
    --hm-deep: #0d3545;
    --hm-teal: #009aa7;
    --hm-cyan: #12b9c7;
    --hm-text: #263a50;
    --hm-muted: #5d7186;
    --hm-border: #e2eaf1;
    --hm-bg: #f5f9fc;
    color: var(--hm-text);
    background: #fff;
}

.hippo-modern-home *,
.hippo-modern-home *::before,
.hippo-modern-home *::after {
    box-sizing: border-box;
}

.hippo-modern-home h1,
.hippo-modern-home h2,
.hippo-modern-home h3 {
    font-family: 'Roboto', sans-serif;
    letter-spacing: -.035em;
}

.hippo-modern-home .hm-eyebrow {
    display: inline-block;
    color: var(--hm-teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hippo-modern-home .hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 49px;
    padding: 13px 25px;
    border: 1px solid transparent;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s, color .2s, transform .2s;
}

.hippo-modern-home .hm-btn:hover {
    transform: translateY(-2px);
}

.hippo-modern-home .hm-btn-primary {
    background: var(--hm-teal);
    color: #fff;
}

.hippo-modern-home .hm-btn-primary:hover {
    background: #007d89;
    color: #fff;
}

.hippo-modern-home .hm-btn-outline {
    background: transparent;
    border-color: var(--hm-navy);
    color: var(--hm-navy);
}

.hippo-modern-home .hm-btn-outline:hover {
    background: var(--hm-navy);
    color: #fff;
}

/* Hero */
.hippo-modern-home .hm-hero {
    background: linear-gradient(110deg, #f0faff 0%, #fff 65%);
    overflow: hidden;
}

.hippo-modern-home .hm-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    min-height: 540px;
    align-items: stretch;
    gap: 40px;
}

.hippo-modern-home .hm-hero-content {
    align-self: center;
    padding: 65px 0;
}

.hippo-modern-home .hm-hero h1 {
    color: var(--hm-navy);
    font-size: clamp(42px, 3.7vw, 54px);
    font-weight: 800;
    line-height: 1.1;
    margin: 17px 0 18px;
}

.hippo-modern-home .hm-hero h2 {
    color: var(--hm-navy);
    font-size: clamp(17px, 1.5vw, 19px);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
}

.hippo-modern-home .hm-hero p {
    color: var(--hm-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.hippo-modern-home .hm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 26px;
}

.hippo-modern-home .hm-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.hippo-modern-home .hm-hero-visual::before {
    content: "";
    position: absolute;
    inset: 8% -40% 8% 10%;
    background: #d9f5f7;
    border-radius: 180px 0 0 180px;
    transform: rotate(-7deg);
}

.hippo-modern-home .hm-hero-visual img {
    position: relative;
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 30px 0 0 90px;
    box-shadow: 0 22px 60px rgba(15, 60, 85, .16);
}

/* Shared section headings */
.hippo-modern-home .hm-section-heading {
    max-width: 930px;
    margin: 0 auto 36px;
    text-align: center;
}

.hippo-modern-home .hm-section-heading h2 {
    color: var(--hm-navy);
    font-size: clamp(30px, 3.2vw, 43px);
    font-weight: 800;
    line-height: 1.2;
    margin: 12px 0 18px;
}

.hippo-modern-home .hm-section-heading p {
    color: var(--hm-muted);
    font-size: 15px;
    line-height: 1.85;
}

/* Introduction */
.hippo-modern-home .hm-intro {
    padding: 88px 0 42px;
}

.hippo-modern-home .hm-intro-copy {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.hippo-modern-home .hm-intro-copy p {
    font-size: 16px;
    line-height: 1.95;
    color: var(--hm-muted);
    margin-bottom: 18px;
}

/* Services */
.hippo-modern-home .hm-services {
    padding: 55px 0 100px;
}

.hippo-modern-home .hm-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.hippo-modern-home .hm-service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 35px 30px;
    background: linear-gradient(145deg, #fff, #f6fbfd);
    border: 1px solid var(--hm-border);
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(16, 41, 74, .06);
    transition: transform .25s, box-shadow .25s;
}

.hippo-modern-home .hm-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(16, 41, 74, .11);
}

.hippo-modern-home .hm-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 18px;
    background: #def6f7;
    color: var(--hm-teal);
    font-size: 26px;
    margin-bottom: 25px;
}

.hippo-modern-home .hm-service-card h3 {
    color: var(--hm-navy);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
}

.hippo-modern-home .hm-service-card p {
    color: var(--hm-muted);
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 26px;
}

.hippo-modern-home .hm-service-card a {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--hm-teal);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Products */
.hippo-modern-home .hm-products {
    padding: 90px 0;
    background: linear-gradient(120deg, #0b4253, #087785);
    color: #fff;
}

.hippo-modern-home .hm-products-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 65px;
}

.hippo-modern-home .hm-eyebrow-light {
    color: #9ce8ee;
}

.hippo-modern-home .hm-products h2 {
    color: #fff;
    font-size: clamp(34px, 3.5vw, 48px);
    font-weight: 800;
    margin: 13px 0 24px;
}

.hippo-modern-home .hm-products p {
    color: #e5f5f6;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 28px;
}

.hippo-modern-home .hm-btn-accent {
    background: #ff725d;
    color: #fff;
}

.hippo-modern-home .hm-btn-accent:hover {
    background: #ec5845;
    color: #fff;
}

.hippo-modern-home .hm-products-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 20px;
}

.hippo-modern-home .hm-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    padding: 16px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .13);
}

.hippo-modern-home .hm-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Promise and Vision */
.hippo-modern-home .hm-values {
    padding: 95px 0;
    background: var(--hm-bg);
}

.hippo-modern-home .hm-values-grid {
    display: grid;
    gap: 28px;
}

.hippo-modern-home .hm-value-card {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 38px;
    align-items: center;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--hm-border);
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(16, 41, 74, .06);
}

.hippo-modern-home .hm-value-card-reverse {
    grid-template-columns: 1.15fr .85fr;
}

.hippo-modern-home .hm-value-card-reverse .hm-value-image {
    order: 2;
}

.hippo-modern-home .hm-value-image {
    min-width: 0;
}

.hippo-modern-home .hm-value-image img {
    width: 100%;
    height: 310px;
    object-fit: contain;
    background: #edf6f9;
    border-radius: 17px;
}

.hippo-modern-home .hm-value-content h2 {
    color: var(--hm-navy);
    font-size: clamp(27px, 3vw, 37px);
    font-weight: 800;
    margin: 9px 0 17px;
}

.hippo-modern-home .hm-value-content p,
.hippo-modern-home .hm-value-content li {
    color: var(--hm-muted);
    font-size: 15px;
    line-height: 1.8;
}

.hippo-modern-home .hm-value-content ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.hippo-modern-home .hm-value-content li {
    position: relative;
    padding-left: 27px;
    margin-bottom: 10px;
}

.hippo-modern-home .hm-value-content li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--hm-teal);
    font-weight: 800;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hippo-modern-home .hm-hero-grid,
    .hippo-modern-home .hm-products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hippo-modern-home .hm-hero-content {
        padding: 60px 0 0;
    }

    .hippo-modern-home .hm-hero-visual img {
        height: 340px;
        border-radius: 24px;
    }

    .hippo-modern-home .hm-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hippo-modern-home .hm-value-card,
    .hippo-modern-home .hm-value-card-reverse {
        grid-template-columns: 1fr;
    }

    .hippo-modern-home .hm-value-card-reverse .hm-value-image {
        order: 0;
    }
}

@media (max-width: 767.98px) {
    .hippo-modern-home .hm-hero h1 {
        font-size: 39px;
    }

    .hippo-modern-home .hm-services-grid,
    .hippo-modern-home .hm-products-visual {
        grid-template-columns: 1fr;
    }

    .hippo-modern-home .hm-intro,
    .hippo-modern-home .hm-services,
    .hippo-modern-home .hm-products,
    .hippo-modern-home .hm-values {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hippo-modern-home .hm-service-card {
        padding: 28px;
    }

    .hippo-modern-home .hm-value-card {
        padding: 20px;
        gap: 22px;
    }

    .hippo-modern-home .hm-value-image img {
        height: 230px;
    }

    .hippo-modern-home .hm-product-image {
        height: 260px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hippo-modern-home .hm-btn,
    .hippo-modern-home .hm-service-card {
        transition: none;
    }
}


/* HIPPO HOMEPAGE TYPOGRAPHY REFINEMENT V1 */

@media (min-width: 992px) {

    .hippo-modern-home {
        font-family: 'Roboto', sans-serif;
        -webkit-font-smoothing: antialiased;
    }

    .hippo-modern-home .hm-hero h1 {
        font-size: clamp(42px, 3.7vw, 54px);
        line-height: 1.16;
        letter-spacing: -.035em;
    }

    .hippo-modern-home .hm-hero h2 {
        font-size: clamp(17px, 1.5vw, 19px);
        line-height: 1.45;
    }

    .hippo-modern-home .hm-hero p {
        font-size: 16px;
        line-height: 1.8;
    }

    .hippo-modern-home .hm-section-heading h2 {
        font-size: clamp(30px, 2.7vw, 36px);
        line-height: 1.25;
        letter-spacing: -.025em;
    }

    .hippo-modern-home .hm-section-heading p {
        font-size: 16px;
        line-height: 1.8;
    }

    .hippo-modern-home .hm-intro-copy {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .hippo-modern-home .hm-intro-copy p {
        font-size: 16px;
        line-height: 1.85;
    }

    .hippo-modern-home .hm-service-card h3 {
        font-size: 20px;
        line-height: 1.35;
    }

    .hippo-modern-home .hm-service-card p {
        font-size: 15px;
        line-height: 1.8;
    }

    .hippo-modern-home .hm-products h2 {
        font-size: clamp(32px, 3vw, 40px);
        line-height: 1.2;
    }

    .hippo-modern-home .hm-products p {
        font-size: 16px;
        line-height: 1.8;
    }

    .hippo-modern-home .hm-value-content h2 {
        font-size: clamp(28px, 2.6vw, 34px);
        line-height: 1.25;
    }

    .hippo-modern-home .hm-value-content p,
    .hippo-modern-home .hm-value-content li {
        font-size: 15px;
        line-height: 1.85;
    }
}
