/* Andile Gas — Ember industrial */

:root {
  --ink: #0f172a;
  --charcoal: #0c0a09;
  --charcoal-mid: #1c1412;
  --ember: #dc2626;
  --ember-deep: #7f1d1d;
  --ember-hot: #ef4444;
  --flame-soft: #fca5a5;
  --whatsapp: #16a34a;
  --whatsapp-hot: #15803d;
  --surface: #fafaf9;
  --surface-2: #f5f5f4;
  --muted: #78716c;
  --muted-on-dark: #a8a29e;
  --border: #e7e5e4;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(12, 10, 9, 0.12);
  --header-h: 4.25rem;
  --sticky-h: 4.25rem;
  --max: 68rem;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  padding-bottom: var(--sticky-h);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: var(--ember);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--ember-deep);
}

:focus-visible {
  outline: 3px solid var(--ember-hot);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 10, 9, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
  padding: 0.4rem 0.55rem 0.4rem 0.15rem;
}

/* Full-colour logo — use on light surfaces */
.brand-logo {
  height: 2.1rem;
  width: auto;
  max-width: min(160px, 42vw);
  display: block;
  object-fit: contain;
}

/* Light logo (white wordmark) — charcoal header/footer */
.brand-logo--light {
  height: 2.15rem;
  max-width: min(170px, 44vw);
}

@media (min-width: 768px) {
  .brand {
    padding: 0.45rem 0.65rem 0.45rem 0.2rem;
  }

  .brand-logo {
    height: 2.35rem;
    max-width: 190px;
  }

  .brand-logo--light {
    height: 2.4rem;
    max-width: 200px;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nav-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--charcoal-mid);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1rem 1.25rem;
}

.nav-panel.is-open {
  display: block;
}

.nav-panel a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-panel a:hover {
  color: var(--flame-soft);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-desktop a {
  color: var(--muted-on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-desktop a:hover {
  color: var(--white);
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-panel {
    display: none !important;
  }

  .nav-desktop {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  color: inherit;
  transform: translateY(-1px);
}

.btn--call {
  background: var(--ember);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
}

.btn--call:hover {
  background: var(--ember-hot);
  color: var(--white);
}

.btn--wa {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
}

.btn--wa:hover {
  background: var(--whatsapp-hot);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.btn--sm {
  min-height: 2.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  color: var(--white);
  background: var(--charcoal);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(12, 10, 9, 0.92) 0%,
      rgba(12, 10, 9, 0.78) 38%,
      rgba(12, 10, 9, 0.45) 62%,
      rgba(12, 10, 9, 0.35) 100%
    ),
    url("assets/hero-community.jpg") center / cover no-repeat;
}

.hero-inner {
  position: relative;
  padding: 3.5rem 0 4rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flame-soft);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-note {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--muted-on-dark);
}

.hero-note strong {
  color: var(--white);
}

/* —— Sections —— */
.section {
  padding: 4rem 0;
}

.section--dark {
  background: var(--charcoal-mid);
  color: var(--white);
}

.section--alt {
  background: var(--surface-2);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 0.65rem;
}

.section--dark .section-label {
  color: var(--flame-soft);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-intro {
  margin: 0 0 2rem;
  max-width: 40rem;
  color: var(--muted);
}

.section--dark .section-intro {
  color: var(--muted-on-dark);
}

/* —— Trust —— */
.trust-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 4px 16px rgba(12, 10, 9, 0.04);
}

.trust-card .icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fef2f2;
  color: var(--ember);
  font-weight: 800;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.trust-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* —— Products —— */
.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  border-color: #fecaca;
  box-shadow: var(--shadow);
}

.product-card img {
  height: 7.5rem;
  width: auto;
  object-fit: contain;
  margin: 0 auto 0.75rem;
}

.product-size {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 0.25rem;
  color: var(--charcoal);
}

.product-size small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--font-body);
}

.product-use {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* —— About —— */
.about-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 3rem;
  }
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.about-copy p:first-of-type {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
}

.vm {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.vm-item {
  background: var(--surface-2);
  border-left: 3px solid var(--ember);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1rem;
}

.vm-item strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.25rem;
}

.vm-item p {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.about-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.about-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* —— Areas —— */
.area-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

@media (min-width: 640px) {
  .area-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.area-list li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.area-list li span {
  display: block;
  margin-top: 0.25rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted-on-dark);
}

/* —— Testimonials —— */
.testimonial-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quote {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quote p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
  flex: 1;
}

.quote p::before {
  content: "“";
  color: var(--ember);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 0;
  margin-right: 0.1rem;
}

.quote footer {
  font-size: 0.9rem;
  color: var(--muted);
}

.quote footer strong {
  display: block;
  color: var(--ink);
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list a {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.contact-list a:hover {
  color: var(--ember);
}

.contact-list .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.contact-actions {
  margin-top: 1.25rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--charcoal);
  color: var(--muted-on-dark);
  padding: 2.5rem 0 6rem;
}

@media (min-width: 768px) {
  .site-footer {
    padding-bottom: 2.5rem;
  }
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.site-footer .brand {
  margin-bottom: 0.75rem;
  display: inline-flex;
}

.site-footer .brand-logo--light {
  height: 3.75rem;
  max-width: 300px;
}

.site-footer p {
  margin: 0 0 0.75rem;
  max-width: 36rem;
  font-size: 0.95rem;
}

.site-footer .legal {
  font-size: 0.85rem;
  margin-top: 1.25rem;
  opacity: 0.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--flame-soft);
}

/* —— Floating WhatsApp (desktop only; mobile uses sticky CTA) —— */
.wa-float {
  display: none;
}

@media (min-width: 768px) {
  .wa-float {
    position: fixed;
    z-index: 70;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    box-shadow:
      0 8px 24px rgba(37, 211, 102, 0.45),
      0 2px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  }

  .wa-float:hover {
    color: #fff;
    background: #1ebe57;
    transform: translateY(-2px) scale(1.04);
    box-shadow:
      0 12px 28px rgba(37, 211, 102, 0.5),
      0 4px 12px rgba(0, 0, 0, 0.22);
  }

  .wa-float:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
  }

  .wa-float svg {
    display: block;
  }
}

/* —— Sticky mobile CTA —— */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: env(safe-area-inset-bottom, 0) 0 0;
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
}

.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--white);
}

.sticky-cta .sticky-call {
  background: var(--ember);
}

.sticky-cta .sticky-wa {
  background: var(--whatsapp);
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

/* —— Utility —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
