/* ============================================================
   Neterix — Main Stylesheet
   Colour scheme: #ff3366 accent, #232323 text, #1a2336 dark nav
   ============================================================ */

:root {
  --accent:       #ff3366;
  --accent-dark:  #cc1f4a;
  --dark:         #1a2336;
  --dark-alt:     #243050;
  --text:         #232323;
  --text-muted:   #565656;
  --bg:           #ffffff;
  --bg-light:     #f5f5f7;
  --bg-dark:      #1a2336;
  --border:       #e8e8e8;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:       6px;
  --radius-lg:    12px;
  --shadow:       0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
  --transition:   0.25s ease;
  --max-width:    1160px;
}

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

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

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

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

address { font-style: normal; }

/* ============================================================
   Typography
   ============================================================ */

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

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

/* ============================================================
   Layout
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-light { background: var(--bg-light); }
.section-dark  { background: var(--dark); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p, .section-dark address p { color: rgba(255,255,255,0.8); }
.section-accent { background: var(--accent); color: #fff; padding: 4rem 0; }
.section-accent h2 { color: #fff; }
.section-accent p  { color: rgba(255,255,255,0.9); }

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

/* ============================================================
   Navbar
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #f1f2f4;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.14);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity var(--transition);
}

.navbar-brand:hover .navbar-logo {
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 0.5rem 0.9rem;
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(255,51,102,0.06);
}

.nav-link.active { color: var(--accent); background: rgba(255,51,102,0.08); }

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown-arrow { font-size: 0.7rem; margin-left: 2px; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  background: transparent;
  min-width: 220px;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  inset: 8px 0 0;
  background: #f1f2f4;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.08);
  z-index: -1;
}

.dropdown-menu li a {
  display: block;
  padding: 0.65rem 1.1rem;
  color: var(--dark);
  font-size: 0.88rem;
  transition: background var(--transition), color var(--transition);
}

.dropdown-menu li a:hover {
  background: rgba(255,51,102,0.07);
  color: var(--accent);
}

.has-dropdown:hover .dropdown-menu { display: block; }

.dropdown-divider {
  height: 1px;
  margin: 6px 10px;
  background: rgba(0,0,0,0.08);
}

.dropdown-label {
  padding: 0.4rem 1.1rem 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(26,35,54,0.5);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.btn-white:hover {
  background: #f0f0f0;
  color: var(--accent-dark);
}

.download-size {
  font-weight: 400;
  opacity: 0.75;
  font-size: 0.85em;
}

.download-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0.75rem 1.25rem;
  margin: 1.5rem 0;
}

@media (max-width: 600px) {
  .download-platform-grid {
    grid-template-columns: repeat(2, auto);
  }
}

.download-platform-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.download-platform-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #010409;
  background-image: url('../images/hero-binary.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,16,30,0.82) 0%, rgba(26,35,54,0.74) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(255,51,102,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(255,51,102,0.08) 0%, transparent 50%);
}

/* Grid overlay texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ============================================================
   Page Hero (inner pages)
   ============================================================ */

.page-hero {
  background: linear-gradient(135deg, #1a2336 0%, #243050 100%);
  color: #fff;
  padding: 7rem 0 3.5rem;
  margin-top: 66px;
  position: relative;
}

.page-hero h1 { color: #fff; }

.page-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.75rem;
  max-width: 600px;
}

/* Image background variant */
.page-hero--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 16, 30, 0.82) 0%,
    rgba(26, 35, 54, 0.75) 100%
  );
}

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

/* ============================================================
   Page Content
   ============================================================ */

.page-content { padding: 4rem 0; }

.page-content h2 { margin: 2rem 0 1rem; color: var(--dark); }
.page-content h3 { margin: 1.5rem 0 0.75rem; color: var(--dark); }

.page-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content ul li { margin-bottom: 0.4rem; }

/* ============================================================
   Section Header
   ============================================================ */

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header h2 { margin-bottom: 0.75rem; }

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

.section-dark .section-header p { color: rgba(255,255,255,0.7); }

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================================
   Services Grid
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

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

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--dark);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   Two Column Layout
   ============================================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col-text h2 { color: #fff; margin-bottom: 1.25rem; }
.two-col-text p  { color: rgba(255,255,255,0.8); margin-bottom: 1rem; }
.two-col-text .btn { margin-top: 0.5rem; }

.two-col-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

/* ============================================================
   Image-right / image-left shortcode layouts
   ============================================================ */

.image-right-layout {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

/* Image on the left: swap column order */
.image-left-layout {
  grid-template-columns: 500px 1fr;
}

.image-right-aside img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* frame="false" on the shortcode: no box, for screenshots with their own shadow */
.image-right-aside img.no-frame {
  border: none;
  border-radius: 0;
}

@media (max-width: 640px) {
  .image-right-layout {
    grid-template-columns: 1fr;
  }
  .image-right-aside { order: -1; }
}

/* ============================================================
   Card Grid (Products, etc.)
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card-grid-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 0;
}

.card-grid-divider::before,
.card-grid-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.card-grid-divider span {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(26,35,54,0.5);
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card-icon { font-size: 2.5rem; }

.card h3 { font-size: 1.1rem; }
.card h3 a { color: var(--dark); }
.card h3 a:hover { color: var(--accent); }

.card p { font-size: 0.92rem; color: var(--text-muted); flex: 1; }

/* ============================================================
   Services Detail Page
   ============================================================ */

.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-detail-card {
  padding: 2rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.service-detail-card h3 {
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.service-detail-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   Contact Page
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,51,102,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-detail-icon svg { width: 20px; height: 20px; }

.contact-detail-body h4 { margin-bottom: 0.2rem; }
.contact-detail-body a { color: var(--text); }
.contact-detail-body a:hover { color: var(--accent); }

/* Contact Form */
.contact-form { background: var(--bg-light); border-radius: var(--radius-lg); padding: 2.5rem; }
.contact-form h2 { margin-bottom: 1.5rem; }

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,51,102,0.1);
}

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

/* Contact form: validation and status feedback */
.form-group input.error,
.form-group textarea.error {
  border-color: var(--accent);
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--accent);
}

#contact-status { margin-top: 1rem; font-size: 0.95rem; }
#contact-status.success { color: #0a7d33; font-weight: 600; }
#contact-status.error   { color: var(--accent); font-weight: 600; }

/* Honeypot: hidden from humans (kept off-screen rather than display:none). */
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   Training Page
   ============================================================ */

.training-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.training-feature {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-light);
}

.training-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.training-feature h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.training-feature p  { font-size: 0.9rem; color: var(--text-muted); }

/* ============================================================
   Articles
   ============================================================ */

.articles-list { display: flex; flex-direction: column; gap: 2.5rem; }

.article-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2.5rem;
}

.article-card:last-child { border-bottom: none; }

.article-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.article-meta time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-category {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(255,51,102,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}

.article-card h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.article-card h2 a { color: var(--dark); }
.article-card h2 a:hover { color: var(--accent); }

.article-card p { color: var(--text-muted); }

.read-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.empty-state {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
}

/* ============================================================
   Feature grid (PassEto-style 2x2 highlights)
   ============================================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
}

.feature-card .feature-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-card p,
.feature-card ul {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-card ul {
  list-style: disc;
  padding-left: 1.1rem;
}

.feature-card ul li { margin-bottom: 0.3rem; }

/* Download group — row of platform buttons */
.download-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* FAQ */
.faq { margin-top: 1.5rem; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item h3 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.faq-item p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: #0d1424;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 36px;
  width: 119px;
  display: block;
  object-fit: cover;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand:hover .footer-logo { opacity: 1; }

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

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

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

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

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

.footer-col address a {
  color: rgba(255,255,255,0.6);
}

.footer-col address a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 700px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: #f1f2f4;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    max-height: calc(100vh - 66px);
    overflow-y: auto;
  }

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

  .nav-toggle { display: flex; }

  .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    background: rgba(255,51,102,0.04);
    margin-top: 0.25rem;
    border-radius: var(--radius);
  }

  .has-dropdown .dropdown-menu { display: none; }
  .has-dropdown.open .dropdown-menu { display: block; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .section { padding: 3.5rem 0; }

  .two-col-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}

/* Markdown tables */
.page-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.page-content th,
.page-content td {
  padding: 0.6rem 1rem;
  text-align: left;
  border: 1px solid #d8dbe2;
}
.page-content thead th {
  background: #f1f2f4;
  font-weight: 600;
  color: var(--dark);
}
.page-content tbody tr:nth-child(even) { background: #f8f9fb; }
.page-content td:first-child { white-space: nowrap; }
