/* ========================================
   TRIDENT QA — Custom Stylesheet
   ======================================== */

/* --- 1. CSS Variables --- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-bg: #eff6ff;
  --accent: #0ea5e9;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --bg-alt: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px -5px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- 2. Base --- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

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

::selection {
  background: var(--primary);
  color: #fff;
}

.section-padding {
  padding: 100px 0;
}

.bg-light {
  background: var(--bg-light) !important;
}

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

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- 4. Navbar --- */
.navbar {
  padding: 16px 0;
  background: transparent;
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text) !important;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.925rem;
  color: var(--text-secondary) !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-bg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg);
  transition: var(--transition);
}

.lang-switch:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.nav-cta {
  padding: 8px 20px !important;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.navbar-toggler {
  border: none;
  padding: 8px;
}
.navbar-toggler:focus { box-shadow: none; }

/* --- 5. Buttons --- */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline-dark {
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  border-width: 1.5px;
}

.btn-outline-dark:hover {
  transform: translateY(-1px);
}

.btn-outline-light {
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  border-width: 1.5px;
}

.btn-light {
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  color: var(--primary);
}
.btn-light:hover {
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* --- 6. Hero --- */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  max-width: fit-content;
}

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

.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.hero-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Graphic */
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-graphic {
  position: relative;
  height: 400px;
}

.g-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  position: absolute;
  min-width: 210px;
}

.g-card-1 { top: 30px; right: 20px; }
.g-card-2 { top: 150px; right: 60px; }
.g-card-3 { top: 270px; right: 10px; }

.g-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.g-card-icon--green { background: #dcfce7; color: #16a34a; }
.g-card-icon--blue { background: var(--primary-bg); color: var(--primary); }
.g-card-icon--orange { background: #fef3c7; color: #d97706; }

.g-card-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.g-card-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.g-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px dashed var(--border);
  opacity: 0.5;
}

.hero-decoration {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* --- 7. Services --- */
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  height: 100%;
  transition: var(--transition);
  position: relative;
}

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

.service-card--featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}

.service-popular {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: 100px;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.service-list li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 24px;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.service-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  gap: 10px;
}

/* --- 8. Why Us --- */
.why-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  height: 100%;
  text-align: center;
  transition: var(--transition);
}

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

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.why-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Metrics bar */
.metrics-bar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  box-shadow: var(--shadow-sm);
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.metric-suffix {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 6px;
}

/* --- 9. Process --- */
.process-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  height: 100%;
  transition: var(--transition);
  position: relative;
}

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

.process-phase {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 16px;
}

.process-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.process-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.process-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-list li {
  padding: 5px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.process-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* --- 10. Industries --- */
.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 16px;
  text-align: center;
  transition: var(--transition);
}

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

.industry-card i {
  font-size: 2rem;
  color: var(--primary);
}

.industry-card span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* --- 11. Results --- */
.result-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  height: 100%;
  transition: var(--transition);
}

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

.result-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.result-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}

.result-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.result-metrics {
  display: flex;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.result-metric strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.result-metric span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- 12. CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  color: #fff;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-text {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- 13. Contact --- */
.contact-form .form-control,
.contact-form .form-select {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--bg);
  transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form .form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 6px;
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Contact Info */
.contact-info {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.contact-name {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
}

.contact-role {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.contact-item i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--text);
  font-weight: 500;
}
.contact-item a:hover { color: var(--primary); }

.contact-item span {
  color: var(--text-secondary);
}

.contact-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  transition: var(--transition);
}

.contact-social a:hover {
  background: var(--primary);
  color: #fff;
}

/* --- 14. Footer --- */
.footer {
  background: var(--text);
  color: #cbd5e1;
  padding: 64px 0 0;
}

.footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer .brand-icon {
  background: var(--primary);
  color: #fff;
}

.footer .brand-text {
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
}

.footer .brand-accent {
  color: var(--primary-light);
}

.footer-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-links span {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 40px 0 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom p { margin: 0; }

.footer-lang {
  color: #94a3b8;
  font-weight: 500;
}
.footer-lang:hover { color: #fff; }

/* --- 15. Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  font-size: 1.1rem;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-3px);
}

/* --- 16. Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* --- 17. Responsive --- */
@media (max-width: 991.98px) {
  .section-padding { padding: 72px 0; }
  .hero { padding: 120px 0 60px; }
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 1.9rem; }
  .hero-stats { flex-direction: column; gap: 12px; align-items: center; margin: 0 auto; }
  .hero-stat-divider { width: 40px; height: 1px; }
  .cta-title { font-size: 1.8rem; }

  .navbar-brand { flex-shrink: 1; min-width: 0; font-size: 1.25rem; }
  .navbar-brand .brand-text { white-space: nowrap; }
  .navbar-toggler { flex-shrink: 0; margin-left: auto; min-width: 44px; min-height: 44px; }

  /* BUG-16: hamburger-to-X animation */
  .navbar-toggler .navbar-toggler-icon {
    transition: transform 0.3s ease;
  }
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    transform: rotate(90deg);
  }

  .navbar-collapse {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
  }

  .nav-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    justify-content: center;
  }

  /* BUG-10: reduce hero decoration on tablet/mobile */
  .hero-decoration {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 767.98px) {
  .section-padding { padding: 56px 0; }
  .hero { padding: 110px 0 48px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .section-title { font-size: 1.6rem; }
  .hero-stats { gap: 10px; padding: 16px 20px; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .cta-banner { padding: 56px 0; }
  .cta-title { font-size: 1.5rem; }
  .cta-actions { flex-direction: column; align-items: center; }
  .metrics-bar { padding: 24px 16px; }
  .metric-number { font-size: 2rem; }
  .metric-suffix { font-size: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* BUG-09: back-to-top button positioning on mobile */
  .back-to-top { bottom: 20px; right: 20px; }

  /* BUG-20: contact person gap */
  .contact-person {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* BUG-10: hide hero decoration on mobile */
  .hero-decoration { display: none; }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: 1.75rem; }
  .section-title { font-size: 1.4rem; }

  /* BUG-12: extra-small adjustments */
  .section-padding { padding: 40px 0; }
  .hero { padding: 100px 0 40px; }
  .hero-subtitle { font-size: 1rem; }

  /* BUG-17: reduce brand font on tiny screens */
  .navbar-brand { font-size: 1.1rem; }

  /* BUG-19: tighter form inputs on tiny phones */
  .form-control, .form-select { padding: 10px 14px; font-size: 0.9rem; }

  /* BUG-13: result card title sizing */
  .result-title { font-size: 1.05rem; }

  /* BUG-11: metric numbers on tiny phones */
  .metric-number { font-size: 1.75rem; }
  .metric-suffix { font-size: 1.25rem; }
  .metric-label { font-size: 0.8rem; }
}
