/* Core Variables — matched to the Afrik Gas logo (green + orange) */
:root {
  --primary: #1B7A3D;
  --primary-dark: #145C2E;
  --secondary: #F7941E;
  --secondary-dark: #DD7A0A;
  --dark: #1e293b;
  --light: #f8fafc;
  --wa-green: #25D366; 
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Base resets & typography */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Poppins", sans-serif; color: #475569; background: #fff; overflow-x: hidden; font-size: 0.95rem; }

/* Fluid Typography */
h1, h2, h3, h4, h5 { font-family: "Playfair Display", serif; color: var(--dark); font-weight: 700; text-wrap: balance; }
.htitle { font-size: clamp(1.75rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.15; margin-bottom: 15px; }
.stitle { font-size: clamp(1.4rem, 4vw, 2.5rem); font-weight: 900; margin-bottom: 15px; }

a { text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
img { max-width: 100%; height: auto; display: block; }

/* Topbar */
#topbar { background: var(--dark); padding: 8px 0; font-size: 0.85rem; color: #cbd5e1; }
#topbar span { margin-right: 16px; }
#topbar span i { color: var(--secondary); margin-right: 6px; }

/* Navbar */
.navbar { padding: 0.5rem 1rem; transition: all 0.3s; }
.navbar-toggler { min-width: 48px; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.blogo { display: flex; align-items: center; gap: 15px; height: 60px; }
.brand-logo { height: 160px; width: auto; display: block; margin: -50px 0; mix-blend-mode: multiply; }
.bname { font-size: 1.5rem; font-family: "Playfair Display", serif; font-weight: 900; color: var(--dark); line-height: 1; }
.bname span { color: var(--secondary); }
.bsub { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: #64748b; }
.nav-link { font-weight: 500; color: var(--dark); position: relative; padding: 0.5rem 1rem; min-height: 48px; display: flex; align-items: center; }
.nav-link::after { content: ''; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background: var(--secondary); transition: 0.3s; border-radius: 2px; }
.nav-link:hover::after, .nav-link.active::after { width: 30px; }
.nav-cta { background: var(--wa-green) !important; color: #fff !important; border-radius: 6px; font-weight: 600 !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #1ebd57 !important; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(37,211,102,0.3); }

/* Floating WhatsApp */
.floating-wa { position: fixed; bottom: 30px; right: 30px; background: var(--wa-green); color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2rem; box-shadow: 0 10px 20px rgba(37,211,102,0.4); z-index: 1000; transition: transform 0.3s; }
.floating-wa:hover { transform: scale(1.1); color: #fff; }
@keyframes pulse-wa {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37,211,102, 0.7); }
    10% { transform: scale(1.15); box-shadow: 0 0 0 15px rgba(37,211,102, 0); }
    20% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37,211,102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37,211,102, 0); }
}
.floating-wa.animating { animation: pulse-wa 5s infinite; }

/* Utilities & Sections */
section { padding: 3rem 0; }
@media (min-width: 768px) { section { padding: 5rem 0; } }
.slbl { font-size: 0.85rem; color: var(--primary); font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 8px; letter-spacing: 1.5px; }
.stitle span { color: var(--secondary); }
.sline { width: 60px; height: 4px; background: var(--secondary); margin: 0 auto 20px; border-radius: 2px; }
.btn-red, .btn-outline, .btn-wa { min-height: 48px; min-width: 48px; padding: 12px 28px; border-radius: 6px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s; cursor: pointer; border: none; font-size: 0.95rem; }
.btn-red { background: var(--primary); color: #fff; box-shadow: 0 4px 15px rgba(27,122,61,0.25); }
.btn-red:hover { background: var(--primary-dark); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(27,122,61,0.35); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(27,122,61,0.25); }
.btn-wa { background: var(--wa-green); color: #fff; box-shadow: 0 4px 15px rgba(37,211,102,0.3); }
.btn-wa:hover { background: #1ebd57; color: #fff; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(37,211,102,0.4); }
.btn-wa:disabled { background: #9ca3af; box-shadow: none; transform: none; cursor: not-allowed; }
.btn-sm-wa, .btn-sm-outline { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 4px; font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.btn-sm-wa { background: rgba(37,211,102,0.1); color: var(--wa-green); }
.btn-sm-wa:hover { background: var(--wa-green); color: #fff; }
.btn-sm-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-sm-outline:hover { background: var(--primary); color: #fff; }

/* Feature Cards (Why Us & Who We Serve) */
.feature-card, .serve-card { background: #fff; padding: 30px; border-radius: 12px; box-shadow: var(--shadow); transition: 0.3s; height: 100%; border: 1px solid #f1f5f9; }
.feature-card:hover, .serve-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #e2e8f0; }
.f-icon { width: 60px; height: 60px; border-radius: 12px; background: rgba(27,122,61,0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 20px; transition: 0.3s; }
.feature-card:hover .f-icon { background: var(--primary); color: #fff; transform: scale(1.05); }
.feature-card h3, .serve-card h4 { font-size: 1.25rem; margin-bottom: 12px; font-family: "Poppins", sans-serif; }
.feature-card p, .serve-card p { font-size: 0.9rem; line-height: 1.7; color: #64748b; margin: 0; }

/* Products Grid & Filter */
.filtbtn { min-height: 48px; border: 2px solid #e2e8f0; background: #fff; border-radius: 30px; padding: 8px 24px; font-size: 0.9rem; font-weight: 600; color: #64748b; cursor: pointer; transition: all 0.3s; }
.filtbtn.active, .filtbtn:hover { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 15px rgba(27,122,61,0.2); transform: translateY(-2px); }
.mwrap { transition: opacity 0.4s ease, transform 0.4s ease; opacity: 1; transform: scale(1); }
.mwrap.fade-out { opacity: 0; transform: scale(0.95); pointer-events: none; }
.mcard { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; transition: all 0.3s; box-shadow: var(--shadow); }
.mcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

/* Product image block styling */
.mimg { position: relative; height: 280px; background: #ffffff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mimg img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; transition: 0.5s; }
.mcard:hover .mimg img { transform: scale(1.05); }
.mbdg { position: absolute; top: 15px; left: 15px; color: #fff; border-radius: 4px; padding: 5px 12px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; z-index: 2; }
.mbdg.hot { background: var(--secondary); }
.mbdg.new { background: var(--primary); }
.mbody { padding: 25px; }
.mcat { font-size: 0.75rem; font-weight: 700; color: var(--secondary); text-transform: uppercase; margin-bottom: 8px; letter-spacing: 1px; }
.mtit { font-size: 1.25rem; margin-bottom: 10px; font-family: "Playfair Display", serif; }
.mdesc { font-size: 0.9rem; color: #64748b; line-height: 1.6; }

/* Forms & Multi-step */
.fcard { background: #fff; border-radius: 12px; padding: 25px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .fcard { padding: 40px; } }
.flbl { font-size: 0.85rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; display: block; }
.fctrl { width: 100%; min-height: 48px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 12px 16px; font-family: "Poppins", sans-serif; font-size: 0.95rem; outline: none; transition: 0.3s; background: #f8fafc; }
.fctrl:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(27,122,61,0.12); }
textarea.fctrl { min-height: 80px; resize: vertical; }

/* Validation styles */
.fctrl.is-invalid { border-color: #ef4444; background-image: none; }
.invalid-feedback { font-size: 0.75rem; color: #ef4444; margin-top: 4px; display: none; }
.fctrl.is-invalid ~ .invalid-feedback { display: block; }

/* Progress Bar */
.form-progress { position: relative; padding-bottom: 15px; margin-bottom: 30px; }
.progress-line { position: absolute; bottom: 0; left: 0; height: 3px; background: #e2e8f0; width: 100%; border-radius: 2px; }
.step-ind { font-size: 0.85rem; font-weight: 600; color: #94a3b8; position: relative; z-index: 2; padding-bottom: 10px; transition: 0.3s; }
.step-ind::after { content: ''; position: absolute; bottom: -1px; left: 0; height: 3px; width: 0%; background: var(--primary); transition: width 0.4s ease; }
.step-ind.active { color: var(--primary); }
.step-ind.active::after { width: 100%; }

/* Custom Radio Cards */
.custom-radio-card { width: 100%; }
.custom-radio-card input { display: none; }
.crc-content { border: 2px solid #e2e8f0; border-radius: 8px; padding: 20px; text-align: center; cursor: pointer; transition: 0.3s; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 120px; }
.crc-content i { font-size: 2rem; color: #94a3b8; margin-bottom: 12px; transition: 0.3s; }
.crc-content span { font-weight: 600; color: var(--dark); }
.crc-content:hover { border-color: #cbd5e1; transform: translateY(-2px); }
.custom-radio-card input:checked + .crc-content { border-color: var(--primary); background: rgba(27, 122, 61, 0.06); box-shadow: 0 4px 12px rgba(27,122,61,0.12); }
.custom-radio-card input:checked + .crc-content i { color: var(--primary); transform: scale(1.1); }

/* Knowledge Hub */
.blcard { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; transition: 0.3s; box-shadow: var(--shadow); }
.blcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

/* Blog image block styling (updated to cleanly handle both landscape photos and tall product comparisons) */
.blimg { height: 220px; overflow: hidden; background: #ffffff; display: flex; justify-content: center; align-items: center; }
.blimg img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.blcard:hover .blimg img { transform: scale(1.05); }

/* Ensures images like the 9kg/19kg/48kg cylinder comparison scale perfectly within the box */
.blimg img.contain-fit { object-fit: contain !important; padding: 1rem; }

.blbody { padding: 25px; }
.bltag { font-size: 0.75rem; font-weight: 700; color: var(--secondary); text-transform: uppercase; margin-bottom: 10px; letter-spacing: 1px; }
.bltit { font-size: 1.15rem; margin-bottom: 12px; font-family: "Poppins", sans-serif; line-height: 1.4; }
.bltit a { color: var(--dark); }
.bltit a:hover { color: var(--primary); }
.blmore { font-size: 0.9rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; transition: 0.3s; min-height: 44px; }
.blmore i { margin-left: 6px; transition: 0.3s; }
.blmore:hover { color: var(--primary-dark); }
.blmore:hover i { transform: translateX(5px); }

/* Testimonials Swiper */
.tescard { background: #fff; border-radius: 12px; padding: 30px; border: 1px solid #e2e8f0; box-shadow: var(--shadow); position: relative; }
.tesq { position: absolute; top: 10px; right: 20px; font-size: 4rem; color: rgba(27,122,61,0.06); font-family: "Playfair Display", serif; line-height: 1; }
.tess { color: #fbbf24; font-size: 0.9rem; margin-bottom: 15px; }
.testxt { font-size: 0.95rem; color: #64748b; line-height: 1.7; font-style: italic; }
.tesauth { display: flex; align-items: center; gap: 15px; }
.tes-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.tesnm { font-weight: 700; font-size: 0.95rem; color: var(--dark); font-family: "Poppins", sans-serif; }
.tesrl { font-size: 0.8rem; color: #94a3b8; }
.swiper-pagination-bullet-active { background: var(--primary) !important; }

/* Safety Cards */
.safety-card { transition: transform 0.3s, box-shadow 0.3s; }
.safety-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

/* Footer */
footer { background: var(--dark); color: #cbd5e1; padding-top: 5rem; }
.footer-logo-wrap { display: flex; align-items: center; background: #fff; padding: 0 20px; border-radius: 10px; margin-bottom: 16px; line-height: 0; height: 80px; overflow: hidden; }
.footer-logo { height: 160px; width: auto; display: block; margin: -40px 0; } 
.fnm { font-size: 2rem; font-family: "Playfair Display", serif; font-weight: 900; color: #fff; line-height: 1; }
.fnm span { color: var(--secondary); }
.fdesc { font-size: 0.9rem; line-height: 1.8; color: #94a3b8; }
.ftit { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; font-family: "Poppins", sans-serif; }
.flinks { list-style: none; }
.flinks li { margin-bottom: 12px; }
.flinks a { color: #94a3b8; font-size: 0.9rem; transition: 0.3s; min-height: 36px; display: inline-flex; align-items: center; }
.flinks a:hover { color: var(--secondary); padding-left: 5px; }
.flinks a i { font-size: 0.7rem; margin-right: 8px; color: var(--primary); }

/* Contact Us Specific Styling */
.fci { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.fciico { width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: var(--secondary); font-size: 1rem; flex-shrink: 0; }
.fciinfo { font-size: 0.9rem; line-height: 1.6; color: #cbd5e1; }
.fciinfo strong { display: block; color: #fff; font-size: 0.85rem; margin-bottom: 3px; }
.fciinfo a { color: #cbd5e1; transition: 0.3s; }
.fciinfo a:hover { color: var(--secondary); }
/* Override Bootstrap's text-muted just in case it remains in the HTML */
.fciinfo a.text-muted { color: #cbd5e1 !important; }
.fciinfo a.text-muted:hover { color: var(--secondary) !important; }

.fbot { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; font-size: 0.85rem; color: #64748b; }
.fbot a { color: #94a3b8; transition: 0.3s; min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; }
.fbot a:hover { color: var(--secondary); }

/* Hero image — colour-tinted to match the logo palette and mask the AI-generator watermark */
.hero-img-wrap { position: relative; border-radius: 12px; overflow: hidden; }
.hero-img-wrap .hero-img { display: block; }
.hero-img-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 12px;
  background: linear-gradient(360deg, rgba(26, 124, 60, 0.61) 100%, rgba(247,148,30,0.16) 50%, rgba(247,148,30,0.22) 100%);
  mix-blend-mode: multiply;
}

/* Mobile strict sizing overrides (375px baseline) */
@media (max-width: 575.98px) {
    .container { padding-left: 1rem; padding-right: 1rem; max-width: 100%; overflow-x: hidden; }
    .w-100-mobile { width: 100% !important; justify-content: center; margin-top: 10px; }
    .form-progress { flex-wrap: wrap; gap: 5px; }
    .step-ind { font-size: 0.75rem; width: 48%; margin-bottom: 10px; }
    .btn-red, .btn-outline, .btn-wa { font-size: 0.9rem; }
    .blogo { height: 50px; }
    .brand-logo { height: 120px; margin: -35px 0; }   
    .footer-logo-wrap { height: 60px; padding: 0 15px; }
    .footer-logo { height: 120px; margin: -30px 0; }
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}