/* =========================
   ResellerTools.net — style.css
   (Cleaned + Sticky Footer Fixed)
========================= */

/* ---------- Base Reset ---------- */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
  background: #f4f5f7;

  /* Sticky footer foundation */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* main MUST be the page wrapper for sticky footer to work */
main { flex: 1; }

/* ---------- Container ---------- */
.container {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

/* =========================
   Header
========================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e7e7e7;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand {
  text-decoration: none;
  color: inherit;
}

.brand-text {
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* Desktop top links */
.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  text-decoration: none;
  color: #111;
  font-weight: 600;
  font-size: 14px;
}

.nav-link:hover { text-decoration: underline; }

/* Desktop shows nav, mobile hides nav */
@media (max-width: 760px) {
  .top-nav { display: none; }
}

/* Hamburger button */
.menu-btn {
  border: 1px solid #dcdcdc;
  background: #fff;
  border-radius: 8px; /* less rounded */
  width: 44px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.menu-btn:hover { background: #fafafa; }

/* 3-line hamburger icon */
.menu-icon {
  position: relative;
  width: 18px;
  height: 14px;
  display: block;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #111;
  border-radius: 2px;
}

.menu-icon::before {
  top: 0;
  /* middle line using box-shadow */
  box-shadow: 0 6px 0 #111;
}

.menu-icon::after {
  bottom: 0;
}

/* =========================
   Fullscreen Menu Panel
========================= */
body.menu-open { overflow: hidden; }

.menu-panel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 9999;
}

.menu-panel-inner {
  position: absolute;
  inset: 0;
  background: #fff;
  padding: 18px 16px 28px;
  overflow: auto;
}

/* Title at top of hamburger (keep this) */
.menu-title {
  max-width: 980px;
  margin: 0 auto 12px;
  font-size: 16px;
  font-weight: 800;
  color: #111;
}

.menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 36px;
  border: 1px solid #dcdcdc;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.menu-divider {
  height: 1px;
  background: #e7e7e7;
  margin: 14px 0;
}

.menu-section {
  max-width: 980px;
  margin: 0 auto;
}

/* IMPORTANT: match spacing between all menu buttons (top + bottom) */
.menu-group { margin: 10px 0; }

/* Uniform menu buttons/links */
.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 14px 14px;
  border: 1px solid #e1e1e1;
  background: #fff;
  border-radius: 10px; /* less rounded */
  cursor: pointer;

  font-size: 15px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}

.menu-item:hover { background: #fafafa; }

.menu-item.link-only { justify-content: flex-start; }

/* Chevron icon used on dropdown buttons */
.chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(45deg);
  margin-left: auto;
}

/* Submenu */
.submenu {
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  padding: 10px;
  margin-top: 8px;
  background: #fff;
}

.submenu a {
  display: block;
  padding: 10px 10px;
  text-decoration: none;
  color: #111;
  border-radius: 8px;
  font-weight: 600;
}

.submenu a:hover { background: #f5f6f8; }

/* =========================
   Page Layout
========================= */
.page {
  background: #f3f4f6; /* light gray */
  padding: 28px 0 48px;
  /* NOTE: no min-height calc here — sticky footer is handled by body/main */
}

.page-wrap { padding: 26px 0 40px; }

.card {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  padding: 18px;
}

.page-card { padding: 22px 18px; }

@media (min-width: 768px) {
  .page-card { padding: 28px 26px; }
}

.page-title {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin: 0 0 18px;
  font-size: 14px;
  color: #6b7280;
}

.muted { color: #6b7280; }

/* Prose styles (privacy / guide) */
.prose {
  color: #111827;
  font-size: 15px;
  line-height: 1.6;
}

.prose h2 {
  margin: 18px 0 8px;
  font-size: 16px;
  line-height: 1.3;
}

.prose p { margin: 10px 0; }

.prose ul {
  margin: 8px 0 12px 18px;
  padding: 0;
}

.prose li { margin: 6px 0; }

/* =========================
   Tools Page: uniform buttons/dropdowns
========================= */
.tool-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

/* Shared base for tool buttons and dropdown toggles */
.tool-btn,
.tool-dd > button,
.tool-dd > a {
  width: 100%;
  text-align: left;
  border: 1px solid #e1e1e1;
  background: #fff;
  border-radius: 12px;
  padding: 16px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  cursor: pointer;
  text-decoration: none;
  color: #111;
}

.tool-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.tool-sub {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: #5a5f69;
}

/* Right chevron (only show on dropdowns in your HTML) */
.tool-right-chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(45deg);
}

.tool-dd { position: relative; }

.tool-dd-menu {
  margin-top: 8px;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.tool-dd-menu a {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #111;
  font-weight: 600;
}

.tool-dd-menu a:hover { background: #f5f6f8; }

/* =========================
   Footer (Sticky at bottom via flex layout)
========================= */
.site-footer {
  background: #e9eaee;
  border-top: 1px solid #d6d7dd;
  padding: 18px 0 20px;
}

.footer-inner {
  text-align: center;
  display: grid;
  gap: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.footer-links a {
  color: #111;
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover { text-decoration: underline; }

.footer-disclaimer {
  font-size: 12px;
  color: #4a4f59;
}

/* =========================
   Calculator Pages (Shared)
========================= */

.tool-hero {
  text-align: center;
  margin: 6px 0 18px;
}

.tool-hero-title {
  font-size: 36px;           /* larger main title */
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.tool-hero-subtitle {
  margin: 0 auto;
  max-width: 760px;
  font-size: 18px;           /* much larger subtext */
  line-height: 1.5;
  color: #6b7280;
}

.centered {
  display: flex;
  justify-content: center;
  align-items: center;
}

.calc {
  margin-top: 8px;
}

.calc-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.calc-field {
  display: grid;
  gap: 8px;
}

.calc-label {
  font-weight: 800;
  font-size: 16px;           /* larger input titles */
}

.calc-input {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
}

.calc-help {
  font-size: 13px;
}

.calc-actions {
  margin-top: 16px;
}

.calc-btn {
  padding: 12px 16px;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.calc-btn.secondary {
  background: #fff;
  color: #111;
}

.calc-results {
  margin-top: 18px;
}

.calc-results-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.result-box {
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.result-label {
  font-size: 15px;           /* larger output titles */
  font-weight: 900;
}

.result-value {
  font-size: 26px;
  font-weight: 950;
  margin-top: 8px;
}

.result-sub {
  font-size: 13px;
  margin-top: 8px;
}

.calc-context {
  margin-top: 12px;
  font-size: 13px;
}

.promo-section--spaced {
  margin-top: 34px;          /* more whitespace before ads */
}

.promo-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.promo-card {
  display: block;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.promo-title {
  font-weight: 950;
  font-size: 16px;
}

.promo-sub {
  margin-top: 8px;
  font-size: 13px;
  color: #5a5f69;
}

@media (min-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr 1fr;
  }
  .calc-results-grid {
    grid-template-columns: 1fr 1fr;
  }
  .promo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================
   Calculator Outputs (Centered)
========================= */

.output-bar {
  display: flex;
  justify-content: center;      /* center the whole block */
  align-items: flex-start;
  gap: 48px;
  text-align: center;           /* center text inside */
  margin-top: 28px;
}

.output-col {
  min-width: 220px;
}

.output-head {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.output-value {
  margin-left: 6px;
}

.output-sub {
  font-size: 14px;
  margin-top: 4px;
  color: #6b7280;
}

.output-context {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}

.output-green {
  color: #0b7a2a;         /* clean green */
}

.reset-row {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.reset-btn {
  background: #111;
  color: #fff;
  border: 0;
  padding: 12px 22px;
  border-radius: 4px;     /* more squared like screenshot */
  font-weight: 900;
  cursor: pointer;
}

.reset-btn:hover {
  opacity: 0.92;
}

@media (min-width: 768px) {
  .output-bar {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }
}

/* Promo images inside cards */
.promo-card {
  display: block;
}

.promo-img {
  width: 100%;
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid #e7e7e7;
  display: block;
}

/* =========================
   Reseller Callout
========================= */

.reseller-callout {
  margin: 48px 0 28px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #111;
}

/* Make calculator output values larger */
.output-value {
  font-size: 32px;     /* adjust if you want bigger/smaller */
  font-weight: 800;
}

/* Output value styling (large numbers only) */
.output-value {
  font-size: 34px;   /* adjust if you want even bigger */
  font-weight: 800;
  line-height: 1.1;
}

/* Conditional colors */
.output-green { color: #16a34a; }  /* green */
.output-yellow { color: #ca8a04; } /* yellow */
.output-red { color: #dc2626; }    /* red */

/* =========================
   Country bar (calculator pages)
========================= */
.country-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}

.country-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e1e1e1;
  background: #fff;
  border-radius: 10px;
  text-decoration: none;
  color: #111;
  font-weight: 700;
  font-size: 14px;
}

.country-btn:hover { background: #fafafa; }

.country-btn.is-active {
  border-color: #cfd3da;
  background: #f5f6f8;
}

.country-flag {
  width: 20px;
  height: 14px;
  display: block;
  border-radius: 2px;
}

/* =========================
   Calculator layout tweaks
========================= */
.calc-grid--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 860px) {
  .calc-grid--2col { grid-template-columns: 1fr; }
}

.calc-col { display: grid; gap: 12px; }

.calc-inline {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
}

@media (max-width: 500px) {
  .calc-inline { grid-template-columns: 1fr; }
}

.calc-select {
  width: 100%;
  border: 1px solid #e1e1e1;
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px;
  font-weight: 700;
  color: #111;
}

.calc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 14px;
}

.output-bar--center {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

@media (max-width: 760px) {
  .output-bar--center { grid-template-columns: 1fr; }
}

.output-col--center { width: 100%; }

.output-large {
  font-size: 22px;
  font-weight: 900;
}

.calc-disclaimer {
  margin-top: 14px;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

/* Center the country bar */
.country-bar--center {
  justify-content: center;
}

/* Outputs: 3-column layout like reference */
.output-bar--3 {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: start;
  text-align: center;
}

@media (max-width: 860px) {
  .output-bar--3 {
    grid-template-columns: 1fr;
  }
}

.output-breakdown {
  margin-top: 10px;
  font-size: 13px;
  color: #111;
  line-height: 1.6;
}

/* Ensure these exist for coloring */
.output-red { color: #c70000; }
.output-green { color: #0a7a0a; }

