/* SageSync Inc — HigherVisibility-style design system */

@font-face {
  font-family: "Mazzard";
  src: url("https://www.highervisibility.com/wp-content/themes/genesis-highervisibility/assets/fonts/webFonts/MazzardHRegular/font.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Mazzard";
  src: url("https://www.highervisibility.com/wp-content/themes/genesis-highervisibility/assets/fonts/webFonts/MazzardHMedium/font.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Mazzard";
  src: url("https://www.highervisibility.com/wp-content/themes/genesis-highervisibility/assets/fonts/webFonts/MazzardHSemiBold/font.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Mazzard";
  src: url("https://www.highervisibility.com/wp-content/themes/genesis-highervisibility/assets/fonts/webFonts/MazzardHBold/font.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #0c344a;
  --navy-soft: #192f57;
  --text: #5c6084;
  --nav: #394158;
  --purple: #6347fb;
  --purple-hover: #5238e0;
  --coral: #f56962;
  --lavender: #9e77e0;
  --bg-soft: #f8fafd;
  --white: #ffffff;
  --border: rgba(92, 96, 132, 0.12);
  --font: "Mazzard", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --wide: 1200px;
  --radius: 12px;
  --shadow: 0 12px 24px rgba(25, 47, 87, 0.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Header (HV top-nav) ── */
.hv-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 500;
  padding: 1.875rem 0;
}
.hv-header-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 12px;
}
.hv-logo { display: flex; align-items: center; flex-shrink: 0; }
.hv-logo img { height: 36px; width: auto; }
.hv-logo-text {
  font-size: 1.35rem; font-weight: 700; color: var(--white); letter-spacing: -0.02em;
}
.hv-header--light .hv-logo-text { color: var(--navy); }

.hv-nav { display: flex; align-items: center; margin-left: auto; gap: 0; }
.hv-nav > li { position: relative; }
.hv-nav > li > a,
.hv-nav > li > .nav-label {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px; font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,0.92); cursor: pointer; transition: color 0.15s;
}
.hv-header--light .hv-nav > li > a,
.hv-header--light .hv-nav > li > .nav-label { color: var(--nav); }
.hv-nav > li > a:hover,
.hv-nav > li:hover > .nav-label { color: var(--purple); }
.hv-nav > li > .nav-label::after {
  content: ""; width: 10px; height: 6px; opacity: 0.7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23fff' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hv-header--light .hv-nav > li > .nav-label::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23394158' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
}

.hv-megamenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all 0.18s; border: 1px solid var(--border);
}
.hv-nav > li:hover .hv-megamenu { opacity: 1; visibility: visible; transform: none; }
.hv-megamenu a {
  display: block; padding: 10px 22px; font-size: 14px; font-weight: 500; color: var(--nav);
}
.hv-megamenu a:hover { color: var(--purple); background: rgba(99,71,251,0.04); }
.hv-megamenu .mega-desc {
  display: block; font-size: 13px; font-weight: 400; color: var(--text); margin-top: 2px;
}

.hv-header-email {
  font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.95);
  padding: 10px 16px; white-space: nowrap;
}
.hv-header--light .hv-header-email { color: var(--nav); }
.hv-header-email:hover { color: var(--purple); }

.hv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; border: none; cursor: pointer;
  border-radius: 8px; transition: background 0.15s, transform 0.15s;
}
.hv-btn-purple {
  background: var(--purple); color: var(--white) !important;
  font-size: 15px; padding: 14px 22px;
}
.hv-btn-purple:hover { background: var(--purple-hover); }
.hv-btn-outline {
  background: transparent; color: var(--white) !important;
  border: 2px solid rgba(255,255,255,0.35); font-size: 15px; padding: 12px 22px;
}
.hv-btn-outline:hover { border-color: var(--white); }

.hv-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: auto;
}
.hv-menu-btn span {
  display: block; width: 24px; height: 2px; background: var(--white);
  margin: 5px 0; transition: 0.2s;
}
.hv-header--light .hv-menu-btn span { background: var(--navy); }

/* ── Hero ── */
.hv-hero {
  position: relative; color: var(--white); overflow: hidden;
  padding: 12.25rem 24px 5.625rem;
  background: linear-gradient(135deg, rgba(10,42,61,0.92) 0%, rgba(12,52,74,0.88) 45%, rgba(21,45,82,0.9) 100%),
              url("../images/hero-consulting.jpg") center/cover no-repeat;
}
.hv-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(99,71,251,0.15), transparent 55%);
  pointer-events: none;
}
.hv-hero-inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.hv-hero h1 {
  font-size: clamp(2rem, 5vw, 3.375rem); font-weight: 600; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 20px; color: var(--white);
}
.hv-hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 400;
  color: rgba(255,255,255,0.88); max-width: 720px; margin: 0 auto 32px;
}
.hv-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ── Section utilities ── */
.hv-section { padding: 64px 24px; }
.hv-section-soft { background: var(--bg-soft); }
.hv-inner { max-width: var(--wide); margin: 0 auto; }
.hv-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 12px;
}
.hv-section h2 {
  font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 600; color: var(--navy);
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px;
}
.hv-section h4 {
  font-size: 1.35rem; font-weight: 600; color: var(--navy); margin-bottom: 10px;
}
.hv-lead { font-size: 1.05rem; max-width: 720px; margin-bottom: 32px; }

/* ── Service grid ── */
.hv-services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px;
}
.hv-service-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border); transition: box-shadow 0.2s, transform 0.2s;
  display: block;
}
.hv-service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.hv-service-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.hv-service-icon--purple { background: var(--purple); }
.hv-service-icon--coral { background: var(--coral); }
.hv-service-icon--lavender { background: var(--lavender); }
.hv-service-icon svg { width: 24px; height: 24px; stroke: white; fill: none; stroke-width: 2; }
.hv-service-card h4 { font-size: 1.15rem; margin-bottom: 8px; }
.hv-service-card p { font-size: 15px; margin-bottom: 16px; }
.hv-learn-more {
  font-size: 14px; font-weight: 600; color: var(--purple);
  display: inline-flex; align-items: center; gap: 6px;
}
.hv-learn-more::after { content: "→"; transition: transform 0.15s; }
.hv-service-card:hover .hv-learn-more::after { transform: translateX(3px); }

/* ── Problem cards ── */
.hv-problems { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.hv-problem-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border);
}

/* ── Methodology steps ── */
.hv-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.hv-step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--purple);
  color: white; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}

/* ── Comparison table ── */
.hv-compare {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--white);
}
.hv-compare-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0;
  border-bottom: 1px solid var(--border);
}
.hv-compare-row:last-child { border-bottom: none; }
.hv-compare-row > div { padding: 18px 22px; font-size: 15px; }
.hv-compare-head { background: var(--bg-soft); font-weight: 600; color: var(--navy); }
.hv-compare-label { font-weight: 600; color: var(--navy); background: rgba(248,250,253,0.6); }
.hv-compare-good { color: var(--navy); font-weight: 500; }

/* ── Industries ── */
.hv-industries {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.hv-industry-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); display: block;
}
.hv-industry-card:hover { border-color: var(--purple); box-shadow: var(--shadow); }
.hv-industry-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.hv-industry-card p { font-size: 14px; }

/* ── Blog cards ── */
.hv-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.hv-blog-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--border); }
.hv-blog-card:hover { box-shadow: var(--shadow); }
.hv-blog-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--bg-soft); }
.hv-blog-body { padding: 20px; }
.hv-blog-tag { font-size: 12px; font-weight: 600; color: var(--purple); text-transform: uppercase; letter-spacing: 0.06em; }
.hv-blog-card h4 { font-size: 1.05rem; margin-top: 8px; color: var(--navy); }

/* ── CTA band ── */
.hv-cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #152d52 100%);
  color: white; padding: 72px 24px; text-align: center;
}
.hv-cta-band h2 { color: white; margin-bottom: 12px; }
.hv-cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 28px; }

/* ── Page hero (inner pages) ── */
.hv-page-hero {
  background: linear-gradient(135deg, #0a2a3d, #0c344a);
  color: white; padding: 10rem 24px 4rem; text-align: center;
}
.hv-page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; color: white; margin-bottom: 12px; }
.hv-page-hero p { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto; }

.hv-header--inner {
  position: relative; background: var(--white); border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.hv-header--inner .hv-logo-text { color: var(--navy); }
.hv-header--inner .hv-nav > li > a,
.hv-header--inner .hv-nav > li > .nav-label { color: var(--nav); }
.hv-header--inner .hv-nav > li > .nav-label::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23394158' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
}
.hv-header--inner .hv-header-email { color: var(--nav); }
.hv-header--inner .hv-menu-btn span { background: var(--navy); }

/* ── Content blocks ── */
.hv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hv-split-img { border-radius: var(--radius); overflow: hidden; }
.hv-split-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hv-checklist { margin: 20px 0; }
.hv-checklist li {
  padding: 8px 0 8px 28px; position: relative; font-size: 16px;
}
.hv-checklist li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--purple);
}

.hv-notice {
  background: rgba(99,71,251,0.06); border-left: 3px solid var(--purple);
  padding: 16px 20px; border-radius: 0 8px 8px 0; font-size: 15px; margin-top: 24px;
}

/* ── Contact form ── */
.hv-form { max-width: 560px; }
.hv-form label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.hv-form input, .hv-form select, .hv-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-family: var(--font); font-size: 15px; color: var(--navy);
  margin-bottom: 16px; background: var(--white);
}
.hv-form input:focus, .hv-form select:focus, .hv-form textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(99,71,251,0.12);
}

/* ── Footer ── */
.hv-footer {
  background: var(--navy); color: rgba(255,255,255,0.75);
  padding: 56px 24px 32px; font-size: 14px;
}
.hv-footer-grid {
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px;
}
.hv-footer h4 { color: white; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.hv-footer a { color: rgba(255,255,255,0.75); display: block; padding: 5px 0; }
.hv-footer a:hover { color: white; }
.hv-footer-bottom {
  max-width: var(--wide); margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 13px;
}

/* ── Stats (modest) ── */
.hv-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 28px; }
.hv-stat strong { display: block; font-size: 1.75rem; font-weight: 700; color: var(--navy); }
.hv-stat span { font-size: 14px; color: var(--text); }

/* ── Mobile ── */
@media (max-width: 1024px) {
  .hv-nav { display: none; }
  .hv-header-email { display: none; }
  .hv-header .hv-btn-purple { display: none; }
  .hv-menu-btn { display: block; }
  .hv-nav.open {
    display: flex; flex-direction: column; position: fixed;
    inset: 0; background: white; padding: 100px 24px 40px; overflow-y: auto; z-index: 400;
  }
  .hv-nav.open > li > a, .hv-nav.open > li > .nav-label { color: var(--nav); padding: 14px 0; }
  .hv-nav.open .hv-megamenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 12px 16px; display: none;
  }
  .hv-nav.open > li.open .hv-megamenu { display: block; }
  .hv-split { grid-template-columns: 1fr; }
  .hv-compare-row { grid-template-columns: 1fr; }
  .hv-compare-row > div:nth-child(2)::before { content: "Typical: "; font-weight: 600; color: var(--navy); }
  .hv-compare-row > div:nth-child(3)::before { content: "SageSync: "; font-weight: 600; color: var(--purple); }
  .hv-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hv-footer-grid { grid-template-columns: 1fr; }
  .hv-services-grid { grid-template-columns: 1fr; }
}
