/* Naruhodo Tutoring — shared service-page styles */
:root {
  --bg: #07131f;
  --bg2: #0d2137;
  --bg3: #134b6e;
  --panel: #ffffff;
  --panel-soft: #f5f8fb;
  --line: #d9e4ec;
  --line-soft: #eef3f7;
  --text: #132132;
  --text-soft: #2d3e50;
  --muted: #5b6c7a;
  --accent: #134b6e;
  --accent2: #1e7898;
  --accent3: #38b6d4;
  --accent4: #7dd8e8;
  --pearl: #e8f4f8;
  --pale: #b8eef7;
  --gold: #ffd166;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--panel-soft);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
}

a { color: var(--accent2); }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* Top nav */
.top {
  background: var(--bg);
  color: var(--pearl);
  border-bottom: 1px solid rgba(56, 182, 212, 0.15);
}

.top-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
}

.top a {
  color: var(--pearl);
  text-decoration: none;
  font-weight: 700;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
}

.brand svg {
  width: 28px;
  height: 28px;
}

.navlinks {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.95rem;
}

.navlinks a:hover {
  color: var(--accent4);
}

.navlinks .book-now {
  background: var(--accent3);
  color: var(--bg2);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--bg2);
  color: var(--pale);
  font-size: 0.85rem;
  padding: 0.6rem 0;
}

.breadcrumbs .wrap {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  color: var(--pale);
}

.breadcrumbs a {
  color: var(--accent4);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span[aria-hidden="true"] {
  opacity: 0.5;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg3) 100%);
  color: var(--pearl);
  padding: 4rem 0 3.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  max-width: 780px;
  color: var(--pale);
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.button {
  background: var(--pearl);
  color: var(--bg2);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.button-ghost {
  background: transparent;
  color: var(--pearl);
  border: 2px solid rgba(184, 238, 247, 0.5);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--pearl);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent3), var(--accent2));
  color: var(--pearl);
}

.button-primary:hover {
  box-shadow: 0 12px 30px rgba(56, 182, 212, 0.35);
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  margin-top: 1.5rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(184, 238, 247, 0.25);
  color: var(--pale);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}

.trust-pill::before {
  content: "✓";
  color: var(--accent4);
  font-weight: 700;
}

/* Main wrapper */
.main {
  padding: 3rem 0 5rem;
}

.section {
  margin-bottom: 2.5rem;
}

.section h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--bg2);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.section h3 {
  font-size: 1.15rem;
  color: var(--bg2);
  margin: 0 0 0.5rem;
}

.section-lead {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0 0 1.25rem;
  max-width: 780px;
}

/* Card grids */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: 0 2px 8px rgba(7, 19, 31, 0.04);
}

.card h3 {
  font-size: 1.05rem;
  color: var(--bg2);
  margin: 0 0 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Topic grid (subject coverage) */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
}

.topic-grid h3 {
  grid-column: 1 / -1;
  font-size: 1.05rem;
  color: var(--bg2);
  margin: 0 0 0.5rem;
}

.topic-grid ul {
  margin: 0;
  padding-left: 1.2rem;
}

.topic-grid li {
  padding: 0.18rem 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Worked example */
.example {
  background: var(--bg2);
  color: var(--pearl);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(7, 19, 31, 0.25);
}

.example-tag {
  display: inline-block;
  background: rgba(125, 216, 232, 0.18);
  color: var(--accent4);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.example h2 {
  color: var(--pearl);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.example > p {
  color: var(--pale);
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
}

.example-prompt {
  background: rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--accent3);
  padding: 0.9rem 1.1rem;
  border-radius: 0 10px 10px 0;
  color: var(--pale);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.example-prompt strong {
  color: var(--accent4);
}

.example ol {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.example ol li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 1rem 0.85rem 3rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  color: var(--pearl);
  font-size: 0.97rem;
}

.example ol li::before {
  content: counter(step);
  position: absolute;
  top: 0.85rem;
  left: 0.9rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent3), var(--accent2));
  color: var(--pearl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.example ol li strong {
  color: var(--accent4);
}

.example ol li code,
.example ol li em {
  background: rgba(56, 182, 212, 0.12);
  color: var(--accent4);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-style: normal;
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.example-takeaway {
  margin-top: 1.25rem;
  background: rgba(56, 182, 212, 0.12);
  border: 1px solid rgba(56, 182, 212, 0.25);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  color: var(--pale);
  font-size: 0.95rem;
}

.example-takeaway strong {
  color: var(--pearl);
}

/* Sticking points + how sessions work */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 760px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.sticky-list {
  margin: 0;
  padding-left: 1.2rem;
}

.sticky-list li {
  padding: 0.25rem 0;
  color: var(--text-soft);
}

/* FAQ */
.faq {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.5rem 1.5rem;
}

.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: none;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--bg2);
  font-size: 1.02rem;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  color: var(--accent2);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details > p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

/* Related tools and pages */
.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.related a {
  background: var(--pearl);
  color: var(--accent);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid rgba(19, 75, 110, 0.15);
  transition: all 0.2s ease;
}

.related a:hover {
  background: var(--accent3);
  color: var(--pearl);
  border-color: transparent;
}

/* Testimonial */
.testimonial {
  background: linear-gradient(135deg, #ffffff 0%, var(--pale) 100%);
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid var(--line);
  position: relative;
}

.testimonial::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--accent3);
  position: absolute;
  top: 0;
  left: 1rem;
  line-height: 1;
  opacity: 0.25;
}

.testimonial p {
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 0.85rem;
  font-style: italic;
  position: relative;
}

.testimonial .author {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
}

/* Big CTA section */
.cta-banner {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg3) 100%);
  color: var(--pearl);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 3rem;
}

.cta-banner h2 {
  color: var(--pearl);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin: 0 0 0.75rem;
}

.cta-banner p {
  color: var(--pale);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .button-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Footer */
.foot {
  background: var(--bg);
  color: var(--pale);
  padding: 2.5rem 0;
  font-size: 0.92rem;
  border-top: 1px solid rgba(56, 182, 212, 0.15);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.foot a {
  color: var(--accent4);
  text-decoration: none;
  margin-right: 1rem;
}

.foot a:hover {
  text-decoration: underline;
}

/* Sticky mobile CTA bar */
.m-cta {
  display: none;
}

@media (max-width: 760px) {
  .m-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(10, 22, 40, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(56, 182, 212, 0.25);
    z-index: 999;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
  }
  .m-cta a {
    flex: 1;
    text-align: center;
    padding: 0.85rem 0.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
  }
  .m-cta-book {
    background: linear-gradient(135deg, var(--accent3), var(--accent2));
    color: var(--pearl);
  }
  .m-cta-text {
    background: rgba(255, 255, 255, 0.08);
    color: var(--pearl);
    border: 1px solid rgba(184, 238, 247, 0.35);
  }
  body { padding-bottom: 72px; }
  .top-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .navlinks { font-size: 0.88rem; gap: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
