/* ==========================================================================
   NXTL MOBILE — REFINED EDITORIAL DESIGN SYSTEM
   Photography-led, restrained palette, readable typography, responsive layouts.
   ========================================================================== */
:root {
  --ink-950: #070d1e;
  --ink-900: #0a1128;
  --ink-800: #121c3b;
  --ink-700: #1b2850;
  
  --brand-blue: #1b3bb6;
  --brand-blue-hover: #142e94;
  --brand-blue-soft: #edf2fe;
  
  --coral-500: #e11d48;
  --coral-600: #be123c;
  --coral-50:  #fff1f2;
  --coral-100: #ffe4e6;

  --text-main:  #1e293b;
  --text-muted: #4b586e;
  --text-light: #64748b;
  
  --bg-white:  #ffffff;
  --bg-warm:   #fbfbfa;
  --bg-subtle: #f4f5f8;
  --bg-dark:   #091024;
  
  --line-subtle: #e2e8f0;
  --line-medium: #cbd5e1;
  --line-dark:   rgba(255, 255, 255, 0.14);
  
  --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --container-max: 1280px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;

  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-white);
}

/* Ensure sticky header does not conceal target anchors */
[id] {
  scroll-margin-top: 96px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Headings & Display Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin-bottom: 12px;
  display: block;
}

.eyebrow-coral {
  color: var(--coral-500);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  line-height: 1.25;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1.5px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--ink-900);
  color: var(--bg-white);
  border-color: var(--ink-900);
}
.btn-primary:hover {
  background-color: var(--ink-800);
  border-color: var(--ink-800);
  box-shadow: 0 4px 14px rgba(10, 17, 40, 0.12);
}
.btn-primary:active {
  box-shadow: none;
}

.btn-coral {
  background-color: var(--coral-500);
  color: var(--bg-white);
  border-color: var(--coral-500);
}
.btn-coral:hover {
  background-color: var(--coral-600);
  border-color: var(--coral-600);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
}
.btn-coral:active {
  box-shadow: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--ink-900);
  border-color: var(--line-medium);
}
.btn-outline:hover {
  background-color: var(--bg-subtle);
  border-color: var(--ink-700);
  box-shadow: 0 2px 8px rgba(10, 17, 40, 0.05);
}
.btn-outline:active {
  box-shadow: none;
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 8px 16px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--line-subtle);
  position: sticky;
  top: 0;
  z-index: 500;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(10, 17, 40, 0.06);
  border-bottom-color: rgba(203, 213, 225, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo-svg {
  height: 36px;
  width: auto;
  color: var(--ink-900);
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-900);
  padding: 6px 0;
  position: relative;
  transition: color 0.15s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-store-link {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--coral-500);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-store-link:hover {
  color: var(--coral-600);
  text-decoration: underline;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: var(--ink-900);
  cursor: pointer;
}

/* ==========================================================================
   SECTION COMMON LAYOUTS
   ========================================================================== */
.page-hero {
  padding: 64px 0 72px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line-subtle);
}

.page-hero-title {
  font-size: 3.25rem;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  margin-bottom: 18px;
  max-width: 820px;
}

.page-hero-lead {
  font-size: 1.1875rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 28px;
}

.editorial-split {
  padding: 88px 0;
  border-bottom: 1px solid var(--line-subtle);
}

.editorial-split:nth-child(even) {
  background: var(--bg-warm);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-grid--reversed {
  grid-template-columns: 1.05fr 0.95fr;
}

.editorial-title {
  font-size: 2.375rem;
  line-height: 1.16;
  color: var(--ink-900);
  margin-bottom: 20px;
}

.editorial-body {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.editorial-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(9, 16, 36, 0.08);
}

.editorial-photo-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.editorial-photo-frame:hover .editorial-photo-img {
  transform: scale(1.02);
}

.editorial-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 13, 30, 0.85) 100%);
  color: #ffffff;
  padding: 24px 20px 14px;
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* ==========================================================================
   SERVICE ROWS (CLEAN EDITORIAL HORIZONTAL BANDS)
   ========================================================================== */
.service-rows {
  border-top: 1px solid var(--line-subtle);
  margin-top: 32px;
}

.service-row {
  display: grid;
  grid-template-columns: 280px 1fr 200px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-subtle);
  align-items: baseline;
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-900);
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-badge {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-align: right;
}

.service-action-link {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-900);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}
.service-action-link:hover {
  color: var(--brand-blue);
}

/* ==========================================================================
   FAQ ACCORDIONS & LISTS
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 36px;
  max-width: 840px;
}

.faq-item {
  border-bottom: 1px solid var(--line-subtle);
  padding-bottom: 20px;
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   CONTACT FORM (COMPACT, ACCESSIBLE, REALISTIC)
   ========================================================================== */
.contact-section {
  padding: 88px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--line-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-title {
  font-size: 2.25rem;
  color: var(--ink-900);
  margin-bottom: 16px;
}

.contact-intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.9375rem;
  color: var(--text-main);
}

.contact-direct a {
  color: var(--brand-blue);
  font-weight: 600;
}

.contact-form {
  background: var(--bg-warm);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  font-size: 0.9375rem;
  color: var(--text-main);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(27, 59, 182, 0.12);
}

.form-input.is-invalid {
  border-color: var(--coral-500);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

textarea.form-input {
  min-height: 110px;
  resize: vertical;
}

.form-privacy-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}
.form-privacy-note a {
  color: var(--brand-blue);
  text-decoration: underline;
}

.form-feedback {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid var(--line-medium);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-900);
}

.form-feedback--success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.form-feedback--preview {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 72px 0 32px;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-logo {
  display: block;
  margin-bottom: 18px;
}

.footer-logo .site-logo-svg {
  color: #ffffff;
  height: 30px;
  width: auto;
  display: block;
}

.footer-about {
  line-height: 1.65;
  color: #94a3b8;
  max-width: 320px;
  margin-bottom: 14px;
  font-size: 0.8125rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8125rem;
}

.footer-links a {
  color: #94a3b8;
}
.footer-links a:hover {
  color: #ffffff;
}

.footer-store-pill {
  color: #fda4af !important;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.75rem;
  color: #64748b;
}

.footer-policies {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-policies a {
  color: #64748b;
}
.footer-policies a:hover {
  color: #cbd5e1;
}

/* Mobile Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 30, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 290px;
  background: var(--bg-white);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 20px;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink-900);
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .header-nav { display: none; }
  .mobile-toggle { display: block; }
  .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-grid--reversed { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 8px; }
  .service-badge { text-align: left; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .page-hero-title { font-size: 2.75rem; }
}

@media (max-width: 768px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .page-hero-title { font-size: 2.375rem; }
  .editorial-title { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .contact-form { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 390px) {
  .page-hero-title { font-size: 2rem; }
  .btn { width: 100%; text-align: center; }
  .header-actions .btn { display: none; }
}

/* ==========================================================================
   MOTION & REVEAL SYSTEM
   Restrained, purposeful, under 700ms, progressive enhancement.
   ========================================================================== */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-enter-1 {
  animation: heroFadeUp 520ms var(--ease-editorial) both;
}

.hero-enter-2 {
  animation: heroFadeUp 560ms var(--ease-editorial) 90ms both;
}

.hero-enter-3 {
  animation: heroFadeUp 580ms var(--ease-editorial) 180ms both;
}

/* Progressive Scroll Reveals: Only active when JS initializes motion */
html.has-motion .reveal-group {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 550ms var(--ease-editorial), transform 550ms var(--ease-editorial);
  will-change: opacity, transform;
}

html.has-motion .reveal-group.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

html.has-motion .reveal-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 450ms var(--ease-editorial), transform 450ms var(--ease-editorial);
}

html.has-motion .reveal-stagger.is-revealed > * {
  opacity: 1;
  transform: translateY(0);
}

html.has-motion .reveal-stagger.is-revealed > *:nth-child(1) { transition-delay: 30ms; }
html.has-motion .reveal-stagger.is-revealed > *:nth-child(2) { transition-delay: 70ms; }
html.has-motion .reveal-stagger.is-revealed > *:nth-child(3) { transition-delay: 110ms; }
html.has-motion .reveal-stagger.is-revealed > *:nth-child(4) { transition-delay: 150ms; }
html.has-motion .reveal-stagger.is-revealed > *:nth-child(5) { transition-delay: 190ms; }
html.has-motion .reveal-stagger.is-revealed > *:nth-child(6) { transition-delay: 230ms; }

/* Respect prefers-reduced-motion: disable transitions, movement, and smooth scroll */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-enter-1,
  .hero-enter-2,
  .hero-enter-3 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  html.has-motion .reveal-group,
  html.has-motion .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .editorial-photo-frame:hover .editorial-photo-img {
    transform: none !important;
  }
  .btn:hover {
    transform: none !important;
  }
  .nav-link::after {
    display: none !important;
  }
}

/* ==========================================================================
   PRINT & FULL-PAGE SCREENSHOT STYLES
   Ensures text remains 100% visible, high-contrast, and cleanly paginated.
   ========================================================================== */
@media print {
  *, *::before, *::after {
    background: transparent !important;
    color: #000000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    filter: none !important;
  }

  html, body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
  }

  .site-header {
    position: static !important;
    border-bottom: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
  }

  .header-actions .btn,
  .mobile-toggle,
  .mobile-drawer,
  .mobile-drawer-overlay,
  .form-feedback {
    display: none !important;
  }

  html.has-motion .reveal-group,
  html.has-motion .reveal-stagger > *,
  .hero-enter-1,
  .hero-enter-2,
  .hero-enter-3 {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }

  .editorial-photo-frame {
    box-shadow: none !important;
    border: 1px solid #e2e8f0;
    page-break-inside: avoid;
  }

  .editorial-split,
  .service-row,
  .faq-item,
  .contact-section {
    page-break-inside: avoid;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
    color: #4b586e;
  }

  a[href^="#"]::after,
  a.header-brand::after {
    content: "";
  }
}


.split-grid>*{min-width:0}.form-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.skip-link{position:fixed;top:8px;left:8px;padding:12px;background:white;color:#0f52ba;z-index:2000;transform:translateY(-150%)}.skip-link:focus{transform:none}.mobile-drawer:not(.open){visibility:hidden}.mobile-drawer.open{visibility:visible}html.drawer-open{overflow:hidden}@media(max-width:600px){.btn{white-space:normal;text-align:center;max-width:100%}.footer-links a{overflow-wrap:anywhere}}@media print{.mobile-drawer,.mobile-drawer-overlay,.skip-link{display:none!important}.editorial-photo-caption{position:static!important;padding:10px!important;background:#fff!important;color:#000!important}}
