/* ==========================================================================
   DESIGN SYSTEM & BRAND STYLESHEET - RONIX TECH
   ========================================================================== */

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

:root {
  /* Brand Colors */
  --primary-green: #75b81f;
  --primary-green-hover: #63a019;
  --primary-green-glow: rgba(117, 184, 31, 0.25);
  
  /* Fallbacks for backwards compatibility */
  --primary-red: var(--primary-green);
  --primary-red-hover: var(--primary-green-hover);
  --primary-red-glow: var(--primary-green-glow);
  
  --dark-slate: #2C3539;
  --dark-charcoal: #181C1E;
  --bg-dark: #0F1214;
  --bg-card-dark: #1E2326;
  --border-dark: #2C3539;
  
  --bg-light: #FCFCFC;
  --bg-card-light: #FFFFFF;
  --border-light: #E5E7EB;
  
  /* Text colors */
  --text-dark: #111827;
  --text-light: #F9FAFB;
  --text-muted-dark: #6B7280;
  --text-muted-light: #9CA3AF;
  
  /* Priminer accent */
  --priminer-green: #75b81f;
  --priminer-green-glow: rgba(117, 184, 31, 0.25);

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacers */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* UI properties */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-green: 0 10px 30px rgba(117, 184, 31, 0.2);
  --shadow-red: var(--shadow-green);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-light);
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section {
  padding: var(--space-lg) 0;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5, .section-dark h6 {
  color: var(--text-light);
}

/* Grid helper */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.3rem 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
  background-color: rgba(15, 18, 20, 0.15); /* Very light dark glass tint for contrast over video */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Default state: white text on dark background video/banner */
.header .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  position: relative;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.9);
}

.header .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-green);
  transition: var(--transition);
}

.header .nav-link:hover {
  color: #fff;
}

.header .nav-link:hover::after,
.header .nav-link.active::after {
  width: 100%;
}

.header .nav-link.active {
  color: var(--primary-green);
  font-weight: 700;
}

/* Priminer specific menu item link (lime on dark hero) */
.header .nav-link-priminer {
  color: var(--priminer-green) !important;
  font-weight: 700;
}
.header .nav-link-priminer::after {
  background-color: var(--priminer-green);
}
.header .nav-link-priminer:hover {
  color: var(--priminer-green) !important;
  text-shadow: 0 0 10px rgba(139, 197, 63, 0.3);
}

/* Call to Action button in menu */
.header .nav-cta {
  background-color: var(--primary-green);
  color: #fff !important;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: 0 4px 10px var(--primary-green-glow);
}
.header .nav-cta:hover {
  background-color: var(--primary-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px var(--primary-green-glow);
}
.header .nav-cta::after {
  display: none;
}

/* Show light logo, hide dark logo by default */
.header .logo .logo-light {
  display: block;
  height: 2.8rem;
  transition: var(--transition);
}
.header .logo .logo-dark {
  display: none;
  height: 2.8rem;
  transition: var(--transition);
}

/* Scrolled state: White background, dark text links */
.header.scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header.scrolled .nav-link {
  color: var(--text-dark);
}

.header.scrolled .nav-link:hover {
  color: var(--primary-green);
}

.header.scrolled .nav-link.active {
  color: var(--primary-green);
}

.header.scrolled .nav-link-priminer {
  color: #598524 !important; /* legible dark green on white bg */
}
.header.scrolled .nav-link-priminer::after {
  background-color: #598524;
}

/* Swap logos in scrolled state */
.header.scrolled .logo .logo-light {
  display: none;
}
.header.scrolled .logo .logo-dark {
  display: block;
}

/* Hamburger default state (white on dark background) */
.header .hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  color: #fff;
  z-index: 1100;
}

.header .hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin-bottom: 5px;
  transition: var(--transition);
  border-radius: 2px;
}

/* Scrolled state hamburger */
.header.scrolled .hamburger {
  color: var(--text-dark);
}
.header.scrolled .hamburger span {
  background-color: var(--text-dark);
}

/* Always make active mobile menu toggle black */
.header .hamburger.active span {
  background-color: var(--text-dark) !important;
}

.header .hamburger span:last-child {
  margin-bottom: 0;
}

.header .hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.header .hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header .hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

@media (max-width: 991px) {
  .header .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-card-light);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    transition: var(--transition);
    z-index: 1050;
    overflow-y: auto;
  }

  /* Force links to be dark and legible inside mobile menu */
  .header .nav-menu .nav-link {
    color: var(--text-dark) !important;
  }
  .header .nav-menu .nav-link-priminer {
    color: #598524 !important;
  }
  .header .nav-menu .nav-link:hover {
    color: var(--primary-green) !important;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.1rem;
  }
  
  .nav-cta {
    display: inline-block;
    margin-top: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary-green);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-green-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-dark);
  border-color: var(--dark-slate);
}

.btn-secondary:hover {
  background-color: var(--dark-slate);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background-color: #fff;
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background-color: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-dark {
  background-color: var(--dark-slate);
  color: #fff;
}

.btn-dark:hover {
  background-color: var(--dark-charcoal);
  transform: translateY(-2px);
}

.btn-priminer {
  background-color: var(--priminer-green);
  color: #fff;
}
.btn-priminer:hover {
  background-color: #7ab332;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--priminer-green-glow);
}

.btn-outline-white {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

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

/* ==========================================================================
   HERO / BILLBOARD SECTIONS
   ========================================================================== */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 140px; /* Pushes content down to safely clear the fixed header */
  padding-bottom: 60px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 120px; /* Slightly tighter top spacing on mobile but still clears header */
    min-height: auto;
    padding-bottom: 50px;
  }
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 18, 20, 0.9) 0%, rgba(15, 18, 20, 0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  color: #fff; /* Explicitly white to override global dark headings style */
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.85), 0 2px 4px rgba(0, 0, 0, 0.9); /* Shadows to pop text out of video details */
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-title span {
  color: #8eed15; /* Bright accent color for hero highlights */
}

.hero-title span.priminer-text {
  color: var(--priminer-green);
}

.hero-lead {
  font-size: 1.15rem;
  color: #F3F4F6; /* Brighter shade of light gray for better readability */
  margin-bottom: 2.5rem;
  max-width: 650px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Standard Inner Page Hero */
.page-hero {
  position: relative;
  padding: 8rem 0 4rem;
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-bottom: 1px solid var(--border-dark);
  overflow: hidden;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(117, 184, 31, 0.15) 0%, rgba(0, 0, 0, 0) 60%),
              linear-gradient(rgba(15, 18, 20, 0.92), rgba(15, 18, 20, 0.92));
  z-index: 0;
}

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

.page-hero h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .page-hero h1 {
    font-size: 3.5rem;
  }
}

.page-hero-breadcrumbs {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-muted-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-hero-breadcrumbs a:hover {
  color: var(--primary-green);
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */

/* Division Cards */
.card-division {
  background-color: var(--bg-card-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card-division::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--dark-slate);
  transition: var(--transition);
}

.card-division:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(117, 184, 31, 0.15);
}

.card-division:hover::before {
  background-color: var(--primary-green);
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(117, 184, 31, 0.05);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  transition: var(--transition);
}

.card-division:hover .card-icon {
  background-color: var(--primary-green);
  color: #fff;
  box-shadow: var(--shadow-green);
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.card-desc {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.card-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-green);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link:hover {
  gap: 0.8rem;
}

/* Featured / Service Highlight Cards in Dark Theme */
.card-featured-dark {
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.card-featured-dark:hover {
  transform: translateY(-5px);
  border-color: var(--primary-green);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-featured-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card-featured-dark:hover .card-featured-img img {
  transform: scale(1.05);
}

.card-featured-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 18, 20, 0.8), transparent);
}

.card-featured-content {
  padding: 1.5rem;
}

.card-featured-content h4 {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.card-featured-content p {
  color: var(--text-muted-light);
  font-size: 0.9rem;
}

/* ==========================================================================
   TYPICAL CONTENT BLOCKS
   ========================================================================== */

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}

.section-header h2 {
  font-size: 2.25rem;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-green);
}

.section-header p {
  color: var(--text-muted-dark);
  font-size: 1.05rem;
}

.section-dark .section-header p {
  color: var(--text-muted-light);
}

/* Checklist items */
.checklist {
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-green);
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1;
}

.section-dark .checklist li::before {
  color: var(--primary-green);
}

/* Split layout content blocks */
.split-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

@media (min-width: 992px) {
  .split-layout {
    flex-direction: row;
  }
  .split-layout > * {
    flex: 1;
  }
}

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.section-dark .split-image {
  border-color: var(--border-dark);
}

.split-content h3 {
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.split-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted-dark);
}

.section-dark .split-content p {
  color: var(--text-muted-light);
}

/* ==========================================================================
   TABS SYSTEM
   ========================================================================== */

.tabs-container {
  margin-top: var(--space-md);
}

.tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 1px;
  list-style: none;
  margin-bottom: var(--space-md);
}

.section-dark .tabs-list {
  border-bottom-color: var(--border-dark);
}

.tab-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted-dark);
  position: relative;
  transition: var(--transition);
}

.section-dark .tab-btn {
  color: var(--text-muted-light);
}

.tab-btn:hover {
  color: var(--primary-green);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-green);
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--primary-green);
}

.tab-btn.active::after {
  width: 100%;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   TABLES & PARAMETERS
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background-color: #fff;
}

.section-dark .table-responsive {
  border-color: var(--border-dark);
  background-color: var(--bg-card-dark);
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.tech-table th, .tech-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.section-dark .tech-table th, .section-dark .tech-table td {
  border-bottom-color: var(--border-dark);
}

.tech-table thead th {
  font-family: var(--font-heading);
  font-weight: 700;
  background-color: #f9fafb;
  color: var(--text-dark);
  font-size: 1rem;
}

.section-dark .tech-table thead th {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

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

.tech-table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.section-dark .tech-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.tech-table tbody tr:hover {
  background-color: rgba(117, 184, 31, 0.02);
}

.section-dark .tech-table tbody tr:hover {
  background-color: rgba(117, 184, 31, 0.05);
}

/* Header rows inside table body */
.tech-table tr.table-group-header td {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  background-color: #f3f4f6;
  color: var(--text-dark);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.section-dark .tech-table tr.table-group-header td {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.contact-box {
  background-color: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem var(--space-md);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background-color: #fff;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px var(--primary-green-glow);
}

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

/* ==========================================================================
   TESTIMONIALS & TRUST
   ========================================================================== */

.testimonial {
  background-color: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  position: relative;
}

.section-dark .testimonial {
  background-color: var(--bg-card-dark);
  border-color: var(--border-dark);
  box-shadow: none;
}

.testimonial-text {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted-dark);
}

.section-dark .testimonial-text {
  color: var(--text-muted-light);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 45px;
  height: 45px;
  background-color: var(--primary-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
}

.testimonial-meta h5 {
  font-size: 1rem;
  margin-bottom: 0.1rem;
  color: var(--text-dark);
}

.section-dark .testimonial-meta h5 {
  color: var(--text-light);
}

.testimonial-meta span {
  font-size: 0.85rem;
  color: var(--text-muted-dark);
}

.section-dark .testimonial-meta span {
  color: var(--text-muted-light);
}

/* Client logos slider strip */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 2rem 0;
  opacity: 0.7;
}

.client-logos img {
  max-height: 45px;
  filter: grayscale(100%);
  transition: var(--transition);
}

.client-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background-color: #111416;
  color: var(--text-muted-light);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border-dark);
}

.footer h3 {
  color: #fff;
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-green);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 2fr;
  }
}

.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-contact li i,
.footer-contact li > span:first-child,
.footer-contact-icon {
  color: var(--primary-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(117, 184, 31, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  transition: var(--transition);
}

.footer-contact li:hover .footer-contact-icon,
.footer-contact li:hover > span:first-child {
  background-color: var(--primary-green);
  color: #fff;
}

.footer-contact li:hover .footer-contact-icon svg,
.footer-contact li:hover > span:first-child svg {
  stroke: #fff;
}

.footer-contact-icon svg {
  stroke: var(--primary-green);
  transition: var(--transition);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-muted-light);
}

.footer-socials a:hover {
  background-color: var(--primary-green);
  color: #fff;
  transform: translateY(-3px);
}

/* ==========================================================================
   MODAL / LIGHTBOX
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.85);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal-content-box {
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  max-width: 90%;
  width: 800px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

.modal-body {
  padding: 2.5rem;
  color: #fff;
}

.modal-body img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  background-color: #fff; /* White background to make transparent dark drawings/graphs legible */
  padding: 1.5rem; /* Comfort spacing for charts inside the modal canvas */
}

/* ==========================================================================
   PRODUCT SHOWN GRID FOR PRIMINER
   ========================================================================== */

.card-product {
  background-color: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card-product:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--priminer-green-glow);
}

.card-product-img {
  height: 220px;
  overflow: hidden;
  background-color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card-product-img img {
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.card-product:hover .card-product-img img {
  transform: scale(1.04);
}

.card-product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-product-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--priminer-green);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.card-product-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card-product-desc {
  color: var(--text-muted-dark);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-product-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-spec-snippet {
  font-size: 0.8rem;
  color: var(--text-muted-dark);
}

.product-spec-snippet strong {
  color: var(--text-dark);
}

.btn-product-view {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--priminer-green);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-product:hover .btn-product-view {
  color: #7ab332;
  gap: 0.5rem;
}

/* ==========================================================================
   PRODUCT FILTER STYLES
   ========================================================================== */

.filter-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  border: 1px solid var(--border-light);
  background-color: transparent;
  color: var(--text-muted-light);
  cursor: pointer;
  transition: var(--transition);
}

.section-dark .filter-btn {
  border-color: var(--border-dark);
  color: var(--text-muted-light);
}

.filter-btn:hover {
  border-color: var(--priminer-green);
  color: var(--priminer-green);
}

.filter-btn.active {
  background-color: var(--priminer-green);
  border-color: var(--priminer-green);
  color: #fff !important;
  box-shadow: 0 4px 12px var(--priminer-green-glow);
}

.card-product.hidden {
  display: none !important;
}

.card-product.show-animate {
  animation: cardFadeIn 0.4s ease forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-top: 2px solid var(--primary-green);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  padding: 1.25rem 0;
  animation: slideUp 0.4s ease-out;
}

.cookie-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cookie-banner-container {
    flex-direction: row;
  }
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted-light);
  line-height: 1.4;
}

.cookie-banner-text p strong {
  color: #fff;
  font-size: 0.95rem;
}

.cookie-banner-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner-fadeout {
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s ease;
}

/* ==========================================================================
   FLOATING SIDE TAB / BOČNÍ OUŠKO "POPTAT"
   ========================================================================== */

.side-inquiry-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary-green);
  color: #ffffff !important;
  padding: 1.1rem 0.7rem;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none !important;
  box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  cursor: pointer;
}

.side-inquiry-btn:hover {
  background-color: var(--primary-green-hover);
  padding-right: 0.95rem;
  box-shadow: -6px 6px 25px var(--primary-green-glow);
}

.side-inquiry-btn svg {
  transform: rotate(90deg);
  margin-bottom: 0.3rem;
}

@media (max-width: 576px) {
  .side-inquiry-btn {
    padding: 0.9rem 0.55rem;
    font-size: 0.8rem;
  }
}

/* Offcanvas Side Drawer Form */
.offcanvas-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.offcanvas-drawer.is-active {
  visibility: visible;
  opacity: 1;
}

.offcanvas-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.offcanvas-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 450px;
  height: 100%;
  background-color: #161a1d;
  border-left: 3px solid var(--primary-green);
  padding: 2.5rem 2rem;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fff;
}

.offcanvas-drawer.is-active .offcanvas-content {
  transform: translateX(0);
}

.offcanvas-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.offcanvas-close:hover {
  opacity: 1;
  transform: scale(1.1);
  color: var(--primary-green);
}

/* Offcanvas form elements high-contrast readable styling */
.offcanvas-content .form-label {
  color: #f8fafc !important; /* Pure white readable text */
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.offcanvas-content .form-control {
  background-color: #22272c;
  border: 1px solid #3a424a;
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.offcanvas-content .form-control::placeholder {
  color: #94a3b8;
}

.offcanvas-content .form-control:focus {
  background-color: #282e34;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(117, 184, 31, 0.25);
  outline: none;
}

/* Mobile responsive drawer overlay adjustment */
@media (max-width: 576px) {
  .offcanvas-content {
    max-width: 100%;
    border-left: none;
    padding: 2rem 1.25rem 3rem 1.25rem;
  }
  .offcanvas-close {
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    padding: 0.5rem;
  }
}

/* Media Slider Component (Arrows + Dots Gallery) */
.media-slider {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: #0f1214;
  border: 1px solid var(--border-dark);
}
.media-slider-display {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  background-color: #000;
  overflow: hidden;
}
.media-slider-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.media-slider-item.active {
  display: block;
}

/* Slider Arrows */
.media-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(15, 18, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
  user-select: none;
}
.media-slider-arrow:hover {
  background: var(--primary-green);
  color: #000;
  border-color: var(--primary-green);
  transform: translateY(-50%) scale(1.1);
}
.media-slider-prev {
  left: 12px;
}
.media-slider-next {
  right: 12px;
}

/* Slider Dots & Badge */
.media-slider-controls {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.65);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  z-index: 10;
}
.media-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  padding: 0;
}
.media-slider-dot.active {
  background: var(--primary-green);
  transform: scale(1.3);
}
.media-slider-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
}


