/* Support Desk Africa — static site styles (matches the original Divi look) */
:root {
  --red: #f6433b;
  --orange: #f78246;
  --magenta: #d7177d;
  --indigo: #240c74;
  --dark: #3a3a3a;
  --text: #666;
  --white: #fff;
  --muted-on-dark: rgba(255, 255, 255, 0.7);
  --gradient: radial-gradient(circle at 0% 0%, #f6433b 0%, #f78246 45%, #d7177d 70%, #240c74 90%);
  --container: 1080px;
  --font: "Poppins", Helvetica, Arial, Lucida, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--text);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { opacity: 0.85; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.container { width: 80%; max-width: var(--container); margin: 0 auto; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--white); color: var(--dark); padding: 8px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75em 1.6em;
  border-radius: 100px;
  background: var(--gradient);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.7;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(215, 23, 125, 0.35); }
.btn-wrap { margin-top: 2em; }

/* ---------- Header ---------- */
.top-bar {
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.top-bar .container { display: flex; gap: 18px; padding: 8px 0; }
.top-bar a { color: var(--white); display: inline-flex; align-items: center; gap: 6px; }
.top-bar svg { width: 12px; height: 12px; fill: currentColor; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--dark);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  transition: padding 0.3s ease;
}
.site-header .logo img { width: 150px; transition: width 0.3s ease; }
.site-header.is-scrolled { background: var(--white); box-shadow: 0 0 7px rgba(0, 0, 0, 0.1); }
.site-header.is-scrolled .container { padding: 8px 0; }
.site-header.is-scrolled .logo img { width: 70px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.nav a { font-size: 14px; font-weight: 600; color: var(--orange); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--orange);
}
.nav-toggle svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero {
  background: var(--dark);
  border-radius: 0 0 250px 0;
  box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.3);
  padding: 30px 0 70px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero h1 { color: var(--orange); font-size: 72px; line-height: 1.2; margin-bottom: 0.45em; }
.hero p { color: var(--muted-on-dark); font-size: 16px; line-height: 1.6; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-light { background: var(--white); }
.section-dark { background: var(--dark); }
.section-title { font-size: 52px; }
.section-light .section-title { color: var(--red); }
.section-dark .section-title { color: var(--orange); }

/* How it works */
.how-it-works { padding-top: 40px; }
.video-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 5.5%; margin-top: 40px; }
.feature { text-align: center; }
.feature img { width: 48px; height: 48px; margin: 0 auto 14px; }
.feature h3 { color: var(--white); font-size: 20px; font-weight: 600; margin-bottom: 0.4em; }
.feature p { color: var(--muted-on-dark); margin: 0; }
.feature-lead { max-width: 760px; margin: 30px auto 0; }
.features-admin { padding-top: 10px; }
.features-admin .feature-lead { margin-top: 0; }

/* Loyalty */
.loyalty .container { display: grid; grid-template-columns: 1fr 1fr; gap: 5.5%; align-items: center; }
.loyalty-media img { border-radius: 0; width: 100%; }
.loyalty h3 { color: var(--magenta); font-size: 26px; font-weight: 700; margin: 0.6em 0 0.3em; }
.loyalty p { color: var(--dark); margin: 0; }

/* Channels */
.channel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 5.5%; margin-top: 30px; }
.channel { text-align: center; }
.channel img { width: 72px; height: 72px; margin: 0 auto 14px; }
.channel h3 { color: var(--white); font-size: 20px; font-weight: 600; margin-bottom: 0.4em; }
.channel p { color: var(--muted-on-dark); margin: 0; }

/* Testimonial */
.testimonial-card {
  border-radius: 20px;
  overflow: hidden;
  background: #f4f4f4 url("../img/customer-service-excellence-banner.jpg") right center / cover no-repeat;
  background-image: image-set(
    url("../img/customer-service-excellence-banner.webp") type("image/webp"),
    url("../img/customer-service-excellence-banner.jpg") type("image/jpeg")
  );
  padding: 60px 6%;
}
.testimonial-content { max-width: 50%; }
.testimonial-content h2 { color: var(--orange); font-size: 52px; }
.testimonial-content blockquote { margin: 0; color: var(--text); }
.testimonial-content blockquote p { margin: 0; }

/* FAQ */
.faq-list { max-width: 820px; margin: 30px auto 0; display: grid; gap: 14px; }
.faq-item { background: var(--orange); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 24px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { color: var(--white); font-size: 18px; font-weight: 500; margin: 0; line-height: 1.4; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 24px 22px; color: var(--white); }
.faq-answer h4 { color: var(--white); font-size: 16px; font-weight: 700; margin: 0 0 0.6em; }
.faq-answer p, .faq-answer li { color: rgba(255, 255, 255, 0.92); }
.faq-answer ol { margin: 0 0 1em; padding-left: 1.2em; }
.faq-answer a { color: var(--white); text-decoration: underline; word-break: break-word; }

/* ---------- Footer / Contact ---------- */
.site-footer { background: var(--dark); color: var(--muted-on-dark); padding: 60px 0 40px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 5.5%; align-items: center; }
.footer-brand img { width: 170px; margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 360px; }
.footer-contact h2 { color: var(--white); font-size: 40px; font-weight: 400; margin-bottom: 0.3em; }
.footer-contact > p { margin-bottom: 1.2em; }
.contact-methods { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-method {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 100px;
  border: 2px solid var(--orange);
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
}
.contact-method svg { width: 18px; height: 18px; fill: var(--orange); flex: none; }
.contact-method:hover { opacity: 1; background: var(--gradient); border-color: transparent; }
.contact-method:hover svg { fill: var(--white); }
.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}
.footer-bottom a { color: var(--orange); }
.footer-bottom strong a { color: var(--white); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Legal page ---------- */
.page-hero { padding: 40px 0 60px; }
.page-hero h1 { font-size: 56px; margin: 0; }
.legal { background: var(--white); padding: 70px 0; color: var(--text); }
.legal .container { max-width: 860px; }
.legal h2 { color: var(--red); font-size: 22px; font-weight: 600; margin: 1.8em 0 0.6em; }
.legal h2:first-child { margin-top: 0; }
.breadcrumbs { font-size: 13px; margin-bottom: 1em; color: var(--muted-on-dark); }
.breadcrumbs ol { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .container { width: 88%; }
  .hero { border-radius: 0 0 120px 0; }
  .hero h1 { font-size: 48px; }
  .section-title, .testimonial-content h2 { font-size: 40px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .channel-grid { grid-template-columns: 1fr 1fr; }
  .loyalty .container { grid-template-columns: 1fr; gap: 30px; }
  .testimonial-card { background-position: 75% center; }
  .testimonial-content { max-width: 100%; background: rgba(255, 255, 255, 0.85); padding: 24px; border-radius: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; width: 88%; margin: 0 auto; padding: 10px 0; }
  .nav li a { display: block; padding: 10px 0; border-bottom: 1px solid #eee; }
  .nav li:last-child a { border-bottom: 0; }
  .site-header .logo img { width: 90px; }
}

@media (max-width: 600px) {
  .top-bar .container { justify-content: center; }
  .hero { border-radius: 0 0 70px 0; padding-bottom: 50px; }
  .hero h1 { font-size: 34px; }
  .section { padding: 50px 0; }
  .section-title, .testimonial-content h2 { font-size: 32px; }
  .feature-grid, .channel-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 30px 5%; background-image: none; background-color: #f4f4f4; }
  .testimonial-content { background: none; padding: 0; }
  .footer-contact h2 { font-size: 32px; }
  .contact-method { width: 100%; justify-content: center; }
  .page-hero h1 { font-size: 36px; }
  .legal { padding: 50px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.footer-bottom p { margin: 0; }
.page-hero p { margin-top: 0.5em; }
