/* ============================================================
   RoleCrafters — styles.css
   Colors sampled from the logo; serif headings match the wordmark.
   ============================================================ */

:root {
  --navy: #1B2E4A;
  --navy-deep: #12233F;
  --slate: #5A6473;
  --bg-light: #F7F9FC;
  --white: #FFFFFF;
  --gold: #D9A441;        /* single warm accent, used sparingly */
  --gold-dark: #C08F2C;
  --border: #E3E8F0;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(27, 46, 74, 0.07);
  --shadow-lift: 0 8px 28px rgba(27, 46, 74, 0.13);
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--navy);
}

h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; font-family: var(--font-body); }

p { margin: 0 0 1em; }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Anchor targets clear the sticky header */
section[id], [id="how-it-works"], [id="pricing"], [id="about"], [id="contact"] {
  scroll-margin-top: 88px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-lg { padding: 16px 32px; font-size: 1.0625rem; }
.btn-block { display: block; width: 100%; }

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--navy);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 46px; width: auto; }

.site-nav { display: flex; align-items: center; }

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

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--navy);
  padding: 6px 2px;
}
.nav-links a:hover { color: var(--gold-dark); }

.nav-cta { padding: 11px 20px; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
  padding: 88px 0 96px;
  text-align: center;
}

.hero-inner { max-width: 820px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 18px;
}

.hero h1 { margin-bottom: 0.4em; }

.hero-sub {
  font-size: 1.22rem;
  color: var(--slate);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--slate);
  margin: 0;
}

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section.alt { background: var(--bg-light); }

.section h2 { text-align: center; }

.section-intro {
  text-align: center;
  color: var(--slate);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1.1rem;
}

.section-footnote {
  text-align: center;
  color: var(--slate);
  max-width: 620px;
  margin: 44px auto 0;
  font-style: italic;
}

/* ---------- Cards ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

.card-grid {
  display: grid;
  gap: 24px;
}

.three-up { grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
.four-up  { grid-template-columns: repeat(4, 1fr); }

.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-circle svg { width: 26px; height: 26px; }

.pain-card p, .step-card p { color: var(--slate); margin-bottom: 0; font-size: 0.98rem; }

.step-card { position: relative; }

.step-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
}

/* ---------- Benefits ---------- */

.benefit-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 780px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
}

.benefit-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.benefit-check {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.benefit-check svg { width: 18px; height: 18px; }

.benefit-item h3 { margin-bottom: 0.3em; }
.benefit-item p { color: var(--slate); margin: 0; font-size: 0.98rem; }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  padding-top: 40px;
}

.price-card.featured {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-lift);
}

@media (min-width: 981px) {
  .price-card.featured { transform: scale(1.04); }
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 16px;
  border-radius: 999px;
  margin: 0;
  white-space: nowrap;
}

.tier-name { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 6px; }

.tier-price {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.tier-price strong {
  color: var(--navy);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 2px;
}
.tier-price span { font-size: 1rem; }

.tier-tagline { color: var(--slate); font-size: 0.95rem; min-height: 3em; }

.tier-features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.tier-features li {
  padding: 9px 0 9px 28px;
  position: relative;
  font-size: 0.96rem;
  border-bottom: 1px solid var(--bg-light);
}
.tier-features li:last-child { border-bottom: none; }

.tier-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--gold-dark);
  border-bottom: 2.5px solid var(--gold-dark);
  transform: rotate(-45deg);
}

.tier-fit {
  color: var(--slate);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: auto;
  margin-bottom: 20px;
}

.pricing-note {
  text-align: center;
  color: var(--slate);
  margin: 44px 0 0;
  font-size: 0.98rem;
}

/* ---------- About ---------- */

.about-inner { max-width: 760px; }

.about-body { font-size: 1.08rem; }

.about-lead {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.45;
  margin-bottom: 1em;
}

.about-body p:not(.about-lead) { color: var(--slate); }

.about-disclaimer {
  font-size: 0.85rem;
  margin-top: 2em;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta-band h2 { color: var(--white); margin-bottom: 0.3em; }

.cta-band p {
  color: #C7D0DE;
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form { padding: 36px 32px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 0;
  background: var(--white);
}

.form-field ::placeholder { color: #97A0AE; }

textarea { resize: vertical; }

.contact-aside h3 { margin-bottom: 1em; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}
.contact-link:hover { color: var(--gold-dark); }
.contact-link svg { width: 20px; height: 20px; flex: none; }

.contact-aside-note {
  color: var(--slate);
  font-size: 0.95rem;
  margin-top: 1.8em;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

/* The logo file has a white background; frame it as a deliberate chip
   so it doesn't read as a stray box on the light footer. */
.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  box-sizing: content-box;
}

.footer-tagline {
  color: var(--slate);
  font-size: 0.92rem;
  margin: 0;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--slate);
}
.footer-nav a:hover { color: var(--navy); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--slate);
  font-size: 0.88rem;
  margin: 0;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  .three-up { grid-template-columns: repeat(3, 1fr); }
  .four-up { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .price-card.featured { order: -1; }
  .popular-badge { top: -14px; }
  .pricing-grid .price-card { margin-top: 10px; }
  .contact-grid { grid-template-columns: 1fr; }
  .benefit-list { grid-template-columns: 1fr; max-width: 560px; }
  .tier-tagline { min-height: 0; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 72px; }

  .three-up { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .four-up { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lift);
    padding: 16px 24px 24px;
  }

  .nav-menu.open { display: flex; }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 14px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--bg-light);
  }

  .nav-cta { margin-top: 12px; padding: 14px 20px; }

  .brand-logo { height: 40px; }

  .hero-actions .btn { width: 100%; max-width: 340px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-inner { flex-direction: column; }
}
