/**
 * BISHNUJEET ROYAL HOMES DESIGN SYSTEM
 * Exact palette from bishnujeet-royal-homes.vercel.app
 *
 * Brand Palette:
 * - Navy Deep: #08122f
 * - Navy: #0f1f4f
 * - Navy 2: #172a5e
 * - Royal Gold: #c9a24a
 * - Gold Light: #e8d29a
 * - Gold Dark: #a8822a
 * - Warm Paper Canvas: #fbf8f1
 * - Warm Parchment Alt: #f3eee2
 * - Line / Border: #e6dccb
 * - Charcoal Ink: #1d2330
 * - Muted Slate: #5d6573
 */

:root {
  --navy: #0f1f4f;
  --navy-deep: #08122f;
  --navy-2: #172a5e;
  --gold: #c9a24a;
  --gold-light: #e8d29a;
  --gold-dark: #a8822a;
  --paper: #fbf8f1;
  --card: #ffffff;
  --line: #e6dccb;
  --ink: #1d2330;
  --muted: #5d6573;
  --earth: #c98a5e;
  --green: #1f7a4a;
  --red: #b03a2e;

  --kaji-orange: #c9a24a;
  --kaji-orange-hover: #e8d29a;
  --kaji-orange-light: rgba(201, 162, 74, 0.14);
  --kaji-orange-border: rgba(201, 162, 74, 0.35);
  
  --kaji-gray: #5d6573;
  --kaji-gray-light: #c9d1e2;
  --kaji-gray-soft: #fbf8f1;
  --kaji-gray-border: #e6dccb;

  --kaji-white: #ffffff;
  --kaji-dark: #08122f;
  --kaji-dark-soft: #0f1f4f;
  --kaji-dark-card: #172a5e;
  --kaji-text-muted: #5d6573;

  --kaji-font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --kaji-font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --kaji-font-np: 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', sans-serif;
  
  /* Centralized Typography Scale (Body 14-16px, Nav 13-15px, Section 22-28px, Page H1 26-36px) */
  --kaji-fs-h1: clamp(26px, 3.2vw, 36px);
  --kaji-fs-h2: clamp(22px, 2.5vw, 28px);
  --kaji-fs-h3: clamp(18px, 1.8vw, 22px);
  --kaji-fs-h4: clamp(16px, 1.4vw, 18px);
  --kaji-fs-h5: 15px;
  --kaji-fs-h6: 13.5px;
  --kaji-fs-body: 15px;
  --kaji-fs-nav: 13.5px;
  --kaji-fs-label: 12.5px;
  --kaji-fs-small: 13px;
  --kaji-fs-xs: 11px;

  /* Consistent Spacing Scale */
  --kaji-section-py: 56px;
  --kaji-section-py-sm: 40px;
  --kaji-heading-mb: 32px;
  --kaji-card-p: 22px;

  --kaji-radius: 4px;
  --kaji-transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  --kaji-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
  --kaji-shadow-hover: 0 10px 26px rgba(0, 0, 0, 0.09);
}

/* Completely remove glass effects / blur across entire website */
*, *::before, *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ==========================================================================
   Base Reset & Fluid Typography
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--kaji-font-body);
  font-size: var(--kaji-fs-body);
  font-weight: 400;
  color: #374151;
  background-color: var(--kaji-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
}

.np {
  font-family: var(--kaji-font-np);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--kaji-font-heading);
  font-weight: 600;
  color: var(--kaji-dark);
  letter-spacing: -0.015em;
}

h1 { font-size: var(--kaji-fs-h1); line-height: 1.25; font-weight: 700; }
h2 { font-size: var(--kaji-fs-h2); line-height: 1.3; font-weight: 700; }
h3 { font-size: var(--kaji-fs-h3); line-height: 1.35; font-weight: 600; }
h4 { font-size: var(--kaji-fs-h4); line-height: 1.4; font-weight: 600; }
h5 { font-size: var(--kaji-fs-h5); line-height: 1.45; font-weight: 600; }
h6 { font-size: var(--kaji-fs-h6); line-height: 1.5; font-weight: 600; }

a {
  color: var(--kaji-orange);
  text-decoration: none;
  transition: var(--kaji-transition);
}

a:hover {
  color: var(--kaji-orange-hover);
}

::selection {
  background: var(--kaji-orange);
  color: var(--kaji-white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--kaji-gray-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--kaji-orange);
}

/* ==========================================================================
   Signature Section Headings with Balanced Architectural Divider
   ========================================================================== */
.kaji-section-heading {
  text-align: center;
  margin-bottom: var(--kaji-heading-mb);
  position: relative;
}

.kaji-section-title {
  font-family: var(--kaji-font-heading);
  font-size: var(--kaji-fs-h2);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--kaji-dark);
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  line-height: 1.25;
}

.kaji-section-title span {
  color: var(--kaji-orange);
}

/* Architectural Divider Graphic */
.kaji-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 14px auto;
  max-width: 180px;
}

.kaji-divider::before,
.kaji-divider::after {
  content: '';
  height: 1.5px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--kaji-orange));
}

.kaji-divider::after {
  background: linear-gradient(90deg, var(--kaji-orange), transparent);
}

.kaji-section-desc {
  max-width: 660px;
  margin: 0 auto;
  color: #4B5563;
  font-size: 14.5px;
  line-height: 1.65;
}

/* ==========================================================================
   Buttons & Micro-interactions
   ========================================================================== */

/* ==========================================================================
   Header & Navigation Architecture
   ========================================================================== */

/* Top Utility Bar */
.kaji-topbar {
  background-color: #08122f;
  color: #C0C2C5;
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.kaji-topbar a {
  color: #D1D5DB;
  text-decoration: none;
}
.kaji-topbar a:hover {
  color: var(--kaji-orange);
}

/* Top Social Icon */

/* Sticky Main Navbar */
.kaji-navbar {
  background-color: var(--kaji-white);
  padding: 10px 0;
  border-bottom: 1px solid var(--kaji-gray-border);
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.04);
  transition: var(--kaji-transition);
}

/* Brand Lockup: Logo + Slogan Together on Left */
.kaji-navbar .navbar-brand {
  margin-right: 1.5rem;
  padding: 0;
  flex-shrink: 0;
}
.kaji-navbar .navbar-brand img {
  height: 44px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  transition: height 0.25s ease;
}

/* Desktop Navigation Links */
.kaji-navbar .nav-link {
  font-family: var(--kaji-font-heading);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.15px;
  color: #1F2937;
  padding: 6px 10px !important;
  border-radius: 4px;
  position: relative;
  text-transform: none;
  text-decoration: none !important;
  border: none !important;
  border-bottom: none !important;
  outline: none !important;
  box-shadow: none !important;
  transition: color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.kaji-navbar .nav-link:hover {
  color: var(--kaji-orange) !important;
  background-color: transparent !important;
  text-decoration: none !important;
}
.kaji-navbar .nav-link.active {
  color: var(--kaji-orange) !important;
  font-weight: 600;
  background-color: transparent !important;
  text-decoration: none !important;
}
.kaji-navbar .nav-link.active svg,
.kaji-navbar .nav-link:hover svg {
  color: var(--kaji-orange) !important;
}
.kaji-navbar .nav-link::after,
.kaji-navbar .nav-link::before,
.kaji-navbar .nav-link.active::after,
.kaji-navbar .nav-link.active::before {
  display: none !important;
  content: none !important;
  border: none !important;
}

/* Luxury Consultation Button Hover */


.kaji-navbar button.nav-link::after,
.kaji-navbar button.nav-link::before {
  display: none !important;
  content: none !important;
}

/* Dropdown Menus */
.kaji-navbar .dropdown-menu {
  border: 1px solid var(--kaji-gray-border);
  border-top: 3px solid var(--kaji-orange);
  border-radius: 0 0 var(--kaji-radius) var(--kaji-radius);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
  min-width: 210px;
}
.kaji-navbar .dropdown-item {
  font-family: var(--kaji-font-heading);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  color: #374151;
  transition: var(--kaji-transition);
}
.kaji-navbar .dropdown-item:hover {
  background-color: var(--kaji-orange-light);
  color: var(--kaji-orange);
  padding-left: 22px;
}

/* Premium Mobile Hamburger Button */

/* Right-In Slide Animation for Mobile Navigation Drawer */
@keyframes slideInRightDrawer {
  from {
    transform: translateX(100%);
    opacity: 0.7;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Carousel Prev/Next Navigation Controls (Mobile + Desktop) */

/* Offcanvas Mobile Drawer (Roshan Pattern) */

/* ==========================================================================
   Hero Banner Carousel Pattern (Full-Screen Edge-to-Edge with Footer Text Dock)
   ========================================================================== */
.kaji-hero-carousel-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--kaji-dark);
  margin: 0;
  padding: 0;
  border: none;
}

/* Preset Height Modes (Admin or utility selectable) */

/* Ambient Top-to-Bottom Subtle Gradient */

/* Floating Topbar inside Slide */

/* Clean Full-Width Footer Dock (Text at Bottom of Image) */

.kaji-hero-footer-title {
  font-family: var(--kaji-font-heading);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.kaji-hero-footer-lead {
  font-size: clamp(14px, 1.2vw, 16.5px);
  color: #FFFFFF !important;
  max-width: 740px;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  font-weight: 500;
}

/* Indicators */

/* Carousel Controls */

/* Modern Interactive Scroll-Down Anchor Feature */
@keyframes scrollWheelAnim {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(5px); opacity: 0; }
}
@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(3px); }
  60% { transform: translateY(1.5px); }
}

/*/* ==========================================================================
   "WHAT WE ARE" About Layout Pattern (Roshan Style)
   ========================================================================== */
.about-home-section {
  padding: var(--kaji-section-py) 0;
  background-color: var(--kaji-white);
  scroll-margin-top: 75px;
}

/* ==========================================================================
   "WHAT WE DO" Interactive Service Tabs Pattern (Roshan Style)
   ========================================================================== */

/* Tab Navigation Buttons */

/* Tab Content Panel */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   "OUR PROJECTS" Grid & Hover Card Pattern (Roshan Style)
   ========================================================================== */
.kaji-projects-section {
  padding: var(--kaji-section-py) 0;
  background-color: var(--kaji-white);
}

/* Hover Overlay */

/* Wide Bottom Strip */

/* ==========================================================================
   "CORE VALUES" 4-Pillar Circle Badges (Roshan Style)
   ========================================================================== */

/* ==========================================================================
   "KEY HUMAN RESOURCES & CAPABILITY" Live Counter Section
   ========================================================================== */

/* ==========================================================================
   Pre-Footer Contact Ribbon (Roshan Style)
   ========================================================================== */
.kaji-prefooter-ribbon {
  background-color: #08122f;
  border-top: 2.5px solid var(--kaji-orange);
  padding: 24px 0;
  color: #FFFFFF;
}

.kaji-contact-info h6 {
  font-family: var(--kaji-font-heading);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
  color: #FFFFFF;
}

.kaji-contact-info p {
  font-size: 12.5px;
  color: #9CA3AF;
  margin-bottom: 0;
  line-height: 1.4;
}
.kaji-contact-info a {
  color: #D1D5DB;
}
.kaji-contact-info a:hover {
  color: var(--kaji-orange);
}

/* ==========================================================================
   Rich Footer
   ========================================================================== */

/* Floating Scroll-to-Top Button */

/* ==========================================================================
   Admin Dashboard Responsive Styles
   ========================================================================== */

/* Mobile Sidebar Backdrop */

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE MEDIA QUERIES (ANY SCREEN SIZE)
   ========================================================================== */

/* Extra Small Phones (< 576px) */
@media (max-width: 575.98px) {
  .kaji-hero-footer-title {
    font-size: 19px !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
  }
  .kaji-hero-footer-lead {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2;
  }
  
  /* Stack Buttons */

  .kaji-section-title {
    font-size: clamp(20px, 5.5vw, 28px) !important;
  }

  /* Prevent text overflow on small mobile */
  h1.display-4, .display-4 {
    font-size: clamp(1.8rem, 6.5vw, 2.4rem) !important;
    word-break: break-word;
  }
  h1.display-5, .display-5 {
    font-size: clamp(1.6rem, 5.5vw, 2.1rem) !important;
    word-break: break-word;
  }
  .display-6 {
    font-size: clamp(1.4rem, 4.8vw, 1.8rem) !important;
  }

  /* Full-width responsive buttons */
}

/* Very Small Mobile Screens (320px - 380px) */
@media (max-width: 380px) {
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .kaji-section-title {
    font-size: 19px !important;
  }
}

/* Tablets (576px - 991.98px) */
@media (min-width: 576px) and (max-width: 991.98px) {
  .kaji-hero-footer-title {
    font-size: 24px !important;
  }
}

/* Mobile & Small Tablets (< 768px) */
@media (max-width: 767.98px) {
  /* About badge adjustment */

  /* Counter Stats in 2 columns on mobile */

  /* Service Tabs - Smooth Horizontal Scroll */

  /* Project Cards */

  /* Bottom Project Banner */

  /* Pre-footer ribbon */

  /* Footer adjustments */
}

/* Tablets & Small Desktops (< 992px) */
@media (max-width: 991.98px) {
  .kaji-topbar {
    display: none !important; /* Clean mobile view */
  }
  
  .kaji-navbar .navbar-brand img {
    height: 44px;
  }

  /* Service tab navigation becomes horizontally scrollable or stacked */

  /* Admin responsive */
}

/* Desktops & Large Displays (>= 992px) */

/* ==========================================================================
   Announcement Marquee Bar (Header Ribbon)
   ========================================================================== */

/* Blinking written text effect */

@keyframes kajiMarqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes kajiWrittenTextBlink {
  0% {
    opacity: 1;
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  }
  50% {
    opacity: 0.15;
    color: #F87171;
    text-shadow: none;
  }
  100% {
    opacity: 1;
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  }
}

@keyframes kajiTitlePulse {
  0% {
    color: #FBBF24;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.9);
  }
  50% {
    color: #EF4444;
    opacity: 0.25;
    text-shadow: none;
  }
  100% {
    color: #FBBF24;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.9);
  }
}

/* ==========================================================================
   HOMEPAGE REFACTORING & ENHANCEMENTS
   ========================================================================== */

/* Hero Banner Overlay Positioning */

/* Why Choose KAJI Section Clean Grid */
.kaji-why-section {
  padding: var(--kaji-section-py) 0;
  background-color: #F8F9FA;
}

/* Construction Process & Workflow Section */
.kaji-process-section {
  padding: var(--kaji-section-py) 0;
  background-color: #FFFFFF;
}

/* Core Services Modern Grid */

/* Universal Page Hero Header */
/* Testimonial Cards */

/* ==========================================================================
   MD Message & Institutional Welcome (Inspired by Hamro Nepal Reference)
   ========================================================================== */

/* ==========================================================================
   Navigation Dropdown Hover & Bridge Fix (Item 2)
   ========================================================================== */
@media (min-width: 992px) {
  .kaji-navbar .nav-item.dropdown {
    position: relative;
  }
  .kaji-navbar .nav-item.dropdown .dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    margin-top: 0;
    pointer-events: none;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--kaji-orange);
  }
  /* Invisible bridge to prevent closing on gap transit */
  .kaji-navbar .nav-item.dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    width: 100%;
    height: 18px;
    background: transparent;
  }
  .kaji-navbar .nav-item.dropdown:hover > .dropdown-menu,
  .kaji-navbar .nav-item.dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .kaji-navbar .nav-item.dropdown:hover > .nav-link {
    color: var(--kaji-orange) !important;
  }
}

.kaji-navbar .dropdown-item {
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: #2D2C2A;
  transition: all 0.15s ease;
}
.kaji-navbar .dropdown-item:hover,
.kaji-navbar .dropdown-item:focus {
  background-color: var(--kaji-orange-light);
  color: var(--kaji-orange);
  padding-left: 22px;
}

/* ==========================================================================
   Floating WhatsApp Widget (Item 12)
   ========================================================================== */
.kaji-whatsapp-floating {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 1045;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}
.kaji-whatsapp-btn {
  width: 54px;
  height: 54px;
  background-color: #25D366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
  position: relative;
}
.kaji-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65);
}
.kaji-whatsapp-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25D366;
  top: 0;
  left: 0;
  animation: kaji-wa-pulse 2s infinite;
  opacity: 0.7;
}
@keyframes kaji-wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* ==========================================================================
   Quotation & Career Form Buttons (Item 10 & 13.4)
   ========================================================================== */

/* ==========================================================================
   Gallery & Project Lightbox (Item 5 & 13.6)
   ========================================================================== */

/* Lightbox Header / Controls Toolbar */
@keyframes pulsePanHint {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; transform: scale(1.02); }
}

/* ==========================================================================
   Hero Visual Indicators with Thumbnails & Video Tags (Item 4)
   ========================================================================== */

/* ==========================================================================
   Accessibility & Visual Focus States
   ========================================================================== */

/* Ensure buttons and controls maintain visible focus */
.btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 2px solid var(--kaji-orange) !important;
  outline-offset: 2px !important;
}

/* Mobile Offcanvas Navigation Accessibility & Touch Targets */

/* Service Tab Panels accessibility */
@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Prevent Horizontal Overflow without breaking position:sticky */
html, body {
  overflow-x: clip !important;
  max-width: 100vw;
  width: 100%;
}

/* Respect Prefers-Reduced-Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}/* Fractional padding, margin, and gap utilities */

/* Testimonials Infinite Marquee */
@keyframes kaji-testimonial-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}




