/*
Theme Name: RMS Credit Store
Theme URI: https://rmscreditstore.com
Author: RMS Credit Store
Author URI: https://rmscreditstore.com
Description: Professional Teltonika RMS management platform theme for rmscreditstore.com - IoT remote management solutions.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rmscreditstore
Tags: business, clean, light, responsive, seo-optimised
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --navy: #0A1628;
  --navy-mid: #132040;
  --teal: #0D9488;
  --teal-light: #14B8A6;
  --teal-pale: #CCFBF1;
  --accent: #F59E0B;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-light); }

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

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1.2rem; color: var(--gray-600); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
li { margin-bottom: 0.4rem; color: var(--gray-600); }

strong { font-weight: 600; color: var(--gray-800); }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 800px; }
.container--wide { max-width: 1360px; }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.section-title { margin-bottom: 1rem; }
.section-intro { font-size: 1.125rem; color: var(--gray-600); max-width: 680px; margin-bottom: 2.5rem; }
.text-center { text-align: center; }
.text-center .section-intro { margin-left: auto; margin-right: auto; }
.text-center .section-label { justify-content: center; }
.text-teal { color: var(--teal); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13,148,136,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-pale);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--off-white);
  color: var(--teal);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 68px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.2;
}
.logo-text span { color: var(--teal); }

/* Primary Nav */
#primary-nav { display: flex; align-items: center; gap: 0; }
#primary-nav ul { display: flex; list-style: none; padding: 0; margin: 0; align-items: center; gap: 0; }
#primary-nav > ul > li { position: relative; }
#primary-nav > ul > li > a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
  border-radius: 6px;
}
#primary-nav > ul > li > a:hover,
#primary-nav > ul > li.current-menu-item > a,
#primary-nav > ul > li.current-menu-parent > a { color: var(--teal); }

/* Dropdown */
#primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  padding: 0.5rem;
  list-style: none;
}
#primary-nav .menu-item:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#primary-nav .sub-menu a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  border-radius: 6px;
  transition: all var(--transition);
}
#primary-nav .sub-menu a:hover { background: var(--gray-50); color: var(--teal); }

.header-cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy);
}
.mobile-menu-toggle svg { width: 24px; height: 24px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 40%, #0F3052 100%);
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(13,148,136,0.15) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 80%, rgba(13,148,136,0.08) 0%, transparent 50%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.hero-content {}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13,148,136,0.2);
  border: 1px solid rgba(13,148,136,0.35);
  color: var(--teal-light);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: normal; color: var(--teal-light); }
.hero-lead {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.25rem;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.hero-stat {}
.hero-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-device-mockup {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 460px;
  backdrop-filter: blur(8px);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mockup-dot:nth-child(1) { background: #FF5F57; }
.mockup-dot:nth-child(2) { background: #FFBD2E; }
.mockup-dot:nth-child(3) { background: #28CA41; }
.mockup-bar-title {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}
.mockup-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.mockup-card {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0.875rem;
  border: 1px solid rgba(255,255,255,0.07);
}
.mockup-card-label { font-size: 0.7rem; color: rgba(255,255,255,0.45); margin-bottom: 0.25rem; font-family: var(--font-display); }
.mockup-card-value { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--white); }
.mockup-card-sub { font-size: 0.7rem; margin-top: 0.2rem; }
.mockup-card-sub.online { color: #34D399; }
.mockup-card-sub.warning { color: #FBBF24; }
.mockup-device-list { display: flex; flex-direction: column; gap: 0.5rem; }
.mockup-device-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 0.6rem 0.875rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.mockup-device-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mockup-device-dot.online { background: #34D399; box-shadow: 0 0 6px #34D399; }
.mockup-device-dot.offline { background: #F87171; }
.mockup-device-name { font-size: 0.8rem; color: rgba(255,255,255,0.7); font-family: var(--font-display); flex: 1; }
.mockup-device-meta { font-size: 0.7rem; color: rgba(255,255,255,0.35); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--gray-600);
}
.trust-item svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }

/* ============================================================
   SECTION SPACING
   ============================================================ */
.section { padding: 5rem 0; }
.section--sm { padding: 3.5rem 0; }
.section--lg { padding: 7rem 0; }
.section--dark { background: var(--navy); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p, .section--dark li { color: rgba(255,255,255,0.7); }
.section--dark .section-label { color: var(--teal-light); }
.section--dark .section-label::before { background: var(--teal-light); }
.section--gray { background: var(--gray-50); }
.section--teal-light { background: var(--teal-pale); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.feature-card {}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--teal); }
.feature-card h3 { margin-bottom: 0.75rem; font-size: 1.125rem; }
.feature-card p { font-size: 0.9375rem; }

/* ============================================================
   STAT BLOCKS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-block {
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}
.stat-block-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.stat-block-label { font-size: 0.875rem; color: var(--gray-600); font-weight: 500; }

/* ============================================================
   PLANS / PRICING
   ============================================================ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.plan-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--white);
  transition: all var(--transition);
  position: relative;
}
.plan-card:hover { border-color: var(--teal); box-shadow: var(--shadow-md); }
.plan-card.featured {
  border-color: var(--teal);
  background: linear-gradient(180deg, var(--teal-pale) 0%, var(--white) 40%);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  white-space: nowrap;
}
.plan-name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}
.plan-credits {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.plan-credits span { font-size: 1rem; font-weight: 400; color: var(--gray-600); }
.plan-desc { font-size: 0.875rem; color: var(--gray-600); margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-200); }
.plan-features { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 0.625rem;
}
.plan-features li::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: var(--teal-pale);
  border-radius: 50%;
  border: 2px solid var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   STEPS / HOW TO
   ============================================================ */
.steps-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2rem; }
.step-item { display: flex; gap: 1.5rem; }
.step-number {
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-content {}
.step-content h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0F3052 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(13,148,136,0.2) 0%, transparent 65%);
}
.cta-band .container { position: relative; }
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 2rem; }
.cta-band-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   INLINE INFO BLOCKS
   ============================================================ */
.info-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.info-split.reverse { }
.info-visual {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.info-visual-header {
  background: var(--navy);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.info-visual-header span {
  width: 10px; height: 10px; border-radius: 50%;
}
.info-visual-header span:nth-child(1) { background: #FF5F57; }
.info-visual-header span:nth-child(2) { background: #FFBD2E; }
.info-visual-header span:nth-child(3) { background: #28CA41; }
.info-visual-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-left: auto;
  font-style: normal;
}
.info-visual-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.terminal-line {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #34D399;
  padding: 0.5rem 0.75rem;
  background: rgba(52,211,153,0.05);
  border-left: 2px solid #34D399;
  border-radius: 0 4px 4px 0;
}
.terminal-line.dim { color: rgba(255,255,255,0.4); border-color: transparent; background: transparent; }
.terminal-line.warn { color: #FBBF24; border-color: #FBBF24; background: rgba(251,191,36,0.05); }

/* Network map visual */
.network-map-visual {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.network-map-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(13,148,136,0.15) 0%, transparent 70%);
}
.network-nodes {
  position: relative;
  width: 100%;
  height: 280px;
}
.network-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.network-node-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--teal-light);
  box-shadow: 0 0 12px var(--teal-light);
}
.network-node-dot.hub {
  width: 18px; height: 18px;
  background: var(--white);
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
}
.network-node-label { font-size: 0.65rem; color: rgba(255,255,255,0.55); font-family: var(--font-display); white-space: nowrap; }
.network-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(13,148,136,0.6), rgba(13,148,136,0.2));
  transform-origin: left center;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}
.contact-detail-icon {
  width: 40px; height: 40px;
  background: var(--teal-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; color: var(--teal); }
.contact-detail-text h4 { font-size: 0.875rem; margin-bottom: 0.2rem; }
.contact-detail-text p { font-size: 0.875rem; margin: 0; }

.form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { width: 100%; }

/* ============================================================
   BLOG / INSIGHTS
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  overflow: hidden;
  position: relative;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 1.5rem; }
.post-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.post-cat {
  background: var(--teal-pale);
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.625rem;
  border-radius: 100px;
}
.post-date { font-size: 0.8rem; color: var(--gray-400); }
.post-card h3 { font-size: 1.1rem; margin-bottom: 0.625rem; line-height: 1.3; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--teal); }
.post-card p { font-size: 0.875rem; }

/* ============================================================
   BANNER / NOTICE
   ============================================================ */
.notice-bar {
  background: var(--teal);
  padding: 0.875rem 0;
  text-align: center;
}
.notice-bar p {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}
.notice-bar a { color: var(--white); text-decoration: underline; }

/* ============================================================
   PROTOCOL PILLS
   ============================================================ */
.protocol-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.protocol-pill {
  background: var(--navy);
  color: var(--teal-light);
  font-family: var(--font-display);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(13,148,136,0.3);
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.breadcrumbs ol { display: flex; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; gap: 0.25rem; }
.breadcrumbs li { font-size: 0.8rem; color: var(--gray-400); }
.breadcrumbs li a { color: var(--gray-600); }
.breadcrumbs li a:hover { color: var(--teal); }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 0.25rem; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0F3052 100%);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(13,148,136,0.12) 0%, transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero-label {
  display: inline-block;
  background: rgba(13,148,136,0.2);
  border: 1px solid rgba(13,148,136,0.35);
  color: var(--teal-light);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 640px; font-size: 1.1rem; margin: 0; }

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-area { padding: 4rem 0 5rem; }
.content-area .entry-content > * + * { margin-top: 1.5rem; }
.content-area h2 { margin-top: 2.5rem; }
.content-area h3 { margin-top: 2rem; }

/* ============================================================
   SIDEBAR LAYOUT
   ============================================================ */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.sidebar-widget h3 { font-size: 1rem; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--gray-200); }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { margin-bottom: 0; }
.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
  color: var(--gray-700);
}
.sidebar-links a:hover { color: var(--teal); }
.sidebar-links a::before { content: '→'; color: var(--teal); font-size: 0.75rem; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
}
.footer-main {
  padding: 4rem 0 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}
.footer-logo-text span { color: var(--teal-light); }
.footer-brand p { font-size: 0.875rem; line-height: 1.65; margin-bottom: 1.5rem; }
.footer-widget h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal-light); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-copyright { font-size: 0.8rem; flex-shrink: 0; }
.footer-note {
  font-size: 0.775rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
  flex: 1;
}

/* ============================================================
   TELTONIKA PARTNER BADGE
   ============================================================ */
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  margin-top: 1rem;
}
.partner-badge-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.3;
}
.partner-badge-text strong { color: var(--white); font-size: 0.85rem; display: block; }

/* ============================================================
   ALERTS / CALLOUTS
   ============================================================ */
.callout {
  border-left: 4px solid var(--teal);
  background: var(--teal-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
}
.callout p { color: var(--gray-800); font-size: 0.9375rem; margin: 0; }
.callout strong { color: var(--teal); }

/* ============================================================
   ACCORDION / FAQ
   ============================================================ */
.accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  background: var(--white);
  border: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: background var(--transition);
}
.accordion-header:hover { background: var(--gray-50); }
.accordion-header[aria-expanded="true"] { background: var(--teal-pale); color: var(--teal); }
.accordion-icon { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.3s ease; }
.accordion-header[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 0 1.5rem 1.25rem;
  background: var(--white);
}
.accordion-body.open { display: block; }
.accordion-body p { font-size: 0.9rem; margin-bottom: 0; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.comparison-table thead { background: var(--navy); }
.comparison-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
}
.comparison-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
  color: var(--gray-700);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--gray-50); }
.comparison-table .check { color: var(--teal); }
.comparison-table .cross { color: #F87171; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .info-split { grid-template-columns: 1fr; gap: 3rem; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .hero-stats { gap: 1.5rem; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  #primary-nav { display: none; }
  #primary-nav.open { display: block; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-md); padding: 1rem; }
  #primary-nav.open ul { flex-direction: column; }
  #primary-nav.open > ul > li > a { padding: 0.75rem 1rem; display: block; border-radius: 6px; }
  .header-cta .btn:first-child { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero-device-mockup { max-width: 100%; }
  .hero-visual { display: block; }
}

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 3.5rem; }
  .card-grid, .card-grid--2, .card-grid--4, .plans-grid, .stats-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .trust-bar-inner { gap: 1.5rem; }
}

/* ============================================================
   NAV MENU - WordPress output class
   ============================================================ */
.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li > a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
  border-radius: 6px;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a,
.nav-menu > li.current-menu-parent > a {
  color: var(--teal);
}
/* Dropdown sub-menus */
.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  padding: 0.5rem;
  list-style: none;
  z-index: 200;
}
.nav-menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu .sub-menu a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-menu .sub-menu a:hover {
  background: var(--gray-50);
  color: var(--teal);
}
/* Mobile nav open state */
@media (max-width: 768px) {
  #primary-nav {
    display: none;
  }
  #primary-nav.open {
    display: block;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1rem;
    z-index: 999;
  }
  #primary-nav.open .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  #primary-nav.open .nav-menu > li > a {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
  }
  .header-cta .btn-outline {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
