/* =========================================================
   Header
   ========================================================= */

/* Tablet (768px+): top row + tinted second row with tab and pills */
@media (min-width: 768px) {
    .ur-header .ur-bar {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "brand tools"
            "menu  menu";
        padding-top: 10px;
        padding-bottom: 0;
    }

    .ur-logo {
        height: 56.11px;
    }

    .ur-tools {
        justify-self: end;
        gap: 28px;
    }

    .website-translator {
        width: 102px;
    }

    .ur-menu {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        z-index: auto;
        max-height: none;
        overflow: visible;
        display: flex;
        align-items: flex-end;
        gap: 20px;
        margin-top: 12px;
        padding: 0;
        background: transparent;
        border-top: 0;
        box-shadow: none;
    }

    /* Full-width tinted strip with blue bottom line */
    .ur-menu::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 100vw;
        transform: translateX(-50%);
        background: #EDF4FC;
        border-bottom: 3px solid var(--ur-blue);
    }

    .ur-tab {
        display: block;
        flex: none;
        padding: 12px 22px;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: .02em;
        text-transform: uppercase;
        text-decoration: none;
        color: #fff;
        background: var(--ur-blue);
        border-radius: 8px 8px 0 0;
    }

    .ur-header .navbar-nav {
        gap: 12px;
        align-items: center;
        padding: 9px 0 12px;
    }

    .ur-header .nav-link {
        padding: 6px 22px;
        font-size: 20px;
        line-height: 1.3;
        background: #fff;
        border: 1px solid #BFD9F2;
        border-radius: 999px;
        transition: color .2s, border-color .2s;
    }

    .ur-header .nav-link:hover,
    .ur-header .nav-link.show,
    .ur-dropdown .dropdown-item.active,
    .ur-menu .nav-link.active,
    .ur-menu .nav-link.show {
        border-color: var(--ur-blue);
    }

    .ur-dropdown {
        min-width: 278px;
        margin: 14px 0 0 !important;
        padding: 10px 0;
        border: 1px solid #e6e6e6;
        border-radius: 8px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
        background: #fff;
        left: 0 !important;
    }

    .ur-dropdown::before {
        display: block;
        content: "";
        position: absolute;
        top: -16px;
        left: 0;
        right: 0;
        height: 16px;
    }

    .ur-dropdown .dropdown-item {
        padding: 7px 16px;
        font-size: 18px;
    }
}

/* Desktop (992px+): single row */
@media (min-width: 992px) {
    .ur-header .ur-bar {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "brand menu tools";
        column-gap: 40px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .ur-menu {
        justify-self: end;
        display: flex;
        align-items: center;
        gap: 0;
        margin: 0;
    }

    .ur-menu::before {
        display: none;
    }

    .ur-tab {
        display: none;
    }

    .ur-header .navbar-nav {
        gap: 40px;
        padding: 0;
    }

    .ur-header .nav-link {
        padding: 8px 6px;
        background: transparent;
        border: 0;
        border-radius: 0;
    }

    .ur-tools {
        gap: 48px;
    }

    .ur-cta {
        font-size: 23px;
        padding: 7px 24px;
    }

    .ur-dropdown {
        left: -70px !important;
        top: 45px !important;
    }
}

/* =========================================================
   Hero
   ========================================================= */
@media screen and (max-width: 991.98px) {
    .ur-hero {
        padding: 20px 0 40px;
    }

    .ur-hero-copy-wrapper,
    .ur-approach-wrapper {
        width: 100% !important;
    }

    .ur-hero-copy p {
        color: var(--ur-text);
    }

    a.ur-strat-btn.bg-none {
        margin-left: 0 !important;
    }
}

@media screen and (max-width: 575.98px) {
    .ur-hero {
        padding: 16px 0;
    }

    .ur-eyebrow {
        font-size: 16px;
    }

    .ur-hero-title {
        margin: 0 0 10px;
    }

    .ur-start-text p,
    .ur-impact-text,
    .ur-impact-list strong {
        font-size: 16px !important;
        font-weight: 400 !important;
    }

    .ur-challenge-title {
        font-size: 18px;
    }

    .ur-ch-num {
        font-size: 14px;
    }

    .ur-strat-intro {
        margin-top: 0 !important;
    }

    .ur-hero-copy p {
        font-size: 16px;
        line-height: 22px;
        color: var(--ur-text);
        margin-top: 7px;
    }

    .ur-step-text {
        font-size: 16px;
        line-height: 22px;
    }

    .ur-approach {
        padding: 18px 16px 16px;
    }

    .ur-step {
        padding: 16px 0;
        gap: 10px;
    }

    .ur-step:nth-child(4) {
        border: none !important;
    }

    .ur-play {
        width: 46px;
        height: 46px;
    }

    .ur-play span {
        border-top-width: 7px;
        border-bottom-width: 7px;
        border-left-width: 12px;
    }

    .ur-live,
    .ur-approach-foot {
        display: none;
    }

    .ur-approach-head {
        font-size: 14px;
    }
}

/* =========================================================
   ADG section
   ========================================================= */

/* Mobile: row spacing override */
@media screen and (max-width: 767.98px) {
    .ur-flow-row {
        margin-top: 20px !important;
    }
    .nav-item > a.nav-link::before  {
        display: none !important;
    }
}

/* Respect reduced-motion settings */
@media screen and (prefers-reduced-motion: reduce) {
    .js .ur-flow-col * {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* Tablet + mobile: vertical stepper */
@media screen and (max-width: 991.98px) {
    .ur-adg {
        padding: 28px 0 40px;
    }

    .ur-adg-title {
        margin-bottom: 14px;
        font-size: clamp(1.6rem, 8.55vw, 2.9rem);
    }

    .ur-adg-text {
        max-width: none;
        margin-bottom: 16px;
        font-size: 18px;
        line-height: 1.5;
        color: var(--ur-text);
    }

    .ur-adg-img {
        aspect-ratio: 2.1 / 1;
    }

    .ur-flow-row {
        --dot: 32px;
        margin-top: 24px;
    }

    .ur-flow-col {
        --cd: 0s;
        display: grid;
        grid-template-columns: var(--dot) 1fr;
        column-gap: 16px;
    }

    .ur-flow,
    .ur-flow-col+.ur-flow-col .ur-flow {
        --pad: 0px;
        grid-column: 1;
        grid-row: 1;
        display: block;
        margin: 0;
        padding: 0;
    }

    .ur-flow-text,
    .ur-flow-col:first-child .ur-flow-text,
    .ur-flow-col+.ur-flow-col .ur-flow-text {
        grid-column: 2;
        grid-row: 1;
        padding: 0 0 28px;
        /* also the length of the dashed line */
        border-left: 0;
    }

    .ur-flow-col:last-child .ur-flow-text {
        padding-bottom: 0;
    }

    .ur-flow-num {
        width: var(--dot);
        height: var(--dot);
        margin-top: 2px;
        border-color: var(--ur-blue);
        background: var(--ur-blue);
        color: #fff;
        font-size: 13px;
    }

    .js .ur-flow-col.is-visible .ur-flow-num {
        animation-name: ur-ring-blue;
    }

    .ur-flow-line {
        top: calc(var(--dot) + 8px);
        bottom: 6px;
        left: calc(var(--dot) / 2);
        right: auto;
        width: 0;
        height: auto;
        border-top: 0;
        border-left: 1.5px dashed #4B6CB7;
        transform: translateX(-50%);
    }

    .ur-flow-line::after {
        display: none;
    }

    .js .ur-flow-line {
        clip-path: inset(0 -10px 100% -10px);
    }

    .js .ur-flow-col.is-visible .ur-flow-line {
        clip-path: inset(0 -10px -10px -10px);
        transition-delay: .6s;
    }

    .ur-flow-label {
        margin-bottom: 2px;
        font-size: 14px;
    }

    .ur-flow-title {
        margin-bottom: 4px;
        font-size: clamp(1.05rem, 5.4vw, 1.75rem);
        font-weight: 600;
    }

    .ur-flow-desc {
        font-size: 16px;
        line-height: 1.45;
    }
}

/* Mobile only */
@media screen and (max-width: 767.98px) {
    .ur-adg-text {
        margin-bottom: 0;
        font-size: 16px;
        line-height: 22px;
    }

    .ur-adg-link-wrap {
        padding-bottom: 5px;
    }
}

/* =========================================================
   Connected Team section
   ========================================================= */
@media screen and (max-width: 767.98px) {
    .ur-team-name {
        font-weight: 700;
    }

    .ur-team-desc {
        font-size: 16px;
        line-height: 1.4;
    }

    .ur-team-item {
        align-items: flex-start;
        border-bottom: none;
    }

    .ur-team-item+.ur-team-item {
        border-top: 1px solid var(--ur-line);
    }

    .ur-team-arrow {
        margin-top: 5px;
    }

    .ur-team-title {
        text-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    }

    .ur-team-btn {
        font-size: 16px;
    }
}

@media screen and (min-width: 768px) {
    .ur-team {
        padding: 48px 0;
    }

    .ur-team-title {
        font-size: 3.5rem;
    }

    .ur-team-text {
        font-size: 18px;
    }

    .ur-team-item {
        padding: 24px 0;
    }
}

@media screen and (min-width: 992px) {
    .ur-team {
        padding: 56px 0;
    }

    .ur-team-title {
        font-size: clamp(3rem, 4.6vw, 3.75rem);
    }

    .ur-team-list {
        height: 100%;
    }

    .ur-team-item {
        flex: 1;
        padding: 20px 0;
    }

    .ur-team-main {
        gap: 20px;
    }

    .ur-team-num {
        min-width: 30px;
    }
}

/* =========================================================
   Selected Project Directions
   ========================================================= */
@media screen and (max-width: 768px) {
    .ur-proj-intro {
        font-size: 16px !important;
        margin-top: 15px !important;
        color: #000 !important;
    }

    .ur-proj-desc {
        font-size: 16px !important;
    }

    .ur-badge img {
        width: 17px !important;
        height: 13px !important;
    }

    .ur-proj-name {
        font-size: 20px !important;
    }
}

/* Tablet and up: category + badges share one row above the title */
@media screen and (min-width: 768px) {
    .ur-proj {
        padding: 48px 0 56px;
    }

    .ur-proj-intro {
        font-size: 17px;
    }

    .ur-yt {
        width: 68px;
        height: 48px;
        border-radius: 14px;
    }

    .ur-yt::after {
        border-width: 10px 0 10px 18px;
    }

    .ur-proj-body {
        padding-top: 16px;
    }

    .ur-proj-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px 12px;
        margin-bottom: 4px;
    }

    .ur-badges {
        margin: 0;
    }

    .ur-social-pop {
        left: 50%;
        transform: translate(-50%, -4px);
    }

    .ur-badge-social:hover .ur-social-pop,
    .ur-badge-social:focus-within .ur-social-pop {
        transform: translate(-50%, 0);
    }
}

/* Desktop: header copy sits on the right */
@media screen and (min-width: 992px) {
    .ur-proj {
        padding: 56px 0 64px;
    }

    .ur-proj-row {
        margin-top: 16px;
    }

    .ur-proj-intro {
        font-size: 18px;
        margin-left: auto;
    }
}

/* =========================================================
   Why URated
   ========================================================= */
@media screen and (min-width: 768px) {
    .ur-why {
        padding: 44px 0 52px;
    }
}

@media screen and (max-width: 767px) {
    .ur-why-text {
        font-size: 16px !important;
    }

    .ur-why-list li {
        font-size: 16px !important;
        color: #000 !important;
    }

    .ur-why-list li::before {
        width: 15px;
        height: 14px;
    }
}

@media screen and (min-width: 992px) {
    .ur-why {
        padding: 56px 0;
    }

    .ur-why-img {
        aspect-ratio: 1.5 / 1;
    }

    .ur-why-title {
        font-size: clamp(2.4rem, 4vw, 3.75rem);
    }

    .ur-why-text {
        color: var(--ur-description);
    }
}

/* =========================================================
   Plan section
   ========================================================= */

/* Mobile: blue circles, plain dashed line */
@media screen and (max-width: 767.98px) {
    .ur-plan-desc {
        font-size: 16px !important;
    }

    .ur-plan-step {
        grid-template-columns: 32px 1fr;
        column-gap: 16px;
    }

    .ur-plan-text {
        padding-bottom: 24px;
    }

    .ur-plan-num {
        display: grid;
        place-items: center;
        width: 32px;
        height: 32px;
        margin-top: 2px;
        border-radius: 50%;
        background: var(--ur-blue);
        font-family: 'Lato', sans-serif;
        font-size: 13px;
        font-weight: 700;
        color: #fff;
    }

    .ur-plan-line {
        top: 44px;
        bottom: 8px;
        left: 16px;
        border-left-color: var(--ur-blue);
    }

    .ur-plan-line::after {
        display: none;
    }
}

/* Tablet */
@media screen and (min-width: 768px) {
    .ur-plan {
        padding: 44px 0 52px;
    }

    .ur-plan-title {
        font-size: clamp(2.4rem, 6.2vw, 3.75rem);
    }

    .ur-plan-steps {
        margin-top: 28px;
    }

    .ur-plan-name {
        font-size: 1.63rem;
    }
}

/* Desktop: 3 columns, numbers joined by horizontal arrows */
@media screen and (min-width: 992px) {
    .ur-plan {
        padding: 48px 0 56px;
    }

    .ur-plan-steps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: var(--plan-gap);
        margin-top: 24px;
    }

    .ur-plan-step {
        display: block;
    }

    .ur-plan-mark {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 18px;
    }

    .ur-plan-text {
        padding-bottom: 0;
    }

    .ur-plan-line {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        flex: 1;
        height: 0;
        margin-right: calc(12px - var(--plan-gap));
        /* reaches the next number */
        border-left: 0;
        border-top: 1.5px dashed var(--ur-text);
        transform: none;
    }

    .ur-plan-line::after {
        left: auto;
        right: 0;
        bottom: auto;
        top: 0;
        border-bottom: 0;
        border-top: 1.5px solid var(--ur-text);
        transform: translateY(-50%) rotate(45deg);
    }

    .ur-plan-desc {
        max-width: 340px;
    }
}

/* =========================================================
   Proof in the performance (reels)
   ========================================================= */
@media screen and (min-width: 768px) {
    .ur-proof {
        padding: 44px 0 52px;
    }

    .ur-proof-title {
        font-size: clamp(2.3rem, 5.9vw, 3.75rem);
    }

    .ur-reels {
        margin-top: 26px;
    }

    .ur-reel {
        flex-basis: clamp(160px, 23.4vw, 240px);
    }
}

/* Desktop: all six in one row */
@media screen and (min-width: 992px) {
    .ur-proof {
        padding: 48px 0;
    }

    .ur-reels {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        margin: 28px 0 0;
        padding: 0;
        overflow: visible;
    }
}

/* =========================================================
   Reviews
   ========================================================= */
@media screen and (min-width: 768px) {
    .ur-reviews {
        padding: 44px 0;
    }

    .ur-reviews-title {
        font-size: clamp(2.3rem, 6.6vw, 3.75rem);
    }

    .ur-reviews-widget {
        margin-top: 26px;
    }
}

@media screen and (min-width: 992px) {
    .ur-reviews {
        padding: 48px 0 56px;
    }

    .ur-reviews-widget {
        margin-top: 28px;
    }
}

/* =========================================================
   FAQ
   ========================================================= */
@media screen and (max-width: 1024px) {
    .ur-faq {
        height: 100% !important;
    }

    .ur-faq-text {
        color: var(--ur-text) !important;
        font-size: 16px !important;
    }

    .ur-faq-acc .accordion-button {
        font-size: 16px !important;
    }

    .ur-faq-acc .accordion-body {
        font-size: 16px !important;
    }
}

@media screen and (min-width: 768px) {
    .ur-faq {
        padding: 44px 0 52px;
    }

    .ur-faq-title {
        font-size: 3.1rem;
    }

    .ur-faq-text {
        margin-bottom: 8px;
    }

    .ur-faq-acc .accordion-button {
        font-size: 20px;
        padding: 13px 25px;
    }

    .ur-faq-acc .accordion-body {
        padding: 12px 18px;
    }
}

@media screen and (min-width: 992px) {
    .ur-faq {
        padding: 48px 0 56px;
    }

    .ur-faq-title {
        font-size: clamp(2.6rem, 3.6vw, 3.75rem);
    }

    .ur-faq-text {
        margin-bottom: 0;
    }
}

/* =========================================================
   Contact
   ========================================================= */
@media screen and (max-width: 1024px) {
    .ur-contact-text {
        font-size: 16px !important;
    }

    .ur-form-title {
        font-size: 22px !important;
    }
}

@media screen and (min-width: 768px) {
    .ur-contact {
        padding: 44px 0 52px;
    }

    .ur-contact-title {
        font-size: clamp(2.2rem, 6.3vw, 3.75rem);
    }

    .ur-form-card {
        padding: 26px 28px 30px;
    }

    .ur-form-title {
        margin: 0 0 22px;
    }
}

@media screen and (min-width: 992px) {
    .ur-contact {
        padding: 56px 0 64px;
    }

    .ur-contact-title {
        font-size: clamp(2.6rem, 4vw, 3.75rem);
    }

    .ur-form-card {
        padding: 28px 32px 32px;
    }

    .ur-input {
        font-size: 15px;
    }
}

/* =========================================================
   Footer
   ========================================================= */
@media screen and (max-width: 767px) {
    .mobile-footer-contact {
        width: 80%;
        margin: auto;
    }

    .mobile-footer-section {
        padding-top: 28px;
        padding-bottom: 15px;
    }

    .mobile-footer-line {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        font-size: 14px;
        color: #425D7A;
        text-align: left;
    }

    .mobile-footer-paragraph {
        font-size: 16px;
        color: #000;
        margin-bottom: 8px;
        text-align: center;
        line-height: 24px;
    }

    .social-icons {
        gap: 6px;
    }

    .icon-box {
        width: 24px;
        height: 24px;
    }

    .mobile-footer-copy {
        font-size: 16px;
        color: #000;
        text-align: center;
    }

    .icon-wrap {
        width: 24px;
        display: flex;
        justify-content: center;
        align-items: start;
    }

    .mobile-footer-text {
        font-size: 16px;
        color: #4B6CB7;
        text-decoration: none;
        display: block;
        line-height: 1.4;
    }

    .mobile-footer-text:hover {
        text-decoration: none;
    }
}

@media screen and (min-width: 768px) {
    .footerstyle {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .footerstyle .logostyle {
        width: 20%;
    }

    .footerstyle p.mobile-footer-paragraph {
        width: 80%;
        text-align: left;
        margin: 0;
    }

    .mobile-footer-contact .mobile-footer-line a.mobile-footer-text {
        color: #425D7A;
        text-decoration: none;
        font-size: 20px;
        font-weight: 500;
    }
}