/*
  RadBiz Shared Stylesheet
  File: /css/radbiz.css
  Purpose: Shared design system for RadBiz.com pages
  Last updated: 2026-06-26
*/

/* =========================================================
   1. Design Tokens
   ========================================================= */

:root {
  --green: #007a3d;
  --green-dark: #005f30;
  --green-hover: #008548;

  --ink: #1f2a24;
  --text: #52605a;
  --muted: #6f7a80;

  --soft: #f6faf7;
  --soft-green: #f1f7f3;
  --cream: #fffbea;
  --card: #ffffff;

  --border: #dde7e1;
  --gold: #d6b85a;

  --shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  --button-shadow: 0 10px 24px rgba(0, 122, 61, 0.25);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --page-width: 920px;
  --content-width: 860px;
  --narrow-width: 760px;

  --font-main: Arial, Helvetica, sans-serif;

  --body-size: clamp(1.08rem, 2vw, 1.25rem);
  --small-size: 0.95rem;
  --nav-size: 0.95rem;

  --h1-size: clamp(2.35rem, 5.5vw, 3.7rem);
  --h2-size: clamp(1.65rem, 3.5vw, 2.35rem);
  --h3-size: clamp(1.25rem, 2.5vw, 1.55rem);
}

/* =========================================================
   2. Base Reset
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-main);
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  line-height: 1.7;
}

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

a {
  color: var(--green);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 4px solid #ffcc00;
  outline-offset: 4px;
}

/* =========================================================
   3. Layout
   ========================================================= */

.wrap,
.container,
.site-container {
  width: min(var(--page-width), calc(100% - 32px));
  margin-inline: auto;
}

.container {
  padding: 2rem 0 4rem;
}

.narrow-container {
  width: min(var(--narrow-width), calc(100% - 32px));
  margin-inline: auto;
  padding: 2rem 0 4rem;
}

.site-main {
  outline: none;
}

/* =========================================================
   4. Navigation
   ========================================================= */

.nav,
.topnav {
  text-align: center;
  padding: 18px 0 8px;
  margin-bottom: 1.75rem;
  font-size: var(--nav-size);
}

.nav a,
.topnav a {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  margin: 0 0.65rem;
}

.nav a:hover,
.topnav a:hover {
  color: var(--green);
  text-decoration: underline;
}

/* =========================================================
   5. Logo / Masthead
   ========================================================= */

.logo,
.logo-image,
.site-logo {
  display: block;
  width: min(100%, 320px);
  margin: 0 auto 1.5rem;
}

.logo-large {
  width: min(100%, 400px);
  margin: 0 auto 1rem;
}

.masthead {
  text-align: center;
  margin-bottom: 1.5rem;
}

.masthead-text,
.mission {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  margin: 0.35rem auto 1.25rem;
  line-height: 1.4;
}

/* =========================================================
   6. Typography
   ========================================================= */

h1,
h2,
h3,
p,
ul,
li {
  overflow-wrap: break-word;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: var(--h1-size);
  line-height: 1.08;
  letter-spacing: -1.4px;
  color: var(--ink);
}

h2 {
  margin: 0 0 1rem;
  font-size: var(--h2-size);
  line-height: 1.18;
  letter-spacing: -0.6px;
  color: var(--ink);
}

h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: var(--h3-size);
  line-height: 1.3;
  color: var(--ink);
}

p {
  margin: 0 0 1.35rem;
  font-size: var(--body-size);
  color: var(--text);
}

ul {
  margin: 0 0 1.5rem;
  padding-left: 1.45rem;
  color: var(--text);
}

li {
  margin-bottom: 0.75rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text);
}

strong,
b {
  color: var(--ink);
}

.center {
  text-align: center;
}

.eyebrow,
.note,
.label {
  color: var(--green);
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-align: center;
}

.small,
.small-note,
.disclosure {
  font-size: 0.95rem;
  color: var(--muted);
}

.highlight {
  font-weight: 800;
  color: var(--green-dark);
}

/* =========================================================
   7. Hero
   ========================================================= */

.hero {
  text-align: center;
  padding: 0 0 1.5rem;
  margin-bottom: 2rem;
}

.hero h1 {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.hero p,
.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 1.65rem;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  color: var(--text);
}

/* =========================================================
   8. Cards / Sections
   ========================================================= */

.section,
.card,
.section-card {
  margin: 28px auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.section.soft,
.card.soft-card,
.soft-card,
.intro-box {
  background: linear-gradient(180deg, #ffffff 0%, var(--soft-green) 100%);
}

.left-accent,
.note-card,
.note-box {
  border-left: 8px solid var(--green);
}

.gold-box,
.promise-box,
.prompt-box {
  background: linear-gradient(180deg, #fffdf0 0%, var(--cream) 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.gold-box p,
.promise-box p,
.prompt-box p {
  margin-bottom: 0;
  color: var(--ink);
}

/* =========================================================
   9. Buttons
   ========================================================= */

.btn,
.cta,
.cta-link,
button[type="submit"] {
  display: inline-block;
  background: var(--green);
  color: #ffffff;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: var(--button-shadow);
  cursor: pointer;
}

.btn:hover,
.cta:hover,
.cta-link:hover,
button[type="submit"]:hover {
  background: var(--green-dark);
  color: #ffffff;
}

.btn.large {
  font-size: 1.125rem;
  padding: 17px 34px;
}

.secondary-cta {
  display: inline-block;
  background: #ffffff;
  color: var(--green-dark);
  border: 2px solid var(--green);
  font-weight: 800;
  text-decoration: none;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-pill);
  margin-left: 0.75rem;
}

.secondary-cta:hover {
  background: var(--soft-green);
  color: var(--green-dark);
}

.button-row {
  margin-top: 1.5rem;
}

/* =========================================================
   10. Forms
   ========================================================= */

.form-box,
.contact-form-wrap {
  background: var(--soft-green);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2rem;
}

.contact-form-wrap {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #cfd8d2;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-main);
}

button[type="submit"] {
  width: 100%;
}

/* =========================================================
   11. Homepage Free Guide Block
   ========================================================= */

.free-guide {
  text-align: center;
  border: 2px solid rgba(0, 122, 61, 0.14);
}

.free-guide .label {
  display: inline-block;
  margin: 0 auto 12px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #eaf7ef;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.free-guide h2 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  margin: 0 0 18px;
}

.free-guide p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.guide-benefit {
  font-weight: 800;
  color: var(--ink) !important;
  font-size: 1.15rem !important;
}

/* =========================================================
   12. Magazine / Mike Feature
   ========================================================= */

.about,
.mike-feature {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.mike-photo,
.mike-cover {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.feature-label {
  color: var(--green);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.feature-title {
  margin-bottom: 1rem;
}

/* =========================================================
   13. Beginner Path Grid
   ========================================================= */

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.path-step {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.path-number {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.path-step p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* =========================================================
   14. Signature / Footer
   ========================================================= */

.signature,
.signature-image {
  width: 190px;
  max-width: 100%;
  margin-top: 1rem;
}

.footer,
.site-footer {
  border-top: 1px solid var(--border);
  margin: 46px auto 0;
  padding: 28px 0 44px;
  color: var(--text);
  font-size: 0.95rem;
}

.footer p,
.site-footer p {
  color: var(--text);
  font-size: 0.95rem;
}

/* =========================================================
   15. Back To Top
   ========================================================= */

.backtop,
.scroll-top,
.scroll-top-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  display: none;
  place-items: center;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 122, 61, 0.28);
  cursor: pointer;
  z-index: 9999;
}

.backtop {
  display: grid;
}

.backtop:hover,
.scroll-top:hover,
.scroll-top-button:hover {
  background: var(--green-dark);
  color: #ffffff;
}

.scroll-top.visible,
.scroll-top-button.is-visible {
  display: grid;
}

/* =========================================================
   16. SeniorBiz / Opt-In Page
   ========================================================= */

.optin-card {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto 3rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: clamp(1.75rem, 5vw, 3rem);
}

.optin-card h1 {
  color: var(--green-dark);
  text-align: center;
}

.optin-subtitle {
  text-align: center;
  color: var(--text);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

/* =========================================================
   17. Utility Classes
   ========================================================= */

.no-margin {
  margin: 0 !important;
}

.no-bottom {
  margin-bottom: 0 !important;
}

.text-center {
  text-align: center;
}

.max-700 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.max-760 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   18. Responsive Rules
   ========================================================= */

@media (max-width: 760px) {
  .nav a,
  .topnav a {
    margin: 0.25rem 0.45rem;
  }

  .about,
  .mike-feature,
  .path-grid {
    grid-template-columns: 1fr;
  }

  .mike-photo,
  .mike-cover {
    max-width: 220px;
    margin: 0 auto;
  }

  .secondary-cta {
    margin-left: 0;
    margin-top: 1rem;
  }

  .cta,
  .btn,
  .secondary-cta,
  .cta-link {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .wrap,
  .container,
  .site-container,
  .narrow-container {
    width: min(100% - 24px, var(--page-width));
  }

  .nav,
  .topnav {
    margin-bottom: 1.25rem;
  }

  .nav a,
  .topnav a {
    font-size: 0.9rem;
    margin: 0.25rem 0.4rem;
  }

  .logo,
  .logo-image,
  .site-logo {
    width: min(100%, 250px);
  }

  .logo-large {
    width: min(100%, 320px);
  }

  .section,
  .card,
  .section-card,
  .optin-card {
    border-radius: var(--radius-sm);
  }

  .btn,
  .cta,
  .cta-link,
  .secondary-cta {
    display: block;
    width: 100%;
  }

  .backtop,
  .scroll-top,
  .scroll-top-button {
    right: 14px;
    bottom: 14px;
  }
}

@media (hover: none) {
  a:hover {
    color: var(--green);
  }

  .btn:hover,
  .cta:hover,
  .cta-link:hover,
  button[type="submit"]:hover {
    background: var(--green);
    color: #ffffff;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
