/* ==========================================================================
   Sharkville Mastery — About / Contact marketing pages
   Reuses the site's existing .sv-container / .sv-section / .sv-kicker /
   .btn / .form-group / .input-wrap primitives (see home-redesign.css and
   style.css) and only adds the bits those don't already cover.
   ========================================================================== */

.marketing-page .sv-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.marketing-page .sv-hero {
  padding: 56px 0 48px;
  margin-bottom: 8px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 6, 15, .58), rgba(2, 6, 15, .82)),
    url('../images/contact-hero-v2.jpg') center 34% / cover no-repeat;
}
.about-page .sv-hero {
  background:
    linear-gradient(180deg, rgba(2, 6, 15, .58), rgba(2, 6, 15, .82)),
    url('../images/about-hero-v2.jpg') center 46% / cover no-repeat;
}
.academy-page .sv-hero {
  background:
    linear-gradient(180deg, rgba(2, 6, 15, .58), rgba(2, 6, 15, .82)),
    url('../images/academy-hero.jpg') center 38% / cover no-repeat;
}
.help-page .sv-hero {
  background:
    linear-gradient(180deg, rgba(2, 6, 15, .58), rgba(2, 6, 15, .82)),
    url('../images/help-hero.jpg') center 42% / cover no-repeat;
}
/* These source photos run bright/light, so they get a heavier dark
   overlay than the trading-desk shots above to keep white hero text
   readable. */
.testimonials-page .sv-hero {
  background:
    linear-gradient(180deg, rgba(2, 6, 15, .74), rgba(2, 6, 15, .92)),
    url('../images/testimonials-hero.jpg') center 60% / cover no-repeat;
}
.blog-page .sv-hero {
  background:
    linear-gradient(180deg, rgba(2, 6, 15, .72), rgba(2, 6, 15, .9)),
    url('../images/blog-hero.jpg') center center / cover no-repeat;
}
.terms-page .sv-hero {
  background:
    linear-gradient(180deg, rgba(2, 6, 15, .78), rgba(2, 6, 15, .93)),
    url('../images/terms-hero.jpg') center 30% / cover no-repeat;
}
.privacy-page .sv-hero {
  background:
    linear-gradient(180deg, rgba(2, 6, 15, .74), rgba(2, 6, 15, .9)),
    url('../images/privacy-hero.jpg') center center / cover no-repeat;
}
.cookies-page .sv-hero {
  background:
    linear-gradient(180deg, rgba(2, 6, 15, .72), rgba(2, 6, 15, .9)),
    url('../images/cookies-hero.jpg') center 55% / cover no-repeat;
}
/* Legal-page heroes run shorter than the other marketing pages — the
   photo is a backdrop for a short heading, not a full-height banner. */
@media (min-width: 900px) {
  .mk-legal-hero { min-height: 300px !important; }
}
.mk-legal-updated { color: rgba(245, 248, 255, .78); font-size: 13.5px; margin: 18px 0 0; }
@media (min-width: 900px) {
  /* Give the hero enough vertical room on desktop so the monitor/laptop
     screen in the background photo actually reads, instead of being
     squeezed down to a thin sliver behind the heading. */
  .marketing-page .sv-hero { min-height: 440px; display: grid; align-items: center; }
}

/* Contact hero: the message form sits inside the hero, to the right of
   the heading, on desktop (>980px, matching .sv-hero-grid's own
   breakpoint). Below that it stacks underneath like any other section. */
.mk-hero-grid { row-gap: 40px; }
.mk-hero-form-wrap { width: 100%; }
.mk-hero-form-wrap .mk-form-panel {
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
@media (max-width: 980px) {
  .mk-hero-form-wrap { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 900px) {
  /* Match the sign-in/sign-up form treatment on mobile: full container
     width, no boxed card — the form just sits in the page flow. */
  .mk-hero-form-wrap { max-width: 560px; width: 100%; margin: 0 auto; }
  .mk-hero-form-wrap .mk-form-panel {
    max-width: none;
    padding: 28px 20px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    background: transparent;
    box-shadow: none;
  }
}
.marketing-page .sv-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 78% 22%, rgba(23, 233, 192, .18), transparent 32rem);
  z-index: -1;
}
.marketing-page .sv-hero h1 { color: #fff; }
.marketing-page .sv-hero-sub { max-width: 640px; color: rgba(245, 248, 255, .82); }

/* "Get In Touch" / "About Sharkville Mastery" badge gently floats above
   the hero image so it reads as an anchored chip rather than flat text. */
.marketing-page .sv-hero .eyebrow-pill {
  animation: mk-eyebrow-float 3.6s ease-in-out infinite;
}
@keyframes mk-eyebrow-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .marketing-page .sv-hero .eyebrow-pill { animation: none; }
}

/* ---------------- Stat strip (About) ---------------- */
.mk-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0 0 8px;
}
.mk-stat {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
}
.mk-stat .mk-num { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.mk-stat .mk-cap { margin-top: 6px; font-size: 13.5px; color: var(--text-muted); }

/* ---------------- Value / feature cards (About) ---------------- */
.mk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.mk-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 26px;
}
.mk-card .mk-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(23, 233, 192, .12);
  color: var(--blue-light, #17e9c0);
  margin-bottom: 16px;
}
.mk-card h3 { font-size: 17.5px; margin: 0 0 8px; color: #fff; }
.mk-card p { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* ---------------- Story split (About) ---------------- */
.mk-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.mk-story img { width: 100%; border-radius: 18px; object-fit: cover; aspect-ratio: 4/3; }
img.mk-story-cert-img { aspect-ratio: auto; object-fit: contain; }
.mk-story p { color: var(--text-muted); line-height: 1.7; font-size: 15.5px; margin: 0 0 14px; }

/* ---------------- Avatars strip (About) ---------------- */
.mk-avatars { display: flex; align-items: center; gap: -8px; }
.mk-avatars img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bg, #0a121b);
  margin-left: -12px;
}
.mk-avatars img:first-child { margin-left: 0; }

/* ---------------- Contact page ---------------- */
.mk-contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mk-contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.mk-contact-card:hover { border-color: var(--blue-light, #17e9c0); transform: translateY(-2px); }
.mk-contact-card .mk-icon {
  flex: none;
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(23, 233, 192, .12);
  color: var(--blue-light, #17e9c0);
}
.mk-contact-card .mk-icon.mk-icon-email,
.mk-contact-card .mk-icon.mk-icon-whatsapp,
.mk-contact-card .mk-icon.mk-icon-chat {
  width: 50px; height: 50px; border-radius: 50%;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}
.mk-contact-card .mk-icon.mk-icon-email {
  background: linear-gradient(140deg, #3b82f6, #1d4ed8);
}
.mk-contact-card .mk-icon.mk-icon-whatsapp {
  background: linear-gradient(140deg, #25d366, #128c4a);
}
.mk-contact-card .mk-icon.mk-icon-chat {
  background: linear-gradient(140deg, #17e9c0, #0fb89a);
}
.mk-contact-card strong { display: block; color: #fff; font-size: 15px; margin-bottom: 3px; }
.mk-contact-card span { color: var(--text-muted); font-size: 13.5px; line-height: 1.5; }

.mk-form-panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 32px;
}
.mk-form-panel h2 { margin: 0 0 6px; font-size: 21px; color: #fff; }
.mk-form-panel > p { margin: 0 0 24px; color: var(--text-muted); font-size: 14.5px; }
.mk-form-panel textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  background: var(--surface-2, rgba(255,255,255,.03));
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font: inherit;
  font-size: 14.5px;
}
.mk-form-panel textarea:focus { outline: none; border-color: var(--blue-light, #17e9c0); }

/* ---------------- Testimonial grid (Testimonials) ---------------- */
.mk-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mk-quote-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.mk-quote-card:hover { border-color: var(--blue-light, #17e9c0); transform: translateY(-2px); }
.mk-quote-stars { display: flex; gap: 3px; color: var(--gold, #ffb238); margin-bottom: 14px; }
.mk-quote-copy {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 20px;
  flex: 1;
}
.mk-quote-foot { display: flex; align-items: center; gap: 12px; }
.mk-quote-foot img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.mk-quote-foot strong { display: block; color: #fff; font-size: 14.5px; }
.mk-quote-foot span { color: var(--text-muted); font-size: 13px; }

/* ---------------- Blog (Blog) ---------------- */
.mk-blog-tag {
  display: inline-block;
  background: rgba(23, 233, 192, .14);
  color: var(--blue-light, #17e9c0);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 5px 12px;
  border-radius: 999px;
}
.mk-blog-meta { display: flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: 13px; margin-top: 14px; }

.mk-blog-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  overflow: hidden;
}
.mk-blog-featured-media { min-height: 320px; }
.mk-blog-featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-blog-featured-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.mk-blog-featured-body .mk-blog-tag { align-self: flex-start; margin-bottom: 14px; }
.mk-blog-featured-body h2 { margin: 0 0 12px; font-size: 24px; color: #fff; line-height: 1.3; }
.mk-blog-featured-body p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.65; }

.mk-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.mk-blog-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.mk-blog-card:hover { border-color: var(--blue-light, #17e9c0); transform: translateY(-2px); }
.mk-blog-card-media { position: relative; aspect-ratio: 16/10; }
.mk-blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-blog-card-media .mk-blog-tag { position: absolute; top: 14px; left: 14px; }
.mk-blog-card-body { padding: 20px; }
.mk-blog-card-body h3 { margin: 0 0 8px; font-size: 16.5px; color: #fff; line-height: 1.4; }
.mk-blog-card-body p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.mk-blog-note { text-align: center; color: var(--text-muted); font-size: 14px; margin: 36px 0 0; }
.mk-blog-note a { color: var(--blue-light, #17e9c0); }

/* ---------------- Legal pages (Terms / Privacy) ---------------- */
.mk-legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
.mk-legal-toc {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 20px;
}
.mk-legal-toc nav ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-legal-toc nav a {
  display: block;
  color: var(--text-muted);
  font-size: 13.5px;
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 8px;
  line-height: 1.4;
}
.mk-legal-toc nav a:hover { color: #fff; background: var(--surface-2, rgba(255,255,255,.04)); }

.mk-legal-content { color: var(--text-muted); font-size: 15px; line-height: 1.75; max-width: 760px; }
.mk-legal-content > p:first-child { color: var(--text); font-size: 15.5px; margin-top: 0; }
.mk-legal-content h2 {
  color: #fff;
  font-size: 19px;
  margin: 40px 0 12px;
  padding-top: 8px;
  scroll-margin-top: 100px;
}
.mk-legal-content h2:first-of-type { margin-top: 8px; }
.mk-legal-content p { margin: 0 0 16px; }
.mk-legal-content ul { margin: 0 0 16px; padding-left: 20px; }
.mk-legal-content li { margin-bottom: 8px; }
.mk-legal-content a { color: var(--blue-light, #17e9c0); }

/* ---------------- Cookie table (Cookie Policy) ---------------- */
.mk-cookie-table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
}
.mk-cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 560px;
}
.mk-cookie-table th {
  text-align: left;
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: var(--surface-2, rgba(255,255,255,.04));
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-strong);
}
.mk-cookie-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-muted);
}
.mk-cookie-table tr:last-child td { border-bottom: none; }
.mk-cookie-table code {
  background: var(--surface-2, rgba(255,255,255,.05));
  color: var(--blue-light, #17e9c0);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12.5px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .mk-stats { grid-template-columns: repeat(2, 1fr); }
  .mk-grid { grid-template-columns: 1fr; }
  .mk-story { grid-template-columns: 1fr; }
  .mk-contact-methods { grid-template-columns: 1fr; }
  .mk-testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .mk-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .mk-blog-featured { grid-template-columns: 1fr; }
  .mk-blog-featured-media { min-height: 220px; }
  .mk-legal-layout { grid-template-columns: 1fr; }
  .mk-legal-toc { position: static; }

  /* Certificate block: book-jacket style on mobile instead of stacking
     image-then-text. The image floats to the side, sized a bit larger
     than a thumbnail, and the heading/copy wrap around it the way an
     author photo sits beside an "About the writer" blurb — then the
     paragraph text continues at full width once it runs past the
     image's height. */
  .mk-story-cert {
    display: block;
  }
  .mk-story-cert::after {
    content: "";
    display: table;
    clear: both;
  }
  img.mk-story-cert-img {
    float: left;
    width: 48%;
    max-width: 240px;
    margin: 2px 20px 16px 0;
  }
  .mk-story-cert h2 {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  img.mk-story-cert-img {
    width: 44%;
    max-width: 180px;
  }
}

@media (max-width: 620px) {
  .marketing-page .sv-container { padding: 0 18px; }
  .mk-testimonial-grid { grid-template-columns: 1fr; }
  .mk-blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .marketing-page .sv-container { padding: 0 14px; }
}
