/* Small layout refinements; preserve the existing colors and photo grids. */
html { scroll-padding-top: 100px; }
img { max-width: 100%; }
#header nav a { white-space: nowrap; }
#menu-btn { min-width: 24px; }
#menu-btn:focus-visible, a:focus-visible, button:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 5px;
}
#mobile-menu { overflow-y: auto; padding: 88px 24px 96px; }
body.menu-open { overflow: hidden !important; }
html.dialog-open { overflow: hidden !important; }
#lightbox { z-index: 150 !important; }
#lightbox-caption { letter-spacing: .04em; line-height: 1.8; }
section[id], .case-card[id], #philosophy { scroll-margin-top: 100px; }
.form-status { padding: 16px; margin-bottom: 24px; background: #f4f6fa; border-left: 2px solid #0066cc; font-size: 13px; line-height: 1.9; letter-spacing: .03em; color: #475569; }
.form-status a { color: #0066cc; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
form button:disabled { opacity: .55; cursor: not-allowed; }
@media (min-width: 1024px) and (max-width: 1279px) {
    #header { padding-left: 24px; padding-right: 24px; }
    #header nav { gap: 20px; }
    #header nav a { margin-left: 0 !important; letter-spacing: .1em; }
}
@media (max-width: 767px) {
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important; }
    #header + #mobile-menu + section { min-height: 320px; }
    #header + #mobile-menu + section > div.relative { padding-left: 24px; padding-right: 24px; }
    h1 { font-size: clamp(28px, 8vw, 40px) !important; letter-spacing: .1em !important; overflow-wrap: anywhere; }
    h2, h3 { overflow-wrap: anywhere; }
    #hero-section { min-height: 420px; }
    #mobile-menu { gap: 22px; }
    #mobile-menu > * { margin-top: 0 !important; }
    #mobile-menu > div { padding-top: 12px; }
    #philosophy li { line-height: 2; letter-spacing: .03em; }
    input, select, textarea { font-size: 16px !important; }
    #company-overview { margin-bottom: 64px; }
    .lg\:hidden.fixed.bottom-0 { padding-bottom: env(safe-area-inset-bottom); }
    .lg\:hidden.fixed.bottom-0 a { min-height: 58px; }
}
@media (max-height: 620px) {
    #mobile-menu { justify-content: flex-start; gap: 16px; padding-top: 90px; }
    #mobile-menu > * { margin-top: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Contact confirmation uses the existing navy/white visual language. */
#confirm-modal { width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 1px solid #e2e8f0; color: #0a1128; background: #fff; box-shadow: 0 24px 64px #0a112833; overflow-y: auto; }
#confirm-modal:not([open]) { display: none; }
#confirm-modal::backdrop { background: #0a112899; backdrop-filter: blur(3px); }
.confirm-content { padding: 32px; display: grid; gap: 24px; }
.confirm-details > div { padding: 12px 0; border-bottom: 1px solid #e2e8f0; }
.confirm-details dt { font-size: 11px; font-weight: 700; color: #64748b; margin-bottom: 6px; }
.confirm-details dd { margin: 0; font-size: 14px; line-height: 1.8; letter-spacing: .03em; white-space: pre-wrap; overflow-wrap: anywhere; }
#confirm-error { color: #991b1b; border-color: #b91c1c; margin-bottom: 0; }
#confirm-modal button:disabled { opacity: .55; cursor: wait; }
#contact-status[hidden], #confirm-error[hidden] { display: none; }
@media (max-width: 480px) { .confirm-content { padding: 24px 20px; } }
