/*
Theme Name: Profor Securities
Theme URI: https://proforadvisors.com
Author: Profor Advisors
Author URI: https://proforadvisors.com
Description: A clean, institutional single-page marketing theme for Profor Securities, LLC. Built to match the firm's navy-and-red brand. Renders the full landing page (Hero, Services, Approach, Why Profor, Our Team, Get in Touch) and includes a password-protectable Broker Portal page template for a Tally upload form.
Version: 1.3.3
Requires at least: 6.0
Tested up to: 6.5
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: profor-securities
*/

:root {
    --navy: #15265e;
    --navy-dark: #0f1c45;
    --navy-light: #24397c;
    --red: #b51f2b;
    --red-dark: #8f1722;
    --ink: #1f2733;
    --body: #3f4856;
    --muted: #6b7480;
    --line: #e3e6ec;
    --bg: #ffffff;
    --bg-alt: #f6f8fb;
    --bg-navy: #15265e;
    --maxw: 1140px;
    --radius: 6px;
    --section-title: clamp(2.4rem, 3.6vw, 3.35rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
    line-height: 1.65;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); }

img { max-width: 100%; height: auto; }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 600;
    line-height: 1.2;
}

/* ---------- Header / Nav ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
    gap: 1.5rem;
}

.site-branding { display: flex; align-items: center; }

.site-logo img,
.custom-logo {
    max-height: 56px;
    width: auto;
    display: block;
}

.site-title-text {
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.main-nav a:hover { color: var(--red); }

.nav-cta a {
    background: var(--red);
    color: #fff !important;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius);
}

.nav-cta a:hover { background: var(--red-dark); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--navy);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.95rem 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }

.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: #fff; color: var(--navy); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }

/* ---------- Sections ---------- */
.section {
    padding: 5rem 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--bg-navy); color: #e9edf6; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }

.eyebrow {
    display: inline-block;
    font-size: calc(var(--section-title) / 3);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1rem;
}

.section-head { text-align: center; max-width: 820px; margin: 0 auto 3.25rem; }
.section-head h2 { font-size: var(--section-title); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 1rem; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.section-navy .section-head p { color: #c3cce0; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff;
    padding: 6.5rem 0 6rem;
    position: relative;
    min-height: calc(100vh - 84px);
    min-height: calc(100svh - 84px);
    display: flex;
    align-items: center;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 6px;
    background: var(--red);
}

.hero-inner { max-width: 880px; }
.hero h1 {
    color: #fff;
    font-size: clamp(2.75rem, 5vw, 3.85rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    margin-bottom: 1.1rem;
}
.hero .tagline {
    font-size: 1.4rem;
    font-weight: 400;
    color: #d7deef;
    margin-bottom: 1.75rem;
}
.hero p.lead {
    font-size: 1.12rem;
    color: #cdd6ea;
    max-width: 720px;
    margin-bottom: 1.25rem;
}
.hero p.lead-follow { margin-bottom: 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(21,38,94,0.10); }
.card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--navy); }
.card p { color: var(--body); font-size: 0.98rem; }

.card-top-accent { border-top: 4px solid var(--red); }

/* ---------- Advisor profile carousel ---------- */
.advisor-panel {
    position: relative;
    margin-top: 2.5rem;
}

.advisor-panel__controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.advisor-nav {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.advisor-nav:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.advisor-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.35rem 0.15rem 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--navy-light) transparent;
}

.advisor-track:focus {
    outline: 2px solid var(--navy);
    outline-offset: 4px;
}

.advisor-card {
    flex: 0 0 min(300px, 82vw);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem 1.35rem 1.6rem;
    text-align: center;
}

.advisor-photo {
    width: 168px;
    height: 210px;
    margin: 0 auto 1.1rem;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    box-shadow: none;
}

.advisor-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.advisor-initials {
    color: #fff;
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: var(--navy);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advisor-name {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.advisor-title {
    font-size: 0.88rem;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.advisor-years {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0 0 0.75rem;
}

.advisor-bio {
    font-size: 0.92rem;
    color: var(--body);
    line-height: 1.55;
    margin: 0;
}

.advisor-linkedin {
    display: inline-block;
    margin-top: 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
}

.advisor-linkedin:hover,
.advisor-linkedin:focus {
    color: var(--red);
    text-decoration: underline;
}

.feature h3 {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}
.feature h3 .num {
    color: var(--red);
    font-weight: 700;
    font-size: 0.95rem;
}

/* lists */
.tick-list { list-style: none; margin: 1rem 0 0; }
.tick-list li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.6rem;
    color: var(--body);
}
.tick-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.95rem;
    width: 8px; height: 8px;
    background: var(--red);
    border-radius: 2px;
}

/* services layout */
.service-detail { margin-bottom: 2.5rem; }
.service-detail:last-child { margin-bottom: 0; }
.service-detail h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: 0.6rem; }

/* approach */
.approach-quote {
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 300;
    color: #fff;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.approach-quote strong { color: #fff; font-weight: 600; }

/* CTA / contact */
.cta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; margin-bottom: 2.5rem; }
.cta-grid--single { grid-template-columns: 1fr; max-width: 36rem; margin-left: auto; margin-right: auto; }
.cta-card {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--navy);
    border-radius: var(--radius);
    padding: 2rem;
}
.cta-card h3 { color: var(--navy); margin-bottom: 0.65rem; }
.contact-line { text-align: center; font-size: 1.05rem; }
.contact-line a { color: var(--navy); font-weight: 600; }

.contact-info { text-align: center; margin-top: 2rem; }
.contact-info p { margin-bottom: 0.35rem; }
.contact-info a { color: var(--navy); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-dark);
    color: #c3cce0;
    padding: 3.5rem 0 2rem;
}
.site-footer .container { text-align: center; }
.footer-logo img { max-height: 46px; width: auto; margin-bottom: 1.25rem; filter: brightness(0) invert(1); opacity: 0.95; }
.site-footer p { font-size: 0.9rem; margin-bottom: 0.4rem; }
.site-footer strong { color: #fff; }
.footer-meta { font-size: 0.85rem; }
.footer-disclaimer {
    font-size: 0.74rem;
    color: #8e99b8;
    line-height: 1.6;
    max-width: 920px;
    margin: 1.5rem auto;
}
.footer-disclaimer a { color: #9fb0dd; text-decoration: none; }
.footer-disclaimer a:hover { text-decoration: underline; }
.footer-links { margin-top: 1.25rem; font-size: 0.85rem; }
.footer-links a { color: #c3cce0; text-decoration: none; margin: 0 0.5rem; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Page content (default pages) ---------- */
.page-hero {
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.page-hero h1 { color: #fff; font-size: 2.4rem; }
.page-body { padding: 3.5rem 0; }
.page-body .container { max-width: 860px; }
.page-body h2 { margin: 2rem 0 1rem; color: var(--navy); }
.page-body p { margin-bottom: 1.1rem; }
.page-body ul, .page-body ol { margin: 0 0 1.1rem 1.4rem; }

/* broker portal embed */
.portal-note {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    color: var(--body);
}
.tally-embed { width: 100%; min-height: 700px; border: 0; }

/* ---------- Contact modal / form ---------- */
body.profor-modal-open { overflow: hidden; }

.profor-modal[hidden] { display: none; }
.profor-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 1rem 2rem;
    overflow-y: auto;
}
.profor-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 28, 69, 0.55);
    backdrop-filter: blur(2px);
}
.profor-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: var(--radius);
    border-top: 4px solid var(--red);
    box-shadow: 0 24px 60px rgba(15, 28, 69, 0.35);
    padding: 2.25rem 2rem 2rem;
    animation: proforModalIn 0.2s ease-out;
}
@keyframes proforModalIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
.profor-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: 0;
    font-size: 1.9rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s;
}
.profor-modal__close:hover { color: var(--red); }
.profor-modal__title { color: var(--navy); font-size: 1.6rem; margin-bottom: 0.4rem; }
.profor-modal__intro { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.5rem; }

.profor-field { margin-bottom: 1.1rem; }
.profor-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 0.4rem;
}
.profor-field input,
.profor-field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.profor-field input:focus,
.profor-field textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(21, 38, 94, 0.12);
}
.profor-field textarea { resize: vertical; min-height: 120px; }

.profor-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.profor-form__actions { margin-top: 1.25rem; }
.profor-form__actions .btn { width: 100%; border: 0; }
.profor-form__actions .btn:disabled { opacity: 0.6; cursor: default; }

.profor-form__status {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    min-height: 1.1rem;
    text-align: center;
}
.profor-form__status.is-success { color: #1a7f47; }
.profor-form__status.is-error { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 84px; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 1rem 0;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { width: 100%; text-align: center; }
    .main-nav a { display: block; padding: 0.85rem 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero .tagline { font-size: 1.15rem; }
    .grid-2, .grid-3, .grid-4, .cta-grid { grid-template-columns: 1fr; }
    .section { padding: 3.5rem 0; }
    .approach-quote { font-size: 1.2rem; }
}
