/* RunPoint Financial Collective — main.css */

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

:root {
  --ink: #1a2e1a;
  --cream: #f4f6f2;
  --stone: #6b7d6b;
  --green: #2d5a2d;
  --green-mid: #3d7a3d;
  --green-light: #7dbb7d;
  --white: #ffffff;
  --rule: rgba(26,46,26,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-weight: 300;
  overflow-x: hidden;
}

/* ---- NAV ---- */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(244,246,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo img { height: 44px; width: auto; display: block; max-width: 200px; object-fit: contain; }
.nav-logo-text { font-family: 'DM Serif Display', serif; font-size: 1.05rem; color: var(--ink); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { text-decoration: none; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.6rem 1.4rem; border: 1px solid var(--ink); text-decoration: none; color: var(--ink); transition: background 0.2s, color 0.2s; }
.nav-cta:hover { background: var(--ink); color: var(--cream); }

/* ---- HERO ---- */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; padding-top: 6rem; position: relative; overflow: hidden; }
.hero-left { display: flex; flex-direction: column; justify-content: center; padding: 5rem 4rem 5rem 3rem; position: relative; z-index: 2; }
.hero-eyebrow { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 1.5rem; opacity: 0; animation: fadeUp 0.8s 0.2s forwards; }
.hero-title { font-family: 'DM Serif Display', serif; font-size: clamp(3rem, 5vw, 5rem); line-height: 1.08; color: var(--ink); margin-bottom: 2rem; opacity: 0; animation: fadeUp 0.8s 0.4s forwards; }
.hero-title em { font-style: italic; color: var(--green-mid); }
.hero-sub { font-size: 1.05rem; line-height: 1.75; color: var(--stone); max-width: 440px; margin-bottom: 3rem; opacity: 0; animation: fadeUp 0.8s 0.6s forwards; }
.hero-actions { display: flex; gap: 1rem; align-items: center; opacity: 0; animation: fadeUp 0.8s 0.8s forwards; }

.btn-primary { padding: 0.9rem 2rem; background: var(--ink); color: var(--cream); text-decoration: none; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.2s; }
.btn-primary:hover { background: var(--green); }
.btn-ghost { padding: 0.9rem 2rem; border: 1px solid var(--stone); color: var(--stone); text-decoration: none; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; transition: border-color 0.2s, color 0.2s; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.hero-right { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-graphic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; animation: fadeIn 1.2s 0.5s forwards; }
.hero-graphic svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.hero-stat-block { position: relative; z-index: 2; display: grid; grid-template-rows: 1fr 1fr; gap: 1.5rem; padding: 2rem; }
.stat-card { background: var(--white); padding: 2rem 2.5rem; border: 1px solid var(--rule); position: relative; opacity: 0; animation: fadeUp 0.8s forwards; }
.stat-card:nth-child(1) { animation-delay: 0.9s; margin-left: 2rem; }
.stat-card:nth-child(2) { animation-delay: 1.1s; margin-right: 2rem; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--green-mid); }
.stat-num { font-family: 'DM Serif Display', serif; font-size: 2.8rem; color: var(--ink); line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }

/* ---- DIVIDER ---- */
.section-rule { display: flex; align-items: center; gap: 1.5rem; padding: 0 3rem; }
.section-rule .line { flex: 1; height: 1px; background: var(--rule); }
.section-rule .dot { width: 6px; height: 6px; background: var(--green-mid); transform: rotate(45deg); flex-shrink: 0; }

/* ---- SERVICES ---- */
.services { padding: 7rem 3rem; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; }
.section-label { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 0.8rem; }
.section-title { font-family: 'DM Serif Display', serif; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.15; }
.section-desc { font-size: 0.95rem; line-height: 1.75; color: var(--stone); max-width: 320px; text-align: right; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); }
.service-card { padding: 3rem; border-right: 1px solid var(--rule); position: relative; transition: background 0.3s; }
.service-card:last-child { border-right: none; }
.service-card:hover { background: var(--white); }
.service-num { font-family: 'DM Serif Display', serif; font-size: 0.85rem; color: var(--green-mid); letter-spacing: 0.1em; margin-bottom: 2rem; }
.service-icon { width: 36px; height: 36px; margin-bottom: 1.5rem; opacity: 0.7; }
.service-name { font-family: 'DM Serif Display', serif; font-size: 1.5rem; margin-bottom: 1rem; line-height: 1.2; }
.service-desc { font-size: 0.9rem; line-height: 1.8; color: var(--stone); margin-bottom: 2rem; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.service-list li { font-size: 0.82rem; color: var(--stone); padding-left: 1rem; position: relative; }
.service-list li::before { content: '\2014'; position: absolute; left: 0; color: var(--green-mid); }

/* ---- WHY ---- */
.why { background: #1a2e1a; padding: 7rem 3rem; color: var(--cream); }
.why .section-label { color: var(--green-light); }
.why .section-title { color: var(--cream); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin-top: 4rem; align-items: center; }
.why-text p { font-size: 1.05rem; line-height: 1.85; color: rgba(244,246,242,0.65); margin-bottom: 1.5rem; }
.why-text p strong { color: var(--cream); font-weight: 400; }
.why-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5px; background: rgba(244,246,242,0.08); }
.pillar { background: #1a2e1a; padding: 2.5rem; transition: background 0.3s; }
.pillar:hover { background: #223a22; }
.pillar-icon { font-size: 1.5rem; margin-bottom: 1rem; color: var(--green-light); }
.pillar-title { font-family: 'DM Serif Display', serif; font-size: 1.1rem; color: var(--cream); margin-bottom: 0.6rem; }
.pillar-desc { font-size: 0.84rem; line-height: 1.7; color: rgba(244,246,242,0.45); }

/* ---- PROCESS ---- */
.process { padding: 7rem 3rem; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4rem; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 2rem; left: 2rem; right: 2rem; height: 1px; background: var(--rule); }
.step { padding: 0 2rem; position: relative; z-index: 1; }
.step-num { width: 4rem; height: 4rem; border: 1px solid var(--rule); background: var(--cream); display: flex; align-items: center; justify-content: center; font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--green-mid); margin-bottom: 2rem; }
.step-title { font-family: 'DM Serif Display', serif; font-size: 1.1rem; margin-bottom: 0.75rem; }
.step-desc { font-size: 0.85rem; line-height: 1.75; color: var(--stone); }

/* ---- CONTACT ---- */
.contact-section { background: #111e11; padding: 7rem 3rem; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6rem; max-width: 1100px; margin: 0 auto; align-items: start; }
.contact-left .section-label { color: var(--green-light); }
.contact-left .section-title { color: var(--cream); margin-bottom: 1.5rem; }
.contact-sub { font-size: 0.95rem; line-height: 1.8; color: rgba(244,246,242,0.55); margin-bottom: 2.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-detail { display: flex; align-items: center; gap: 0.85rem; font-size: 0.88rem; color: rgba(244,246,242,0.5); }
.contact-detail a { color: rgba(244,246,242,0.5); text-decoration: none; transition: color 0.2s; }
.contact-detail a:hover { color: var(--cream); }
.contact-detail-icon { color: var(--green-light); font-size: 1rem; flex-shrink: 0; }
.contact-form-wrap { background: var(--cream); padding: 3rem; }

/* ---- WPFORMS OVERRIDES ---- */
/* These override WPForms default styles to match the RunPoint design */
.contact-form-wrap .wpforms-container { font-family: 'DM Sans', sans-serif !important; }
.contact-form-wrap .wpforms-field-label { font-size: 0.75rem !important; letter-spacing: 0.12em !important; text-transform: uppercase !important; color: var(--stone) !important; font-weight: 300 !important; margin-bottom: 0.5rem !important; }
.contact-form-wrap .wpforms-field input,
.contact-form-wrap .wpforms-field select,
.contact-form-wrap .wpforms-field textarea { font-family: 'DM Sans', sans-serif !important; font-size: 0.92rem !important; font-weight: 300 !important; color: var(--ink) !important; background: var(--white) !important; border: 1px solid var(--rule) !important; border-radius: 0 !important; padding: 0.85rem 1rem !important; box-shadow: none !important; transition: border-color 0.2s !important; }
.contact-form-wrap .wpforms-field input:focus,
.contact-form-wrap .wpforms-field select:focus,
.contact-form-wrap .wpforms-field textarea:focus { border-color: var(--green-mid) !important; outline: none !important; box-shadow: none !important; }
.contact-form-wrap .wpforms-submit { width: 100% !important; padding: 1rem 2rem !important; background: #1a2e1a !important; color: var(--cream) !important; border: none !important; border-radius: 0 !important; font-family: 'DM Sans', sans-serif !important; font-size: 0.82rem !important; letter-spacing: 0.12em !important; text-transform: uppercase !important; cursor: pointer !important; transition: background 0.2s !important; }
.contact-form-wrap .wpforms-submit:hover { background: var(--green) !important; }
.contact-form-wrap .wpforms-confirmation-container { background: rgba(45,90,45,0.08) !important; border: 1px solid rgba(45,90,45,0.2) !important; color: var(--green) !important; border-radius: 0 !important; padding: 1rem 1.25rem !important; }

/* ---- FOOTER ---- */
#site-footer { background: #111e11; color: var(--cream); padding: 4rem 3rem 2.5rem; border-top: 1px solid rgba(244,246,242,0.07); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 3rem; border-bottom: 1px solid rgba(244,246,242,0.1); margin-bottom: 2rem; }
.footer-logo { margin-bottom: 0.8rem; }
.footer-logo img { height: 44px; width: auto; max-width: 180px; object-fit: contain; opacity: 0.9; }
.footer-logo-text { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--cream); }
.footer-tagline { font-size: 0.82rem; color: rgba(244,246,242,0.4); max-width: 240px; line-height: 1.65; }
.footer-links { display: flex; gap: 4rem; }
.footer-col h4 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-light); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.85rem; color: rgba(244,246,242,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.76rem; color: rgba(244,246,242,0.3); }
.footer-bottom a { color: rgba(244,246,242,0.3); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--cream); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  #site-nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 6rem 1.5rem 3rem; }
  .hero-right { display: none; }
  .services { padding: 4rem 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .section-desc { text-align: left; }
  .why { padding: 4rem 1.5rem; }
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .process { padding: 4rem 1.5rem; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .process-steps::before { display: none; }
  .step { padding: 0; }
  .contact-section { padding: 4rem 1.5rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-form-wrap { padding: 2rem 1.5rem; }
  #site-footer { padding: 3rem 1.5rem 2rem; }
  .footer-top { flex-direction: column; gap: 2.5rem; }
  .footer-links { gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
