/*
Theme Name: Faithful Steward Financial
Theme URI: https://www.faithfulstewardfinancial.com/
Author: Nlinksolution
Author URI: https://www.nlinksolution.com
Description: A modern, high-converting WordPress theme for Faithful Steward Financial. Featuring Customizer controls for all sections, Custom Post Types for Services and FAQs, Google reCAPTCHA v3 inquiry form integration, and clean responsive design.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: faithful-steward
*/

:root {
  --navy: #081933;
  --navy-2: #0e2447;
  --navy-3: #0b1d38;
  --navy-dark: #040e1d;
  --gold: #c8a64e;
  --gold-light: #f0da8d;
  --gold-dark: #96711d;
  --white: #fff;
  --soft: #f4f7fc;
  --text: #081933;
  --muted: #586884;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(8, 25, 51, 0.1);
  --grad: linear-gradient(135deg, #f0da8d 0%, #c8a64e 52%, #96711d 100%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p {
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  font-family: inherit;
  text-decoration: none;
}

.btn-gold {
  background: var(--grad);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(200, 166, 78, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(200, 166, 78, 0.5);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* Top bar (desktop only) */
.topbar {
  background: var(--navy);
  color: #dfe6f5;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(200, 166, 78, 0.25);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.topbar a:hover {
  color: var(--gold-light);
}

.topbar i {
  color: var(--gold);
  margin-right: 8px;
}

.topbar .tb-left, .topbar .tb-right {
  display: flex;
  gap: 26px;
  align-items: center;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 14px rgba(8, 25, 51, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.85;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  line-height: 1;
}

.logo .l1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  color: #021b41;
  letter-spacing: 0.15em;
  line-height: 1.15;
  text-transform: uppercase;
  display: block;
}

.logo .l2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: #b88612;
  letter-spacing: 0.42em;
  line-height: 1;
  text-transform: uppercase;
  display: block;
  margin-top: 5px;
}

.logo-img {
  height: 76px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:not(.btn) {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s;
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-links a.btn, .nav-links .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  color: var(--navy);
  text-decoration: none;
  box-sizing: border-box;
}

.hamburger {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--navy);
  font-size: 1.5rem;
  border-radius: 8px;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  padding: 110px 0 100px;
  background-color: var(--navy);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 25, 51, 0.96) 0%, rgba(8, 25, 51, 0.87) 50%, rgba(8, 25, 51, 0.62) 100%);
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero h1 {
  color: #fff;
}

.hero h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: 1.1rem;
  color: #dbe3f3;
  max-width: 560px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(200, 166, 78, 0.6);
  color: var(--gold-light);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 26px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-size: 0.9rem;
  color: #dbe3f3;
}

.hero-points i {
  color: var(--gold);
  margin-right: 8px;
}

/* Lead card */
.card-form {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border-top: 5px solid var(--gold);
}

.card-form h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.card-form .sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--navy);
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d7ddea;
  border-radius: 10px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: #fff;
  transition: border 0.2s, box-shadow 0.2s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 166, 78, 0.2);
}

.card-form .btn {
  width: 100%;
}

.privacy {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
}

.privacy i {
  color: var(--gold-dark);
  margin-right: 5px;
}

.form-msg {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.form-msg.is-success {
  background: #eaf7ee;
  color: #1d6b3a;
  border: 1px solid #c2e9cb;
}

.form-msg.is-error {
  background: #fdecec;
  color: #a12828;
  border: 1px solid #f8c9c9;
}

.form-msg.is-loading {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Trust strip */
.trust {
  background: var(--soft);
  padding: 34px 0;
  border-bottom: 1px solid #e6ebf4;
}

.trust .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-item i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex: none;
}

.trust-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
}

.trust-item span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Problem */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
}

.checks li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.checks i {
  color: var(--gold-dark);
  margin-top: 5px;
}

/* Services */
.services {
  background: var(--soft);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-bottom: 4px solid transparent;
  transition: transform 0.25s, border-color 0.25s;
}

.service:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.service .ico {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

/* Process */
.process {
  background: var(--navy);
  color: #fff;
  position: relative;
}

.process h2, .process h3 {
  color: #fff;
}

.process .section-head p {
  color: #c9d3ea;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: s;
}

.step {
  background: var(--navy-3);
  border: 1px solid rgba(200, 166, 78, 0.25);
  border-radius: var(--radius);
  padding: 30px 24px;
  position: relative;
}

.step::before {
  counter-increment: s;
  content: "0" counter(s);
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 8px;
}

.step p {
  color: #c9d3ea;
  font-size: 0.9rem;
  margin: 0;
}

.process .cta-row {
  text-align: center;
  margin-top: 46px;
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.why {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.why i {
  color: var(--gold-dark);
  font-size: 1.3rem;
  margin-top: 3px;
}

.why strong {
  display: block;
  color: var(--navy);
}

.why span {
  font-size: 0.88rem;
  color: var(--muted);
}

#why .split img {
  width: 100%;
  max-width: 500px;
  height: auto;
  aspect-ratio: auto;
  object-fit: cover;
  border: 1px solid rgba(200, 166, 78, 0.25);
  justify-self: center;
  margin: 0 auto;
}

/* About */
.about {
  background: var(--soft);
}

.about .split img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border: 1px solid rgba(200, 166, 78, 0.25);
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

details {
  background: #fff;
  border: 1px solid #e1e7f2;
  border-radius: 12px;
  margin-bottom: 14px;
  padding: 0 22px;
  box-shadow: 0 4px 14px rgba(8, 25, 51, 0.05);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "\f067";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--gold-dark);
  font-size: 0.8rem;
  transition: transform 0.2s;
}

details[open] summary::after {
  content: "\f068";
}

details p {
  color: var(--muted);
  font-size: 0.93rem;
  padding-bottom: 18px;
  margin: 0;
}

/* Contact */
.contact {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}

.contact h2 {
  color: #fff;
}

.contact .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact p.lead {
  color: #c9d3ea;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.contact-list .ci {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(200, 166, 78, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.contact-list small {
  display: block;
  color: #a9b6d3;
  font-size: 0.78rem;
}

.contact-list a, .contact-list span.v {
  font-weight: 600;
  word-break: break-word;
}

.contact-list a:hover {
  color: var(--gold-light);
}

/* Footer */
footer {
  background: var(--navy);
  color: #b3bfd8;
  padding: 56px 0 0;
  font-size: 0.9rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

footer .logo {
  color: #fff;
  margin-bottom: 12px;
  display: inline-block;
}

.logo-img-footer {
  height: 88px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
  margin: 0 0 16px;
}

footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 16px;
  letter-spacing: 0.05em;
}

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

footer li {
  margin-bottom: 10px;
}

footer a:hover {
  color: var(--gold-light);
}

footer i {
  color: var(--gold);
  margin-right: 8px;
}

.social a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(200, 166, 78, 0.5);
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  transition: all 0.2s;
}

.social a i {
  margin: 0;
}

.social a:hover {
  background: var(--gold);
  color: var(--navy);
}

.copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
}

.copy a {
  color: var(--gold-light);
  transition: color 0.2s;
}

.copy a:hover {
  text-decoration: underline;
}

/* Tablet */
@media (max-width: 980px) {
  .hero .container, .split, .contact .grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .trust .container {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding: 80px 0;
  }
}

/* Mobile */
@media (max-width: 820px) {
  .topbar {
    display: none;
  }
  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav {
    height: 76px;
    position: relative;
  }
  .logo .l1 {
    font-size: 1.12rem;
    letter-spacing: 0.13em;
  }
  .logo .l2 {
    font-size: 0.58rem;
    letter-spacing: 0.38em;
    margin-top: 4px;
  }
  .logo-img {
    height: 70px;
    margin: 0;
  }
  .logo-img-footer {
    height: 84px;
    margin: 0;
  }
  .nav-links {
    position: absolute;
    top: 76px;
    left: -20px;
    right: -20px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    box-shadow: 0 14px 24px rgba(8, 25, 51, 0.15);
    border-top: 1px solid #e6ebf4;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s, opacity 0.2s;
  }
  .nav-links.open {
    max-height: 80vh;
    opacity: 1;
    visibility: visible;
    padding-top: 8px;
  }
  .nav-links li {
    border-bottom: 1px solid #eef1f7;
  }
  .nav-links li:last-child {
    border: 0;
  }
  .nav-links a {
    display: block;
    padding: 15px 4px;
  }
  .nav-links .nav-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  section {
    padding: 56px 0;
  }
  .grid-3, .steps, .why-grid, .foot-grid {
    grid-template-columns: 1fr;
  }
  .trust .container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero {
    padding: 60px 0 56px;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .card-form {
    padding: 24px 20px;
  }
  .copy {
    flex-direction: column;
    text-align: center;
  }
  .logo .l1 {
    font-size: 0.96rem;
    letter-spacing: 0.1em;
  }
  .logo .l2 {
    font-size: 0.5rem;
    letter-spacing: 0.32em;
    margin-top: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Standard WP Content styles */
.site-content {
  padding: 60px 0;
}
.site-content h1, .site-content h2, .site-content h3 {
  margin-top: 1.2em;
}
.site-content a {
  color: var(--gold-dark);
  text-decoration: underline;
}
