/* ==========================================================================
   Nearfront — shared stylesheet (tokens, reset, nav, footer, responsive, a11y)
   Loaded by every page; page-specific styles remain in each page's <style>.
   ========================================================================== */

:root {
  --dark:    #1c3439;
  --dark-2:  #162c30;
  --dark-3:  #0f1f22;
  --gold:    #c3a25d;
  --gold-dk: #ae8d49;
  --gold-lt: #d4b06e;
  --white:   #ffffff;
  --off:     #f7f6f2;
  --muted:   #6b6b60;   /* darkened from #7a7a6e for AA contrast on white */
  --border:  #2d4a50;
  --line:    #e8e6df;
  --text:    #1a1a18;
  --maxw:    1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; background: var(--white); color: var(--text); line-height: 1.6; }

/* Accessibility: visible focus + skip link */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--gold); color: var(--dark); padding: 10px 16px; font-weight: 700; border-radius: 0 0 4px 0; }
.skip-link:focus { left: 0; }

/* --- NAV ------------------------------------------------------------------ */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(28,52,57,0.97); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 40px; height: 64px; }
@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .site-nav { background: rgba(28,52,57,0.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo span { font-size: 15px; font-weight: 700; letter-spacing: 2px; color: var(--white); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 13px; letter-spacing: 0.5px; transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.nav-links a[aria-current="page"] { color: var(--gold); }
.nav-cta { background: var(--gold); color: var(--dark) !important; padding: 9px 22px; border-radius: 4px; font-weight: 700; font-size: 13px; letter-spacing: 0.5px; transition: background .2s; }
.nav-cta:hover { background: var(--gold-lt); }
.nav-login { color: rgba(255,255,255,0.7) !important; font-size: 12px !important; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 4px; color: var(--white); font-size: 20px; line-height: 1; padding: 6px 10px; cursor: pointer; }

/* --- FOOTER --------------------------------------------------------------- */
.site-footer { background: var(--dark-3); border-top: 1px solid var(--border); padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }

/* --- Shared bits ---------------------------------------------------------- */
.section-tag { font-size: 10px; font-weight: 700; letter-spacing: 4px; color: var(--gold-dk); text-transform: uppercase; margin-bottom: 16px; display: block; }
.btn-primary { background: var(--gold); color: var(--dark); padding: 14px 32px; border-radius: 4px; font-weight: 700; font-size: 14px; letter-spacing: 0.5px; text-decoration: none; border: none; cursor: pointer; transition: all .2s; display: inline-block; }
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); }

/* Progressive enhancement: content is ALWAYS visible in its final state.
   The entrance animation runs on load only when JS is present and the user
   has not asked for reduced motion. No-JS, reduced-motion, print, and
   non-scrolling renderers all see fully-visible content. */
@media (prefers-reduced-motion: no-preference) {
  .js .fade-up { animation: nf-rise .7s ease both; }
  @keyframes nf-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
}

/* --- RESPONSIVE nav (shared across all pages) ----------------------------- */
@media (max-width: 860px) {
  .site-nav { padding: 0 20px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark); border-bottom: 1px solid var(--border);
    padding: 8px 20px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 15px; }
  .nav-cta { text-align: center; margin-top: 10px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Service landing pages + booking + story (shared)
   ========================================================================== */
.svc-hero { background: var(--dark-3); padding: 150px 20px 84px; position: relative; overflow: hidden; text-align: center; }
.svc-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(195,162,93,0.04) 1px,transparent 1px),linear-gradient(90deg,rgba(195,162,93,0.04) 1px,transparent 1px); background-size: 60px 60px; }
.svc-hero::after { content: ''; position: absolute; top: -220px; right: -220px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(195,162,93,0.12) 0%, transparent 70%); pointer-events: none; }
.svc-hero-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }
.svc-kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(195,162,93,0.12); border: 1px solid rgba(195,162,93,0.3); border-radius: 2px; padding: 6px 14px; margin-bottom: 26px; font-size: 11px; font-weight: 700; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; }
.svc-hero h1 { font-size: clamp(38px,5vw,60px); font-family: Georgia,serif; font-weight: 700; color: var(--white); line-height: 1.08; letter-spacing: -1px; margin-bottom: 20px; }
.svc-hero h1 em { font-style: normal; color: var(--gold); }
.svc-hero .svc-sub { font-size: 18px; color: rgba(255,255,255,0.75); line-height: 1.65; max-width: 640px; margin: 0 auto 34px; }
.svc-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-ghost { color: rgba(255,255,255,0.85); padding: 14px 26px; border-radius: 4px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid rgba(255,255,255,0.25); transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.svc-proof { display: flex; justify-content: center; gap: 56px; margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.svc-proof-num { font-size: 30px; font-family: Georgia,serif; font-weight: 700; color: var(--gold); line-height: 1; }
.svc-proof-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 6px; }

.svc-wrap { max-width: 880px; margin: 0 auto; padding: 90px 20px; }
.svc-wrap.wide { max-width: 1160px; }
.svc-section-tag { font-size: 10px; font-weight: 700; letter-spacing: 4px; color: var(--gold-dk); text-transform: uppercase; margin-bottom: 14px; display: block; }
.svc-wrap h2 { font-size: clamp(26px,3vw,40px); font-family: Georgia,serif; font-weight: 700; color: var(--dark); line-height: 1.15; margin-bottom: 22px; letter-spacing: -0.5px; }
.svc-wrap p { font-size: 16px; color: var(--muted); line-height: 1.85; margin-bottom: 18px; }
.svc-band { background: var(--dark); }
.svc-band .svc-section-tag { color: var(--gold); }
.svc-band h2 { color: var(--white); }
.svc-band p { color: rgba(255,255,255,0.72); }
.svc-band p:first-of-type { font-size: 17.5px; color: rgba(255,255,255,0.85); }
.svc-alt { background: var(--off); }

.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 40px; }
.svc-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px 26px; position: relative; overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s; }
.svc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.svc-card:hover { border-color: rgba(195,162,93,0.5); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card-icon { font-size: 26px; margin-bottom: 14px; }
.svc-card h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.svc-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 0; }

.svc-incl { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 44px 46px; box-shadow: 0 20px 60px rgba(0,0,0,0.05); margin-top: 36px; }
.svc-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.svc-list li { font-size: 15px; color: var(--text); line-height: 1.55; padding-left: 28px; position: relative; }
.svc-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: rgba(195,162,93,0.15); color: var(--gold-dk); font-weight: 700; font-size: 11px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.svc-note { border-left: 3px solid var(--gold); background: rgba(195,162,93,0.07); padding: 18px 22px; border-radius: 0 8px 8px 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-top: 26px; }

.svc-faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px 28px; margin-bottom: 14px; }
.svc-faq-item h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.svc-faq-item h3::before { content: 'Q'; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--dark); color: var(--gold); font-size: 11px; font-weight: 700; margin-right: 10px; vertical-align: 2px; }
.svc-faq-item p { font-size: 14.5px; color: var(--muted); line-height: 1.75; margin: 0; }

.svc-related { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.svc-related a { font-size: 13px; font-weight: 600; color: var(--dark); text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; transition: all .2s; }
.svc-related a:hover { border-color: var(--gold); color: var(--gold-dk); }

.svc-cta { background: var(--dark); padding: 110px 20px; position: relative; overflow: hidden; text-align: center; }
.svc-cta::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(195,162,93,0.04) 1px,transparent 1px),linear-gradient(90deg,rgba(195,162,93,0.04) 1px,transparent 1px); background-size: 50px 50px; }
.svc-cta-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.svc-cta h2 { font-size: clamp(30px,4vw,48px); font-family: Georgia,serif; font-weight: 700; color: var(--white); line-height: 1.12; margin-bottom: 16px; }
.svc-cta h2 em { font-style: normal; color: var(--gold); }
.svc-cta p { font-size: 17px; color: rgba(255,255,255,0.72); margin-bottom: 34px; line-height: 1.65; }

@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-list { grid-template-columns: 1fr; }
  .svc-incl { padding: 28px 22px; }
  .svc-proof { gap: 32px; }
}

/* Booking page */
.book-wrap { max-width: 980px; margin: 0 auto; padding: 130px 20px 80px; }
.book-head { text-align: center; margin-bottom: 40px; }
.book-head h1 { font-size: clamp(34px,4.5vw,52px); font-family: Georgia,serif; font-weight: 700; color: var(--dark); line-height: 1.1; margin-bottom: 14px; }
.book-head h1 em { font-style: normal; color: var(--gold-dk); }
.book-head p { font-size: 17px; color: var(--muted); max-width: 560px; margin: 0 auto; line-height: 1.6; }
.book-embed { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-height: 640px; box-shadow: 0 20px 60px rgba(0,0,0,0.06); }
.book-embed iframe { width: 100%; min-height: 640px; border: 0; display: block; }
.book-details { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; max-width: 760px; margin: 32px auto 0; }
.book-detail { background: var(--off); border: 1px solid var(--line); border-radius: 8px; padding: 20px; text-align: center; }
.book-detail .bd-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dk); margin-bottom: 6px; }
.book-detail .bd-val { font-size: 14px; color: var(--text); }
@media (max-width: 640px){ .book-details{ grid-template-columns:1fr } }
