/* WYN® — Mollie-Style Mega Menu Navigation & Rich Footer Styles */
:root {
    --wyn-nav-h: 78px;
    --wyn-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   NAVBAR WRAPPER
   ========================================================================== */
.wyn-navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--wyn-nav-h);
    background: color-mix(in srgb, var(--paper, #f7f7f4) 88%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid color-mix(in srgb, var(--line, #d8d8d2) 65%, transparent);
    transition: background 0.3s ease, border-color 0.3s ease, height 0.3s var(--wyn-ease);
}

.wyn-navbar.scrolled {
    height: 68px;
    background: color-mix(in srgb, var(--paper, #f7f7f4) 96%, transparent);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.wyn-navbar.is-dark-context {
    background: rgba(11, 11, 14, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.wyn-navbar.is-dark-context .wyn-logo-img {
    filter: invert(1);
}

.wyn-nav-container {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 clamp(16px, 3.5vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Brand Logo */
.wyn-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    padding: 4px 0;
}

.wyn-logo-img {
    display: block;
    height: clamp(38px, 4.2vw, 48px);
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease, opacity 0.25s ease, height 0.3s var(--wyn-ease);
}

.wyn-navbar.scrolled .wyn-logo-img {
    height: clamp(34px, 3.6vw, 42px);
}

.wyn-brand:hover .wyn-logo-img {
    opacity: 0.85;
}

/* ==========================================================================
   DESKTOP NAVIGATION
   ========================================================================== */
.wyn-desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.2vw, 36px);
}

.wyn-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.wyn-nav-link:hover,
.wyn-nav-link.is-active {
    color: var(--ink, #0a0a0a);
}

.wyn-navbar.is-dark-context .wyn-nav-link:hover,
.wyn-navbar.is-dark-context .wyn-nav-link.is-active {
    color: #ffffff;
}

.chevron-icon {
    display: inline-block;
    transition: transform 0.25s var(--wyn-ease);
}

.has-dropdown[data-open="true"] .chevron-icon {
    transform: rotate(180deg);
}

/* ==========================================================================
   MOLLIE-STYLE MEGA MENU CONTAINER
   ========================================================================== */
.has-dropdown {
    position: relative;
}

.wyn-mega-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: min(1060px, calc(100vw - 40px));
    background: #ffffff;
    color: #0d0d0d;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15), 0 6px 20px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s var(--wyn-ease), transform 0.22s var(--wyn-ease), visibility 0.22s;
    overflow: hidden;
    z-index: 1050;
}

.has-dropdown[data-open="true"] .wyn-mega-menu,
.has-dropdown:focus-within .wyn-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* 3-Column Layout */
.wyn-mega-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 30px 32px 24px;
}

.wyn-mega-eyebrow {
    display: block;
    font-family: var(--mono, "IBM Plex Mono", monospace);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.09em;
    color: #8c8c85;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.wyn-mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Individual Card (Icon + Title + Subtitle) */
.wyn-menu-card {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, transform 0.2s var(--wyn-ease);
}

.wyn-menu-card:hover {
    background: #f6f6f2;
    transform: translateX(2px);
}

.wyn-menu-card.is-current {
    background: #f0f0ea;
}

/* Icon Badges */
.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f2f2ee;
    color: #1a1a1a;
    transition: transform 0.2s var(--wyn-ease), background 0.2s ease, color 0.2s ease;
}

.wyn-menu-card:hover .card-icon {
    transform: scale(1.05);
}

/* Category Accent Icons */
.icon-wonai { background: #fff0ec; color: #ff3d19; }
.icon-voip  { background: #eef0ff; color: #5038ee; }
.icon-design{ background: #f0ecff; color: #6d28d9; }
.icon-tech  { background: #eff6ff; color: #2563eb; }
.icon-ai    { background: #ecfdf5; color: #059669; }
.icon-security{ background: #fef2f2; color: #dc2626; }
.icon-works { background: #f5f5f4; color: #1c1917; }
.icon-practice{ background: #fffbeb; color: #d97706; }
.icon-notes { background: #f3e8ff; color: #7e22ce; }

/* Text within Card */
.card-text {
    min-width: 0;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.badge-tag {
    display: inline-block;
    font-family: var(--mono, "IBM Plex Mono", monospace);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 100px;
    background: #e6e6df;
    color: #4b4b45;
}

.card-desc {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #6a6a64;
}

/* Mega Menu Footer Strip */
.wyn-mega-foot {
    background: #f8f8f5;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
}

.foot-note {
    color: #555550;
    font-size: 12px;
}

.foot-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.foot-link {
    font-family: var(--mono, "IBM Plex Mono", monospace);
    font-size: 11px;
    color: #111111;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.foot-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ==========================================================================
   ACTIONS & CTA
   ========================================================================== */
.wyn-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wyn-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--ink, #0a0a0a);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--ink, #0a0a0a);
    transition: transform 0.2s var(--wyn-ease), background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.wyn-navbar.is-dark-context .wyn-nav-cta {
    background: #ffffff;
    color: #0a0a0a;
    border-color: #ffffff;
}

.wyn-nav-cta:hover {
    background: transparent;
    color: var(--ink, #0a0a0a);
}

.wyn-navbar.is-dark-context .wyn-nav-cta:hover {
    background: transparent;
    color: #ffffff;
}

.cta-arrow {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.wyn-nav-cta:hover .cta-arrow {
    transform: translate(2px, -2px);
}

/* Mobile Toggle Hamburger */
.wyn-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 1002;
}

.toggle-bar {
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.3s var(--wyn-ease);
}

.wyn-mobile-toggle[aria-expanded="true"] .toggle-bar:first-child {
    transform: translateY(3.75px) rotate(45deg);
}

.wyn-mobile-toggle[aria-expanded="true"] .toggle-bar:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
}

/* ==========================================================================
   MOBILE DRAWER (Full Screen, Categorized with Icons, No Horizontal Scroll)
   ========================================================================== */
.wyn-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 999;
    width: 100vw;
    height: 100dvh;
    min-height: 100svh;
    background: #0d0d0f;
    color: #ffffff;
    padding: calc(var(--wyn-nav-h) + 12px) 20px 32px;
    display: none;
    flex-direction: column;
    visibility: hidden;
    opacity: 1;
    transform: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.wyn-mobile-drawer[aria-hidden="false"],
body.wyn-drawer-open .wyn-mobile-drawer {
    display: flex;
    visibility: visible;
    opacity: 1;
    animation: wynDrawerEnter .46s var(--wyn-ease) both;
}

@keyframes wynDrawerEnter {
    from { transform: translate3d(0, -18px, 0); }
    to { transform: translate3d(0, 0, 0); }
}

body.wyn-drawer-open {
    overflow: hidden !important;
}

html.wyn-drawer-open {
    overflow: hidden !important;
    scrollbar-gutter: auto;
}

body.wyn-drawer-open .wyn-navbar {
    background: #0d0d0f;
    border-color: #222226;
    color: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none;
}

body.wyn-drawer-open .wyn-navbar .wyn-logo-img {
    filter: invert(1);
}

body.wyn-drawer-open main,
body.wyn-drawer-open footer {
    pointer-events: none;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #222226;
    font-family: var(--mono, "IBM Plex Mono", monospace);
    font-size: 10px;
    color: #88888f;
    letter-spacing: 0.08em;
}

.drawer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 20px;
}

.drawer-group {
    display: flex;
    flex-direction: column;
}

.drawer-group-title {
    font-family: var(--mono, "IBM Plex Mono", monospace);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #77777e;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.drawer-accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #242429;
    background: none;
    color: inherit;
    font-family: var(--mono, "IBM Plex Mono", monospace);
    font-size: 11px;
    letter-spacing: 0.06em;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.drawer-accordion-btn svg {
    transition: transform 0.25s ease;
}

.drawer-accordion-btn[aria-expanded="false"] svg {
    transform: rotate(-90deg);
}

.drawer-accordion-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    transition: max-height 0.3s ease;
}

.drawer-accordion-panel:not(.is-open) {
    display: none;
}

.drawer-card {
    display: grid;
    grid-template-columns: 36px 1fr 24px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #17171c;
    border: 1px solid #282830;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    min-height: 52px;
}

.drawer-card:active {
    background: #202028;
}

.drawer-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
}

.drawer-card-info strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.drawer-card-info small {
    font-size: 11px;
    color: #99999f;
}

.drawer-card-arrow {
    font-family: var(--mono, monospace);
    color: #777;
    text-align: right;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
}

.drawer-link {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #202024;
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
}

.drawer-link small {
    font-family: var(--mono, monospace);
    font-size: 10px;
    color: #777;
}

.drawer-footer {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    background: #ffffff;
    color: #0a0a0a;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.drawer-meta-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono, monospace);
    font-size: 10px;
    color: #777;
}

.drawer-meta-row a {
    color: #aaa;
    text-decoration: none;
}

/* ==========================================================================
   RICH FOOTER STYLES
   ========================================================================== */
.wyn-footer {
    background: #0c0d10;
    color: #f1f1ee;
    padding: clamp(64px, 8vw, 110px) clamp(16px, 3.5vw, 48px) 32px;
    border-top: 1px solid #222226;
    position: relative;
    z-index: 10;
}

.wyn-footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 6vw, 84px);
}

.wyn-footer-top {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 40px;
    align-items: start;
    padding-bottom: clamp(36px, 5vw, 64px);
    border-bottom: 1px solid #242429;
}

.wyn-footer .footer-logo,
.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    filter: none !important;
    overflow: visible;
    height: auto;
}

.wyn-footer .footer-logo img,
.footer-logo img {
    height: 42px;
    width: auto;
    filter: none !important;
}

.footer-tagline {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
    font-weight: 400;
    color: #e5e5e0;
}

.footer-tagline em {
    font-family: var(--serif, "Instrument Serif", Georgia, serif);
    font-weight: 400;
    color: #b0b0a8;
}

.footer-statement-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 58ch;
}

.footer-statement-block p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #a4a49c;
}

.footer-direct-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.footer-direct-mail {
    font-family: var(--mono, monospace);
    font-size: 15px;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 6px;
    font-weight: 500;
}

.footer-direct-wa {
    font-family: var(--mono, monospace);
    font-size: 14px;
    color: #e5e5e0;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.footer-direct-wa:hover {
    color: #25d366;
}

.footer-direct-wa small {
    font-size: 11px;
    color: #888890;
    font-weight: 400;
}

.wa-status-dot {
    width: 7px;
    height: 7px;
    background: #25d366;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.6);
    flex-shrink: 0;
}

.footer-highlight-link {
    color: #f0f0eb !important;
    font-weight: 500 !important;
}

.footer-highlight-link:hover {
    color: #25d366 !important;
}

/* Footer Sitemaps Grid */
.wyn-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(24px, 3.5vw, 48px);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col-title {
    font-family: var(--mono, monospace);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #88888f;
    text-transform: uppercase;
}

.footer-col-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-nav a {
    font-size: 14px;
    color: #c9c9c2;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.footer-col-nav a small {
    font-family: var(--mono, monospace);
    font-size: 10px;
    color: #6a6a72;
}

.footer-col-nav a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.footer-meta-pill {
    display: inline-block;
    margin-top: 8px;
    font-family: var(--mono, monospace);
    font-size: 9px;
    letter-spacing: 0.06em;
    padding: 4px 8px;
    border: 1px solid #2e2e36;
    border-radius: 999px;
    color: #888;
    width: fit-content;
}

/* Footer Bottom Bar */
.wyn-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid #202025;
    font-family: var(--mono, monospace);
    font-size: 11px;
    color: #77777e;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-domain {
    letter-spacing: 0.05em;
}

.footer-back-top {
    color: #f1f1ee;
    text-decoration: none;
}

.footer-back-top:hover {
    text-decoration: underline;
}

.wyn-footer-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: none !important;
    display: block;
}

.wyn-footer-seo-bar {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #202025;
}

.wyn-footer-seo-bar p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #82828a;
    max-width: 1100px;
}

.wyn-footer-seo-bar strong {
    color: #c4c4cb;
    font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .wyn-mega-inner {
        grid-template-columns: repeat(2, 1fr);
    }
    .wyn-mega-col:nth-child(3) {
        grid-column: 1 / -1;
    }
    .wyn-mega-col:nth-child(3) .wyn-mega-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .wyn-footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .wyn-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    :root {
        --wyn-nav-h: 70px;
    }
    .wyn-logo-img {
        height: 38px !important;
    }
    .wyn-navbar.scrolled .wyn-logo-img {
        height: 34px !important;
    }
    .wyn-desktop-nav,
    .wyn-nav-cta {
        display: none !important;
    }
    .wyn-mobile-toggle {
        display: flex !important;
    }
    .wyn-mega-menu {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .wyn-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .wyn-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wyn-mobile-drawer[aria-hidden="false"],
    body.wyn-drawer-open .wyn-mobile-drawer {
        animation: none;
    }
    .wyn-mobile-toggle .toggle-bar,
    .drawer-accordion-btn svg {
        transition: none;
    }
}
