/*
Theme Name: GoSharei
Theme URI: https://gosharei.site/
Author: Manishek Raj
Description: A clean referral information theme for the GoSharei WordPress site.
Version: 1.0.0
Text Domain: gossharei
*/

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9dee7;
  --brand: #2457ff;
  --brand-2: #f238dc;
  --brand-3: #15c5f7;
  --accent: #0f8cff;
  --success: #13a66b;
  --warning: #b45309;
  --radius: 8px;
  --shadow: 0 14px 38px rgba(17, 24, 39, 0.08);
  --wrap: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: 0;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: #0969da;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: #064f9f;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #eceff4;
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--wrap);
  min-height: 84px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}

.site-brand img {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
  font-weight: 700;
}

.primary-nav a,
.dropdown-label {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a:focus,
.primary-nav .current-menu-item > a {
  color: var(--brand);
}

.dropdown {
  position: relative;
}

.dropdown-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--ink);
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: #f3f6fb;
}

.main-shell {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px 28px 48px;
}

.content-card {
  background: var(--surface);
  border: 1px solid #edf0f5;
  box-shadow: var(--shadow);
}

.page-content {
  padding: 44px 54px 56px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: center;
  gap: 42px;
  padding: 16px 0 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  color: var(--ink);
  line-height: 1.22;
  letter-spacing: 0;
}

h1 {
  font-size: 42px;
}

h2 {
  margin-top: 42px;
  font-size: 34px;
  text-align: center;
}

h3 {
  margin-top: 30px;
  font-size: 26px;
}

h4 {
  margin-top: 22px;
  font-size: 21px;
}

p {
  margin: 0 0 18px;
}

.lead {
  max-width: 840px;
  color: #263140;
  font-size: 19px;
}

.hero-logo {
  justify-self: center;
  width: min(320px, 78vw);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 28px 0 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 12px 26px rgba(36, 87, 255, 0.2);
}

.button:hover,
.button:focus {
  color: #fff;
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.button-secondary {
  background: #1585ef;
}

.button-quiet {
  color: var(--ink);
  background: #eef2ff;
  box-shadow: none;
}

.button-quiet:hover,
.button-quiet:focus {
  color: var(--ink);
}

.small-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.rule {
  width: 100%;
  height: 2px;
  margin: 36px 0;
  border: 0;
  background: #1f2937;
}

.notice {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 5px solid var(--warning);
  background: #fff7ed;
  color: #3f2a12;
}

.notice strong {
  color: #7c2d12;
}

.section-intro {
  max-width: 920px;
  margin: 0 auto 24px;
  color: #263140;
  text-align: center;
}

.details-table {
  width: 100%;
  margin: 24px 0 34px;
  border-collapse: collapse;
  font-size: 16px;
}

.details-table th,
.details-table td {
  padding: 15px 16px;
  border: 1px solid #1f2937;
  text-align: left;
  vertical-align: top;
}

.details-table th {
  width: 34%;
  background: #f8fafc;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 18px;
}

.feature {
  padding: 22px;
  border: 1px solid #e1e7f0;
  border-radius: var(--radius);
  background: #fbfdff;
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.feature p:last-child {
  margin-bottom: 0;
}

.steps {
  counter-reset: item;
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 22px 0 30px;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 18px 20px 18px 62px;
  border: 1px solid #e1e7f0;
  border-radius: var(--radius);
  background: #fff;
}

.steps li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  top: 18px;
  left: 18px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  line-height: 1;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 22px 0 30px;
  list-style: none;
}

.checklist li {
  padding: 16px 18px;
  border: 1px solid #e1e7f0;
  border-radius: var(--radius);
  background: #f9fbff;
}

.media-panel {
  margin: 36px auto;
  padding: 26px;
  border: 1px solid #dfe6f1;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  text-align: center;
}

.media-panel img {
  width: min(780px, 100%);
}

.faq-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.faq-item {
  padding: 20px 22px;
  border: 1px solid #e1e7f0;
  border-radius: var(--radius);
  background: #fff;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 23px;
}

.faq-item p {
  margin-bottom: 0;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card {
  padding: 24px;
  border: 1px solid #e1e7f0;
  border-radius: var(--radius);
  background: #fff;
}

.post-card h2 {
  margin-top: 0;
  text-align: left;
  font-size: 26px;
}

.post-meta {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--brand);
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 74px;
    padding: 0 18px;
  }

  .site-brand {
    font-size: 24px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .primary-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a,
  .dropdown-label {
    padding: 12px 4px;
  }

  .dropdown-menu {
    position: static;
    display: block;
    min-width: auto;
    padding: 0 0 8px 12px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .main-shell {
    padding: 18px 14px 32px;
  }

  .page-content {
    padding: 28px 18px 38px;
  }

  .hero-panel,
  .feature-list,
  .checklist {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 27px;
  }

  h3 {
    font-size: 23px;
  }

  .details-table {
    font-size: 15px;
  }

  .details-table th,
  .details-table td {
    display: block;
    width: 100%;
  }

  .cta-row {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

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