/* =========================================================
   Prapatra Seva — Design Tokens
   Palette: deep official navy + aged-document gold + cream paper
   Type: Playfair Display (display/serif) + Inter (body/utility)
   Signature: dashed "official seal" numbering badge used for the
   27 cataloged services — because the content really is a numbered
   register of certificates, so the marker earns its keep.
   ========================================================= */

:root{
  --navy-deep:   #0C2038;
  --navy:        #14304D;
  --navy-soft:   #1F4E79;
  --gold:        #B8893D;
  --gold-light:  #D9B36C;
  --cream:       #F7F3E9;
  --paper:       #FBF9F3;
  --ink:         #20242B;
  --slate:       #5B6472;
  --line:        #E4DCC8;
  --danger:      #9C3B3B;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html{ scroll-behavior:smooth; }

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4,.font-display{
  font-family: var(--font-display);
  letter-spacing: 0.2px;
}

a{ text-decoration:none; }

::selection{ background: var(--gold-light); color: var(--navy-deep); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .nav-link:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* =========================================================
   Subtle background texture — faint ruled-ledger lines,
   evocative of legal paper without using stock imagery.
   ========================================================= */
.paper-texture{
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(20,48,77,0.035) 0px, rgba(20,48,77,0.035) 1px, transparent 1px, transparent 34px);
}

.navy-texture{
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(184,137,61,0.14), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(184,137,61,0.10), transparent 45%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 22px);
}

/* =========================================================
   Navbar
   ========================================================= */
.navbar-brand-mark{
  display:inline-block;
  width:46px; height:46px;
  min-width:46px;
  object-fit:contain;
  margin-right:10px;
}
/* Sharpened logo render, with a border so it reads as a distinct
   plaque against the matching cream navbar rather than blending away.
   Sized tall enough that the icon row and tagline stay legible. */
.navbar-brand-mark-full{
  width:auto;
  height:92px;
  min-width:0;
  display:block;
  padding: 5px 12px;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(12,32,56,0.10);
}
@media (max-width: 991.98px){
  .navbar-brand-mark-full{ height:76px; }
}
@media (max-width: 575.98px){
  .navbar-brand-mark-full{ height:64px; padding:4px 9px; }
}
/* Footer keeps the mark deliberately small and unobtrusive */
.site-footer .navbar-brand-mark{
  width:34px; height:34px; min-width:34px;
  margin-right:8px;
}

.site-navbar{
  background: #FBF9F4;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(12,32,56,0.06);
}

.site-navbar .navbar-brand{
  font-family: var(--font-display);
  font-weight:700;
  font-size:1.28rem;
  color: var(--navy-deep);
}
.site-navbar .navbar-brand small{
  display:block;
  font-family: var(--font-body);
  font-size:0.62rem;
  letter-spacing:2px;
  text-transform:uppercase;
  color: var(--gold);
  font-weight:600;
}

.site-navbar .nav-link{
  color: var(--navy);
  font-weight:600;
  font-size:0.94rem;
  padding: 0.5rem 1rem !important;
  position:relative;
}
.site-navbar .nav-link:hover{ color: var(--gold); }
.site-navbar .nav-link.active{ color: var(--navy-deep); }
.site-navbar .nav-link.active::after{
  content:"";
  position:absolute;
  left:1rem; right:1rem; bottom:0.15rem;
  height:2px;
  background: var(--gold);
}
/* Dark hamburger bars — the default Bootstrap icon assumes a dark navbar */
.site-navbar .navbar-toggler{
  border-color: rgba(20,48,77,0.25);
}
.site-navbar .navbar-toggler-icon{
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(20, 48, 77, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 991.98px){
  .site-navbar .navbar-collapse{
    background:#FBF9F4;
    margin-top:0.75rem;
    padding-top:0.5rem;
    border-top:1px solid var(--line);
  }
}

.btn-seal{
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--navy-deep);
  font-weight:600;
  padding: 0.55rem 1.35rem;
  border-radius: 2px;
}
.btn-seal:hover{
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-deep);
}
.btn-seal-outline{
  background:transparent;
  border:1.5px solid var(--gold-light);
  color: var(--cream);
  font-weight:600;
  padding: 0.5rem 1.3rem;
  border-radius:2px;
}
.btn-seal-outline:hover{
  background: rgba(184,137,61,0.15);
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* =========================================================
   Hero / Carousel
   ========================================================= */
.hero-carousel{
  border-bottom: 4px solid var(--gold);
}
.hero-slide{
  min-height: 78vh;
  display:flex;
  align-items:center;
  position:relative;
}
.hero-slide::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(115deg, rgba(12,32,56,0.94) 0%, rgba(12,32,56,0.80) 45%, rgba(12,32,56,0.55) 100%);
  z-index:0;
}
.hero-slide-1{ background: var(--navy-deep)
  radial-gradient(circle at 80% 20%, rgba(184,137,61,0.22), transparent 40%),
  radial-gradient(circle at 15% 85%, rgba(31,78,121,0.55), transparent 45%); }
.hero-slide-2{ background: var(--navy-deep)
  radial-gradient(circle at 20% 25%, rgba(184,137,61,0.20), transparent 42%),
  radial-gradient(circle at 85% 80%, rgba(31,78,121,0.55), transparent 45%); }
.hero-slide-3{ background: var(--navy-deep)
  radial-gradient(circle at 50% 15%, rgba(184,137,61,0.20), transparent 45%),
  radial-gradient(circle at 90% 90%, rgba(31,78,121,0.5), transparent 45%); }

.hero-slide .container{ position:relative; z-index:1; }

.hero-eyebrow{
  letter-spacing:3px;
  text-transform:uppercase;
  font-size:0.78rem;
  color: var(--gold-light);
  font-weight:600;
}
.hero-slide h1{
  color: var(--cream);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height:1.15;
  max-width: 720px;
}
.hero-slide p.lead{
  color: rgba(247,243,233,0.85);
  max-width: 560px;
}

.carousel-indicators{
  margin-bottom: 1.4rem;
}
.carousel-indicators [data-bs-target]{
  background-color: var(--gold-light);
  width:10px; height:10px; border-radius:50%;
  opacity:0.5;
}
.carousel-indicators .active{ opacity:1; }

/* Controls are pinned to the bottom-right corner (not vertically centered)
   so they never sit behind wrapped heading text at any viewport width. */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next{
  top: auto;
  bottom: 22px;
  height: 50px;
  width: 50px;
  opacity: 1;
}
.hero-carousel .carousel-control-prev{ left: auto; right: 88px; }
.hero-carousel .carousel-control-next{ right: 24px; }
.carousel-control-prev-icon, .carousel-control-next-icon{
  filter: none;
  background-color: rgba(184,137,61,0.55);
  border-radius:50%;
  width:44px; height:44px;
  padding:1.4rem;
  background-size:45%;
}
.hero-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-carousel .carousel-control-next:hover .carousel-control-next-icon{
  background-color: var(--gold);
}

/* Hero illustration frame */
.hero-visual{
  --size: 300px;
  width: var(--size); height: var(--size);
  border-radius:50%;
  border: 1.5px dashed rgba(217,179,108,0.55);
  display:flex; align-items:center; justify-content:center;
  position:relative;
  background: radial-gradient(circle, rgba(217,179,108,0.08) 0%, transparent 70%);
}
.hero-visual::before{
  content:"";
  position:absolute; inset:16px;
  border-radius:50%;
  border: 1px solid rgba(247,243,233,0.18);
}
.hero-visual-svg{ width: 68%; height:68%; position:relative; z-index:1; }
@media (max-width: 1200px){
  .hero-visual{ --size:250px; }
}

/* =========================================================
   Seal / numbering badge — the signature motif
   Used on service cards (a real numbered register of 27 items)
   and section markers throughout.
   ========================================================= */
.seal-badge{
  --size: 54px;
  width: var(--size); height: var(--size);
  min-width: var(--size);
  border-radius:50%;
  border: 1.5px dashed var(--gold);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display);
  font-weight:700;
  color: var(--gold);
  background: rgba(184,137,61,0.06);
  position:relative;
}
.seal-badge::after{
  content:"";
  position:absolute; inset:5px;
  border-radius:50%;
  border: 1px solid rgba(184,137,61,0.35);
}
.seal-badge span{ position:relative; z-index:1; font-size:1.05rem; }

/* =========================================================
   Section headers
   ========================================================= */
.section-eyebrow{
  letter-spacing:3px;
  text-transform:uppercase;
  font-size:0.76rem;
  font-weight:600;
  color: var(--navy-soft);
}
.section-eyebrow.on-dark{ color: var(--gold-light); }

.section-title{
  color: var(--navy-deep);
  font-weight:700;
}
.section-title.on-dark{ color: var(--cream); }

.title-rule{
  width:56px; height:3px;
  background: var(--gold);
  display:inline-block;
  margin: 0.6rem 0 1rem;
}

/* =========================================================
   Cards
   ========================================================= */
.card-doc{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.6rem;
  height:100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card-doc:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(12,32,56,0.10);
  border-color: var(--gold-light);
}

.card-doc h3, .card-doc h5{
  color: var(--navy-deep);
}

/* Service register card (services.html) */
.service-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  padding: 1.15rem 1.25rem;
  display:flex;
  align-items:flex-start;
  gap:1rem;
  height:100%;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.service-card:hover{
  box-shadow: 0 10px 22px rgba(12,32,56,0.09);
  border-color: var(--gold-light);
  transform: translateY(-3px);
}
.service-card .seal-badge{ --size:44px; font-size:0.9rem; flex-shrink:0; }
.service-card h3{
  font-size:1.02rem;
  font-family: var(--font-body);
  font-weight:700;
  color: var(--navy-deep);
  margin-bottom:0.25rem;
}
.service-card p{
  font-size:0.87rem;
  color: var(--slate);
  margin-bottom:0;
  line-height:1.5;
}
.service-card i{ color: var(--gold); font-size:1.05rem; }

/* =========================================================
   Scrolling services strip (home page)
   Continuous marquee — pauses on hover/focus, and degrades to a
   plain swipeable/scrollable row when motion is reduced.
   ========================================================= */
.services-marquee-wrap{
  overflow:hidden;
  position:relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.services-marquee-wrap:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.services-marquee-track{
  display:flex;
  gap:1.25rem;
  width:max-content;
  animation: services-scroll 34s linear infinite;
}
.services-marquee-wrap:hover .services-marquee-track,
.services-marquee-wrap:focus-within .services-marquee-track{
  animation-play-state: paused;
}
@keyframes services-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
.service-mini-card{
  flex: 0 0 260px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  padding:1.5rem 1.4rem;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.service-mini-card:hover{
  box-shadow: 0 12px 26px rgba(12,32,56,0.10);
  border-color: var(--gold-light);
  transform: translateY(-3px);
}
.service-mini-icon{
  width:48px; height:48px;
  border-radius:50%;
  background: var(--navy-deep);
  color: var(--gold-light);
  display:flex; align-items:center; justify-content:center;
  font-size:1.2rem;
  margin-bottom:1rem;
}
.service-mini-card h3{
  font-size:1rem;
  font-family: var(--font-body);
  font-weight:700;
  color: var(--navy-deep);
  margin-bottom:0.4rem;
}
.service-mini-card p{
  font-size:0.86rem;
  color: var(--slate);
  margin-bottom:0;
  line-height:1.5;
}

@media (prefers-reduced-motion: reduce){
  .services-marquee-track{
    animation: none;
  }
  .services-marquee-wrap{
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scroll-snap-type: x proximity;
    padding-bottom: 0.5rem;
  }
  .service-mini-card{ scroll-snap-align: start; }
  .services-marquee-wrap [aria-hidden="true"]{ display:none; }
}

/* Category divider on services page */
.category-band{
  background: var(--navy-deep);
  color: var(--cream);
  padding: 0.55rem 1.1rem;
  border-radius:3px;
  display:inline-flex;
  align-items:center;
  gap:0.55rem;
  font-family: var(--font-display);
  font-weight:700;
  font-size:1.02rem;
  border-left: 4px solid var(--gold);
}

/* =========================================================
   About page — vision / mission
   ========================================================= */
.pillar-card{
  border: 1px solid var(--line);
  background:#fff;
  border-radius:4px;
  padding:2rem;
  height:100%;
  position:relative;
}
.pillar-card::before{
  content:"";
  position:absolute; top:14px; left:14px; right:14px; bottom:14px;
  border:1px solid var(--line);
  pointer-events:none;
}
.pillar-icon{
  width:52px; height:52px;
  border-radius:50%;
  background: var(--navy-deep);
  color: var(--gold-light);
  display:flex; align-items:center; justify-content:center;
  font-size:1.3rem;
  margin-bottom:1.1rem;
}

.value-row{ border-top:1px solid var(--line); padding: 1.1rem 0; }
.value-row:first-child{ border-top:none; }

/* Page hero band for interior pages */
.page-band{
  padding: 4.2rem 0 3.4rem;
  border-bottom: 3px solid var(--gold);
}
.page-band h1{ color: var(--cream); }
.breadcrumb-plain a{ color: var(--gold-light); font-weight:600; }
.breadcrumb-plain span{ color: rgba(247,243,233,0.6); }

/* =========================================================
   Contact / Enquiry form
   ========================================================= */
.enquiry-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  padding: 2.2rem;
}
.enquiry-panel label{
  font-weight:600;
  font-size:0.86rem;
  color: var(--navy-deep);
  margin-bottom:0.35rem;
}
.enquiry-panel .form-control{
  border-radius:3px;
  border:1px solid #CBD3DC;
  padding:0.6rem 0.8rem;
}
.enquiry-panel .form-control:focus{
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(184,137,61,0.18);
}

.contact-info-card{
  background: var(--navy-deep);
  color: var(--cream);
  border-radius:4px;
  padding:2.2rem;
  height:100%;
}
.contact-info-card .info-row{
  display:flex;
  gap:0.9rem;
  align-items:flex-start;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(184,137,61,0.25);
}
.contact-info-card .info-row:first-of-type{ border-top:none; }
.contact-info-card i{ color: var(--gold-light); font-size:1.15rem; margin-top:0.15rem; }

#enquiryFeedback.d-block{ animation: fadeIn 0.3s ease; }
@keyframes fadeIn{ from{opacity:0; transform:translateY(-4px);} to{opacity:1; transform:translateY(0);} }

/* =========================================================
   Stats strip
   ========================================================= */
.stat-num{
  font-family: var(--font-display);
  font-weight:700;
  font-size:2.2rem;
  color: var(--navy-deep);
}
.stat-label{
  font-size:0.82rem;
  color: var(--slate);
  text-transform:uppercase;
  letter-spacing:1px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background: var(--navy-deep);
  color: rgba(247,243,233,0.75);
  padding: 3rem 0 1.4rem;
}
.site-footer h6{
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight:700;
  letter-spacing:0.5px;
  margin-bottom:1rem;
}
.site-footer a{ color: rgba(247,243,233,0.72); }
.site-footer a:hover{ color: var(--gold-light); }
.footer-bottom{
  border-top:1px solid rgba(184,137,61,0.25);
  margin-top:2rem;
  padding-top:1.2rem;
  font-size:0.82rem;
  color: rgba(247,243,233,0.55);
}
.social-dot{
  width:34px; height:34px;
  border:1px solid rgba(184,137,61,0.45);
  border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  color: var(--gold-light);
  margin-right:0.5rem;
}
.social-dot:hover{ background: rgba(184,137,61,0.15); }

/* Utility */
.text-gold{ color: var(--gold) !important; }
.bg-cream{ background: var(--cream) !important; }

/* =========================================================
   Floating WhatsApp button
   ========================================================= */
.whatsapp-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 1.7rem;
  box-shadow: 0 8px 22px rgba(12,32,56,0.35);
  z-index: 1050;
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.whatsapp-float:hover{
  background: #1DA851;
  color: #fff;
}
.whatsapp-float i{ line-height:1; }
@keyframes wa-pulse{
  0%, 100% { box-shadow: 0 8px 22px rgba(12,32,56,0.35), 0 0 0 0 rgba(37,211,102,0.45); }
  50% { box-shadow: 0 8px 22px rgba(12,32,56,0.35), 0 0 0 10px rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce){
  .whatsapp-float{ animation: none; }
}
@media (max-width: 576px){
  .whatsapp-float{ right:16px; bottom:16px; width:52px; height:52px; font-size:1.5rem; }
}
