/* ==========================================================================
   Sam's Rules of Money — custom site styles
   Rebuilt from the archived site (web.archive.org 2022-06-01).
   Color scheme preserved from the original site:
     Book Landing Page theme (Rara Theme) + custom sage-green background.
   ========================================================================== */

:root {
  --sams-bg: #b7ccba;          /* custom background (sage green)       */
  --sams-green: #63b03e;       /* primary green (links / buttons)      */
  --sams-green-dark: #559735;  /* darker green (hover)                 */
  --sams-teal: #30a186;        /* teal accent (nav active)             */
  --sams-text: #666666;        /* body text                            */
  --sams-heading: #333333;     /* headings                             */
  --sams-muted: #919191;       /* muted text / nav links               */
  --sams-light: #f4f4f4;       /* light gray surfaces                  */
  --sams-white: #ffffff;
  --sams-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  font-family: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: var(--sams-bg);
  color: var(--sams-text);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--sams-heading);
  font-weight: 700;
}

a {
  color: var(--sams-green);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--sams-green-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */

.site-navbar {
  background: var(--sams-white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-navbar .navbar-brand {
  color: #000000;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.site-navbar .navbar-brand .tagline {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--sams-muted);
}

.site-navbar .nav-link {
  color: var(--sams-muted);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.25rem;
  margin: 0 0.65rem;
  border-bottom: 3px solid transparent;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active {
  color: var(--sams-teal);
  border-bottom-color: var(--sams-teal);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Hero (home page)
   -------------------------------------------------------------------------- */

.hero {
  background: var(--sams-white);
}

.book-cover {
  max-width: 320px;
  width: 100%;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.18));
}

.eyebrow {
  display: inline-block;
  color: var(--sams-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.hero .lead {
  color: var(--sams-teal);
  font-weight: 700;
}

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

.btn-sams {
  background-color: var(--sams-green);
  border-color: var(--sams-green);
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 5px;
  padding: 0.7rem 1.75rem;
}

.btn-sams:hover,
.btn-sams:focus {
  background-color: var(--sams-green-dark);
  border-color: var(--sams-green-dark);
  color: #ffffff;
  text-decoration: none;
}

.btn-outline-sams {
  border: 2px solid var(--sams-green);
  color: var(--sams-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 5px;
  padding: 0.7rem 1.75rem;
}

.btn-outline-sams:hover,
.btn-outline-sams:focus {
  background-color: var(--sams-green);
  color: #ffffff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Sections and cards
   -------------------------------------------------------------------------- */

.section {
  padding: 4.5rem 0;
}

.section-title {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 2.75rem;
  text-align: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--sams-teal);
  margin: 0.75rem auto 0;
}

.card-sams {
  background: var(--sams-white);
  border: 0;
  border-radius: 10px;
  box-shadow: var(--sams-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-sams:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(99, 176, 62, 0.14);
  color: var(--sams-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}
/* --------------------------------------------------------------------------
   Explore links
   -------------------------------------------------------------------------- */

.explore-link {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Blog listing
   -------------------------------------------------------------------------- */

.post-card .post-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.post-meta {
  color: var(--sams-muted);
  font-size: 0.85rem;
}

.post-meta .separator {
  margin: 0 0.35rem;
}

/* --------------------------------------------------------------------------
   Article (blog post pages)
   -------------------------------------------------------------------------- */

.article-card {
  background: var(--sams-white);
  border: 0;
  border-radius: 10px;
  box-shadow: var(--sams-shadow);
}

.article-card .card-body {
  padding: 2.5rem;
}

.article-card .lead-image {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.article-card h1 {
  font-size: 2.2rem;
  font-weight: 700;
}

.article-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
}

.article-card p {
  margin-bottom: 1.25rem;
}

.article-card .inline-image {
  border-radius: 8px;
  box-shadow: var(--sams-shadow);
}

.blockquote-sams {
  border-left: 4px solid var(--sams-teal);
  background: var(--sams-light);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--sams-heading);
  font-size: 1.15rem;
  margin: 1.75rem 0;
}

.blockquote-sams footer {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--sams-muted);
  margin-top: 0.4rem;
}

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

.portrait {
  border-radius: 10px;
  box-shadow: var(--sams-shadow);
}

.interests-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.interests-list li {
  padding: 0.45rem 0 0.45rem 1.75rem;
  position: relative;
}

.interests-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sams-green);
}

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

.site-footer {
  background: var(--sams-white);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--sams-muted);
  font-size: 0.9rem;
  padding: 2rem 0;
}

.site-footer a {
  color: var(--sams-teal);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-control:focus {
  border-color: var(--sams-green);
  box-shadow: 0 0 0 0.2rem rgba(99, 176, 62, 0.25);
}

.form-label {
  font-weight: 700;
  color: var(--sams-heading);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Small helpers
   -------------------------------------------------------------------------- */

.text-teal {
  color: var(--sams-teal);
}

.text-green {
  color: var(--sams-green);
}

.bg-sage {
  background-color: var(--sams-bg);
}

@media (max-width: 991.98px) {
  .site-navbar .nav-link {
    border-bottom: 0;
    border-left: 3px solid transparent;
    margin: 0.1rem 0;
  }

  .site-navbar .nav-link:hover,
  .site-navbar .nav-link:focus,
  .site-navbar .nav-link.active {
    border-left-color: var(--sams-teal);
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 3rem 0;
  }

  .article-card .card-body {
    padding: 1.5rem;
  }

  .article-card h1 {
    font-size: 1.75rem;
  }
}

   Freebees page
   -------------------------------------------------------------------------- */

.freebie-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(48, 161, 134, 0.14);
  color: var(--sams-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.freebie-icon svg {
  width: 30px;
  height: 30px;
}

