/* ═══════════════════════════════════════════════════════════
   HiGuppy Professional Pages — Design System (design.md)
   Scoped under .higuppy-page — safe for WP/Elementor coexistence
   ═══════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Nunito+Sans:wght@700;800;900&display=swap");

.higuppy-page {
  --hg-navy: #0B2447;
  --hg-navy-2: #123A5F;
  --hg-deep-blue: #064A6D;
  --hg-aqua: #19BFD0;
  --hg-aqua-soft: #EAFBFF;
  --hg-aqua-2: #DDF8FF;
  --hg-coral: #FF6847;
  --hg-coral-hover: #F45132;
  --hg-coral-soft: #FFF1EC;
  --hg-green: #32C781;
  --hg-yellow: #FFD84D;
  --hg-white: #FFFFFF;
  --hg-bg: #F7FCFF;
  --hg-bg-warm: #FFFDF8;
  --hg-card: #FFFFFF;
  --hg-border: #E5EEF5;
  --hg-text: #17324D;
  --hg-muted: #66788A;
  --hg-light-muted: #8EA1B3;
  --hg-shadow-sm: 0 8px 24px rgba(11, 36, 71, 0.08);
  --hg-shadow-md: 0 16px 40px rgba(11, 36, 71, 0.12);
  --hg-shadow-lg: 0 24px 70px rgba(11, 36, 71, 0.16);
  --hg-radius-sm: 12px;
  --hg-radius-md: 18px;
  --hg-radius-lg: 28px;
  --hg-radius-xl: 36px;
  --hg-radius-pill: 999px;
  --hg-font-heading: "Nunito Sans", "Inter", "Poppins", sans-serif;
  --hg-font-body: "Inter", "Nunito Sans", Arial, sans-serif;
  --hg-max: 1320px;
}

.higuppy-page,
.higuppy-page * {
  box-sizing: border-box;
}

.higuppy-page {
  margin: 0;
  overflow-x: clip;
  color: var(--hg-text);
  font-family: var(--hg-font-body);
  background: var(--hg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.higuppy-page a {
  color: inherit;
  text-decoration: none;
}

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

.higuppy-page h1,
.higuppy-page h2,
.higuppy-page h3,
.higuppy-page h4 {
  font-family: var(--hg-font-heading);
  color: var(--hg-navy);
  margin: 0;
  line-height: 1.12;
}

.higuppy-page p {
  margin: 0;
}

.higuppy-page ul,
.higuppy-page ol {
  margin: 0;
  padding: 0;
}

/* ─── Layout ─────────────────────────────────────────────── */
.hg-container {
  width: min(var(--hg-max), calc(100% - 72px));
  margin-inline: auto;
}

.hg-section {
  padding: 96px 0;
}

.hg-section-sm {
  padding: 72px 0;
}

.hg-section-soft {
  background: linear-gradient(180deg, var(--hg-bg) 0%, var(--hg-white) 100%);
}

.hg-section-aqua {
  background: linear-gradient(180deg, var(--hg-aqua-soft) 0%, var(--hg-white) 92%);
}

.hg-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.hg-section-head .hg-lead {
  margin-inline: auto;
}

.hg-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  align-items: center;
}

.hg-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.hg-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* ─── Typography ─────────────────────────────────────────── */
.hg-h1,
.higuppy-page h1 {
  font-size: clamp(48px, 5vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--hg-navy);
}

.hg-h2,
.higuppy-page h2 {
  font-size: clamp(34px, 3vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--hg-navy);
}

.hg-h3,
.higuppy-page h3 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--hg-navy);
}

.hg-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--hg-muted);
}

.hg-lead {
  font-size: 18px;
  line-height: 1.72;
  color: var(--hg-muted);
  max-width: 680px;
}

.hg-eyebrow {
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hg-coral);
  font-weight: 800;
  margin: 0 0 14px;
}

.hg-small {
  font-size: 13px;
  line-height: 1.5;
  color: var(--hg-light-muted);
}

/* ─── Header ─────────────────────────────────────────────── */
.hg-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  width: min(var(--hg-max), calc(100% - 72px));
  margin: 24px auto 0;
  min-height: 76px;
  padding: 0 28px;
  border-radius: var(--hg-radius-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 60px rgba(16, 36, 71, 0.12);
  border: 1px solid rgba(229, 238, 245, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hg-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--hg-navy);
  font-family: var(--hg-font-heading);
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.hg-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--hg-aqua), var(--hg-deep-blue));
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(25, 191, 208, 0.35);
}

.hg-logo span em {
  font-style: normal;
  color: var(--hg-aqua);
}

.hg-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hg-nav a {
  font-size: 14px;
  font-weight: 700;
  color: var(--hg-navy);
  padding: 28px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hg-nav a:hover,
.hg-nav a.is-active {
  color: var(--hg-coral);
  border-bottom-color: var(--hg-coral);
}

.hg-header-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hg-header-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hg-white);
  border: 1px solid var(--hg-border);
  color: var(--hg-navy);
  font-size: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hg-header-icons a:hover {
  border-color: var(--hg-aqua);
  transform: translateY(-1px);
}

.hg-menu-toggle {
  display: none;
  border: 0;
  background: var(--hg-coral);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 20px;
  cursor: pointer;
}

.hg-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(11, 36, 71, 0.45);
  backdrop-filter: blur(4px);
}

.hg-mobile-nav.is-open {
  display: block;
}

.hg-mobile-nav-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--hg-white);
  padding: 28px 24px;
  box-shadow: var(--hg-shadow-lg);
  overflow-y: auto;
}

.hg-mobile-nav-panel a {
  display: block;
  padding: 14px 0;
  font-weight: 700;
  color: var(--hg-navy);
  border-bottom: 1px solid var(--hg-border);
}

.hg-mobile-close {
  border: 0;
  background: var(--hg-aqua-soft);
  color: var(--hg-navy);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  margin-bottom: 20px;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hg-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(25, 191, 208, 0.12), transparent 28%),
    radial-gradient(circle at 12% 80%, rgba(255, 104, 71, 0.06), transparent 24%),
    linear-gradient(180deg, #EAFBFF 0%, #FFFFFF 92%);
  padding: 130px 0 90px;
  position: relative;
  overflow: hidden;
}

.hg-hero-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(25, 191, 208, 0.12);
  pointer-events: none;
}

.hg-hero-bubble-1 {
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: -80px;
}

.hg-hero-bubble-2 {
  width: 240px;
  height: 240px;
  right: 8%;
  top: 60px;
  background: rgba(255, 216, 77, 0.15);
}

.hg-hero-grid {
  width: min(var(--hg-max), calc(100% - 72px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hg-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--hg-muted);
  margin-bottom: 24px;
}

.hg-breadcrumb a {
  color: var(--hg-coral);
}

.hg-hero-copy .hg-lead {
  margin: 22px 0 28px;
}

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

.hg-mini-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 700;
  color: var(--hg-deep-blue);
}

.hg-mini-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hg-hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.hg-hero-visual::before {
  content: "";
  position: absolute;
  width: min(520px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 251, 255, 0.9), rgba(255, 255, 255, 0));
}

.hg-hero-fish {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  filter: drop-shadow(0 32px 44px rgba(16, 36, 71, 0.18));
}

.hg-hero-card-float {
  position: absolute;
  right: 0;
  bottom: 24px;
  z-index: 3;
  max-width: 260px;
  background: var(--hg-white);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-md);
  padding: 20px 22px;
  box-shadow: var(--hg-shadow-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--hg-muted);
  line-height: 1.55;
}

/* ─── Buttons ────────────────────────────────────────────── */
.hg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--hg-radius-pill);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: var(--hg-font-body);
}

.hg-btn-primary {
  background: var(--hg-coral);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 104, 71, 0.25);
}

.hg-btn-primary:hover {
  background: var(--hg-coral-hover);
  transform: translateY(-2px);
  color: #fff;
}

.hg-btn-secondary {
  background: #fff;
  color: var(--hg-navy);
  border-color: rgba(11, 36, 71, 0.22);
}

.hg-btn-secondary:hover {
  border-color: var(--hg-aqua);
  transform: translateY(-2px);
}

/* ─── Cards ──────────────────────────────────────────────── */
.hg-card {
  background: var(--hg-card);
  border: 1px solid var(--hg-border);
  border-radius: 24px;
  box-shadow: var(--hg-shadow-sm);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.hg-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.hg-icon-aqua {
  background: var(--hg-aqua-soft);
}

.hg-icon-coral {
  background: var(--hg-coral-soft);
}

.hg-icon-blue {
  background: #E8F4FF;
}

.hg-icon-green {
  background: #E8FBF2;
}

.hg-info-card h3 {
  margin-bottom: 10px;
}

.hg-info-card p {
  color: var(--hg-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ─── Trust strip ────────────────────────────────────────── */
.hg-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--hg-white);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-lg);
  box-shadow: var(--hg-shadow-sm);
  overflow: hidden;
  margin-top: -48px;
  position: relative;
  z-index: 2;
}

.hg-trust-item {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--hg-border);
}

.hg-trust-item:last-child {
  border-right: 0;
}

.hg-trust-item .hg-icon {
  margin-inline: auto;
}

.hg-trust-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.hg-trust-item p {
  font-size: 13px;
  color: var(--hg-muted);
  line-height: 1.5;
}

/* ─── Steps ──────────────────────────────────────────────── */
.hg-steps {
  display: grid;
  gap: 18px;
}

.hg-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--hg-white);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-md);
  padding: 24px 26px;
  box-shadow: var(--hg-shadow-sm);
}

.hg-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hg-coral);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  font-family: var(--hg-font-heading);
}

.hg-step h3 {
  margin-bottom: 8px;
}

.hg-step p {
  color: var(--hg-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ─── Check list ─────────────────────────────────────────── */
.hg-check-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.hg-check-list li {
  position: relative;
  padding: 16px 18px 16px 52px;
  background: var(--hg-white);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-md);
  color: var(--hg-text);
  font-size: 15px;
  line-height: 1.6;
}

.hg-check-list li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 15px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hg-green);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
}

/* ─── Note / warning boxes ───────────────────────────────── */
.hg-note-box,
.hg-warning-box {
  padding: 22px 24px;
  border-radius: var(--hg-radius-md);
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.65;
}

.hg-note-box {
  background: var(--hg-bg-warm);
  border: 1px solid rgba(255, 216, 77, 0.45);
  color: #5a4a20;
}

.hg-warning-box {
  background: #fff5f3;
  border: 1px solid #ffd4cb;
  color: #8a2e1f;
}

/* ─── Related cards ──────────────────────────────────────── */
.hg-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hg-related-card {
  display: block;
  background: var(--hg-white);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-md);
  padding: 24px;
  box-shadow: var(--hg-shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hg-related-card:hover {
  transform: translateY(-3px);
  border-color: var(--hg-aqua);
}

.hg-related-card strong {
  display: block;
  color: var(--hg-navy);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  font-family: var(--hg-font-heading);
}

.hg-related-card span {
  color: var(--hg-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ─── CTA band ───────────────────────────────────────────── */
.hg-cta-band {
  margin: 0 auto 80px;
  padding: 42px 48px;
  background: linear-gradient(135deg, var(--hg-aqua-soft), var(--hg-white));
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-lg);
  box-shadow: var(--hg-shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.hg-cta-band h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 10px;
}

.hg-cta-band p {
  color: var(--hg-muted);
  font-size: 16px;
}

/* ─── Footer ─────────────────────────────────────────────── */
.hg-footer {
  background: linear-gradient(135deg, #083D5C 0%, #062A4C 80%);
  color: #fff;
  padding: 72px 0 32px;
}

.hg-footer-grid {
  width: min(var(--hg-max), calc(100% - 72px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
}

.hg-footer .hg-logo {
  color: #fff;
  margin-bottom: 18px;
}

.hg-footer .hg-logo em {
  color: #78e6f1;
}

.hg-footer p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  font-size: 15px;
}

.hg-footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  color: #fff;
  font-weight: 800;
}

.hg-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 12px;
  font-size: 15px;
  transition: color 0.2s ease;
}

.hg-footer a:hover {
  color: #fff;
}

.hg-footer-bottom {
  width: min(var(--hg-max), calc(100% - 72px));
  margin: 44px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.64);
}

.hg-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.hg-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  margin: 0;
  font-size: 12px;
}

/* ─── Back to top ────────────────────────────────────────── */
.hg-back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--hg-coral);
  color: #fff;
  box-shadow: var(--hg-shadow-md);
  cursor: pointer;
  display: none;
  place-items: center;
  font-size: 18px;
  z-index: 40;
}

.hg-back-top.is-visible {
  display: grid;
}

/* ─── FAQ inline (SEO sections) ──────────────────────────── */
.hg-faq-inline details {
  background: var(--hg-white);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--hg-shadow-sm);
}

.hg-faq-inline summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 800;
  color: var(--hg-navy);
  font-family: var(--hg-font-heading);
  list-style: none;
}

.hg-faq-inline summary::-webkit-details-marker {
  display: none;
}

.hg-faq-inline details p {
  padding: 0 22px 20px;
  color: var(--hg-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hg-hero-grid,
  .hg-grid-2 {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hg-hero-copy .hg-lead,
  .hg-lead {
    margin-inline: auto;
  }

  .hg-button-row,
  .hg-mini-trust {
    justify-content: center;
  }

  .hg-grid-4,
  .hg-trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hg-trust-item:nth-child(2) {
    border-right: 0;
  }

  .hg-trust-item {
    border-bottom: 1px solid var(--hg-border);
  }

  .hg-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hg-cta-band {
    flex-direction: column;
    text-align: center;
  }

  .hg-related-grid,
  .hg-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hg-hero-card-float {
    position: static;
    margin: 20px auto 0;
  }

  .hg-nav {
    display: none;
  }

  .hg-menu-toggle {
    display: grid;
    place-items: center;
  }
}

@media (max-width: 640px) {
  .hg-container,
  .hg-header,
  .hg-hero-grid,
  .hg-footer-grid,
  .hg-footer-bottom {
    width: calc(100% - 24px);
  }

  .hg-header {
    border-radius: 24px;
    padding: 12px 16px;
    margin-top: 12px;
  }

  .hg-section {
    padding: 64px 0;
  }

  .hg-hero {
    padding: 110px 0 64px;
  }

  .hg-h1,
  .higuppy-page h1 {
    font-size: 42px;
  }

  .hg-grid-3,
  .hg-grid-4,
  .hg-related-grid,
  .hg-trust-strip,
  .hg-footer-grid {
    grid-template-columns: 1fr;
  }

  .hg-trust-item {
    border-right: 0;
  }

  .hg-step {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hg-step-num {
    margin-inline: auto;
  }

  .hg-cta-band {
    padding: 28px 24px;
    margin-bottom: 48px;
  }

  .hg-footer-bottom {
    flex-direction: column;
  }
}
