/* ============================================================
   Rose IT Ltd — v5 site chrome (shared by every page)
   Loads after styles.css (and after scene/page.css on the 3D pages).
   Everything is scoped to body.v5. Page-specific bands live in
   v5-home.css and v5-pages.css.
   ============================================================ */

body.v5 {
  --grad-a: linear-gradient(90deg, var(--steel) 0%, var(--steel-bright) 42%, var(--brass-bright) 100%);
  --grad-text: linear-gradient(90deg, var(--steel-bright) 0%, var(--brass-bright) 58%, #f1dcae 100%);
  --grad-line: linear-gradient(180deg, var(--steel-bright) 0%, var(--brass-bright) 55%, rgba(214, 176, 116, 0) 100%);
  --card-dark: rgba(8, 18, 38, 0.86);
  --radius-card: 28px;
  --shadow-soft: 0 3px 9px rgba(12, 26, 53, 0.05), 0 1px 29px rgba(12, 26, 53, 0.08);
}

/* ----- Gradient text and pill buttons ----- */
.v5 .grad-text {
  background-image: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.v5 .pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px;
  border-radius: 14px;
  background-image: var(--grad-a);
  text-decoration: none;
  isolation: isolate;
}
.v5 .pill-btn > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
  border-radius: 13px;
  background: var(--ink);
  color: var(--paper);
  padding: 13px 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.35s ease, color 0.35s ease;
  white-space: nowrap;
}
.v5 .pill-btn:hover > span,
.v5 .pill-btn:focus-visible > span { background: transparent; color: var(--ink); }
.v5 .pill-btn.ghost { background-image: none; border: 1px solid var(--rule-strong); border-radius: 14px; }
.v5 .pill-btn.ghost > span { background: transparent; padding: 12px 24px; }
.v5 .pill-btn.ghost:hover > span { color: var(--brass-bright); }
.v5 .light .pill-btn.ghost { border-color: rgba(12, 26, 53, 0.18); }
.v5 .light .pill-btn.ghost > span { color: var(--ink); }
.v5 .light .pill-btn.ghost:hover > span { color: var(--brass-deep); }
.v5 .pill-btn > span .arrow { transition: transform 0.35s var(--ease-out); }
.v5 .pill-btn:hover > span .arrow { transform: translateX(4px); }

/* ----- Floating pill navigation (shrinks on scroll) ----- */
.v5 header.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 12px;
  background: none;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}
.v5 header.nav .nav-inner {
  pointer-events: auto;
  width: 100%;
  max-width: 1180px;
  padding: 8px 10px 8px 16px;
  border-radius: 18px;
  background: rgba(12, 26, 53, 0.94);
  border: 1px solid var(--rule);
  box-shadow: 0 10px 30px rgba(3, 8, 20, 0.35), 0 1px 0 rgba(245, 241, 234, 0.06) inset;
  transition: max-width 0.55s var(--ease-out), padding 0.55s var(--ease-out), background 0.4s ease;
}
.v5 header.nav.scrolled .nav-inner { max-width: 860px; padding: 6px 8px 6px 14px; }
.v5 .brand img { width: 32px; height: 32px; }
.v5 .brand .name { font-size: 18px; }
.v5 nav.links { gap: 2px; }
.v5 nav.links a {
  padding: 8px 12px;
  border-radius: 10px;
  opacity: 0.84;
  font-size: 13.5px;
  transition: background 0.25s ease, opacity 0.25s ease, padding 0.55s var(--ease-out);
}
.v5 nav.links a:not(.contact-cta)::after { display: none; }
.v5 nav.links a:not(.contact-cta):hover { background: rgba(245, 241, 234, 0.07); opacity: 1; }
.v5 nav.links a.active { color: var(--brass-bright); opacity: 1; }
.v5 header.nav.scrolled nav.links a:not(.contact-cta) { padding: 7px 9px; }
.v5 nav.links a.contact-cta {
  margin-left: 8px;
  border: 0;
  border-radius: 12px;
  padding: 1px;
  background-image: var(--grad-a);
  overflow: visible;
}
.v5 nav.links a.contact-cta::before { display: none; }
.v5 nav.links a.contact-cta > span {
  display: block;
  border-radius: 11px;
  background: var(--ink);
  padding: 9px 16px;
  transition: background 0.35s ease, color 0.35s ease;
}
.v5 nav.links a.contact-cta:hover > span,
.v5 nav.links a.contact-cta.active > span { background: transparent; color: var(--ink); }
.v5 .nav-toggle { width: 40px; height: 40px; border-radius: 10px; }
/* The 3D pages: the pill is fully opaque, nothing translucent ever sits over the canvas. */
body.v5.sc-page header.nav,
body.v5.sc-page header.nav.scrolled,
body.v5.sc-page header.nav:not(.scrolled) { background: none; border: 0; }
body.v5.sc-page header.nav .nav-inner { background: var(--ink); }

/* ----- Chips and band heads ----- */
.v5 .chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(245, 241, 234, 0.07);
  color: var(--brass-bright);
  border: 1px solid var(--rule);
}
.v5 .chip svg { width: 15px; height: 15px; flex: none; }
.v5 .light .chip { background: #fff; color: var(--brass-deep); border: 0; box-shadow: var(--shadow-soft); }
.v5 .band-head { max-width: 820px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.v5 .band-head h1,
.v5 .band-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--paper);
}
.v5 .band-head h1 em, .v5 .band-head h2 em { font-style: italic; font-weight: 400; color: var(--brass-bright); }
.v5 .band-head .lede { font-size: clamp(15.5px, 1.25vw, 18.5px); line-height: 1.65; max-width: 64ch; margin: 0; color: var(--steel-bright); font-weight: 300; }
.v5 .light .band-head h1, .v5 .light .band-head h2 { color: var(--ink); }
.v5 .light .band-head h1 em, .v5 .light .band-head h2 em { color: var(--brass-deep); }
.v5 .light .band-head .lede { color: rgba(12, 26, 53, 0.72); font-weight: 400; }

/* ----- Bands: the full-width sections every page is built from ----- */
.v5 .band {
  position: relative;
  padding: clamp(64px, 8vw, 120px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 5vw, 64px);
}
.v5 .band.light { background: var(--paper); color: var(--ink); }
.v5 .band.light.alt { background: var(--paper-2); }
.v5 .band.dark { background: var(--ink); color: var(--paper); }
.v5 .band > .inner { width: 100%; max-width: var(--container); }
/* A page's opening band sits under the floating pill: extra room at the top. */
.v5 .band.opener { padding-top: clamp(150px, 18vw, 210px); }
.v5 .band.opener .band-head .crumb { margin: 0 0 4px; }
.v5 .crumb a { color: inherit; }

/* ----- Rows with a tick or a cross (plain lists people can scan) ----- */
.v5 .point {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: clamp(14px, 1.1vw, 16.5px);
  line-height: 1.45;
  color: var(--ink);
}
.v5 .point svg { width: 18px; height: 18px; flex: none; color: var(--brass-deep); }
.v5 .point.neg { color: rgba(12, 26, 53, 0.55); }
.v5 .point.neg svg { color: rgba(12, 26, 53, 0.35); }

/* ----- Light cards (inner pages) and dark cards (home, tours) ----- */
.v5 .card-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.v5 .lcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.2vw, 32px);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
}
a.lcard:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(12, 26, 53, 0.1), 0 1px 29px rgba(12, 26, 53, 0.08); }
.v5 .lcard .num, .v5 .lcard .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.v5 .lcard h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.22; letter-spacing: -0.01em; margin: 0; }
.v5 .lcard h3 em { font-style: italic; color: var(--brass-deep); }
.v5 .dcard h3 em { font-style: italic; color: var(--brass-bright); }
.v5 .lcard p { margin: 0; color: rgba(12, 26, 53, 0.74); line-height: 1.6; font-size: 15.5px; }
.v5 .lcard ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.v5 .lcard li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: rgba(12, 26, 53, 0.8); }
.v5 .lcard li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; border: 1.5px solid var(--brass); }
.v5 .dcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.2vw, 32px);
  border-radius: var(--radius-card);
  background: var(--card-dark);
  border: 1px solid rgba(245, 241, 234, 0.09);
  color: var(--paper);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease;
}
a.dcard:hover { transform: translateY(-4px); border-color: rgba(214, 176, 116, 0.35); }
.v5 .dcard .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-bright); }
.v5 .dcard h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.22; margin: 0; color: var(--paper); }
.v5 .dcard p { margin: 0; color: var(--steel-bright); font-weight: 300; line-height: 1.6; font-size: 15.5px; }

/* ----- Tag chips (links) ----- */
.v5 .tags5 { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.v5 .tags5 a {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--steel-bright);
  text-decoration: none;
  font-size: 13.5px;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.v5 .tags5 a:hover { border-color: var(--brass); color: var(--brass-bright); background: rgba(176, 138, 74, 0.08); }
.v5 .light .tags5 a { border-color: rgba(12, 26, 53, 0.14); color: var(--ink); }
.v5 .light .tags5 a:hover { border-color: var(--brass-deep); color: var(--brass-deep); background: rgba(176, 138, 74, 0.08); }

/* ----- The closing strip keeps its look but gets rounded buttons ----- */
.v5 .cta-strip a.btn { border-radius: 14px; }
.v5 .cta-strip a.btn::before { border-radius: 14px; }

/* ----- Responsive ----- */
@media (max-width: 720px) {
  .v5 header.nav { top: 10px; padding: 0 10px; z-index: 90; }
  .v5 header.nav .nav-inner { padding: 6px 6px 6px 12px; }
  .v5 nav.links { top: 0; padding-top: 90px; }
  .v5 nav.links a { padding: 16px 0; border-radius: 0; }
  .v5 nav.links a.active { color: var(--brass-bright); }
  .v5 nav.links a.contact-cta { margin-left: 0; background-image: none; padding: 0; }
  .v5 nav.links a.contact-cta > span { border: 1px solid var(--steel); border-radius: 0; padding: 18px 24px; text-align: center; }
  .v5 .band.opener { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .v5 header.nav .nav-inner, .v5 nav.links a { transition: none; }
}
