/* ============================================================
   SuporteGO – Global Design System
   Paleta: Azul escuro + Laranja + Branco/Claro
   Font: Inter (Google Fonts)
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  /* Brand Colors */
  --primary:        #1E3A6F;
  --primary-dark:   #152C55;
  --primary-light:  #2A5C8A;
  --accent:         #F9A826;
  --accent-dark:    #E8941A;
  --cyan:           #3BBFCE;
  --cyan-light:     #5DCFDD;

  /* Neutral / Background */
  --bg:             #F4F7FC;
  --bg-white:       #FFFFFF;
  --bg-dark:        #0F1C35;
  --surface:        #FFFFFF;
  --border:         #D5E0F0;
  --border-light:   #E8EFF9;

  /* Text */
  --text-primary:   #1A2B3C;
  --text-secondary: #4A6080;
  --text-muted:     #7A90A8;
  --text-white:     #FFFFFF;
  --text-light:     #C8D8EC;

  /* Status */
  --success:        #28A745;
  --danger:         #DC3545;
  --warning:        #FFC107;
  --info:           #17A2B8;

  /* Spacing (8pt grid) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 80px;
  --sp-10: 96px;

  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(30,58,111,0.08), 0 1px 2px rgba(30,58,111,0.06);
  --shadow-md:  0 4px 16px rgba(30,58,111,0.12), 0 2px 6px rgba(30,58,111,0.08);
  --shadow-lg:  0 12px 36px rgba(30,58,111,0.16), 0 4px 12px rgba(30,58,111,0.10);
  --shadow-xl:  0 24px 64px rgba(30,58,111,0.20);
  --shadow-accent: 0 8px 24px rgba(249,168,38,0.35);

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);

  /* Header */
  --header-height: 72px;

  /* Max widths */
  --container:  1200px;
  --container-sm: 760px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--accent); }

ul { list-style: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.container-sm {
  max-width: var(--container-sm);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

/* --- Typography Scale --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.text-white        { color: var(--text-white); }
.text-muted        { color: var(--text-muted); }
.text-secondary    { color: var(--text-secondary); }
.text-accent       { color: var(--accent); }
.text-center       { text-align: center; }
.text-sm           { font-size: 0.875rem; }
.text-lg           { font-size: 1.125rem; }
.font-semibold     { font-weight: 600; }
.font-bold         { font-weight: 700; }

/* --- Section Utility --- */
.section {
  padding-block: var(--sp-9);
}
.section-sm {
  padding-block: var(--sp-7);
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--sp-3);
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}
.section-header {
  margin-bottom: var(--sp-7);
}
.section-header.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.label-tag {
  display: inline-block;
  background: rgba(59,191,206,0.12);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-3);
  border: 1px solid rgba(59,191,206,0.25);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(30,58,111,0.06);
  height: var(--header-height);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo-text .brand span {
  color: #6AB0D8;
}

.logo-text .tagline {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(30,58,111,0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile Nav --- */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-4);
  flex-direction: column;
  gap: var(--sp-2);
  z-index: 99;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { padding: var(--sp-3) var(--sp-4); font-size: 1rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  height: 48px;
  padding: 0 var(--sp-6);
  background: var(--accent);
  color: var(--text-white);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(249,168,38,0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--text-white);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.btn-secondary {
  height: 48px;
  padding: 0 var(--sp-6);
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  height: 48px;
  padding: 0 var(--sp-6);
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  height: 48px;
  padding: 0 var(--sp-6);
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: var(--text-white);
  border-color: white;
  transform: translateY(-2px);
}

.btn-sm {
  height: 36px;
  padding: 0 var(--sp-4);
  font-size: 0.8rem;
}

.btn-lg {
  height: 56px;
  padding: 0 var(--sp-7);
  font-size: 1rem;
}

.btn-danger-outline {
  height: 36px;
  padding: 0 var(--sp-3);
  font-size: 0.8rem;
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}

.btn-danger-outline:hover {
  background: var(--danger);
  color: white;
}

.btn-success-sm {
  height: 36px;
  padding: 0 var(--sp-3);
  font-size: 0.8rem;
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.btn-success-sm:hover {
  background: #218838;
  color: white;
  transform: translateY(-1px);
}

.btn-icon {
  height: 36px;
  padding: 0 var(--sp-3);
  font-size: 0.8rem;
  background: var(--primary-light);
  color: white;
  border-color: var(--primary-light);
  border-radius: var(--radius-sm);
}

.btn-icon:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
}

.btn-crm {
  height: 40px;
  padding: 0 var(--sp-4);
  background: var(--accent);
  color: var(--text-white);
  border-color: var(--accent);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(249,168,38,0.25);
}

.btn-crm:hover {
  background: var(--accent-dark);
  color: var(--text-white);
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-body { padding: var(--sp-6); }
.card-footer {
  padding: var(--sp-4) var(--sp-6);
  background: var(--bg);
  border-top: 1px solid var(--border-light);
}

/* Service Card */
.service-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(30,58,111,0.1), rgba(59,191,206,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  font-size: 1.5rem;
  color: var(--primary);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: white;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--sp-3);
  color: var(--primary);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: var(--sp-5);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.form-control {
  width: 100%;
  height: 44px;
  padding: 0 var(--sp-4);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(42,92,138,0.12);
}

.form-control::placeholder { color: var(--text-muted); }

textarea.form-control {
  height: auto;
  min-height: 120px;
  padding: var(--sp-3) var(--sp-4);
  resize: vertical;
}

select.form-control { cursor: pointer; }

/* Search bar */
.search-bar {
  position: relative;
}
.search-bar .fa-search {
  position: absolute;
  left: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.search-bar input {
  padding-left: 44px;
}

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-primary   { background: rgba(30,58,111,0.1); color: var(--primary); }
.badge-cyan      { background: rgba(59,191,206,0.12); color: var(--cyan); }
.badge-accent    { background: rgba(249,168,38,0.15); color: var(--accent-dark); }
.badge-success   { background: rgba(40,167,69,0.15); color: var(--success); }
.badge-danger    { background: rgba(220,53,69,0.12); color: var(--danger); }
.badge-info      { background: rgba(23,162,184,0.12); color: var(--info); }

/* Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.filter-tab {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================================
   TABLES (Admin)
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: var(--primary);
  color: var(--text-white);
}

thead th {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-white);
  transition: background var(--transition-fast);
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg); }

td {
  padding: var(--sp-3) var(--sp-4);
  vertical-align: middle;
  color: var(--text-primary);
}

.td-actions {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding-top: var(--sp-9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-8);
}

.footer-brand .logo-img {
  height: 48px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: var(--sp-4);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 300px;
}

.footer-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-white);
  margin-bottom: var(--sp-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: var(--sp-3);
}

.footer-contact li i {
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: var(--sp-9) 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(59,191,206,0.15) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(249,168,38,0.08) 0%, transparent 40%);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  color: white;
  margin-bottom: var(--sp-3);
}
.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 540px;
}

/* ============================================================
   ADMIN PANEL LAYOUT
   ============================================================ */
.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - var(--header-height));
}

.admin-sidebar {
  background: var(--primary);
  padding: var(--sp-6);
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
  text-decoration: none;
  margin-bottom: var(--sp-1);
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(255,255,255,0.12);
  color: white;
}

.admin-nav-link i {
  width: 18px;
  text-align: center;
}

.admin-content {
  padding: var(--sp-7);
  overflow-y: auto;
}

.admin-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-6);
}

.admin-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.admin-card-title i {
  color: var(--cyan);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.admin-stat {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.admin-stat .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.admin-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap     { flex-wrap: wrap; }
.gap-2         { gap: var(--sp-2); }
.gap-3         { gap: var(--sp-3); }
.gap-4         { gap: var(--sp-4); }
.gap-5         { gap: var(--sp-5); }

.mb-1 { margin-bottom: var(--sp-2); }
.mb-2 { margin-bottom: var(--sp-3); }
.mb-3 { margin-bottom: var(--sp-4); }
.mb-4 { margin-bottom: var(--sp-5); }
.mb-5 { margin-bottom: var(--sp-6); }

.mt-auto { margin-top: auto; }

.bg-primary { background: var(--primary); }
.bg-accent  { background: var(--accent); }
.bg-light   { background: var(--bg); }
.bg-white   { background: var(--bg-white); }

.rounded    { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

.hidden { display: none !important; }
.show   { display: block !important; }

/* --- Scroll Fade Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE — regras base (detalhes em css/responsive.css)
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
}
