/* ═══════════════════════════════════════════════════════════════
   Castle Jewellery — shared desktop stylesheet
   Loaded by every page AFTER its inline styles, so the rules here
   win ties and keep widths, headers and the backdrop identical
   site-wide. Mobile (<768px) is untouched by this file.
   ═══════════════════════════════════════════════════════════════ */

/* Below the desktop breakpoint the injected nav stays hidden */
.desktop-nav { display: none; }

/* ── Animated backdrop: gold sheen sweeping over a champagne base ── */
@keyframes cjBgDrift {
  0% {
    background-position: 130% 130%, 12% 0%, 88% 100%, 0 0;
  }
  100% {
    background-position: -30% -30%, 88% 100%, 12% 0%, 0 0;
  }
}

@media (min-width: 768px) {
  html {
    background:
      linear-gradient(115deg, transparent 0%, transparent 40%, rgba(212, 176, 106, 0.40) 50%, transparent 60%, transparent 100%),
      radial-gradient(45% 65% at 18% 25%, rgba(212, 176, 106, 0.28), transparent 70%),
      radial-gradient(55% 75% at 82% 75%, rgba(184, 152, 78, 0.20), transparent 70%),
      linear-gradient(115deg, #f7f3ea 0%, #ebdfc6 50%, #f5efe2 100%);
    background-size: 260% 260%, 220% 220%, 220% 220%, 100% 100%;
    background-attachment: fixed;
    animation: cjBgDrift 12s ease-in-out infinite alternate;
  }

  body {
    max-width: 720px;
    border-left: 1px solid rgba(184, 152, 78, 0.35);
    border-right: 1px solid rgba(184, 152, 78, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { animation: none; }
}

/* ── One width for every page, same as the home page ── */
@media (min-width: 1024px) {
  body { max-width: 1140px; }
  .nav-overlay { width: 1140px; }
  .menu-fab { right: calc(50% - 550px); }

  /* Long-form text stays readable inside the wide frame */
  section p { max-width: 75ch; }

  /* The booking form keeps a comfortable column inside the frame */
  .booking-section { max-width: 820px; margin: 0 auto; }

  /* ── Unified header: identical to the home page bar ── */
  header {
    position: sticky;
    top: 0;
    z-index: 140;
    background: var(--navy-dark, #0f1e3d) !important;
    border-bottom: 1px solid rgba(184, 152, 78, 0.35);
  }
  header .gold-bar,
  header > div[style*="height:3px"] { display: none; }

  .header-inner {
    height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .header-logo { gap: 12px; flex-shrink: 0; }
  .header-logo img { height: 36px !important; }
  .header-brand {
    font-size: 19px;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--gold-light, #d4b06a);
  }
  .header-brand-cap {
    font-size: 19px;
    font-weight: 300;
    line-height: inherit;
    vertical-align: baseline;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
  .desktop-nav a {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-pale, #e8d5a3);
    text-decoration: none;
    padding: 10px 8px;
    border-bottom: 1px solid transparent;
    transition: color 0.25s, border-color 0.25s;
    white-space: nowrap;
  }
  .desktop-nav a:hover { color: #fff; border-bottom-color: var(--gold, #b8984e); }
  .desktop-nav .dn-phone {
    font-size: 9.5px;
    color: var(--gold, #b8984e);
    border: 1px solid rgba(184, 152, 78, 0.4);
    padding: 9px 12px;
    margin-left: auto;
    letter-spacing: 1.5px;
    flex-shrink: 0;
  }
  .desktop-nav .dn-phone:hover {
    background: var(--gold, #b8984e);
    color: var(--navy-dark, #0f1e3d);
    border-bottom-color: transparent;
  }
  .header-back { display: none; }

  /* ── "Wedding Rings" hover dropdown (works in both header navs) ── */
  .nav-sub { position: relative; display: flex; align-items: center; align-self: stretch; }
  .nav-sub > a::after { content: ' ▾'; font-size: 8px; color: var(--gold, #b8984e); }
  .nav-sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy-dark, #0f1e3d);
    border: 1px solid rgba(184, 152, 78, 0.35);
    border-top: 2px solid var(--gold, #b8984e);
    min-width: 235px;
    padding: 10px 0;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    z-index: 160;
  }
  .nav-sub:hover .nav-sub-menu,
  .nav-sub:focus-within .nav-sub-menu { display: block; }
  .desktop-nav .nav-sub-menu a,
  .desktop-bar nav .nav-sub-menu a {
    display: block;
    padding: 11px 20px;
    border-bottom: none;
    text-align: left;
    font-size: 9px;
    letter-spacing: 2px;
  }
  .desktop-nav .nav-sub-menu a:hover,
  .desktop-bar nav .nav-sub-menu a:hover {
    background: rgba(184, 152, 78, 0.12);
    color: #fff;
    border-bottom: none;
  }
}
