/* PHP integration and accessibility; original theme lives in style.css. */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; min-width: 0; }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #0258ce; outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 10000; padding: 12px 20px; color: #fff; background: #0f2142; }
.skip-link:focus { top: 12px; }
#logo { flex-shrink: 0; }
#logo img { width: auto; object-fit: contain; }
#navigation-bar .container { gap: 24px; }
.header-action-zone { min-width: auto; flex-shrink: 0; }
.main-menu-list { gap: clamp(16px, 2.5vw, 38px); }
.menu-item a { white-space: nowrap; font-size: 18px; }
.menu-item.active a { color: var(--brand-accent); }
.mobile-menu-btn { display: none; border: 1px solid #dde3f0; border-radius: 9px; width: 40px; height: 40px; background: white; color: var(--brand-primary); font-size: 24px; line-height: 1; }
.section-headline h1 { font-size: 44px; font-weight: 800; color: var(--brand-primary); line-height: 1.3; margin-bottom: 20px; }
.portfolio-carousel { --slide-height: 600px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.portfolio-carousel::-webkit-scrollbar { display: none; }
.portfolio-carousel .swiper-wrapper { display: flex; gap: 24px; padding: 10px 24px 24px; }
.portfolio-carousel .pf-slide { margin: 0; flex: 0 0 calc((100vw - 96px) / 3); height: var(--slide-height); scroll-snap-align: center; }
.pf-slide:hover span > img { transform: translateY(min(0px, calc(-100% + var(--slide-height)))); }
.portfolio-controls { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 6px 20px 16px; }
.portfolio-controls button { border: 1px solid #dce3ef; color: var(--brand-primary); background: #fff; border-radius: 50%; width: 38px; height: 38px; font-size: 20px; }
.portfolio-controls button:hover { background: #eef3ff; }
.portfolio-controls .portfolio-pause { border-radius: 20px; width: auto; padding: 0 16px; font-size: 13px; }
.portfolio-count { min-width: 48px; text-align: center; font-size: 14px; color: #5c6a80; }
.portfolio-page .portfolio-slider-wrap { margin-top: 0; }
.breadcrumb { font-size: 13px; color: #65748a; text-decoration: none; }
.labdive-sub-header__eyebrow { margin-top: 24px; }
.labdive-sub-header h1 { font-weight: 800; }
.gnb-col { cursor: default; }
.gnb-topbar-cta { text-decoration: none; }
.gnb-topbar { overflow: hidden; }
.gnb-topbar-logo { flex-shrink: 0; }
.gnb-topbar-nav { gap: clamp(12px, 2vw, 28px); }
.cms-card { min-width: 0; }
.cms-img video { background: #edf0f4; }
.sol-grid li { min-width: 0; }
.faq-sticky p { font-size: 18px; color: #667085; }
#global-footer a { text-decoration: none; }
#global-footer a:hover { text-decoration: underline; }
#global-footer p { margin-top: 14px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 70px; align-items: start; }
.contact-intro h2 { color: var(--brand-primary); font-size: 36px; line-height: 1.45; margin: 16px 0 24px; }
.contact-intro p { color: #667085; margin-bottom: 32px; }
.contact-intro > a { display: block; font-size: 20px; color: var(--brand-accent); margin-bottom: 8px; text-decoration: none; overflow-wrap: anywhere; }
.contact-card { border: 1px solid #dde3f0; border-radius: 20px; box-shadow: 0 12px 48px #0f21420a; overflow: hidden; }
.cf-row { min-width: 0; }
.cf-row input[type="tel"] { width: 100%; height: 48px; padding: 8px 14px; border: 1px solid #dde3f0; border-radius: 8px; font-size: 16px; color: var(--font-default); background: #fff; }
.cf-row input:focus-visible, .cf-row textarea:focus-visible, .cf-row select:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; }
.privacy-details { font-size: 13px; margin-top: 12px; color: #667085; }
.privacy-details summary { cursor: pointer; width: fit-content; }
.privacy-details p { margin-top: 12px; padding: 14px; background: #f3f5f8; border-radius: 8px; }
.cf-agree-row label { align-items: flex-start; font-size: 15px; }
.cf-agree-row input { margin-top: 4px; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-message { margin: 24px 24px 0; padding: 16px; color: #9d2525; background: #fff1f1; border-radius: 10px; font-size: 16px; overflow-wrap: anywhere; }
.form-message.success { color: #145839; background: #eaf8ef; }
.cf-submit-btn:disabled { opacity: .6; cursor: wait; }
dialog#quick-modal-overlay { width: 100%; height: 100%; max-width: none; max-height: none; border: 0; margin: 0; color: inherit; }
dialog#quick-modal-overlay[open] { display: flex; justify-content: center; align-items: flex-start; }
dialog#quick-modal-overlay::backdrop { background: transparent; }
#quick-modal { flex-shrink: 0; }
#quick-modal .modal-title h2 { font-size: inherit; }
body.modal-open { overflow: hidden; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 100; height: 44px; width: 44px; border: 1px solid #dde3f0; border-radius: 50%; background: #fff; color: var(--brand-primary); box-shadow: 0 4px 20px #0f21421a; }
@media (max-width: 1200px) {
    .menu-item a { font-size: 15px; }
    #navigation-bar .container { gap: 16px; }
    .main-menu-list { gap: 18px; }
    #logo img { height: 32px; }
}
@media (max-width: 1024px) {
    .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
    .desktop-link-group { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 16px 24px 24px; border-bottom: 1px solid #dde3f0; background: #fff; box-shadow: 0 16px 30px #0f214210; }
    .desktop-link-group.is-open { display: block; }
    .main-menu-list { flex-direction: column; gap: 0; }
    .menu-item a { display: block; padding: 12px 4px; font-size: 17px; }
    .section-headline h1 { font-size: 34px; }
    .portfolio-carousel { --slide-height: 440px; }
    .portfolio-carousel .pf-slide { flex-basis: calc((100vw - 72px) / 2); }
    .contact-layout { gap: 28px; grid-template-columns: 1fr; max-width: 800px; }
    .contact-intro h2 { font-size: 30px; }
    .gnb-topbar-nav { display: none; }
    .gnb-topbar { justify-content: space-between; }
    .cms-card { width: 100%; }
}
@media (max-width: 768px) {
    .section-headline h1 { font-size: 24px; }
    .section-headline p { word-break: keep-all; }
    .portfolio-carousel { --slide-height: 400px; }
    .portfolio-carousel .swiper-wrapper { gap: 16px; padding: 8px 8px 24px; }
    .portfolio-carousel .pf-slide { flex-basis: 88%; }
    .portfolio-slider-wrap { padding-bottom: 20px; }
    .labdive-sub-layout { padding-top: 74px; }
    .labdive-sub-header__inner { padding-top: 36px; padding-bottom: 40px; }
    .labdive-sub-header h1 { font-size: 36px; }
    .faq-sticky p { font-size: 16px; }
    .contact-intro h2 { font-size: 26px; }
    .header-action-zone .btn-node { font-size: 12px; padding: 9px 12px; }
    .mobile-menu-btn { width: 34px; height: 34px; font-size: 22px; }
    #navigation-bar .container { gap: 8px; }
    #logo img { height: 29px; }
    .back-to-top { right: 14px; bottom: 14px; }
}
@media (max-width: 480px) {
    .section-headline h1 { font-size: 22px; }
    #logo img { height: 25px; }
    .header-action-zone { gap: 6px; }
    .header-action-zone .btn-node { font-size: 11px; padding: 8px 10px; }
    #navigation-bar .container { padding-inline: 14px; }
    .portfolio-carousel { --slide-height: 340px; }
    .footer-dot { display: none !important; }
    .footer-corporate-meta { gap: 12px; }
    .footer-corporate-meta > span:not(.footer-dot) { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
