/*
Theme Name: Nexus Casa Inteligente
Theme URI: https://www.nexuscasainteligente.com.br
Author: Nexus Casa Inteligente
Description: Tema oficial Nexus — automação residencial premium. Visual idêntico ao site institucional, otimizado para o blog em WordPress.
Version: 1.0
License: All rights reserved
Text Domain: nexus
*/

/* ============================================================
   Nexus Casa Inteligente — Design Tokens
   Colors + Typography
   ============================================================
   Source of truth: STYLE-GUIDE.md + marketing/style-guide.md
   Brand: Heart Blue + Preto Profundo (primary), with secondary
   palettes for sofisticação (gray), conversão (orange) e
   editorial (white).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&family=Exo+2:wght@400;500;600;700;800&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  /* ---------- BRAND CORE ---------- */
  --nx-heart-blue:        #0E8FCF;   /* Azul da Marca — CTAs, logo, destaque */
  --nx-heart-blue-2:      #0F87D8;   /* Variant for gradients */
  --nx-heart-blue-deep:   #0A6FA3;   /* Pressed / darker hover */
  --nx-heart-blue-soft:   #E3F2FD;   /* Background tint */
  --nx-deep-black:        #14191E;   /* Fundo principal escuro */
  --nx-pure-black:        #0D0D0D;   /* Texto sobre claro / contraste extremo */
  --nx-white:             #FFFFFF;

  /* ---------- NEUTRAL / GRAY (Confiança e Sofisticação) ---------- */
  --nx-tech-gray:         #6B7280;   /* Mid neutral */
  --nx-tech-gray-soft:    #8B8C8D;
  --nx-charcoal:          #2D2D2D;   /* Card fundo */
  --nx-charcoal-2:        #3D3D3D;   /* Overlay */
  --nx-text-body:         #333333;   /* Corpo em fundo claro */
  --nx-border-light:      #E5E7EB;
  --nx-border-mid:        #D1D5DB;
  --nx-bg-soft:           #F5F7FA;
  --nx-bg-light:          #FAFBFC;

  /* ---------- ACCENT (Navy + Laranja Energia — campanhas, conversão) ---------- */
  --nx-navy:              #232C42;
  --nx-orange:            #FF6D00;   /* CTA quente — uso restrito */
  --nx-orange-deep:       #D95B00;

  /* ---------- TECH ACCENT (Dark + Verde Neon — público dev, moderado) ---------- */
  --nx-neon-green:        #0FFA71;

  /* ---------- SEMANTIC ---------- */
  --nx-fg-1:              var(--nx-pure-black);   /* Texto principal claro */
  --nx-fg-2:              var(--nx-text-body);    /* Corpo */
  --nx-fg-3:              var(--nx-tech-gray);    /* Secundário / metadata */
  --nx-fg-on-dark-1:      var(--nx-white);
  --nx-fg-on-dark-2:      #C9D1D9;
  --nx-fg-on-dark-3:      #8B95A4;

  --nx-bg-canvas:         var(--nx-white);
  --nx-bg-canvas-dark:    var(--nx-deep-black);
  --nx-bg-card:           var(--nx-white);
  --nx-bg-card-dark:      var(--nx-charcoal);

  --nx-link:              var(--nx-heart-blue);
  --nx-link-hover:        var(--nx-heart-blue-deep);

  --nx-success:           #16A34A;
  --nx-warning:           #F59E0B;
  --nx-danger:            #DC2626;

  /* ---------- TYPE FAMILIES ---------- */
  --nx-font-display:      "Exo 2", "Open Sans", system-ui, -apple-system, sans-serif; /* hero / display + h1 */
  --nx-font-headline:     "Open Sans", system-ui, -apple-system, sans-serif;          /* h2-h4 */
  --nx-font-body:         "Open Sans", system-ui, -apple-system, sans-serif;          /* body */
  --nx-font-support:      "Montserrat", "Open Sans", system-ui, sans-serif;           /* metadata, hashtags */
  --nx-font-mono:         "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* ---------- TYPE SCALE (px @ 16 root) ---------- */
  --nx-text-xs:    12px;
  --nx-text-sm:    14px;
  --nx-text-base:  16px;
  --nx-text-md:    18px;
  --nx-text-lg:    20px;
  --nx-text-xl:    24px;
  --nx-text-2xl:   30px;
  --nx-text-3xl:   38px;
  --nx-text-4xl:   48px;
  --nx-text-5xl:   60px;
  --nx-text-6xl:   76px;

  /* ---------- LINE HEIGHTS ---------- */
  --nx-lh-tight:   1.1;
  --nx-lh-snug:    1.25;
  --nx-lh-normal:  1.5;
  --nx-lh-relaxed: 1.65;

  /* ---------- TRACKING ---------- */
  --nx-track-tight:  -0.02em;
  --nx-track-normal: 0;
  --nx-track-wide:   0.04em;
  --nx-track-eyebrow:0.12em;  /* eyebrow / kickers UPPERCASE */

  /* ---------- RADII ---------- */
  --nx-radius-xs:  4px;
  --nx-radius-sm:  6px;
  --nx-radius-md:  8px;    /* botões primários */
  --nx-radius-lg:  12px;
  --nx-radius-xl:  16px;
  --nx-radius-2xl: 20px;
  --nx-radius-pill: 999px;

  /* ---------- SPACING (4px base) ---------- */
  --nx-space-1: 4px;
  --nx-space-2: 8px;
  --nx-space-3: 12px;
  --nx-space-4: 16px;
  --nx-space-5: 20px;
  --nx-space-6: 24px;
  --nx-space-8: 32px;
  --nx-space-10: 40px;
  --nx-space-12: 48px;
  --nx-space-16: 64px;
  --nx-space-20: 80px;
  --nx-space-24: 96px;

  /* ---------- SHADOWS ---------- */
  --nx-shadow-xs:  0 1px 2px rgba(20,25,30,0.06);
  --nx-shadow-sm:  0 2px 6px rgba(20,25,30,0.08);
  --nx-shadow-md:  0 6px 18px rgba(20,25,30,0.10);
  --nx-shadow-lg:  0 16px 40px rgba(20,25,30,0.14);
  --nx-shadow-blue:0 12px 30px rgba(14,143,207,0.28);
  --nx-shadow-orange: 0 12px 30px rgba(255,109,0,0.32);
  --nx-glow-blue:  0 0 0 4px rgba(14,143,207,0.20);

  /* ---------- BORDERS ---------- */
  --nx-border-1: 1px solid var(--nx-border-light);
  --nx-border-strong: 1px solid var(--nx-charcoal);
  --nx-border-blue:   1px solid var(--nx-heart-blue);

  /* ---------- GRADIENTS ---------- */
  --nx-grad-blue-deep:  linear-gradient(135deg, var(--nx-heart-blue) 0%, var(--nx-deep-black) 100%);
  --nx-grad-blue-navy:  linear-gradient(135deg, var(--nx-heart-blue) 0%, var(--nx-navy) 100%);
  --nx-grad-night:      linear-gradient(180deg, var(--nx-navy) 0%, var(--nx-deep-black) 100%);
  --nx-grad-orange-fire:linear-gradient(135deg, var(--nx-orange) 0%, #B23B00 100%);

  /* ---------- MOTION ---------- */
  --nx-ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --nx-ease-in:    cubic-bezier(0.55, 0, 1, 0.45);
  --nx-ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --nx-dur-fast:   120ms;
  --nx-dur-base:   200ms;
  --nx-dur-slow:   320ms;

  /* ---------- LAYOUT ---------- */
  --nx-container:        1200px;
  --nx-container-narrow: 880px;
}

/* ============================================================
   SEMANTIC TYPOGRAPHY
   Use these classes/tags directly; never hand-roll font stacks.
   ============================================================ */

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

body {
  font-family: var(--nx-font-body);
  font-size: var(--nx-text-base);
  line-height: var(--nx-lh-relaxed);
  color: var(--nx-fg-2);
  background: var(--nx-bg-canvas);
}

/* Display — for hero headlines on tech-focused content. Exo 2. */
.nx-display, .nx-h-display {
  font-family: var(--nx-font-display);
  font-weight: 800;
  font-size: clamp(48px, 6vw, var(--nx-text-6xl));
  line-height: var(--nx-lh-tight);
  letter-spacing: var(--nx-track-tight);
  color: var(--nx-fg-1);
  text-wrap: balance;
}

h1, .nx-h1 {
  font-family: var(--nx-font-display);
  font-weight: 700;
  font-size: clamp(38px, 4.4vw, var(--nx-text-5xl));
  line-height: var(--nx-lh-tight);
  letter-spacing: var(--nx-track-tight);
  color: var(--nx-fg-1);
  margin: 0 0 var(--nx-space-5);
  text-wrap: balance;
}

h2, .nx-h2 {
  font-family: var(--nx-font-headline);
  font-weight: 700;
  font-size: clamp(28px, 3vw, var(--nx-text-3xl));
  line-height: var(--nx-lh-snug);
  letter-spacing: var(--nx-track-tight);
  color: var(--nx-fg-1);
  margin: 0 0 var(--nx-space-4);
  text-wrap: balance;
}

h3, .nx-h3 {
  font-family: var(--nx-font-headline);
  font-weight: 700;
  font-size: var(--nx-text-xl);
  line-height: var(--nx-lh-snug);
  color: var(--nx-fg-1);
  margin: 0 0 var(--nx-space-3);
}

h4, .nx-h4 {
  font-family: var(--nx-font-headline);
  font-weight: 600;
  font-size: var(--nx-text-md);
  line-height: var(--nx-lh-snug);
  color: var(--nx-fg-1);
  margin: 0 0 var(--nx-space-2);
}

p, .nx-p {
  font-family: var(--nx-font-body);
  font-size: var(--nx-text-base);
  line-height: var(--nx-lh-relaxed);
  color: var(--nx-fg-2);
  margin: 0 0 var(--nx-space-4);
  text-wrap: pretty;
}

.nx-lead {
  font-family: var(--nx-font-body);
  font-size: clamp(20px, 1.5vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--nx-fg-2);
  font-weight: 300;
}

/* Eyebrow / kicker — small uppercase label, used over headlines */
.nx-eyebrow {
  font-family: var(--nx-font-support);
  font-size: var(--nx-text-xs);
  font-weight: 600;
  letter-spacing: var(--nx-track-eyebrow);
  text-transform: uppercase;
  color: var(--nx-heart-blue);
}

.nx-meta {
  font-family: var(--nx-font-support);
  font-size: var(--nx-text-sm);
  color: var(--nx-fg-3);
}

code, .nx-code {
  font-family: var(--nx-font-mono);
  font-size: 0.9em;
  background: var(--nx-bg-soft);
  border: var(--nx-border-1);
  border-radius: var(--nx-radius-xs);
  padding: 2px 6px;
}

a, .nx-link {
  color: var(--nx-link);
  text-decoration: none;
  transition: color var(--nx-dur-fast) var(--nx-ease-out);
}
a:hover, .nx-link:hover { color: var(--nx-link-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   DARK SURFACE OVERRIDES
   Wrap any block in .nx-dark to flip text colors.
   ============================================================ */
.nx-dark {
  background: var(--nx-deep-black);
  color: var(--nx-fg-on-dark-1);
}
.nx-dark h1, .nx-dark h2, .nx-dark h3, .nx-dark h4,
.nx-dark .nx-h1, .nx-dark .nx-h2, .nx-dark .nx-h3, .nx-dark .nx-h4,
.nx-dark .nx-display { color: var(--nx-fg-on-dark-1); }
.nx-dark p, .nx-dark .nx-p, .nx-dark .nx-lead { color: var(--nx-fg-on-dark-2); }
.nx-dark .nx-meta { color: var(--nx-fg-on-dark-3); }

/* Nexus Marketing Website UI Kit shared styles */
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--nx-font-body); color: var(--nx-fg-2); background: var(--nx-white); }

.container { max-width: var(--nx-container); margin: 0 auto; padding: 0 24px; }

/* Nav — full-color logo on white */
.nav { position: sticky; top: 0; z-index: 50; background: #ffffff; border-bottom: none; box-shadow: 0 1px 0 rgba(20,25,30,0.04); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--nx-container); margin: 0 auto; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo .nav-logo-img { height: 38px; width: auto; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--nx-fg-1); font-size: 14px; font-weight: 600; transition: color var(--nx-dur-fast) var(--nx-ease-out); }
.nav-links a:hover { color: var(--nx-heart-blue); text-decoration: none; }
.nav-cta { background: var(--nx-heart-blue); color: white; padding: 9px 18px; border-radius: var(--nx-radius-md); font-family: var(--nx-font-headline); font-weight: 700; font-size: 13px; text-decoration: none; transition: background var(--nx-dur-base) var(--nx-ease-out); }
.nav-cta:hover { background: var(--nx-heart-blue-deep); text-decoration: none; }

/* Hero */
.hero { position: relative; background: var(--nx-deep-black); color: white; overflow: hidden; padding: 96px 0 80px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 30%, rgba(14,143,207,0.32) 0%, transparent 50%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-block; font-family: var(--nx-font-support); font-size: 12px; font-weight: 600; letter-spacing: var(--nx-track-eyebrow); text-transform: uppercase; color: var(--nx-heart-blue); margin-bottom: 16px; }
.hero h1 { font-family: var(--nx-font-display); font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.02em; color: white; margin: 0 0 20px; text-wrap: balance; }
.hero h1 .accent { color: var(--nx-heart-blue); }
.hero p { font-size: 19px; line-height: 1.55; color: rgba(255,255,255,0.78); margin: 0 0 28px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: var(--nx-radius-md); font-family: var(--nx-font-headline); font-weight: 700; font-size: 14px; text-decoration: none; border: none; cursor: pointer; transition: all var(--nx-dur-base) var(--nx-ease-out); }
.btn-primary { background: var(--nx-heart-blue); color: white; }
.btn-primary:hover { background: var(--nx-heart-blue-deep); text-decoration: none; }
.btn-ghost { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.32); }
.btn-ghost:hover { border-color: white; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--nx-heart-blue); border: 1.5px solid var(--nx-heart-blue); }
.btn-secondary:hover { background: var(--nx-heart-blue); color: white; text-decoration: none; }

/* Hero device mock */
.hero-mock { background: linear-gradient(160deg, var(--nx-charcoal) 0%, var(--nx-deep-black) 100%); border-radius: var(--nx-radius-2xl); padding: 22px; box-shadow: var(--nx-shadow-blue); }
.mock-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: rgba(255,255,255,0.6); font-size: 12px; font-family: var(--nx-font-support); }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-tile { background: rgba(255,255,255,0.04); border-radius: var(--nx-radius-md); padding: 12px; min-height: 80px; display: flex; flex-direction: column; justify-content: space-between; }
.mock-tile.on { background: linear-gradient(160deg, var(--nx-heart-blue) 0%, var(--nx-heart-blue-deep) 100%); }
.mock-tile .tname { font-family: var(--nx-font-headline); font-weight: 700; font-size: 13px; color: white; }
.mock-tile .tstate { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.mock-tile svg { width: 20px; height: 20px; color: rgba(255,255,255,0.7); }
.mock-tile.on svg { color: white; }

/* Section */
.section { padding: 96px 0; }
.section-light { background: var(--nx-bg-light); }
.section-dark { background: var(--nx-deep-black); color: white; }
.section-dark h2,
.section-dark .section-head h2 { color: white; }
.section-dark p,
.section-dark .section-head p { color: rgba(255,255,255,0.78); }
.section-dark .eyebrow { color: var(--nx-heart-blue); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-family: var(--nx-font-headline); font-weight: 800; font-size: clamp(30px, 3vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--nx-fg-1); text-wrap: balance; }
.section-head p { font-size: 18px; line-height: 1.55; color: var(--nx-fg-2); margin: 0; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: white; border-radius: var(--nx-radius-lg); padding: 28px; box-shadow: var(--nx-shadow-sm); transition: all var(--nx-dur-base) var(--nx-ease-out); }
.feature:hover { transform: translateY(-2px); box-shadow: var(--nx-shadow-md); }
.feature-icon { width: 44px; height: 44px; border-radius: var(--nx-radius-md); background: var(--nx-heart-blue-soft); color: var(--nx-heart-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-family: var(--nx-font-headline); font-weight: 700; font-size: 18px; color: var(--nx-fg-1); margin: 0 0 8px; }
.feature p { font-size: 14px; line-height: 1.55; color: var(--nx-fg-2); margin: 0; }

.section-dark .feature { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.section-dark .feature:hover { background: rgba(255,255,255,0.06); border-color: rgba(14,143,207,0.45); }
.section-dark .feature h3 { color: white; }
.section-dark .feature p { color: rgba(255,255,255,0.78); }
.section-dark .feature-icon { background: rgba(14,143,207,0.18); color: white; }
.section-dark .feature-icon svg { color: white; }

/* Tier cards */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { background: white; border: 1px solid var(--nx-border-light); border-radius: var(--nx-radius-xl); padding: 32px; display: flex; flex-direction: column; }
.tier-name { font-family: var(--nx-font-support); font-size: 11px; font-weight: 700; letter-spacing: var(--nx-track-eyebrow); text-transform: uppercase; color: var(--nx-heart-blue); margin-bottom: 8px; }
.tier-price { font-family: var(--nx-font-headline); font-weight: 800; font-size: 36px; color: var(--nx-fg-1); line-height: 1; margin-bottom: 4px; }
.tier-from { font-size: 13px; color: var(--nx-fg-3); margin-bottom: 24px; }
.tier-features { list-style: none; padding: 0; margin: 0 0 28px; flex-grow: 1; }
.tier-features li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14px; color: var(--nx-fg-2); border-bottom: 1px solid var(--nx-border-light); }
.tier-features li:last-child { border-bottom: none; }
.tier-features svg { width: 18px; height: 18px; color: var(--nx-heart-blue); flex-shrink: 0; margin-top: 1px; }
.tier.featured { background: var(--nx-deep-black); color: white; border-color: var(--nx-heart-blue); box-shadow: var(--nx-shadow-blue); }
.tier.featured .tier-price { color: white; }
.tier.featured .tier-from { color: rgba(255,255,255,0.6); }
.tier.featured .tier-features li { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.08); }
.tier-badge { display:inline-block; background: var(--nx-heart-blue); color: white; font-family: var(--nx-font-support); font-size: 10px; font-weight: 700; letter-spacing: var(--nx-track-eyebrow); text-transform: uppercase; padding: 4px 10px; border-radius: var(--nx-radius-pill); margin-bottom: 8px; }

/* Footer */
.footer { background: var(--nx-deep-black); color: rgba(255,255,255,0.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .footer-mark { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 34px; height: 34px; object-fit: contain; }
.footer-brand .wordmark { font-family: var(--nx-font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: white; line-height: 1; }
.footer-brand p { font-size: 14px; line-height: 1.55; max-width: 280px; margin-top: 12px; color: rgba(255,255,255,0.85); }
.footer-col h4 { font-family: var(--nx-font-support); font-size: 11px; font-weight: 700; letter-spacing: var(--nx-track-eyebrow); text-transform: uppercase; color: white; margin: 0 0 12px; }
.footer-col a { display: block; color: rgba(255,255,255,0.65); font-size: 14px; padding: 5px 0; text-decoration: none; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; font-family: var(--nx-font-support); font-size: 12px; color: rgba(255,255,255,0.5); }

/* Floating WhatsApp */
.fab-wpp { position: fixed; bottom: 24px; right: 24px; background: #25D366; color: white; width: 56px; height: 56px; border-radius: 50%; display:flex; align-items:center; justify-content:center; box-shadow: var(--nx-shadow-md); z-index: 100; cursor: pointer; transition: transform var(--nx-dur-base) var(--nx-ease-spring); }
.fab-wpp:hover { transform: scale(1.06); }

/* Testimonial */
.quote-block { max-width: 780px; margin: 0 auto; text-align: center; }
.quote-block blockquote { font-family: var(--nx-font-headline); font-weight: 600; font-size: 26px; line-height: 1.4; color: var(--nx-fg-1); margin: 0 0 24px; text-wrap: balance; }
.quote-block .who { font-family: var(--nx-font-support); font-size: 13px; color: var(--nx-fg-3); }

/* Testimonials horizontal scroller */
.testimonial-scroller { position: relative; }
.testimonial-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(360px, 380px); gap: 20px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  padding: 4px 4px 24px;
  scrollbar-width: thin;
}
.testimonial-track::-webkit-scrollbar { height: 6px; }
.testimonial-track::-webkit-scrollbar-track { background: transparent; }
.testimonial-track::-webkit-scrollbar-thumb { background: var(--nx-border-mid); border-radius: 999px; }
.testimonial-track .testimonial { scroll-snap-align: start; }
.testimonial-controls { position: absolute; top: -64px; right: 0; display: flex; gap: 8px; }
.ts-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--nx-border-mid); background: white; color: var(--nx-fg-1); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--nx-dur-base) var(--nx-ease-out); }
.ts-btn:hover { border-color: var(--nx-heart-blue); color: var(--nx-heart-blue); }
.ts-btn:active { transform: scale(0.96); }
.testimonial { background: white; border: 1px solid var(--nx-border-light); border-radius: var(--nx-radius-xl); padding: 32px; display: flex; flex-direction: column; gap: 20px; transition: all var(--nx-dur-base) var(--nx-ease-out); }
.testimonial:hover { transform: translateY(-2px); box-shadow: var(--nx-shadow-md); border-color: var(--nx-heart-blue-soft); }
.testimonial .quote-mark { width: 32px; height: 32px; color: var(--nx-heart-blue); opacity: 0.55; }
.testimonial blockquote { margin: 0; font-family: var(--nx-font-headline); font-weight: 500; font-size: 17px; line-height: 1.5; color: var(--nx-fg-1); text-wrap: pretty; flex-grow: 1; }
.testimonial .who { padding-top: 16px; border-top: 1px solid var(--nx-border-light); }
.testimonial .who-name { font-family: var(--nx-font-headline); font-weight: 700; font-size: 14px; color: var(--nx-fg-1); }
.testimonial .who-meta { font-family: var(--nx-font-support); font-size: 11px; letter-spacing: var(--nx-track-eyebrow); text-transform: uppercase; color: var(--nx-fg-3); margin-top: 4px; }

/* CTA strip */
.cta-strip { background: var(--nx-grad-blue-deep); border-radius: var(--nx-radius-2xl); padding: 56px 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; color: white; }
.cta-strip h2 { color: white; margin: 0 0 12px; font-size: 32px; }
.cta-strip p { color: rgba(255,255,255,0.85); margin: 0; font-size: 16px; }
.cta-strip .cta-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* Login modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(20,25,30,0.7); backdrop-filter: blur(6px); z-index: 200; display:flex; align-items:center; justify-content:center; padding: 24px; }
.modal { background: white; border-radius: var(--nx-radius-xl); padding: 36px; width: 100%; max-width: 440px; box-shadow: var(--nx-shadow-lg); }
.modal h3 { font-family: var(--nx-font-headline); font-weight: 700; font-size: 22px; margin: 0 0 6px; color: var(--nx-fg-1); }
.modal .sub { font-size: 14px; color: var(--nx-fg-3); margin: 0 0 24px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--nx-font-headline); font-size: 12px; font-weight: 600; color: var(--nx-fg-1); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; box-sizing: border-box; padding: 11px 14px; font-family: var(--nx-font-body); font-size: 14px; border: 1px solid var(--nx-border-mid); border-radius: var(--nx-radius-md); background: white; color: var(--nx-fg-1); transition: all var(--nx-dur-base) var(--nx-ease-out); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--nx-heart-blue); box-shadow: var(--nx-glow-blue); }
.modal .actions { display: flex; gap: 8px; margin-top: 20px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-hero { background: var(--nx-deep-black); color: white; padding: 88px 0 64px; position: relative; overflow: hidden; }
.blog-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 30%, rgba(14,143,207,0.28) 0%, transparent 55%); }
.blog-hero-inner { position: relative; max-width: 880px; margin: 0 auto; padding: 0 24px; text-align: center; }
.blog-hero h1 { font-family: var(--nx-font-display); font-weight: 700; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; color: white; margin: 0 0 18px; text-wrap: balance; }
.blog-hero p { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,0.78); margin: 0 auto; max-width: 620px; }

.blog-list { padding: 64px 0 96px; background: var(--nx-bg-light); }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.blog-card { background: white; border-radius: var(--nx-radius-xl); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; box-shadow: var(--nx-shadow-sm); transition: all var(--nx-dur-base) var(--nx-ease-out); border: 1px solid var(--nx-border-light); }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--nx-shadow-md); border-color: var(--nx-heart-blue-soft); text-decoration: none; }
.blog-card-media { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--nx-heart-blue) 0%, var(--nx-deep-black) 100%); position: relative; overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-media.gradient-1 { background: linear-gradient(135deg, #0E8FCF 0%, #14191E 100%); }
.blog-card-media.gradient-2 { background: linear-gradient(135deg, #232C42 0%, #0A6FA3 100%); }
.blog-card-media .media-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.blog-card-media .media-overlay svg { width: 56px; height: 56px; color: rgba(255,255,255,0.55); stroke-width: 1.2; }
.blog-card-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.blog-card-meta { display: flex; gap: 12px; align-items: center; font-family: var(--nx-font-support); font-size: 11px; font-weight: 600; letter-spacing: var(--nx-track-eyebrow); text-transform: uppercase; color: var(--nx-fg-3); }
.blog-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--nx-fg-3); }
.blog-card-meta .tag { color: var(--nx-heart-blue); }
.blog-card h2 { font-family: var(--nx-font-headline); font-weight: 700; font-size: 22px; line-height: 1.25; color: var(--nx-fg-1); margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
.blog-card p { font-size: 15px; line-height: 1.55; color: var(--nx-fg-2); margin: 0; }
.blog-card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-family: var(--nx-font-headline); font-weight: 700; font-size: 13px; color: var(--nx-heart-blue); }
.blog-card-cta svg { width: 14px; height: 14px; transition: transform var(--nx-dur-base) var(--nx-ease-out); }
.blog-card:hover .blog-card-cta svg { transform: translateX(3px); }

/* Blog post (article page) */
.article-hero { background: var(--nx-deep-black); color: white; padding: 96px 0 56px; position: relative; overflow: hidden; }
.article-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(14,143,207,0.28) 0%, transparent 55%); }
.article-hero-inner { position: relative; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.article-breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-family: var(--nx-font-support); font-size: 12px; font-weight: 600; letter-spacing: var(--nx-track-eyebrow); text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 24px; text-decoration: none; }
.article-breadcrumb:hover { color: var(--nx-heart-blue); text-decoration: none; }
.article-meta { display: flex; gap: 12px; align-items: center; font-family: var(--nx-font-support); font-size: 11px; font-weight: 600; letter-spacing: var(--nx-track-eyebrow); text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.article-meta .tag { color: var(--nx-heart-blue); }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.article-hero h1 { font-family: var(--nx-font-display); font-weight: 700; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.1; letter-spacing: -0.02em; color: white; margin: 0 0 20px; text-wrap: balance; }
.article-lead { font-size: 19px; line-height: 1.55; color: rgba(255,255,255,0.82); margin: 0; font-weight: 300; max-width: 660px; }

.article-cover { background: var(--nx-bg-light); padding: 0 24px; }
.article-cover-inner { max-width: 960px; margin: -40px auto 0; aspect-ratio: 16/8; border-radius: var(--nx-radius-2xl); overflow: hidden; box-shadow: var(--nx-shadow-lg); background: linear-gradient(135deg, var(--nx-heart-blue) 0%, var(--nx-deep-black) 100%); position: relative; }
.article-cover-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-cover-inner .media-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.article-cover-inner .media-overlay svg { width: 84px; height: 84px; color: rgba(255,255,255,0.45); stroke-width: 1; }

.article-body { background: var(--nx-bg-light); padding: 64px 24px 96px; }
.article-body-inner { max-width: 720px; margin: 0 auto; font-family: var(--nx-font-body); }
.article-body-inner > p,
.article-body-inner > ul,
.article-body-inner > ol,
.article-body-inner > blockquote { color: var(--nx-fg-2); font-size: 17px; line-height: 1.7; margin: 0 0 22px; }
.article-body-inner > p:first-of-type { font-size: 19px; line-height: 1.65; font-weight: 400; color: var(--nx-fg-1); }
.article-body-inner h2 { font-family: var(--nx-font-headline); font-weight: 700; font-size: 28px; line-height: 1.2; color: var(--nx-fg-1); margin: 48px 0 16px; letter-spacing: -0.01em; text-wrap: balance; }
.article-body-inner h3 { font-family: var(--nx-font-headline); font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--nx-fg-1); margin: 32px 0 12px; }
.article-body-inner ul, .article-body-inner ol { padding-left: 24px; }
.article-body-inner li { margin: 0 0 10px; line-height: 1.65; }
.article-body-inner li::marker { color: var(--nx-heart-blue); }
.article-body-inner strong { color: var(--nx-fg-1); font-weight: 700; }
.article-body-inner blockquote { border-left: 3px solid var(--nx-heart-blue); padding: 4px 0 4px 22px; margin: 28px 0; font-family: var(--nx-font-headline); font-weight: 500; font-size: 19px; color: var(--nx-fg-1); font-style: normal; }
.article-body-inner a { color: var(--nx-heart-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body-inner a:hover { color: var(--nx-heart-blue-deep); }
.article-callout { background: white; border: 1px solid var(--nx-border-light); border-left: 4px solid var(--nx-heart-blue); border-radius: var(--nx-radius-md); padding: 24px 28px; margin: 32px 0; }
.article-callout h4 { font-family: var(--nx-font-headline); font-weight: 700; font-size: 15px; color: var(--nx-fg-1); margin: 0 0 8px; text-transform: uppercase; letter-spacing: var(--nx-track-eyebrow); }
.article-callout p { font-size: 15px; line-height: 1.6; color: var(--nx-fg-2); margin: 0; }

.article-share { display: flex; align-items: center; gap: 12px; padding: 32px 0 0; margin-top: 48px; border-top: 1px solid var(--nx-border-light); font-family: var(--nx-font-support); font-size: 12px; font-weight: 600; letter-spacing: var(--nx-track-eyebrow); text-transform: uppercase; color: var(--nx-fg-3); }
.article-share .pills { display: flex; gap: 8px; margin-left: auto; }
.article-share .pill { padding: 6px 12px; border-radius: var(--nx-radius-pill); background: white; border: 1px solid var(--nx-border-light); color: var(--nx-fg-2); text-decoration: none; font-size: 12px; letter-spacing: 0; text-transform: none; }
.article-share .pill:hover { border-color: var(--nx-heart-blue); color: var(--nx-heart-blue); }

.related { background: white; padding: 80px 0; border-top: 1px solid var(--nx-border-light); }
.related h3 { font-family: var(--nx-font-headline); font-weight: 700; font-size: 24px; color: var(--nx-fg-1); margin: 0 0 32px; text-align: center; }

/* ============================================================
   MOBILE NAV (hamburger)
   ============================================================ */
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; color: var(--nx-fg-1); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-mobile { display: none; }
.nav-mobile-close { display: none; position: fixed; top: 16px; right: 16px; z-index: 61; background: transparent; border: 0; color: white; padding: 8px; cursor: pointer; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet — 1024px and down */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-mock { max-width: 480px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tier.featured { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 3; }
  .cta-strip { grid-template-columns: 1fr; gap: 24px; padding: 44px 36px; }
  .cta-strip .cta-actions { justify-content: flex-start; }
}

/* Mobile — 768px and down */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  /* Nav — hamburger */
  .nav-inner { padding: 12px 16px; }
  .nav-logo .nav-logo-img { height: 32px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-mobile { display: none; position: fixed; inset: 0; background: var(--nx-deep-black); z-index: 60; padding: 80px 24px 24px; flex-direction: column; gap: 4px; }
  .nav-mobile.open { display: flex; }
  .nav-mobile a { display: block; padding: 16px 12px; color: white; font-family: var(--nx-font-headline); font-weight: 600; font-size: 18px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-mobile a.nav-cta-mobile { background: var(--nx-heart-blue); border-radius: var(--nx-radius-md); margin-top: 16px; text-align: center; border: 0; }
  .nav-mobile.open ~ .nav-mobile-close,
  body.nav-open .nav-mobile-close { display: block; }

  /* Hero */
  .hero { padding: 56px 0 64px; }
  .hero p { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-mock { max-width: 100%; padding: 16px; }
  .mock-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* Sections */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 28px; }
  .section-head p { font-size: 16px; }

  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature { padding: 22px; }

  .tier-grid { grid-template-columns: 1fr; }
  .tier.featured { grid-column: auto; }

  /* Testimonials */
  .testimonial-track { grid-auto-columns: minmax(280px, 88vw); gap: 12px; }
  .testimonial { padding: 24px; }
  .testimonial-controls { position: static; justify-content: center; margin-top: 12px; }

  /* CTA strip */
  .cta-strip { padding: 36px 24px; border-radius: var(--nx-radius-xl); }
  .cta-strip h2 { font-size: 26px; }
  .cta-strip .cta-actions .btn { flex: 1 1 auto; justify-content: center; }

  /* Footer */
  .footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: left; align-items: flex-start; }

  /* Modal */
  .modal { padding: 24px; }
  .modal .actions { flex-direction: column-reverse; }
  .modal .actions .btn { width: 100%; justify-content: center; }

  /* Blog */
  .blog-hero { padding: 56px 0 40px; }
  .blog-list { padding: 36px 0 64px; }
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .blog-card-body { padding: 22px; }
  .blog-card h2 { font-size: 19px; }

  /* Article */
  .article-hero { padding: 64px 0 40px; }
  .article-cover-inner { margin-top: -24px; border-radius: var(--nx-radius-xl); aspect-ratio: 16/10; }
  .article-body { padding: 40px 16px 64px; }
  .article-body-inner > p,
  .article-body-inner > ul,
  .article-body-inner > ol { font-size: 16px; }
  .article-body-inner > p:first-of-type { font-size: 17px; }
  .article-body-inner h2 { font-size: 24px; margin-top: 36px; }
  .article-body-inner h3 { font-size: 18px; }
  .article-share { flex-direction: column; align-items: flex-start; gap: 12px; }
  .article-share .pills { margin-left: 0; flex-wrap: wrap; }
  .related { padding: 56px 0; }

  /* FAB stays but smaller offset */
  .fab-wpp { width: 52px; height: 52px; bottom: 16px; right: 16px; }
}

/* Small mobile — 420px and down */
@media (max-width: 420px) {
  .hero h1 { font-size: 36px; }
  .mock-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}


/* ============================================================
   WP-SPECIFIC LAYOUT — sidebar, featured imagery, reading meta
   ============================================================ */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.blog-main { min-width: 0; }
.blog-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-card { background: white; border: 1px solid var(--nx-border-light); border-radius: var(--nx-radius-lg); padding: 24px; box-shadow: var(--nx-shadow-sm); }
.sidebar-card h4 { font-family: var(--nx-font-support); font-size: 11px; font-weight: 700; letter-spacing: var(--nx-track-eyebrow); text-transform: uppercase; color: var(--nx-fg-3); margin: 0 0 16px; }
.sidebar-card.cta { background: var(--nx-deep-black); color: white; border: 0; padding: 28px; background-image: radial-gradient(circle at 90% 10%, rgba(14,143,207,0.32) 0%, transparent 55%); }
.sidebar-card.cta h4 { color: var(--nx-heart-blue); }
.sidebar-card.cta h3 { font-family: var(--nx-font-headline); font-weight: 700; font-size: 20px; line-height: 1.25; color: white; margin: 0 0 12px; letter-spacing: -0.01em; }
.sidebar-card.cta p { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.78); margin: 0 0 20px; }
.sidebar-card.cta .btn { width: 100%; justify-content: center; }
.sidebar-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.sidebar-list a { display: block; color: var(--nx-fg-1); text-decoration: none; font-family: var(--nx-font-headline); font-weight: 600; font-size: 14px; line-height: 1.4; transition: color var(--nx-dur-base) var(--nx-ease-out); }
.sidebar-list a:hover { color: var(--nx-heart-blue); }
.sidebar-list .meta { display: block; font-family: var(--nx-font-support); font-size: 11px; font-weight: 500; color: var(--nx-fg-3); letter-spacing: var(--nx-track-eyebrow); text-transform: uppercase; margin-top: 4px; }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-tags a { padding: 6px 12px; border-radius: var(--nx-radius-pill); background: var(--nx-bg-light); border: 1px solid var(--nx-border-light); color: var(--nx-fg-2); font-family: var(--nx-font-support); font-size: 12px; font-weight: 500; text-decoration: none; transition: all var(--nx-dur-base) var(--nx-ease-out); }
.sidebar-tags a:hover { background: var(--nx-heart-blue-soft); border-color: var(--nx-heart-blue); color: var(--nx-heart-blue); }
.sidebar-card .search-form { display: flex; gap: 8px; }
.sidebar-card .search-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--nx-border-mid); border-radius: var(--nx-radius-md); font-family: var(--nx-font-body); font-size: 14px; }
.sidebar-card .search-form input:focus { outline: none; border-color: var(--nx-heart-blue); box-shadow: var(--nx-glow-blue); }
.sidebar-card .search-form button { padding: 10px 16px; background: var(--nx-heart-blue); color: white; border: 0; border-radius: var(--nx-radius-md); font-family: var(--nx-font-headline); font-weight: 600; font-size: 13px; cursor: pointer; }

.blog-card-media .featured-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-cover-inner .featured-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination .current { padding: 10px 16px; border-radius: var(--nx-radius-md); background: white; border: 1px solid var(--nx-border-light); color: var(--nx-fg-1); font-family: var(--nx-font-headline); font-weight: 600; font-size: 14px; text-decoration: none; transition: all var(--nx-dur-base) var(--nx-ease-out); }
.pagination a:hover { border-color: var(--nx-heart-blue); color: var(--nx-heart-blue); }
.pagination .current { background: var(--nx-heart-blue); border-color: var(--nx-heart-blue); color: white; }

.empty-state { background: white; border: 1px dashed var(--nx-border-mid); border-radius: var(--nx-radius-lg); padding: 56px 32px; text-align: center; color: var(--nx-fg-3); }
.empty-state h3 { font-family: var(--nx-font-headline); font-weight: 700; font-size: 20px; color: var(--nx-fg-1); margin: 0 0 8px; }
.empty-state p { font-size: 15px; line-height: 1.55; margin: 0; }

@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr 280px; gap: 32px; }
}
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}
