/* ==========================================================================
   Rahul Enterprises - LPG Gas Agency
   Custom CSS Styling System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design System & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  --primary: #0F2B48;        /* Deep Premium Navy */
  --primary-light: #1E3A8A;  /* Rich Royal Blue */
  --primary-dark: #071526;   /* Midnight Navy */
  
  --flame-orange: #FF6F00;   /* Energetic LPG Flame Orange */
  --flame-hover: #E65100;    /* Dark Flame Orange */
  --flame-light: #FFF3E0;    /* Soft Amber Glow */
  
  --cyan-accent: #00B4D8;    /* Clean Gas Flame Cyan */
  --cyan-light: #E0F7FA;     /* Soft Cyan Tint */
  
  --success: #2E7D32;        /* Safety Green */
  --warning: #F59E0B;        /* Alert Gold */
  --danger: #D32F2F;         /* Emergency Red */
  
  --bg-light: #F8FAFC;       /* Off White Surface */
  --card-bg: #FFFFFF;        /* Pure White Card */
  --text-main: #1E293B;      /* Slate Dark Text */
  --text-muted: #64748B;     /* Muted Grey Text */
  --border-color: #E2E8F0;   /* Subtle Border */

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  --shadow-sm: 0 4px 6px -1px rgba(15, 43, 72, 0.05), 0 2px 4px -1px rgba(15, 43, 72, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(15, 43, 72, 0.08), 0 8px 10px -6px rgba(15, 43, 72, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 43, 72, 0.12), 0 10px 15px -5px rgba(255, 111, 0, 0.1);
  --shadow-orange: 0 10px 25px -5px rgba(255, 111, 0, 0.35);

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Core Resets & Base Styles
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  transition: var(--transition-fast);
}

/* --------------------------------------------------------------------------
   3. Top Bar Header & Announcement Banners
   -------------------------------------------------------------------------- */
.top-header {
  background: var(--primary-dark);
  color: #CBD5E1;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-header a {
  color: #E2E8F0;
}

.top-header a:hover {
  color: var(--flame-orange);
}

.emergency-pill {
  background: rgba(211, 47, 47, 0.2);
  border: 1px solid rgba(211, 47, 47, 0.5);
  color: #FF8A80;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #FF5252;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
  animation: pulse-red 1.6s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 82, 82, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}

/* --------------------------------------------------------------------------
   4. Navbar Styling
   -------------------------------------------------------------------------- */
.main-navbar {
  background: rgba(15, 43, 72, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--flame-orange);
  transition: var(--transition-normal);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--flame-orange), #FF9800);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

.brand-text {
  line-height: 1.1;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--cyan-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.nav-link {
  color: #E2E8F0 !important;
  font-weight: 500;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF !important;
  background: rgba(255, 111, 0, 0.15);
  font-weight: 600;
}

.btn-refill-nav {
  background: linear-gradient(135deg, var(--flame-orange), #E65100);
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
  transition: var(--transition-normal);
  border: none;
}

.btn-refill-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 111, 0, 0.45);
  background: linear-gradient(135deg, #FF8F00, var(--flame-orange));
}

/* --------------------------------------------------------------------------
   5. Hero Sections & Banners
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #153B64 100%);
  padding: 90px 0 100px;
  color: #FFFFFF;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,111,0,0.2) 0%, rgba(15,43,72,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.4);
  color: var(--cyan-accent);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.text-gradient-flame {
  background: linear-gradient(135deg, #FFB74D, var(--flame-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: #94A3B8;
  max-width: 580px;
  margin-bottom: 32px;
}

/* Internal Page Banner Header */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 60px 0;
  color: #FFFFFF;
  border-bottom: 3px solid var(--flame-orange);
}

.page-banner h1 {
  color: #FFFFFF;
  font-size: 2.5rem;
}

.breadcrumb-item a {
  color: var(--cyan-accent);
}

.breadcrumb-item.active {
  color: #94A3B8;
}

/* --------------------------------------------------------------------------
   6. Custom Cards & Refill Booking Widget
   -------------------------------------------------------------------------- */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 30px;
}

.booking-widget-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.form-label {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  border-color: var(--flame-orange);
  box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.15);
}

.price-box {
  background: var(--flame-light);
  border: 1px dashed var(--flame-orange);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.price-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--flame-hover);
}

/* Service Card */
.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--flame-orange), var(--cyan-accent));
  opacity: 0;
  transition: var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 111, 0, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--flame-light);
  color: var(--flame-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  transition: var(--transition-normal);
}

.service-card:hover .icon-wrapper {
  background: var(--flame-orange);
  color: #FFFFFF;
  transform: scale(1.1) rotate(-5deg);
}

/* Feature & Stat Cards */
.stat-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--primary);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--flame-orange);
  font-family: 'Outfit', sans-serif;
  line-height: 1;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   7. Safety & Alert Helpline Banner
   -------------------------------------------------------------------------- */
.safety-banner {
  background: linear-gradient(135deg, #1E293B, var(--primary-dark));
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 111, 0, 0.3);
}

.safety-badge {
  background: var(--danger);
  color: #FFF;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.safety-list {
  list-style: none;
  padding-left: 0;
}

.safety-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: #CBD5E1;
}

.safety-list li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--flame-orange);
}

/* --------------------------------------------------------------------------
   8. Gallery Filter & Cards
   -------------------------------------------------------------------------- */
.filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  margin: 4px;
  transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #000;
  height: 260px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
  opacity: 0.9;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(15,43,72,0.95) 0%, rgba(15,43,72,0) 100%);
  color: #FFF;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   9. Floating Buttons & Utility Components
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  color: #FFF;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* --------------------------------------------------------------------------
   10. Footer Section
   -------------------------------------------------------------------------- */
footer {
  background: var(--primary-dark);
  color: #94A3B8;
  padding-top: 70px;
  padding-bottom: 30px;
  border-top: 4px solid var(--flame-orange);
}

footer h5 {
  color: #FFFFFF;
  margin-bottom: 24px;
  font-size: 1.15rem;
  position: relative;
  padding-bottom: 10px;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--flame-orange);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94A3B8;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--flame-orange);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-contact-item i {
  color: var(--flame-orange);
  font-size: 1.2rem;
  margin-top: 3px;
}

.copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 50px;
  padding-top: 25px;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   11. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-section {
    padding: 60px 0;
    text-align: center;
  }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .glass-card {
    margin-top: 40px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  .top-header {
    display: none;
  }
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
}
