/* ============================================================
   RapidSecurity.ai — Design System
   Dark, high-contrast "security-tech" theme.
   ============================================================ */

:root{
  /* Color */
  --bg:            #0a0e15;
  --bg-elevated:   #0f141d;
  --bg-card:       #141a25;
  --bg-card-hover: #1a2230;
  --border:        #232b3a;
  --border-light:  #2c3648;
  --text:          #eef2f8;
  --text-muted:    #9aa6bc;
  --text-dim:      #6b7689;
  --accent:        #19e6e6;
  --accent-soft:   rgba(25,230,230,0.12);
  --accent-2:      #ff7a1f;
  --accent-2-hover:#ff8f42;
  --success:       #29e3a0;
  --danger:        #ff4d6a;

  /* Type */
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-w: 1180px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 76px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family:var(--font-head);
  font-weight:600;
  line-height:1.15;
  margin:0 0 16px;
  letter-spacing:-0.01em;
}
h1{ font-size:clamp(2.2rem, 5vw, 3.4rem); font-weight:700; }
h2{ font-size:clamp(1.7rem, 3.2vw, 2.4rem); }
h3{ font-size:1.3rem; }
p{ margin:0 0 16px; color:var(--text-muted); }
.lead{ font-size:1.2rem; color:var(--text-muted); }

/* Safety net: no image should ever be able to overflow its container,
   regardless of what wraps it or what size the original file is. */
img{ max-width:100%; height:auto; }

.container{
  max-width:var(--max-w);
  margin:0 auto;
  padding:0 24px;
}
.section{ padding:88px 0; }
.section-sm{ padding:56px 0; }
.section-tight{ padding:48px 0; }
@media (max-width:768px){
  .section{ padding:64px 0; }
  .section-sm{ padding:40px 0; }
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:0.78rem;
  font-weight:700;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:14px;
}
.eyebrow::before{
  content:'';
  width:8px; height:8px;
  border-radius:50%;
  background:var(--accent-2);
  box-shadow:0 0 0 4px var(--accent-soft);
}

.text-center{ text-align:center; }
.muted{ color:var(--text-muted); }
.max-w-sm{ max-width:640px; }
.center-col{ margin-left:auto; margin-right:auto; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 26px;
  font-family:var(--font-body);
  font-size:0.98rem;
  font-weight:600;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn svg{ width:18px; height:18px; }
.btn-primary{
  background:var(--accent-2);
  color:#161008;
  box-shadow:0 0 0 0 rgba(255,122,31,0.0);
}
.btn-primary:hover{
  background:var(--accent-2-hover);
  transform:translateY(-2px);
  box-shadow:0 10px 24px -8px rgba(255,122,31,0.55);
}
.btn-secondary{
  background:transparent;
  border-color:var(--border-light);
  color:var(--text);
}
.btn-secondary:hover{
  border-color:var(--accent);
  color:var(--accent);
  transform:translateY(-2px);
}
.btn-ghost{
  background:var(--accent-soft);
  color:var(--accent);
}
.btn-ghost:hover{ background:rgba(25,230,230,0.2); }
.btn-block{ width:100%; }
.btn-lg{ padding:16px 32px; font-size:1.05rem; }
.btn-sm{ padding:10px 18px; font-size:0.88rem; }

.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
}

/* ---------- Icons ---------- */
.icon{
  width:24px; height:24px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
}
.icon-tile{
  width:52px; height:52px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--accent-soft);
  color:var(--accent);
  margin-bottom:18px;
}
.icon-tile.alt{ background:rgba(255,122,31,0.12); color:var(--accent-2); }

/* ---------- Header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  height:var(--header-h);
  display:flex;
  align-items:center;
  background:rgba(10,14,21,0.82);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.logo{
  display:flex;
  align-items:center;
  color:var(--text);
}
.site-logo-img{ height:36px; width:auto; display:block; }
.footer-brand .site-logo-img{ height:42px; }

.nav-links{
  display:flex;
  align-items:center;
  gap:30px;
}
.nav-links li{
  list-style:none;
  margin:0;
}
.nav-links a{
  font-size:0.94rem;
  font-weight:500;
  color:var(--text-muted);
  transition:color .15s ease;
  position:relative;
}
.nav-links a:hover, .nav-links a.is-active{ color:var(--text); }
.nav-links a.is-active::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:-22px;
  height:2px;
  background:var(--accent-2);
}

.header-actions{
  display:flex;
  align-items:center;
  gap:18px;
}
.phone-link{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  font-size:0.92rem;
  color:var(--text);
}
.phone-link .icon{ width:18px; height:18px; color:var(--accent); }

.nav-toggle{
  display:none;
  background:none;
  border:1px solid var(--border-light);
  border-radius:8px;
  color:var(--text);
  padding:8px;
  cursor:pointer;
}

@media (max-width:900px){
  .nav-links{
    position:fixed;
    top:var(--header-h);
    left:0; right:0;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:var(--bg-elevated);
    border-bottom:1px solid var(--border);
    max-height:0;
    overflow:hidden;
    transition:max-height .25s ease;
  }
  .nav-links.is-open{ max-height:480px; }
  .nav-links a{
    padding:16px 24px;
    border-bottom:1px solid var(--border);
  }
  .nav-links a.is-active::after{ display:none; }
  .phone-link span{ display:none; }
  .nav-toggle{ display:inline-flex; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  padding:96px 0 84px;
  overflow:hidden;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(25,230,230,0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(255,122,31,0.10), transparent 60%),
    var(--bg);
  border-bottom:1px solid var(--border);
}
.hero::before{
  content:'';
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
  pointer-events:none;
}
.hero-inner{ position:relative; z-index:1; }
.hero-grid{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:48px;
  align-items:center;
}
.hero.hero-narrow .hero-grid{ grid-template-columns:1fr; max-width:760px; margin:0 auto; text-align:center; }
.hero.hero-narrow .cta-row{ justify-content:center; }
.hero.hero-narrow .stat-row{ justify-content:center; }
@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; }
}
.hero h1{ margin-bottom:18px; }
.hero .lead{ margin-bottom:30px; max-width:560px; }
.hero.hero-narrow .lead{ margin-left:auto; margin-right:auto; }

.stat-row{
  display:flex;
  flex-wrap:wrap;
  gap:28px;
  margin-top:40px;
  padding-top:28px;
  border-top:1px solid var(--border);
}
.stat-row .stat-num{
  font-family:var(--font-head);
  font-size:1.6rem;
  font-weight:700;
  color:var(--text);
  display:block;
}
.stat-row .stat-label{
  font-size:0.82rem;
  color:var(--text-dim);
}

.hero-panel{
  background:var(--bg-card);
  border:1px solid var(--border-light);
  border-radius:var(--radius-lg);
  padding:28px;
  position:relative;
}
/* Contact page: force the form box and sidebar box to equal height */
.contact-equal-boxes{
  align-items:stretch !important;
}
.contact-equal-boxes > .reveal{
  display:flex;
  flex-direction:column;
  height:100%;
}
.contact-equal-boxes .wp-block-jetpack-contact-form{
  flex:1;
  display:flex;
  flex-direction:column;
  margin:0;
}
.contact-equal-boxes .hero-panel{
  flex:1;
  display:flex;
  flex-direction:column;
  margin:0;
}

.hero-panel-row{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:14px 0;
  border-bottom:1px solid var(--border);
}
.hero-panel-row:last-child{ border-bottom:none; }
.hero-panel-row .icon{ color:var(--accent); width:22px; height:22px; margin-top:2px; }
.hero-panel-row strong{ display:block; color:var(--text); font-size:0.96rem; margin-bottom:2px; }
.hero-panel-row span{ font-size:0.86rem; color:var(--text-dim); }
.pulse-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:0.74rem;
  font-weight:700;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--success);
  background:rgba(41,227,160,0.1);
  padding:6px 12px;
  border-radius:999px;
  margin-bottom:20px;
}
.pulse-dot{
  width:7px; height:7px;
  border-radius:50%;
  background:var(--success);
  box-shadow:0 0 0 0 rgba(41,227,160,0.7);
  animation:pulse 1.8s infinite;
}
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(41,227,160,0.55); }
  70%{ box-shadow:0 0 0 8px rgba(41,227,160,0); }
  100%{ box-shadow:0 0 0 0 rgba(41,227,160,0); }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb{
  font-size:0.84rem;
  color:var(--text-dim);
  margin-bottom:18px;
}
.breadcrumb a{ color:var(--text-dim); }
.breadcrumb a:hover{ color:var(--accent); }

/* ---------- Section headers ---------- */
.section-head{ max-width:680px; margin-bottom:48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head p{ margin-bottom:0; }

/* ---------- Grids & Cards ---------- */
.grid{ display:grid; gap:24px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-5{ grid-template-columns:repeat(5,1fr); }
@media (max-width:1024px){
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-5{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:680px){
  .grid-2, .grid-3, .grid-4, .grid-5{ grid-template-columns:1fr; }
}

.card{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:30px;
  transition:transform .2s ease, border-color .2s ease, background .2s ease;
}
a.card:hover, .card.hoverable:hover{
  transform:translateY(-4px);
  border-color:var(--border-light);
  background:var(--bg-card-hover);
}
.card h3{ margin-bottom:10px; }
.card p{ margin-bottom:0; font-size:0.94rem; }
.card-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:16px;
  font-size:0.88rem;
  font-weight:600;
  color:var(--accent);
}
.card-link .icon{ width:16px; height:16px; transition:transform .15s ease; }
a.card:hover .card-link .icon{ transform:translateX(3px); }

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:0.74rem;
  font-weight:700;
  letter-spacing:0.04em;
  text-transform:uppercase;
  padding:5px 11px;
  border-radius:999px;
  background:var(--bg-elevated);
  border:1px solid var(--border-light);
  color:var(--text-muted);
}
.badge-row{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:24px; }

/* ---------- Stat strip ---------- */
.stat-strip{
  background:var(--bg-elevated);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.stat-strip .grid{ padding:40px 0; }
.stat-block{ text-align:center; }
.stat-block .num{
  font-family:var(--font-head);
  font-size:clamp(1.8rem,3vw,2.4rem);
  font-weight:700;
  color:var(--accent);
}
.stat-block .lbl{ font-size:0.86rem; color:var(--text-muted); margin-top:4px; }

/* ---------- Process Steps ---------- */
.steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  position:relative;
}
@media (max-width:900px){ .steps{ grid-template-columns:1fr; } }
.step{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px 24px;
  position:relative;
}
.step-num{
  font-family:var(--font-head);
  font-weight:700;
  font-size:0.85rem;
  color:var(--bg);
  background:var(--accent);
  width:30px; height:30px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:16px;
}

/* ---------- Split / feature rows ---------- */
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  align-items:center;
}
@media (max-width:900px){ .split{ grid-template-columns:1fr; gap:32px; } }
.split.reverse > *:first-child{ order:2; }
.feature-list{ margin-top:8px; list-style:none; padding-left:0; }
.feature-list li{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:10px 0;
  color:var(--text);
  font-size:0.96rem;
}
.feature-list li::before{
  content:"";
  flex-shrink:0;
  width:20px; height:20px; margin-top:2px;
  background:var(--success);
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M8 12l3 3 5-6'/></svg>") center / contain no-repeat;
  mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M8 12l3 3 5-6'/></svg>") center / contain no-repeat;
}
.feature-list .icon{ color:var(--success); width:20px; height:20px; margin-top:2px; }
.shaded-section{ background:var(--bg-elevated); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }

/* Split sections built from native WordPress Columns blocks (so photos can be
   real, click-to-upload Image blocks with proper ALT text support) */
.split-section.wp-block-columns{
  max-width:var(--max-w);
  margin:88px auto;
  padding:0 24px;
  gap:56px;
  align-items:center;
}
.split-section.shaded-section{
  background:var(--bg-elevated);
  border-radius:var(--radius-lg);
  padding:56px 40px;
}
@media (max-width:768px){
  .split-section.wp-block-columns{ margin:64px auto; }
  .split-section.shaded-section{ padding:40px 24px; }
}
.split-section .wp-block-image{ margin-bottom:18px; }
.split-section .wp-block-image img{
  border-radius:14px;
  width:100%;
  height:auto;
  aspect-ratio:4/3;
  object-fit:cover;
}
.split-section .wp-block-image figcaption{ color:var(--text-muted); font-size:0.85rem; margin-top:8px; }
.photo-placeholder-block{
  aspect-ratio:4/3;
  border-radius:14px;
  border:1px dashed var(--border-light);
  background:var(--bg-elevated);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:8px;
  padding:24px;
  margin-bottom:18px;
  color:var(--text-muted);
  font-size:0.85rem;
}
.photo-placeholder-block .icon{ color:var(--accent); }
.photo-placeholder-block strong{ color:var(--text); font-size:0.92rem; }
.visual-panel{
  background:var(--bg-card);
  border:1px solid var(--border-light);
  border-radius:var(--radius-lg);
  padding:32px;
  min-height:280px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:16px;
  position:relative;
  overflow:hidden;
}
.visual-panel::after{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 85% 15%, rgba(25,230,230,0.16), transparent 55%);
  pointer-events:none;
}
.visual-icon-row{ display:flex; gap:14px; flex-wrap:wrap; position:relative; z-index:1; }
.visual-icon-row .icon-tile{ margin-bottom:0; }

/* ---------- Solution photos ---------- */
.visual-photo{
  width:100%;
  height:340px;
  border-radius:14px;
  overflow:hidden;
  position:relative;
  margin-bottom:18px;
  background:var(--bg-elevated);
  border:1px solid var(--border-light);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:1;
}
@media (max-width:600px){
  .visual-photo{ height:260px; }
}
.visual-photo img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}
.visual-photo img.is-broken{ display:none; }
.photo-fallback{
  display:none;
  position:absolute;
  inset:0;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:10px;
  color:var(--text-muted);
  font-size:0.82rem;
  text-align:center;
  padding:20px;
  background:linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
}
.visual-photo img.is-broken + .photo-fallback{ display:flex; }
.photo-fallback .icon{ width:32px; height:32px; color:var(--accent); }
.photo-fallback strong{ color:var(--text); font-size:0.88rem; }

/* ---------- Callout / CTA band ---------- */
.cta-band{
  background:linear-gradient(135deg, rgba(25,230,230,0.10), rgba(255,122,31,0.10));
  border:1px solid var(--border-light);
  border-radius:var(--radius-lg);
  padding:56px;
  text-align:center;
}
.cta-band h2{ margin-bottom:12px; }
.cta-band p{ max-width:560px; margin:0 auto 28px; }
@media (max-width:680px){ .cta-band{ padding:36px 20px; } }

.banner{
  background:var(--bg-elevated);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:20px 0;
}
.banner .container{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  text-align:center;
  font-size:0.92rem;
  color:var(--text-muted);
}
.banner strong{ color:var(--text); }

/* ---------- FAQ ---------- */
.faq-item{
  border:1px solid var(--border);
  border-radius:var(--radius);
  margin-bottom:12px;
  background:var(--bg-card);
  overflow:hidden;
}
.faq-item summary{
  list-style:none;
  cursor:pointer;
  padding:20px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  font-weight:600;
  color:var(--text);
  font-size:1rem;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary .icon{ color:var(--accent); transition:transform .2s ease; flex-shrink:0; }
.faq-item[open] summary .icon{ transform:rotate(180deg); }
.faq-item .faq-body{ padding:0 24px 22px; color:var(--text-muted); font-size:0.94rem; }

/* ---------- Forms ---------- */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:680px){ .form-grid{ grid-template-columns:1fr; } }
.form-group{ display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.form-group.full{ grid-column:1 / -1; }
label{ font-size:0.86rem; font-weight:600; color:var(--text); }
input, select, textarea{
  background:var(--bg-elevated);
  border:1px solid var(--border-light);
  border-radius:var(--radius-sm);
  padding:13px 16px;
  color:var(--text);
  font-family:var(--font-body);
  font-size:0.96rem;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder{ color:var(--text-dim); }
input:focus, select:focus, textarea:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
}
textarea{ resize:vertical; min-height:110px; }
.form-card{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:40px;
}
@media (max-width:680px){ .form-card{ padding:24px; } }
.form-note{ font-size:0.8rem; color:var(--text-dim); margin-top:4px; }

/* ---------- Footer ---------- */
.site-footer{
  background:var(--bg-elevated);
  border-top:1px solid var(--border);
  padding-top:64px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:40px;
  padding-bottom:48px;
}
@media (max-width:900px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .footer-grid{ grid-template-columns:1fr; }
}
.footer-brand .logo{ margin-bottom:14px; }
.footer-brand p{ font-size:0.9rem; max-width:280px; }
.footer-col h4{
  font-size:0.82rem;
  text-transform:uppercase;
  letter-spacing:0.06em;
  color:var(--text-dim);
  margin-bottom:18px;
  font-family:var(--font-body);
  font-weight:700;
}
.footer-col a{
  display:block;
  font-size:0.92rem;
  color:var(--text-muted);
  padding:7px 0;
}
.footer-col a:hover{ color:var(--accent); }
.footer-contact-item{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:0.9rem;
  color:var(--text-muted);
  margin-bottom:12px;
}
.footer-contact-item .icon{ width:18px; height:18px; color:var(--accent); margin-top:2px; }
.newsletter{ display:flex; gap:8px; margin-top:10px; }
.newsletter input{ flex:1; }
.social-row{ display:flex; gap:10px; margin-top:18px; }
.social-row a{
  width:36px; height:36px;
  border-radius:50%;
  border:1px solid var(--border-light);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.social-row a:hover{ border-color:var(--accent); color:var(--accent); }
.social-row .icon{ width:16px; height:16px; }

.footer-bottom{
  border-top:1px solid var(--border);
  padding:22px 0 calc(22px + var(--mobile-cta-space, 0px));
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  font-size:0.82rem;
  color:var(--text-dim);
}
.footer-bottom a{ color:var(--text-dim); }
.footer-bottom a:hover{ color:var(--accent); }
.footer-bottom-links{ display:flex; gap:18px; }

/* ---------- Mobile sticky CTA bar ---------- */
.mobile-cta-bar{
  display:none;
  position:fixed;
  bottom:0; left:0; right:0;
  z-index:99;
  background:var(--bg-elevated);
  border-top:1px solid var(--border-light);
  padding:10px 16px;
  gap:10px;
}
.mobile-cta-bar .btn{ flex:1; padding:13px 14px; font-size:0.9rem; }
@media (max-width:760px){
  .mobile-cta-bar{ display:flex; }
  body{ padding-bottom:72px; }
}

/* ---------- Scroll reveal ---------- */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* ---------- Misc page bits ---------- */
.divider{ height:1px; background:var(--border); margin:64px 0; }
.tag-list{ display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.kicker-card{
  display:flex;
  gap:16px;
  padding:22px 0;
  border-bottom:1px solid var(--border);
}
.kicker-card:last-child{ border-bottom:none; }
.kicker-card .num{
  font-family:var(--font-head);
  font-weight:700;
  font-size:1.4rem;
  color:var(--text-dim);
  width:40px;
  flex-shrink:0;
}
.thankyou-icon{
  width:84px; height:84px;
  border-radius:50%;
  background:rgba(41,227,160,0.12);
  color:var(--success);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 28px;
}
.thankyou-icon .icon{ width:42px; height:42px; }

/* ---------- Blog ---------- */
.post-card{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .2s ease, border-color .2s ease, background .2s ease;
}
a.post-card:hover{
  transform:translateY(-4px);
  border-color:var(--border-light);
  background:var(--bg-card-hover);
}
.post-card-thumb{
  width:100%;
  aspect-ratio:16/10;
  overflow:hidden;
  background:var(--bg-elevated);
  display:flex;
  align-items:center;
  justify-content:center;
}
.post-card-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.post-card-thumb .icon{ width:34px; height:34px; color:var(--text-dim); }
.post-card-body{ padding:24px; display:flex; flex-direction:column; flex:1; }
.post-card-meta{
  font-size:0.78rem;
  color:var(--text-dim);
  text-transform:uppercase;
  letter-spacing:0.04em;
  font-weight:600;
  margin-bottom:10px;
}
.post-card-meta .cat{ color:var(--accent); }
.post-card h3{ font-size:1.15rem; margin-bottom:10px; }
.post-card p{ margin-bottom:0; font-size:0.92rem; flex:1; }

.blog-pagination{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:56px;
  flex-wrap:wrap;
}
.blog-pagination a, .blog-pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  height:40px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid var(--border);
  color:var(--text-muted);
  font-size:0.9rem;
  font-weight:600;
}
.blog-pagination a:hover{ border-color:var(--accent); color:var(--accent); }
.blog-pagination .current{ background:var(--accent); border-color:var(--accent); color:var(--bg); }

.post-single-meta{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:center;
  color:var(--text-dim);
  font-size:0.88rem;
  margin-bottom:8px;
}
.post-single-meta .cat{
  color:var(--accent);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.04em;
  font-size:0.78rem;
}
.post-featured-image{
  width:100%;
  max-width:900px;
  margin:0 auto 48px;
  border-radius:var(--radius-lg);
  overflow:hidden;
  aspect-ratio:16/9;
  background:var(--bg-elevated);
}
.post-featured-image img{ width:100%; height:100%; object-fit:cover; display:block; }

.post-content{
  max-width:720px;
  margin:0 auto;
  font-size:1.05rem;
  line-height:1.75;
  color:var(--text-muted);
}
.post-content h2{ margin-top:44px; margin-bottom:18px; font-size:1.5rem; color:var(--text); }
.post-content h3{ margin-top:36px; margin-bottom:14px; font-size:1.2rem; color:var(--text); }
.post-content p{ margin-bottom:20px; }
.post-content ul, .post-content ol{ margin:0 0 20px; padding-left:1.4em; }
.post-content li{ margin-bottom:8px; }
.post-content a{ color:var(--accent); text-decoration:underline; text-underline-offset:2px; }
.post-content a:hover{ color:var(--accent-2); }
.post-content img{ width:100%; height:auto; border-radius:var(--radius); margin:8px 0 28px; display:block; }
.post-content blockquote{
  border-left:3px solid var(--accent);
  padding:4px 0 4px 20px;
  margin:28px 0;
  color:var(--text);
  font-style:italic;
}
.post-content strong{ color:var(--text); }
.post-content hr{ border:none; border-top:1px solid var(--border); margin:40px 0; }
.post-content code{
  background:var(--bg-elevated);
  padding:2px 6px;
  border-radius:4px;
  font-size:0.9em;
}

.post-nav{
  max-width:720px;
  margin:56px auto 0;
  display:flex;
  justify-content:space-between;
  gap:16px;
  border-top:1px solid var(--border);
  padding-top:32px;
}
.post-nav a{
  display:flex;
  flex-direction:column;
  max-width:45%;
  color:var(--text-muted);
}
.post-nav a:hover{ color:var(--accent); }
.post-nav .dir{ font-size:0.78rem; text-transform:uppercase; letter-spacing:0.04em; color:var(--text-dim); margin-bottom:6px; }
.post-nav .next{ text-align:right; margin-left:auto; }
.post-empty{ text-align:center; padding:60px 0; color:var(--text-muted); }

/* ---------- Jetpack Form block styling (matches site theme) ---------- */
.wp-block-jetpack-contact-form{
  max-width:600px;
  margin:0 auto;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:36px;
}
/* Jetpack sometimes nests an inner ".contact-form" wrapper inside the
   block above — reset it so you don't get a padded box inside a
   padded box (double border / extra gap) */
.wp-block-jetpack-contact-form .contact-form{
  background:none !important;
  border:none !important;
  padding:0 !important;
  margin:0 !important;
  max-width:none !important;
}
/* Standalone fallback, only applies if .contact-form appears on its
   own (not nested inside the block wrapper above) */
.contact-form:not(.wp-block-jetpack-contact-form .contact-form){
  max-width:600px;
  margin:0 auto;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:36px;
}
/* Force the form to align with its sidebar column, regardless of any
   default top spacing WordPress or Jetpack adds around the block */
.split > .reveal:first-child{ margin-top:0 !important; }
.split > .reveal:first-child > *:first-child,
.split .wp-block-jetpack-contact-form,
.split .contact-form{ margin-top:0 !important; }
.wp-block-jetpack-contact-form input[type="text"],
.wp-block-jetpack-contact-form input[type="email"],
.wp-block-jetpack-contact-form input[type="tel"],
.wp-block-jetpack-contact-form input[type="url"],
.wp-block-jetpack-contact-form input[type="number"],
.wp-block-jetpack-contact-form textarea,
.wp-block-jetpack-contact-form select,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select{
  width:100% !important;
  background:var(--bg-elevated) !important;
  border:1px solid var(--border-light) !important;
  border-radius:10px !important;
  color:var(--text) !important;
  padding:12px 14px !important;
  font-family:var(--font-body) !important;
  font-size:0.95rem !important;
}
.wp-block-jetpack-contact-form label,
.contact-form label{
  color:var(--text-muted) !important;
  font-size:0.88rem !important;
  font-weight:600 !important;
}
.wp-block-jetpack-contact-form .wp-block-button__link,
.wp-block-jetpack-contact-form button[type="submit"],
.contact-form button[type="submit"],
.contact-form input[type="submit"]{
  background:var(--accent-2) !important;
  color:var(--bg) !important;
  border:none !important;
  border-radius:999px !important;
  padding:14px 28px !important;
  font-weight:700 !important;
  cursor:pointer;
}
