/*
Theme Name: HYTRTX Advanced Billing
Theme URI: https://hybridmsp.com
Author: HybridMSP
Author URI: https://hybridmsp.com
Description: Clean, high-performance landing page and client billing portal theme for HYTRTX billing advance services, powered by HybridMSP.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: hytrtx
*/

:root {
  --primary-navy: #0d1b2a;
  --navy-card: #142438;
  --accent-cyan: #00bcd4;
  --accent-blue: #0284c7;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --success-bg: #dcfce7;
  --success-text: #15803d;
  --warn-bg: #fef3c7;
  --warn-text: #b45309;
  --error-bg: #fee2e2;
  --error-text: #b91c1c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header & Nav */
.site-header {
  background-color: var(--primary-navy);
  color: var(--white);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text-block {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1;
}

.logo-main .hy {
  color: var(--white);
}

.logo-main .trtx {
  color: var(--accent-cyan);
}

.logo-sub {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2.2px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.btn-portal {
  background: var(--accent-blue);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-portal:hover {
  background: #0369a1;
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-outline-light:hover {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.06);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #172a45 100%);
  color: var(--white);
  padding: 85px 0 95px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-content h1 span {
  color: var(--accent-cyan);
}

.hero-content p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta {
  display: inline-block;
  background: var(--accent-blue);
  color: var(--white);
  padding: 13px 30px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: transform 0.15s ease, background 0.2s ease;
}

.hero-cta:hover {
  background: #0369a1;
  transform: translateY(-2px);
}

/* Mock Invoice Card */
.mockup-card {
  background: var(--white);
  color: var(--text-dark);
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.badge-status {
  background: var(--success-bg);
  color: var(--success-text);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
}

.badge-pending {
  background: var(--warn-bg);
  color: var(--warn-text);
}

.mockup-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 13px;
}

.mockup-details span {
  color: var(--text-muted);
}

.mockup-amount-box {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mockup-amount-val {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.portal-progress {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  position: relative;
  margin-top: 10px;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: var(--white);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 32px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
}

.feature-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-navy);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0 90px;
  background: #f1f5f9;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 48px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.faq-question {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.faq-answer {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-answer strong {
  color: var(--text-dark);
}

/* Portal Page Styles */
.portal-wrapper {
  background: #f1f5f9;
  min-height: calc(100vh - 220px);
  padding: 55px 0 75px;
}

.portal-login-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 10px 25px rgba(13, 27, 42, 0.08);
}

.portal-login-header {
  text-align: center;
  margin-bottom: 26px;
}

.portal-login-header h2 {
  font-size: 24px;
  color: var(--primary-navy);
  font-weight: 800;
  margin-bottom: 6px;
}

.portal-login-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.alert-box {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid #fecaca;
}

.portal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary-navy);
  color: var(--white);
  padding: 20px 28px;
  border-radius: 10px;
  margin-bottom: 28px;
}

.portal-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px 24px;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-navy);
}

.portal-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 28px;
  align-items: start;
}

.portal-panel {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 26px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.portal-panel h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ledger-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-light);
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.ledger-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

/* Footer */
.site-footer {
  background-color: var(--primary-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 55px 0 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col p {
  font-size: 13px;
  line-height: 1.6;
}

.footer-col a {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 868px) {
  .hero-grid, .feature-cards, .faq-grid, .footer-grid, .portal-stats-grid, .portal-main-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .hero-content h1 {
    font-size: 34px;
  }
  .portal-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
