/* ==========================================================================
   TSC Accounts Receivable Solutions – Global Styles (CLEAN BUILD)
   ========================================================================== */

/* ---------- RESET ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial;
  background: #ffffff;
  color: #0f172a;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }

/* Skip Link */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  background: black;
  color: white;
  padding: 6px 8px;
  z-index: 10000;
  border-radius: 4px;
}

/* Utilities */

.visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 18px 0;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 58px;
  width: auto;
}

/* Desktop Navigation */

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: 600;
  text-decoration: none;
  color: #0f172a;
  transition: color .2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #275da8;
}

/* Mobile Hamburger Toggle */

.mobile-nav-toggle {
  display: none;  /* enabled in mobile view */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  gap: 4px;
}

.mobile-nav-toggle span {
  width: 24px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  display: block;
}

/* X Animation */

.mobile-nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   MAIN LAYOUT
   ========================================================================== */

main {
  flex: 1;
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Generic Sections */

.section {
  padding: 44px 0;
}

/* Grid Helpers */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1.25fr 1fr; }
.grid-2-min { grid-template-columns: 1fr 1fr; }

.stack { display: grid; gap: 16px; }

@media (max-width: 960px) {
  .grid-2, .grid-2-min { grid-template-columns: 1fr; }
}

/* Cards */

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

/* Typography */

.title { font-size: 1.7rem; margin-bottom: 8px; }
.h2 { font-size: 1.35rem; margin-bottom: 8px; }
.h3 { font-size: 1.1rem; margin-bottom: 6px; }
.lead { color: #111827; }
.muted { color: #6b7280; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s;
}

.btn-primary {
  background: #275da8;
  border-color: #275da8;
  color: white;
}

.btn-primary:hover {
  background: #1e4780;
  border-color: #1e4780;
  box-shadow: 0 4px 10px rgba(39,93,168,.3);
  text-decoration: none;
}

.btn-outline {
  background: white;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.btn-outline:hover {
  background: #f8fafc;
  color: #0f172a;
}

/* ==========================================================================
   HOME PAGE (index.php)
   ========================================================================== */

.hero {
  background: #f9fafb;
  padding-top: 44px;
}

.steps {
  padding-left: 1.2rem;
  margin-top: 8px;
}
.steps li { margin: 6px 0; }
/* ===== Make a Payment card refinements ===== */

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-card-header {
  display: grid;
  gap: 6px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0;
}

.hero-card-body {
  margin-top: 4px;
}

.hero-steps {
  margin: 0;
  padding-left: 1.4rem;
  color: #111827;
}

.hero-steps li {
  margin: 4px 0;
}

/* Button + note row */

.hero-card-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.9rem;
}

/* On very small screens, button + note stack nicely */
@media (max-width: 480px) {
  .hero-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Callout card on home page */
.callout {
  border-left: 4px solid #275da8;
}

.callout-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* Slightly smaller button that tucks under the text */
.callout-btn {
  padding: 10px 18px;
  font-size: 0.95rem;
}


/* Hours */

.hours { list-style: none; padding: 0; margin: 0; }
.hours li {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px dashed #e5e7eb;
  padding: 8px 0;
}
.hours li:last-child { border-bottom: 0; }

/* ==========================================================================
   COMMUNICATION PREFERENCES FORM
   ========================================================================== */

.field { margin: 14px 0; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.field .required::after {
  content: " *";
  color: #b91c1c;
}

.text,
.textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 1rem;
}

.text:focus,
.textarea:focus {
  border-color: #275da8;
  box-shadow: 0 0 0 2px rgba(39,93,168,.25);
  outline: none;
}

.choice {
  border: 1px solid #e5e7eb;
  padding: 14px 16px;
  border-radius: 12px;
}

.choice label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hint { font-size: .9rem; color: #6b7280; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  margin-top: auto;
  border-top: 1px solid #e5e7eb;
  background: #0e2a45;
  color: white;
}

footer .container {
  padding: 18px 20px;
  text-align: center;
}

footer a { color: #cfe0ff; }
footer a:hover { text-decoration: underline; }

/* ==========================================================================
   MOBILE RESPONSIVE (FINAL)
   ========================================================================== */

@media (max-width: 768px) {

  /* Header */
  .header-bar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.nav-open {
    display: block;
    margin-top: 8px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  /* Spacing */
  .section { padding: 28px 0; }
  .card { padding: 18px; border-radius: 10px; }

  /* Hero */
  .title { font-size: 1.45rem; }
  .h2 { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }

  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
  }

  .callout-content { width: 100%; }
}
/* Home page: remove white strip under header */
.home-main {
  padding-top: 0;
}
.sms-disclosure {
  background: #e8f1ff;
  border-left: 4px solid #275da8;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  color: #0f172a;
  margin: 12px 0 6px 0;
  line-height: 1.45;
}
.sms-disclosure strong {
  color: #275da8;
}
