/* ==========================================================================
   VICO FUNERAL SERVICES — SITE STYLESHEET
   Sky-blue palette with a complementary warm-orange shadow motif that
   threads consistently from the header, through every card and section,
   down to the footer. All copy text is black; icon glyphs and icon
   containers keep their original colouring so they stay visible/on-brand.

   HOVER RULE (applies site-wide, every page): cards never change
   background/text/icon colour on hover. The ONLY thing that changes on
   hover is the drop shadow ("underglow") + a small lift. This is enforced
   below in section 8 with high-specificity rules so it holds even if a
   page wraps a card in an <a> tag (e.g. clickable contact cards).
   ========================================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
:root{
    /* Core palette — Sky Blue */
    --navy:        #12445a;   /* primary — sky blue */
    --navy-deep:   #0C4A6E;   /* deep sky blue, for gradients/shadows/contrast text on light accents */
    --navy-soft:   #ffffff;   /* mid sky blue, for gradients */
    --blue:        #04151d;   /* accent blue (icons, decorative accents) */
    --blue-light:  #E0F2FE;   /* pale sky blue tint */
    --accent:      #fffdfd;   /* icon / decorative accent — sky blue */
    --accent-soft: #BAE6FD;   /* pale tint of accent */

    /* Complementary colour — used ONLY for shadows (per design brief) */
    --complement:      #020202;               /* warm orange, complementary to sky blue */
    --complement-a35:  rgba(5, 5, 5, 0.3);
    --complement-a25:  rgba(0, 0, 0, 0.22);
    --complement-a15:  rgba(1, 1, 1, 0.15);

    --pale:        #F0F9FF;   /* "bg-pale" pale sky tint */
    --grey-light:  #F1F8FE;   /* "bg-grey" */
    --grey-mid:    #CFE8FB;   /* borders / dividers */
    --white:       #FFFFFF;

    /* All copy text is black; icons are excluded from this and keep
       their own colours (see icon rules further down). */
    --text:        #000000;
    --text-muted:  #fffefe;
    --text-on-navy: rgba(255,255,255,.95);
    --text-on-navy-muted: rgba(255,255,255,.80);
  
        /* Type */
    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body:    'Work Sans', 'Segoe UI', sans-serif;
    --font-label:   'Work Sans', 'Segoe UI', sans-serif;
  
    /* Shape & motion */
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    /* Shadows now carry the complementary orange tone, applied uniformly
       to every card, the navbar and the footer, header-to-footer. */
    --shadow-soft: 0 16px 40px -12px var(--complement-a35);
    --shadow-card: 0 8px 24px -10px var(--complement-a25);
    --ease: cubic-bezier(.22,.68,0,1);
  }
  
  @media (prefers-reduced-motion: reduce){
    *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior:auto !important; }
  }
  
  /* ---------- 2. BASE ---------- */
  html{ scroll-behavior:smooth; }
  body{
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  h1,h2,h3,h4,h5,h6{
    font-family: var(--font-display);
    color: var(--text);
    font-weight: 600;
    letter-spacing: -.01em;
  }
  h1{ font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 700; line-height: 1.12; }
  h2{ font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.2; }
  h3{ font-size: 1.2rem; }
  p{ color: var(--text); line-height: 1.7; }
  p.lead{ font-family: var(--font-body); font-weight: 400; font-size: 1.1rem; color: var(--text); }
  a{ color: var(--text); text-decoration: none; transition: color .2s var(--ease); }
  a:hover{ color: var(--navy); }
  .small, small{ color: var(--text); }
  
  .container-xl{ max-width: 1240px; }
  
  section{ padding: 5.5rem 0; position: relative; }
  .section-tight{ padding: 2.75rem 0; }
  
  .bg-grey{ background: var(--grey-light); }
  .bg-pale{ background: var(--pale); }
  .bg-navy{
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--text-on-navy);
    /* thread the complementary shadow motif through dark sections too */
    box-shadow: inset 0 12px 30px -18px var(--complement-a15);
  }
  /* Text on dark navy sections stays white for readability/contrast;
     everywhere else on light backgrounds, text is black per the brief. */
  .bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4{ color: var(--white); }
  .bg-navy p{ color: var(--text-on-navy-muted); }
  .bg-navy .small, .bg-navy small{ color: var(--text-on-navy-muted); }
  
  .service-puzzle-grid{
    display:grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 170px;
    gap: 1rem;
  }

  .puzzle-item{
    position:relative;
    overflow:hidden;
    border-radius: 24px;
    grid-column: span 4;
    min-height: 210px;
    box-shadow: var(--shadow-card);
    isolation:isolate;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  }

  .puzzle-item--wide{ grid-column: span 6; }
  .puzzle-item--tall{ grid-row: span 2; }

  .puzzle-item img{
    width:100%;
    height:100%;
    object-fit: cover;
    display:block;
    transform: scale(1.02);
    transition: transform .4s var(--ease), filter .4s var(--ease);
    filter: saturate(.9) contrast(1.04);
  }

  .puzzle-overlay{
    position:absolute;
    inset:auto 0 0 0;
    padding: 1rem 1.1rem 1.05rem;
    background: linear-gradient(180deg, rgba(12,74,110,0) 0%, rgba(12,74,110,0.9) 100%);
    color: var(--white);
    z-index:1;
  }

  .puzzle-kicker{
    display:inline-block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(255,255,255,.8);
    margin-bottom: .3rem;
  }

  .puzzle-overlay h3{
    font-size: clamp(1.05rem, 1.5vw, 1.4rem);
    margin: 0;
    color: var(--white);
  }

  .puzzle-item:hover,
  .puzzle-item:focus-within{
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -16px var(--complement-a35);
  }

  .puzzle-item:hover img,
  .puzzle-item:focus-within img{
    transform: scale(1.08);
    filter: saturate(1) contrast(1.06);
  }

  @media (max-width: 991px){
    .service-puzzle-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
    .puzzle-item, .puzzle-item--wide, .puzzle-item--tall{ grid-column: span 1; grid-row: span 1; }
  }

  @media (max-width: 575px){
    .service-puzzle-grid{ grid-template-columns: 1fr; }
    .puzzle-item, .puzzle-item--wide, .puzzle-item--tall{ grid-column: span 1; }
  }
  
  .text-navy{ color: var(--text) !important; }
  .text-blue{ color: var(--blue) !important; } /* used on an icon glyph — left as-is */
  .text-muted{ color: var(--text) !important; }
  
  .rounded-xl{ border-radius: var(--radius-lg) !important; overflow: hidden; }
  .shadow-soft{ box-shadow: var(--shadow-soft); }
  
  .eyebrow{
    display:inline-flex; align-items:center; gap:.5em;
    font-family: var(--font-label);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text);
  }
  .eyebrow::before{
    content:''; width: 18px; height: 2px; border-radius: 2px;
    background: var(--accent); display:inline-block;
  }
  
  /* ---------- 3. BUTTONS ---------- */
  .btn{
    font-family: var(--font-label);
    font-weight: 600;
    font-size: .92rem;
    letter-spacing: .02em;
    padding: .7rem 1.6rem;
    border-radius: 100px;
    border: 2px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  }
  .btn-lg{ padding: .95rem 2.1rem; font-size: .98rem; }
  .btn-sm{ padding: .45rem 1.1rem; font-size: .8rem; }
  
  .btn-primary{
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text);
  }
  .btn-primary:hover, .btn-primary:focus{
    background: var(--navy-soft);
    border-color: var(--navy-soft);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -8px var(--complement-a35);
  }
  
  .btn-outline-navy{
    background: transparent;
    border-color: var(--navy);
    color: var(--text);
  }
  .btn-outline-navy:hover{
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -8px var(--complement-a25);
  }
  
  .btn-outline-light{
    background: transparent;
    border-color: rgba(255,255,255,.55);
    color: var(--white);
  }
  .btn-outline-light:hover{
    background: var(--white);
    border-color: var(--white);
    color: var(--text);
    transform: translateY(-2px);
  }
  
  .btn:focus-visible{ outline: 3px solid var(--complement); outline-offset: 2px; }
  
  /* ---------- 4. LOADING SCREEN ---------- */
  #loading-screen{
    position: fixed; inset:0; z-index: 2000;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap: 1.25rem;
    background: var(--navy);
    transition: opacity .5s var(--ease), visibility .5s var(--ease);
  }
  #loading-screen img{ width: 140px; height:140px; border-radius: 16px; object-fit:contain; }
  #loading-screen .bar{
    width: 160px; height: 4px; border-radius: 4px;
    background: rgba(255,255,255,.15); overflow:hidden; position:relative;
  }
  #loading-screen .bar::after{
    content:''; position:absolute; inset:0; width:40%;
    background: var(--complement); border-radius:4px;
    animation: loadbar 1.1s var(--ease) infinite;
  }
  @keyframes loadbar{
    0%{ transform: translateX(-100%); }
    100%{ transform: translateX(280%); }
  }
  #loading-screen.is-hidden{ opacity:0; visibility:hidden; pointer-events:none; }
  #loading-screen{ animation: force-hide-loader 0s 4s forwards; }
  @keyframes force-hide-loader{ to{ opacity:0; visibility:hidden; pointer-events:none; } }
  
  /* ---------- 5. NAVBAR (header — shadow motif starts here) ---------- */
  .vico-navbar{
    position: sticky; top:0; z-index: 1030;
    background: var(--white);
    padding: .9rem 0;
    transition: box-shadow .3s var(--ease), padding .3s var(--ease);
    box-shadow: 0 6px 22px -10px var(--complement-a25);
  }
  .vico-navbar.is-scrolled{
    padding: .55rem 0;
    box-shadow: 0 10px 30px -14px var(--complement-a35);
  }
  .navbar-brand{ gap:.65rem; }
  .navbar-brand img{ width: 80px; height:80px; border-radius: 20px; object-fit:contain; }
  .navbar-brand-text{
    font-family: var(--font-display); font-weight:700; font-size: 1.05rem; color: var(--text);
  }
  .nav-link{
    font-family: var(--font-label);
    font-size: .88rem; font-weight: 600;
    color: var(--text) !important;
    padding: .55rem .95rem !important;
    border-radius: 8px;
    position: relative;
  }
  .nav-link:hover, .nav-link:focus{ color: var(--text) !important; opacity:.7; }
  .nav-link.active{ color: var(--text) !important; }
  .nav-link.active::after{
    content:''; position:absolute; left:14px; right:14px; bottom:2px; height:2px;
    background: var(--accent); border-radius: 2px;
  }
  .navbar-nav .btn-primary{ padding:.6rem 1.3rem; }
  
  .mega{ }
  .mega-menu{
    position:absolute; top: calc(100% + 10px); left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 560px; max-width: 90vw;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 1.1rem;
    opacity:0; visibility:hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    z-index: 1040;
  }
  @media (min-width: 992px){
    .mega:hover > .mega-menu,
    .mega:focus-within > .mega-menu{
      opacity:1; visibility:visible; transform: translateX(-50%) translateY(0);
    }
  }
  .mega.is-open .mega-menu{ opacity:1; visibility:visible; transform: translateX(-50%) translateY(0); }
  .mega-link{
    display:flex; align-items:flex-start; gap:.85rem;
    padding: .7rem .75rem; border-radius: var(--radius-sm);
    color: var(--text); transition: background .2s var(--ease);
  }
  .mega-link:hover{ background: var(--blue-light); }
  /* icon container — left as-is */
  .mega-link i{
    width: 38px; height:38px; flex-shrink:0; border-radius: 10px;
    background: var(--navy); color: var(--white);
    display:flex; align-items:center; justify-content:center; font-size: .95rem;
  }
  .mega-link strong{ display:block; font-size: .9rem; color: var(--text); }
  .mega-link span span{ display:block; font-size: .78rem; color: var(--text); font-weight:400; }
  
  @media (max-width: 991.98px){
    .mega-menu{ position:static; width:100%; transform:none; opacity:1; visibility:visible; max-height:0; overflow:hidden; box-shadow:none; padding:0; transition: max-height .3s var(--ease), padding .3s var(--ease); }
    .mega.is-open .mega-menu{ max-height: 640px; padding: .6rem; margin-top:.25rem; background: var(--grey-light); }
    .navbar-collapse{ padding-top: .75rem; }
  }
  
  /* ---------- 6. HERO (home) — full-bleed image background ---------- */
.hero{
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: clamp(560px, 90vh, 760px);
  display: flex;
  align-items: center;
  color: var(--white);
}

/* full-screen image carousel sitting behind everything */
.hero-bg-media{
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg-media .hero-swiper,
.hero-bg-media .swiper-wrapper,
.hero-bg-media .swiper-slide{ height: 100%; }
.hero-bg-media .swiper-slide img{
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* dark scrim so white text always pops, regardless of the photo underneath */
.hero-overlay{
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(4,21,29,.72) 0%, rgba(4,21,29,.40) 45%, rgba(4,21,29,.78) 100%);
  pointer-events: none;
}

.hero .container-xl{ position: relative; z-index: 2; padding: 6rem 0 5rem; }

.hero h1{
  color: var(--white);
  text-shadow: 0 4px 24px rgba(0,0,0,.45);
}
.hero .lead{
  color: var(--white);
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
  max-width: 560px;
}

.hero-swiper-pagination{
  position: absolute; z-index: 2; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero-swiper-pagination .swiper-pagination-bullet{
  width: 9px; height: 9px; background: var(--white); opacity: .5; border-radius: 50%;
  cursor: pointer; transition: opacity .3s, transform .3s;
}
.hero-swiper-pagination .swiper-pagination-bullet-active{ opacity: 1; transform: scale(1.25); }

.shelter-divider{ display:block; width:100%; height:60px; fill: var(--white); position:absolute; left:0; bottom:-1px; z-index:2; margin-top:0; }

@media (max-width: 767.98px){
  .hero{ min-height: 78vh; text-align:center; }
  .hero .lead{ margin-left:auto; margin-right:auto; }
  .hero .d-flex.flex-wrap{ justify-content:center; }
}

.hero-logo{
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  z-index: 2;
  width: 500px;
  height: 500px;
  object-fit: contain;
}

@media (max-width: 991.98px){
  .hero-logo{ display: none; }
}

.hero-logo{
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  z-index: 2;
  width: 500px;
  height: 500px;
  object-fit: contain;
  perspective: 800px;
  animation: heroLogoSpin 6s linear infinite;
}

@keyframes heroLogoSpin{
  from{ transform: translateY(-50%) rotateY(0deg); }
  to{ transform: translateY(-50%) rotateY(360deg); }
}

@media (max-width: 991.98px){
  .hero-logo{ display: none; }
}
  
  /* ---------- 7. PAGE HERO (subpages) ---------- */
  .page-hero{
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--white);
    padding: 3.75rem 0 3rem;
    position: relative;
    box-shadow: inset 0 -20px 40px -30px var(--complement-a25);
  }
  .page-hero h1{ color: var(--white); }
  .breadcrumb-nav{ font-family: var(--font-label); font-size:.8rem; color: var(--text-on-navy-muted); }
  .breadcrumb-nav a{ color: var(--text-on-navy-muted); }
  .breadcrumb-nav a:hover{ color: var(--white); }
  .breadcrumb-nav span{ color: var(--accent-soft); }
  
  /* ---------- 8. FEATURE / SERVICE / PRICE CARDS ---------- */
  /* All card types below share one hover contract, enforced site-wide:
     hovering a card (whether it's a <div> or a clickable <a>) NEVER
     changes its background, text colour, or icon colour. The only
     hover feedback is the lift (translateY) + the "underglow" box-shadow.
     These rules are written with enough specificity to win even against
     a page-level <style> block that tries to recolour a hovered icon. */
  .feature-card,
  a.feature-card{
    background: var(--white);
    border: 1px solid var(--grey-mid);
    border-radius: var(--radius-md);
    padding: 1.9rem 1.6rem;
    height:100%;
    display:block;
    color: inherit;
    text-decoration: none;
    cursor: default;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  }
  a.feature-card{ cursor: pointer; }
  .feature-card:hover,
  .feature-card:focus-within,
  a.feature-card:hover,
  a.feature-card:focus{
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
    /* explicitly re-assert — nothing else about the card may change */
    background: var(--white) !important;
    color: inherit !important;
  }
  .feature-card h3,
  a.feature-card h3{ font-size: 1.05rem; margin: .2rem 0 .5rem; color: var(--text); }
  .feature-card p,
  a.feature-card p{ color: var(--text); margin-bottom:0; font-size:.94rem; }
  .feature-card:hover h3, .feature-card:hover p,
  a.feature-card:hover h3, a.feature-card:hover p,
  a.feature-card:focus h3, a.feature-card:focus p{ color: var(--text) !important; }

  /* icon container — left as-is, including on hover/focus of a parent card/link */
  .icon-wrap{
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--blue-light); color: var(--navy);
    display:flex; align-items:center; justify-content:center;
    font-size: 1.2rem; margin-bottom: 1rem;
    transition: none;
  }
  .bg-navy .icon-wrap{ background: rgba(255,255,255,.1); color: var(--accent); }
  .feature-card:hover .icon-wrap,
  a.feature-card:hover .icon-wrap,
  a.feature-card:focus .icon-wrap,
  .bg-navy .feature-card:hover .icon-wrap,
  .bg-navy a.feature-card:hover .icon-wrap{
    background: var(--blue-light) !important;
    color: var(--navy) !important;
  }
  .bg-navy .feature-card:hover .icon-wrap,
  .bg-navy a.feature-card:hover .icon-wrap{
    background: rgba(255,255,255,.1) !important;
    color: var(--accent) !important;
  }
  
  .service-card{
    border-radius: var(--radius-md);
    overflow:hidden; height:100%;
    box-shadow: var(--shadow-card);
    background: var(--white);
  }
  .service-head{
    display:flex; align-items:center; gap:.75rem;
    background: var(--navy); color: var(--white);
    padding: 1rem 1.25rem;
  }
  .service-head i{ font-size:1.1rem; color: var(--accent); } /* icon — left as-is */
  .service-body{ padding: 1.25rem 1.4rem; }
  .service-body ul{ list-style:none; padding:0; margin:0; }
  .service-body li{
    display:flex; align-items:flex-start; gap:.6rem;
    padding: .45rem 0; border-bottom: 1px dashed var(--grey-mid);
    font-size: .92rem; color: var(--text);
  }
  .service-body li:last-child{ border-bottom:none; }
  .service-body li i{ color: var(--blue); margin-top:.25rem; font-size:.8rem; } /* icon — left as-is */
  
  .price-card{
    background: var(--white);
    border: 1px solid var(--grey-mid);
    border-radius: var(--radius-md);
    padding: 1.9rem 1.6rem;
    text-align:center;
    height:100%;
    position:relative;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  }
  .price-card:hover{
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    background: var(--white);
    color: inherit;
  }
  .price-card.featured{
    border-color: var(--accent);
    box-shadow: 0 16px 34px -14px var(--complement-a35);
  }
  .price-card .badge-top{
    position:absolute; top:-13px; left:50%; transform:translateX(-50%);
    background: var(--accent); color: var(--navy-deep);
    font-family: var(--font-label); font-size:.7rem; font-weight:700; letter-spacing:.05em;
    text-transform:uppercase; padding:.35rem .9rem; border-radius:100px;
  }
  .price-card .amount{
    font-family: var(--font-display); font-weight:700; color: var(--text);
    font-size: 2.1rem; margin: .6rem 0 1rem;
  }
  .price-card .amount span{ font-family: var(--font-body); font-size:.85rem; font-weight:500; color: var(--text); margin-left:.25rem; }
  .price-card ul{ list-style:none; padding:0; margin:0 0 1.4rem; text-align:left; }
  .price-card li{ display:flex; align-items:flex-start; gap:.6rem; padding:.4rem 0; font-size:.9rem; color:var(--text); }
  .price-card li i{ color: var(--blue); margin-top:.2rem; } /* icon — left as-is */
  .price-card .icon-wrap{ margin: 0 auto 1rem; }
  
  /* ---------- 9. STATS ---------- */
  .stat-block{ padding: .5rem 0; }
  .stat-num{
    font-family: var(--font-display); font-weight:700; color: var(--accent);
    font-size: clamp(2rem, 4vw, 2.6rem); line-height:1;
  }
  .stat-label{
    font-family: var(--font-label); font-size:.8rem; letter-spacing:.04em;
    text-transform:uppercase; color: var(--text-on-navy-muted); margin-top:.5rem;
  }
  
  /* ---------- 10. TESTIMONIALS ---------- */
  .testi-card{
    background: var(--white); border: 1px solid var(--grey-mid);
    border-radius: var(--radius-md); padding: 2rem 1.75rem;
    height: 100%; box-shadow: var(--shadow-card);
  }
  .testi-card:hover{ background: var(--white); color: inherit; }
  .quote-icon{ color: var(--accent); font-size: 1.4rem; opacity:.8; margin-bottom: .75rem; } /* icon — left as-is */
  .testi-card p{ color: var(--text); font-size: .98rem; min-height: 96px; }
  .stars{ color: var(--accent); font-size: .85rem; margin: .5rem 0 1rem; } /* icon glyphs — left as-is */
  .who{ display:flex; align-items:center; gap:.75rem; }
  .who strong{ color: var(--text); font-size: .92rem; }
  /* avatar initial "icon" — left as-is */
  .initial{
    width: 42px; height:42px; border-radius:50%;
    background: var(--navy); color: var(--white);
    display:flex; align-items:center; justify-content:center;
    font-family: var(--font-display); font-weight:600;
  }
  .testimonial-swiper .swiper-slide{ height:auto; padding: 6px 4px 8px; }
  .testi-pagination .swiper-pagination-bullet{
    background: var(--grey-mid); opacity:1; width:9px; height:9px; margin: 0 4px;
  }
  .testi-pagination .swiper-pagination-bullet-active{ background: var(--accent); }
  
  /* ---------- 11. PARTNERS ---------- */
  .partner-strip{
    display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
    gap: 2.5rem; padding: 1.5rem 0;
  }
  .partner-logo{
    background: var(--white); border-radius: var(--radius-sm);
    padding: .75rem 1.25rem; box-shadow: var(--shadow-card);
  }
  .partner-logo img{ height: 40px; width:auto; object-fit:contain; filter: grayscale(15%); }

  /* Partner logo tiles — bounce in from the bottom on scroll (AOS-driven) */
[data-aos="bounce-up"]{
  opacity: 0;
  transform: translateY(60px);
}
[data-aos="bounce-up"].aos-animate{
  animation: partnerBounceIn .9s cubic-bezier(.28, 1.55, .42, 1) forwards;
}

@keyframes partnerBounceIn{
  0%   { opacity: 0; transform: translateY(60px); }
  55%  { opacity: 1; transform: translateY(-14px); }
  75%  { opacity: 1; transform: translateY(6px); }
  90%  { opacity: 1; transform: translateY(-3px); }
  100% { opacity: 1; transform: translateY(0); }
}
  
  /* ---------- 12. TIMELINE (about) ---------- */
  .timeline{ position:relative; padding-left: 2.25rem; }
  .timeline::before{
    content:''; position:absolute; left: 7px; top:6px; bottom:6px; width:2px;
    background: var(--grey-mid);
  }
  .timeline-item{ position:relative; padding-bottom: 2.25rem; }
  .timeline-item:last-child{ padding-bottom:0; }
  .timeline-item::before{
    content:''; position:absolute; left: -2.25rem; top: 4px;
    width: 16px; height:16px; border-radius:50%;
    background: var(--white); border: 3px solid var(--accent);
  }
  .timeline-item .year{
    font-family: var(--font-label); font-weight:700; font-size:.85rem;
    letter-spacing:.05em; color: var(--text); margin-bottom:.25rem;
  }
  .timeline-item h4{ margin-bottom:.35rem; color: var(--text); }
  .timeline-item p{ color: var(--text); margin-bottom:0; }
  
  /* ---------- 13. TEAM CARDS (about) ---------- */
  .team-card{
    background: var(--white); border:1px solid var(--grey-mid);
    border-radius: var(--radius-md); padding: 1.9rem 1.5rem;
    text-align:center; height:100%;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  }
  .team-card:hover{
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    background: var(--white);
    color: inherit;
  }
  /* avatar "icon" — left as-is */
  .avatar{
    width: 74px; height:74px; border-radius:50%;
    background: var(--blue-light); color: var(--navy);
    display:flex; align-items:center; justify-content:center;
    font-size: 1.6rem; margin: 0 auto 1rem;
  }
  .team-card:hover .avatar{ background: var(--blue-light); color: var(--navy); }
  .team-card h4{ font-size: 1rem; margin-bottom:.15rem; color: var(--text); }
  .team-card .role{
    font-family: var(--font-label); font-size:.72rem; letter-spacing:.06em;
    text-transform:uppercase; color: var(--text); font-weight:700; margin-bottom:.5rem;
  }
  
  /* ---------- 14. FORMS ---------- */
  .form-card{
    background: var(--white); border: 1px solid var(--grey-mid);
    border-radius: var(--radius-lg); padding: 2rem;
    box-shadow: var(--shadow-card);
  }
  .form-label{ font-family: var(--font-label); font-size:.82rem; font-weight:600; color: var(--text); margin-bottom:.4rem; }
  .form-control, .form-select{
    border: 1.5px solid var(--grey-mid); border-radius: var(--radius-sm);
    padding: .68rem .95rem; font-size:.94rem; background: var(--white);
    color: var(--text);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  }
  .form-control:focus, .form-select:focus{
    border-color: var(--navy); box-shadow: 0 0 0 3px var(--complement-a15); outline:none;
  }
  .form-check-input{ border-color: var(--grey-mid); }
  .form-check-input:checked{ background-color: var(--navy); border-color: var(--navy); }
  .form-check-input:focus{ box-shadow: 0 0 0 3px var(--complement-a15); }
  .form-check-label{ font-size:.92rem; color: var(--text); }
  
  .newsletter-form .form-control{
    border-radius: 100px 0 0 100px; border-right:none;
  }
  .newsletter-form button{
    border: none; background: var(--accent); color: var(--text);
    font-family: var(--font-label); font-weight:700; font-size:.82rem;
    padding: 0 1.35rem; border-radius: 0 100px 100px 0; cursor:pointer;
    transition: background .2s var(--ease);
  }
  .newsletter-form button:hover{ background: var(--navy-soft); }
  
  .star-rating{ display:flex; gap:.35rem; cursor:pointer; } /* icon group — left as-is */
  .star-rating i{ transition: color .15s var(--ease), transform .15s var(--ease); }
  .star-rating i.is-active{ color: var(--accent) !important; font-weight:900; transform: scale(1.08); }
  
  .form-alert-success{
    display:flex; align-items:center; gap:.6rem;
    background: var(--blue-light); color: var(--text);
    border-radius: var(--radius-sm); padding: .85rem 1rem;
    font-size: .9rem; margin-bottom: 1rem;
  }
  .form-alert-success i{ color: var(--blue); } /* icon — left as-is */
  
  /* ---------- 15. ACCORDION (FAQ) ---------- */
  .accordion-item{
    border: 1px solid var(--grey-mid) !important;
    border-radius: var(--radius-md) !important;
    overflow:hidden; margin-bottom: .9rem;
  }
  .accordion-button{
    font-family: var(--font-display); font-weight:600; font-size:.98rem;
    color: var(--text); background: var(--white); padding: 1.1rem 1.4rem;
  }
  .accordion-button:not(.collapsed){
    background: var(--blue-light); color: var(--text); box-shadow:none;
  }
  .accordion-button:focus{ box-shadow: 0 0 0 3px var(--complement-a15); }
  .accordion-button::after{ filter: none; } /* chevron icon — left as-is */
  .accordion-body{ padding: 1.1rem 1.4rem 1.4rem; color: var(--text); font-size:.94rem; }
  
  /* ---------- 16. BRANCH CARDS ---------- */
  .branch-card{
    background: var(--white);
    border: 1px solid var(--grey-mid);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.6rem;
    height:100%;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  }
  .branch-card:hover{
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    background: var(--white);
    color: inherit;
  }
  .branch-card h4{ font-size: 1.05rem; margin-bottom:.6rem; color: var(--text); }
  .branch-card p{ font-size: .9rem; margin-bottom:.5rem; color: var(--text); }
  
  /* ---------- 17. FOOTER (shadow motif ends here) ---------- */
  .site-footer{
    background: var(--navy-deep); color: var(--text-on-navy-muted);
    padding: 4rem 0 1.5rem;
    box-shadow: 0 -14px 34px -18px var(--complement-a35);
  }
  .site-footer h5{
    color: var(--white); font-family: var(--font-label); font-size:.85rem;
    letter-spacing:.06em; text-transform:uppercase; margin-bottom: 1.1rem;
  }
  .site-footer p{ color: var(--text-on-navy-muted); }
  .site-footer ul{ list-style:none; padding:0; margin:0; }
  .site-footer li{ margin-bottom:.65rem; font-size:.9rem; }
  .site-footer a{ color: var(--text-on-navy-muted); }
  .site-footer a:hover{ color: var(--accent-soft); }
  /* social icons — left as-is */
  .social-icons{ display:flex; gap:.6rem; }
  .social-icons a{
    width:38px; height:38px; border-radius:50%;
    background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15);
    display:flex; align-items:center; justify-content:center;
    color: var(--white); transition: background .2s var(--ease), transform .2s var(--ease);
  }
  .social-icons a:hover{ background: var(--accent); color: var(--navy-deep); transform: translateY(-3px); }
  
  .fsp-disclaimer{
    font-size: .78rem; color: var(--text-on-navy-muted);
    border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 1.25rem 0; margin: 2.5rem 0 1.5rem; line-height:1.6;
  }
  .bottom-bar{ font-size: .82rem; color: var(--text-on-navy-muted); }
  .bottom-bar a{ color: var(--text-on-navy-muted); }
  .bottom-bar a:hover{ color: var(--white); }
  
  /* ---------- 18. FLOATING UI ---------- */
  /* WhatsApp / back-to-top buttons act as icons — left as-is */
  .whatsapp-float{
    position: fixed; bottom: 24px; right: 24px; z-index: 1050;
    width: 56px; height:56px; border-radius:50%;
    background: #25D366; color: var(--white);
    display:flex; align-items:center; justify-content:center;
    font-size: 1.5rem; box-shadow: 0 12px 26px -8px var(--complement-a35);
    transition: transform .25s var(--ease);
  }
  .whatsapp-float:hover{ transform: scale(1.08); color: var(--white); }
  
  .back-to-top{
    position: fixed; bottom: 24px; left: 24px; z-index: 1050;
    width: 46px; height:46px; border-radius:50%;
    background: var(--navy); color: var(--white); border:none;
    display:flex; align-items:center; justify-content:center;
    box-shadow: var(--shadow-card);
    opacity:0; visibility:hidden; transform: translateY(10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    cursor:pointer;
  }
  .back-to-top.is-visible{ opacity:1; visibility:visible; transform:none; }
  .back-to-top:hover{ background: var(--navy-soft); color: var(--white); }
  
  /* ---------- 19. MODALS ---------- */
  .modal-content{ border-radius: var(--radius-lg); border:none; box-shadow: var(--shadow-soft); }
  .modal-title{ font-family: var(--font-display); color: var(--text); }
  .btn-close:focus{ box-shadow: 0 0 0 3px var(--complement-a15); }
  
  /* ---------- 20. MISC / RESPONSIVE ---------- */
  .badge.bg-navy{ background: var(--navy) !important; font-weight:600; color: var(--white); }
  .badge.bg-light{ font-weight:500; color: var(--text); }
  
  @media (max-width: 767.98px){
    section{ padding: 3.5rem 0; }
    .hero{ padding: 3rem 0 2.5rem; text-align:center; }
    .hero .d-flex.flex-wrap{ justify-content:center; }
    .hero-image-wrap{ margin-top: 2.5rem; }
    .hero-stat-float{ left: 50%; transform: translateX(-50%); bottom:-1.25rem; width: 88%; text-align:center; }
    .whatsapp-float{ width:50px; height:50px; bottom:18px; right:18px; font-size:1.3rem; }
    .back-to-top{ width:42px; height:42px; bottom:18px; left:18px; }
    .partner-strip{ gap: 1.25rem; }
  }

  /* ============ PARTNER LOGOS — EXTRA LARGE & RESPONSIVE ============ */
.partner-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding: 1rem 0;
  }
  
  .partner-logo {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(160px, 22vw, 260px);
  }
  
  .partner-logo img {
    width: 100%;
    height: auto;
    max-height: clamp(90px, 12vw, 150px);
    object-fit: contain;
    filter: grayscale(0%);
    transition: transform 0.3s ease;
  }
  
  .partner-logo img:hover {
    transform: scale(1.05);
  }
  
  @media (max-width: 767px) {
    .partner-strip {
      gap: 2rem;
    }
    .partner-logo {
      width: 45%;
    }
    .partner-logo img {
      max-height: 80px;
    }
  }
  
  @media (max-width: 480px) {
    .partner-logo {
      width: 100%;
    }
  }

  /* ==========================================================
   Mega-menu mobile responsiveness fix
   Only applies below the navbar-expand-lg breakpoint (992px)
   so desktop hover behaviour is completely untouched.
   ========================================================== */
@media (max-width: 991.98px) {
  .vico-navbar .mega-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0.25rem 0 0.5rem !important;
    padding: 0.75rem !important;
    box-shadow: none !important;
    border-radius: 10px !important;
    background: rgba(0,0,0,0.03);
  }

  .vico-navbar .mega-menu .row {
    display: block !important;
    margin: 0 !important;
  }

  .vico-navbar .mega-menu .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
  }

  .vico-navbar .mega-link {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }

  .vico-navbar .mega-link span span {
    white-space: normal !important;
  }
}

/* Back-to-top button hover state override */
.back-to-top:hover {
  background-color: #ADD8E6 !important; /* light blue */
  border-color: #ADD8E6 !important;
}

.back-to-top:hover i {
  color: #0B1F3A !important; /* navy arrow, matches your theme-color */
}