/* ================= RESET ================= */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

/* ================= BRAND SYSTEM ================= */
:root {
--gold: #dcb85a;
--green-dark: #0d3324;

--bg-main: #ffffff;
--bg-soft: #f7f9f7;
--bg-dark: #0d3324;

--text-primary: #0f1f17;
--text-muted: #4f5d57;

--border-soft: rgba(0, 0, 0, 0.08);
}

/* ================= BASE ================= */
body {
font-family: 'Montserrat', system-ui, sans-serif;
background: var(--bg-main);
color: var(--text-primary);
line-height: 1.85;
font-size: 1.05rem;
}

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

/* ================= LAYOUT ================= */
/* RESTORED — required for consistent page structure */
.container {
max-width: 1140px;
margin: 0 auto;
padding: 0 28px;
}

/* ================= HEADER ================= */
.site-header {
position: sticky;
top: 0;
z-index: 1000;
background: var(--bg-main);
border-bottom: 1px solid var(--border-soft);
box-shadow: 0 2px 14px rgba(13, 51, 36, 0.06);
}

.nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14px 0;
}

.nav-brand {
display: flex;
align-items: center;
gap: 18px;
}

.logo-img {
height: 78px;
}

.nav-links {
display: flex;
align-items: center;
}

.nav-links a {
margin-left: 40px;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--text-muted);
font-weight: 400;
}

.nav-links a:hover {
font-weight: 500;
}

.nav-links a.is-active {
color: var(--text-primary);
font-weight: 600;
}

.nav-toggle {
display: none;
border: 1px solid var(--border-soft);
background: transparent;
padding: 10px;
border-radius: 6px;
cursor: pointer;
}

.nav-toggle-bar {
display: block;
width: 22px;
height: 2px;
background: var(--text-primary);
margin: 5px 0;
}

.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}

/* ================= BUTTONS ================= */
.btn {
padding: 16px 36px;
border-radius: 3px;
font-size: 0.8rem;
letter-spacing: 0.14em;
text-transform: uppercase;
font-weight: 500;
display: inline-block;
}

.btn-primary {
background: transparent;
border: 1px solid var(--green-dark);
color: var(--green-dark);
}

.btn-primary:hover {
background: var(--green-dark);
color: #fff;
}

/* ================= HERO ================= */
.hero {
padding: 120px 0;
}

.hero-main {
max-width: 760px;
}

.hero-main h1 {
font-size: 3.8rem;
line-height: 1.12;
font-weight: 500;
margin-bottom: 36px;
}

.hero-main p {
font-size: 1.2rem;
color: var(--text-muted);
margin-bottom: 48px;
}

/* BrokerCheck reference (FINRA Rule 2210) — pinned bar, body-size type */
body {
padding-bottom: 44px;
}

.brokercheck-bar {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 90;
background: var(--bg-dark);
text-align: center;
}

.brokercheck-bar p {
padding: 9px 18px;
font-size: 1rem;
line-height: 1.6;
color: #ffffff;
}

.brokercheck-bar a {
color: var(--gold);
text-decoration: underline;
text-underline-offset: 3px;
}

@media (max-width: 480px) {
body {
padding-bottom: 96px;
}
}

/* ================= SECTIONS ================= */
/* FIXED — invalid rule before */
.section {
padding: 120px 0;
}

.section + .section {
padding-top: 40px;
}

.section-light {
background: var(--bg-soft);
}

.section h1,
.section h2 {
font-size: 3rem;
font-weight: 500;
margin-bottom: 32px;
}

.section-anchor {
max-width: 680px;
margin-bottom: 40px;
}

/* ================= GRID ================= */
.grid {
display: grid;
gap: 56px;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card h3 {
font-size: 1.25rem;
margin-bottom: 12px;
}

.card h3::after {
content: "";
display: block;
width: 44px;
height: 2px;
background: var(--gold);
margin-top: 14px;
}

.card p {
color: var(--text-muted);
}

.disclaimer-note {
margin-top: 28px;
font-size: 0.85rem;
color: var(--text-muted);
line-height: 1.6;
}

/* ================= WHO WE SERVE ================= */
/* untouched — already working correctly */

/* ================= FOOTER ================= */
.site-footer {
background: var(--bg-dark);
color: #e6ecea;
font-size: 13px;
}

/* FOOTER CONTAINER OVERRIDE — key fix */
.site-footer .container {
padding: 28px 0 0 0; /* top only */
}

.footer-top {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 18px;
border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand strong {
display: block;
font-weight: 600;
color: var(--gold);
}

.footer-brand span {
font-size: 12px;
opacity: 0.85;
}

.footer-links {
display: flex;
gap: 18px;
}

.footer-links a {
font-size: 12px;
color: #c8d6d1;
}

.footer-links a:hover {
text-decoration: underline;
}

.footer-disclosures {
padding: 14px 0 18px;
text-align: left;
}

.footer-disclosures p {
margin: 0 0 8px 0;
font-size: 12.5px;
line-height: 1.6;
color: #c8d6d1;
}

.footer-disclosures a {
color: #c8d6d1;
text-decoration: underline;
}

.footer-copyright {
display: block;
margin-top: 8px;
font-size: 12px;
opacity: 0.82;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
.container {
padding: 0 22px;
}

.nav {
padding: 12px 0;
}

.logo-img {
height: 70px;
}

.hero {
padding: 96px 0;
}

.hero-main h1 {
font-size: 3rem;
}

.section {
padding: 96px 0;
}
}

@media (max-width: 768px) {
body {
font-size: 1rem;
}

.container {
padding: 0 18px;
}

.nav {
flex-direction: column;
align-items: flex-start;
gap: 12px;
padding: 12px 0;
}

.nav-brand {
width: 100%;
justify-content: space-between;
}

.logo-img {
height: 58px;
}

.nav-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
}

.nav-links {
flex-direction: column;
align-items: flex-end;
gap: 10px;
padding: 12px 0 16px;
max-height: 0;
overflow: hidden;
opacity: 0;
pointer-events: none;
align-self: flex-end;
text-align: right;
transform: translateY(-8px);
transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.3s ease;
}

.nav-links a {
margin-left: 0;
padding: 6px 0;
}

.nav-links.is-open {
max-height: 240px;
opacity: 1;
pointer-events: auto;
transform: translateY(0);
border-top: 1px solid var(--border-soft);
}

.hero {
padding: 72px 0;
}

.hero-main h1 {
font-size: 2.4rem;
line-height: 1.15;
}

.hero-main p {
font-size: 1.05rem;
margin-bottom: 32px;
}

.section {
padding: 72px 0;
}

.section + .section {
padding-top: 24px;
}

.section h1,
.section h2 {
font-size: 2.2rem;
}

.grid {
grid-template-columns: 1fr;
}

.footer-top {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}

.footer-links {
flex-wrap: wrap;
}

.approach-body {
margin-bottom: 72px;
}
}

@media (max-width: 480px) {
.hero-main h1 {
font-size: 2rem;
}

.btn {
width: 100%;
text-align: center;
}
}

/* ================= PAGE-SPECIFIC TIGHTENING ================= */

/* Remove excess space between intro and grid on Who We Serve */
.section-tight-bottom {
padding-bottom: 20px;
}

.who-grid-section {
padding-top: 20px;
}

.approach-body {
margin-top: 40px;
line-height: 1.7;
margin-bottom: 120px;
}

/* ================= CONTACT PAGE ================= */
.btn-lg {
padding: 20px 48px;
font-size: 0.85rem;
}

.cta-row {
margin-top: 8px;
display: flex;
align-items: center;
gap: 22px;
flex-wrap: wrap;
}

.cta-subtext {
font-size: 0.85rem;
color: var(--text-muted);
letter-spacing: 0.04em;
}

.contact-grid {
display: grid;
grid-template-columns: 0.85fr 1.15fr;
gap: 64px;
align-items: start;
}

.contact-aside h3,
.contact-form-wrap h3 {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 22px;
}

.contact-aside h3::after,
.contact-form-wrap h3::after {
content: "";
display: block;
width: 44px;
height: 2px;
background: var(--gold);
margin-top: 14px;
}

.contact-line {
margin-bottom: 16px;
}

.contact-label {
display: block;
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--text-muted);
margin-bottom: 2px;
}

.contact-line a {
font-size: 1.05rem;
color: var(--text-primary);
}

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

.contact-note {
margin-top: 26px;
font-size: 0.9rem;
color: var(--text-muted);
}

.contact-form .form-field {
margin-bottom: 20px;
}

.contact-form label {
display: block;
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--text-muted);
margin-bottom: 8px;
}

.contact-form .optional {
text-transform: none;
letter-spacing: 0;
opacity: 0.7;
}

.contact-form input,
.contact-form textarea {
width: 100%;
font-family: inherit;
font-size: 1rem;
color: var(--text-primary);
background: #fff;
border: 1px solid var(--border-soft);
border-radius: 3px;
padding: 14px 16px;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
outline: none;
border-color: var(--gold);
box-shadow: 0 0 0 3px rgba(220, 184, 90, 0.18);
}

.contact-form textarea {
resize: vertical;
}

.contact-form button[type="submit"] {
border: 1px solid var(--green-dark);
cursor: pointer;
margin-top: 4px;
}

.form-disclaimer {
margin-top: 16px;
font-size: 0.78rem;
line-height: 1.5;
color: var(--text-muted);
}

/* Zoom Scheduler embed */
.scheduler-embed {
margin-top: 20px;
}

.scheduler-iframe {
width: 100%;
max-width: 760px;
height: 640px;
border: 1px solid var(--border-soft);
border-radius: 4px;
background: #fff;
}

.scheduler-fallback {
margin-top: 14px;
font-size: 0.85rem;
color: var(--text-muted);
}

.scheduler-fallback a {
color: var(--text-primary);
text-decoration: underline;
}

.scheduler-fallback a:hover {
color: var(--gold);
}

@media (max-width: 768px) {
.scheduler-iframe {
height: 720px;
}
}

/* ================= WHO WE SERVE — card grid (match site) ================= */
.who-grid {
display: grid;
gap: 56px;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.who-secondary {
margin-top: 56px;
display: grid;
gap: 56px;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.who-item h3 {
font-size: 1.25rem;
margin-bottom: 12px;
}

.who-item h3::after {
content: "";
display: block;
width: 44px;
height: 2px;
background: var(--gold);
margin-top: 14px;
}

.who-item p {
color: var(--text-muted);
}

@media (max-width: 768px) {
.who-grid,
.who-secondary {
grid-template-columns: 1fr;
gap: 40px;
}
}

/* ================= SCROLL FADE-IN (progressive enhancement) ================= */
/* Hidden state applies ONLY when JS is present (html.has-js), so the
   site degrades gracefully and content is never invisible without JS. */
.has-js [data-animate] {
opacity: 0;
transform: translateY(18px);
transition: opacity 0.7s ease, transform 0.7s ease;
}

.has-js [data-animate].in-view {
opacity: 1;
transform: none;
}

@media (prefers-reduced-motion: reduce) {
.has-js [data-animate] {
opacity: 1;
transform: none;
transition: none;
}
}

/* ================= HEADER CTA BUTTON ================= */
.nav-links a.nav-cta {
background: var(--gold);
color: var(--green-dark);
padding: 12px 26px;
border-radius: 3px;
font-weight: 600;
transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.nav-links a.nav-cta:hover {
background: #cda849;
color: var(--green-dark);
font-weight: 600;
transform: translateY(-1px);
box-shadow: 0 6px 16px rgba(13, 51, 36, 0.16);
}

/* ================= MICRO-INTERACTIONS ================= */
.btn {
transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
transform: translateY(-1px);
box-shadow: 0 6px 18px rgba(13, 51, 36, 0.14);
}

.card h3::after,
.who-item h3::after {
transition: width 0.3s ease;
}

.card:hover h3::after,
.who-item:hover h3::after {
width: 72px;
}

/* Keyboard focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
outline: 2px solid var(--gold);
outline-offset: 3px;
border-radius: 2px;
}

/* ================= ABOUT — team members ================= */
.team-member {
display: flex;
flex-direction: column;
}

.team-photo {
width: 100%;
max-width: 280px;
aspect-ratio: 4 / 5;
background: var(--bg-soft);
border: 1px solid var(--border-soft);
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 22px;
overflow: hidden;
}

.team-photo img {
width: 100%;
height: 100%;
object-fit: cover;
}

.team-initials {
font-size: 2.2rem;
font-weight: 600;
letter-spacing: 0.08em;
color: var(--gold);
}

.credentials {
list-style: none;
margin-top: 18px;
padding: 0;
border-top: 1px solid var(--border-soft);
}

.credentials li {
font-size: 0.95rem;
color: var(--text-primary);
padding: 11px 0;
border-bottom: 1px solid var(--border-soft);
}

.credentials .cred-label {
display: block;
margin-bottom: 3px;
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--text-muted);
}

@media (max-width: 768px) {
.contact-grid {
grid-template-columns: 1fr;
gap: 48px;
}

.cta-row {
gap: 12px;
}

.btn-lg {
width: 100%;
text-align: center;
}
}

/* ================= SECTION MORE LINK ================= */
.section-more {
margin-top: 48px;
}

.section-more a {
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.12em;
font-weight: 500;
color: var(--text-primary);
border-bottom: 2px solid var(--gold);
padding-bottom: 4px;
}

.section-more a:hover {
color: var(--green-dark);
border-bottom-width: 3px;
}

/* ================= TYPOGRAPHY POLISH ================= */
/* Avoid single hanging words at the end of paragraphs and balance headings */
p {
text-wrap: pretty;
}

h1, h2, h3 {
text-wrap: balance;
}
