/* ============================================================
   Connectify Me Theme — Main Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0f0d0b;
  --ink-muted: #6b6560;
  --ink-faint: #b8b4af;
  --cream: #faf8f5;
  --warm: #f3efe8;
  --border: rgba(15,13,11,0.1);
  --accent: #119ADE;
  --accent-2: #FD6A00;
  --accent-soft: #e6f4fc;
  --navy: #0d2a3e;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }

/* ── NAV ───────────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 5vw;
  background: rgba(250,248,245,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo a,
.nav-logo img { display: block; height: 36px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links .nav-item { list-style: none; }

.nav-links a {
  font-size: 0.875rem;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.btn-nav {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 100px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  transition: opacity 0.2s !important;
  text-decoration: none !important;
}

.btn-nav:hover { opacity: 0.82 !important; color: #fff !important; }

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary:hover { transform: translateY(-1px); opacity: 0.9; color: #fff; }

.btn-primary.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.875rem; }

.btn-ghost {
  color: var(--ink-muted);
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--ink); }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 5vw 5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.hero h1 em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 460px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

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

/* Survey mockup card */
.hero-visual { position: relative; }

.card-mock {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(15,13,11,0.08);
  position: relative;
}

.card-mock-header {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-bar {
  height: 4px;
  background: var(--warm);
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 60%;
  background: var(--accent);
  border-radius: 2px;
  animation: progress-anim 2.5s ease-in-out infinite alternate;
}

@keyframes progress-anim {
  from { width: 40%; }
  to   { width: 75%; }
}

.question-text {
  font-family: 'Instrument Serif', serif;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  color: var(--ink);
}

.options-list { display: flex; flex-direction: column; gap: 0.6rem; }

.option-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.option-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.option-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}

.option-item.active .option-dot {
  background: var(--accent);
  border-color: var(--accent);
}

/* Floating stats */
.floating-stat {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 8px 24px rgba(15,13,11,0.07);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.floating-stat.stat-a { top: -1.5rem; right: -2rem; animation: float-a 3s ease-in-out infinite; }
.floating-stat.stat-b { bottom: -1.5rem; left: -2rem; animation: float-b 3.5s ease-in-out infinite; }

@keyframes float-a { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes float-b { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.stat-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon.green { background: #edf7ed; }
.stat-icon.blue  { background: #e8f0fb; }
.stat-label { color: var(--ink-faint); font-size: 0.7rem; }
.stat-value { font-weight: 500; color: var(--ink); font-size: 0.9rem; }

/* ── LOGOS BAR ─────────────────────────────────────────────── */
.logos-section {
  padding: 3rem 5vw;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--warm);
}

.logos-label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
}

.logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.logo-badge { font-size: 0.8rem; font-weight: 500; color: var(--ink-faint); letter-spacing: 0.04em; }

/* ── SECTION SHARED ────────────────────────────────────────── */
.section-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 600px;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--ink-muted);
  max-width: 500px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 4rem;
}

/* ── FEATURES ──────────────────────────────────────────────── */
.features {
  padding: 7rem 5vw;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15,13,11,0.07);
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}

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

.feature-card h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--ink); }
.feature-card p  { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.65; font-weight: 300; }

/* ── STATS ─────────────────────────────────────────────────── */
.stats-section {
  background: var(--navy);
  padding: 5rem 5vw;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat-block { padding: 2rem 1rem; }

.stat-number {
  font-family: 'Instrument Serif', serif;
  font-size: 3.5rem;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.stat-number span { color: var(--accent); }

.stat-desc { font-size: 0.875rem; color: rgba(255,255,255,0.5); font-weight: 300; line-height: 1.5; }

/* ── HOW IT WORKS ──────────────────────────────────────────── */
.how-section {
  padding: 7rem 5vw;
  max-width: 1200px;
  margin: 0 auto;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.6% + 1rem);
  right: calc(16.6% + 1rem);
  height: 1px;
  background: var(--border);
}

.step { text-align: center; padding: 0 1rem; }

.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  color: var(--accent);
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.step h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--ink); }
.step p  { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.65; font-weight: 300; }

/* ── TESTIMONIAL ───────────────────────────────────────────── */
.testimonial-section {
  background: var(--warm);
  padding: 6rem 5vw;
  text-align: center;
}

.testimonial-quote {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 780px;
  margin: 0 auto 2rem;
  letter-spacing: -0.02em;
  font-style: normal;
}

.testimonial-quote em { font-style: italic; color: var(--accent); }

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--accent);
}

.author-name  { font-weight: 500; font-size: 0.875rem; color: var(--ink); }
.author-role  { font-size: 0.75rem; color: var(--ink-faint); }

/* ── CTA ───────────────────────────────────────────────────── */
.cta-section {
  padding: 7rem 5vw;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.cta-section h2 em { font-style: italic; color: var(--accent); }

.cta-section > p {
  font-size: 1rem;
  color: var(--ink-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

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

.cta-fine { margin-top: 1.25rem; font-size: 0.75rem; color: var(--ink-faint); }

/* ── FOOTER ────────────────────────────────────────────────── */
#site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 5vw;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img { height: 28px; width: auto; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links li { list-style: none; }

.footer-links a {
  font-size: 0.8rem;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--ink); }

.footer-copy { font-size: 0.8rem; color: var(--ink-faint); }

/* ── INNER PAGES ───────────────────────────────────────────── */
.page-main {
  padding-top: 80px; /* offset for fixed nav */
  min-height: 60vh;
}

.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 5vw;
}

.page-container--narrow { max-width: 760px; }

.page-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.page-header-inner { padding-top: 2rem; }

.page-hero-image {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.page-hero-image img { width: 100%; object-fit: cover; max-height: 420px; }

.page-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--ink-muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 600px;
}

.page-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-muted);
}

.page-content h2, .page-content h3, .page-content h4 {
  font-family: 'Instrument Serif', serif;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.page-content h2 { font-size: 1.75rem; }
.page-content h3 { font-size: 1.35rem; }

.page-content p  { margin-bottom: 1.25rem; }

.page-content ul, .page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

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

.page-content a { color: var(--accent); text-decoration: underline; }
.page-content a:hover { opacity: 0.8; }

.page-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.5rem;
  margin: 2rem 0;
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  font-family: 'Instrument Serif', serif;
  font-size: 1.1rem;
  color: var(--ink);
}

.page-content img {
  border-radius: 12px;
  margin: 1.5rem 0;
}

/* ── BLOG INDEX ────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15,13,11,0.07); }

.post-card-thumb img { width: 100%; height: 200px; object-fit: cover; }

.post-card-body { padding: 1.5rem; }

.post-card-meta { font-size: 0.75rem; color: var(--ink-faint); margin-bottom: 0.5rem; letter-spacing: 0.04em; text-transform: uppercase; }

.post-card-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--accent); }

.post-card-excerpt { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.6; margin-bottom: 1.25rem; font-weight: 300; }

/* ── PAGINATION ────────────────────────────────────────────── */
.pagination { margin-top: 3rem; text-align: center; }

.pagination .nav-links a,
.pagination .nav-links span {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--ink-muted);
  text-decoration: none;
  transition: all 0.2s;
}

.pagination .nav-links a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .nav-links .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── SINGLE POST ───────────────────────────────────────────── */
.single-post-thumb { border-radius: 16px; overflow: hidden; margin-bottom: 2.5rem; }
.single-post-thumb img { width: 100%; max-height: 480px; object-fit: cover; }

.single-post-content { margin-top: 2rem; }

.single-post-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }

.post-nav { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; }
.post-nav a { color: var(--accent); text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }

/* ── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: 1fr; gap: 0; }
  .stat-block    { padding: 1.5rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps-row { grid-template-columns: 1fr; }
  .steps-row::before { display: none; }
  .features-grid { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(250,248,245,0.97);
    backdrop-filter: blur(12px);
    padding: 1rem 5vw 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
  }

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

  .nav-toggle { display: flex; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .logos-row { gap: 1.5rem; }
  .posts-grid { grid-template-columns: 1fr; }
}

/* ── WP ADMIN BAR OFFSET ───────────────────────────────────── */
.admin-bar #site-nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #site-nav { top: 46px; } }
