:root {
    --primary: #9142f6;
    --primary-dark: #7931dd;
    --text: #29272c;
    --muted: #66616a;
    --surface: #ffffff;
    --page: #f8fafc;
    --border: #e2e8f0;
    --announcement: #ffbb17;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--page);
    color: var(--text);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    box-shadow: 0 1px 0 rgb(15 23 42 / 8%);
}

.announcement-bar {
    position: relative;
    min-height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 23px;
    padding: 7px 20px;
    background: var(--announcement);
    color: #222124;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
}

.announcement-sparkle {
    color: #fff8cf;
    font-size: 17px;
}

.announcement-arrow {
    margin-top: -2px;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 31px;
    font-weight: 200;
    line-height: 1;
}

.header-container {
    width: min(1600px, calc(100% - 64px));
    margin-inline: auto;
}

.header-inner {
    min-height: 95px;
    display: flex;
    align-items: center;
    gap: 42px;
}

.brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.brand img {
    display: block;
    width: 190px;
    height: auto;
}

.footer-brand {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.main-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 1.55vw, 35px);
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #2d2a2f;
    font-size: clamp(14px, 1vw, 14px);
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.nav-item {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    z-index: 20;
    /* Keep the panel touching its trigger so the hover state does not drop while moving down. */
    top: 100%;
    left: 50%;
    display: grid;
    min-width: 290px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #ece9f2;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgb(20 10 45 / 16%);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition: opacity .18s ease, transform .18s ease;
}

.nav-dropdown::before {
    position: absolute;
    top: -7px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-top: 1px solid #ece9f2;
    border-left: 1px solid #ece9f2;
    content: '';
    transform: translateX(-50%) rotate(45deg);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.open .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-dropdown > a,
.nav-dropdown__group > a {
    display: block;
    padding: 7px 0;
    color: #272331;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

.nav-dropdown > a:hover,
.nav-dropdown__group > a:hover {
    color: var(--primary);
}

.nav-dropdown--business,
.nav-dropdown--trademark {
    min-width: 315px;
}

.nav-dropdown--mega {
    left: auto;
    right: 0;
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    gap: 24px;
    min-width: 700px;
    transform: translateY(-8px);
}

.nav-item:hover .nav-dropdown--mega,
.nav-item:focus-within .nav-dropdown--mega,
.nav-item.open .nav-dropdown--mega {
    transform: translateY(0);
}

.nav-dropdown--mega::before {
    left: auto;
    right: 34px;
}

.nav-dropdown__group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-dropdown__group h3 {
    margin: 0 0 8px;
    color: #251044;
    font-size: 14px;
    font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
    color: #000000;
}

/* Dropdown service links use the Figma accent yellow on hover. */
.main-nav .nav-dropdown > a:hover,
.main-nav .nav-dropdown__group > a:hover {
    color: #d58b00;
    font-weight: 600;
}

.nav-chevron {
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 1.5px solid #6c6870;
    border-bottom: 1.5px solid #6c6870;
    transform: rotate(45deg);
}

.contact-button {
    flex: 0 0 auto;
    /* min-width: 156px; */
    /* min-height: 52px; */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 25px;
    background: var(--primary);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
}

.hero {
    min-height: 62vh;
    display: grid;
    place-items: center;
    padding: 90px 0;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    text-align: center;
}

.hero .container {
    max-width: 800px;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.25rem, 6vw, 4.25rem);
    line-height: 1.1;
}

.hero p:last-child {
    color: var(--muted);
    font-size: 1.1rem;
}

.site-footer {
    padding-top: 44px;
    background: #301064;
    color: #ffffff;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.site-footer .container {
    width: min(1594px, calc(100% - 40px));
    margin-inline: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 348px 150px 245px 120px 271px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-about {
    min-width: 0;
}

.footer-brand {
    display: inline-block;
    width: 198px;
    margin-bottom: 28px;
}

.footer-brand img {
    display: block;
    width: 198px;
    height: auto;
}

.footer-about p {
    max-width: 348px;
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 20px;
}

.footer-column,
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column h2,
.footer-contact h2 {
    margin: 0 0 28px;
    color: #ffc107;
    font-size: 21.187px;
    font-weight: 700;
    line-height: 1.2;
}

.footer-column a {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 16.479px;
    line-height: 35px;
    text-decoration: none;
}

.footer-contact a,
.footer-contact p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.footer-column a:hover,
.footer-contact a:hover,
.footer-legal a:hover {
    color: #ffc107;
}

.footer-contact__item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-contact__item > img,
.footer-contact__item span img {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: #ffc107;
    line-height: 1.2;
    text-align: center;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 18px;
}

.footer-socials a {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.footer-socials img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .76);
    font-size: 16.73px;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 28px;
}

.footer-legal a {
    color: rgba(255, 255, 255, .76);
    font-size: 18.23px;
    text-decoration: none;
}

@media (min-width: 1051px) and (max-width: 1600px) {
    .site-footer .container {
        width: min(1320px, calc(100% - 40px));
    }
}

@media (max-width: 1280px) {
    .header-container {
        width: min(1180px, calc(100% - 40px));
    }

    .header-inner {
        gap: 22px;
    }

    .brand img {
        width: 165px;
    }

    .main-nav {
        gap: 16px;
    }

    .main-nav a {
        font-size: 14px;
    }

    .contact-button {
        min-width: 135px;
        padding-inline: 18px;
    }
}

@media (max-width: 1050px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        top: 136px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 16px 35px rgb(15 23 42 / 12%);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 11px 12px;
        font-size: 15px;
    }

    .nav-item {
        width: 100%;
    }

    .nav-dropdown,
    .nav-dropdown--mega {
        position: static;
        display: none;
        min-width: 0;
        margin: 0 8px 8px;
        padding: 8px 14px;
        border: 0;
        border-left: 2px solid #e5d8ff;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .nav-item.open .nav-dropdown {
        display: grid;
    }

    .nav-dropdown::before {
        display: none;
    }

    .nav-dropdown--mega {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nav-dropdown > a,
    .nav-dropdown__group > a {
        padding: 6px 0;
        font-size: 14px;
        white-space: normal;
    }

    .nav-dropdown__group h3 {
        font-size: 15px;
    }

    .contact-button {
        min-width: 125px;
        min-height: 46px;
    }

    .nav-chevron {
        margin-left: auto;
    }

    .footer-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px 28px;
    }

    .footer-about {
        grid-column: 1 / -1;
        max-width: 420px;
    }
}

@media (max-width: 600px) {
    .announcement-bar {
        min-height: 36px;
        gap: 9px;
        padding-inline: 12px;
        font-size: 13px;
    }

    .announcement-arrow {
        font-size: 23px;
    }

    .header-container {
        width: calc(100% - 28px);
    }

    .header-inner {
        min-height: 78px;
        gap: 12px;
    }

    .brand img {
        width: 145px;
    }

    .main-nav {
        top: 114px;
        right: 14px;
        left: 14px;
    }

    .contact-button {
        display: none;
    }

    .site-footer {
        padding-top: 55px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 34px 24px;
        padding-bottom: 55px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .footer-legal {
        justify-content: flex-start;
        gap: 14px 20px;
    }
}
