/* Mars Gas – shared theme (day / night + blurred designs) */
:root {
  --mg-orange: #ff4a17;
  --mg-navy: #00236b;
  --mg-navy-deep: #001a4d;
  --mg-bg: #f5f7fb;
  --mg-surface: #ffffff;
  --mg-surface-2: #eef1f7;
  --mg-text: #1a1a1a;
  --mg-muted: #6b7280;
  --mg-border: #e5e7eb;
  --mg-nav-bg: rgba(255, 255, 255, 0.92);
  --mg-card-shadow: 0 18px 40px rgba(0, 26, 77, 0.08);
  --mg-blur-1: rgba(255, 74, 23, 0.18);
  --mg-blur-2: rgba(0, 35, 107, 0.14);
  --mg-blur-3: rgba(34, 197, 94, 0.1);
}

body.dark-mode {
  --mg-bg: #0b1220;
  --mg-surface: #121a2b;
  --mg-surface-2: #1a2438;
  --mg-text: #e8eef7;
  --mg-muted: #9aa6b8;
  --mg-border: #2a364c;
  --mg-nav-bg: rgba(11, 18, 32, 0.92);
  --mg-card-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --mg-blur-1: rgba(255, 74, 23, 0.22);
  --mg-blur-2: rgba(80, 140, 255, 0.16);
  --mg-blur-3: rgba(56, 189, 248, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Rubik', sans-serif;
  background: var(--mg-bg);
  color: var(--mg-text);
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
  position: relative;
}

/* Blurred ambient background shapes */
.bg-blur-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-blur-layer .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.85;
  animation: floatOrb 18s ease-in-out infinite;
}

.bg-blur-layer .orb-1 {
  width: 420px; height: 420px;
  background: var(--mg-blur-1);
  top: -120px; left: -80px;
}

.bg-blur-layer .orb-2 {
  width: 520px; height: 520px;
  background: var(--mg-blur-2);
  bottom: -160px; right: -120px;
  animation-delay: -6s;
}

.bg-blur-layer .orb-3 {
  width: 280px; height: 280px;
  background: var(--mg-blur-3);
  top: 42%; left: 55%;
  animation-delay: -11s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -24px) scale(1.06); }
}

body > header,
body > section,
body > footer,
body > .page-content {
  position: relative;
  z-index: 1;
}

.primary-button {
  padding: 14px 36px;
  background: var(--mg-orange);
  color: #fff !important;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}
.primary-button:hover {
  background: var(--mg-navy);
  color: #fff !important;
}

.nav-link-custom {
  text-decoration: none;
  font-weight: 500;
  color: var(--mg-text);
  transition: color 0.2s;
}
.nav-link-custom:hover,
.nav-link-custom.active { color: var(--mg-orange); }

.site-nav {
  background: var(--mg-nav-bg);
  border-bottom: 1px solid var(--mg-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--mg-border);
  background: var(--mg-surface);
  color: var(--mg-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s;
}
.theme-toggle:hover {
  border-color: var(--mg-orange);
  color: var(--mg-orange);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.live-badge span {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.stat-number {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--mg-navy);
  font-family: 'Oswald', sans-serif;
}
body.dark-mode .stat-number { color: #8eb6ff; }

.cylinder-card,
.value-card,
.glass-panel {
  background: var(--mg-surface);
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
  height: 100%;
  box-shadow: var(--mg-card-shadow);
}
.cylinder-card:hover,
.value-card:hover {
  transform: translateY(-10px);
}

.section-gap { padding-top: 5rem; padding-bottom: 5rem; }

.product-img-wrap {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--mg-surface-2), transparent);
  border-radius: 12px;
}
.product-img-wrap img {
  max-height: 180px;
  object-fit: contain;
}

.hero-section {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background:
    linear-gradient(115deg, rgba(0, 26, 77, 0.92) 0%, rgba(0, 35, 107, 0.72) 55%, rgba(255, 74, 23, 0.35) 100%),
    url('../assets/imgs/hero.png') center/cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  background: rgba(255, 74, 23, 0.25);
  filter: blur(80px);
  border-radius: 50%;
  top: 10%; right: 8%;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(70px);
  border-radius: 50%;
  bottom: 5%; left: 12%;
  pointer-events: none;
}
.hero-img {
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-banner {
  background:
    linear-gradient(105deg, rgba(0, 26, 77, 0.92), rgba(0, 35, 107, 0.78)),
    url('../assets/imgs/trucks.png') center/cover;
  padding: 140px 0 90px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  right: 5%; top: 20%;
  background: rgba(255, 74, 23, 0.3);
  filter: blur(70px);
  border-radius: 50%;
}

.bg-soft-warehouse {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--mg-bg) 92%, transparent), color-mix(in srgb, var(--mg-bg) 96%, transparent)),
    url('../assets/imgs/bg2.png') center/cover no-repeat;
  background-blend-mode: screen;
}
.bg-soft-group {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--mg-surface-2) 94%, transparent), var(--mg-bg)),
    url('../assets/imgs/cylinders-group.jpg') right bottom / 42% no-repeat;
}

.cta-section {
  background:
    linear-gradient(100deg, rgba(0, 26, 77, 0.94), rgba(255, 74, 23, 0.55)),
    url('../assets/imgs/walllogo.png') center/cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.12), transparent 50%);
  pointer-events: none;
}

.site-footer {
  background: var(--mg-navy-deep);
  color: #fff;
  padding: 50px 0 20px;
}
body.dark-mode .site-footer { background: #060b14; }

.text-muted { color: var(--mg-muted) !important; }

.form-control, .form-select {
  background: var(--mg-surface);
  color: var(--mg-text);
  border-color: var(--mg-border);
}
.form-control:focus, .form-select:focus {
  background: var(--mg-surface);
  color: var(--mg-text);
  border-color: var(--mg-orange);
  box-shadow: 0 0 0 0.2rem rgba(255, 74, 23, 0.15);
}

.offcanvas {
  background: var(--mg-surface);
  color: var(--mg-text);
}
.offcanvas a { color: var(--mg-text); text-decoration: none; }

.brand-logo-dark { display: none; }
body.dark-mode .brand-logo-light { display: none; }
body.dark-mode .brand-logo-dark { display: inline-block; }

/* Frosted panels */
.frost {
  background: color-mix(in srgb, var(--mg-surface) 78%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--mg-border);
  border-radius: 20px;
}

.svc-img { max-height: 280px; object-fit: contain; border-radius: 16px; }

@media (prefers-reduced-motion: reduce) {
  .orb, .bg-blur-layer .orb { animation: none; }
}

/* ===== Mars Gas brand red (replace orange) ===== */
:root {
  --mg-orange: #e30613;          /* primary red */
  --mg-orange-hover: #b80510;    /* darker red on hover */
  --mg-navy: #00236b;
  --mg-navy-deep: #001a4d;
  --mg-blur-1: rgba(227, 6, 19, 0.16);
}

body.dark-mode {
  --mg-blur-1: rgba(227, 6, 19, 0.22);
}

.primary-button {
  background: var(--mg-orange);
}
.primary-button:hover {
  background: var(--mg-orange-hover);
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--mg-orange);
}

.theme-toggle:hover {
  border-color: var(--mg-orange);
  color: var(--mg-orange);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--mg-orange);
  box-shadow: 0 0 0 0.2rem rgba(227, 6, 19, 0.15);
}

/* keep Bootstrap “danger” aligned with brand red on contact icons etc. */
.text-danger {
  color: #e30613 !important;
}

/* ===== Contact page: tighter, smaller type ===== */
.page-banner h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: 0.02em;
}
.page-banner p {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* form + info column on contact */
.cylinder-card .form-label,
.frost .small,
.cylinder-card .small {
  font-size: 0.78rem;
}

.cylinder-card h3,
.frost h2,
.frost h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.25;
}

.cylinder-card p,
.frost p,
.cylinder-card .text-muted,
.frost .text-muted {
  font-size: 0.9rem;
  line-height: 1.55;
}

.form-control-lg,
.form-select-lg {
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  min-height: 46px;
}

.form-control,
.form-select,
textarea.form-control {
  font-size: 0.92rem;
}

textarea.form-control {
  padding: 0.7rem 0.9rem;
}

.cylinder-card .primary-button,
.frost .primary-button {
  padding: 12px 22px;
  font-size: 0.95rem;
}

.btn-lg {
  font-size: 0.95rem;
  padding: 0.65rem 1.1rewm;
}

/* contact icon rows */
.frost a strong {
  font-size: 0.92rem;
}
.frost a .small {
  font-size: 0.8rem;
  line-height: 1.45;
}