/* ==========================================================================
   Capital Roots Finance (capitalrootsfinance.com)
   Custom Editorial Financial Stylesheet
   Palette: Deep Botanical Pine (#122B24), Warm Parchment (#F7F4EC),
            Burnished Terracotta Copper (#C86D44), Antique Gold (#D4A359)
   ========================================================================== */

:root {
  --crf-pine-dark: #0D201A;
  --crf-pine: #122B24;
  --crf-pine-mid: #1C3F35;
  --crf-pine-light: #285749;
  --crf-copper: #C86D44;
  --crf-copper-hover: #AE5730;
  --crf-gold: #D4A359;
  --crf-gold-soft: #E9CFA1;
  --crf-cream: #F7F4EC;
  --crf-cream-alt: #EFEAE0;
  --crf-white: #FFFFFF;
  --crf-ink: #162420;
  --crf-muted: #52635D;
  --crf-border: #DCD5C7;
  --crf-radius-sm: 8px;
  --crf-radius-md: 14px;
  --crf-radius-lg: 20px;
  --crf-shadow-sm: 0 6px 20px rgba(18, 43, 36, 0.06);
  --crf-shadow-md: 0 14px 34px rgba(18, 43, 36, 0.10);
  --crf-shadow-lg: 0 22px 48px rgba(18, 43, 36, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--crf-cream);
  color: var(--crf-ink);
  line-height: 1.65;
  overflow-x: hidden;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--crf-pine);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

a {
  color: var(--crf-copper);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--crf-copper-hover);
}

/* Top Utility Bar */
.top-utility-bar {
  background-color: var(--crf-pine-dark);
  color: var(--crf-cream);
  font-size: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(212, 163, 89, 0.22);
}

.top-utility-bar a {
  color: var(--crf-gold-soft);
  text-decoration: none;
}

.top-utility-bar a:hover {
  color: var(--crf-white);
}

.utility-divider {
  opacity: 0.35;
  margin: 0 0.65rem;
}

/* Primary Navigation & One-Line Uniform Logo */
.site-navbar {
  background-color: var(--crf-cream);
  border-bottom: 1px solid var(--crf-border);
  padding: 0.95rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 4px 16px rgba(18, 43, 36, 0.05);
}

/* Strictly One Line with Same Style as Requested */
.brand-logo {
  font-family: Georgia, "Times New Roman", Times, serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  font-style: normal !important;
  color: var(--crf-pine) !important;
  white-space: nowrap !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  display: inline-block !important;
  text-decoration: none !important;
}

.brand-logo:hover,
.brand-logo:focus {
  color: var(--crf-pine) !important;
}

.brand-logo-footer {
  font-family: Georgia, "Times New Roman", Times, serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  font-style: normal !important;
  color: var(--crf-cream) !important;
  white-space: nowrap !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  display: inline-block !important;
  text-decoration: none !important;
}

.brand-logo-footer:hover,
.brand-logo-footer:focus {
  color: var(--crf-gold-soft) !important;
}

.site-navbar .nav-link {
  color: var(--crf-pine);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--crf-radius-sm);
  white-space: nowrap;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--crf-copper);
  background-color: rgba(200, 109, 68, 0.08);
}

/* Custom Buttons */
.btn-copper {
  background-color: var(--crf-copper);
  color: var(--crf-white) !important;
  font-weight: 600;
  padding: 0.72rem 1.45rem;
  border-radius: var(--crf-radius-sm);
  border: 2px solid var(--crf-copper);
  display: inline-block;
  text-align: center;
  transition: all 0.22s ease;
}

.btn-copper:hover,
.btn-copper:focus {
  background-color: var(--crf-copper-hover);
  border-color: var(--crf-copper-hover);
  color: var(--crf-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 109, 68, 0.28);
}

.btn-pine {
  background-color: var(--crf-pine);
  color: var(--crf-cream) !important;
  font-weight: 600;
  padding: 0.72rem 1.45rem;
  border-radius: var(--crf-radius-sm);
  border: 2px solid var(--crf-pine);
  display: inline-block;
  text-align: center;
  transition: all 0.22s ease;
}

.btn-pine:hover,
.btn-pine:focus {
  background-color: var(--crf-pine-mid);
  border-color: var(--crf-pine-mid);
  color: var(--crf-white) !important;
  transform: translateY(-2px);
}

.btn-outline-pine {
  background-color: transparent;
  color: var(--crf-pine) !important;
  font-weight: 600;
  padding: 0.72rem 1.45rem;
  border-radius: var(--crf-radius-sm);
  border: 2px solid var(--crf-pine);
  display: inline-block;
  text-align: center;
  transition: all 0.22s ease;
}

.btn-outline-pine:hover,
.btn-outline-pine:focus {
  background-color: var(--crf-pine);
  color: var(--crf-cream) !important;
}

.btn-outline-cream {
  background-color: transparent;
  color: var(--crf-cream) !important;
  font-weight: 600;
  padding: 0.72rem 1.45rem;
  border-radius: var(--crf-radius-sm);
  border: 2px solid var(--crf-gold);
  display: inline-block;
  text-align: center;
  transition: all 0.22s ease;
}

.btn-outline-cream:hover,
.btn-outline-cream:focus {
  background-color: var(--crf-gold);
  color: var(--crf-pine-dark) !important;
}

/* Section Styling */
.section-padding {
  padding: 5.25rem 0;
}

.bg-cream-alt {
  background-color: var(--crf-cream-alt);
}

.bg-pine-section {
  background: linear-gradient(135deg, var(--crf-pine-dark) 0%, var(--crf-pine) 60%, var(--crf-pine-mid) 100%);
  color: var(--crf-cream);
}

.bg-pine-section h1,
.bg-pine-section h2,
.bg-pine-section h3,
.bg-pine-section h4 {
  color: var(--crf-cream);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--crf-copper);
  background-color: rgba(200, 109, 68, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.9rem;
}

.bg-pine-section .section-eyebrow {
  color: var(--crf-gold-soft);
  background-color: rgba(212, 163, 89, 0.16);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 5.5rem;
  background: radial-gradient(circle at 90% 15%, rgba(212, 163, 89, 0.16), transparent 45%),
              radial-gradient(circle at 10% 85%, rgba(200, 109, 68, 0.10), transparent 40%),
              var(--crf-cream);
  border-bottom: 1px solid var(--crf-border);
}

.hero-title {
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  margin-bottom: 1.25rem;
  color: var(--crf-pine);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--crf-muted);
  margin-bottom: 2rem;
  max-width: 58ch;
}

.hero-stat-box {
  background-color: var(--crf-white);
  border: 1px solid var(--crf-border);
  border-left: 4px solid var(--crf-copper);
  border-radius: var(--crf-radius-sm);
  padding: 1rem 1.15rem;
  box-shadow: var(--crf-shadow-sm);
  height: 100%;
}

.hero-stat-value {
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--crf-pine);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.84rem;
  color: var(--crf-muted);
  margin: 0;
}

/* Page Header Banner (Subpages) */
.page-hero-banner {
  background: linear-gradient(135deg, var(--crf-pine-dark) 0%, var(--crf-pine) 65%, var(--crf-pine-mid) 100%);
  color: var(--crf-cream);
  padding: 4.25rem 0;
  border-bottom: 4px solid var(--crf-copper);
}

.page-hero-banner h1 {
  color: var(--crf-cream);
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 0.85rem;
}

.page-hero-banner p {
  color: rgba(247, 244, 236, 0.84);
  font-size: 1.1rem;
  max-width: 65ch;
  margin-bottom: 0;
}

/* Service Cards (Image, Heading, Description, Button to Contact Page) */
.service-card {
  background-color: var(--crf-white);
  border: 1px solid var(--crf-border);
  border-radius: var(--crf-radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--crf-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--crf-shadow-md);
  border-color: var(--crf-copper);
}

.service-card-img-wrap {
  width: 100%;
  height: 215px;
  overflow: hidden;
  background-color: var(--crf-pine);
  border-bottom: 3px solid var(--crf-gold);
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.service-card:hover .service-card-img {
  transform: scale(1.04);
}

.service-card-body {
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--crf-pine);
}

.service-card-desc {
  color: var(--crf-muted);
  font-size: 0.96rem;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

/* Pillar / Feature Cards */
.feature-pillar-card {
  background-color: var(--crf-white);
  border: 1px solid var(--crf-border);
  border-top: 4px solid var(--crf-pine);
  border-radius: var(--crf-radius-md);
  padding: 1.85rem;
  height: 100%;
  box-shadow: var(--crf-shadow-sm);
}

.feature-pillar-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--crf-pine);
  color: var(--crf-gold-soft);
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

/* Testimonial Cards (USA Names Only - No Profession or Other Info) */
.testimonial-card {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 163, 89, 0.28);
  border-radius: var(--crf-radius-md);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote-mark {
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--crf-gold);
  margin-bottom: 0.5rem;
}

.testimonial-text {
  font-size: 1.02rem;
  color: rgba(247, 244, 236, 0.92);
  font-style: italic;
  margin-bottom: 1.4rem;
}

.testimonial-name {
  font-family: Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--crf-gold-soft);
  margin: 0;
  border-top: 1px solid rgba(212, 163, 89, 0.22);
  padding-top: 0.9rem;
}

/* Blog Cards (Strictly NO Blog Meta) */
.blog-card {
  background-color: var(--crf-white);
  border: 1px solid var(--crf-border);
  border-radius: var(--crf-radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--crf-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--crf-shadow-md);
}

.blog-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 3px solid var(--crf-copper);
}

.blog-card-body {
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
  line-height: 1.32;
}

.blog-card-title a {
  color: var(--crf-pine);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--crf-copper);
}

.blog-card-excerpt {
  color: var(--crf-muted);
  font-size: 0.95rem;
  margin-bottom: 1.35rem;
  flex-grow: 1;
}

/* Single Blog Post Article Styling */
.blog-article-container {
  background-color: var(--crf-white);
  border: 1px solid var(--crf-border);
  border-radius: var(--crf-radius-lg);
  padding: 2.75rem;
  box-shadow: var(--crf-shadow-sm);
}

.blog-article-container p {
  font-size: 1.07rem;
  line-height: 1.82;
  color: #24332E;
  margin-bottom: 1.45rem;
}

.blog-article-banner {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--crf-radius-md);
  margin-bottom: 2.2rem;
  border: 2px solid var(--crf-gold);
}

/* Forms & Interactive Panels */
.form-card {
  background-color: var(--crf-white);
  border: 1px solid var(--crf-border);
  border-radius: var(--crf-radius-lg);
  padding: 2.35rem;
  box-shadow: var(--crf-shadow-md);
}

.form-label {
  font-weight: 600;
  color: var(--crf-pine);
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}

.form-control,
.form-select {
  border: 1.5px solid #C8C0B0;
  border-radius: var(--crf-radius-sm);
  padding: 0.72rem 0.95rem;
  font-size: 0.96rem;
  color: var(--crf-ink);
  background-color: #FDFCF9;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--crf-copper);
  box-shadow: 0 0 0 0.22rem rgba(200, 109, 68, 0.18);
  background-color: var(--crf-white);
}

/* Interactive Loan Estimator Card */
.calculator-panel {
  background-color: var(--crf-white);
  border: 2px solid var(--crf-gold);
  border-radius: var(--crf-radius-lg);
  padding: 2.2rem;
  box-shadow: var(--crf-shadow-md);
}

.calc-result-box {
  background-color: var(--crf-pine);
  color: var(--crf-cream);
  border-radius: var(--crf-radius-md);
  padding: 1.5rem;
  border-left: 5px solid var(--crf-copper);
}

/* Contact Info Card */
.contact-info-panel {
  background: linear-gradient(155deg, var(--crf-pine) 0%, var(--crf-pine-dark) 100%);
  color: var(--crf-cream);
  border-radius: var(--crf-radius-lg);
  padding: 2.35rem;
  height: 100%;
  border: 1px solid var(--crf-gold);
}

.contact-info-panel h3,
.contact-info-panel h4,
.contact-info-panel h5 {
  color: var(--crf-gold-soft);
}

.contact-info-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(212, 163, 89, 0.2);
}

.contact-info-item:last-child {
  border-bottom: none;
}

/* Legal Document Styling */
.legal-document-box {
  background-color: var(--crf-white);
  border: 1px solid var(--crf-border);
  border-radius: var(--crf-radius-lg);
  padding: 2.75rem;
  box-shadow: var(--crf-shadow-sm);
}

.legal-document-box h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--crf-border);
}

.legal-document-box h2:first-of-type {
  margin-top: 0;
}

/* Footer */
.site-footer {
  background-color: var(--crf-pine-dark);
  color: rgba(247, 244, 236, 0.82);
  padding: 4.5rem 0 2rem;
  border-top: 4px solid var(--crf-copper);
}

.site-footer h5 {
  color: var(--crf-gold-soft);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

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

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(247, 244, 236, 0.8);
  text-decoration: none;
  font-size: 0.94rem;
}

.footer-links a:hover {
  color: var(--crf-gold-soft);
  padding-left: 4px;
}

.footer-bottom {
  margin-top: 3.25rem;
  padding-top: 1.65rem;
  border-top: 1px solid rgba(212, 163, 89, 0.2);
  font-size: 0.88rem;
}

@media (max-width: 767.98px) {
  .brand-logo,
  .brand-logo-footer {
    font-size: 1.25rem !important;
  }
  .section-padding {
    padding: 3.5rem 0;
  }
  .blog-article-container,
  .legal-document-box,
  .form-card {
    padding: 1.5rem;
  }
}
