/* ==========================================================================
   Custom Styles — HOA Accounting Riverside
   Concept: "Mission Inland Modern" — Deep Emerald, Citrus Gold, Crisp Typography
   Palette: Deep Emerald (#063A36) + Citrus Gold (#D99B26) + Soft Mint (#E8F3F1)
   Typography: Plus Jakarta Sans + Inter
   ========================================================================== */

:root {
  --riv-primary:         #063A36;
  --riv-primary-dark:    #042421;
  --riv-primary-light:   #0E5A54;
  --riv-primary-surface: #F0F6F5;
  --riv-accent:          #D99B26;
  --riv-accent-light:    #F0B849;
  --riv-accent-dark:     #B57D18;
  --riv-bg-light:        #F7FAF9;
  --riv-bg-card:         #FFFFFF;
  --riv-border:          #E2ECE9;
  --riv-border-accent:   rgba(217, 155, 38, 0.35);
  --riv-text-dark:       #0A1A18;
  --riv-text-body:       #2D423E;
  --riv-text-muted:      #607874;
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--riv-text-body);
  background: #FFFFFF;
  overflow-x: hidden;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--riv-text-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { text-decoration: none; }

/* ── Utility ─────────────────────────────────────────────── */
.accent-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--riv-accent), var(--riv-accent-light));
  border-radius: 2px;
  margin-bottom: 18px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--riv-accent-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

/* ── Header ───────────────────────────────────────────────── */
.riv-header {
  background: rgba(6, 58, 54, 0.98);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(217, 155, 38, 0.2);
}

.logo-container { min-height: 48px; display: flex; align-items: center; }

.logo-text-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.logo-text-brand span { color: var(--riv-accent-light); }

.riv-header .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 8px 16px !important;
  transition: color 0.25s ease;
}

.riv-header .nav-link:hover,
.riv-header .nav-link.active {
  color: var(--riv-accent-light) !important;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-cta-phone {
  background: linear-gradient(135deg, var(--riv-accent) 0%, var(--riv-accent-light) 100%);
  color: var(--riv-primary-dark) !important;
  font-weight: 800;
  font-size: 13px;
  padding: 11px 22px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(217, 155, 38, 0.35);
  transition: all 0.3s ease;
}

.btn-cta-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(217, 155, 38, 0.45);
}

.btn-accent {
  background: linear-gradient(135deg, var(--riv-accent) 0%, var(--riv-accent-light) 100%);
  color: var(--riv-primary-dark) !important;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 34px;
  border-radius: 8px;
  border: none;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(217, 155, 38, 0.3);
  transition: all 0.3s ease;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(217, 155, 38, 0.45);
  background: linear-gradient(135deg, var(--riv-accent-light) 0%, var(--riv-accent) 100%);
}

.btn-outline-white {
  background: transparent;
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
}

/* ── HERO — Asymmetric Modern ────────────────────────────── */
.hero-riv {
  min-height: 90vh;
  background: linear-gradient(135deg, rgba(4, 36, 33, 0.65) 0%, rgba(6, 58, 54, 0.55) 60%, rgba(4, 36, 33, 0.68) 100%),
              url('../images/bg/hero-riverside.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 0 80px;
}

.hero-riv-content {
  position: relative;
  z-index: 2;
}

.hero-riv-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 155, 38, 0.18);
  border: 1px solid rgba(217, 155, 38, 0.4);
  color: var(--riv-accent-light);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-riv h1 {
  color: #FFFFFF;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-riv h1 span { color: var(--riv-accent-light); }

.hero-riv-desc {
  color: #D1E7E3;
  font-size: 18px;
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 34px;
}

/* Glassmorphic Metrics Card */
.riv-glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 38px 32px;
  color: #FFFFFF;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.riv-glass-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.riv-glass-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.riv-glass-stat:last-child { margin-bottom: 0; }

.riv-glass-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(217, 155, 38, 0.2);
  color: var(--riv-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.riv-glass-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.riv-glass-stat span {
  font-size: 13px;
  color: #D1E7E3;
}

/* ── Trust & Certification Bar ────────────────────────────── */
.cert-bar-riv {
  background: var(--riv-primary-surface);
  border-bottom: 1px solid var(--riv-border);
  padding: 38px 0;
}

.cert-logo-item {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.cert-logo-item:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.cert-logo-item img {
  max-height: 44px;
  max-width: 130px;
  object-fit: contain;
}

/* ── Bento Grid / Core Pillars ────────────────────────────── */
.riv-bento-section {
  padding: 95px 0;
  background: #FFFFFF;
}

.riv-bento-card {
  background: #FFFFFF;
  border: 1px solid var(--riv-border);
  border-radius: 16px;
  padding: 34px 28px;
  height: 100%;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.riv-bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--riv-accent), var(--riv-accent-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.riv-bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(6, 58, 54, 0.09);
  border-color: rgba(217, 155, 38, 0.4);
}

.riv-bento-card:hover::before { opacity: 1; }

.riv-bento-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--riv-primary-surface);
  color: var(--riv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.riv-bento-card:hover .riv-bento-icon {
  background: var(--riv-primary);
  color: var(--riv-accent-light);
}

.riv-bento-card h4 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.riv-bento-card p { font-size: 14px; color: var(--riv-text-muted); line-height: 1.65; margin: 0; }

/* ── Service Matrix Grid ─────────────────────────────────── */
.riv-services-grid {
  background: var(--riv-primary-dark);
  padding: 100px 0;
  color: #FFFFFF;
}

.riv-svc-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 32px 26px;
  height: 100%;
  transition: all 0.3s ease;
}

.riv-svc-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--riv-accent);
  transform: translateY(-4px);
}

.riv-svc-icon {
  font-size: 28px;
  color: var(--riv-accent-light);
  margin-bottom: 16px;
}

.riv-svc-card h4 {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.riv-svc-card p {
  color: #B0CECA;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ── California Davis-Stirling Compliance ─────────────────── */
.riv-compliance {
  padding: 95px 0;
  background: var(--riv-bg-light);
}

.riv-law-card {
  background: #FFFFFF;
  border: 1px solid var(--riv-border);
  border-left: 4px solid var(--riv-accent);
  border-radius: 12px;
  padding: 30px 26px;
  height: 100%;
  box-shadow: 0 4px 18px rgba(6, 58, 54, 0.05);
  transition: all 0.3s ease;
}

.riv-law-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(6, 58, 54, 0.1);
}

.riv-law-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--riv-primary-surface);
  color: var(--riv-primary);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.riv-law-card h5 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.riv-law-card p { color: var(--riv-text-muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* ── Testimonials ────────────────────────────────────────── */
.riv-testi-section {
  padding: 95px 0;
  background: #FFFFFF;
}

.riv-testi-card {
  background: var(--riv-primary-surface);
  border: 1px solid var(--riv-border);
  border-radius: 14px;
  padding: 34px 28px;
  height: 100%;
  position: relative;
}

.riv-testi-stars { color: var(--riv-accent); margin-bottom: 16px; font-size: 14px; }

.riv-testi-card blockquote {
  color: var(--riv-text-body);
  font-size: 15px;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 22px;
}

.riv-testi-author strong { color: var(--riv-text-dark); font-size: 15px; display: block; }
.riv-testi-author span { color: var(--riv-text-muted); font-size: 13px; }

/* ── CTA Banner ──────────────────────────────────────────── */
.riv-cta {
  background: linear-gradient(135deg, rgba(4, 36, 33, 0.68) 0%, rgba(6, 58, 54, 0.58) 100%),
              url('../images/bg/banner-contact.webp') center/cover no-repeat;
  padding: 100px 0;
  text-align: center;
  color: #FFFFFF;
}

.riv-cta h2 { color: #FFFFFF; font-size: 42px; margin-bottom: 16px; }
.riv-cta p { color: #D1E7E3; font-size: 17px; max-width: 600px; margin: 0 auto 38px; line-height: 1.65; }

/* ── Page Banners ────────────────────────────────────────── */
.page-banner {
  padding: 85px 0 75px;
  color: #FFFFFF;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.page-banner-about {
  background: linear-gradient(135deg, rgba(4, 36, 33, 0.62) 0%, rgba(6, 58, 54, 0.52) 100%), url('../images/bg/banner-about.jpg') center/cover no-repeat;
}

.page-banner-services {
  background: linear-gradient(135deg, rgba(4, 36, 33, 0.62) 0%, rgba(6, 58, 54, 0.52) 100%), url('../images/bg/banner-services.jpg') center/cover no-repeat;
}

.page-banner-team {
  background: linear-gradient(135deg, rgba(4, 36, 33, 0.62) 0%, rgba(6, 58, 54, 0.52) 100%), url('../images/bg/banner-team.webp') center/cover no-repeat;
}

.page-banner-contact {
  background: linear-gradient(135deg, rgba(4, 36, 33, 0.62) 0%, rgba(6, 58, 54, 0.52) 100%), url('../images/bg/banner-contact.webp') center/cover no-repeat;
}

.page-banner h1 { color: #FFFFFF; font-size: 42px; font-weight: 800; }
.page-banner p { color: #D1E7E3; font-size: 16px; max-width: 620px; margin: 10px auto 0; }

/* ── Team Card (Blank/Neutral Placeholder) ─────────────────── */
.riv-team-card {
  background: #FFFFFF;
  border: 1px solid var(--riv-border);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(6, 58, 54, 0.05);
}

.riv-team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(6, 58, 54, 0.1);
  border-color: var(--riv-accent);
}

.team-img-wrapper {
  height: 220px;
  background: linear-gradient(135deg, #F0F6F5 0%, #E0ECE9 100%);
  border-bottom: 1px solid var(--riv-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--riv-primary);
  font-size: 54px;
}

.riv-team-info { padding: 24px 20px; text-align: center; }
.riv-team-info h4 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.riv-team-info span { color: var(--riv-accent-dark); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.riv-team-info p { color: var(--riv-text-muted); font-size: 14px; margin-top: 10px; line-height: 1.5; }

/* ── Contact Form ────────────────────────────────────────── */
.riv-form-box {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 44px;
  box-shadow: 0 12px 40px rgba(6, 58, 54, 0.07);
  border: 1px solid var(--riv-border);
}

.riv-form-box label {
  font-weight: 600;
  color: var(--riv-text-dark);
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}

.riv-form-box .form-control,
.riv-form-box .form-select {
  border: 1.5px solid var(--riv-border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--riv-text-dark);
  transition: all 0.25s ease;
}

.riv-form-box .form-control:focus,
.riv-form-box .form-select:focus {
  border-color: var(--riv-accent);
  box-shadow: 0 0 0 3px rgba(217, 155, 38, 0.2);
  outline: none;
}

.riv-contact-card {
  background: #FFFFFF;
  border: 1px solid var(--riv-border);
  border-top: 3px solid var(--riv-accent);
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(6, 58, 54, 0.05);
}

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--riv-border);
  font-size: 14px;
}
.checklist li:last-child { border-bottom: none; }
.checklist li i { color: var(--riv-accent); font-size: 16px; margin-top: 2px; flex-shrink: 0; }

/* ── Footer ───────────────────────────────────────────────── */
.riv-footer {
  background: var(--riv-primary-dark);
  color: #93ABA7;
  padding: 90px 0 36px;
}

.riv-footer h4 {
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 22px;
  padding-bottom: 10px;
  position: relative;
}

.riv-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--riv-accent);
}

.riv-footer p { color: #93ABA7; font-size: 14px; line-height: 1.65; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links li a {
  color: #93ABA7;
  font-size: 14px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links li a:hover {
  color: var(--riv-accent-light);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 26px;
  margin-top: 50px;
  font-size: 13px;
  color: #607874;
}

/* ── Areas We Service ─────────────────────────────────────── */
.riv-areas-section {
  padding: 80px 0;
  background-color: var(--riv-bg-light);
  border-top: 1px solid var(--riv-border);
  border-bottom: 1px solid var(--riv-border);
}

.riv-areas-box {
  background: #FFFFFF;
  border: 1px solid var(--riv-border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(6, 58, 54, 0.05);
}

.riv-area-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.riv-area-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--riv-primary-surface);
  border: 1px solid var(--riv-border);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: var(--riv-primary);
  transition: all 0.25s ease;
}

.riv-area-pill i {
  color: var(--riv-accent);
}

.riv-area-pill:hover {
  background: var(--riv-primary);
  color: #FFFFFF;
  border-color: var(--riv-primary);
  transform: translateY(-2px);
}

.riv-area-pill:hover i {
  color: var(--riv-accent-light);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .hero-riv h1 { font-size: 40px; }
  .hero-riv { min-height: auto; padding: 70px 0; }
}

@media (max-width: 767px) {
  .hero-riv h1 { font-size: 32px; }
  .hero-riv-desc { font-size: 16px; }
  .riv-form-box { padding: 26px 20px; }
}
