/* ==========================================================================
   Avish Minerals & Logistics - Main Stylesheet
   FC Agrawal Redesign - Cinematic Dark Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Gantari:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Playfair+Display:ital,wght@1,600;1,700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

:root {
  /* Core Colors - FC Agrawal Theme */
  --bg-dark: rgb(43, 45, 49);
  --bg-surface: rgb(35, 36, 40);
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-elevated: rgb(49, 51, 56);
  --bg-input: rgba(0, 0, 0, 0.2);
  --bg-modal: rgb(43, 45, 49);

  /* Primary Accent - Industrial Gold */
  --color-primary: #D4A843;
  --color-primary-hover: #F2C764;
  --color-primary-light: rgba(212, 168, 67, 0.08);
  --color-primary-glow: rgba(212, 168, 67, 0.15);

  /* Typography Colors */
  --text-main: #9ca3af;
  --text-heading: #f9fafb;
  --text-muted: #6b7280;
  --text-light: #e5e7eb;
  --text-gold: #D4A843;

  /* Borders - Subtle and minimal */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(212, 168, 67, 0.2);
  --border-active: rgba(212, 168, 67, 0.5);

  /* UI Elements */
  --header-bg: #ffffff;
  --header-scrolled: #ffffff;
  --header-text: #1a1d21;
  --footer-bg: #ffffff;

  /* Shadows - Minimal for flat, clean look */
  --shadow-sm: none;
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.8);

  /* Typography Fonts (matches fcagrawalcoal.com body typeface; Gilroy headings there require a paid license, so Gantari is used for both) */
  --font-heading: 'Gantari', sans-serif;
  --font-body: 'Gantari', sans-serif;
  --font-accent: 'Playfair Display', serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  /* Border Radius - Sharper for enterprise feel */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;
}

/* Base & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Custom Premium Cursor */
.custom-cursor {
  position: fixed;
  top: -10px;
  left: -10px;
  width: 20px;
  height: 20px;
  background-color: var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, top 0.3s ease, left 0.3s ease;
  box-shadow: 0 0 10px rgba(212, 168, 67, 0.5);
}

.custom-cursor.hovering {
  width: 50px;
  height: 50px;
  top: -25px;
  left: -25px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid var(--color-primary);
  backdrop-filter: blur(2px);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  transition: color 0.35s ease;
}

.font-accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
}

/* FC Agrawal Split Heading Typography -> Clean Enterprise Headings */
.fc-headindiv {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.fc-yellow-italic-head {
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #f5b747 0%, #d4952c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.fc-white-head {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

p {
  color: var(--text-muted);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border-gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Selection */
::selection {
  background: var(--color-primary);
  color: #000;
}

/* Utilities & Contrast Fixes */
.text-gold {
  color: var(--text-gold) !important;
}

.text-white {
  color: #ffffff !important;
}

.text-heading {
  color: var(--text-heading) !important;
}

.text-heading {
  color: var(--text-heading) !important;
}

.text-main {
  color: var(--text-main) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.bg-surface {
  background-color: var(--bg-surface) !important;
}

.bg-card {
  background-color: var(--bg-card) !important;
}

.border-subtle {
  border-color: var(--border-subtle) !important;
}

.border-gold {
  border-color: var(--border-gold) !important;
}

/* Footer Brand Typography Contrast Fix */
.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-heading) !important;
  letter-spacing: 0.05em;
  line-height: 1;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-gold) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Breadcrumbs Contrast Fix */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  color: var(--text-muted) !important;
  font-weight: 500;
}

.breadcrumb-item a {
  color: var(--text-gold) !important;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--color-primary) !important;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--text-main) !important;
  font-weight: 600;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: var(--text-muted) !important;
}

/* Tables High Contrast & Styling */
.table-dark-custom,
.table-dark-custom th,
.table-dark-custom td {
  border-color: var(--border-subtle) !important;
  color: var(--text-main) !important;
}

.table-dark-custom {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-main);
  --bs-table-hover-bg: var(--color-primary-light);
  --bs-table-hover-color: var(--text-heading);
}

.table-dark-custom th {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-heading) !important;
  background-color: var(--bg-surface) !important;
  border-bottom: 2px solid var(--border-gold) !important;
  padding: 14px 16px;
}

.table-dark-custom td {
  color: var(--text-main) !important;
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-subtle) !important;
}

.table-dark-custom tbody tr:hover td {
  background-color: var(--color-primary-light) !important;
  color: var(--text-heading) !important;
}

/* Badges Contrast Fix */
.badge.bg-gold {
  background-color: var(--color-primary) !important;
  color: #090b0e !important;
  font-weight: 700;
}

.badge.bg-surface {
  background-color: var(--bg-surface) !important;
  color: var(--text-gold) !important;
  border: 1px solid var(--border-gold) !important;
}

.badge.bg-card {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-subtle) !important;
}

/* Section Header Styles */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary-light);
  border: 1px solid var(--border-gold);
  color: var(--text-gold);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-tag i {
  font-size: 0.9rem;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-heading);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, #f5b747 0%, #d4952c 100%);
  color: #090b0e !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(229, 169, 60, 0.3);
  transition: var(--transition-normal);
  cursor: pointer;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 169, 60, 0.45);
  background: linear-gradient(135deg, #ffc45c 0%, #e5a93c 100%);
}

.btn-outline-gold {
  background: transparent;
  color: var(--text-main) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  line-height: 1;
  transition: var(--transition-normal);
}

.btn-outline-gold:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary) !important;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  line-height: 1;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: var(--transition-normal);
}

.btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: rotate(15deg);
}

/* ==========================================================================
   Header & Navigation (Glassmorphic & Corporate)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: transform 0.4s ease, background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.site-header.scrolled {
  padding: 12px 0;
  background: var(--header-scrolled);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-sm);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-brand img {
  height: 65px;
  max-height: 65px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.header-brand:hover img {
  transform: scale(1.03);
}

.nav-link-custom {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--header-text);
  padding: 8px 16px !important;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--color-primary);
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  width: 20px;
}

.offcanvas .nav-link-custom {
  color: var(--text-main) !important;
}

.offcanvas .nav-link-custom:hover,
.offcanvas .nav-link-custom.active {
  color: var(--text-gold) !important;
}

/* Logo Styling */
.site-logo-img {
  background-color: #ffffff;
  padding: 5px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

/* ==========================================================================
   Hero Section (Premium Enterprise)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 160px;
  padding-bottom: 100px;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 70%);
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  filter: blur(100px);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-heading);
}

.hero-title .title-highlight {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
}

.hero-visual-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  filter: brightness(0.95);
  transition: transform 1s ease;
}

.hero-visual-card:hover img {
  transform: scale(1.03);
}

.hero-badge-floating {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  box-shadow: var(--shadow-md);
}

/* Stats Counter Section */
.stats-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 40px 0;
}

.stat-item {
  padding: 15px 20px;
  border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ==========================================================================
   Strengths Section (Grid Matrix)
   ========================================================================== */
.strength-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  height: 100%;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.strength-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: var(--transition-normal);
}

.strength-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}

.strength-card:hover::before {
  opacity: 1;
}

.strength-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  border: 1px solid var(--border-gold);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  transition: var(--transition-normal);
}

.strength-card:hover .strength-icon {
  background: var(--color-primary);
  color: #000000;
  transform: scale(1.08);
}

/* ==========================================================================
   Services Grid & Cards
   ========================================================================== */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-lg);
}

.service-card-img {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.08);
}

.service-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--bg-surface);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-heading);
  transition: var(--transition-fast);
}

.service-card:hover .service-card-title {
  color: var(--color-primary);
}

.service-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  margin: 3px;
}

.service-feature-pill i {
  color: var(--color-primary);
}

/* Redesigned Product Grade Showcase Box */
.grade-pills-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.grade-pills-header {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.grade-pills-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.grade-pill-link {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading) !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.grade-pill-link i {
  color: var(--text-gold);
  transition: transform 0.25s ease;
}

.grade-pill-link:hover {
  background: var(--color-primary-light);
  border-color: var(--border-gold);
  color: var(--color-primary) !important;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(229, 169, 60, 0.15);
}

.grade-pill-link:hover i {
  transform: translateX(3px);
  color: var(--color-primary);
}

/* Individual Grade Option Cards */
.sub-service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
}

.sub-service-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Client Portfolio & Brand Logos Styling
   ========================================================================== */
.client-portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.client-portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-lg);
}

.client-card-banner {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.client-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.85);
}

.client-portfolio-card:hover .client-card-banner img {
  transform: scale(1.06);
}

.client-logo-overlay-badge {
  position: absolute;
  bottom: 14px;
  left: 20px;
  background: rgba(16, 23, 38, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-logo-overlay-badge img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.client-brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.client-badge-card:hover .client-brand-logo-img {
  transform: scale(1.05);
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  height: 100%;
  transition: var(--transition-normal);
}

.process-step-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.process-step-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.5;
  margin-bottom: 12px;
  transition: var(--transition-fast);
}

.process-step-card:hover .process-step-num {
  opacity: 1;
}

/* ==========================================================================
   Marquee Client Showcase
   ========================================================================== */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 24px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-surface), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-surface), transparent);
}

.marquee-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.client-badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.client-badge-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 15px rgba(229, 169, 60, 0.15);
}

.client-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--color-primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.client-brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-heading);
}

.client-brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Leadership Spotlight
   ========================================================================== */
.leader-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition-normal);
  height: 100%;
}

.leader-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}

.leader-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--border-gold) 100%);
  padding: 3px;
  margin-bottom: 20px;
  display: inline-block;
}

.leader-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* ==========================================================================
   Forms, Inputs & High-Contrast Styling
   ========================================================================== */
.rfq-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 45px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.form-control-custom,
.form-select.form-control-custom,
input.form-control-custom,
textarea.form-control-custom,
select.form-control-custom {
  background-color: var(--bg-input) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-main) !important;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control-custom:focus,
.form-select.form-control-custom:focus {
  background-color: var(--bg-input) !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 4px var(--color-primary-light) !important;
  color: var(--text-main) !important;
  outline: none;
}

.form-control-custom::placeholder {
  color: var(--text-muted) !important;
}

/* Explicit high-contrast colors for options in dropdowns */
select.form-control-custom option,
select.form-control-custom optgroup {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  padding: 8px;
}

.form-label-custom {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

/* Modal Popup Styling */
.modal-content-custom {
  background-color: var(--bg-modal) !important;
  border: 1px solid var(--border-gold) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.75) !important;
  color: var(--text-main) !important;
}

.modal-header-custom {
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 30px;
}

.modal-body-custom {
  padding: 30px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 80px 0 30px;
  color: #4b5563;
}

.site-footer .brand-name,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer .text-white,
.site-footer strong,
.site-footer b {
  color: var(--header-text) !important;
}

.site-footer a.text-white {
  color: var(--header-text) !important;
}

.site-footer a.text-white:hover,
.site-footer a.hover-gold:hover {
  color: var(--text-gold) !important;
}

.site-footer .text-main {
  color: #4b5563 !important;
}

.site-footer .footer-link {
  color: #4b5563 !important;
  font-size: 0.92rem;
  display: block;
  margin-bottom: 10px;
  transition: var(--transition-fast);
}

.site-footer .footer-link:hover {
  color: var(--text-gold) !important;
  transform: translateX(4px);
}

.site-footer p.text-muted,
.site-footer .text-muted {
  color: #6b7280 !important;
}

.site-footer .border-subtle {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.site-footer .btn-outline-gold {
  color: #b9832a !important;
  border-color: rgba(212, 168, 67, 0.5);
}

.site-footer .btn-outline-gold:hover {
  background: rgba(212, 168, 67, 0.15);
  color: var(--header-text) !important;
  border-color: #b9832a;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
  padding-top: 25px;
  font-size: 0.85rem;
  color: #94a3b8 !important;
}

.footer-bottom .text-muted {
  color: #94a3b8 !important;
}

.footer-bottom a.hover-gold:hover {
  color: #f3b64c !important;
}

/* ==========================================================================
   Floating Action Stack (WhatsApp + AI Chatbot)
   ========================================================================== */
.floating-action-stack {
  position: fixed !important;
  bottom: 25px !important;
  right: 25px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 9999 !important;
}

.whatsapp-launcher {
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
  text-decoration: none;
}

.whatsapp-launcher:hover {
  transform: scale(1.1) rotate(5deg);
  background: #20ba59;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

.chatbot-launcher {
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5b747 0%, #d4952c 100%);
  color: #090b0e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 25px rgba(229, 169, 60, 0.45);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
}

.chatbot-launcher:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 10px 30px rgba(229, 169, 60, 0.6);
}

.chatbot-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
}

.action-tooltip {
  position: absolute;
  right: 70px;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-gold);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.whatsapp-launcher:hover .action-tooltip,
.chatbot-launcher:hover .action-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.chatbot-window {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 380px;
  height: 560px;
  max-width: calc(100vw - 35px);
  max-height: calc(100vh - 120px);
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  z-index: 1060;
  overflow: hidden;
  animation: chatbotSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatbotSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chatbot-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-messages {
  flex-grow: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-bubble-bot {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble-user {
  background: var(--color-primary);
  color: #090b0e;
  font-weight: 500;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip-btn {
  background: var(--color-primary-light);
  border: 1px solid var(--border-gold);
  color: var(--color-primary);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chip-btn:hover {
  background: var(--color-primary);
  color: #000000;
}

.chatbot-footer {
  padding: 14px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   Responsive Adjustments — Comprehensive Mobile-First System
   ========================================================================== */

/* ---------- Large Tablet / Landscape Mobile (max-width: 991px) ---------- */
@media (max-width: 991px) {

  /* Header: Compress padding */
  .site-header {
    padding: 12px 0;
  }

  .header-brand img {
    height: 40px;
  }

  /* Hero Section: center content */
  .hero-section {
    padding-top: 110px;
    padding-bottom: 56px;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-title {
    font-size: clamp(2.2rem, 6vw, 3.4rem);
  }

  /* Stats Strip */
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 0;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  /* Section titles */
  .section-title {
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  }

  /* Cards: reduce padding */
  .strength-card {
    padding: 28px 22px;
  }

  .leader-card {
    padding: 28px 22px;
  }

  /* Process cards */
  .process-step-card {
    padding: 24px 20px;
  }

  /* Sub-service hero button: full-width on tablet */
  .sub-hero-compact .btn-gold,
  section .col-lg-4.text-lg-end .btn-gold {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  /* RFQ box */
  .rfq-box {
    padding: 32px 28px;
  }

  /* Footer columns */
  .site-footer {
    padding: 60px 0 24px;
  }

  /* Footer bottom bar */
  .footer-bottom {
    text-align: center;
    flex-direction: column !important;
    gap: 0.75rem;
  }
}

/* ---------- Small Tablet / Large Phone (max-width: 768px) ---------- */
@media (max-width: 768px) {

  /* Hero font scale-down */
  .hero-title {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 1.1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.6rem;
  }

  /* Buttons: comfortable sizing */
  .btn-gold {
    font-size: 0.88rem;
    padding: 11px 22px;
    gap: 8px;
  }

  .btn-outline-gold {
    font-size: 0.83rem;
    padding: 10px 18px;
  }

  .btn-whatsapp {
    font-size: 0.83rem;
    padding: 10px 18px;
  }

  /* Hero actions: stack vertically on small screens */
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn-gold,
  .hero-actions .btn-outline-gold {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  /* Micro feature pills: reduce gap */
  .hero-section .d-flex.flex-wrap.align-items-center.gap-4 {
    gap: 0.75rem !important;
    justify-content: center;
  }

  /* Section headings */
  .section-title {
    font-size: clamp(1.65rem, 5.5vw, 2.2rem);
    line-height: 1.2;
  }

  /* Stat numbers */
  .stat-number {
    font-size: 2.2rem;
  }

  /* Strength cards: reduce padding */
  .strength-card {
    padding: 24px 18px;
  }

  .strength-icon {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    margin-bottom: 16px;
  }

  /* Service cards */
  .service-card-body {
    padding: 20px;
  }

  .service-card-title {
    font-size: 1.15rem;
  }

  .service-card-img {
    height: 200px;
  }

  /* Contact page banner */
  section[style*="padding-top: 140px"] {
    padding-top: 110px !important;
  }

  /* Sub-service hero */
  .sub-hero-compact h1,
  section .display-4.fw-bold {
    font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
  }

  /* Process step numbers */
  .process-step-num {
    font-size: 1.8rem;
  }

  /* Leader card */
  .leader-card {
    padding: 24px 18px;
  }

  .leader-avatar-wrap {
    width: 68px;
    height: 68px;
  }

  /* Footer */
  .site-footer {
    padding: 48px 0 20px;
  }

  .footer-bottom .d-flex.gap-4 {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem !important;
  }

  /* Modal padding */
  .modal-body-custom {
    padding: 20px;
  }

  .modal-header-custom {
    padding: 18px 20px;
  }
}

/* ---------- Mobile Phone (max-width: 576px) ---------- */
@media (max-width: 576px) {

  /* Header: tighter */
  .site-header {
    padding: 10px 0;
  }

  .header-brand img {
    height: 36px;
  }

  /* Hide "Request Quote" button in header on very small screens — relies on offcanvas button */
  .site-header .d-flex.align-items-center.gap-2>.btn-gold {
    display: none !important;
  }

  /* Offcanvas: full-width on mobile */
  #mobileNavOffcanvas {
    width: 100% !important;
  }

  /* Hero section */
  .hero-section {
    padding-top: 90px;
    padding-bottom: 48px;
  }

  .hero-title {
    font-size: clamp(1.7rem, 8.5vw, 2.3rem);
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.4rem;
  }

  .hero-visual-card img {
    height: 280px;
  }

  .hero-badge-floating {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }

  .hero-badge-floating a.btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Section tag */
  .section-tag {
    font-size: 0.75rem;
    padding: 5px 12px;
    gap: 6px;
  }

  /* Section title */
  .section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    margin-bottom: 1rem;
  }

  /* Section desc */
  .section-desc {
    font-size: 0.95rem;
  }

  /* Stats strip */
  .stats-strip {
    padding: 28px 0;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .stat-item {
    padding: 16px 0;
  }

  /* Buttons: larger tap targets */
  .btn-gold {
    font-size: 0.85rem;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    gap: 8px;
    min-height: 48px;
  }

  .btn-outline-gold {
    font-size: 0.82rem;
    padding: 11px 18px;
    min-height: 46px;
  }

  .btn-whatsapp {
    font-size: 0.82rem;
    padding: 11px 18px;
    min-height: 46px;
  }

  /* Hero actions: full-width stacked */
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-actions .btn-gold,
  .hero-actions .btn-outline-gold,
  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  /* Micro feature pills row */
  .hero-section .border-top.mt-5 {
    margin-top: 2rem !important;
    padding-top: 1.25rem !important;
  }

  .hero-section .d-flex.flex-wrap.align-items-center.gap-4 {
    gap: 0.6rem !important;
    justify-content: center;
  }

  /* About section: image height */
  .col-lg-5 img.img-fluid[style*="height: 480px"] {
    height: 280px !important;
  }

  /* Strength cards */
  .strength-card {
    padding: 20px 16px;
  }

  .strength-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    margin-bottom: 14px;
  }

  /* Service cards */
  .service-card-img {
    height: 180px;
  }

  .service-card-body {
    padding: 16px;
  }

  .service-card-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  /* Process section */
  .process-step-card {
    padding: 20px 16px;
  }

  .process-step-num {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  /* Leader card */
  .leader-card {
    padding: 20px 16px;
  }

  .leader-avatar-wrap {
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
  }

  .leader-avatar-inner {
    font-size: 1.2rem;
  }

  /* Floating action stack */
  .floating-action-stack {
    bottom: 16px;
    right: 14px;
    gap: 10px;
  }

  .whatsapp-launcher,
  .chatbot-launcher {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  /* Chatbot window: almost full-screen */
  .chatbot-window {
    width: calc(100vw - 20px);
    right: 10px;
    bottom: 76px;
    height: calc(100vh - 110px);
  }

  /* RFQ box */
  .rfq-box {
    padding: 22px 16px;
    border-radius: var(--radius-lg);
  }

  /* Contact page heading */
  .contact-heading,
  section .display-4.fw-bold {
    font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
    line-height: 1.2 !important;
  }

  /* Contact page banner padding */
  section[style*="padding-top: 140px"] {
    padding-top: 96px !important;
    padding-bottom: 2rem !important;
  }

  /* Sub-service template hero */
  section[style*="padding-top: 140px"] h1.display-4,
  section[style*="padding-top: 140px"] h1 {
    font-size: clamp(1.4rem, 7vw, 2rem) !important;
    line-height: 1.2 !important;
  }

  /* Spec tables: make scrollable */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  .table-dark-custom th,
  .table-dark-custom td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  /* Grade pill links */
  .grade-pill-link {
    font-size: 0.82rem;
    padding: 8px 12px;
  }

  /* App chips */
  .app-chip {
    font-size: 0.82rem;
    padding: 8px 12px;
  }

  /* Footer */
  .site-footer {
    padding: 40px 0 16px;
  }

  .site-footer .brand-name {
    font-size: 1.1rem;
  }

  .site-footer .footer-link {
    font-size: 0.88rem;
  }

  .footer-bottom {
    font-size: 0.78rem;
    gap: 0.5rem;
  }

  .footer-bottom .d-flex.gap-4 {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem !important;
  }

  /* Client badge cards in marquee */
  .client-badge-card {
    padding: 10px 18px;
    gap: 10px;
  }

  .client-brand-title {
    font-size: 0.88rem;
  }

  /* Breadcrumbs */
  .breadcrumb {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }

  /* Modal */
  .modal-content-custom {
    border-radius: var(--radius-lg) !important;
  }

  .modal-body-custom {
    padding: 16px;
  }

  .modal-header-custom {
    padding: 14px 16px;
  }

  /* Section py spacing */
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* Row gutter on mobile */
  .g-5 {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
  }
}

/* ---------- Very Small Phones (max-width: 375px) ---------- */
@media (max-width: 375px) {

  .hero-title {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .btn-gold,
  .btn-outline-gold,
  .btn-whatsapp {
    font-size: 0.8rem;
    padding: 10px 16px;
  }

  .hero-visual-card img {
    height: 240px;
  }

  .rfq-box {
    padding: 18px 14px;
  }

  .strength-card {
    padding: 18px 14px;
  }

  .service-card-body {
    padding: 14px;
  }

  .chatbot-window {
    width: calc(100vw - 16px);
    right: 8px;
  }
}

/* ==========================================================================
   DEDICATED SUB-SERVICES PAGE STYLES (Ultra-Clean, Compact & Low-Height)
   ========================================================================== */
.sub-hero-compact {
  padding-top: 105px !important;
  padding-bottom: 2rem !important;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.sub-hero-compact .breadcrumb {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.sub-hero-compact h1 {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.25;
}

.category-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid var(--border-gold);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-table-compact {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.spec-table-compact table td,
.spec-table-compact table th {
  padding: 0.65rem 0.85rem;
}

.app-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s;
}

.app-chip:hover {
  border-color: var(--border-gold);
}

.logistics-strip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  height: 100%;
}

.compact-sourcing-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
}

.compact-sibling-link {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--text-heading);
  transition: all 0.2s ease;
}

.compact-sibling-link:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  color: var(--color-primary);
}

[data-theme="light"] .spec-table-compact,
[data-theme="light"] .app-chip,
[data-theme="light"] .logistics-strip-card,
[data-theme="light"] .compact-sourcing-box,
[data-theme="light"] .compact-sibling-link {
  background: #ffffff;
}

/* ==========================================================================
   Additional Mobile Fixes — Container, Sidebar, Offcanvas & Layout
   ========================================================================== */

/* Ensure containers have safe side padding on all screens */
@media (max-width: 576px) {

  /* Base container padding */
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Override px-lg-5 default (Bootstrap only applies px-5 at lg, but
     container-fluid has no side padding on mobile by default — add some) */
  .container-fluid.px-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Compact sourcing box: remove sticky on mobile to avoid scroll trapping */
  .compact-sourcing-box {
    position: relative !important;
    top: auto !important;
  }

  /* Ensure rows in g-5 have more appropriate mobile gutters */
  .row.g-5 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1.5rem;
  }

  /* Sub-service template: make the spec card full-width on mobile */
  .col-lg-8 .p-4.p-lg-5.rounded-4 {
    padding: 1.25rem !important;
  }

  /* Form labels readable size */
  .form-label-custom {
    font-size: 0.82rem;
  }

  /* Form inputs adequate tap target */
  .form-control-custom,
  input.form-control-custom,
  textarea.form-control-custom,
  select.form-control-custom {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  /* Offcanvas close button contrast fix */
  .offcanvas .btn-close {
    filter: invert(1);
  }

  [data-theme="light"] .offcanvas .btn-close {
    filter: none;
  }

  /* Nav link in offcanvas: larger tap area */
  .offcanvas .nav-link-custom {
    padding: 10px 0 !important;
    font-size: 1.1rem;
  }

  /* Hero pill bar items: smaller text */
  .hero-section .small {
    font-size: 0.82rem;
  }

  /* About spotlight image */
  .about-section-img {
    height: 260px !important;
    object-fit: cover;
  }

  /* Contact page: stack banner content */
  section .col-lg-4.text-lg-end {
    text-align: left !important;
  }

  /* Sub-service: CTA column stacks below hero heading */
  section .col-lg-4.text-lg-end .btn-gold {
    margin-top: 0.75rem;
    width: 100%;
    justify-content: center;
  }

  /* Logistics strip cards: natural height on mobile */
  .logistics-strip-card {
    height: auto !important;
  }

  /* Grade pills box */
  .grade-pills-box {
    padding: 12px 14px;
  }

  /* Sub sibling links */
  .compact-sibling-link {
    font-size: 0.82rem;
    padding: 0.65rem 0.85rem;
  }

  /* Stats: 2 per row on mobile (col-6) stays as-is, just fix border */
  .stat-item {
    border-right: 1px solid var(--border-subtle);
  }

  /* Last child in first row, and all items in second row */
  .col-6.stat-item:nth-child(2n) {
    border-right: none;
  }

  /* Hero glow: smaller on mobile */
  .hero-glow {
    width: 280px;
    height: 280px;
    top: 5%;
    right: -10%;
  }

  /* Page banner headings on contact/sub-service pages */
  .py-5.position-relative.bg-surface h1 {
    font-size: clamp(1.4rem, 7vw, 2rem) !important;
    line-height: 1.25 !important;
  }

  .py-5.position-relative.bg-surface p.fs-5 {
    font-size: 0.95rem !important;
  }
}

/* Tablet-specific: sidebar sourcing box should not be too tall */
@media (max-width: 991px) {
  .compact-sourcing-box {
    position: relative !important;
    top: auto !important;
  }
}

/* ==========================================================================
   FC AGRAWAL - SPECIFIC STYLES
   ========================================================================== */

/* Navigation */
.fc-navbar-desktop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  mask: linear-gradient(0deg, transparent, #fff 20%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.fc-navbar-desktop.scrolled {
  position: fixed;
  background: rgba(5, 5, 5, 0.95);
  mask: none;
  border-bottom: 1px solid var(--border-subtle);
}

.fc-nav-menu-txt {
  font-family: var(--font-body);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.fc-nav-menu-txt:hover,
.fc-nav-menu-txt.w--current {
  color: #fff;
}

.fc-nav-contact-link a {
  transition: var(--transition-fast);
}

.fc-nav-contact-link a:hover {
  color: var(--color-primary) !important;
}

/* Logo Watermark */
.logo-watermark {
  position: relative;
  z-index: 1;
}

.logo-watermark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 90vh;
  max-width: 600px;
  max-height: 600px;
  background-image: url('../images/logo_clean.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.03;
  z-index: -1;
  pointer-events: none;
}

/* Portfolio Card Hover */
.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  background-color: #2a2b2f !important;
}

/* Navbar Scrolled State */
.fc-navbar-desktop {
  transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
}

.fc-navbar-desktop.scrolled {
  background-color: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Base Sections */
.fc-section {
  padding: 80px 0;
  position: relative;
}

/* Push footer to bottom of screen on short pages */
body > footer.fc-section {
  margin-top: auto;
}

@media (max-width: 767px) {
  .fc-section {
    padding: 60px 0;
  }
}

/* Video Background Utils */
.fc-video-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.fc-video-bg {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* Video Background & Parallax */
.fc-parallax-wrap {
  overflow: hidden;
  position: relative;
  border-radius: 70rem 10px 10px 12px;
}

.fc-parallax-img {
  width: 100%;
  height: 130%;
  /* Extra height for scrolling */
  object-fit: cover;
  transform: translateY(-15%);
  /* Initial offset */
  will-change: transform;
}

/* Decorative hero background layer that drifts on scroll (see .fc-parallax-bg JS) */
.fc-parallax-bg {
  pointer-events: none;
  will-change: transform;
}

/* Foreground content that counter-drifts against the background for a depth effect */
.fc-parallax-content {
  will-change: transform;
}

/* ==========================================================================
   Generic Hover Utilities (Card Lift / Elevate / Gold & White Text)
   ========================================================================== */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.hover-lift:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold) !important;
  box-shadow: var(--shadow-lg);
}

/* Product category cards: imagery stays restrained beneath readable content. */
.product-showcase-card {
  --card-image: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 390px;
  background-color: #202125;
  background-image:
    linear-gradient(180deg, rgba(19, 20, 24, 0.86) 0%, rgba(22, 23, 28, 0.91) 58%, rgba(22, 23, 28, 0.98) 100%),
    var(--card-image);
  background-position: center;
  background-size: cover;
}

.product-showcase-card::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(210, 162, 45, 0.18), transparent 32%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.product-showcase-card > * {
  position: relative;
  z-index: 1;
}

.product-showcase-card:hover::after {
  opacity: 1;
}

.product-showcase-card--coal {
  --card-image: url('../images/coal.jpg');
}

.product-showcase-card--minerals {
  --card-image: url('../images/Industrial-Minerals.webp');
}

.product-showcase-card--materials {
  --card-image: url('../images/raw-minerals.jpg');
}

.product-showcase-card--bespoke {
  --card-image: url('../images/custom-procurement.jpg');
}

.product-showcase-card .text-muted {
  color: #b5b9c4 !important;
}

/* Industry cards mirror the Product-card visual treatment. */
.industry-showcase-card {
  --industry-image: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #202125;
  background-image:
    linear-gradient(180deg, rgba(19, 20, 24, 0.86) 0%, rgba(22, 23, 28, 0.91) 58%, rgba(22, 23, 28, 0.98) 100%),
    var(--industry-image);
  background-position: center;
  background-size: cover;
}

.industry-showcase-card::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(210, 162, 45, 0.18), transparent 32%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.industry-showcase-card:hover::after {
  opacity: 1;
}

.industry-showcase-card > * {
  position: relative;
  z-index: 1;
}

.industry-showcase-card--cement {
  --industry-image: url('../images/cement.webp');
}

.industry-showcase-card--steel {
  --industry-image: url('../images/steel-industry.jpg');
}

.industry-showcase-card--power {
  --industry-image: url('../images/power-generation.jpg');
}

.industry-showcase-card .text-muted {
  color: #b5b9c4 !important;
}

@media (max-width: 767.98px) {
  .product-showcase-card {
    min-height: 0;
  }
}

/* Insight article cards (Bootstrap .card + custom bg-card) */
.card.bg-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.card.bg-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold) !important;
  box-shadow: var(--shadow-lg);
}

.card.bg-card:hover img {
  transform: scale(1.08);
}

a.hover-gold:hover {
  color: var(--text-gold) !important;
}

a.hover-text-white {
  transition: color 0.25s ease;
}

a.hover-text-white:hover {
  color: #ffffff !important;
}

.hover-elevate {
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.hover-elevate:hover {
  transform: translateX(4px);
  border-color: var(--border-gold) !important;
  background-color: var(--bg-card-hover);
}

/* ==========================================================================
   Custom Forms & Modals (Dark Theme)
   ========================================================================== */
.form-control-custom,
.form-select-custom {
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: var(--transition-fast);
}

.form-control-custom:focus,
.form-select-custom:focus {
  background-color: var(--bg-input);
  border-color: var(--color-primary);
  color: var(--text-heading);
  box-shadow: 0 0 0 0.25rem var(--color-primary-light);
  outline: 0;
}

.form-control-custom::placeholder {
  color: var(--text-muted);
}

.form-select-custom option {
  background-color: var(--bg-surface);
  color: var(--text-heading);
}

.form-label-custom {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.modal-content-custom {
  background-color: var(--bg-modal);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-header-custom {
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px;
}

.modal-body-custom {
  padding: 32px;
}

/* Minimalist Form Controls (Used on Homepage) */
.form-control.bg-transparent,
.form-select.bg-transparent {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

.form-control.bg-transparent::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

.form-control.bg-transparent:focus,
.form-select.bg-transparent:focus {
  border-bottom: 1px solid var(--color-primary) !important;
  box-shadow: none !important;
}

/* Fullscreen Background Video */
.fc-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130%;
  /* Extra height for parallax */
  object-fit: cover;
  z-index: -1;
  transform: translateY(-15%);
  will-change: transform;
}

/* ==========================================================================
   Premium Redesign Components (Services & Contact)
   ========================================================================== */

/* FC Blob Card (FC Agrawal Specific Image Styling) */
.fc-blob-card {
  position: relative;
  display: inline-block;
  padding: 10px;
  width: 100%;
}

.fc-blob-card::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 15px;
  bottom: -5px;
  background-color: var(--color-primary); /* Yellow offset */
  border-radius: 40px;
  z-index: 0;
  transform: rotate(-3deg);
  transition: transform 0.5s ease;
}

.fc-blob-card:hover::before {
  transform: rotate(0deg) scale(1.02);
}

.fc-blob-card-inner {
  position: relative;
  z-index: 1;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  width: 100%;
  height: 100%;
}

.fc-blob-card-inner img,
.fc-blob-card-inner video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Mobile Responsiveness (Max-Width: 991px)
   ========================================================================== */
@media (max-width: 991px) {
  /* Overrides for hardcoded inline hero paddings */
  section[style*="padding-top: 180px"] {
    padding-top: 110px !important;
    padding-bottom: 60px !important;
  }
  section[style*="padding-top: 140px"] {
    padding-top: 90px !important;
  }
  .hero-section {
    padding-top: 110px !important;
    padding-bottom: 60px !important;
    min-height: auto;
  }
  
  /* Responsive Font Sizing */
  .fc-yellow-italic-head {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
  }
  .fc-white-head {
    font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
    letter-spacing: -1px !important;
  }
  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem) !important;
  }
  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
  }
  .display-2 {
    font-size: 2.5rem !important;
  }
  .display-4 {
    font-size: 2.2rem !important;
  }
  .stat-number {
    font-size: 2.2rem !important;
  }

  /* Structural Padding & Gap Overrides */
  .p-5 {
    padding: 1.5rem !important;
  }
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  .pt-5 {
    padding-top: 2rem !important;
  }
  .pb-5 {
    padding-bottom: 2rem !important;
  }
  .row.g-5, .row.gy-5 {
    --bs-gutter-y: 2rem !important;
  }
  
  /* Header Adjustments */
  .site-header {
    padding: 12px 0 !important;
  }
  .header-brand img {
    height: 45px !important;
  }
  
  /* Visual Fixes */
  .hero-visual-card img {
    height: 320px !important;
  }
  .hero-glow {
    width: 300px;
    height: 300px;
  }
  
  /* Force buttons to be full width on mobile for better touch targets */
  .btn-gold, .btn-outline-gold {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
  }
  
  /* Reset form buttons inside modal to not stretch if they don't need to */
  .modal-body .btn-gold {
    width: 100%;
  }
}
