/*
Theme Name: MoreNET
Theme URI: https://morenet.co.za
Author: MoreNET
Author URI: https://morenet.co.za
Description: Official MoreNET ISP website theme — fast, reliable internet for home and business.
Version: 1.0.0
License: Proprietary
Text Domain: morenet
*/

/* ── CSS Custom Properties ── */
:root {
  --background: #f6f9fc;
  --foreground: #0a2e4f;
  --card: #ffffff;
  --muted: #4a6780;
  --brand-navy: #0a2e4f;
  --brand-teal: #14b8a6;
  --brand-gold: #f4b400;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ── Layout helpers ── */
.mn-container {
  width: 100%;
  max-width: 80rem; /* 1280px */
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 768px) { .mn-container { padding-inline: 2rem; } }

/* ── HEADER ── */
.mn-header {
  border-bottom: 1px solid rgba(10,46,79,.15);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.mn-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-block: 1rem;
}
.mn-logo img { height: 2.5rem; width: auto; }
.mn-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem 1.5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
}
.mn-nav a { transition: color .15s; }
.mn-nav a:hover { color: var(--foreground); }
.mn-nav__ticket-btn {
  background: transparent;
  border: none;
  padding: 0;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .15s;
}
.mn-nav__ticket-btn:hover { color: var(--foreground); }

/* ── HERO ── */
.mn-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(10,46,79,.15);
}
.mn-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #07233d 0%, #0a2e4f 40%, #0f6f85 100%);
  z-index: 0;
}
.mn-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  padding-block: 4rem;
}
@media (min-width: 768px) {
  .mn-hero__inner { grid-template-columns: 1fr 1fr; padding-block: 6rem; }
}
.mn-hero__image-wrap { display: flex; align-items: center; justify-content: center; }
.mn-hero__image {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
}
.mn-hero__content { display: flex; flex-direction: column; justify-content: center; }
.mn-hero__badge {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(255,255,255,.1);
  border-radius: 9999px;
  padding: .25rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: #fff;
  margin-bottom: .75rem;
}
.mn-hero__title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: #fff;
  line-height: 1.15;
}
@media (min-width: 768px) { .mn-hero__title { font-size: 3rem; } }
.mn-hero__subtitle {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1rem;
  color: rgba(255,255,255,.9);
  line-height: 1.6;
}
@media (min-width: 768px) { .mn-hero__subtitle { font-size: 1.125rem; } }
.mn-hero__ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.mn-btn { display: inline-block; border-radius: var(--radius-xl); padding: .75rem 1.25rem; font-size: .875rem; font-weight: 700; transition: filter .15s; text-align: center; }
.mn-btn--gold { background: var(--brand-gold); color: #fff; }
.mn-btn--gold:hover { filter: brightness(1.08); }
.mn-btn--outline-white { border: 1px solid rgba(255,255,255,.4); color: #fff; font-weight: 600; }
.mn-btn--outline-white:hover { background: rgba(255,255,255,.1); }

/* ── FEATURES ── */
.mn-features {
  padding-block: 3rem;
}
@media (min-width: 768px) { .mn-features { padding-block: 4rem; } }
.mn-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .mn-features__grid { grid-template-columns: repeat(3, 1fr); } }
.mn-feature-card {
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(10,46,79,.15);
  background: var(--card);
  padding: 1.5rem;
}
.mn-feature-card__tag { font-size: .875rem; font-weight: 600; }
.mn-feature-card__tag--teal { color: var(--brand-teal); }
.mn-feature-card__tag--navy { color: var(--brand-navy); }
.mn-feature-card__tag--gold { color: var(--brand-gold); }
.mn-feature-card__title { margin-top: .5rem; font-size: 1.125rem; font-weight: 700; color: var(--foreground); }
.mn-feature-card__desc { margin-top: .5rem; font-size: .875rem; color: var(--muted); line-height: 1.5; }

/* ── PLANS & PRICING ── */
.mn-plans {
  padding-block: 3rem;
}
@media (min-width: 768px) { .mn-plans { padding-block: 4rem; } }
.mn-plans__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .mn-plans__header { flex-direction: row; align-items: center; margin-bottom: 2.5rem; } }
.mn-plans__title { font-size: 1.875rem; font-weight: 600; letter-spacing: -.025em; color: var(--foreground); }
.mn-plans__subtitle { margin-top: .5rem; font-size: .875rem; color: var(--muted); }

/* Billing toggle */
.mn-billing-toggle {
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid rgba(10,46,79,.25);
  background: var(--card);
  padding: .25rem;
}
.mn-billing-toggle__btn {
  border: none;
  background: transparent;
  border-radius: 9999px;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--brand-navy);
  transition: background .15s, color .15s, box-shadow .15s;
}
.mn-billing-toggle__btn:hover { color: rgba(10,46,79,.8); }
.mn-billing-toggle__btn.active { background: var(--brand-gold); color: var(--brand-navy); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.mn-billing-toggle__btn .discount { color: var(--brand-gold); }
.mn-billing-toggle__btn.active .discount { color: var(--brand-navy); }

/* Service & provider tabs */
.mn-tabs-section { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.mn-tabs-label { font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-navy); margin-bottom: .75rem; }
.mn-pill-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  border-radius: 9999px;
  border: 1px solid rgba(10,46,79,.25);
  background: var(--card);
  padding: .25rem;
  gap: .125rem;
}
.mn-pill-tab {
  border: none;
  background: transparent;
  border-radius: 9999px;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--brand-navy);
  transition: background .15s, color .15s, box-shadow .15s;
}
.mn-pill-tab:hover { color: rgba(10,46,79,.8); }
.mn-pill-tab.active--navy { background: var(--brand-navy); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.mn-pill-tab.active--teal { background: var(--brand-teal); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.mn-pill-tab.active--gold { background: var(--brand-gold); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Provider pills (non-rounded, bordered) */
.mn-provider-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.mn-provider-tab {
  border-radius: 9999px;
  border: 1px solid rgba(10,46,79,.25);
  background: var(--card);
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--brand-navy);
  transition: border-color .15s, background .15s, color .15s;
}
.mn-provider-tab:hover { border-color: rgba(10,46,79,.5); }
.mn-provider-tab.active { border-color: var(--brand-navy); background: var(--brand-navy); color: #fff; }
.mn-provider-tab.active--teal { border-color: var(--brand-teal); background: var(--brand-teal); color: #fff; }
.mn-provider-tab.active--gold { border-color: var(--brand-gold); background: var(--brand-gold); color: #fff; }

/* Mobile provider select */
.mn-provider-select-wrap { display: block; }
@media (min-width: 768px) { .mn-provider-select-wrap { display: none; } }
.mn-provider-select-wrap label { display: block; margin-bottom: .5rem; font-size: .875rem; font-weight: 500; color: var(--foreground); }
.mn-provider-select {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(10,46,79,.3);
  background: var(--card);
  padding: .625rem 1rem;
  font-size: .875rem;
  color: var(--foreground);
  font-family: inherit;
}
.mn-provider-select:focus { outline: none; box-shadow: 0 0 0 2px var(--brand-teal); }
.mn-provider-tabs-desktop { display: none; }
@media (min-width: 768px) { .mn-provider-tabs-desktop { display: flex; } }

/* Plan cards grid */
.mn-plan-section__header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.mn-plan-section__dot { width: .5rem; height: .5rem; border-radius: 50%; display: inline-block; }
.mn-plan-section__name { font-size: 1.125rem; font-weight: 600; color: var(--foreground); }
.mn-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .mn-plan-grid { grid-template-columns: repeat(3, 1fr); } }

/* Plan card */
.mn-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(10,46,79,.15);
  border-top-width: 4px;
  background: var(--card);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.mn-plan-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.mn-plan-card__popular {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border-radius: 9999px;
  padding: .25rem .75rem;
  font-size: .75rem;
  font-weight: 600;
}
.mn-plan-card__logo { margin-bottom: 1.25rem; }
.mn-plan-card__logo img { height: 2.5rem; width: auto; max-width: 180px; object-fit: contain; }
.mn-plan-card__logo img.logo--lg { height: 4rem; max-width: 280px; }
.mn-plan-card__logo img.logo--xl { height: 6rem; max-width: 380px; }
.mn-plan-card__provider { font-size: .875rem; font-weight: 500; }
.mn-plan-card__name { margin-top: .25rem; font-size: 1.25rem; font-weight: 600; color: var(--foreground); }
.mn-plan-card__speed { margin: 1rem 0; font-size: .875rem; color: var(--muted); }
.mn-plan-card__speed strong { color: var(--foreground); font-weight: 500; }
.mn-plan-card__price { margin-bottom: 1.25rem; }
.mn-plan-card__amount { font-size: 1.875rem; font-weight: 700; color: var(--foreground); }
.mn-plan-card__per { font-size: .875rem; font-weight: 400; color: var(--muted); margin-left: .25rem; }
.mn-plan-card__annual-note { margin-top: .25rem; font-size: .75rem; color: var(--muted); }
.mn-plan-card__features { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; color: var(--muted); }
.mn-plan-card__feature { display: flex; align-items: flex-start; gap: .5rem; line-height: 1.5; }
.mn-plan-card__bullet { flex-shrink: 0; width: .375rem; height: .375rem; border-radius: 50%; margin-top: .4rem; }
.mn-plan-card__cta {
  margin-top: auto;
  display: block;
  border-radius: var(--radius-xl);
  padding: .625rem 1rem;
  text-align: center;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  transition: filter .15s;
}
.mn-plan-card__cta:hover { filter: brightness(1.1); color: #fff; }

/* Empty/loading states */
.mn-empty-state {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(10,46,79,.2);
  background: var(--card);
  padding: 1rem;
  font-size: .875rem;
  color: var(--muted);
}
.mn-loading { text-align: center; padding: 3rem 1rem; color: var(--muted); font-size: .875rem; }

/* ── CONTACT ── */
.mn-contact { padding-bottom: 4rem; }
.mn-contact__box {
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(10,46,79,.15);
  background: #eaf3fb;
  padding: 2rem;
  color: var(--brand-navy);
}
.mn-contact__title { font-size: 1.5rem; font-weight: 700; }
.mn-contact__subtitle { margin-top: .5rem; max-width: 42rem; color: rgba(10,46,79,.85); font-size: .9375rem; }

/* Callback form */
.mn-form {
  margin-top: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(10,46,79,.2);
  background: var(--card);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mn-form__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .mn-form__grid { grid-template-columns: 1fr 1fr; } }
.mn-form__field { display: flex; flex-direction: column; gap: .5rem; }
.mn-form__label { font-size: .875rem; font-weight: 500; color: var(--foreground); }
.mn-form__input, .mn-form__textarea {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(10,46,79,.25);
  padding: .625rem .75rem;
  font-size: .875rem;
  font-family: inherit;
  color: var(--foreground);
  background: #fff;
  transition: box-shadow .15s;
}
.mn-form__input:focus, .mn-form__textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--brand-teal);
}
.mn-form__textarea { resize: vertical; }
.mn-form__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.mn-btn--navy { background: var(--brand-navy); color: var(--brand-gold); font-weight: 700; }
.mn-btn--navy:hover { filter: brightness(1.1); }
.mn-btn--outline-navy {
  border: 1px solid rgba(10,46,79,.35);
  color: var(--brand-navy);
  background: transparent;
  font-weight: 600;
}
.mn-btn--outline-navy:hover { background: rgba(10,46,79,.05); }
.mn-form__footer { border-top: 1px solid rgba(10,46,79,.15); padding-top: 1rem; text-align: center; font-size: .875rem; color: var(--muted); }
.mn-form__phone-link { font-weight: 600; color: var(--brand-navy); text-underline-offset: 2px; }
.mn-form__phone-link:hover { text-decoration: underline; }

/* Alerts */
.mn-alert { border-radius: var(--radius-xl); padding: .75rem 1rem; font-size: .875rem; }
.mn-alert--error { background: #fef2f2; color: #b91c1c; }
.mn-alert--success { background: #ecfdf5; color: #065f46; }

/* Buttons */
.mn-btn--disabled { opacity: .7; cursor: not-allowed; pointer-events: none; }

/* ── FOOTER ── */
.mn-footer {
  border-top: 1px solid rgba(10,46,79,.15);
  background: var(--brand-navy);
}
.mn-footer__inner {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-block: 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
}
@media (min-width: 768px) {
  .mn-footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.mn-footer__tagline { color: rgba(255,255,255,.95); }

/* ── MODAL ── */
.mn-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.mn-modal-overlay.open { opacity: 1; visibility: visible; }
.mn-modal {
  max-height: min(92vh, 760px);
  width: 100%;
  max-width: 32rem;
  overflow-y: auto;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(10,46,79,.15);
  background: #eaf3fb;
  padding: 1.5rem;
  color: var(--brand-navy);
  box-shadow: 0 25px 60px rgba(0,0,0,.25);
  transform: translateY(8px);
  transition: transform .2s;
}
@media (min-width: 768px) { .mn-modal { padding: 2rem; } }
.mn-modal-overlay.open .mn-modal { transform: translateY(0); }
.mn-modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.mn-modal__title { font-size: 1.25rem; font-weight: 700; }
@media (min-width: 768px) { .mn-modal__title { font-size: 1.5rem; } }
.mn-modal__subtitle { margin-top: .5rem; max-width: 28rem; font-size: .875rem; color: rgba(10,46,79,.85); }
.mn-modal__close-btn {
  flex-shrink: 0;
  border-radius: .5rem;
  border: 1px solid rgba(10,46,79,.2);
  background: var(--card);
  padding: .375rem .75rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--brand-navy);
  transition: background .15s;
}
.mn-modal__close-btn:hover { background: rgba(10,46,79,.05); }
.mn-modal__form {
  margin-top: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(10,46,79,.2);
  background: var(--card);
  padding: 1.25rem;
  color: var(--foreground);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mn-modal__recaptcha-note {
  text-align: center;
  font-size: .75rem;
  line-height: 1.6;
  color: var(--muted);
}
.mn-modal__recaptcha-note a { color: var(--brand-navy); text-underline-offset: 2px; }
.mn-modal__recaptcha-note a:hover { text-decoration: underline; }
.mn-file-input {
  display: block;
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(10,46,79,.25);
  padding: .625rem .75rem;
  font-size: .875rem;
  font-family: inherit;
}
.mn-photo-list {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(10,46,79,.15);
  background: rgba(246,249,252,.5);
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .875rem;
}
.mn-photo-item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.mn-photo-item__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--foreground); }
.mn-photo-remove {
  flex-shrink: 0;
  border-radius: .5rem;
  border: 1px solid rgba(10,46,79,.25);
  background: transparent;
  padding: .25rem .5rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand-navy);
  transition: background .15s;
}
.mn-photo-remove:hover { background: rgba(10,46,79,.05); }
.mn-form__hint { font-size: .75rem; color: var(--muted); }

/* ── Utilities ── */
.hidden { display: none !important; }
