/* =============================================
   VISIBLYTICS — MAIN STYLESHEET
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600;700&family=Instrument+Sans:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --white: #ffffff;
  --off-white: #f8f9fc;
  --light-gray: #f1f4f9;
  --border: #e2e8f4;
  --text-primary: #0f1b2d;
  --text-secondary: #4a5568;
  --text-muted: #8896aa;
  --blue-primary: #0a6aff;
  --blue-dark: #0052cc;
  --blue-light: #e8f0ff;
  --blue-mid: #c5d9ff;
  --cyan: #00b4d8;
  --cyan-light: #e0f7fc;
  --accent: #0a6aff;
  --shadow-sm: 0 1px 3px rgba(10,30,60,0.08);
  --shadow-md: 0 4px 16px rgba(10,30,60,0.10);
  --shadow-lg: 0 8px 32px rgba(10,30,60,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', sans-serif;
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bricolage Grotesque', sans-serif;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }

/* ── NAVBAR ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo img,
.site-logo .site-logo-img,
.site-logo .custom-logo {
  height: 44px !important;
  width: auto !important;
  max-width: 48px !important;
  display: block;
  object-fit: contain;
}

.logo-text {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
  text-decoration: none;
}

.main-nav a:hover { color: var(--blue-primary); }

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-primary);
  transition: width 0.2s;
}

.main-nav a:hover::after { width: 100%; }

.nav-cta {
  background: var(--blue-primary) !important;
  color: white !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--blue-dark) !important;
  transform: translateY(-1px) !important;
  color: white !important;
}

.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--blue-primary);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(10,106,255,0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10,106,255,0.4);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ── HERO ── */
.hero-section {
  background: linear-gradient(160deg, #f0f6ff 0%, #ffffff 50%, #f0faff 100%);
  padding: 90px 5% 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(10,106,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,180,216,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-light);
  color: var(--blue-primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
  border: 1px solid var(--blue-mid);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-section h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.hero-section h1 span {
  background: linear-gradient(135deg, var(--blue-primary), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.hero-stat-icon {
  width: 28px;
  height: 28px;
  background: var(--blue-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ── SEARCH ── */
.search-section {
  padding: 50px 5%;
  background: var(--white);
}

.search-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.search-inner h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.search-box {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s;
  background: white;
}

.search-box:focus-within {
  border-color: var(--blue-primary);
  box-shadow: 0 4px 20px rgba(10,106,255,0.15);
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 24px;
  font-size: 15px;
  font-family: 'Instrument Sans', sans-serif;
  color: var(--text-primary);
  background: transparent;
}

.search-box input::placeholder { color: var(--text-muted); }

.search-box button {
  background: var(--blue-primary);
  color: white;
  border: none;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Instrument Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.search-box button:hover { background: var(--blue-dark); }

/* ── SECTION SHARED ── */
.vb-section { padding: 70px 5%; }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.section-header h2 span { color: var(--blue-primary); }

.view-all {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
  text-decoration: none;
}

.view-all:hover { gap: 8px; }

/* ── CATEGORIES ── */
.categories-section { background: var(--off-white); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.cat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}

.cat-card:hover {
  border-color: var(--blue-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 22px;
}

.cat-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cat-card p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── TOOLS ── */
.tools-section { background: var(--white); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.tool-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
}

.tool-card:hover {
  border-color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.tool-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.tool-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.tool-tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 500;
}

/* ── BLOGS ── */
.blog-section { background: var(--off-white); }

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

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

.blog-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-body { padding: 20px 22px 24px; }

.blog-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-primary);
  margin-bottom: 8px;
}

.blog-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.blog-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ── SERVICES ── */
.services-section { background: var(--white); }

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

.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--cyan));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
  text-decoration: none;
}

.service-link:hover { gap: 8px; }

/* ── STATS ── */
.stats-section {
  background: linear-gradient(135deg, #0a6aff 0%, #0052cc 50%, #003d99 100%);
  padding: 70px 5%;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item h3 {
  font-size: 44px;
  font-weight: 700;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.stat-item p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
}

/* ── NEWSLETTER ── */
.newsletter-section {
  background: var(--off-white);
  padding: 70px 5%;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.newsletter-inner p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 15px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-md);
}

.newsletter-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 15px 24px;
  font-size: 14px;
  font-family: 'Instrument Sans', sans-serif;
  background: transparent;
}

.newsletter-form button {
  background: var(--blue-primary);
  color: white;
  border: none;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Bricolage Grotesque', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--blue-dark); }

/* ── GUEST POST ── */
.guest-post-section {
  background: white;
  padding: 50px 5%;
}

.guest-inner {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--cyan-light) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--blue-mid);
}

.guest-text h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.guest-text p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 480px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.85);
  padding: 60px 5% 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo-text {
  color: white;
  font-size: 22px;
  margin-bottom: 12px;
  display: block;
}

.footer-brand > a {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: white;
}

.social-btn:hover { background: var(--blue-primary); color: white; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: white;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── WORDPRESS CORE STYLES ── */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { clear: both; display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-muted); text-align: center; }
.sticky { /* WordPress sticky post */ }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ── BLOG / ARCHIVE PAGE ── */
.page-header {
  background: var(--off-white);
  padding: 60px 5%;
  border-bottom: 1px solid var(--border);
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.archive-section {
  padding: 60px 5%;
  background: var(--white);
}

.archive-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}

/* ── SINGLE POST ── */
.single-post-wrap {
  max-width: 780px;
  margin: 60px auto;
  padding: 0 5%;
}

.post-header { margin-bottom: 32px; }

.post-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-primary);
  margin-bottom: 12px;
  display: block;
}

.post-header h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.post-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.post-featured-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.post-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 16px;
  letter-spacing: -0.3px;
}

.post-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.post-content p { margin-bottom: 20px; }

.post-content ul, .post-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
  list-style: disc;
}

.post-content li { margin-bottom: 8px; }

.post-content a { color: var(--blue-primary); text-decoration: underline; }

.post-content blockquote {
  border-left: 4px solid var(--blue-primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--blue-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.post-content code {
  background: var(--light-gray);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-family: monospace;
}

.post-content pre {
  background: var(--text-primary);
  color: white;
  padding: 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 20px;
}

.post-content img {
  border-radius: var(--radius);
  margin: 16px 0;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
}

.pagination a, .pagination span {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text-secondary);
}

.pagination a:hover, .pagination .current {
  background: var(--blue-primary);
  color: white;
  border-color: var(--blue-primary);
}

/* ── SIDEBAR ── */
.has-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 5%;
}

.widget {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.widget-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ── SERVICES PAGE ── */
.services-page-section {
  padding: 70px 5%;
  background: var(--white);
}

.services-page-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── CONTACT PAGE ── */
.contact-section {
  padding: 70px 5%;
  background: var(--white);
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Instrument Sans', sans-serif;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
  background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(10,106,255,0.1);
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px 5%;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    z-index: 99;
  }
  .main-nav.open ul {
    flex-direction: column;
    gap: 16px;
  }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .guest-inner { padding: 32px 24px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: 1fr; }
  .has-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; align-items: center; gap: 16px; }
  .archive-grid { grid-template-columns: 1fr; }
}

/* ── MEGA MENU ── */
.has-mega-menu { position: relative; }
.tools-nav-link { display: flex; align-items: center; gap: 4px; }
.nav-arrow { font-size: 10px; transition: transform 0.2s; display: inline-block; }
.has-mega-menu:hover .nav-arrow { transform: rotate(180deg); }

.mega-menu-wrap {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    width: 860px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(10,30,60,0.14);
    padding: 28px;
    z-index: 200;
    animation: megaFadeIn 0.15s ease;
}

@keyframes megaFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.mega-menu-wrap::before {
    content: '';
    position: absolute;
    top: -6px; left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px; height: 12px;
    background: white;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.has-mega-menu:hover .mega-menu-wrap,
.mega-menu-wrap:hover { display: block; }

.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 32px;
}

.mega-col-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.mega-link {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0;
    text-decoration: none;
    transition: color 0.15s;
    line-height: 1.5;
}

.mega-link:hover { color: var(--blue-primary); }

.mega-link--all {
    color: var(--blue-primary) !important;
    font-weight: 500;
    margin-top: 8px;
    font-size: 12px;
}

@media (max-width: 1024px) {
    .mega-menu-wrap { width: 600px; }
    .mega-menu-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mega-menu-wrap { display: none !important; }
}

/* ── SERVICES MEGA MENU (narrower — 3 cols) ── */
.mega-menu-wrap--services {
    width: 640px !important;
}
.mega-menu-inner--services {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* ── SERVICE CARDS AS LINKS ── */
a.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
}
a.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-primary);
}
a.service-card h3 { color: var(--text-primary); }
a.service-card p  { color: var(--text-secondary); }


/* ── Tool card quick-use link ──────────────────────────── */
.tool-card-use {
    font-size: 11px;
    font-weight: 600;
    color: var(--blue-primary, #0a6aff);
    letter-spacing: .02em;
    transition: color .15s;
}
.tool-card:hover .tool-card-use {
    color: var(--blue-dark, #0051cc);
    text-decoration: underline;
}
.tool-card--api {
    opacity: .72;
    cursor: default;
}
