/* ============================================================
   SHOREPOINT ADVISORY GROUP — GLOBAL STYLESHEET
   Shared across every page: variables, base styles, top utility
   bar, main header/nav, mobile drawer, buttons, and footer.
   Page-specific sections live in their own CSS files
   (home.css, about.css, etc).
   ============================================================ */

:root{
  --navy:#1c2d4e;
  --navy-deep:#13223d;
  --blue-accent:#4a63b0;
  --blue-accent-dark:#3a4f92;
  --bar-bg:#f2f2f0;
  --accent-soft:#e7ecf7;
  --text-muted:#4c5566;
  --line:#e2e2df;
  --max:1240px;
  --safe-top: env(safe-area-inset-top, 0px);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  color:var(--navy);
  background:#fff;
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
}
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; background:none; border:none; }
img{ max-width:100%; display:block; }
:focus{ outline:none; }
:focus-visible{ outline:2px solid var(--blue-accent); outline-offset:2px; border-radius:4px; }

.wrap{ max-width:var(--max); margin:0 auto; padding:0 32px; }

/* ---------------- TOP UTILITY BAR ---------------- */
.topbar{
  background:var(--bar-bg);
  border-bottom:1px solid var(--line);
  padding-top:var(--safe-top);
}
.topbar .wrap{
  display:flex; justify-content:flex-end; align-items:center;
  gap:22px; height:38px; font-size:13px;
}
.topbar a{ color:var(--navy); font-weight:500; }
.topbar a:hover{ text-decoration:underline; }
.topbar .divider{ width:1px; height:14px; background:var(--line); }

/* ---------------- MAIN HEADER ---------------- */
header{
  position:sticky; top:0; z-index:1000;
  background:var(--bar-bg);
  border-bottom:1px solid var(--line);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  gap:24px; padding:16px 0;
}

.brand{ display:flex; align-items:center; gap:14px; flex:0 0 auto; }
.brand-logo{
  height:48px; width:auto; display:block; flex:0 0 auto;
}
.brand-logo-sm{ height:36px; }

.primary-nav{ display:flex; align-items:center; gap:6px; flex:1 1 auto; justify-content:flex-end; }
.nav-item{ position:relative; }
.nav-item > a, .nav-item > button.nav-link{
  display:flex; align-items:center; gap:6px;
  font-size:14.5px; font-weight:500; color:var(--navy);
  padding:10px 14px; border-radius:6px;
  transition:color .2s ease;
}
.nav-item > a:hover, .nav-item > button.nav-link:hover{ color:var(--blue-accent); }
.nav-item.current > a{ color:var(--blue-accent); }
.chev{ width:9px; height:9px; border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor; transform:rotate(45deg); margin-top:-3px; transition:transform .2s ease; }
.nav-item.open .chev{ transform:rotate(-135deg); margin-top:2px; }

.dropdown{
  position:absolute; top:calc(100% + 6px); left:50%; transform:translateX(-50%) translateY(6px);
  background:#fff; border:1px solid var(--line); border-radius:10px;
  box-shadow:0 18px 40px rgba(20,30,50,.12);
  min-width:220px; padding:8px; opacity:0; visibility:hidden;
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index:50;
}
.nav-item.open .dropdown{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.dropdown a{
  display:block; padding:10px 12px; font-size:14px; font-weight:500; color:var(--navy);
  border-radius:7px;
}
.dropdown a:hover{ background:var(--bar-bg); color:var(--blue-accent); }

.cta-btn{
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--blue-accent); color:#fff; font-size:14px; font-weight:600;
  padding:13px 22px; border-radius:0; margin-left:10px; flex:0 0 auto;
  min-height:44px; transition:background .2s ease, transform .15s ease;
  white-space:nowrap;
}
.cta-btn:hover{ background:var(--blue-accent-dark); transform:translateY(-1px); }

.hamburger{
  display:none; flex-direction:column; justify-content:center; align-items:center;
  gap:5px; width:44px; height:44px; border-radius:8px; border:1px solid var(--line);
  flex:0 0 auto;
}
.hamburger span{ width:20px; height:2px; background:var(--navy); border-radius:2px; transition:transform .3s ease, opacity .3s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer{ position:fixed; inset:0; z-index:1200; visibility:hidden; pointer-events:none; }
.mobile-drawer.open{ visibility:visible; pointer-events:auto; }
.drawer-scrim{ position:absolute; inset:0; background:rgba(15,20,35,.42); opacity:0; transition:opacity .3s ease; }
.mobile-drawer.open .drawer-scrim{ opacity:1; }
.drawer-panel{
  position:absolute; top:0; right:0; height:100%; width:min(86vw,360px);
  background:#fff; box-shadow:-16px 0 40px rgba(15,20,35,.16);
  padding:calc(18px + var(--safe-top)) 20px 26px;
  transform:translateX(100%); transition:transform .32s cubic-bezier(.22,.88,.32,1);
  display:flex; flex-direction:column; overflow-y:auto; -webkit-overflow-scrolling:touch;
}
.mobile-drawer.open .drawer-panel{ transform:translateX(0); }
.drawer-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.drawer-close{ width:40px; height:40px; border-radius:8px; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:18px; color:var(--text-muted); }
.m-item{ border-bottom:1px solid var(--line); }
.m-item > a, .m-item > button.m-link{
  display:flex; align-items:center; justify-content:space-between; width:100%;
  padding:15px 4px; font-size:16px; font-weight:600; color:var(--navy);
}
.m-sub{ max-height:0; overflow:hidden; transition:max-height .28s ease; }
.m-item.open .m-sub{ max-height:300px; }
.m-sub a{ display:block; padding:11px 4px 11px 14px; font-size:14.5px; font-weight:500; color:var(--text-muted); }
.drawer-utility{ display:flex; flex-direction:column; gap:2px; padding:14px 4px; border-bottom:1px solid var(--line); font-size:14px; }
.drawer-cta{ margin-top:20px; }
.drawer-cta .cta-btn{ width:100%; margin-left:0; }

@media (max-width:980px){
  .primary-nav, .header-row .cta-btn:not(.mobile-only){ display:none; }
  .hamburger{ display:flex; }
}
@media (max-width:600px){
  .wrap, .header-row{ padding-left:18px; padding-right:18px; }
  .topbar .wrap{ font-size:12px; gap:14px; }
  .brand-logo{ height:36px; }
}
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ transition-duration:.001ms !important; animation-duration:.001ms !important; }
}

/* ---------------- SHARED PILLARS / PHILOSOPHY BLOCK ---------------- */
/* Used on the homepage ("Our Philosophy") and the About page ("Our Approach") */
.philosophy{
  background:#fff;
  padding:96px 0 104px;
}
.philosophy .wrap{ max-width:var(--max); }

.phi-eyebrow{
  display:flex; align-items:center; gap:12px; justify-content:center;
  font-size:12.5px; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
  color:var(--blue-accent); margin:0 0 18px;
}
.phi-eyebrow::before, .phi-eyebrow::after{ content:""; width:28px; height:1px; background:var(--blue-accent); opacity:.5; }

.phi-headline{
  font-size:clamp(24px,3.1vw,36px); font-weight:700; line-height:1.42; letter-spacing:-.01em;
  color:var(--navy); text-align:center; max-width:880px; margin:0 auto 72px;
}

.phi-intro{ margin-bottom:64px; }
.phi-intro-label{
  display:block; font-size:12.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color:var(--blue-accent); margin-bottom:16px;
}
.phi-intro h2{
  font-size:22px; font-weight:700; color:var(--navy); line-height:1.35; margin:0 0 16px; max-width:460px;
}
.phi-intro p{
  font-size:15.5px; line-height:1.85; color:var(--text-muted); margin:0; max-width:680px;
}

.phi-track{ position:relative; }
.phi-grid{
  position:relative; display:grid; grid-template-columns:repeat(3,1fr); gap:44px;
}
.phi-card{ text-align:left; }
.phi-node{
  position:relative; z-index:2;
  width:46px; height:46px; border-radius:50%;
  background:#fff; border:1.5px solid var(--blue-accent);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:22px;
}
.phi-node svg{ width:20px; height:20px; }
.phi-card h3{ font-size:16.5px; font-weight:700; color:var(--navy); margin:0 0 10px; }
.phi-card p{ font-size:14.5px; line-height:1.7; color:var(--text-muted); margin:0; }

.phi-cta{ display:flex; justify-content:center; margin-top:64px; }

@media (max-width:900px){
  .phi-intro{ margin-bottom:48px; }
  .phi-grid{ grid-template-columns:1fr; gap:36px; }
  .philosophy{ padding:72px 0 80px; }
  .phi-headline{ margin-bottom:52px; }
}
@media (max-width:600px){
  .phi-headline{ font-size:clamp(21px,6vw,26px); }
}

/* ---------------- SHARED FOUNDER / TEAM NOTE BLOCK ---------------- */
.founder{
  background:#fff;
  padding:104px 0;
}
.founder .wrap{
  display:grid; grid-template-columns:1fr .9fr; gap:72px; align-items:center;
}
.founder-copy .eyebrow{
  font-size:12.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--blue-accent); margin:0 0 16px;
}
.founder-copy h2{
  font-size:clamp(26px,3vw,36px); font-weight:700; line-height:1.28; letter-spacing:-.01em;
  color:var(--navy); margin:0 0 26px; max-width:460px;
}
.founder-copy p{
  font-size:15.5px; line-height:1.85; color:var(--text-muted); margin:0 0 20px; max-width:480px;
}
.founder-copy .closing{ font-weight:600; color:var(--navy); }
.founder-sig{ margin:28px 0 32px; padding-top:24px; border-top:1px solid var(--line); }
.founder-sig .name{ font-size:15.5px; font-weight:700; color:var(--navy); }
.founder-sig .role{ font-size:14px; color:var(--text-muted); margin-top:3px; }

.founder-photo{ position:relative; }
.founder-photo::before{
  content:"";
  position:absolute; top:24px; left:-24px; right:24px; bottom:-24px;
  background:var(--navy);
  border-radius:18px; z-index:0;
}
.founder-photo .frame{
  position:relative; z-index:1;
  border-radius:18px; overflow:hidden;
  box-shadow:0 26px 60px rgba(20,30,50,.16);
  aspect-ratio:4/5;
}
.founder-photo .frame img{ width:100%; height:100%; object-fit:cover; }
.founder-badge{
  position:absolute; z-index:2; left:-20px; bottom:28px;
  background:#fff; border-radius:12px; padding:14px 18px;
  box-shadow:0 16px 34px rgba(20,30,50,.14);
  display:flex; align-items:center; gap:10px;
}
.founder-badge .quote-icon{
  width:30px; height:30px; border-radius:50%; background:var(--accent-soft);
  display:flex; align-items:center; justify-content:center; flex:0 0 auto;
}
.founder-badge .quote-icon svg{ width:14px; height:14px; }
.founder-badge span{ font-size:12.5px; font-weight:600; color:var(--navy); line-height:1.3; }

@media (max-width:980px){
  .founder .wrap{ grid-template-columns:1fr; gap:48px; }
  .founder-photo{ max-width:420px; margin:0 auto; order:-1; }
  .founder-copy h2, .founder-copy p{ max-width:none; }
}
@media (max-width:600px){
  .founder{ padding:72px 0; }
  .founder-photo::before{ left:-14px; right:14px; top:16px; bottom:-16px; }
  .founder-badge{ left:-10px; padding:11px 14px; }
  .founder-badge span{ font-size:11.5px; }
}

/* ---------------- FOOTER ---------------- */
.site-footer{
  background:var(--bar-bg);
  border-top:1px solid var(--line);
}
.footer-top{
  display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:40px;
  padding:72px 0 56px;
  max-width:var(--max); margin:0 auto; padding-left:32px; padding-right:32px;
}
.footer-brand{ display:flex; flex-direction:column; align-items:flex-start; gap:18px; }
.footer-brand-top{ display:flex; align-items:center; gap:12px; }
.footer-logo-img{ height:42px; width:auto; display:block; }
.footer-brand .blurb{ font-size:13px; line-height:1.7; color:var(--text-muted); max-width:230px; }

.footer-col h4{
  font-size:11.5px; font-weight:800; color:var(--navy); margin:0 0 20px;
  letter-spacing:.1em; text-transform:uppercase;
  padding-bottom:12px; border-bottom:2px solid var(--blue-accent); display:inline-block;
}
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.footer-col a{ font-size:14px; font-weight:500; color:var(--text-muted); transition:color .2s ease, padding-left .2s ease; position:relative; }
.footer-col a:hover{ color:var(--blue-accent); padding-left:4px; }

.footer-legal{ background:var(--navy); }
.footer-legal-inner{ max-width:var(--max); margin:0 auto; padding:36px 32px 40px; }
.footer-legal-top{
  display:flex; justify-content:space-between; align-items:center; gap:20px;
  padding-bottom:26px; margin-bottom:26px;
  border-bottom:1px solid rgba(255,255,255,.14);
  flex-wrap:wrap;
}
.footer-locations{ font-size:12.5px; color:rgba(255,255,255,.68); line-height:1.7; letter-spacing:.01em; }
.footer-locations strong{ color:#fff; font-weight:700; }
.social-row{ display:flex; gap:10px; flex:0 0 auto; }
.social-row a{
  width:32px; height:32px; border-radius:50%; border:1px solid rgba(255,255,255,.25);
  display:flex; align-items:center; justify-content:center; flex:0 0 auto;
  transition:background .2s ease, border-color .2s ease;
}
.social-row a:hover{ background:var(--blue-accent); border-color:var(--blue-accent); }
.social-row a svg{ width:15px; height:15px; }

.footer-disclosure p{
  font-size:12px; line-height:1.85; color:rgba(255,255,255,.5); margin:0 0 14px; max-width:980px;
}
.footer-disclosure p strong{ color:rgba(255,255,255,.85); font-weight:700; }
.footer-disclosure a{ color:rgba(255,255,255,.75); font-weight:600; text-decoration:underline; text-underline-offset:2px; }
.footer-disclosure a:hover{ color:#fff; }

.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap;
  margin-top:28px; padding-top:24px; border-top:1px solid rgba(255,255,255,.14);
}
.footer-copyright{ font-size:11.5px; color:rgba(255,255,255,.5); letter-spacing:.01em; }
.footer-copyright a{ color:rgba(255,255,255,.7); text-decoration:underline; text-underline-offset:2px; }
.footer-copyright a:hover{ color:#fff; }

.broker-badge{ display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.broker-badge .badge-c{
  width:24px; height:24px; border-radius:50%; border:1.5px solid rgba(255,255,255,.5);
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:800; color:#fff; flex:0 0 auto;
}
.broker-badge span{ font-size:11.5px; font-weight:500; color:rgba(255,255,255,.7); line-height:1.4; }
.broker-badge:hover span{ color:#fff; }

@media (max-width:980px){
  .footer-top{ grid-template-columns:1fr 1fr; row-gap:40px; }
  .footer-brand{ grid-column:1/-1; }
  .footer-brand .blurb{ max-width:380px; }
}
@media (max-width:600px){
  .footer-top{ grid-template-columns:1fr 1fr; padding:56px 20px 40px; gap:32px 24px; }
  .footer-legal-inner{ padding:32px 20px 36px; }
  .footer-legal-top{ flex-direction:column; align-items:flex-start; gap:16px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
}
