/* ═══════════════════════════════════════════════════════════
   Wesgro Platform Support – Stylesheet
   Cape Town / Wesgro-inspired design
   ═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --navy: #00264D;
  --navy-dark: #001A35;
  --navy-mid: #003875;
  --teal: #007A6E;
  --teal-dark: #005C53;
  --teal-light: #E8F5F4;
  --amber: #E8820C;
  --amber-dark: #C46A08;
  --amber-light: #FEF3E2;
  --white: #FFFFFF;
  --bg: #F0F4F8;
  --surface: #FFFFFF;
  --border: #DDE3EC;
  --text-primary: #0D1B2A;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .06);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .12), 0 4px 12px rgba(0, 0, 0, .06);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: 0.22s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout Container ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ─── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: var(--white);
  overflow: hidden;
  padding-top: 48px;
  padding-bottom: 56px;
}

.header-mountain-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.header-mountain-bg svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
}

.header-inner {
  position: relative;
  z-index: 1;
}

/* Logo bar */
.logo-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

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

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.wesgro-logo .logo-mark {
  background-color: var(--teal);
  color: var(--white);
}

.skywalk-logo .logo-mark {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.logo-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
}

.logo-divider {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
  user-select: none;
}

/* Header text */
.page-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--white);
}

.page-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
}

/* ─── INTRO SECTION ──────────────────────────────────────── */
.intro-section {
  padding-block: 48px 12px;
}

.intro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.intro-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.intro-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ─── SUPPORT SECTION ────────────────────────────────────── */
.support-section {
  padding-block: 40px 56px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Support Cards */
.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.support-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: height var(--transition);
}

.card-bug::before {
  background: linear-gradient(90deg, var(--amber), #F5A623);
}

.card-task::before {
  background: linear-gradient(90deg, var(--teal), #00A896);
}

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

/* Card Icon */
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-bug .card-icon {
  background: var(--amber-light);
  color: var(--amber);
}

.card-task .card-icon {
  background: var(--teal-light);
  color: var(--teal);
}

/* Card Badge */
.card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  width: fit-content;
}

.badge-bug {
  background: var(--amber-light);
  color: var(--amber-dark);
}

.badge-task {
  background: var(--teal-light);
  color: var(--teal-dark);
}

/* Card Titles */
.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
}

/* Card Description */
.card-description {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Card Examples */
.card-examples {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  flex: 1;
}

.examples-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card-examples ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card-examples ul li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-examples ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.card-bug .card-examples ul li::before {
  background: var(--amber);
}

.card-task .card-examples ul li::before {
  background: var(--teal);
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.97rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.01em;
  margin-top: auto;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(232, 130, 12, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--amber-dark), #A85A06);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 130, 12, 0.45);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 122, 110, 0.30);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--teal-dark), #004843);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 122, 110, 0.40);
}

.btn:active {
  transform: translateY(0);
}

/* ─── PRIORITY SECTION ───────────────────────────────────── */
.priority-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 56px;
}

.section-heading {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-subheading {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 32px;
}

.priority-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.priority-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.priority-table th {
  text-align: left;
  padding: 12px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}

.priority-table th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
  width: 140px;
}

.priority-table th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.priority-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.6;
  vertical-align: middle;
}

.priority-table tbody tr:last-child td {
  border-bottom: none;
}

.priority-table tbody tr:hover td {
  background: var(--bg);
}

/* Priority badges in table */
.priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.priority-badge.p1 {
  background: #FDECEA;
  color: #C62828;
}

.priority-badge.p2 {
  background: #FFF3E0;
  color: #E65100;
}

.priority-badge.p3 {
  background: #E8F5E9;
  color: #2E7D32;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.55);
  padding-block: 36px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-text {
  font-size: 0.9rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 820px) {
  .support-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-block: 36px 44px;
  }

  .logo-bar {
    gap: 12px;
    margin-bottom: 28px;
  }

  .logo-name {
    display: none;
  }

  .intro-card {
    padding: 22px 20px;
  }

  .support-card {
    padding: 28px 24px;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .section-heading {
    font-size: 1.3rem;
  }

  .priority-table th:first-child {
    width: 100px;
  }
}

@media (max-width: 400px) {
  .container {
    padding-inline: 16px;
  }

  .btn {
    padding: 13px 18px;
    font-size: 0.92rem;
  }
}