/*
Theme Name: Mzigo Hub
Theme URI: https://example.com/mzigo-hub
Author: Eliday Solutions Ltd
Author URI: https://elidaysolutionsltd.com
Description: Elegant one-page theme for Mzigo Hub with dashboard editable sections and dark/light mode.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mzigo-hub
Tags: custom-logo, custom-menu, one-column, featured-images, custom-background
*/

:root {
  --primary: #142e45;
  --secondary: #f08329;
  --surface: #0f1d2c;
  --surface-2: #172f44;
  --text: #f7f7f7;
  --muted: #cfd8e4;
  --muted-light: #64748b;
  --border: rgba(255,255,255,.12);
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.65;
}

body.light-theme {
  background: #f6f6f6;
  color: #1d2b3a;
}

body.light-theme .site-header,
body.light-theme .site-footer,
body.light-theme .section-block {
  background: #ffffff;
}

body.light-theme .hero-panel:before {
  background: rgba(255, 255, 255, 0.45);
}

body.light-theme .section-title,
body.light-theme .section-subtitle,
body.light-theme .section-text,
body.light-theme .menu-toggle,
body.light-theme .hero-text,
body.light-theme .faq-item summary,
body.light-theme .site-header,
body.light-theme .site-header .logo-text,
body.light-theme .site-header .site-nav a,
body.light-theme .site-header .menu-toggle {
  color: rgba(15, 29, 44, 0.90);
}

body.light-theme .hero-title,
body.light-theme .hero-text {
  color: #ffffff;
}

body.light-theme .faq-answer p,
body.light-theme .section-text,
body.light-theme .contact-card p,
body.light-theme .pricing-card p {
  color: var(--muted-light);
}

body.light-theme .how-it-works-list {
  color: var(--muted-light);
}

body.light-theme .faq-answer p {
  color: var(--muted-light);
}

body.light-theme .button {
  background: var(--secondary);
  color: #ffffff;
}

body.light-theme .button-alt {
  background: #eaf1f8;
  color: rgba(15, 29, 44, 0.90);
  border-color: rgba(15, 29, 44, 0.12);
}

body.light-theme .section-box,
body.light-theme .pricing-card,
body.light-theme .contact-card {
  background: #f5f8fb;
}

body.light-theme .hamburger-toggle span {
  background: #0f1d2c;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(15, 29, 44, 0.90);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header .logo img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
}

.site-header .logo-text {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: #dfe8f2;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.site-nav a:hover {
  color: var(--secondary);
  transform: translateY(-1px);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-toggle:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.menu-toggle .theme-icon {
  font-size: 1.1rem;
  line-height: 1;
}
/* Hide hamburger on desktop */
.hamburger-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger-toggle span {
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(15, 29, 44, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    width: 220px;
  }

  .site-nav.active {
    display: flex;
  }

  body.light-theme .site-header .site-nav a{
    color: #f08329;
  }

  .hamburger-toggle {
    display: flex;
    margin: auto;
  }

}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.hero-panel {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  background-size: cover;
  background-position: center;
  animation: fadeInUp 1s ease-out;
  padding-top: 5px;
}

.hero-panel:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20,46,69,0.72);
  mix-blend-mode: multiply;
}

body.light-theme .hero-panel:before {
  background: rgba(0, 0, 0, 0.35);
}

.hero-panel .container,
.section-block {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  width: calc(100% - 2rem);
}

.section-block .container {
  padding: 0 1.5rem;
}

.hero-content {
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  line-height: 0.98;
  margin: 0;
}

.hero-text {
  margin: 1.75rem 0 2.5rem;
  font-size: 1.05rem;
  max-width: 44rem;
  color: var(--muted);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button,
.button-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.button {
  background: var(--secondary);
  color: #fff;
}

.button-alt {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
}

.section-block {
  padding: 5rem 0;
  background: var(--surface-2);
  animation: fadeInUp 0.8s ease-out;
}

.section-block:nth-of-type(even) {
  background: var(--surface);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.section-title {
  font-size: 2.2rem;
  margin: 0 0 0.75rem;
}

.section-subtitle {
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.section-text {
  max-width: 740px;
  color: var(--muted);
}

.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: 1.25rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-box,
.pricing-card,
.contact-card {
  padding: 1.75rem;
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.section-box-benefits {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-box:hover,
.pricing-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}

.section-box strong,
.pricing-card strong,
.contact-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.section-box .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0.5rem 0;
  color: var(--secondary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--secondary);
  background: transparent;
}

.section-box p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-card {
  text-align: center;
}

.pricing-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
}

.pricing-card p {
  margin: 0;
  color: var(--muted);
}

.prices {
	display: none;
}

.section-divider {
  width: 64px;
  height: 4px;
  background: var(--secondary);
  border-radius: 999px;
  margin: 2rem 0 2.5rem;
}

.section-grid {
  gap: 1.75rem;
}

.how-it-works-list {
  margin: 1rem 0 0;
  padding-left: 1.3rem;
  color: var(--muted);
}

.how-it-works-list li {
  margin-bottom: 0.75rem;
}

.map-embed {
  margin-top: 1.75rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}

.map-embed iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.video-arrow {
  width: 150px;
  height: auto;
  align-self: center;
}

.video-arrow-left {
  margin-right: 0.5rem;
}

.video-arrow-right {
  margin-left: 0.5rem;
}

@media (max-width: 768px) {
  .video-arrow {
    display: none;
  }
}

.faq-item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(0);
}

.faq-item:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.faq-item.expanded {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.faq-question {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.orange {
  color: var(--secondary);
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--secondary);
}

.faq-item.expanded .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 1rem;
}

.faq-item.expanded .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.site-footer {
  padding: 3rem 2rem;
  background: #08111c;
  color: #9fb7c8;
}

.site-footer p,
.site-footer a {
  color: inherit;
}

@media (max-width: 980px) {
  .site-header,
  .hero-panel,
  .section-block,
  .site-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .site-nav {
    display: none;
  }

  .hero-buttons,
  .grid-3,
  .grid-2,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-panel {
    min-height: 70vh;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced button animations */
.button,
.button-alt {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 131, 41, 0.3);
}

.button-alt:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Light theme shadows */
body.light-theme .section-box,
body.light-theme .pricing-card,
body.light-theme .contact-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body.light-theme .section-box:hover,
body.light-theme .pricing-card:hover,
body.light-theme .contact-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

body.light-theme .faq-item {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

body.light-theme .faq-item:hover,
body.light-theme .faq-item.expanded {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

body.light-theme .button {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.light-theme .button:hover {
  box-shadow: 0 6px 20px rgba(240, 131, 41, 0.2);
}

body.light-theme .button-alt {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.light-theme .button-alt:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.hero-cards {
  display: flex;
  /* justify-content: center; */
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--surface-2);
  color: var(--text);
  padding: 0.01rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}

.hero-card .icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--text);
}

.hero-card p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

body.light-theme .hero-card {
  background-color: var(--muted);
  color: #1d2b3a;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.light-theme .hero-card .icon {
  /* background-color: var(--muted); */
  color: #1d2b3a;
}

@media (max-width: 768px) {
  .hero-cards {
    display: none;
    flex-direction: column;
    align-items: center;
  }
}
