* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #111; }
body { margin: 0; background: #111; color: #111; font-family: Arial, Helvetica, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; left: 12px; top: 12px; z-index: 1000; transform: translateY(-160%); background: #111; color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; pointer-events: none; padding: 12px 18px; }
.nav-shell { width: min(1200px, calc(100% - 20px)); margin: 0 auto; min-height: 54px; display: flex; align-items: center; gap: 18px; padding: 8px 10px 8px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(15,15,15,.78); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0,0,0,.22); pointer-events: auto; opacity: .22; transition: opacity .25s ease, transform .25s ease; }
.site-header:hover .nav-shell, .site-header:focus-within .nav-shell { opacity: 1; }
.brand-mark { color: #fff; text-decoration: none; font-size: 11px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; }
.nav-links a { color: #fff; text-decoration: none; text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .07em; padding: 10px 9px; border-radius: 8px; }
.nav-links a:hover, .nav-links a:focus-visible { background: rgba(255,255,255,.1); outline: none; }
.quote-button, .floating-quote, .contact-quote-trigger { border: 0; background: #d8a82b; color: #111; font-weight: 800; cursor: pointer; border-radius: 9px; }
.quote-button { padding: 11px 15px; font-size: 11px; white-space: nowrap; }
.quote-button:hover, .floating-quote:hover, .contact-quote-trigger:hover { filter: brightness(1.08); }

.document { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 18px 0; }
.page { position: relative; width: min(100%, 1200px); line-height: 0; background: #fff; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.28); scroll-margin-top: 86px; }
.page > img { display: block; width: 100%; height: auto; filter: contrast(1.045) saturate(1.08) brightness(1.012); }

.hero-page, .logo-page { perspective: 1400px; }
.eagle-3d { position: absolute; pointer-events: none; transform-style: preserve-3d; transform-origin: 50% 50%; backface-visibility: visible; will-change: transform; z-index: 4; }
.eagle-3d img { display: block; width: 100%; height: 100%; object-fit: contain; filter: contrast(1.08) saturate(1.04); }
.cover-eagle { left: 50%; top: 67%; width: 18%; height: 22%; }
.lower-eagle { left: 60%; top: 75.6%; width: 15.6%; height: 20%; }

.page-hotspot { position: absolute; z-index: 10; display: block; }
.hero-about { left: 5%; top: 5%; width: 18%; height: 8%; }
.hero-work { left: 23%; top: 5%; width: 18%; height: 8%; }
.hero-services { left: 41%; top: 5%; width: 18%; height: 8%; }
.hero-contact { left: 59%; top: 5%; width: 18%; height: 8%; }

.hotspot { position: absolute; display: block; z-index: 10; left: 6%; width: 44%; height: 4%; border-radius: 8px; }
.phone { top: 39%; }
.mobile { top: 43%; }
.email { top: 47%; }
.hotspot:focus-visible, .page-hotspot:focus-visible { outline: 3px solid #d8a82b; outline-offset: 3px; }
.contact-quote-trigger { position: absolute; left: 5%; top: 63%; z-index: 11; padding: 12px 18px; }

.floating-actions { position: fixed; z-index: 45; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.floating-actions a, .floating-actions button { min-height: 44px; padding: 11px 14px; border-radius: 999px; text-decoration: none; font-size: 12px; font-weight: 800; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.floating-quote { background: #d8a82b; color: #111; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; overflow: hidden; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.modal-card { position: relative; width: min(680px, 100%); max-height: min(90dvh, 820px); overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: #fff; border-radius: 18px; padding: 30px; box-shadow: 0 25px 80px rgba(0,0,0,.4); line-height: 1.35; }
.modal-close { position: absolute; top: 12px; right: 14px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #eee; font-size: 28px; cursor: pointer; }
.eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.modal-card h2 { margin: 0 0 8px; font-size: 32px; }
.modal-intro { margin: 0 0 20px; color: #555; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 13px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; border: 1px solid #d7d7d7; border-radius: 9px; padding: 12px; outline: none; background: #fff; color: #111; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(216,168,43,.25); }
.form-error { margin: 12px 0 0; color: #a40000; font-weight: 700; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.primary-action, .secondary-action { min-height: 44px; padding: 11px 16px; border-radius: 9px; font-weight: 800; cursor: pointer; }
.primary-action { border: 0; background: #111; color: #fff; }
.secondary-action { border: 1px solid #111; background: #fff; color: #111; }

@media (max-width: 760px) {
  .site-header { padding: 8px; }
  .nav-shell { width: calc(100% - 4px); padding: 7px; gap: 6px; opacity: .9; }
  .brand-mark { display: none; }
  .nav-links { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 10px; padding: 9px 7px; flex: 0 0 auto; }
  .quote-button { padding: 10px 9px; font-size: 10px; }
  .document { gap: 8px; padding: 8px 0; }
  .page { width: 100%; box-shadow: none; }
  .cover-eagle { left: 50%; top: 67%; width: 18%; height: 22%; }
  .lower-eagle { left: 60%; top: 75.6%; width: 15.6%; height: 20%; }
  .floating-actions { right: 10px; bottom: 10px; }
  .floating-actions a, .floating-actions button { font-size: 11px; min-height: 42px; padding: 10px 12px; }
  .contact-quote-trigger { top: 63%; padding: 10px 13px; font-size: 11px; }
  .modal { padding: 10px; place-items: start center; overflow: hidden; }
  .modal-card { width: 100%; max-height: calc(var(--visual-viewport-height, 100dvh) - 20px); padding: 24px 18px 20px; border-radius: 14px; margin: auto 0; }
  .modal-card h2 { font-size: 27px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eagle-3d { transform: translate3d(-50%, -50%, 0) rotateY(0deg) !important; }
  .nav-shell { transition: none; }
}


/* Mobile quote form: keep focused fields above the on-screen keyboard */
@media (max-width: 700px) {
  .modal { overflow-y: auto; -webkit-overflow-scrolling: touch; align-items: flex-start; padding: max(18px, env(safe-area-inset-top)) 12px max(24px, env(safe-area-inset-bottom)); height: var(--visual-viewport-height, 100dvh); }
  .modal-card { width: min(100%, 560px); max-height: none; margin: 8px auto 24px; }
  .modal-card input, .modal-card select, .modal-card textarea { font-size: 16px; }
  .modal-card textarea { min-height: 130px; }
}
