/* =========================================================
   XpressPrepaid — modernized stylesheet
   Palette kept from the original brand:
   green:        #34a753
   green-dark:   #189339
   green-light:  #DBEBB2
   grey (body):  #666
   grey (bg):    #EFEFEF
   ========================================================= */

:root {
  --green: #34a753;
  --green-dark: #189339;
  --green-light: #DBEBB2;
  --green-tint: #f2f8e8;
  --grey: #666;
  --grey-bg: #EFEFEF;
  --ink: #26302b;
  --white: #ffffff;
  --red: #e0273d;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(20, 40, 20, 0.07);
  --shadow: 0 10px 30px rgba(20, 40, 20, 0.10);
  --shadow-lg: 0 20px 50px rgba(20, 40, 20, 0.16);

  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 128px;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; font-weight: 700; color: var(--ink); line-height: 1.25; }
p { margin: 0 0 1em; }
b, strong { color: var(--ink); }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* brand wordmark helper (used throughout copy) */
.xpp-name { font-weight: 800; }
.xpp-name-front { color: var(--green); }
.xpp-name-back { color: var(--grey); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  border-color: var(--green-dark);
  color: var(--green-dark);
}
.btn-outline:hover { background: var(--green-dark); color: var(--white); }
.btn-ghost {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-ghost:hover { background: var(--white); color: var(--green-dark); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Icons (inline SVG helper sizing) ---------- */
.icon { width: 1em; height: 1em; stroke-width: 2; vertical-align: -0.125em; flex: none; }
.icon-lg { width: 3.25rem; height: 3.25rem; color: var(--green); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .4rem;
  padding-bottom: .4rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.topbar-contact { display: flex; align-items: center; gap: 1.25rem; }
.topbar-contact a { color: var(--green-dark); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.topbar-links { display: flex; align-items: center; gap: 1rem; }
.topbar-links a.faq-link { font-weight: 700; }
.social-row { display: flex; align-items: center; gap: .6rem; }
.social-row a {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
}
.social-row a:hover { background: var(--ink); color: var(--white); }
.social-row svg { width: 14px; height: 14px; }

/* ---------- Header / brand ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: var(--shadow-sm); }
.brand-row .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .85rem;
  padding-bottom: .85rem;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { height: 46px; width: auto; }
.brand-text { line-height: 1.1; }
.brand-text .name { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.brand-text .name .accent { color: var(--green); }
.brand-text .tag { font-size: .72rem; color: var(--grey); letter-spacing: .04em; text-transform: uppercase; }

.header-cta { display: flex; align-items: center; gap: .75rem; }

/* ---------- Nav ---------- */
.nav-toggle {
  display: none;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  width: 44px; height: 40px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.main-nav { background: var(--green-tint); border-top: 1px solid rgba(52,167,83,.15); }
.main-nav .container { display: flex; }
.nav-list { display: flex; align-items: stretch; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex; align-items: center; height: 3rem; padding: 0 1rem;
  font-weight: 600; font-size: .92rem; color: var(--ink);
  border-bottom: 3px solid transparent;
}
.nav-list > li > a:hover,
.nav-list > li.active > a { color: var(--green-dark); border-bottom-color: var(--green); }
.nav-list > li > a .caret { margin-left: .35rem; width: .6em; height: .6em; transition: transform .15s ease; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow);
  padding: .5rem;
  z-index: 50;
}
.nav-item.has-dropdown:hover > .dropdown-menu,
.nav-item.has-dropdown.open > .dropdown-menu { display: block; }
.nav-item.has-dropdown:hover > a .caret { transform: rotate(180deg); }
.dropdown-menu li { position: relative; }
.dropdown-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem .75rem; border-radius: var(--radius-sm); font-size: .88rem; color: var(--ink);
}
.dropdown-menu a:hover { background: var(--green-tint); color: var(--green-dark); }
.dropdown-menu .sub {
  position: absolute; top: 0; left: 100%;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: .5rem;
  display: none;
}
.dropdown-menu li.has-sub:hover > .sub { display: block; }

/* ---------- Notification banner ---------- */
.notice {
  background: var(--red);
  color: var(--white);
  text-align: center;
  font-size: .88rem;
  padding: .6rem 1rem;
}
.notice a { color: var(--green-light); font-weight: 700; }
.notice a:hover { color: var(--white); text-decoration: underline; }
.notice b { color: var(--white); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  background: var(--grey-bg);
  font-size: .8rem;
  color: var(--grey);
  padding: .5rem 0;
}
.breadcrumbs .container { display: flex; gap: .4rem; align-items: center; }
.breadcrumbs a { color: var(--grey); }
.breadcrumbs a:hover { color: var(--green-dark); }
.breadcrumbs .sep { opacity: .6; }
.breadcrumbs .current { color: var(--green-dark); font-weight: 600; }

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; overflow: hidden; background: var(--ink); }
.hero-slider .slides { position: relative; aspect-ratio: 21 / 8; min-height: 220px; }
.hero-slider .slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .8s ease;
  pointer-events: none;
}
.hero-slider .slide.active { opacity: 1; pointer-events: auto; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider .dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .5rem; z-index: 5;
}
.hero-slider .dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--white);
  background: transparent; padding: 0; cursor: pointer; opacity: .7;
}
.hero-slider .dots button.active { background: var(--white); opacity: 1; }
.hero-slider .arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.35); color: var(--white); border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  z-index: 5;
}
.hero-slider .arrow:hover { background: rgba(0,0,0,.6); }
.hero-slider .arrow.prev { left: 1rem; }
.hero-slider .arrow.next { right: 1rem; }

/* ---------- Split content sections (home page) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.split-media {
  background-size: cover;
  background-position: center;
  min-height: 380px;
  position: relative;
}
.split-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.15)); }
.split-body { padding: 3rem 3rem; display: flex; flex-direction: column; justify-content: center; }
.split.alt { grid-template-columns: 1fr 1fr; }
.split.alt .split-media { order: 2; }
.split.alt .split-body { order: 1; }
.split-body.on-tint { background: var(--green-tint); }
.split-body.on-grey { background: var(--grey-bg); }

.eyebrow { color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: .5rem; display: block; }
.split-body h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--green); }

.feature-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; margin: 1.25rem 0; }
.feature-list { margin: 0; }
.feature-list li { position: relative; padding-left: 1.1rem; margin-bottom: .35rem; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.feature-cols .icon-lg { opacity: .9; }

/* ---------- Cards / grids ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.meter-card { display: flex; flex-direction: column; gap: .75rem; text-align: left; }
.meter-card .meter-thumb {
  background: var(--green-tint);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex; align-items: center; justify-content: center;
  min-height: 160px;
}
.meter-card .meter-thumb img { max-height: 150px; width: auto; margin: 0 auto; }
.meter-card h3 { font-size: 1.1rem; color: var(--green-dark); margin-bottom: .25rem; }
.meter-card p { font-size: .92rem; color: var(--grey); flex: 1; }
.meter-card .more { font-weight: 700; font-size: .88rem; }

/* ---------- Page sections generic ---------- */
.page-section { padding: 3rem 0; }
.page-section.tint { background: var(--green-tint); }
.page-section.grey { background: var(--grey-bg); }
.section-head { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.section-head h2 { color: var(--green); font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.section-head p { color: var(--grey); }

/* ---------- Article / content pages ---------- */
.content-wrap { padding: 2.5rem 0 4rem; }
.content-wrap h1 { color: var(--green); font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.content-wrap h2 { color: var(--green); font-size: 1.35rem; margin-top: 1.75rem; }
.content-wrap .float-img {
  float: right;
  width: 320px;
  max-width: 45%;
  margin: 0 0 1rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.content-wrap img.inline-fluid { border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 1rem 0; }
.content-wrap ul { margin: 0 0 1rem 1.2rem; list-style: disc; }
.content-wrap ul ul { list-style: circle; margin-top: .3rem; }
.content-wrap li { margin-bottom: .35rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }

.callout {
  background: var(--green-tint);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.stat-strip { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.5rem 0; }
.stat-pill {
  background: var(--white); border: 1px solid var(--green-light);
  border-radius: 999px; padding: .55rem 1.1rem; font-size: .85rem; font-weight: 600; color: var(--green-dark);
  display: inline-flex; align-items: center; gap: .5rem;
}

/* ---------- Layout with sidebar (contact/order/quote) ---------- */
.layout-sidebar { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: start; }
.info-panel {
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.info-panel h3 { color: var(--green-dark); font-size: 1.1rem; margin-bottom: .1rem; }
.info-panel p { margin-bottom: 1.1rem; font-size: .92rem; }
.info-panel a { color: var(--green-dark); font-weight: 700; }
.info-panel .icon { margin-right: .35rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.field label .req { color: var(--red); margin-left: .15rem; }
.field input,
.field select,
.field textarea {
  border: 1.5px solid #dfe3df;
  border-radius: var(--radius-sm);
  padding: .7rem .85rem;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(52,167,83,.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .error {
  display: none;
  color: var(--red);
  font-size: .8rem;
}
.field.invalid input,
.field.invalid select { border-color: var(--red); }
.field.invalid .error { display: block; }
.form-actions { display: flex; gap: .75rem; margin-top: .5rem; flex-wrap: wrap; }
.form-note { font-size: .82rem; color: var(--grey); margin-top: .75rem; }
.form-success {
  display: none;
  background: var(--green-tint);
  border: 1.5px solid var(--green);
  color: var(--green-dark);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.form-success.show { display: block; }

/* ---------- FAQ accordion ---------- */
.accordion { display: flex; flex-direction: column; gap: .75rem; }
.acc-item {
  background: var(--white);
  border: 1px solid #e6e9e6;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.acc-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: none; text-align: left;
  padding: 1rem 1.25rem;
  font-size: .98rem; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.acc-trigger:hover { color: var(--green-dark); }
.acc-trigger .plus { flex: none; width: 1.2rem; height: 1.2rem; color: var(--green); transition: transform .2s ease; }
.acc-trigger[aria-expanded="true"] .plus { transform: rotate(45deg); }
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 1.25rem;
  color: var(--grey);
  font-size: .93rem;
}
.acc-panel .inner { padding-bottom: 1.1rem; }
.acc-panel ul { list-style: disc; margin-left: 1.2rem; }
.acc-panel a { font-weight: 600; }

/* ---------- Under construction ---------- */
.stub-page { text-align: center; padding: 5rem 1rem; }
.stub-page .icon-xl { width: 4rem; height: 4rem; color: var(--green); margin: 0 auto 1rem; }
.stub-page h1 { color: var(--green); }
.stub-page p { color: var(--grey); max-width: 460px; margin: 0 auto 1.5rem; }

/* ---------- Back to top ---------- */
.back-to-top {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 600; color: var(--green-dark);
  margin-top: 2rem;
}
.back-to-top .icon { width: 1rem; height: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: var(--white); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-brand .name { font-weight: 800; font-size: 1.15rem; margin-bottom: .5rem; }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.8); }
.footer-col h4 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9rem; }
.footer-col a, .footer-col address, .footer-col p { display: block; font-size: .87rem; color: rgba(255,255,255,.85); margin-bottom: .55rem; font-style: normal; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-social { display: flex; gap: .6rem; margin-top: .75rem; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: rgba(255,255,255,.25); }
.footer-social svg { width: 16px; height: 16px; color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
  padding-top: 1.25rem; font-size: .78rem; color: rgba(255,255,255,.7);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991px) {
  .nav-toggle { display: flex; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav .container { display: block; padding: 0; }
  .nav-list { flex-direction: column; }
  .nav-list > li > a { height: auto; padding: .85rem 1.5rem; border-bottom: 1px solid rgba(0,0,0,.05); }
  .dropdown-menu { position: static; box-shadow: none; display: none; padding-left: 1rem; }
  .nav-item.has-dropdown.open > .dropdown-menu { display: block; }
  .dropdown-menu .sub { position: static; box-shadow: none; display: none; padding-left: 1rem; }
  .dropdown-menu li.has-sub.open > .sub { display: block; }

  .split, .split.alt { grid-template-columns: 1fr; }
  .split-media { order: -1 !important; min-height: 220px; }
  .split-body { order: 0 !important; padding: 2rem 1.5rem; }
  .feature-cols { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .layout-sidebar { grid-template-columns: 1fr; }
  .info-panel { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-wrap .float-img { float: none; width: 100%; max-width: 100%; margin: 0 0 1.5rem; }
}

@media (max-width: 640px) {
  .topbar .container { justify-content: center; text-align: center; }
  .topbar-contact { justify-content: center; width: 100%; }
  .brand-text .tag { display: none; }
  .header-cta .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-slider .slides { aspect-ratio: 4 / 5; }
}
