.home {
    --ch-home-navy: #12305e;
    --ch-home-navy-2: #1a428a;
    --ch-home-accent: #c8102e;
    --ch-home-ink: #1d2433;
    --ch-home-muted: #5c6577;
    --ch-home-line: #e3e7ee;
    --ch-home-soft: #f6f8fb;
    --ch-home-shadow: 0 10px 26px rgba(18, 48, 94, .08);
    color: var(--ch-home-ink);
    font-family: 'Figtree', Arial, sans-serif;
}

.home h1,
.home h2,
.home h3,
.home p {
    font-family: inherit;
}

.home .top-bar {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: var(--ch-home-navy);
    color: rgba(255, 255, 255, .82);
    font-size: 12.5px;
    text-transform: none;
}

.home .top-bar .container {
    max-width: 1180px;
    gap: 16px;
    padding-right: 24px;
    padding-left: 24px;
}

.home .top-bar a {
    color: #fff;
}

.home .top-bar-link {
    margin-left: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .45);
    font-weight: 700;
}

.home .main-header {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 0;
    border-bottom: 3px solid var(--ch-home-accent);
    background: #fff;
    color: var(--ch-home-navy);
}

.home .site-header .main-header {
    background-color: #fff !important;
    color: var(--ch-home-navy) !important;
}

.home .flex-header {
    max-width: 1180px;
    min-height: 82px;
    padding: 12px 24px;
}

.home .site-branding {
    max-width: none;
}

.home .site-branding > a {
    display: block;
    line-height: 0;
}

.home .gov-logo {
    width: auto;
    height: 52px;
    max-width: 220px;
    object-fit: contain;
}

.home .branding-text {
    display: none;
}

.home .site-title {
    margin: 0;
    color: var(--ch-home-navy);
    font-size: 1.15rem;
    font-weight: 800;
}

.home .main-navigation {
    gap: 12px;
}

.home .main-navigation li a {
    border-radius: 5px;
    color: var(--ch-home-navy) !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
}

.home .main-navigation li a:hover,
.home .main-navigation li.current-menu-item > a {
    border-color: transparent;
    background: var(--ch-home-soft) !important;
    color: var(--ch-home-accent) !important;
}

.home .main-navigation ul ul {
    border: 1px solid var(--ch-home-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(18, 48, 94, .1);
}

.home .main-navigation ul ul li a {
    border: 0;
    color: var(--ch-home-muted);
}

.home .main-navigation ul ul li a:hover {
    background: var(--ch-home-soft);
    color: var(--ch-home-navy);
}

.home .menu-toggle {
    color: var(--ch-home-navy);
}

.home .header-cta-btn {
    border-radius: 5px;
    background: var(--ch-home-accent);
    font-size: 13.5px;
    font-weight: 700;
}

.home .header-cta-btn:hover {
    background: #a20c24;
}

.chilehalal-home-sections {
    color: var(--ch-home-ink);
}

.ch-home-section {
    padding: 76px 0;
    background: #fff;
}

.ch-home-section--soft {
    background: var(--ch-home-soft);
}

.ch-home-section--banner {
    padding-top: 40px;
    padding-bottom: 40px;
}

.ch-home-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.ch-section-heading {
    max-width: 740px;
    margin: 0 auto 52px;
    text-align: center;
}

.ch-section-heading h2 {
    margin: 0;
    color: var(--ch-home-navy);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.ch-section-heading > p:not(.ch-section-eyebrow) {
    max-width: 54em;
    margin: 14px auto 0;
    color: var(--ch-home-muted);
    font-size: 16px;
    line-height: 1.65;
}

.ch-section-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 16px;
    color: var(--ch-home-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.ch-section-eyebrow::before,
.ch-section-eyebrow::after {
    width: 30px;
    height: 2px;
    flex: none;
    background: var(--ch-home-accent);
    content: "";
}

.ch-section-heading::after {
    display: block;
    width: 56px;
    height: 2px;
    margin: 28px auto 0;
    background: var(--ch-home-accent);
    content: "";
}

.ch-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
    align-items: center;
    justify-items: center;
    gap: 34px 36px;
}

.ch-logo-grid--accreditations {
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 24px 28px;
}

.ch-logo-grid--clients {
    grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
    gap: 30px 28px;
}

.ch-logo-tile {
    display: grid;
    width: 100%;
    min-height: 52px;
    place-items: center;
    transition: transform .22s ease;
}

.ch-logo-tile:hover {
    transform: scale(1.06);
}

.ch-logo-tile img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.ch-logo-grid--accreditations .ch-logo-tile img {
    max-height: 48px;
}

.ch-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px 20px;
    text-align: center;
}

.ch-metric {
    padding: 0 10px;
}

.ch-metric-icon {
    display: grid;
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    color: var(--ch-home-navy);
    font-size: 28px;
    place-items: center;
}

.ch-metric strong {
    display: block;
    color: var(--ch-home-navy);
    font-size: 2.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.035em;
    line-height: 1;
}

.ch-metric-label {
    display: block;
    max-width: 16em;
    margin: 10px auto 0;
    color: var(--ch-home-muted);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ch-banner {
    display: block;
    max-width: 880px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.ch-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.ch-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    text-align: center;
}

.ch-product {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
    border: 1px solid var(--ch-home-line);
    border-radius: 10px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.ch-product:hover {
    border-color: #cdd6e4;
    box-shadow: var(--ch-home-shadow);
}

.ch-product-icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 6px;
    background: rgba(26, 66, 138, .08);
    color: var(--ch-home-navy-2);
    font-size: 24px;
    place-items: center;
}

.ch-product-name {
    color: var(--ch-home-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.home .footer {
    padding: 56px 20px 26px;
    border-top: 0;
    background: var(--ch-home-navy);
    color: rgba(255, 255, 255, .72);
    font-family: 'Figtree', Arial, sans-serif;
}

.home .footer-container {
    max-width: 1180px;
    text-align: left;
}

.home .footer-block > summary {
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.home .footer-block-title {
    font-weight: 700;
}

.home .footer-copy {
    color: rgba(255, 255, 255, .5);
    text-align: center;
}

.home :focus-visible,
.chilehalal-home-sections :focus-visible {
    outline: 3px solid #2a5ba8;
    outline-offset: 3px;
}

@media (max-width: 991px) {
    .home .main-header {
        position: relative;
    }

    .home .main-navigation {
        background: #fff;
    }

    .home .main-navigation ul ul {
        box-shadow: none;
    }

    .ch-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ch-home-section {
        padding: 52px 0;
    }

    .ch-home-section--banner {
        padding: 32px 0;
    }

    .ch-section-heading {
        margin-bottom: 38px;
    }

    .ch-logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
        gap: 26px 20px;
    }

    .ch-logo-grid--accreditations {
        grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
        gap: 24px 18px;
    }

    .ch-logo-grid--clients {
        grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
        gap: 24px 18px;
    }

    .ch-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 12px;
    }

    .ch-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ch-product {
        min-height: 138px;
        padding: 22px 12px 18px;
    }

    .home .footer-columns {
        gap: 30px;
    }
}

@media (max-width: 420px) {
    .home .top-bar .container,
    .home .flex-header,
    .ch-home-container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .home .top-bar .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .home .top-bar-link {
        display: block;
        margin: 5px 0 0;
    }

    .home .gov-logo {
        height: 45px;
    }

    .ch-section-heading h2 {
        font-size: 1.65rem;
    }

    .ch-metric strong {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ch-logo-tile {
        transition-duration: .01ms;
    }
}
