/* The homepage hero (partials/homepage_hero): a moving gradient, tabs a
   visitor chooses instead of auto-advancing slides, a "Find a number" tab
   with a rotating 1-800-WORD headline and a live search box, and a ticker
   of available numbers. homepage-3c.css lays it out in two columns beside
   the smartphone dialer.
   The site stylesheet colors every span and link #3D3B58; that is
   overridden here. Headings keep the site's brand heading font (set
   site-wide with !important), so sizes here suit its width. */

.hp-hero-v h2 {
    text-transform: none;
    letter-spacing: 0;
}

.hp-hero-v span,
.hp-hero-v a {
    color: inherit;
}

/* ===================== Backdrop, headline, search ===================== */
/* The bottom edge: rounded corners, with the services card floating up
   over it (see homepage-3c.css). */
.hp-hero-d {
    z-index: 2;
    overflow: visible;
    padding: 70px 0 170px;
    border-radius: 0 0 56px 56px;
    background: linear-gradient(160deg, var(--np-deep) 0%, var(--np-teal) 55%, var(--np-teal-dark) 100%);
    color: #fff;
    isolation: isolate;
}

.hp-hero-d-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    border-radius: inherit;
}

/* A fine grain over everything, so the gradient doesn't look flat. */
.hp-hero-d-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .09;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hp-hero-d-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    animation: hp-blob-drift 18s ease-in-out infinite alternate;
}

.hp-hero-d-blob-1 {
    top: -120px;
    left: 8%;
    width: 520px;
    height: 520px;
    background: rgba(0, 171, 154, .55);
}

.hp-hero-d-blob-2 {
    right: 4%;
    bottom: -60px;
    width: 460px;
    height: 460px;
    background: color-mix(in srgb, var(--np-gold) 38%, transparent);
    animation-duration: 22s;
    animation-delay: -6s;
}

.hp-hero-d-blob-3 {
    top: 30%;
    left: 45%;
    width: 380px;
    height: 380px;
    background: rgba(91, 164, 170, .45);
    animation-duration: 26s;
    animation-delay: -12s;
}

@keyframes hp-blob-drift {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(60px, 40px) scale(1.15);
    }
}

.hp-hero-d-inner {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hp-hero .hp-hero-d-title {
    margin: 0 auto 18px;
    color: #fff;
    font-size: 44px;
    text-align: center;
    font-weight: 800;
    line-height: 1.12;
}

.hp-hero-d-number {
    display: block;
    margin-top: 6px;
    color: var(--np-gold-light);
    font-size: 60px;
    letter-spacing: 1px;
}

.hp-hero-d-word {
    display: inline-block;
    min-width: 4ch;
    text-align: left;
}

/* One letter of the rotating word mid-flip. */
.hp-hero-d-word .hp-letter {
    display: inline-block;
    animation: hp-letter-flip .38s cubic-bezier(.3, .7, .3, 1) both;
}

@keyframes hp-letter-flip {
    from {
        opacity: 0;
        transform: rotateX(-90deg) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hp-hero-d-sub {
    max-width: 620px;
    margin: 0 auto 30px;
    color: var(--np-on-dark);
    font-size: 19px;
    line-height: 1.6;
}

.hp-hero-search {
    position: relative;
    display: flex;
    gap: 10px;
    max-width: 660px;
    margin: 0 auto;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .2);
    backdrop-filter: blur(6px);
}

.hp-hero-search input {
    flex: 1;
    min-width: 0;
    height: 58px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #1f2933;
    font-size: 19px;
    outline: none;
}

.hp-hero-search input:focus {
    box-shadow: 0 0 0 3px var(--np-gold-light);
}

.hp-hero-search button {
    padding: 0 28px;
    border: 2px solid var(--np-gold-dark);
    border-radius: 12px;
    background: linear-gradient(to bottom, var(--np-gold-bright), var(--np-gold));
    color: #3D3B58;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 0 var(--np-gold-deeper);
    transform: translateY(-2px);
    transition: transform .1s ease-out, box-shadow .1s ease-out;
    cursor: pointer;
}

.hp-hero-search button:active {
    box-shadow: 0 1px 0 var(--np-gold-deeper);
    transform: translateY(1px);
}

.hp-hero-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .3);
    text-align: left;
}

.hp-hero-results a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 20px;
    border-bottom: 1px solid #edf2f4;
    color: var(--np-heading-soft);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.hp-hero-results a:hover,
.hp-hero-results a:focus-visible {
    background: #f3fafa;
    outline: none;
}

.hp-hero-results .hp-result-offer {
    flex: none;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e3f2f3;
    color: var(--np-teal);
    font-size: 13px;
    font-weight: 700;
}

.hp-hero-results .hp-result-offer-port {
    background: #fbf1cf;
    color: #7a5d0b;
}

.hp-hero-results a.hp-result-all {
    justify-content: center;
    border-bottom: 0;
    color: var(--np-teal);
    font-size: 15px;
}

.hp-hero-results .hp-result-empty {
    margin: 0;
    padding: 16px 20px;
    color: #5f6f7a;
    font-size: 15px;
}

/* The ticker: real available numbers sliding past. Two copies of the
   list sit side by side so the loop is seamless. */
.hp-ticker {
    position: relative;
    z-index: 1;
    margin-top: 56px;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, .14);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    background: rgba(0, 0, 0, .12);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.hp-ticker-track {
    display: flex;
    width: max-content;
    animation: hp-ticker-slide 45s linear infinite;
}

.hp-ticker:hover .hp-ticker-track,
.hp-ticker:focus-within .hp-ticker-track {
    animation-play-state: paused;
}

.hp-ticker-list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-ticker-list li a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 13px 26px 13px 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    white-space: nowrap;
    text-decoration: none;
}

.hp-ticker-list li a::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--np-gold);
    box-shadow: 0 0 8px var(--np-gold);
}

.hp-ticker-list li a:hover {
    color: var(--np-gold-light);
}

@keyframes hp-ticker-slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 991px) {
    .hp-hero .hp-hero-d-title {
        font-size: 36px;
    }

    .hp-hero-d-number {
        font-size: 40px;
    }
}

@media (max-width: 575px) {
    .hp-hero-d {
        padding-top: 44px;
    }

    .hp-hero-search {
        flex-direction: column;
    }

    .hp-hero-search input {
        flex: none;
    }

    .hp-hero-search button {
        height: 52px;
    }
}

/* ===================== Tabs and panels ===================== */

/* A pill track with a sliding gold thumb, like the Local/Toll-Free
   switch on /toll-free-numbers. */
.hp-hero-tabs {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    width: max-content;
    margin: 0 auto 30px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .25), 0 1px 0 rgba(255, 255, 255, .12);
}

.hp-hero-tabs-thumb {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(to bottom, var(--np-gold-bright), var(--np-gold));
    box-shadow: 0 3px 10px color-mix(in srgb, var(--np-gold) 45%, transparent);
    transition: left .35s cubic-bezier(.3, .7, .3, 1), width .35s cubic-bezier(.3, .7, .3, 1);
}

.hp-hero-tab {
    position: relative;
    z-index: 1;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--np-on-dark);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: color .25s ease-out;
}

.hp-hero-tab:hover {
    color: #fff;
}

.hp-hero-tab[aria-selected="true"] {
    color: #3D3B58;
}

.hp-hero-tab:focus-visible {
    outline: 2px solid var(--np-gold-light);
    outline-offset: 2px;
}

/* All panels share one grid cell, so the hero keeps the height of the
   tallest and nothing below jumps when the tab changes. A hidden panel
   keeps its space but is invisible, and so unreachable by keyboard and
   screen readers too. */
.hp-hero-panels {
    display: grid;
    text-align: center;
}

.hp-hero-panel {
    grid-area: 1 / 1;
}

/* Bootstrap sets [hidden] to display: none !important, so this needs
   !important too. */
.hp-hero-panels > .hp-hero-panel[hidden] {
    display: block !important;
    visibility: hidden;
    opacity: 0;
}

.hp-hero-panel.is-entering {
    animation: hp-panel-in .45s cubic-bezier(.2, .7, .2, 1);
}

@keyframes hp-panel-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hp-hero-panel-text {
    max-width: 620px;
    margin: 0 auto 28px;
    color: var(--np-on-dark);
    font-size: 19px;
    line-height: 1.6;
}

.hp-hero-v a.hp-hero-btn {
    display: inline-block;
    padding: 14px 30px;
    border: 2px solid var(--np-gold-dark);
    border-radius: 12px;
    background: linear-gradient(to bottom, var(--np-gold-bright), var(--np-gold));
    color: #3D3B58;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 0 var(--np-gold-deeper), 0 10px 18px rgba(0, 0, 0, .2);
    transform: translateY(-2px);
    transition: transform .1s ease-out, box-shadow .1s ease-out;
}

.hp-hero-v a.hp-hero-btn:active {
    box-shadow: 0 1px 0 var(--np-gold-deeper);
    transform: translateY(2px);
}

/* Where the four tabs don't fit on one line they become a 2 x 2 grid;
   the sliding thumb can't follow a wrapped row, so the chosen tab fills
   in gold instead. */
@media (max-width: 767px) {
    .hp-hero-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: auto;
        border-radius: 18px;
    }

    .hp-hero-tabs-thumb {
        display: none;
    }

    .hp-hero-tab[aria-selected="true"] {
        background: linear-gradient(to bottom, var(--np-gold-bright), var(--np-gold));
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-hero-d-blob,
    .hp-hero-panel.is-entering {
        animation: none;
    }

    .hp-hero-tabs-thumb {
        transition: none;
    }

    .hp-ticker {
        overflow-x: auto;
    }

    .hp-ticker-track {
        animation: none;
    }

    .hp-ticker-list[aria-hidden="true"] {
        display: none;
    }
}
