/* *****************************************************

    ** Custom Stylesheet **

    Any custom styling you want to apply should be
    defined here.

***************************************************** */

/* Stijl WHMCS intlTelInput telefoonnummer veld - zie overrides.css */

/* Custom CSS for Nexus Cart
 *
 * This block allows you to customize theme colors and styles for the entire Nexus Cart template.
 *
 * To customize colors:
 * - Replace the var() references with your own hex colors or other CSS values.
 * - For example, instead of --primary: #4b5563; use --primary: #your-color;
 * - You can also override any CSS properties here.
 */

html {
    font-size: 14px;
}

:root {
    --white: #fff;

    /* Neutral shades */
    --neutral-50: #fbf9fa;
    --neutral-100: #f4f5f7;
    --neutral-200: #e4e4e7;
    --neutral-300: #d0d5dd;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --neutral-950: #030712;

    /* Neutral shades */
    /* define own pallet with brand colors */
    --primary-50: var(--neutral-50);
    --primary-100: var(--neutral-100);
    --primary-200: var(--neutral-200);
    --primary-300: var(--neutral-300);
    --primary-400: var(--neutral-400);
    --primary-500: var(--neutral-500);
    --primary-600: var(--neutral-600);
    --primary-700: var(--neutral-700);
    --primary-800: var(--neutral-800);
    --primary-900: var(--neutral-900);
    --primary-950: var(--neutral-900);

    /* Primary colors */
    /* Use shades from comments if `primary` colors use other colors, then neutral */
    --primary: var(--neutral-900);          /* var(--primary-600) */
    --primary-lifted: var(--neutral-800);   /* var(--primary-700) */
    --primary-accented: var(--neutral-700); /* var(--primary-800) */

    /* Secondary colors */
    --secondary: var(--neutral-500);
    --secondary-lifted: var(--neutral-600);
    --secondary-accented: var(--neutral-700);

    /* Success colors */
    --success: #00a63e;
    --success-lifted: #008236;
    --success-accented: #016630;

    /* Info colors */
    --info: #155dfc;
    --info-lifted: #1447e6;
    --info-accented: #193cb8;

    /* Notice colors */
    --notice: #7f22fe;
    --notice-lifted: #7008e7;
    --notice-accented: #5d0ec0;

    /* Warning colors */
    --warning: #f54a00;
    --warning-lifted: #ca3500;
    --warning-accented: #9f2d00;

    /* Error colors */
    --error: #e7000b;
    --error-lifted: #c10007;
    --error-accented: #9f0712;

    /* Grayscale colors */
    --grayscale: var(--neutral-900);
    --grayscale-lifted: var(--neutral-800);
    --grayscale-accented: var(--neutral-700);

    /* Neutral colors */
    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    /* Text neutral colors */
    --text-inverted: var(--white);
    --text-muted: var(--neutral-400);
    --text-lifted: var(--neutral-500);
    --text-accented: var(--neutral-600);
    --text: var(--neutral-900);

    /* Border neutral colors */
    --border-muted: var(--neutral-200);
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);

    /* Background neutral colors */
    --bg: var(--white);
    --bg-muted: var(--neutral-50);
    --bg-lifted: var(--neutral-100);
    --bg-accented: var(--neutral-200);
    --bg-inverted: var(--neutral-900);

    /* Additional colors */
    --yellow-200: #fff085;
    --yellow-300: #ffdf20;
    --teal-300: #46edd5;
    --teal-400: #00d5be;
    --emerald-300: #5ee9b5;
    --pink-400: #fb64b6;

    /* Additional custom properties */
    /* Font sizes */
    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;

    /* Spacing */
    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    /* Rounding */
    --rounding-sm: 0.25rem;
    --rounding-md: 0.5rem;
    --rounding-lg: 0.75rem;

    /* Other */
    --letter-spacing: 0em;
    --disabled-opacity: 25%;
}

/* =============================================================
   KRONIX — SITEWIDE MOBILE RESPONSIVE
   Breakpoints: 1024px (tablet), 768px (small tablet), 480px (phone)
   ============================================================= */

/* ── Prevent horizontal overflow on all pages ── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
*, *::before, *::after {
  box-sizing: border-box;
}
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* ── Container padding on small screens ── */
@media (max-width: 768px) {
  .container, .container-sm {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
@media (max-width: 480px) {
  .container, .container-sm {
    padding-left: 0.875rem !important;
    padding-right: 0.875rem !important;
  }
}

/* ── Section padding ── */
@media (max-width: 768px) {
  section { padding-top: 3rem !important; padding-bottom: 3rem !important; }
}
@media (max-width: 480px) {
  section { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
}

/* ── Typography scaling ── */
@media (max-width: 480px) {
  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 1.4rem !important; }
  h3 { font-size: 1.1rem !important; }
  .page-header h1 { font-size: 1.75rem !important; }
}

/* ── Pricing grid: 1 kolom op mobiel ── */
@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── 4-koloms feature grids → 2 op tablet, 1 op mobiel ── */
@media (max-width: 768px) {
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 480px) {
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── DDoS card: gestapeld op mobiel ── */
@media (max-width: 768px) {
  .ddos-card {
    grid-template-columns: 1fr !important;
  }
  .ddos-img {
    min-height: 160px !important;
    max-height: 220px !important;
  }
  .ddos-card > div:last-child {
    padding: 1.5rem !important;
  }
  .ddos-stats {
    gap: 1.25rem !important;
    flex-wrap: wrap !important;
  }
}

/* ── Cart layout: gestapeld op tablet ── */
@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr !important;
  }
  .cart-summary {
    position: static !important;
  }
}

/* ── Client sidebar layout ── */
@media (max-width: 1024px) {
  .client-layout {
    grid-template-columns: 1fr !important;
  }
  .sidebar {
    position: static !important;
  }
}

/* ── CTA sectie knoppen ── */
@media (max-width: 480px) {
  [style*="padding:3.5rem 2rem"] {
    padding: 2rem 1.25rem !important;
  }
  [style*="padding:3.5rem 2rem"] .flex,
  [style*="padding:3.5rem 2rem"] [style*="display:flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  [style*="padding:3.5rem 2rem"] .btn,
  [style*="padding:3.5rem 2rem"] a.btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ── Kennisbank / support grid ── */
@media (max-width: 600px) {
  [style*="grid-template-columns:repeat(auto-fit,minmax(300px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Inline flex rows wrappen ── */
@media (max-width: 640px) {
  [style*="display:flex"][style*="gap:2rem"],
  [style*="display:flex"][style*="gap:1.5rem"] {
    flex-wrap: wrap !important;
    gap: 1rem !important;
  }
}

/* ── Tabs: kleinere padding op mobiel ── */
@media (max-width: 480px) {
  .tab-btn {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.8rem !important;
  }
}

/* ── Tables: horizontaal scrollbaar ── */
.table-wrapper {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  table {
    min-width: 500px;
  }
}

/* ── Forms ── */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr !important;
  }
}

/* ── Buttons: geen overflow ── */
@media (max-width: 480px) {
  .btn {
    white-space: normal !important;
    word-break: break-word;
  }
}

/* ── Hero (kx-hero) ── */
@media (max-width: 640px) {
  .kx-hero-left {
    padding: 5.5rem 1rem 3.5rem !important;
    align-items: center !important;
    text-align: center !important;
  }
  .kx-title {
    font-size: clamp(2.4rem, 10vw, 3.5rem) !important;
  }
  .kx-slogan {
    font-size: 1rem !important;
  }
  .kx-btns {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }
  .kx-btn-primary, .kx-btn-ghost {
    justify-content: center !important;
    width: 100% !important;
  }
  .kx-trust {
    justify-content: center !important;
  }
  .kx-trust-sep {
    display: none !important;
  }
}

/* ── Footer ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 640px) {
  .footer {
    padding: 2.5rem 0 1.5rem !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 1.5rem !important;
  }
  .footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .footer-brand p {
    max-width: 100% !important;
  }
  .footer-socials {
    justify-content: center !important;
  }
  .footer-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .footer-col ul {
    text-align: center !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.75rem !important;
  }
  .footer-payments {
    justify-content: center !important;
  }
  .footer-status {
    justify-content: center !important;
  }
}

/* ── Navbar ── */
@media (max-width: 1024px) {
  .navbar-inner {
    padding: 0 1rem !important;
    gap: 0.5rem !important;
  }
  .navbar-nav-wrapper {
    display: none !important;
  }
  .navbar-toggle {
    display: flex !important;
  }
}
@media (max-width: 480px) {
  .navbar-inner {
    padding: 0 0.75rem !important;
  }
  .navbar-logo img {
    height: 28px !important;
  }
  .navbar-actions .btn-sm {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.72rem !important;
  }
}

/* ── Page header ── */
@media (max-width: 640px) {
  .page-header {
    padding: 1.5rem 0 1rem !important;
  }
  .page-header h1 {
    font-size: 1.6rem !important;
  }
}

/* ── main-content padding-top (navbar height) ── */
@media (max-width: 480px) {
  .main-content {
    padding-top: 80px !important;
  }
}

/* ── Mega dropdown: verberg op mobiel ── */
@media (max-width: 1024px) {
  .nav-mega {
    display: none !important;
  }
}

/* ── Inline grid met vaste kolommen ── */
@media (max-width: 768px) {
  [style*="grid-template-columns:2fr 3fr"],
  [style*="grid-template-columns: 2fr 3fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Inline padding op secties ── */
@media (max-width: 480px) {
  [style*="padding:5rem 0"] {
    padding: 2.5rem 0 !important;
  }
  [style*="padding:4rem 0"] {
    padding: 2rem 0 !important;
  }
}
