:root{
  --paper:#F3F4EE;
  --paper-deep:#EAEBE0;
  --ink:#152621;
  --ink-soft:#3F544D;
  --teal:#1B4B41;
  --teal-deep:#0F332B;
  --amber:#C1832E;
  --amber-deep:#9C6A24;
  --stone:#D9D5C6;
  --white:#FFFFFF;
  --radius-s:4px;
  --radius-m:6px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:84px; }

body{
  font-family:'Work Sans', sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.65;
}

h1,h2,h3,h4,.display-font{
  font-family:'Fraunces', serif;
  color:var(--ink);
  letter-spacing:-0.01em;
}

a{ color:var(--teal); text-decoration:none; }
a:hover{ color:var(--amber-deep); }

.section{ padding:5.5rem 0; }
.section-tint{ background:var(--paper-deep); }
.section-ink{ background:var(--teal-deep); color:#EDEFE6; }
.section-ink h2, .section-ink h3, .section-ink p{ color:#EDEFE6; }

.eyebrow{
  font-family:'Work Sans', sans-serif;
  font-size:0.85rem;
  font-weight:600;
  color:var(--amber-deep);
  margin-bottom:0.6rem;
}

.section-heading{
  font-size:clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
  font-weight:700;
  margin-bottom:1rem;
  max-width:640px;
}

.section-sub{
  color:var(--ink-soft);
  max-width:620px;
  font-size:1.05rem;
}

.rule{
  border:none;
  height:1px;
  background:repeating-linear-gradient(90deg, var(--stone) 0 8px, transparent 8px 14px);
  margin:0;
}

/* ---------- Navbar ---------- */
.navbar-custom{
  background:var(--paper);
  border-bottom:1px solid var(--stone);
  padding-top:0.85rem;
  padding-bottom:0.85rem;
}
.navbar-custom .navbar-brand{
  font-family:'Fraunces', serif;
  font-weight:700;
  font-size:1.35rem;
  color:var(--ink);
  display:flex;
  align-items:center;
  gap:0.5rem;
}
.navbar-brand .brand-mark{
  width:34px;height:34px;border-radius:50%;
  background:var(--teal);
  color:var(--amber);
  display:inline-flex;align-items:center;justify-content:center;
  font-size:0.95rem;
}
.navbar-brand .brand-globally{ color:var(--amber-deep); }
.navbar-custom .nav-link{
  font-weight:500;
  color:var(--ink-soft);
  padding:0.5rem 0.85rem !important;
  font-size:0.96rem;
}
.navbar-custom .nav-link:hover{ color:var(--teal); }
.btn-nav-cta{
  background:var(--teal);
  color:#fff;
  border-radius:var(--radius-s);
  padding:0.55rem 1.2rem;
  font-weight:600;
  font-size:0.92rem;
  border:1px solid var(--teal);
}
.btn-nav-cta:hover{ background:var(--teal-deep); color:#fff; }

/* ---------- Buttons ---------- */
.btn-primary-custom{
  background:var(--teal);
  border:1px solid var(--teal);
  color:#fff;
  font-weight:600;
  padding:0.75rem 1.6rem;
  border-radius:var(--radius-s);
}
.btn-primary-custom:hover{ background:var(--teal-deep); border-color:var(--teal-deep); color:#fff; }

.btn-outline-custom{
  background:transparent;
  border:1px solid var(--ink);
  color:var(--ink);
  font-weight:600;
  padding:0.75rem 1.6rem;
  border-radius:var(--radius-s);
}
.btn-outline-custom:hover{ background:var(--ink); color:var(--paper); }

.btn-amber{
  background:var(--amber);
  border:1px solid var(--amber);
  color:var(--ink);
  font-weight:600;
  border-radius:var(--radius-s);
  padding:0.75rem 1.6rem;
}
.btn-amber:hover{ background:var(--amber-deep); border-color:var(--amber-deep); color:#fff; }

/* ---------- Hero ---------- */
.hero-section{
  padding:6.5rem 0 4.5rem;
  background:var(--paper);
  position:relative;
  overflow:hidden;
}
.hero-kicker{
  font-weight:600;
  color:var(--amber-deep);
  font-size:0.95rem;
  margin-bottom:1rem;
}
.hero-title{
  font-size:clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);
  font-weight:700;
  line-height:1.12;
  margin-bottom:1.4rem;
  max-width:620px;
}
.hero-sub{
  font-size:1.12rem;
  color:var(--ink-soft);
  max-width:520px;
  margin-bottom:2rem;
}
.hero-stats{
  display:flex;
  gap:2.2rem;
  margin-top:2.8rem;
  padding-top:1.8rem;
  border-top:1px solid var(--stone);
}
.hero-stats .stat-num{
  font-family:'Fraunces', serif;
  font-size:1.7rem;
  font-weight:700;
  color:var(--teal);
  display:block;
}
.hero-stats .stat-label{
  font-size:0.85rem;
  color:var(--ink-soft);
}

/* Hero route diagram */
.hero-route-wrap{
  position:relative;
  height:460px;
  width:100%;
}
.hero-route-wrap svg{ position:absolute; top:0; left:0; width:100%; height:100%; }
.route-stop{
  position:absolute;
  transform:translate(-50%,-50%);
  display:flex;
  align-items:center;
  gap:0.6rem;
}
.route-stop .stop-icon{
  width:52px;height:52px;border-radius:50%;
  background:var(--white);
  border:1px solid var(--stone);
  display:flex;align-items:center;justify-content:center;
  color:var(--teal);
  font-size:1.15rem;
  flex-shrink:0;
}
.route-stop.is-final .stop-icon{ background:var(--teal); color:var(--amber); border-color:var(--teal); }
.route-stop .stop-label{
  background:var(--white);
  border:1px solid var(--stone);
  border-radius:var(--radius-s);
  padding:0.3rem 0.65rem;
  font-size:0.82rem;
  font-weight:600;
  white-space:nowrap;
  color:var(--ink);
}

/* ---------- Pillars (What is Connect) ---------- */
.pillar-card{
  border:1px solid var(--stone);
  border-radius:var(--radius-m);
  padding:1.8rem;
  height:100%;
  background:var(--white);
}
.pillar-num{
  font-family:'Fraunces', serif;
  font-size:0.95rem;
  color:var(--amber-deep);
  font-weight:700;
  margin-bottom:0.9rem;
}
.pillar-icon{
  width:46px;height:46px;border-radius:50%;
  background:var(--teal);
  color:var(--amber);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:1rem;
  font-size:1.05rem;
}

/* ---------- Networking radial diagram ---------- */
.network-diagram{
  position:relative;
  width:100%;
  max-width:440px;
  aspect-ratio:1/1;
  margin:0 auto;
}
.network-diagram svg{ position:absolute; top:0; left:0; width:100%; height:100%; }
.network-hub{
  position:absolute; top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:96px;height:96px;border-radius:50%;
  background:var(--teal);
  color:#fff;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;
  font-weight:700;
  font-size:0.8rem;
  line-height:1.2;
  z-index:2;
  border:4px solid var(--paper);
}
.network-hub i{ color:var(--amber); font-size:1.1rem; margin-bottom:0.2rem; }
.network-node{
  position:absolute;
  transform:translate(-50%,-50%);
  z-index:2;
  text-align:center;
}
.network-node .node-icon{
  width:58px;height:58px;border-radius:50%;
  background:var(--white);
  border:1px solid var(--stone);
  display:flex;align-items:center;justify-content:center;
  color:var(--teal);
  font-size:1.2rem;
  margin:0 auto 0.4rem;
}
.network-node .node-label{
  font-size:0.78rem;
  font-weight:600;
  color:var(--ink);
  white-space:nowrap;
}

/* ---------- Feature rows (channel partners, resellers, investors, collaborations, local partnerships) ---------- */
.feature-row{ padding:3.2rem 0; }
.feature-row + .feature-row{ border-top:1px solid var(--stone); }
.feature-panel{
  border:1px solid var(--stone);
  border-radius:var(--radius-m);
  background:var(--white);
  aspect-ratio:4/3;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0.6rem;
  padding:2rem;
}
.feature-panel .panel-icon{
  width:74px;height:74px;border-radius:50%;
  background:var(--paper-deep);
  color:var(--teal);
  display:flex;align-items:center;justify-content:center;
  font-size:1.8rem;
}
.feature-panel .panel-stat{
  font-family:'Fraunces', serif;
  font-weight:700;
  font-size:1.5rem;
  color:var(--teal);
}
.feature-panel .panel-stat-label{
  font-size:0.82rem;
  color:var(--ink-soft);
  text-align:center;
}
.feature-list{ list-style:none; padding:0; margin:1.1rem 0 1.4rem; }
.feature-list li{
  padding:0.4rem 0 0.4rem 1.6rem;
  position:relative;
  color:var(--ink-soft);
}
.feature-list li::before{
  content:"\f00c";
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  color:var(--amber-deep);
  position:absolute;
  left:0; top:0.45rem;
  font-size:0.75rem;
}

/* ---------- Franchise flow ---------- */
.franchise-flow{
  position:relative;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-top:3rem;
  flex-wrap:wrap;
  gap:2.2rem 0;
}
.franchise-flow::before{
  content:"";
  position:absolute;
  top:34px; left:34px; right:34px;
  height:0;
  border-top:2px dashed var(--stone);
  z-index:0;
}
.flow-step{
  position:relative;
  z-index:1;
  flex:1 1 200px;
  text-align:center;
  padding:0 0.6rem;
}
.flow-step .flow-circle{
  width:68px;height:68px;border-radius:50%;
  background:var(--paper);
  border:2px solid var(--teal);
  color:var(--teal);
  display:flex;align-items:center;justify-content:center;
  font-size:1.3rem;
  margin:0 auto 1rem;
  position:relative;
}
.flow-step .flow-num{
  position:absolute;
  top:-8px; right:-8px;
  width:24px;height:24px;border-radius:50%;
  background:var(--amber);
  color:var(--ink);
  font-size:0.72rem;
  font-weight:700;
  display:flex;align-items:center;justify-content:center;
  border:2px solid var(--paper);
}
.flow-step h4{ font-size:1.05rem; margin-bottom:0.4rem; }
.flow-step p{ font-size:0.88rem; color:var(--ink-soft); margin:0; }

/* ---------- Events ---------- */
.event-card{
  border:1px solid var(--stone);
  border-radius:var(--radius-m);
  background:var(--white);
  padding:1.8rem;
  height:100%;
}
.event-badge{
  display:inline-block;
  font-size:0.75rem;
  font-weight:600;
  color:var(--teal-deep);
  background:var(--paper-deep);
  border:1px solid var(--stone);
  border-radius:20px;
  padding:0.25rem 0.8rem;
  margin-bottom:1rem;
}
.event-card .event-icon{
  width:48px;height:48px;border-radius:50%;
  background:var(--teal);
  color:var(--amber);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:1rem;
  font-size:1.1rem;
}

/* ---------- Districts ---------- */
.district-card{
  border:1px solid var(--stone);
  border-radius:var(--radius-m);
  background:var(--white);
  padding:1.3rem 1.4rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  height:100%;
}
.district-card .district-name{ font-weight:600; margin-bottom:0.15rem; }
.district-card .district-count{ font-size:0.82rem; color:var(--ink-soft); }
.district-card .district-icon{
  width:40px;height:40px;border-radius:50%;
  background:var(--paper-deep);
  color:var(--teal);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}

/* ---------- How it works ---------- */
.step-row{
  display:flex;
  gap:1.4rem;
  padding:1.6rem 0;
}
.step-row + .step-row{ border-top:1px dashed var(--stone); }
.step-row .step-index{
  font-family:'Fraunces', serif;
  font-size:2.2rem;
  font-weight:700;
  color:var(--stone);
  line-height:1;
  min-width:64px;
}
.step-row h4{ margin-bottom:0.35rem; font-size:1.15rem; }
.step-row p{ color:var(--ink-soft); margin:0; max-width:520px; }

/* ---------- Partner categories ---------- */
.category-card{
  border:1px solid var(--stone);
  border-radius:var(--radius-m);
  background:var(--white);
  padding:1.6rem;
  height:100%;
  display:flex;
  flex-direction:column;
}
.category-card .cat-icon{
  width:50px;height:50px;border-radius:50%;
  background:var(--paper-deep);
  color:var(--teal);
  display:flex;align-items:center;justify-content:center;
  font-size:1.15rem;
  margin-bottom:1rem;
}
.category-card h5{ font-size:1.05rem; margin-bottom:0.4rem; }
.category-card p{ font-size:0.88rem; color:var(--ink-soft); flex-grow:1; }
.category-card .cat-link{
  font-size:0.85rem;
  font-weight:600;
  margin-top:0.8rem;
}

/* ---------- Inquiry form ---------- */
.inquiry-panel{
  background:var(--teal-deep);
  color:#EDEFE6;
  border-radius:var(--radius-m);
  padding:2.8rem;
}
.inquiry-panel .form-label{
  color:#D9DFCF;
  font-weight:500;
  font-size:0.9rem;
}
.inquiry-panel .form-control,
.inquiry-panel .form-select{
  background:#173B33;
  border:1px solid #2C574C;
  color:#EDEFE6;
  border-radius:var(--radius-s);
  padding:0.65rem 0.9rem;
}
.inquiry-panel .form-control::placeholder{ color:#8AA69B; }
.inquiry-panel .form-control:focus,
.inquiry-panel .form-select:focus{
  background:#173B33;
  border-color:var(--amber);
  color:#EDEFE6;
  box-shadow:0 0 0 0.2rem rgba(193,131,46,0.25);
}
.inquiry-panel .form-select option{ background:#173B33; color:#EDEFE6; }

/* ---------- Floating buttons ---------- */
.floating-btn{
  position:fixed;
  bottom:24px;
  width:56px;height:56px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:1.35rem;
  z-index:1040;
  box-shadow:0 4px 14px rgba(21,38,33,0.25);
  transition:transform 0.15s ease;
}
.floating-btn:hover{ transform:translateY(-3px); }
.whatsapp-btn{
  right:24px;
  background:#25D366;
  color:#fff;
}
.whatsapp-btn:hover{ color:#fff; }
.scrolltop-btn{
  right:24px;
  bottom:92px;   /* sits above the WhatsApp button (24px + 56px + 12px gap) */
  background:var(--ink);
  color:var(--amber);
}
.scrolltop-btn:hover{ color:var(--amber); }
/* Hide until the page is scrolled (class added by JS, so the button still works without JS) */
.scrolltop-btn.scrolltop-ready{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(14px);
  transition:opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.scrolltop-btn.scrolltop-ready.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
.scrolltop-btn.scrolltop-ready.show:hover{ transform:translateY(-3px); }

/* ---------- Footer ---------- */
footer{
  background:var(--ink);
  color:#C9CFC5;
  padding:3.5rem 0 1.5rem;
}
footer h6{
  color:#fff;
  font-weight:700;
  font-family:'Fraunces', serif;
  margin-bottom:1.1rem;
}
footer a{ color:#C9CFC5; }
footer a:hover{ color:var(--amber); }
footer .footer-brand{
  font-family:'Fraunces', serif;
  font-size:1.3rem;
  font-weight:700;
  color:#fff;
}
footer .footer-bottom{
  border-top:1px solid #2C3B36;
  margin-top:2.4rem;
  padding-top:1.4rem;
  font-size:0.85rem;
  color:#8B978F;
}
.social-icons a{
  width:36px;height:36px;border-radius:50%;
  border:1px solid #3B4B45;
  display:inline-flex;align-items:center;justify-content:center;
  margin-right:0.5rem;
}
.social-icons a:hover{ border-color:var(--amber); }

@media (max-width: 767px){
  .section{ padding:3.5rem 0; }
  .hero-section{ padding:2.6rem 0 3rem; }
  .hero-route-wrap{ height:360px; margin-top:2.5rem; }
  .franchise-flow::before{ display:none; }
  .floating-btn{ width:50px;height:50px; font-size:1.15rem; bottom:16px; }
  .whatsapp-btn{ right:16px; }
  .scrolltop-btn{ right:16px; bottom:78px; }  /* 16px + 50px + 12px gap */
  .inquiry-panel{ padding:1.8rem; }
}