/* Hippo Labs | Website-wide redesign
   Scope: public website only
   Existing Bootstrap and Blade functionality preserved.
*/

body {
    background: var(--hippo-page-background);
    color: var(--hippo-text-primary);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body .container {
    max-width: var(--hippo-content-max);
}

body a {
    transition: color .2s ease, background-color .2s ease,
                border-color .2s ease, box-shadow .2s ease,
                transform .2s ease;
}

body a:focus-visible,
body button:focus-visible {
    outline: 3px solid var(--hippo-brand-cyan);
    outline-offset: 3px;
}

.topbar {
    background: var(--hippo-brand-navy);
    padding: 10px 0;
    font-size: 12px;
}

.main-header {
    padding: 19px 0;
    box-shadow: 0 3px 18px rgba(20,43,73,.04);
}

.header-logo {
    max-width: 190px;
    max-height: 72px;
}

.header-info {
    border: 1px solid var(--hippo-border);
    border-radius: var(--hippo-radius-md);
    background: #f8fbfd;
    padding: 13px 17px;
}

.header-info i {
    border-radius: 10px;
    color: var(--hippo-brand-teal);
    background: #e5f6f7;
}

.main-nav {
    background: var(--hippo-brand-teal);
}

.main-nav .nav-link {
    font-size: 12px;
    letter-spacing: .06em;
    padding: 16px 19px !important;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background: rgba(255,255,255,.15);
}

.home-hero {
    width: 100%;
    min-height: 540px;
    padding: 100px 24px;
    border-radius: 0 0 32px 32px;
}

.home-hero h1 {
    font-size: clamp(36px, 4.4vw, 62px);
    letter-spacing: -.035em;
    line-height: 1.15;
}

.home-hero h3 {
    max-width: 900px;
    margin: 24px auto 0;
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.55;
}

.home-hero p {
    max-width: 760px;
    font-size: 16px;
    line-height: 1.85;
}

.hero-btn,
.product-main-btn {
    border-radius: 10px;
    padding: 14px 27px;
    font-size: 13px;
    letter-spacing: .025em;
    background: var(--hippo-brand-cyan);
    color: #fff;
}

.hero-btn:hover,
.product-main-btn:hover {
    background: var(--hippo-brand-teal);
    color: #fff;
    transform: translateY(-2px);
}

.hero-btn.outline {
    border: 1px solid rgba(255,255,255,.8);
    background: transparent;
}

.hero-btn.outline:hover {
    background: #fff;
    color: var(--hippo-brand-navy);
}

.intro-section {
    padding: 75px 0 45px;
    font-size: 15px;
    line-height: 1.95;
}

.intro-section p {
    max-width: 1000px;
    margin: 0 auto 18px;
}

.section-title {
    font-size: clamp(28px, 3vw, 40px);
    color: var(--hippo-brand-navy);
    margin-bottom: 20px;
}

.section-description {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.9;
    color: var(--hippo-text-muted);
}

.service-card {
    border: 1px solid var(--hippo-border);
    border-radius: var(--hippo-radius-lg);
    padding: 38px 30px;
    box-shadow: var(--hippo-shadow);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(20,43,73,.12);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #e7f8f9;
    border: 0;
    color: var(--hippo-brand-teal);
    font-size: 25px;
}

.service-card h4 {
    font-size: 21px;
    color: var(--hippo-brand-navy);
}

.service-card p {
    font-size: 14px;
    line-height: 1.85;
    color: var(--hippo-text-muted);
}

.outline-btn {
    display: inline-block;
    border: 1px solid var(--hippo-brand-teal);
    border-radius: 9px;
    padding: 11px 20px;
    color: var(--hippo-brand-teal);
    font-size: 12px;
}

.outline-btn:hover {
    background: var(--hippo-brand-teal);
    border-color: var(--hippo-brand-teal);
    color: #fff;
}

.product-showcase {
    background: var(--hippo-brand-navy);
    padding: 80px 0;
    margin-top: 75px;
}

.product-showcase h2 {
    font-size: clamp(28px, 3vw, 40px);
}

.product-showcase p {
    font-size: 15px;
    line-height: 1.9;
}

.featured-product {
    height: 340px;
    border-radius: 20px;
    padding: 24px;
}

.product-thumbnails img {
    height: 115px;
    border-radius: 12px;
}

.promise-vision {
    padding: 85px 0;
}

.info-panel {
    padding: 38px;
    border: 1px solid var(--hippo-border);
    border-radius: var(--hippo-radius-lg);
    box-shadow: var(--hippo-shadow);
    margin-bottom: 30px;
}

.info-panel h2 {
    color: var(--hippo-brand-navy);
    font-size: clamp(27px, 3vw, 36px);
}

.info-panel h2:after {
    background: var(--hippo-brand-cyan);
}

.info-panel p,
.info-panel li {
    font-size: 14px;
    line-height: 1.9;
}

.info-image {
    height: 300px;
}

.site-footer {
    background: var(--hippo-brand-navy);
    padding-top: 65px;
}

.site-footer h5 {
    font-size: 17px;
}

.site-footer p,
.site-footer li {
    font-size: 13px;
}

.site-footer a:hover {
    color: var(--hippo-brand-cyan);
}

@media (max-width: 991.98px) {
    .home-hero {
        min-height: 450px;
        padding: 75px 20px;
    }

    .header-info {
        min-width: 0;
    }

    .service-card {
        padding: 30px 24px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --hippo-section-space: 56px;
    }

    .home-hero {
        min-height: 390px;
        padding: 65px 18px;
        border-radius: 0 0 20px 20px;
    }

    .home-hero h1 {
        font-size: 34px;
    }

    .home-hero h3 {
        font-size: 17px;
    }

    .intro-section {
        padding: 55px 0 30px;
    }

    .product-showcase {
        padding: 55px 0;
        margin-top: 50px;
    }

    .featured-product {
        height: 260px;
    }

    .product-thumbnails img {
        height: 75px;
    }

    .promise-vision {
        padding: 55px 0;
    }

    .info-panel {
        padding: 24px;
    }

    .info-image {
        height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body a,
    .service-card {
        transition: none;
    }
}


/* Homepage imagery refinement */
.home-hero {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.featured-product {
    background: #ffffff;
    object-fit: contain;
}

.product-thumbnails img {
    background: #ffffff;
    object-fit: contain;
    padding: 10px;
}

.info-image {
    object-fit: contain;
    border-radius: 14px;
}


.footer-brand-text {
    display: inline-block;
    color: #ffffff;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: .04em;
}


/* HIPPO DESKTOP REFINEMENT V2 START */

/* Shared desktop typography */
@media (min-width: 992px) {

    body {
        font-size: 16px;
        line-height: 1.75;
    }

    .container {
        width: 100%;
    }

    /* Header and brand */
    .main-header {
        padding: 22px 0;
    }

    .main-header h3 {
        color: var(--hippo-brand-navy) !important;
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -.035em;
        margin: 0;
    }

    .header-contact {
        gap: 18px;
    }

    .header-info {
        min-height: 76px;
        border-radius: 12px;
        padding: 13px 18px;
        font-size: 13px;
    }

    .header-info strong {
        font-size: 13px;
        line-height: 1.5;
    }

    .main-nav .nav-link {
        font-size: 13px;
        padding: 17px 21px !important;
    }

    /* Hero: retain original image, improve contrast */
    .home-hero {
        width: 100%;
        min-height: 580px;
        padding: 95px 24px;
        border-radius: 0 0 28px 28px;
        background-blend-mode: multiply;
        background-color: rgba(10, 35, 56, .30);
    }

    .home-hero .container {
        max-width: 1000px;
    }

    .home-hero h5 {
        font-size: 15px;
        font-weight: 700;
        letter-spacing: .13em;
        text-transform: uppercase;
        margin-bottom: 18px;
    }

    .home-hero h1 {
        font-size: clamp(46px, 4.3vw, 64px);
        line-height: 1.13;
        margin: 0 auto 22px;
        text-shadow: 0 3px 18px rgba(0,0,0,.28);
    }

    .home-hero h3 {
        max-width: 860px;
        font-size: 22px;
        font-weight: 600;
        line-height: 1.55;
        margin: 0 auto 20px;
        text-shadow: 0 2px 12px rgba(0,0,0,.3);
    }

    .home-hero p {
        max-width: 760px;
        font-size: 16px;
        line-height: 1.85;
        margin: 0 auto 25px;
    }

    .hero-btn {
        min-width: 158px;
        text-align: center;
        padding: 15px 26px;
        font-size: 13px;
    }

    /* Company introduction */
    .intro-section {
        padding: 82px 0 55px;
        text-align: center;
    }

    .intro-section .container {
        max-width: 1000px;
    }

    .intro-section p {
        font-size: 16px;
        line-height: 1.95;
        color: var(--hippo-text-primary);
        margin-bottom: 18px;
    }

    /* Section headings */
    .section-title {
        font-size: 40px;
        line-height: 1.25;
        margin-bottom: 20px;
    }

    .section-description {
        max-width: 940px;
        font-size: 16px;
        line-height: 1.9;
    }

    /* Service cards */
    .service-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 365px;
        padding: 38px 30px 32px;
        border-radius: 18px;
        transition: transform .25s ease,
                    box-shadow .25s ease;
    }

    .service-icon {
        width: 68px;
        height: 68px;
        font-size: 25px;
        margin-bottom: 24px;
    }

    .service-card h4 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .service-card p {
        font-size: 15px;
        line-height: 1.8;
        min-height: 0;
        margin-bottom: 25px;
    }

    .service-card .outline-btn {
        margin-top: auto;
        padding: 12px 22px;
        font-size: 12px;
    }

    /* Product showcase */
    .product-showcase {
        padding: 90px 0 80px;
        margin-top: 85px;
        background: #173e4b;
    }

    .product-showcase h2 {
        font-size: 42px;
        line-height: 1.2;
        margin-bottom: 24px;
    }

    .product-showcase p {
        max-width: 590px;
        font-size: 16px;
        line-height: 1.9;
    }

    .product-main-btn {
        padding: 15px 27px;
        margin-top: 20px;
    }

    .featured-product {
        width: 100%;
        height: 370px;
        padding: 28px;
        object-fit: contain;
        background: #fff;
        border-radius: 20px;
        box-shadow: 0 16px 35px rgba(0,0,0,.12);
    }

    .product-thumbnails {
        margin-top: 28px;
        justify-content: center;
    }

    .product-thumbnails > .col {
        flex: 0 0 220px;
        max-width: 220px;
    }

    .product-thumbnails img {
        width: 100%;
        height: 155px;
        object-fit: contain;
        padding: 12px;
        background: #fff;
        border-radius: 14px;
    }

    /* Promise and Vision */
    .promise-vision {
        padding: 95px 0;
    }

    .info-panel {
        padding: 45px;
        margin-bottom: 32px;
        border-radius: 20px;
    }

    .info-panel .row {
        min-height: 345px;
    }

    .info-panel h2 {
        font-size: 37px;
        line-height: 1.25;
        margin-bottom: 22px;
    }

    .info-panel p,
    .info-panel li {
        font-size: 15px;
        line-height: 1.85;
    }

    .info-panel li {
        margin-bottom: 9px;
    }

    .info-image {
        width: 100%;
        height: 330px;
        padding: 15px;
        object-fit: contain;
        background: #f5f8fb;
        border-radius: 16px;
    }

    /* Footer */
    .site-footer {
        padding-top: 75px;
    }

    .site-footer h5 {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .site-footer p,
    .site-footer li {
        font-size: 14px;
        line-height: 1.9;
    }

    .footer-brand-text {
        font-size: 29px;
        font-weight: 800;
    }

    .footer-bottom {
        margin-top: 55px;
        padding: 22px 0;
        font-size: 12px;
    }
}

/* Tablet refinements */
@media (min-width: 768px) and (max-width: 991.98px) {

    .home-hero {
        min-height: 470px;
    }

    .home-hero h3 {
        font-size: 19px;
    }

    .service-card {
        min-height: 330px;
    }

    .product-thumbnails img {
        height: 130px;
        object-fit: contain;
    }

    .info-image {
        height: 270px;
    }
}

/* HIPPO DESKTOP REFINEMENT V2 END */
