/* Fovoya navigation — local implementation of the selected three-column design. */
:root { --nav-blue:#afd3e3; --nav-ink:#202322; --nav-paper:#fafaf7; --nav-line:#e5e7e8; }
body { padding-top:108px; }
.site-header { height:108px; padding:24px clamp(24px,4vw,68px); background:var(--nav-paper); color:var(--nav-ink); border-bottom:1px solid var(--nav-line); gap:40px; }
.site-header.is-scrolled { height:88px; background:var(--nav-paper); border-bottom-color:var(--nav-line); }
.site-header.has-mega { background:var(--nav-paper); border-bottom-color:var(--nav-line); }
.wordmark { flex-shrink:0; font-size:32px; font-weight:750; letter-spacing:.065em; line-height:1.2; }
.wordmark span { color:#7ebdd6; }
.header-tools { gap:30px; flex:1; justify-content:flex-end; }
.header-nav { gap:clamp(24px,2.7vw,46px); margin:0 auto; }
.header-nav > a,.header-nav .mega-toggle { font-size:15px; font-weight:600; padding:12px 0; line-height:1.5; }
.header-nav > a:hover { text-decoration:none; color:#416b7c; }
.header-nav .mega-toggle { display:flex; align-items:center; gap:9px; }
.mega-toggle > .icon { font-size:14px; transition:transform .18s ease; }
.mega-toggle[aria-expanded=true] > .icon { transform:rotate(180deg); }
.mega-toggle::after { bottom:2px; height:3px; border-radius:3px; background:#87c5dd; width:calc(100% - 22px); }
.languages { font-size:13px; gap:6px; color:#676d78; white-space:nowrap; }
.languages a[aria-current=true] { color:var(--nav-ink); font-weight:600; }
.header-contact { display:grid; place-items:center; position:relative; isolation:isolate; width:142px; height:52px; padding:10px 14px 3px; flex-shrink:0; text-decoration:none; font-size:14px; font-weight:700; transition:transform .18s ease; }
.contact-art { position:absolute; inset:0; width:100%; height:100%; z-index:-1; object-fit:fill; }
.header-contact:hover { transform:translateY(-2px); }
.header-contact:active { transform:translateY(1px); }
.site-header .menu-trigger { display:none; }
.mega-menu { top:calc(100% - 1px); right:clamp(24px,4vw,68px); padding-top:10px; width:min(1100px,calc(100vw - 8vw)); animation:mega-reveal .16s ease both; }
.mega-surface { border:1px solid #e0e5e8; border-radius:14px; background:#fff; padding:32px; box-shadow:0 12px 32px rgb(32 35 34 / .07); max-height:calc(100dvh - 155px); }
.services-grid { grid-template-columns:1.12fr 1fr 1fr; gap:0; }
.mega-column { min-width:0; padding:0 26px; border-left:1px solid #eceeef; }
.mega-column:first-child { border-left:0; padding-left:0; }
.mega-column:last-child { padding-right:0; }
.mega-column h2 { display:flex; flex-direction:column; gap:6px; text-transform:none; font-size:21px; font-weight:700; letter-spacing:-.025em; color:var(--nav-ink); line-height:1.4; margin:0 0 20px 8px; padding-top:24px; position:relative; }
.mega-column h2::before { content:''; position:absolute; top:0; left:0; width:30px; height:3px; background:#8ac4db; border-radius:2px; }
.group-subtitle { display:block; color:#6a7180; font-size:13px; font-weight:400; line-height:1.5; letter-spacing:0; }
.header-nav .nav-card { position:relative; display:flex; flex-direction:row; align-items:center; gap:10px; padding:12px 28px 12px 10px; margin:2px 0; border-radius:7px; min-height:46px; }
.nav-card .nav-label { font-size:15px; font-weight:500; line-height:1.55; letter-spacing:-.02em; }
.header-nav .nav-card:hover,.header-nav .nav-card:focus-visible { background:#edf6fa; color:var(--nav-ink); text-decoration:none; }
.nav-arrow { position:absolute; right:8px; top:50%; margin-top:-9px; font-size:18px; color:#5389a0; opacity:0; transform:translateX(-3px); transition:opacity .16s ease,transform .16s ease; }
.nav-card:hover .nav-arrow,.nav-card:focus-visible .nav-arrow { opacity:1; transform:translateX(0); }
.slot-templates,.slot-about { position:relative; }
.slot-templates .mega-menu,.slot-about .mega-menu { width:285px; right:auto; left:-20px; top:calc(100% + 13px); }
.slot-templates .mega-surface,.slot-about .mega-surface { padding:14px; }
html[lang^=zh] .mega-column h2 { font-size:23px; letter-spacing:0; }
html[lang^=zh] .nav-card .nav-label { font-size:16px; letter-spacing:0; }
.drawer { clip-path:none; width:min(440px,100%); padding:24px; color:var(--nav-ink); }
.drawer::backdrop { background:rgb(32 35 34 / .25); }
.drawer-top { justify-content:space-between; }
.drawer-top p { position:static; width:auto; height:auto; clip-path:none; overflow:visible; font-size:12px; letter-spacing:.06em; }
.drawer nav { display:block; margin:14px 0; padding:0; flex:1; }
.drawer .mobile-primary { display:block; border:0; padding:0; margin:0; }
.drawer .mobile-primary > a,.mobile-category > summary { font-size:22px; font-weight:600; letter-spacing:-.02em; padding:16px 0; border-bottom:1px solid #edf0f1; }
.mobile-category > summary { display:flex; justify-content:space-between; align-items:center; list-style:none; }
.mobile-category summary::before,.mobile-category summary::after { content:none; }
.mobile-category summary .icon,.service-group summary .icon { font-size:16px; transform:none; transition:transform .15s; }
.mobile-category[open] > summary .icon,.service-group[open] > summary .icon { transform:rotate(180deg); }
.mobile-submenu { padding:12px 0; }
.mobile-submenu .services-grid { display:block; }
.service-group { padding:0 12px; margin-bottom:8px; background:#f6f9fa; border-radius:9px; }
.service-group > summary { display:block; position:relative; list-style:none; padding:14px 25px 14px 0; cursor:pointer; font-size:16px; font-weight:600; }
.service-group > summary::-webkit-details-marker { display:none; }
.service-group > summary .icon { position:absolute; right:0; top:16px; }
.service-group .group-subtitle { font-size:11px; margin-top:3px; }
.service-group .service-links { padding-bottom:8px; }
.drawer .mobile-submenu .nav-card { position:relative; display:block; padding:12px 24px 12px 9px; margin:0; border-radius:6px; background:transparent; text-align:left; }
.drawer .mobile-submenu .nav-label { font-size:14px; letter-spacing:0; }
.drawer .mobile-submenu .nav-card:hover { background:#eaf3f7; }
.drawer .mobile-submenu .nav-arrow { font-size:17px; transform:none; }
.drawer nav a:hover { transform:none; opacity:1; }
.drawer .mobile-contact { color:#345b6d; }
.notice { border-radius:14px; color:var(--nav-ink); box-shadow:0 20px 60px rgb(32 35 34 / .12); }
.notice h2 { font-size:26px; line-height:1.4; font-weight:600; }
.service-group summary:focus-visible { outline:2px solid #467eaa; outline-offset:3px; }
@media(min-width:1700px) { .header-nav { gap:46px; } }
@media(max-width:1100px) {
 body { padding-top:84px; }
 .site-header,.site-header.is-scrolled { height:84px; padding:16px 24px; gap:16px; }
 .wordmark { font-size:26px; }
 .header-tools { gap:18px; flex:0 1 auto; }
 .header-nav { display:none; }
 .mega-menu { display:none!important; }
 .site-header .menu-trigger { display:grid; padding:0; width:42px; min-height:44px; border:0; }
 .menu-trigger::before { content:none; }
 .site-header .menu-trigger .icon { font-size:27px; transform:none; -webkit-text-stroke:0; }
 .header-contact { width:126px; height:47px; font-size:13px; }
 .drawer-top { position:sticky; top:0; z-index:2; background:#fff; padding-bottom:8px; }
 .drawer { overflow-y:auto; }
}
@media(max-width:560px) {
 body { padding-top:76px; }
 .site-header,.site-header.is-scrolled { height:76px; padding:14px 20px; }
 .wordmark { font-size:23px; }
 .header-tools { gap:12px; }
 .header-contact { display:none; }
 .languages { font-size:12px; }
 .drawer { padding:18px 24px; }
 html[lang^=zh] .drawer .nav-card .nav-label { font-size:14px; }
}
@media(prefers-reduced-motion:reduce) {
 .header-contact,.mega-toggle > .icon,.nav-arrow,.service-group summary .icon { transition:none; }
}
/* Keep the artwork's transparent margins from shrinking the visible contact button. */
.contact-art { inset:-20%; width:140%; height:140%; max-width:none; }

/* Shared dropdown styling: the same surface, heading and item treatment. */
.site-header .mega-surface{padding:24px;border:1px solid #e0e5e8;border-radius:14px;background:#fff;box-shadow:0 12px 32px rgb(32 35 34 / .07)}
.site-header .slot-templates,.site-header .slot-about{position:static}
.site-header .slot-templates .mega-menu,.site-header .slot-about .mega-menu{width:320px;top:calc(100% - 1px);left:auto;right:auto;margin-left:-24px;padding-top:10px}
.site-header .mega-column h2,.site-header .dropdown-heading{position:relative;display:flex;flex-direction:column;gap:6px;margin:0 0 16px 10px;padding-top:19px;font-size:19px;font-weight:600;line-height:1.45;letter-spacing:0;text-transform:none;color:var(--nav-ink)}
.site-header .mega-column h2::before,.site-header .dropdown-heading::before{content:'';position:absolute;top:0;left:0;width:26px;height:3px;border-radius:2px;background:#8ac4db}
.site-header .nav-card{min-height:48px;padding:12px 30px 12px 10px;margin:2px 0;border-radius:8px;transition:background .16s ease,color .16s ease}
.site-header .nav-card .nav-label{font-size:15px;line-height:1.6;font-weight:500;letter-spacing:0}
.site-header .nav-card:hover,.site-header .nav-card:focus-visible{background:#edf6fa;color:var(--nav-ink);text-decoration:none}
.site-header .nav-card:focus-visible{outline:2px solid #87b6cb;outline-offset:1px}
.drawer .service-group,.drawer .mobile-submenu .simple-menu{border:1px solid #e0e5e8;border-radius:10px;background:#f8fafb;padding:8px 12px}
.drawer .service-group{margin-bottom:10px}
.drawer .mobile-submenu .nav-card{min-height:46px;border-radius:8px;padding:12px 26px 12px 10px}
.drawer .mobile-submenu .nav-card:hover,.drawer .mobile-submenu .nav-card:focus-visible{background:#edf6fa;color:var(--nav-ink)}
@media(prefers-reduced-motion:reduce){.site-header .nav-card{transition:none}}

/* Navigation and a quiet editorial card, shared across all dropdowns. */
.site-header .mega-slot{position:static}
.site-header .mega-slot .mega-menu{left:auto;right:clamp(24px,4vw,68px);top:calc(100% - 1px);margin-left:0;width:min(1160px,92vw);padding-top:12px}
.site-header .slot-templates .mega-menu,.site-header .slot-about .mega-menu{width:min(760px,92vw)}
.site-header .mega-surface{padding:28px;border-radius:24px;box-shadow:0 18px 48px rgb(32 35 34 / .09)}
.dropdown-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:28px;align-items:stretch}
.dropdown-links{min-width:0;padding:8px 0}
.site-header .services-grid{grid-template-columns:1.16fr 1fr 1fr}
.site-header .mega-column{padding:0 16px}
.site-header .mega-column:first-child{padding-left:0}
.site-header .mega-column:last-child{padding-right:0}
.site-header .mega-column h2,.site-header .dropdown-heading{font-size:17px;margin-bottom:18px}
.site-header .group-subtitle{font-size:11px}
.site-header .nav-card{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:11px 20px 11px 10px;margin:2px 0;min-height:64px}
.site-header .nav-card .nav-label{font-size:14px;line-height:1.55}
.site-header .nav-card .nav-description,.drawer .nav-card .nav-description{display:block;font-size:12px;line-height:1.7;font-weight:400;letter-spacing:0;color:#727a80}
.site-header .simple-menu .nav-card{padding-top:14px;padding-bottom:14px}
.site-header .simple-menu .nav-label{font-size:16px}
.dropdown-feature{display:flex;flex-direction:column;min-width:0;padding:25px 22px 20px;border-radius:18px;background:#edf5f8;color:#202322}
.feature-eyebrow{font-size:9px;line-height:1.6;font-weight:600;letter-spacing:.12em;color:#547887}
.dropdown-feature h3{font-size:21px;line-height:1.5;letter-spacing:-.02em;font-weight:600;margin:12px 0 10px}
.dropdown-feature p{font-size:13px;line-height:1.85;color:#626d73;margin:0}
.feature-mascot{display:flex;align-items:flex-end;justify-content:center;flex:1;min-height:145px;padding-top:18px;border-bottom:1px solid #c9dce5;margin-bottom:16px}
.feature-mascot img{display:block;object-fit:contain;width:105px;height:132px;margin-bottom:-17px;pointer-events:none}
.header-nav a.feature-link,.drawer a.feature-link{display:flex;align-items:center;justify-content:space-between;font-size:13px;line-height:1.5;font-weight:600;letter-spacing:0;text-decoration:none;padding:12px 0 0;min-height:42px;white-space:normal;border:0;color:#335f72}
.feature-link::after{content:'↗';font-size:18px;margin-left:12px}
.header-nav a.feature-link:hover,.drawer a.feature-link:hover{color:#202322;text-decoration:underline;text-underline-offset:4px;transform:none}
.template-illustration{margin-top:24px;background:#fff;border:1px solid #d9e5ea;border-radius:10px;overflow:hidden;box-shadow:0 6px 15px #365d7006}
.mini-browser{display:flex;gap:4px;padding:10px;border-bottom:1px solid #e9eef1}.mini-browser span{width:3px;height:3px;border-radius:50%;background:#b7c7ce}
.mini-layout{display:flex;gap:12px;padding:20px 14px}.mini-copy{flex:1}.mini-copy b{font-size:21px;line-height:1.05;letter-spacing:-1px;font-weight:500}.mini-copy i{display:block;height:2px;width:85%;background:#e2e8eb;margin-top:7px}.mini-copy i+i{width:65%;margin-top:4px}.mini-copy em{display:block;width:36px;height:10px;border-radius:6px;background:#afd3e3;margin-top:12px}.mini-blue{width:68px;background:#afd3e3;border-radius:38px 38px 8px 8px;display:grid;place-items:center}.mini-blue span{width:33px;height:33px;border:7px solid #f5eddf;border-radius:50%}
.feature-caption{font-size:10px;color:#7d8b92;display:block;margin:8px 0 4px}
@media(min-width:1101px) and (max-width:1250px){.dropdown-layout{grid-template-columns:minmax(0,1fr) 230px;gap:20px}.site-header .mega-surface{padding:24px}.site-header .mega-column{padding:0 10px}.dropdown-feature{padding:22px 18px}.site-header .nav-card .nav-label{font-size:13px}}
@media(max-width:1100px){.dropdown-layout{display:block}.dropdown-links{padding:0}.dropdown-feature{margin-top:14px;padding:20px}.dropdown-feature h3{font-size:19px}.feature-mascot{display:none}.template-illustration,.feature-caption{display:none}.dropdown-feature p{font-size:12px}.drawer .mobile-submenu .nav-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.drawer .mobile-submenu .nav-label{font-size:14px}.drawer .mobile-submenu .nav-description{font-size:12px}}

/* Responsive website photo: preserve both devices without cropping. */
.feature-photo{margin-top:auto;padding-top:24px;margin-bottom:8px}
.feature-photo img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;border-radius:12px}
@media(max-width:1100px){.feature-photo{padding-top:16px;max-width:300px}}

/* Full-body greeting in About, including the mobile accordion. */
.feature-about .feature-mascot{display:flex;border-bottom:0;justify-content:center;margin-bottom:2px;padding-top:14px;min-height:0}
.feature-about .feature-mascot img{width:200px;max-width:100%;height:auto;margin:0;object-fit:contain}
@media(max-width:1100px){
 .feature-about .feature-mascot{padding-top:10px;justify-content:flex-end}
 .feature-about .feature-mascot img{width:140px}
}

/* Shared CONNECT identity across the site header. */
.site-header .wordmark{width:100px;display:flex;align-items:center}
.site-header .wordmark .nav-wordmark{display:block;width:100%;height:auto}

/* Simplified Services dropdown: one flat list, no group headings or promo card. */
.site-header .service-menu{display:flex;flex-direction:column}
.site-header .service-menu-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 26px}
.site-header .service-menu .nav-card{min-height:62px}
.site-header .service-menu-cta{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:flex-end;gap:8px 14px;margin:20px 0 0;padding-top:14px;border-top:1px solid #eceeef;font-size:12px;line-height:1.6;color:#727a80}
.site-header .service-menu-cta-link{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:#335f72;text-decoration:none;min-height:24px}
.site-header .service-menu-cta-link:hover,.site-header .service-menu-cta-link:focus-visible{color:#202322;text-decoration:underline;text-underline-offset:4px}
.drawer .service-menu-list{grid-template-columns:1fr;gap:0}
.drawer .service-menu .nav-card{min-height:46px}
@media(min-width:1101px) and (max-width:1250px){.site-header .service-menu-list{gap:2px 14px}}
