/* =================================================================
   DN CONSTRUCTION — MAIN STYLESHEET  (css/style.css)
   =================================================================
   Version   : 1.0.0
   Purpose   : Complete styles for all pages of the DN Construction
               static website, including light/dark theme support,
               scroll animations, gallery, and responsive layout.

   Table of Contents
   -----------------
   1.  CSS Custom Properties (Design Tokens)
   2.  Global Reset & Base
   3.  Utility Classes
   4.  Navigation
   5.  Hero Sections
   6.  Buttons
   7.  Service Cards
   8.  Stats Counter Section
   9.  Feature / Why-Choose-Us Items
   10. Gallery
   11. Contact Page
   12. Coverage Areas
   13. CTA Section
   14. Footer
   15. Scroll Animations
   16. 404 Error Page
   17. Back-to-Top Button
   18. Keyframe Animations
   19. Breadcrumb
   20. About Page Specifics
   21. Services Detail Page
   22. Responsive Media Queries
   23. Print Styles
   ================================================================= */


/* -----------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ----------------------------------------------------------------- */
:root {
  /* == Brand Palette ============================================== */
  --dn-blue:           #1f1f1f;    /* primary dark grey             */
  --dn-blue-dark:      #111111;    /* darker grey                   */
  --dn-blue-mid:       #2c2c2c;    /* mid dark                      */
  --dn-amber:          #ffb600;    /* brand yellow / accent         */
  --dn-amber-dark:     #e6a400;    /* darker yellow (hover states)  */
  --dn-amber-light:    #ffc833;    /* lighter yellow (gradients)    */

  /* == Light Theme — Surfaces ==================================== */
  --bg-body:           #f4f6fb;
  --bg-surface:        #ffffff;
  --bg-alt:            #eef2f9;
  --bg-hero:           linear-gradient(150deg, #111111 0%, #1f1f1f 60%, #2c2c2c 100%);
  --bg-nav:            #1f1f1f;
  --bg-footer:         #111111;
  --bg-card:           #ffffff;

  /* == Light Theme — Typography ================================== */
  --text-body:         #1e2530;
  --text-secondary:    #4b5563;
  --text-muted:        #6b7280;
  --text-inverse:      #f9fafb;

  /* == Light Theme — Borders & Shadows =========================== */
  --border:            #dde3ee;
  --shadow-sm:         0 1px 4px rgba(27, 58, 107, 0.08);
  --shadow-md:         0 4px 20px rgba(27, 58, 107, 0.12);
  --shadow-lg:         0 10px 40px rgba(27, 58, 107, 0.16);
  --shadow-card:       0 2px 12px rgba(27, 58, 107, 0.10);

  /* == Transitions =============================================== */
  --tr:                all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-fast:           all 0.18s ease;

  /* == Layout ==================================================== */
  --radius:            8px;
  --radius-md:         12px;
  --radius-lg:         20px;
  --radius-pill:       999px;
  --section-pad:       5rem 0;
}

/* Dark Theme — toggled via JS by adding data-theme="dark" on <html> */
[data-theme="dark"] {
  --bg-body:           #0a0a0a;
  --bg-surface:        #1f1f1f;
  --bg-alt:            #141414;
  --bg-hero:           linear-gradient(150deg, #050505 0%, #0a0a0a 60%, #111111 100%);
  --bg-nav:            #050505;
  --bg-footer:         #000000;
  --bg-card:           #1f1f1f;

  --text-body:         #e2e8f4;
  --text-secondary:    #a0aec0;
  --text-muted:        #718096;

  --border:            #1e3a5f;
  --shadow-sm:         0 1px 4px rgba(0, 0, 0, 0.4);
  --shadow-md:         0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg:         0 10px 40px rgba(0, 0, 0, 0.65);
  --shadow-card:       0 2px 12px rgba(0, 0, 0, 0.45);
}


/* -----------------------------------------------------------------
   2. GLOBAL RESET & BASE
   ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

/* Smooth theme transitions so switching doesn't flash */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
               'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.7;
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: clip;
  /* padding-top: 76px; Removed for 3-tier header */
}

a {
  color: var(--dn-amber);
  text-decoration: none;
  transition: var(--tr-fast);
}

a:hover {
  color: var(--dn-amber-dark);
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--text-body);
  font-weight: 700;
  line-height: 1.3;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}


/* -----------------------------------------------------------------
   3. UTILITY CLASSES
   ----------------------------------------------------------------- */
.section-pad       { padding: var(--section-pad); }
.bg-surface        { background-color: var(--bg-surface) !important; }
.bg-alt            { background-color: var(--bg-alt) !important; }
.text-accent       { color: var(--dn-amber) !important; }
.text-brand        { color: var(--dn-blue) !important; }
.text-muted-dn     { color: var(--text-muted) !important; }

/* Responsive section heading using clamp() for fluid typography */
.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.section-heading span {
  color: var(--dn-amber);
}

/* Distinctive amber underline divider used under section headings */
.heading-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--dn-amber), var(--dn-amber-light));
  border-radius: var(--radius-pill);
  margin: 0.75rem 0 1.5rem;
}

.heading-divider.center {
  margin-left: auto;
  margin-right: auto;
}

/* Thin amber line at the very top of the viewport — brand accent */
body::before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dn-amber) 0%, var(--dn-amber-light) 50%, var(--dn-amber) 100%);
  z-index: 9999;
}


/* -----------------------------------------------------------------
   4. NAVIGATION
   ----------------------------------------------------------------- */
.dn-navbar {
  background-color: var(--bg-nav);
  padding: 0.85rem 0;
  border-bottom: 3px solid var(--dn-amber);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
  z-index: 1050;
}

/* Compact navbar when user has scrolled down */
.dn-navbar.scrolled {
  padding: 0.6rem 0;
  box-shadow: var(--shadow-lg);
}

/* Brand / Logo area */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff !important;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--dn-amber);
  color: var(--dn-blue-dark);
  border-radius: var(--radius);
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--tr);
}

/* Logo image in navbar */
.navbar-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius);
  transition: var(--tr);
  background: #ffffff;
  padding: 3px 6px;
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.04);
  opacity: 0.9;
}

.navbar-brand:hover .brand-icon {
  transform: rotate(-8deg) scale(1.05);
}

.navbar-brand strong {
  color: var(--dn-amber);
}

/* Individual nav links */
.dn-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--radius);
  transition: var(--tr-fast);
  position: relative;
}

/* Animated underline accent on link hover */
.dn-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--dn-amber);
  transition: width 0.25s ease;
  border-radius: var(--radius-pill);
}

.dn-navbar .nav-link:hover,
.dn-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.dn-navbar .nav-link:hover::after,
.dn-navbar .nav-link.active::after {
  width: 50%;
}

/* Staff Portal dropdown menu */
.dn-navbar .dropdown-menu {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  padding: 0.5rem;
  margin-top: 0.3rem;
}

.dn-navbar .dropdown-item {
  color: var(--text-body);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-weight: 500;
  transition: var(--tr-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dn-navbar .dropdown-item:hover {
  background: var(--bg-alt);
  color: var(--dn-amber);
}

/* Staff Portal direct-link button */
.nav-portal-btn {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  border-radius: var(--radius) !important;
  color: var(--dn-amber) !important;
  font-weight: 600 !important;
  padding: 0.38rem 0.85rem !important;
  transition: var(--tr) !important;
}

.nav-portal-btn:hover,
.nav-portal-btn:focus {
  background: var(--dn-amber) !important;
  border-color: var(--dn-amber) !important;
  color: var(--dn-blue-dark) !important;
}

/* Theme toggle circular button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
  background: transparent !important;
  transition: var(--tr) !important;
  cursor: pointer;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: var(--dn-amber) !important;
  color: var(--dn-amber) !important;
  transform: rotate(20deg);
}


/* -----------------------------------------------------------------
   5. HERO SECTIONS
   ----------------------------------------------------------------- */

/* ---- Main / Home Hero ---- */
.dn-hero {
  background: var(--bg-hero);
  position: relative;
  overflow: hidden;
  color: #fff;
}

/* Construction-grid background pattern using inline SVG */
.dn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f59e0b' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.7;
}

/* Diagonal wave clip at the bottom of the hero */
.dn-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg-body);
  clip-path: polygon(0 60%, 100% 0%, 100% 100%, 0 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 7rem 0 9rem;
}

/* ---- Page-Level Hero (used by About, Services, Gallery, Contact) ---- */
.page-hero {
  background: var(--bg-hero);
  padding: 4.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f59e0b' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-body);
  clip-path: polygon(0 55%, 100% 0%, 100% 100%, 0 100%);
}

.page-hero .hero-inner {
  position: relative;
  z-index: 2;
}

/* Amber pill badge used inside heroes */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--dn-amber-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-title .accent {
  color: var(--dn-amber);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 600px;
  margin-bottom: 2.25rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Key statistics bar inside hero (home only) */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-item .stat-number {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--dn-amber);
  line-height: 1;
  display: block;
}

.hero-stat-item .stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}


/* -----------------------------------------------------------------
   6. BUTTONS
   ----------------------------------------------------------------- */

/* Primary amber button — used for main CTAs */
.btn-dn-primary {
  background: var(--dn-amber);
  color: var(--dn-blue-dark);
  border: 2px solid transparent;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  transition: var(--tr);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-dn-primary:hover {
  background: var(--dn-amber-dark);
  color: var(--dn-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5);
}

/* Outlined white button — secondary action in dark hero areas */
.btn-dn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  transition: var(--tr);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-dn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* Dark CTA button used on amber CTA sections */
.btn-cta-dark {
  background: var(--dn-blue-dark);
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius-pill);
  transition: var(--tr);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-cta-dark:hover {
  background: var(--dn-blue-mid);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(14, 34, 71, 0.4);
}


/* -----------------------------------------------------------------
   7. SERVICE CARDS  (used on Home overview and Services page summary)
   ----------------------------------------------------------------- */
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  height: 100%;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
}

/* Top amber stripe that expands on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--dn-amber), var(--dn-amber-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Icon container */
.service-icon-wrap {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--dn-amber) 0%, var(--dn-amber-dark) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  color: var(--dn-blue-dark);
  margin-bottom: 1.25rem;
  transition: var(--tr);
}

.service-card:hover .service-icon-wrap {
  transform: rotate(-6deg) scale(1.08);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.72;
  margin-bottom: 1.25rem;
}

/* Inline link at bottom of card */
.service-link {
  color: var(--dn-amber);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--tr-fast);
}

.service-link:hover {
  color: var(--dn-amber-dark);
  gap: 0.6rem;
}


/* -----------------------------------------------------------------
   8. STATS COUNTER SECTION
   ----------------------------------------------------------------- */
.stats-section {
  background: linear-gradient(135deg, var(--dn-blue-dark) 0%, var(--dn-blue) 100%);
  color: #fff;
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

/* The animated counter number */
.stat-number-large {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--dn-amber);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label-large {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Decorative vertical divider between stat cards on desktop */
.stat-card + .stat-card {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}


/* -----------------------------------------------------------------
   9. FEATURE / WHY-CHOOSE-US ITEMS
   ----------------------------------------------------------------- */
.feature-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--dn-amber);
  flex-shrink: 0;
  transition: var(--tr);
}

.feature-item:hover .feature-icon {
  background: var(--dn-amber);
  color: var(--dn-blue-dark);
  border-color: var(--dn-amber);
}

.feature-content h5 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.feature-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}


/* -----------------------------------------------------------------
   10. GALLERY
   ----------------------------------------------------------------- */

/* CSS grid-based masonry-like layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* Each image tile */
.gallery-item-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  /* starts transparent; made visible via JS after img loads */
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease,
              box-shadow 0.3s ease;
}

/* When JS adds .visible class */
.gallery-item-wrap.visible {
  opacity: 1;
  transform: scale(1);
}

.gallery-item-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item-wrap:hover img {
  transform: scale(1.08);
}

.gallery-item-wrap:hover {
  box-shadow: var(--shadow-lg);
}

/* Gradient overlay on hover — appears from bottom */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 21, 48, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  color: #fff;
}

.gallery-item-wrap:hover .gallery-overlay,
.gallery-item-wrap:focus .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-text {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Loading spinner shown while images are being fetched */
.gallery-spinner {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
}

.gallery-spinner .spinner-border {
  color: var(--dn-amber);
  width: 3rem;
  height: 3rem;
}

/* Empty-state shown when no images exist in gallery/ */
.gallery-empty {
  grid-column: 1 / -1;
  display: none;   /* shown by JS when no images found */
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}

.gallery-empty i {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--border);
  display: block;
}

.gallery-empty h4 {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ---- Lightbox ---- */
.dn-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 14, 28, 0.96);
  z-index: 9999;
  display: none;            /* shown by JS with class .open */
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.2s ease;
}

.dn-lightbox.open {
  display: flex;
}

.dn-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--tr-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(245, 158, 11, 0.3);
  color: var(--dn-amber);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--tr-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: rgba(245, 158, 11, 0.3);
  color: var(--dn-amber);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }


/* -----------------------------------------------------------------
   11. CONTACT PAGE
   ----------------------------------------------------------------- */
.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  height: 100%;
  text-align: center;
  transition: var(--tr);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin: 0 auto 1.5rem;
  transition: var(--tr);
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
}

.contact-icon-phone   { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.contact-icon-email   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; }
.contact-icon-location{ background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.contact-icon-hours   { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; }

.contact-card h4 {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-card .contact-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-body);
  display: block;
  margin-bottom: 0.4rem;
}

.contact-card a {
  color: var(--text-body);
}

.contact-card a:hover {
  color: var(--dn-amber);
}

.contact-card .contact-desc {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.6;
}

/* Google Maps link button */
.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dn-amber);
  color: var(--dn-blue-dark);
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  margin-top: 1rem;
  font-size: 0.9rem;
  transition: var(--tr);
  text-decoration: none;
}

.map-btn:hover {
  background: var(--dn-amber-dark);
  color: var(--dn-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Highlighted info callout box */
.info-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--dn-amber);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1.5rem;
}

.info-box p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.info-box strong {
  color: var(--text-body);
}


/* -----------------------------------------------------------------
   12. COVERAGE AREA BADGES
   ----------------------------------------------------------------- */
.area-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-body);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--tr);
  box-shadow: var(--shadow-sm);
}

.area-badge:hover {
  background: var(--dn-amber);
  color: var(--dn-blue-dark);
  border-color: var(--dn-amber);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.area-badge i {
  color: var(--dn-amber);
}

.area-badge:hover i {
  color: var(--dn-blue-dark);
}


/* -----------------------------------------------------------------
   13. CALL-TO-ACTION (CTA) SECTION
   ----------------------------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, var(--dn-amber) 0%, var(--dn-amber-dark) 100%);
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative white circles in background */
.cta-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  right: -100px;
  top: -100px;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  left: -80px;
  bottom: -80px;
  pointer-events: none;
}

.cta-section h2 {
  color: var(--dn-blue-dark);
  font-size: clamp(1.8rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: rgba(14, 34, 71, 0.72);
  font-size: 1.05rem;
  max-width: 570px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}


/* -----------------------------------------------------------------
   14. FOOTER
   ----------------------------------------------------------------- */
.dn-footer {
  background-color: var(--bg-footer);
  color: rgba(255, 255, 255, 0.65);
  padding: 4rem 0 0;
}

.dn-footer h5,
.dn-footer h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.dn-footer h5 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dn-footer h6 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.dn-footer p {
  font-size: 0.91rem;
  line-height: 1.75;
}

.dn-footer a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.91rem;
  display: block;
  padding: 0.22rem 0;
  transition: var(--tr-fast);
}

.dn-footer a:hover {
  color: var(--dn-amber);
  padding-left: 0.4rem;
}

/* Service list items in footer */
.footer-services li {
  padding: 0.22rem 0;
  font-size: 0.91rem;
  padding-left: 1.25rem;
  position: relative;
}

.footer-services li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--dn-amber);
  font-size: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.84rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
}

.footer-reg {
  font-size: 0.79rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.3rem;
}

/* Developer credit line */
.footer-dev {
  font-size: 0.79rem;
  color: rgba(255, 255, 255, 0.28);
  margin-top: 0.25rem;
}

/* The link is a plain, crawlable <a> — no nofollow — styled subtly */
.footer-dev a {
  color: rgba(245, 158, 11, 0.55);
  display: inline;
  padding: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-dev a:hover {
  color: var(--dn-amber);
  padding-left: 0;   /* override footer default */
  text-decoration: underline;
}

/* Footer contact quick links */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer-contact-item i {
  color: var(--dn-amber);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 16px;
}

.footer-contact-item a,
.footer-contact-item span {
  display: inline;
  padding: 0;
}

.footer-contact-item a:hover {
  padding-left: 0;
}


/* -----------------------------------------------------------------
   15. SCROLL ANIMATIONS  (uses IntersectionObserver in JS)
   ----------------------------------------------------------------- */

/* Starting state — invisible, shifted down */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-on-scroll.from-left {
  transform: translateX(-40px);
}

.animate-on-scroll.from-right {
  transform: translateX(40px);
}

/* Final visible state — JS adds this class */
.animate-on-scroll.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger entrance delays for card grids */
.stagger > .animate-on-scroll:nth-child(1) { transition-delay: 0.00s; }
.stagger > .animate-on-scroll:nth-child(2) { transition-delay: 0.10s; }
.stagger > .animate-on-scroll:nth-child(3) { transition-delay: 0.20s; }
.stagger > .animate-on-scroll:nth-child(4) { transition-delay: 0.30s; }
.stagger > .animate-on-scroll:nth-child(5) { transition-delay: 0.40s; }
.stagger > .animate-on-scroll:nth-child(6) { transition-delay: 0.50s; }


/* -----------------------------------------------------------------
   16. 404 ERROR PAGE
   ----------------------------------------------------------------- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hero);
  padding: 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.error-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f59e0b' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.error-content {
  max-width: 550px;
  position: relative;
  z-index: 1;
}

/* Giant gradient "404" display */
.error-code {
  font-size: clamp(7rem, 22vw, 13rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--dn-amber), var(--dn-amber-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  animation: float 4s ease-in-out infinite;
}

.error-icon {
  font-size: 2.5rem;
  color: var(--dn-amber);
  margin: 0.5rem 0 1rem;
  display: block;
}

.error-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #fff;
  margin-bottom: 1rem;
}

.error-text {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}


/* -----------------------------------------------------------------
   17. BACK-TO-TOP BUTTON
   ----------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--dn-amber);
  color: var(--dn-blue-dark);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: var(--tr);
  opacity: 0;
  pointer-events: none;   /* invisible until scrolled */
  z-index: 998;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--dn-amber-dark);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}


/* -----------------------------------------------------------------
   18. KEYFRAME ANIMATIONS
   ----------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1);    opacity: 1;   }
  50%       { transform: scale(1.05); opacity: 0.9; }
}

/* Applied directly to hero text elements for page-load entrance */
.hero-animate                { animation: fadeInUp 0.8s ease both; }
.hero-animate-delay-1        { animation-delay: 0.12s; }
.hero-animate-delay-2        { animation-delay: 0.26s; }
.hero-animate-delay-3        { animation-delay: 0.40s; }
.hero-animate-delay-4        { animation-delay: 0.55s; }


/* -----------------------------------------------------------------
   19. BREADCRUMB
   ----------------------------------------------------------------- */
.dn-breadcrumb {
  background: transparent;
  padding: 0;
  margin-top: 0.75rem;
}

.dn-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  color: rgba(255, 255, 255, 0.35);
  padding: 0 0.5rem;
}

.dn-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.87rem;
}

.dn-breadcrumb .breadcrumb-item a:hover {
  color: var(--dn-amber);
}

.dn-breadcrumb .breadcrumb-item.active {
  color: var(--dn-amber);
  font-size: 0.87rem;
}


/* -----------------------------------------------------------------
   20. ABOUT PAGE SPECIFICS
   ----------------------------------------------------------------- */

/* CSS-styled placeholder where a real about/team image would go */
.about-img-placeholder {
  background: linear-gradient(135deg, var(--dn-blue) 0%, var(--dn-blue-dark) 100%);
  border-radius: var(--radius-lg);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.about-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f59e0b' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.about-img-placeholder i {
  font-size: 5rem;
  color: var(--dn-amber);
  position: relative;
  z-index: 1;
  animation: float 4s ease-in-out infinite;
}

.about-img-placeholder p {
  font-size: 0.88rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Core values card */
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: var(--tr);
  text-align: center;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 158, 11, 0.3);
}

.value-icon {
  font-size: 2.25rem;
  color: var(--dn-amber);
  margin-bottom: 1rem;
  display: block;
}

.value-card h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0;
}

/* Registration badge pill */
.reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.06));
  border: 2px solid var(--dn-amber);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  color: var(--dn-amber);
  font-weight: 700;
  font-size: 1rem;
}


/* -----------------------------------------------------------------
   21. SERVICES DETAIL PAGE
   ----------------------------------------------------------------- */
.service-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  height: 100%;
  transition: var(--tr);
}

.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-detail-header {
  background: linear-gradient(135deg, var(--dn-blue) 0%, var(--dn-blue-dark) 100%);
  padding: 2rem 2rem 1.75rem;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.service-detail-header .svc-icon {
  width: 56px;
  height: 56px;
  background: rgba(245, 158, 11, 0.2);
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--dn-amber);
  flex-shrink: 0;
}

.service-detail-header h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.service-detail-header p {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.service-detail-body {
  padding: 2rem;
}

.service-detail-body ul li {
  padding: 0.42rem 0 0.42rem 1.6rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.service-detail-body ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--dn-amber);
  font-weight: 700;
}

/* Material brand / keyword tags */
.material-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0.25rem;
  transition: var(--tr-fast);
}

.material-tag i {
  font-size: 0.75rem;
  color: var(--dn-amber);
}

.material-tag:hover {
  background: var(--dn-amber);
  color: var(--dn-blue-dark);
  border-color: var(--dn-amber);
}

.material-tag:hover i {
  color: var(--dn-blue-dark);
}


/* -----------------------------------------------------------------
   22. RESPONSIVE MEDIA QUERIES
   ----------------------------------------------------------------- */

/* Tablet & below — collapse navbar */
@media (max-width: 991.98px) {
  .dn-navbar .navbar-collapse {
    background: rgba(8, 21, 48, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Hide underline on mobile — replaces with background highlight */
  .dn-navbar .nav-link::after { display: none; }

  .theme-toggle {
    width: 100% !important;
    border-radius: var(--radius) !important;
    margin-top: 0.5rem;
    justify-content: center;
  }

  .hero-content {
    padding: 4rem 0 6rem;
    text-align: center;
  }

  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions  { justify-content: center; }
  .hero-stats    { justify-content: center; }

  .stat-card + .stat-card { border-left: none; }
}

/* Mobile */
@media (max-width: 767.98px) {
  :root { --section-pad: 3.5rem 0; }

  .hero-content {
    padding: 3rem 0 5.5rem;
  }

  .page-hero {
    padding: 3.5rem 0 4.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
  }

  .stats-section .stat-card {
    padding: 1.25rem 0.5rem;
  }

  .contact-card {
    padding: 2rem 1.25rem;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
  }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }

  .cta-section {
    padding: 3rem 0;
  }

  .service-detail-header {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Small mobile */
@media (max-width: 479.98px) {
  .hero-title { font-size: 1.9rem; }
  .hero-stat-item .stat-number { font-size: 1.8rem; }
  .btn-dn-primary,
  .btn-dn-outline { padding: 0.65rem 1.5rem; font-size: 0.9rem; }
  .feature-item { flex-direction: column; }
  .error-links  { flex-direction: column; align-items: center; }

  /* Ensure no element punches outside the viewport */
  img, table, pre, code, iframe, video {
    max-width: 100%;
  }
}


/* -----------------------------------------------------------------
   23. PRINT STYLES
   ----------------------------------------------------------------- */
@media print {
  .dn-navbar,
  .back-to-top,
  .theme-toggle,
  .dn-lightbox,
  .cta-section,
  .hero-actions,
  .hero-stats                { display: none !important; }

  body                        { background: #fff; color: #000; }
  a                           { color: #000; }
  .page-hero,
  .dn-hero                    { background: #1b3a6b !important; }
}

/* Custom Utility Overrides for Theme Adaptability */
.text-secondary {
  color: var(--text-secondary) !important;
}
