/* ============================================================================
   TAXPRACTO DESIGN SYSTEM — Shared Theme
   Base: index.html (reference standard)
   Updated: 28 March 2026 — Unified navbar, footer, hero across all pages
   ============================================================================ */

/* ====== ROOT VARIABLES ====== */
:root {
  /* Primary Colors — aligned with index.html */
  --navy: #131B2D;
  --blue: #1a5276;
  --teal: #005E52;
  --teal-dark: #1f786a;
  --teal-light: #48c9b0;

  /* Text */
  --text: #3a4a5c;
  --text-light: #5a6b7b;
  --text-muted: #6b7d8e;

  /* Backgrounds */
  --bg: #f4f7fa;
  --bg-alt: #f8fafb;
  --card: #ffffff;

  /* Borders */
  --border: #e2e8f0;
  --border-light: #e8eef3;

  /* Accent Colors */
  --amber-50: #fffbf0;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-600: #d97706;
  --red: #e74c3c;
  --red-dark: #c0392b;
  --green: #27ae60;
  --purple: #8e44ad;

  /* Shadows */
  --shadow: 0 2px 12px rgba(19,27,45,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 32px rgba(19,27,45,0.10);
  --shadow-teal: 0 6px 24px rgba(0,94,82,0.3);

  /* Border Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 50px;
}

/* ====== RESET & BASE ====== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--navy); }
body { overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

/* ====== TYPOGRAPHY ====== */
/* Hero: 42px/700, Section: 28px/700, Card: 20px/700, Body: 14px/400 */
/* Labels: 11-12px/700, Small: 13px/600 */

/* ============================================================================
   GROUPED DROPDOWN NAVBAR (tp-navbar.js)
   ============================================================================ */
.tp-nav { position: sticky; top: 0; z-index: 1000; background: white; border-bottom: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.tp-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 60px; gap: 8px; }

/* Logo */
.tp-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.tp-nav-logo img { height: 42px; width: 42px; border-radius: 10px; }
.tp-nav-logo-text { font-weight: 700; font-size: 17px; color: var(--navy); }
.tp-nav-beta { background: #c0e5e0; color: var(--teal); font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.05em; }

/* Center nav group */
.tp-nav-center { display: flex; align-items: center; gap: 4px; margin-left: 24px; flex: 1; }

/* Nav links (Dashboard, Contact) */
.tp-nav-link { font-size: 13px; font-weight: 600; color: var(--text); padding: 8px 14px; border-radius: var(--radius-sm); transition: all 0.2s; white-space: nowrap; }
.tp-nav-link:hover { color: var(--teal); background: rgba(0,94,82,0.06); }
.tp-nav-link.active { color: var(--teal); background: rgba(0,94,82,0.08); }

/* Dropdown container */
.tp-dropdown { position: relative; }
.tp-dropdown-btn { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: var(--text); padding: 8px 14px; border-radius: var(--radius-sm); border: none; background: none; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all 0.2s; white-space: nowrap; }
.tp-dropdown-btn:hover { color: var(--teal); background: rgba(0,94,82,0.06); }
.tp-dropdown-btn.active { color: var(--teal); }
.tp-dropdown-btn svg { width: 10px; height: 6px; transition: transform 0.2s; }
.tp-dropdown.open .tp-dropdown-btn svg { transform: rotate(180deg); }
.tp-dropdown.open .tp-dropdown-btn { color: var(--teal); background: rgba(0,94,82,0.06); }

/* Dropdown menu */
.tp-dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: white; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(19,27,45,0.12); padding: 6px; min-width: 240px; z-index: 1001; }
.tp-dropdown.open .tp-dropdown-menu { display: block; animation: tpDropdownIn 0.15s ease-out; }
@keyframes tpDropdownIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.tp-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; font-weight: 500; color: var(--text); border-radius: var(--radius-sm); transition: all 0.15s; }
.tp-dropdown-item:hover { background: rgba(0,94,82,0.06); color: var(--teal); }
.tp-dropdown-item.tp-dropdown-active { background: rgba(0,94,82,0.08); color: var(--teal); font-weight: 600; }
.tp-dropdown-icon { font-size: 16px; width: 24px; text-align: center; flex-shrink: 0; }

/* Right section (auth) */
.tp-nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.tp-nav-user { font-size: 12px; color: var(--text-light); background: #d5ebe7; padding: 5px 14px; border-radius: 20px; font-weight: 500; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-nav-logout { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: var(--teal); background: none; border: 1.5px solid var(--border); padding: 6px 16px; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s; }
.tp-nav-logout:hover { border-color: var(--teal); background: rgba(0,94,82,0.04); }
.tp-nav-login { font-size: 13px; font-weight: 600; color: var(--text); padding: 6px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); transition: all 0.15s; }
.tp-nav-login:hover { border-color: var(--teal); color: var(--teal); }
.tp-nav-signup { font-size: 13px; font-weight: 600; color: white; background: linear-gradient(135deg, #005E52, #1f786a); padding: 7px 18px; border-radius: var(--radius-sm); transition: all 0.15s; }
.tp-nav-signup:hover { box-shadow: 0 4px 12px rgba(0,94,82,0.3); }
.tp-nav-contact { }

/* Hamburger */
.tp-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; margin-left: auto; }
.tp-hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.25s; }
.tp-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.tp-hamburger.open span:nth-child(2) { opacity: 0; }
.tp-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.tp-mobile-menu { display: none; background: white; border-top: 1px solid var(--border); padding: 12px 24px 20px; max-height: 70vh; overflow-y: auto; }
.tp-mobile-menu.open { display: block; animation: tpDropdownIn 0.2s ease-out; }
.tp-mobile-link { display: block; padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--text); border-radius: var(--radius-sm); transition: all 0.15s; }
.tp-mobile-link:hover { background: rgba(0,94,82,0.06); color: var(--teal); }
.tp-mobile-group-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 14px 12px 6px; }
.tp-mobile-user { font-size: 13px; color: var(--text-light); padding: 10px 12px; }
.tp-mobile-logout { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: var(--teal); background: none; border: 1.5px solid var(--border); padding: 8px 20px; border-radius: var(--radius-sm); cursor: pointer; margin: 8px 12px; }

/* ====== HERO ====== */
.tp-hero { background: linear-gradient(135deg, #131B2D 0%, #152A4A 50%, #1A5C5E 100%); padding: 48px 24px 40px; text-align: center; position: relative; overflow: hidden; }
.tp-hero::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(0,94,82,0.12) 0%, transparent 70%); top: -200px; right: -100px; }
.tp-hero-title { font-size: 32px; font-weight: 700; color: white; margin-bottom: 8px; position: relative; z-index: 1; }
.tp-hero-subtitle { font-size: 15px; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto; position: relative; z-index: 1; line-height: 1.6; }

/* ====== CARDS ====== */
.tp-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; transition: all 0.3s; }
.tp-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* ====== BUTTONS ====== */
.tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: 'Inter', sans-serif; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; }
.tp-btn-primary { background: linear-gradient(135deg, #005E52, #1f786a); color: white; padding: 14px 28px; font-size: 15px; border-radius: var(--radius); }
.tp-btn-primary:hover { box-shadow: var(--shadow-teal); transform: translateY(-1px); }
.tp-btn-secondary { background: white; color: var(--teal); border: 2px solid var(--border); padding: 10px 20px; font-size: 14px; border-radius: var(--radius); }
.tp-btn-secondary:hover { border-color: var(--teal); }
.tp-btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); }

/* ====== INPUTS ====== */
.tp-input { width: 100%; padding: 12px 16px; font-size: 15px; font-family: 'Inter', sans-serif; border: 2px solid var(--border); border-radius: 10px; outline: none; color: var(--navy); background: white; transition: all 0.2s; }
.tp-input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,94,82,0.1); }
.tp-input::placeholder { color: var(--text-light); font-weight: 400; }
.tp-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6b7b' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* ====== TAGS/BADGES ====== */
.tp-tag { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; }
.tp-tag-teal { background: rgba(0,94,82,0.08); color: var(--teal); }
.tp-tag-amber { background: rgba(217,119,6,0.08); color: var(--amber-600); }
.tp-tag-blue { background: rgba(26,82,118,0.08); color: var(--blue); }

/* ====== TABS ====== */
.tp-tabs { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 4px; background: #edf2f7; border-radius: var(--radius); }
.tp-tab { padding: 10px 20px; font-size: 13px; font-weight: 600; color: var(--text); border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap; transition: all 0.2s; border: none; background: none; font-family: inherit; }
.tp-tab:hover { color: var(--navy); background: rgba(255,255,255,0.5); }
.tp-tab.active { background: white; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* ============================================================================
   FOOTER (tp-footer.js)
   ============================================================================ */
.tp-footer { background: #111625; border-radius: 24px 24px 0 0; margin-top: 40px; padding: 0; }
.tp-footer-inner { max-width: 1140px; margin: 0 auto; padding: 48px 24px 32px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; align-items: start; }
.tp-footer-brand { }
.tp-footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tp-footer-logo img { height: 38px; width: 38px; border-radius: 8px; }
.tp-footer-logo span { font-size: 18px; font-weight: 700; color: white; }
.tp-footer-desc { font-size: 13px; color: #9CA3AF; line-height: 1.7; }
.tp-footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tp-footer-col h4 { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.tp-footer-col a { display: block; font-size: 13px; color: #9CA3AF; padding: 4px 0; transition: color 0.2s; }
.tp-footer-col a:hover { color: white; }
.tp-footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 24px; text-align: center; }
.tp-footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.6; }
.tp-footer-bottom p + p { margin-top: 4px; }

/* ====== TOOLTIP ====== */
.tp-tooltip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,94,82,0.1); color: var(--teal); font-size: 11px; font-weight: 700; cursor: help; margin-left: 6px; }
.tp-tooltip-content { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--navy); color: white; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 400; line-height: 1.5; width: 280px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.tp-tooltip-content::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--navy); }
.tp-tooltip:hover .tp-tooltip-content { display: block; }

/* ====== INFO BOX ====== */
.tp-info { background: var(--bg); border-left: 4px solid var(--teal); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.tp-info-amber { border-left-color: var(--amber-600); background: var(--amber-50); }

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .tp-nav-center { display: none; }
  .tp-nav-right { display: none; }
  .tp-hamburger { display: flex; }
  .tp-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .tp-footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .tp-hero-title { font-size: 24px; }
  .tp-hero-subtitle { font-size: 13px; }
  .tp-tabs { gap: 2px; }
  .tp-tab { padding: 8px 14px; font-size: 12px; }
}

@media (max-width: 480px) {
  .tp-nav-inner { padding: 0 16px; height: 54px; }
  .tp-hero { padding: 32px 16px 28px; }
  .tp-card { padding: 20px; }
  .tp-footer-links { grid-template-columns: 1fr; }
  .tp-mobile-menu { padding: 8px 16px 16px; }
}
