/* Brand tokens */
:root {
    --brand-navy: #002850;
    --brand-blue: #64a7ea;
    --brand-blue-soft: #e6f2fb;
    --brand-bg: #eef2f5; /* light grey/blue */
    --text-main: #1f2933;
    --text-muted: #6b7280;

    --radius-lg: 1rem;
    --radius-md: .75rem;
    --shadow-soft: 0 18px 45px rgba(0, 40, 80, 0.08);
}
html {
    scroll-behavior: smooth;
}

/* Typography */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background-color: var(--brand-bg);
}

/* Attempt to use your brand fonts where available on the system */
.brand-script {
    font-family: "Edwardian Script ITC", "Segoe Script", "Lucida Handwriting", cursive;
}
.brand-serif {
    font-family: "Microsoft Uighur", "Georgia", "Times New Roman", serif;
}

h1, h2, h3, h4 {
    letter-spacing: .02em;
}

a {
    color: var(--brand-navy);
}
a:hover {
    color: var(--brand-blue);
}

/* Layout helpers */
.bg-page {
    background: radial-gradient(circle at top left, #ffffff 0, #ffffff 40%, #f1f6fc 100%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.96);
}

.site-main {
    padding-top: 1rem;
}

/* Branding bits */
.header-logo {
    height: 40px;
    width: auto;
}

/*Nav*/

/* Navbar link styles */
.navbar-nav .nav-link {
    font-weight: 600; /* main links = strong */
}

/* Staff login link: lighter and smaller */
.navbar-nav .nav-link-login {
    font-weight: 400;

    opacity: 0.8;
}
.navbar-nav .nav-link-login:hover {
    opacity: 1;
}

/* Livestream highlight link */
.navbar-nav .nav-link-live {
    border-radius: 999px;
    background: var(--brand-blue-soft);
    padding-inline: 1rem;
	display:none;
}

/* Links */
.link-quiet {
    color: inherit;
    text-decoration: none;
}
.link-quiet:hover {
    color: var(--brand-blue);
    text-decoration: underline;
}

/* Buttons */
.btn-brand {
    background: var(--brand-navy);
    color: #fff;
    border-radius: 999px;
    padding-inline: 1.5rem;
}
.btn-brand:hover {
    background: #00172f;
    color: #fff;
}

.btn-outline-brand {
    border-color: var(--brand-navy);
    color: var(--brand-navy);
    border-radius: 999px;
}
.btn-outline-brand:hover {
    background: var(--brand-navy);
    color: #fff;
}

/* Sections */
.section {
    padding-block: 2.5rem;
}
.section-sm {
    padding-block: 1.75rem;
}
.section-muted {
    background: #ffffff;
}

.section-padding{
	padding-top:6rem;
	padding-bottom:4rem;
}

/* ================================
  home page
   ================================ */

/* Cards */
.card-elevated {
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    background: #ffffff;
}
.card-soft {
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,40,80,0.07);
    background: rgba(255,255,255,0.9);
}

/* Hero */
.hero-section {
    width: 100%;
    min-height: 95vh; /* near full screen */
    position: relative;
    overflow: hidden;
	margin-top: -65px;
    padding-top: 65px;
	align-items: flex-end;
    padding-bottom: 15vh;
	color:var(--brand-navy);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
	
}

/* Optional gradient overlay for readability */
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(0 0 0 / 25%) 0%, 
		rgb(255 255 255 / 0%) 30%, 
		rgb(255 255 255 / 0%) 85%, 
		rgb(255 255 255 / 65%) 95%, 
		#ffffff 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* Fade-in animation */
.hero-content {
    animation: fadeInUp 1.1s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-logo {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.tangerine-regular {
  font-family: "Tangerine", cursive;
  font-weight: 500;
  font-style: normal;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}
/* Adjust logo size on small screens */
@media (max-width: 767px) {
    .hero-logo {
        height: 60px;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page cards*/

.card-guide {
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.05),
        0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-guide:hover {
    transform: translateY(-3px);
    box-shadow:
        0 4px 12px rgba(0,0,0,0.12),
        0 12px 28px rgba(0,0,0,0.08);
}

.card-guide-img {
    height: 240px;
    background-size: cover;
    background-position: center center;
    filter: brightness(0.82);
    transition: filter 0.2s ease;
}

.card-guide:hover .card-guide-img {
    filter: brightness(0.9);
}
.mute-hover{
	color: var(--text-main) !important;
	
}


/* Pill labels */
.badge-pill-soft {
    border-radius: 999px;
    background: var(--brand-blue-soft);
    color: var(--brand-navy);
    font-size: .75rem;
    padding: .25rem .75rem;
}



/* Shell & fades can stay as we had */
.notice-rail-shell {
    position: relative;
    overflow: hidden;
    margin-inline: -0.5rem;
    padding-inline: 0.5rem;
    background-color: #ffffff; /* match your section bg */
}

.notice-rail-shell::before,
.notice-rail-shell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    pointer-events: none;
    z-index: 2;
}

.notice-rail-shell::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, rgba(255,255,255,0));
}

.notice-rail-shell::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, rgba(255,255,255,0));
}

/* Track */
.notice-rail {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    overflow-x: auto;
    padding-block: 0.25rem 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
	cursor: grab;

}

.notice-rail.is-dragging {
    cursor: grabbing;
}

.no-select * {
    user-select: none !important;
}

/* Spacer items at ends – about "20% of a card" worth of space each side */
.notice-rail-spacer {
    flex: 0 0 2%;
    max-width: 2%;
}

/* Main cards – tuned so 3 sit roughly centered with spacers on each side */
.notice-rail-item {
    flex: 0 0 28%;
    max-width: 28%;
    min-width: 260px;
    scroll-snap-align: start;
}

/* Card styling */
.notice-card {
	
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.notice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}


/* Scrollbar for WebKit */
.notice-rail::-webkit-scrollbar {
    height: 6px;
}
.notice-rail::-webkit-scrollbar-track {
    background: transparent;
}
.notice-rail::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 999px;
}

/* Mobile: still swipeable, show ~1.2 cards */
@media (max-width: 767.98px) {
    .notice-rail-item {
        flex: 0 0 75%;
        max-width: 75%;
        min-width: 0;
    }

    .notice-rail-spacer {
        flex: 0 0 2%;
        max-width: 2%;
    }

    .notice-rail-shell::before,
    .notice-rail-shell::after {
        width: 32px;
    }
}

/* Contact Form*/

.contact-mini-form .form-control {
    border-radius: 8px;
    font-size: 0.9rem;
}

.contact-mini-form textarea.form-control {
    resize: vertical;
}

.contact-mini-form button {
    margin-top: 0.25rem;
}
.text-brand {
    color: #002850; /* Your navy brand colour */
}
.contact-details i {
	font-size: 40px;
    color: #002850;           /* brand navy */
    opacity: 0.55;            /* gives it an outline/light effect */
    transition: opacity 0.2s ease;
}
.contact-details {
	font-weight: 500;
    font-size: 18px;
}

.contact-details .link-quiet {
    text-decoration: none;
}

.contact-details .link-quiet:hover {
    text-decoration: underline;
}


/* Footer */
.site-footer {
    background: #ffffff;
}
.footer-membership-logo {
    height: 55px;
    width: auto;
    opacity: 0.95;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-membership-logo:hover {
    opacity: 1;
    transform: scale(1.04);
}
.footer-text{
	font-weight: 600;
    font-size: 14px;	
}

.footer-left-boarder{
	border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
	
}


/*Other*/
.bg-danger-subtle:hover{
background-color:#f8cdd1 !important
}

/* Make the livestream CTA especially clear in the burger menu */
@media (max-width: 767.98px) {
    .navbar-nav .nav-link-live {
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
		display:block !important;
    }
}


/* ================================
  Arrange page
   ================================ */


.page-hero-sub {
    background: #f5f7fa;
}

.text-brand-deep {
    color: #002850;
}

.text-brand-soft {
    color: #64a7ea;
}

/* Keep accordions a bit softer */
#immediateSteps .accordion-button {
    font-size: 0.95rem;
}

#immediateSteps .accordion-body {
    background-color: #f9fafb;
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Arrange list spacing */
.arrange-list li strong {
    color: #002850;
}

/* ================================
  Notice page
   ================================ */

/* Funeral notices */

.notice-card {
    position: relative; /* needed for stretched-link */
    border-radius: 16px;
    border: 1px solid rgba(0, 40, 80, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    overflow: hidden;
}

.notice-card + .notice-card {
    margin-top: 1rem;
}

/* Photo column */
.notice-card-photo {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
    background-color: #f4f5f7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.notice-card-photo-placeholder {
    height: 312.5px;
    width: 250px;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: linear-gradient(135deg, #e3edf7, #f9fafb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 600;
    font-size: 5.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Text / title */
.notice-card-name {
    font-size: 1.45rem;
    font-weight: 600;
    color: #002850;
}

.notice-card-meta {
    font-size: 1.0rem;
	font-weight: 500;
}
.notice-card-body {
    font-size: 1.0rem;
	font-weight: 400;
}

.bg-soft-brand {
    background-color: rgba(100, 167, 234, 0.12);
}

.text-brand-deep {
    color: #002850;
}

/* Livestream info line */
.notice-stream-info {
    font-size: 0.8rem;
    color: #4b5563;
}

/* Quick list stays the same */
.notice-quick-list {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.notice-quick-link {
    display: inline-block;
    text-decoration: none;
    color: #002850;
	font-size: 1.0rem;
	font-weight: 500;
}

.notice-quick-link:hover {
    text-decoration: underline;
}

/* Small tweak so the search icon doesn't block clicks */
.notice-search-form .form-control {
    padding-right: 2.2rem;
}

.notice-body {
    line-height: 1.7;
    color: #374151;
}

.notice-body p {
    margin-bottom: 0.75rem;
}

.notice-body ul,
.notice-body ol {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.notice-body li {
    margin-bottom: 0.25rem;
}

/* ─────────────────────────────────────────────
   Livestream section (funeral notice)
   ───────────────────────────────────────────── */

.notice-stream {
	
  margin-top: 2rem;
  scroll-margin-top: 140px; /* for anchor jumps */
}
#streamFrameWrap{	
max-height:450px;
}
.notice-stream .card-soft {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(100, 167, 234, 0.08),
    rgba(255, 255, 255, 1)
  );
  border: 1px solid rgba(0, 40, 80, 0.08);
}

/* Subtle accent bar */
.notice-stream .card-soft::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(
    90deg,
    #002850,
    #64a7ea
  );
  border-radius: 4px 4px 0 0;
}

/* Heading emphasis */
.notice-stream h2 {
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Countdown styling */
#streamCountdown {
  
  padding: 0.5rem 0.75rem;
  background: rgba(0, 40, 80, 0.05);
  border-radius: 6px;
  display: inline-block;
}

/* Video container emphasis */
#streamFrameWrap {
  background: #000;
  border-radius: 16px;
}

/* When live, add subtle glow */
.notice-stream.is-live #streamFrameWrap {
  box-shadow:
    0 0 0 1px rgba(100, 167, 234, 0.35),
    0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Mobile spacing tweaks */
@media (max-width: 575px) {
  .notice-stream {
    margin-top: 1.5rem;
  }

  #streamCountdown {
    font-size: 0.85rem;
  }
}

/* ─────────────────────────────────────────────
   Livestream loading overlay
   ───────────────────────────────────────────── */

.stream-loader {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.65)
  );
  z-index: 5;
  transition: opacity 0.4s ease;
}

/* Soft spinner */
.stream-spinner {
  display: inline-block;
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #64a7ea;
  border-radius: 50%;
  animation: stream-spin 1s linear infinite;
}

@keyframes stream-spin {
  to { transform: rotate(360deg); }
}

/* Hide loader when ready */
.stream-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-text{
	color:#c6cae9;
	font-weight: 500;
}
.stream-loader.is-gone {
  display: none;
}

/* ─────────────────────────────────────────────
   Comments (notice page)
   ───────────────────────────────────────────── */

#comments { scroll-margin-top: 140px; }

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0, 40, 80, 0.08);
}

.comment-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #002850;
  background: rgba(100, 167, 234, 0.18);
  border: 1px solid rgba(0, 40, 80, 0.10);
  flex: 0 0 44px;
  user-select: none;
}

.comment-name {
  font-weight: 600;
  color: #002850;
}

.comment-body {
  margin-top: 0.25rem;
  color: rgba(0, 0, 0, 0.75);
}

.recaptcha-wrap {
  transform-origin: left center;
}

/* Small screens: make recaptcha fit better */
@media (max-width: 420px) {
  .recaptcha-wrap {
    transform: scale(0.92);
  }
}

.pagination .page-link {
  color: #002850;
  border-color: rgba(0,40,80,0.12);
}
.pagination .page-item.active .page-link {
  background: rgba(100,167,234,0.22);
  border-color: rgba(100,167,234,0.35);
  color: #002850;
}


/* Soft alerts */
.alert-success-soft {
  background: rgba(100, 167, 234, 0.15); /* brand light blue */
  border: 1px solid rgba(100, 167, 234, 0.35);
  color: #002850;
  border-radius: 12px;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.alert-success-soft::before {
  content: "\f058"; /* fa-circle-check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #64a7ea;
  margin-top: 2px;
}

/* Error variant */
.alert-error-soft {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.35);
  color: #842029;
  border-radius: 12px;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.alert-error-soft::before {
  content: "\f06a"; /* fa-triangle-exclamation */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #dc3545;
  margin-top: 2px;
}


/* ================================
  Casket Urn page
   ================================ */

   
.cu-chip.is-active {
  border-color: var(--fd-brand, var(--brand, currentColor));
  color: #f5f7fa; 
  background-color: var(--brand-navy);
}

.cu-chip.is-active:hover {
  background-color: #64a7ea;
}

.bg-brand{
	    --bs-bg-opacity: 1;
    background-color: rgb(1 17 33) !important;
}

#cuMainImage {
  cursor: zoom-in;
}

/* ================================
  About page
   ================================ */
   
/* Custom Bootstrap ratio: 4x5 portrait */
.ratio-4x5 {
  --bs-aspect-ratio: 125%;
}   

/* Subtle hover elevation for team cards */
.cu-team-card {
  cursor: pointer;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.cu-team-card:hover,
.cu-team-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .cu-team-card {
    transition: none;
  }
  .cu-team-card:hover,
  .cu-team-card:focus-visible {
    transform: none;
  }
}

/* ================================
  Arrangement Form page
   ================================ */
   
 /* Step 13 Dropzone */
    .pt-dropzone{
      border:2px dashed rgba(0,0,0,.25);
      border-radius:14px;
      padding:18px;
      background:rgba(0,0,0,.02);
      cursor:pointer;
      transition:.15s ease;
      user-select:none;
    }
    .pt-dropzone:hover{ background:rgba(0,0,0,.03); }
    .pt-dropzone.is-dragover{
      border-color:rgba(13,110,253,.55);
      background:rgba(13,110,253,.06);
    }
    .pt-dropzone-inner{ text-align:center; }
    .pt-dropzone-title{ font-weight:600; font-size:1.05rem; margin-bottom:6px; }
    .pt-dropzone-sub{ opacity:.7; margin:6px 0; }
    .pt-dropzone-hint{ opacity:.75; font-size:.9rem; margin-top:10px; }
	
	
/* ================================
 Forms page
================================ */
	
	.card-click{
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-click:hover{
  transform: translateY(-3px);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.12),
    0 12px 28px rgba(0,0,0,0.08);
}

.card-click:hover .h6{
  text-decoration: underline;
}