/* EFP Finance – Modern Redesign */
/* Fonts loaded via headHtml: Playfair Display + DM Sans */

:root {
  --navy:       #001c4c;
  --navy-mid:   #0a3478;
  --navy-glass: rgba(0,28,76,0.06);
  --gold:       #b8861b;
  --gold-hover: #d4a843;
  --off-white:  #f5f3ee;
  --white:      #ffffff;
  --text:       #0f1929;
  --muted:      #4a5a78;
  --border:     rgba(0,28,76,0.12);
  --radius:     4px;
  --radius-lg:  14px;
  --shadow:     0 4px 24px rgba(0,28,76,0.08);
  --shadow-lg:  0 16px 56px rgba(0,28,76,0.14);
  --transition: 0.25s ease;
}

/* ─── Reset ─────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }

body {
  font-family:'DM Sans',system-ui,sans-serif;
  color:var(--text);
  background:var(--white);
  line-height:1.65;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

img { max-width:100%; height:auto; display:block; }
a { text-decoration:none; }

/* ─── Utilities ─────────────────────────────────── */
.efp-container {
  max-width:1120px;
  margin:0 auto;
  padding:0 2rem;
}

.efp-eyebrow {
  display:block;
  font-size:0.6875rem;
  font-weight:600;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:0.875rem;
}
.efp-eyebrow--light { color:rgba(255,255,255,0.55); }

/* Section heading underline marker */
.efp-section-marker {
  display:block;
  width:40px;
  height:2px;
  background:var(--gold);
  margin-bottom:1.5rem;
  border-radius:2px;
}

/* ─── Buttons ────────────────────────────────────── */
.efp-btn {
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  padding:0.9rem 2rem;
  border-radius:3px;
  font-family:'DM Sans',sans-serif;
  font-size:0.875rem;
  font-weight:600;
  letter-spacing:0.04em;
  transition:all var(--transition);
  cursor:pointer;
  white-space:nowrap;
}
.efp-btn--primary {
  background:var(--gold);
  color:var(--white);
  border:2px solid var(--gold);
}
.efp-btn--primary:hover {
  background:var(--gold-hover);
  border-color:var(--gold-hover);
  transform:translateY(-1px);
  box-shadow:0 6px 20px rgba(184,134,27,0.3);
}
.efp-btn--outline {
  background:transparent;
  color:var(--navy);
  border:2px solid var(--navy);
}
.efp-btn--outline:hover {
  background:var(--navy);
  color:var(--white);
  transform:translateY(-1px);
}
.efp-btn--light {
  background:transparent;
  color:var(--white);
  border:2px solid rgba(255,255,255,0.5);
}
.efp-btn--light:hover {
  background:rgba(255,255,255,0.12);
  border-color:var(--white);
}

/* ─── Navigation ─────────────────────────────────── */
.efp-nav {
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  background:var(--navy);
  transition:box-shadow 0.3s ease;
}
.efp-nav.scrolled {
  box-shadow:0 2px 24px rgba(0,0,0,0.28);
}
.efp-nav__inner {
  max-width:1120px;
  margin:0 auto;
  padding:0 2rem;
  height:76px;
  display:flex;
  align-items:center;
  gap:1.5rem;
}
.efp-nav__logo { flex-shrink:0; }
.efp-nav__logo img {
  height:46px;
  width:auto;
}

.efp-nav__menu {
  margin-left:auto;
  display:flex;
  align-items:center;
  list-style:none;
  gap:0;
}
.efp-nav__menu > li { position:relative; }
.efp-nav__menu > li > a {
  display:flex;
  align-items:center;
  padding:0.625rem 1rem;
  color:rgba(255,255,255,0.8);
  font-size:0.875rem;
  font-weight:500;
  letter-spacing:0.01em;
  transition:color var(--transition);
  white-space:nowrap;
}
.efp-nav__menu > li > a:hover { color:var(--white); }

.efp-nav__dropdown {
  display:none;
  position:absolute;
  top:calc(100% + 4px);
  left:0;
  min-width:210px;
  background:var(--white);
  border-radius:0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  box-shadow:var(--shadow-lg);
  list-style:none;
  padding:0.5rem 0;
  border-top:2px solid var(--gold);
}
.efp-nav__dropdown li a {
  display:block;
  padding:0.6rem 1.25rem;
  color:var(--navy);
  font-size:0.875rem;
  font-weight:400;
  transition:all var(--transition);
}
.efp-nav__dropdown li a:hover {
  background:var(--navy-glass);
  padding-left:1.5rem;
  color:var(--navy);
}
.has-dropdown:hover > .efp-nav__dropdown,
.has-dropdown:focus-within > .efp-nav__dropdown { display:block; }

.efp-nav__cta {
  margin-left:0.75rem;
  padding:0.6rem 1.25rem !important;
  background:var(--gold) !important;
  color:var(--white) !important;
  border-radius:3px;
  font-weight:600 !important;
}
.efp-nav__cta:hover {
  background:var(--gold-hover) !important;
  color:var(--white) !important;
}

.efp-nav__toggle {
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
  margin-left:auto;
}
.efp-nav__toggle span {
  display:block;
  width:24px;
  height:2px;
  background:var(--white);
  border-radius:2px;
  transition:all 0.3s;
}

/* ─── Hero ───────────────────────────────────────── */
.efp-hero {
  position:relative;
  background:var(--navy);
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-top:76px;
  overflow:hidden;
}

/* Decorative concentric arcs – referencing the wave motif */
.efp-hero::before,
.efp-hero::after {
  content:'';
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
.efp-hero::before {
  top:-20%;
  right:-12%;
  width:65vw;
  height:65vw;
  border:1px solid rgba(184,134,27,0.14);
}
.efp-hero::after {
  top:-5%;
  right:-22%;
  width:85vw;
  height:85vw;
  border:1px solid rgba(184,134,27,0.07);
}

.efp-hero__row {
  max-width:1120px;
  width:100%;
  margin:0 auto;
  padding:3.5rem 2rem 4rem;
  display:flex;
  align-items:center;
  gap:4rem;
}
.efp-hero__content {
  position:relative;
  z-index:2;
  flex:1 1 0;
  min-width:0;
}
.efp-hero__visual {
  flex:0 0 auto;
  width:min(360px,38vw);
  display:flex;
  align-items:center;
  justify-content:center;
}
.efp-hero__eyebrow {
  display:block;
  font-size:0.6875rem;
  font-weight:600;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:1.75rem;
}
.efp-hero__title {
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(2.25rem,5vw,4rem);
  font-weight:600;
  color:var(--white);
  line-height:1.18;
  margin-bottom:1.5rem;
  max-width:720px;
}
.efp-hero__title em {
  font-style:italic;
  color:var(--gold-hover);
}
.efp-hero__sub {
  color:rgba(255,255,255,0.65);
  font-size:1.0625rem;
  max-width:480px;
  line-height:1.75;
  margin-bottom:2.75rem;
}

.efp-hero__wave {
  display:none;
}

/* ─── Compass animation ──────────────────────────── */
@keyframes efp-compass-spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}
@keyframes efp-compass-wobble{0%,100%{transform:rotate(0deg);}15%{transform:rotate(14deg);}35%{transform:rotate(-9deg);}55%{transform:rotate(7deg);}75%{transform:rotate(-4deg);}90%{transform:rotate(1.5deg);}}
.efp-compass-outer-ring{transform-box:fill-box;transform-origin:center;animation:efp-compass-spin 90s linear infinite;}
.efp-compass-needle{transform-box:fill-box;transform-origin:center;animation:efp-compass-wobble 9s ease-in-out infinite;}

/* ─── About ──────────────────────────────────────── */
.efp-about {
  position:relative;
  background:var(--white);
  padding:6rem 0 7rem;
}
.efp-about::before {
  content:'';
  position:absolute;
  top:-50px;
  left:-5%;
  width:110%;
  height:100px;
  background:var(--navy);
  border-radius:50%;
  pointer-events:none;
}
.efp-about__grid {
  display:grid;
  grid-template-columns:2fr 3fr;
  gap:5rem;
  align-items:center;
}
.efp-about__image {
  position:relative;
}
.efp-about__image img {
  width:100%;
  border-radius:var(--radius-lg);
  object-fit:cover;
  position:relative;
  z-index:1;
}
/* Gold offset frame – the signature portrait device */
.efp-about__image::before {
  content:'';
  position:absolute;
  top:-1.25rem;
  left:-1.25rem;
  right:1.25rem;
  bottom:1.25rem;
  border:1.5px solid var(--gold);
  border-radius:var(--radius-lg);
  opacity:0.45;
  z-index:0;
}

.efp-about__text h2 {
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(1.4rem,2.5vw,1.875rem);
  font-weight:600;
  color:var(--navy);
  line-height:1.38;
  margin-bottom:1.5rem;
}
.efp-about__text p {
  color:var(--muted);
  margin-bottom:1rem;
  line-height:1.8;
  font-size:1rem;
}
.efp-about__question {
  font-family:'Playfair Display',Georgia,serif !important;
  font-size:1.15rem !important;
  font-style:italic;
  color:var(--navy) !important;
  margin:1.75rem 0 2.25rem !important;
}

/* ─── Wave divider ───────────────────────────────── */
.efp-wave-divider {
  display:none;
}

/* ─── Services ───────────────────────────────────── */
.efp-services {
  position:relative;
  background:var(--navy);
  padding:5.5rem 0 6.5rem;
}
.efp-services::before {
  content:'';
  position:absolute;
  top:-50px;
  left:-5%;
  width:110%;
  height:100px;
  background:var(--white);
  border-radius:50%;
  pointer-events:none;
}
.efp-services__title {
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(1.625rem,3vw,2.375rem);
  color:var(--white);
  font-weight:600;
  max-width:560px;
  line-height:1.3;
  margin-bottom:3rem;
}
.efp-services__grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1.25rem;
}
.efp-service-card {
  display:flex;
  flex-direction:column;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:var(--radius-lg);
  padding:2rem 1.75rem;
  transition:all 0.3s ease;
  position:relative;
  overflow:hidden;
}
.efp-service-card::after {
  content:'';
  position:absolute;
  bottom:0; left:0; right:0;
  height:2px;
  background:var(--gold);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 0.35s ease;
}
.efp-service-card:hover {
  background:rgba(255,255,255,0.08);
  border-color:rgba(184,134,27,0.35);
  transform:translateY(-4px);
  box-shadow:0 12px 40px rgba(0,0,0,0.2);
}
.efp-service-card:hover::after { transform:scaleX(1); }
.efp-service-card h3 {
  font-family:'Playfair Display',Georgia,serif;
  color:var(--white);
  font-size:1.075rem;
  font-weight:600;
  margin-bottom:0.75rem;
  line-height:1.35;
}
.efp-service-card p {
  color:rgba(255,255,255,0.55);
  font-size:0.875rem;
  line-height:1.7;
  flex:1;
}
.efp-service-card__arrow {
  display:block;
  margin-top:1.25rem;
  color:var(--gold);
  font-size:1.125rem;
  transition:transform var(--transition);
}
.efp-service-card:hover .efp-service-card__arrow { transform:translateX(4px); }

/* ─── Mission ────────────────────────────────────── */
.efp-mission {
  background-image:url('/_assets/21c27df8c1fc8ecb.jpg');
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
  position:relative;
  padding:9rem 0;
}
.efp-mission::before {
  content:'';
  position:absolute;
  inset:0;
  background:rgba(0,28,76,0.75);
}
.efp-mission__content {
  position:relative;
  z-index:2;
  max-width:620px;
}
.efp-mission__content h2 {
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(1.75rem,3.5vw,2.625rem);
  color:var(--white);
  font-weight:600;
  line-height:1.28;
  margin-bottom:1.25rem;
}
.efp-mission__content p {
  color:rgba(255,255,255,0.75);
  font-size:1.05rem;
  line-height:1.8;
  margin-bottom:2.5rem;
}

/* ─── Trust ──────────────────────────────────────── */
.efp-trust {
  background:var(--off-white);
  padding:5.5rem 0;
}
.efp-trust .efp-eyebrow { margin-bottom:2.25rem; }
.efp-trust__grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.5rem;
  margin-bottom:3rem;
}
.efp-trust__stat {
  background:var(--white);
  border-radius:var(--radius-lg);
  padding:2.25rem 1.5rem;
  text-align:center;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}
.efp-trust__stat::before {
  content:'';
  position:absolute;
  top:0; left:50%;
  transform:translateX(-50%);
  width:44px;
  height:3px;
  background:var(--gold);
  border-radius:0 0 3px 3px;
}
.efp-trust__number {
  display:block;
  font-family:'Playfair Display',Georgia,serif;
  font-size:3rem;
  font-weight:700;
  color:var(--navy);
  line-height:1;
  margin-bottom:0.5rem;
}
.efp-trust__label {
  display:block;
  font-size:0.75rem;
  font-weight:600;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--muted);
}
.efp-trust__quote {
  font-family:'Playfair Display',Georgia,serif;
  font-style:italic;
  font-size:1.2rem;
  color:var(--navy);
  text-align:center;
  max-width:600px;
  margin:0 auto;
  line-height:1.65;
  opacity:0.8;
}

/* ─── Contact ────────────────────────────────────── */
.efp-contact {
  background:var(--white);
  padding:6rem 0;
  border-top:1px solid var(--border);
}
.efp-contact .efp-eyebrow { margin-bottom:0.5rem; }
.efp-contact h2 {
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(1.75rem,3vw,2.5rem);
  color:var(--navy);
  font-weight:600;
  margin-bottom:3rem;
}
.efp-contact__info { }
.efp-contact__info p {
  color:var(--muted);
  margin-bottom:0.875rem;
  line-height:1.75;
}
.efp-contact__info strong { color:var(--text); font-weight:600; }
.efp-contact__info a {
  color:var(--navy);
  font-weight:500;
  transition:color var(--transition);
  border-bottom:1px solid var(--border);
  padding-bottom:1px;
}
.efp-contact__info a:hover {
  color:var(--gold);
  border-bottom-color:var(--gold);
}
.efp-contact__grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4rem;
  align-items:start;
}
.efp-contact-form {
  display:flex;
  flex-direction:column;
  gap:1.25rem;
}
.efp-contact-form__field {
  display:flex;
  flex-direction:column;
  gap:0.4rem;
}
.efp-contact-form__field label {
  font-size:0.8125rem;
  font-weight:600;
  letter-spacing:0.06em;
  color:var(--navy);
  text-transform:uppercase;
}
.efp-contact-form__field input,
.efp-contact-form__field textarea {
  font-family:'DM Sans',sans-serif;
  font-size:0.9375rem;
  color:var(--text);
  background:#fff;
  border:1.5px solid var(--border);
  border-radius:6px;
  padding:0.75rem 1rem;
  transition:border-color var(--transition),box-shadow var(--transition);
  resize:vertical;
  outline:none;
  width:100%;
  box-sizing:border-box;
}
.efp-contact-form__field input:focus,
.efp-contact-form__field textarea:focus {
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(184,134,27,0.12);
}
.efp-contact-form__field textarea { min-height:130px; }
.efp-contact-form__success {
  color:#2d7a3a;
  font-weight:600;
  font-size:0.9375rem;
  margin-top:0.25rem;
}

/* ─── Footer ─────────────────────────────────────── */
.efp-footer {
  background:var(--navy);
  padding:3rem 0;
}
.efp-footer__inner {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1.5rem;
  text-align:center;
}
.efp-footer__logo img {
  height:38px;
  width:auto;
  filter:brightness(0) invert(1);
  opacity:0.7;
}
.efp-footer__links {
  display:flex;
  gap:2.25rem;
  flex-wrap:wrap;
  justify-content:center;
}
.efp-footer__links a {
  color:rgba(255,255,255,0.45);
  font-size:0.8125rem;
  transition:color var(--transition);
}
.efp-footer__links a:hover { color:rgba(255,255,255,0.85); }
.efp-footer__copy {
  color:rgba(255,255,255,0.3);
  font-size:0.8125rem;
}

/* ─── Scroll reveal ──────────────────────────────── */
.js-ready .reveal {
  opacity:0;
  transform:translateY(22px);
  transition:opacity 0.65s ease, transform 0.65s ease;
}
.js-ready .reveal.visible {
  opacity:1;
  transform:none;
}

/* Stagger delay for grid children */
.js-ready .efp-services__grid .reveal:nth-child(2) { transition-delay:0.1s; }
.js-ready .efp-services__grid .reveal:nth-child(3) { transition-delay:0.2s; }
.js-ready .efp-services__grid .reveal:nth-child(4) { transition-delay:0.3s; }
.js-ready .efp-trust__grid .efp-trust__stat:nth-child(2) { transition-delay:0.1s; }
.js-ready .efp-trust__grid .efp-trust__stat:nth-child(3) { transition-delay:0.2s; }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width:1024px) {
  .efp-services__grid { grid-template-columns:repeat(2,1fr); }
  .efp-nav__menu > li > a { padding:0.625rem 0.6rem; font-size:0.825rem; }
  .efp-nav__inner { padding:0 1rem; gap:0.5rem; }
}

@media (max-width:768px) {
  .efp-nav__menu { display:none; }
  .efp-nav__toggle { display:flex; }
  .efp-nav__menu.open {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    position:absolute;
    top:92px; left:0; right:0;
    background:var(--navy);
    padding:0.5rem 0 2rem;
    border-top:1px solid rgba(255,255,255,0.1);
    box-shadow:0 8px 32px rgba(0,0,0,0.3);
  }
  .efp-nav__menu.open > li > a { padding:0.75rem 1.5rem; color:rgba(255,255,255,0.85) !important; }
  .efp-nav__menu.open > li > a:hover { color:var(--white) !important; }
  .has-dropdown:hover > .efp-nav__dropdown { display:none; }

  .efp-hero__row { padding:2.5rem 1.5rem 3rem; flex-direction:column; gap:0; }
  .efp-hero__visual { display:none; }
  .efp-contact__grid { grid-template-columns:1fr; gap:2.5rem; }
  .efp-about__grid { grid-template-columns:1fr; gap:3rem; }
  .efp-about__image::before { display:none; }
  .efp-services__grid { grid-template-columns:1fr; }
  .efp-trust__grid { grid-template-columns:1fr; }
  .efp-mission { background-attachment:scroll; }
  .efp-footer__links { flex-direction:column; gap:1rem; }
}

@media (max-width:480px) {
  .efp-hero__title { font-size:2rem; }
  .efp-services__grid { grid-template-columns:1fr; }
}

/* ─── Reduced motion ─────────────────────────────── */
@media (prefers-reduced-motion:reduce) {
  .js-ready .reveal {
    transition:none !important;
    opacity:1 !important;
    transform:none !important;
  }
  .efp-mission { background-attachment:scroll; }
  .efp-compass-outer-ring,.efp-compass-needle { animation:none; }
}
