/* TexVastra website — Sign in, the demo contact choices (call, email, Instagram), the Book a demo dialog and the footer
   contacts. Loads last. Colours are docs/brand/guidelines.md §4 values; no glass on the dialog (it sits over any section). */

/* Header: Sign in sits apart from the section links, before Book a demo */
.nav .nav-signin { position: relative; margin-left: 13px; }
.nav .nav-signin::before { content: ""; position: absolute; left: -9px; top: 50%; width: 1px; height: 20px; transform: translateY(-50%);
  background: currentColor; opacity: .28; }
.mobile-menu .menu-signin { justify-content: space-between; gap: 16px; }
.mobile-menu .menu-sub { font-size: .875rem; font-weight: 400; color: var(--cotton); opacity: .8; }

/* Contact choices: one solid, one quiet, full width */
.contact-actions { display: grid; gap: 12px; }
.contact-actions .btn { text-align: center; line-height: 1.25; padding-block: 12px; }
.nw { white-space: nowrap; }
.contact-note { margin-top: 16px; font-size: .9375rem; }
.contact-note a { font-weight: 600; text-underline-offset: 3px; }
.on-dark .contact-note { color: var(--cotton); }
.on-dark .contact-note a { color: var(--white); }

/* The Book a demo dialog: a White sheet on a dimmed Midnight backdrop */
.contact-dialog { width: min(448px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px 24px 22px; border: 0;
  border-radius: var(--radius-lg); background: var(--white); color: var(--midnight); box-shadow: 0 40px 80px -32px rgba(9, 17, 38, .65); }
.contact-dialog::backdrop { background: rgba(9, 17, 38, .64); }
.contact-dialog[open] { animation: sheet-in 220ms var(--ease); }
.contact-dialog[open]::backdrop { animation: fade-in 220ms var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.cd-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cd-head h2 { font-size: 1.75rem; line-height: 1.15; color: var(--indigo); }
.cd-close { flex: none; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px; background: transparent; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--indigo) 35%, transparent); color: var(--indigo); font-weight: 500;
  transition: border-color var(--t) var(--ease); }
.cd-close:hover { border-color: var(--indigo); }
#demo-dialog-text { margin-top: 10px; font-size: 1rem; color: var(--slate); }
.contact-dialog .contact-actions { margin-top: 22px; }
.contact-dialog .contact-note { color: var(--slate); }
.contact-dialog .contact-note a { color: var(--indigo); }
html:has(.contact-dialog[open]) { overflow: hidden; }

@media (max-width: 640px) {
  /* A bottom sheet on phones: the call button lands under the thumb */
  .contact-dialog { width: 100%; max-width: 100%; margin: auto 0 0; max-height: calc(100dvh - 24px); border-radius: 16px 16px 0 0;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
  .contact-dialog[open] { animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Footer: the lockup, the page links, then the contacts */
.footer-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .8fr); }
.footer-contact { display: grid; align-content: start; row-gap: 4px; }
.fc-k { display: flex; align-items: center; min-height: 44px; font-size: .8125rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--white); }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; justify-self: start; text-decoration: none;
  color: var(--cotton); font-size: .9375rem;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat; transition: background-size var(--t) var(--ease); }
.footer-contact a:hover { background-size: 100% 1px; }
.footer-contact .ig { flex: none; }
@media (max-width: 1080px) { .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-lockup { grid-column: 1 / -1; } }
@media (max-width: 760px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }
