/* ================================================================
   SUB-PAGE SHARED STYLES
   Reusable chrome for all interior pages (services, packages, etc.)
   Covers: container, sub-nav, hero primitives, eyebrow, buttons,
   CTA strip, simple footer, and scroll-reveal utilities.
================================================================ */

@layer layout {

  /* ── Layout Container ─────────────────────────────────────── */
  .wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
  }

  /* ── Nav Logo ─────────────────────────────────────────────── */
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav-logo svg {
    width: 28px;
    height: 28px;
  }

  /* ── Sub-page Nav ─────────────────────────────────────────── */
  .nav-sub {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 400;
    height: 66px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(245, 240, 232, .82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transition: background .3s;
  }

  .nav-sub.solid {
    background: rgba(245, 240, 232, .97);
  }

  .nav-word {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--t-head);
    letter-spacing: .05em;
  }

  .nav-word b {
    color: var(--gold);
    font-weight: 400;
  }

  .nav-back {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--t-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color .2s;
  }

  .nav-back:hover {
    color: var(--gold);
  }

  /* ── Eyebrow Badge ────────────────────────────────────────── */
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--line-g);
    border-radius: 100px;
    padding: 6px 18px;
    background: rgba(138, 102, 32, .05);
  }

  .eyebrow::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse 2.2s ease infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .3; transform: scale(.6); }
  }

  /* ── Section Headers ──────────────────────────────────────── */
  .section-head {
    margin-bottom: 44px;
  }

  .section-eyebrow {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
  }

  .section-h2 {
    font-family: var(--serif);
    font-size: clamp(30px, 3.5vw, 46px);
    font-weight: 300;
    line-height: 1.08;
    color: var(--t-head);
  }

  .section-h2 em {
    font-style: italic;
    color: var(--gold);
  }

  .section-body {
    font-size: 14px;
    color: var(--t-body);
    line-height: 1.82;
    max-width: 480px;
    margin-top: 12px;
  }

  /* ── CTA Strip ────────────────────────────────────────────── */
  .cta-strip {
    padding: 80px 40px;
    margin: 80px 0;
    background: linear-gradient(135deg, rgba(138, 102, 32, .07) 0%, transparent 60%);
    border: 1px solid var(--line-g);
    border-radius: 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .cta-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 102, 32, .05) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
    pointer-events: none;
  }

  .cta-inner {
    position: relative;
    z-index: 1;
  }

  .cta-h {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 300;
    color: var(--t-head);
    line-height: 1.08;
    margin-bottom: 16px;
  }

  .cta-h em {
    font-style: italic;
    color: var(--gold);
  }

  .cta-p {
    font-size: 15px;
    color: var(--t-body);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.82;
  }

  .cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  }

  /* ── Buttons ──────────────────────────────────────────────── */
  .btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gold);
    color: var(--bg);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .09em;
    text-transform: uppercase;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s, background .2s;
  }

  .btn-solid:hover {
    background: var(--gold-mid);
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(138, 102, 32, .22);
  }

  .btn-solid svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .btn-ghost {
    font-size: 12px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--t-muted);
    border-bottom: 1px solid var(--line);
    padding-bottom: 2px;
    transition: color .2s, border-color .2s;
  }

  .btn-ghost:hover {
    color: var(--gold);
    border-color: var(--line-g);
  }

  .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--gold);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .09em;
    text-transform: uppercase;
    border-radius: 100px;
    border: 1px solid var(--line-g);
    transition: background .2s, transform .25s var(--ease);
  }

  .btn-outline:hover {
    background: rgba(138, 102, 32, .07);
    transform: translateY(-2px);
  }

  /* ── Simple Footer ────────────────────────────────────────── */
  .footer-simple {
    border-top: 1px solid var(--line);
  }

  .footer-simple .wrap {
    padding-top: 32px;
    padding-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--t-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-simple a {
    transition: color .2s;
  }

  .footer-simple a:hover {
    color: var(--gold);
  }

  /* ── Scroll Reveal ────────────────────────────────────────── */
  .rev {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .75s var(--ease), transform .75s var(--ease);
  }

  .rev.on {
    opacity: 1;
    transform: none;
  }

  .d1 { transition-delay: .08s; }
  .d2 { transition-delay: .16s; }
  .d3 { transition-delay: .24s; }

  /* ── Shared Responsive ────────────────────────────────────── */
  @media (max-width: 768px) {
    .wrap {
      padding: 0 20px;
    }

    .nav-sub {
      padding: 0 20px;
    }

    .cta-strip {
      padding: 52px 24px;
    }

    .footer-simple .wrap {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
  }
}
