/* ============================================================
   Analytics In Teal - Main Stylesheet
   
   Color palette derived from the teal logo:
   - Primary:    #2DD4BF (bright teal)
   - Dark:       #0D9488 (deep teal)
   - Darkest:    #115E59 (navy teal)
   - Light:      #CCFBF1 (pale teal)
   - Accent:     #5EEAD4 (light teal)
   - Background: #F0FDFA (near-white teal)
   
   "Brick / Lego" design approach:
   - Chunky box-shadows for a raised 3D look
   - Bold rounded corners
   - Geometric grid layouts
   - Stud-like decorative circles
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  --color-primary:    #2DD4BF;
  --color-dark:       #0D9488;
  --color-darkest:    #115E59;
  --color-light:      #CCFBF1;
  --color-accent:     #5EEAD4;
  --color-bg:         #F0FDFA;
  --color-white:      #FFFFFF;
  --color-text:       #1E293B;
  --color-text-light: #64748B;
  --color-shadow:     rgba(13, 148, 136, 0.25);

  /* Brick-style design tokens */
  --radius:       12px;
  --radius-lg:    20px;
  --shadow-brick: 0 6px 0 var(--color-dark), 0 8px 20px var(--color-shadow);
  --shadow-card:  0 4px 0 var(--color-dark), 0 6px 16px var(--color-shadow);
  --shadow-small: 0 3px 0 var(--color-dark), 0 4px 10px var(--color-shadow);
  --shadow-soft:  0 2px 12px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary);
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--color-white);
}

.text-center {
  text-align: center;
}

.text-teal {
  color: var(--color-primary);
}

/* --- Brick "Stud" Decorative Element ---
   Small circles that mimic LEGO studs. 
   Add class "brick-stud" on a pseudo-element parent. */
.brick-stud::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 2px 0 var(--color-dark);
  margin-right: 8px;
  vertical-align: middle;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-darkest);
}

h1 { font-size: 2.8rem; margin-bottom: 16px; }
h2 { font-size: 2rem;   margin-bottom: 12px; }
h3 { font-size: 1.4rem; margin-bottom: 8px;  }
h4 { font-size: 1.1rem; margin-bottom: 6px;  }

p {
  margin-bottom: 16px;
  color: var(--color-text-light);
}

.lead {
  font-size: 1.2rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons (Brick-style with 3D bottom edge) --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
}

/* Primary button: teal brick */
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-small);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--color-dark), 0 7px 14px var(--color-shadow);
  color: var(--color-white);
}

/* "Pressed" effect on click */
.btn--primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--color-dark), 0 2px 6px var(--color-shadow);
}

/* Secondary / outline button */
.btn--outline {
  background: transparent;
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--color-light);
  color: var(--color-darkest);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  height: var(--header-height);
  box-shadow: var(--shadow-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo area */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-darkest);
}

.logo img,
.logo svg {
  height: 42px;
  width: auto;
}

.logo:hover {
  color: var(--color-darkest);
}

/* Desktop navigation */
.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--color-text);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--color-light);
  color: var(--color-darkest);
}

/* Mobile hamburger button */
.nav-toggle {
  display: none; /* shown via media query */
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-darkest);
  border-radius: 2px;
  position: absolute;
  left: 6px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle span:nth-child(1) { top: 8px;  }
.nav-toggle span:nth-child(2) { top: 16px; }
.nav-toggle span:nth-child(3) { top: 24px; }

/* Hamburger open state */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--color-darkest) 0%, var(--color-dark) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* Decorative brick pattern in hero background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.06) 8px, transparent 8px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3.2rem;
  margin-bottom: 20px;
  position: relative;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   CARDS (Brick-style)
   ============================================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 0 var(--color-dark), 0 12px 24px var(--color-shadow);
}

/* Card icon — circular brick stud style */
.card-icon {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 3px 0 var(--color-dark);
  font-size: 1.6rem;
}

.card h3 {
  color: var(--color-darkest);
}

.card p {
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.grid {
  display: grid;
  gap: 32px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   SECTION HEADER (title + subtitle)
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

/* Decorative underline block */
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 3px;
  margin: 12px auto 0;
  box-shadow: 0 2px 0 var(--color-dark);
}

/* ============================================================
   STATS ROW (numbers / metrics)
   ============================================================ */
.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 48px 0;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-top: 6px;
}

/* ============================================================
   TESTIMONIAL / QUOTE BLOCK
   ============================================================ */
.quote-block {
  background: var(--color-darkest);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-brick);
  position: relative;
}

.quote-block::before {
  content: '\201C'; /* left double quote */
  font-size: 5rem;
  color: var(--color-primary);
  position: absolute;
  top: 10px;
  left: 24px;
  line-height: 1;
  opacity: 0.5;
}

.quote-block p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 16px;
  position: relative;
}

.quote-block cite {
  color: var(--color-accent);
  font-style: normal;
  font-weight: 600;
}

/* ============================================================
   CASE STUDY CARDS
   ============================================================ */
.case-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 0 var(--color-dark), 0 12px 24px var(--color-shadow);
}

.case-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.case-card-body {
  padding: 24px;
}

.case-card-body h3 {
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  background: var(--color-light);
  color: var(--color-darkest);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ============================================================
   TEAM MEMBER CARDS
   ============================================================ */
.team-card {
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 0 var(--color-dark), 0 12px 24px var(--color-shadow);
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius);
  background: var(--color-primary);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-white);
  box-shadow: 0 3px 0 var(--color-dark);
}

.team-card h4 {
  color: var(--color-darkest);
}

.team-card .role {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-light);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Contact info list */
.contact-info {
  list-style: none;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--color-text-light);
}

.contact-info .icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 0 var(--color-dark);
  font-size: 1.1rem;
}

/* ============================================================
   POWER BI EMBED PLACEHOLDER
   (Ready for future embedded reports)
   ============================================================ */
.pbi-embed-container {
  width: 100%;
  min-height: 500px;
  background: var(--color-white);
  border: none;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 1.1rem;
  overflow: hidden;
}

/* When Power BI SDK injects an iframe, make it fill the container */
.pbi-embed-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  outline: none !important;
}

/* Clip the 1px Power BI visual border that renders inside the iframe */
#pbi-portal-embed {
  clip-path: inset(1px);
}

/* Show dashed border only when container has a placeholder message */
.pbi-embed-container:has(.pbi-message) {
  border: 3px dashed var(--color-light);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-darkest);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
  margin-top: auto;
}

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

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

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-brick);
  position: relative;
  overflow: hidden;
}

/* Stud pattern overlay */
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.08) 6px, transparent 6px);
  background-size: 36px 36px;
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--color-white);
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 550px;
  margin: 0 auto 24px;
  position: relative;
}

.cta-banner .btn--primary {
  background: var(--color-white);
  color: var(--color-darkest);
  box-shadow: 0 3px 0 rgba(0,0,0,0.15);
  position: relative;
}

.cta-banner .btn--primary:hover {
  box-shadow: 0 5px 0 rgba(0,0,0,0.15), 0 7px 14px rgba(0,0,0,0.1);
}

/* ============================================================
   VALUE / PROCESS STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 4px 0 var(--color-dark);
}

/* Connector line between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 3px;
  background: var(--color-light);
  border-radius: 2px;
}

/* ============================================================
   TECHNOLOGY BADGES
   ============================================================ */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tech-badge {
  background: var(--color-white);
  border: 2px solid var(--color-light);
  border-radius: var(--radius);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-darkest);
  box-shadow: 0 2px 0 var(--color-light);
  transition: transform 0.15s, border-color 0.15s;
}

.tech-badge:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-card {
  padding: 40px;
}

.login-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.demo-hint {
  margin-top: 24px;
  padding: 12px 16px;
  background: var(--color-light);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--color-darkest);
  text-align: center;
}

.demo-hint code {
  background: var(--color-white);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Nav login/portal button (small, inline) */
.btn--nav {
  padding: 8px 20px !important;
  font-size: 0.9rem !important;
  margin-left: 4px;
}

/* ============================================================
   CUSTOMER PORTAL
   ============================================================ */

/* Portal header banner */
.portal-header {
  background: linear-gradient(135deg, var(--color-darkest) 0%, var(--color-dark) 100%);
  padding: 32px 0;
  position: relative;
  overflow: hidden;
}

/* Stud pattern on portal header */
.portal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.05) 6px, transparent 6px);
  background-size: 36px 36px;
  pointer-events: none;
}

.portal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.portal-welcome {
  display: flex;
  align-items: center;
  gap: 20px;
}

.portal-avatar {
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  box-shadow: 0 3px 0 rgba(0,0,0,0.2);
}

.portal-welcome h1 {
  color: var(--color-white);
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.portal-welcome p {
  color: rgba(255,255,255,0.7);
  margin: 0;
  font-size: 0.9rem;
}

/* Portal stat cards (top KPI row) */
.portal-stat-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s;
}

.portal-stat-card:hover {
  transform: translateY(-2px);
}

.portal-stat-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.portal-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-darkest);
  line-height: 1.2;
}

.portal-stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* Project items */
.portal-project {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-light);
}

.portal-project:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.portal-project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.portal-project h4 {
  margin-bottom: 0;
}

.portal-project p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* Progress bar */
.portal-progress {
  height: 8px;
  background: var(--color-light);
  border-radius: 4px;
  overflow: hidden;
}

.portal-progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.portal-progress-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 6px;
}

/* Activity feed */
.portal-activity {
  list-style: none;
}

.portal-activity li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-light);
}

.portal-activity li:last-child {
  border-bottom: none;
}

.portal-activity-dot {
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 1px 0 var(--color-dark);
}

.portal-activity-time {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* Profile table */
.portal-profile-table {
  width: 100%;
  border-collapse: collapse;
}

.portal-profile-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-light);
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.portal-profile-table td:first-child {
  width: 140px;
  color: var(--color-darkest);
}

.portal-profile-table tr:last-child td {
  border-bottom: none;
}

/* Support tickets */
.portal-ticket {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-light);
}

.portal-ticket:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.portal-ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.portal-ticket-id {
  font-family: monospace;
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.9rem;
}

/* ============================================================
   PORTAL SUB-NAVIGATION
   Secondary nav bar for portal pages (Dashboard / Reports / Settings)
   ============================================================ */
.portal-subnav {
  background: var(--color-white);
  border-bottom: 2px solid var(--color-light);
}

.portal-subnav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0;
}

.portal-subnav a {
  display: block;
  padding: 12px 20px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-light);
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.portal-subnav a:hover {
  color: var(--color-darkest);
}

.portal-subnav a.active {
  color: var(--color-darkest);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

/* ============================================================
   POWER BI EMBED STATES
   Loading, error, and placeholder messages inside embed containers
   ============================================================ */
.pbi-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
  color: var(--color-text-light);
  padding: 24px;
}

.pbi-message-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.pbi-message p {
  margin-bottom: 8px;
}

.pbi-message--error {
  color: #991B1B;
  background: #FEF2F2;
  border-radius: var(--radius);
  border: 1px solid #FECACA;
}

/* Loading spinner */
.pbi-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid var(--color-light);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: pbi-spin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes pbi-spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   SETTINGS PAGE
   ============================================================ */
.settings-section {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}

.settings-section h3 {
  margin-bottom: 4px;
}

.settings-section > p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.settings-warning {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #92400E;
  margin-bottom: 24px;
}

/* Production mode info banner */
.settings-info {
  background: #D1FAE5;
  border: 1px solid #34D399;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #065F46;
  margin-bottom: 24px;
}

.settings-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.settings-status {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.settings-status--success {
  background: #D1FAE5;
  color: #065F46;
}

.settings-status--info {
  background: var(--color-light);
  color: var(--color-darkest);
}

.settings-test-result {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.7;
}

.settings-test-result--success {
  background: #D1FAE5;
  color: #065F46;
}

.settings-test-result--error {
  background: #FEF2F2;
  color: #991B1B;
}

.settings-test-result--info {
  background: var(--color-light);
  color: var(--color-darkest);
}

/* ============================================================
   REPORTS BROWSER PAGE
   ============================================================ */
.reports-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.reports-header h2 {
  margin-bottom: 4px;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.report-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.report-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 0 var(--color-dark), 0 12px 24px var(--color-shadow);
}

.report-card-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.report-card h4 {
  color: var(--color-darkest);
  margin-bottom: 6px;
  word-break: break-word;
}

.report-card-id {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--color-text-light);
  word-break: break-all;
}

/* Report viewer panel */
.report-viewer {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-brick);
  overflow: hidden;
  margin-bottom: 40px;
}

.report-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--color-darkest);
}

.report-viewer-header h3 {
  color: var(--color-white);
  margin-bottom: 0;
}

.report-embed-container {
  width: 100%;
  height: 600px;
  background: var(--color-bg);
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .reports-grid { grid-template-columns: repeat(2, 1fr); }
  .report-embed-container { height: 450px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 2.4rem; }
  .section { padding: 48px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { gap: 32px; }

  /* Show mobile nav toggle */
  .nav-toggle { display: block; }

  /* Slide-down mobile menu */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 16px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .cta-banner { padding: 32px 20px; }

  /* Portal responsive */
  .portal-header .container { flex-direction: column; gap: 16px; text-align: center; }
  .portal-welcome { flex-direction: column; gap: 12px; }
  .portal-welcome h1 { font-size: 1.3rem; }
  .portal-subnav ul { justify-content: center; }
  .reports-grid { grid-template-columns: 1fr; }
  .report-embed-container { height: 350px; }
  .settings-actions { flex-direction: column; }
  .settings-actions .btn { width: 100%; }
}
