/* ===================================================================
   custom.css — Custom Page Stylesheet
   FURNORA · Deep Navy Blue × Champagne Gold · Glossy Finish
   -------------------------------------------------------------------
   The Custom page opts into the shared Furnora luxury theme with
   <body class="home-lux"> (defined in style.css). Everything below
   re-uses that theme's tokens (--hx-*) so this page matches the
   updated Home page exactly:
     Navy      #030A1E · #050F2A · #091B40 · #0C2250 · #1D3F85
     Gold      #F6E7B8 · #E2C06B · #C9962E · #B8892B · #94701F
   =================================================================== */

/* ── Page Hero ───────────────────────────────────────────────────────── */
.custom-hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
  text-align: center;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 83vh;
  isolation: isolate;
}

.custom-hero-actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ── Alternate section background (navy mist → white → champagne) ────── */
body.home-lux section.section.custom-section-alt:not([id]) {
  background:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(12, 34, 80, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(201, 150, 46, 0.11) 0%, transparent 70%),
    linear-gradient(135deg, #F0F3FA 0%, #FFFFFF 50%, #FBF4E1 100%);
}

/* ── Gradient hairline surfaces (shared by all card-like blocks) ─────── */
body.home-lux :is(.custom-accordion-item, .custom-tab-content, .custom-col-card,
                  .custom-related-link-card) {
  border: 1px solid transparent;
  background: var(--hx-surface) padding-box, var(--hx-bd) border-box;
  box-shadow: var(--hx-sh-card);
}

/* ── Headings inside custom components (navy gradient, left aligned) ─── */
body.home-lux :is(.custom-col-card h3, .custom-tab-content h3, .custom-tl-body h4,
                  .custom-icon-item h4, .custom-related-link-card h4,
                  .custom-alert-content h4, .custom-left-heading) {
  width: fit-content;
  max-width: 100%;
  margin-inline: 0;
  color: #091B40;
  background-image: linear-gradient(100deg, #091B40 0%, #0C2250 60%, #1D3F85 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Left-aligned copy blocks: undo the theme's auto-centred headings */
body.home-lux :is(.custom-cb-text, .cfh-content) :is(h2, .eyebrow) {
  margin-inline: 0;
}

/* ── Accordion ───────────────────────────────────────────────────────── */
.custom-accordion-item {
  border-radius: 6px !important;
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.custom-accordion-item:hover {
  --hx-bd: var(--hx-bd-strong);
  box-shadow: var(--hx-sh-card-hover);
}

.custom-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
}

.custom-accordion-summary:hover {
  color: #0C2250;
}

.custom-accordion-summary .acc-icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 4px !important;
  background: linear-gradient(135deg, #E6EBF6 0%, #FBF3E4 100%);
  display: grid;
  place-items: center;
  color: #0C2250;
}

/* ── Tabs ────────────────────────────────────────────────────────────── */
.custom-tab-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 6px !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #FFFFFF 0%, #F3F6FB 55%, #FBF3E4 100%) padding-box,
    var(--hx-bd-strong) border-box;
  color: #091B40;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 3px 8px -2px rgba(5, 15, 42, 0.18);
  transition: filter 0.25s, transform 0.25s, box-shadow 0.25s, color 0.25s;
}

.custom-tab-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  color: #94701F;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 8px 18px -6px rgba(148, 112, 31, 0.35);
}

.custom-tab-btn.active,
.custom-tab-btn.active:hover {
  background: var(--hx-g-btn) padding-box, var(--hx-g-btn) border-box;
  color: #FFFFFF;
  border-color: rgba(226, 192, 107, 0.55);
  text-shadow: 0 1px 1px rgba(3, 10, 30, 0.35);
  transform: none;
  box-shadow: var(--hx-sh-btn);
}

.custom-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.custom-tab-panel {
  display: none;
}

.custom-tab-panel.active {
  display: block;
  animation: custom-fade-in 0.3s ease;
}

@keyframes custom-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-tab-content {
  border-radius: 6px !important;
  padding: 2rem 2.25rem;
}

.custom-tab-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.custom-tab-content p {
  color: var(--muted);
  line-height: 1.7;
}

.custom-tab-content p + p { margin-top: 0.85rem; }

/* ── Section Header ──────────────────────────────────────────────────── */
.custom-section-header {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.custom-section-header h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.custom-section-header p {
  margin-top: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Text + Image Content Block ──────────────────────────────────────── */
.custom-content-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.custom-content-block.reverse .custom-cb-text { order: 2; }
.custom-content-block.reverse .custom-cb-media { order: 1; }

.custom-cb-text h2 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.custom-cb-text p {
  color: var(--muted);
  line-height: 1.7;
}

.custom-cb-text code {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.85em;
  color: var(--fg);
}

/* Framed, glossy image panels */
.custom-cb-media,
.cfh-media {
  position: relative;
  border-radius: 6px !important;
  overflow: hidden;
  padding: 0.4rem;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #E6EBF6 0%, #FBF3E4 100%) padding-box, var(--hx-bd-strong) border-box;
  box-shadow: 0 18px 44px -14px rgba(5, 15, 42, 0.30), 0 4px 14px rgba(201, 150, 46, 0.14);
}

.custom-cb-media img,
.cfh-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}

/* Static glass reflection across the photo */
.custom-cb-media::after,
.cfh-media::after {
  content: '';
  position: absolute;
  inset: 0.4rem;
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.06) 32%, rgba(255, 255, 255, 0) 46%);
  pointer-events: none;
}

/* Check lists used inside text blocks */
.custom-check-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.custom-check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.custom-check-list li svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  stroke: url(#hxStroke);
}

@media (max-width: 800px) {
  .custom-content-block,
  .custom-content-block.reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .custom-content-block.reverse .custom-cb-text,
  .custom-content-block.reverse .custom-cb-media {
    order: initial;
  }
}

/* ── Multi-Column Grid System ────────────────────────────────────────── */
.custom-cols {
  display: grid;
  gap: 1.75rem;
}

.custom-cols.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.custom-cols.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.custom-cols.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.custom-cols.cols-1 { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 900px) {
  .custom-cols.cols-3,
  .custom-cols.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .custom-cols.cols-2,
  .custom-cols.cols-3,
  .custom-cols.cols-4 { grid-template-columns: minmax(0, 1fr); }
}

.custom-col-card {
  border-radius: 6px !important;
  padding: 1.75rem;
  transition: box-shadow 0.25s, transform 0.25s;
}

.custom-col-card:hover {
  --hx-bd: var(--hx-bd-strong);
  box-shadow: var(--hx-sh-card-hover);
  transform: translateY(-4px);
}

.custom-col-card h3 {
  margin: 1.1rem 0 0.5rem;
  font-size: 1.05rem;
}

.custom-col-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Feature Highlight Block ─────────────────────────────────────────── */
.custom-feature-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.cfh-content h2 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

@media (max-width: 800px) {
  .custom-feature-highlight { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

/* ── Notification / Alert Blocks ─────────────────────────────────────── */
.custom-alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 6px !important;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 20px -10px rgba(5, 15, 42, 0.16);
  transition: box-shadow 0.25s, transform 0.25s;
}

.custom-alert:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 14px 28px -10px rgba(5, 15, 42, 0.22);
}

.custom-alert-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 6px !important;
  flex-shrink: 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F6FB 100%);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 10px -3px rgba(5, 15, 42, 0.22);
}

.custom-alert-icon i, .custom-alert-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.custom-alert-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.custom-alert-content p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Info — navy mist */
.custom-alert.alert-info {
  border-color: rgba(12, 34, 80, 0.25);
  background: linear-gradient(120deg, #E6EBF6 0%, #F6F8FC 100%);
}
.custom-alert.alert-info .custom-alert-icon { color: #0C2250; }

/* Success — deep green keeps the "all good" meaning readable */
.custom-alert.alert-success {
  border-color: #BFDCCB;
  background: linear-gradient(120deg, #EAF5EE 0%, #F7FBF8 100%);
}
.custom-alert.alert-success .custom-alert-icon { color: #1F6B4F; }

/* Warning — amber */
.custom-alert.alert-warning {
  border-color: #FDE9C8;
  background: linear-gradient(120deg, #FFF8EC 0%, #FFFCF5 100%);
}
.custom-alert.alert-warning .custom-alert-icon { color: #B8860B; }

/* Error — brick red */
.custom-alert.alert-error {
  border-color: #F6CFCB;
  background: linear-gradient(120deg, #FDF1F0 0%, #FFF8F7 100%);
}
.custom-alert.alert-error .custom-alert-icon { color: #C0392B; }

/* Update — champagne gold */
.custom-alert.alert-update {
  border-color: rgba(201, 150, 46, 0.45);
  background: linear-gradient(120deg, #FBF4E1 0%, #FFFDF7 100%);
}
.custom-alert.alert-update .custom-alert-icon { color: #94701F; }

/* ── Timeline / Steps ────────────────────────────────────────────────── */
.custom-timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

.custom-timeline::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, #0C2250 0%, #1D3F85 35%, #E2C06B 75%, #C9962E 100%);
  border-radius: 2px;
}

.custom-timeline-item {
  position: relative;
  padding-bottom: 2.25rem;
}

.custom-timeline-item:last-child { padding-bottom: 0; }

.custom-tl-dot {
  position: absolute;
  left: -2.5rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hx-g-tile);
  border: 1px solid rgba(226, 192, 107, 0.65);
  color: #FFF8E6;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--hx-sh-tile);
}

.custom-tl-body h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.custom-tl-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── Icon List ───────────────────────────────────────────────────────── */
.custom-icon-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.custom-icon-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.custom-icon-item h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.custom-icon-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Quote / Highlight Callout ───────────────────────────────────────── */
.custom-quote {
  position: relative;
  padding: 2.25rem 2.25rem 2.25rem 2.6rem;
  border-radius: 6px !important;
  border: 1px solid transparent;
  background: var(--hx-surface-soft) padding-box, var(--hx-bd-strong) border-box;
  box-shadow: var(--hx-sh-card);
  overflow: hidden;
}

/* Navy → champagne accent bar */
.custom-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #0C2250 0%, #1D3F85 30%, #F6E7B8 60%, #C9962E 100%);
}

.custom-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.6;
  font-style: italic;
  color: #091B40;
  margin: 0 0 1.25rem;
}

.custom-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: #94701F;
  font-weight: 600;
}

/* ── Stats Strip — navy glass panel with champagne numerals ──────────── */
.custom-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 2.5rem;
  border-radius: 6px !important;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 38%) padding-box,
    radial-gradient(ellipse 60% 70% at 100% 0%, rgba(226, 192, 107, .30) 0%, transparent 65%) padding-box,
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(63, 98, 176, .38) 0%, transparent 65%) padding-box,
    linear-gradient(135deg, #030A1E 0%, #091B40 50%, #0C2250 75%, #1D3F85 100%) padding-box,
    linear-gradient(135deg, #F6E7B8 0%, #C9962E 40%, #F6E7B8 55%, #94701F 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -30px 60px -30px rgba(0, 0, 0, .45), 0 28px 70px -14px rgba(5, 15, 42, .42), 0 8px 26px rgba(201, 150, 46, .16);
  text-align: center;
}

.custom-stat-num {
  width: fit-content;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 500;
  color: #F6E7B8;
  background-image: var(--hx-g-gold-txt);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.custom-stat-label {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 700px) {
  .custom-stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Media Embed Block ───────────────────────────────────────────────── */
.custom-media-block {
  border-radius: 6px !important;
  overflow: hidden;
  border: 1px solid transparent;
  background: linear-gradient(#FFFFFF, #FFFFFF) padding-box, var(--hx-bd-strong) border-box;
  box-shadow: 0 18px 44px -14px rgba(5, 15, 42, 0.30), 0 4px 14px rgba(201, 150, 46, 0.14);
}

.custom-media-block img {
  width: 100%;
  display: block;
}

.custom-media-caption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: linear-gradient(90deg, #F0F3FA 0%, #FBF3E4 100%);
  border-top: 1px solid rgba(201, 150, 46, 0.35);
}

.custom-media-caption i,
.custom-media-caption svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  stroke: url(#hxStroke);
}

/* ── Related Links ───────────────────────────────────────────────────── */
.custom-related-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .custom-related-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .custom-related-links { grid-template-columns: minmax(0, 1fr); }
}

.custom-related-link-card {
  display: block;
  padding: 1.5rem;
  border-radius: 6px !important;
  text-decoration: none;
  transition: box-shadow 0.25s, transform 0.25s;
}

.custom-related-link-card:hover {
  --hx-bd: var(--hx-bd-strong);
  box-shadow: var(--hx-sh-card-hover);
  transform: translateY(-3px);
}

.rl-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94701F;
  margin-bottom: 0.6rem;
}

.custom-related-link-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.custom-related-link-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.rl-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0C2250;
}

.rl-arrow i,
.rl-arrow svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke: url(#hxStroke);
}

/* ── Banner / Promo Strip ────────────────────────────────────────────── */
.custom-banner-strip {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 6px !important;
  border: 1px solid transparent;
  background: var(--hx-surface-soft) padding-box, var(--hx-bd-strong) border-box;
  box-shadow: var(--hx-sh-card);
}

.custom-banner-strip h2 {
  margin: 0.75rem auto 1rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.custom-banner-strip p {
  color: var(--muted);
  line-height: 1.65;
}

.custom-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (max-width: 480px) {
  .custom-banner-strip { padding: 2rem 1.5rem; }
}

/* ── Icon + label items inside the materials marquee ─────────────────── */
.brands-track div {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brands-track div i,
.brands-track div svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: url(#hxStroke);
}


/* ── Mobile: centre-aligned tabs and buttons ─────────────────────────── */
@media (max-width: 600px) {
  /* Tab buttons: centred, wrapping rows are centred too */
  .custom-tabs-nav {
    justify-content: center;
  }

  /* Button pairs: stacked, centred, equal width */
  .custom-hero-actions,
  .custom-banner-actions {
    flex-direction: column;
    align-items: center;
  }

  .custom-hero-actions .btn,
  .custom-banner-actions .btn {
    width: 100%;
    max-width: 20rem;
  }

  /* "Enquire Now" button under the left-aligned text: centre it */
  .cfh-content > .btn {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Materials marquee: seamless auto-scroll ─────────────────────────── */
.brands-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.brands-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0 !important;
  width: max-content;
  animation: brands-scroll 30s linear infinite !important;
  will-change: transform;
}

/* margin (not gap) keeps both halves identical so -50% loops seamlessly */
.brands-track > * {
  flex-shrink: 0;
  margin-right: 1.75rem;
  white-space: nowrap;
}

.brands-marquee:hover .brands-track {
  animation-play-state: paused;
}

@keyframes brands-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .brands-track { animation: none !important; }
}