/*
 Theme Name:   Byron Financial
 Theme URI:    https://byronfinancialinsurance.com
 Description:  Genesis child theme for Byron Financial Insurance Services
 Author:       Lawton Marketing Group
 Author URI:   https://lawtonmg.com
 Template:     genesis
 Version:      1.0.0
 License:      GPL-2.0-or-later
 Text Domain:  byron-financial
*/

/* =========================================================
   Brand tokens
   ========================================================= */
:root {
  --color-primary: #22366C;
  --color-secondary: #78A9CF;
  --color-tertiary: #d8d1c8;
}

html { scroll-behavior: smooth; }

html, body,
.font-sans,
p, li, a, button, input, select, textarea, label, span, dialog {
  font-family: 'Josefin Sans', sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.font-serif,
.step-title, .step-number {
  font-family: 'Cormorant Garamond', ui-serif, Georgia, serif !important;
}

html, body { color: #22366C; }
h1, h2, h3, h4, h5, h6, .font-serif { color: #22366C; }

body.menu-open { overflow: hidden; }

/* Reset Genesis structural wraps so Tailwind controls layout */
.site-inner,
.content-sidebar-wrap,
.content { max-width: none; padding: 0; margin: 0; }

/* =========================================================
   Header
   ========================================================= */
#site-header {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(34, 54, 108, 0.08);
}
#site-header .nav-link { color: #22366C; padding-bottom: 6px; position: relative; }
#site-header .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
#site-header .nav-link:hover::after,
#site-header .nav-link:focus-visible::after,
#site-header .nav-link.is-active::after {
  transform: scaleX(1);
}
#site-header .menu-toggle { color: #22366C; }
#site-header nav > a.nav-link,
#site-header nav > .nav-item > a.nav-parent-link {
  margin-top: 6px;
}

/* =========================================================
   Submenu — navy card with white text, invert on hover
   ========================================================= */
.nav-submenu-card.bg-white,
.nav-submenu-card { background-color: #22366C !important; }
.nav-submenu-card > a { color: #ffffff !important; }
.nav-submenu-card > a:hover { color: #22366C !important; background-color: #ffffff !important; }
.nav-submenu-card > a.is-active { color: #22366C !important; background-color: #ffffff !important; }

.nav-submenu-card {
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top center;
  transition: opacity 220ms ease-out, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-item:hover .nav-submenu-card,
.nav-item:focus-within .nav-submenu-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.nav-submenu-card > a {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 300ms ease-out, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), color 180ms ease-out, background-color 180ms ease-out;
}
.nav-item:hover .nav-submenu-card > a,
.nav-item:focus-within .nav-submenu-card > a { opacity: 1; transform: translateX(0); }
.nav-item:hover .nav-submenu-card > a:nth-child(1),
.nav-item:focus-within .nav-submenu-card > a:nth-child(1) { transition-delay: 80ms, 80ms, 0ms, 0ms; }
.nav-item:hover .nav-submenu-card > a:nth-child(2),
.nav-item:focus-within .nav-submenu-card > a:nth-child(2) { transition-delay: 140ms, 140ms, 0ms, 0ms; }
.nav-item:hover .nav-submenu-card > a:nth-child(3),
.nav-item:focus-within .nav-submenu-card > a:nth-child(3) { transition-delay: 200ms, 200ms, 0ms, 0ms; }
.nav-item:hover .nav-submenu-card > a:nth-child(4),
.nav-item:focus-within .nav-submenu-card > a:nth-child(4) { transition-delay: 260ms, 260ms, 0ms, 0ms; }

/* Mobile menu scroll — short viewports (e.g. iPhone in landscape) */
@media (orientation: landscape) and (max-height: 500px) {
  #mobile-menu {
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}

/* =========================================================
   Marketing typography & template overrides
   ========================================================= */
body, p, li { color: #22366C; }
.section-split h2, .section-split h3 { color: #22366C; }

.bg-slate-50, .hover\:bg-slate-50:hover { background-color: #d8d1c8 !important; }
.bg-slate-100 { background-color: #d8d1c8 !important; }
.bg-slate-200, .bg-slate-300 { background-color: #d8d1c8 !important; }
.text-slate-600, .text-slate-700, .text-slate-500, .text-slate-400, .text-slate-900 { color: #22366C !important; }
.border-slate-100, .border-slate-200, .border-slate-300 { border-color: #d8d1c8 !important; }

.text-brand-secondary, .text-brand-secondary * { color: #22366C !important; }
.bg-brand-secondary { background-color: #78A9CF !important; }
.border-brand-secondary { border-color: #78A9CF !important; }

.w-24.h-px, .w-32.h-px { background-color: #78A9CF; }

/* =========================================================
   Hero overlays
   ========================================================= */
.hero .bg-gradient-to-t {
  background: linear-gradient(to top, rgba(34, 54, 108, 0.65), rgba(34, 54, 108, 0.25), rgba(34, 54, 108, 0.15));
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 54, 108, 0.55);
  z-index: 1;
}
.page-hero > .relative { z-index: 2; }

@media (min-width: 1025px) {
  .page-hero--our-approach > div.bg-cover { background-position: center top; }
  .page-hero--educational-resources > div.bg-cover { background-position: center top -100px; }
}

/* =========================================================
   Feature cards & services
   ========================================================= */
.card-notch { border-top-color: #d8d1c8 !important; }
[class*="border-brand-primary"].border-b-4 { border-bottom-color: #78A9CF !important; }

.service-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #d8d1c8;
  padding: 2.5rem 2rem;
  cursor: default;
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 320ms ease-out, border-color 320ms ease-out;
  overflow: hidden;
}
.service-card:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 3px; }
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: #78A9CF;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.service-card:hover {
  box-shadow: 0 20px 40px -15px rgba(34, 54, 108, 0.25);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: #f8fafc;
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.75rem;
  transition: background-color 320ms ease-out, color 320ms ease-out, transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.service-card:hover .service-icon { background: var(--color-primary); color: var(--color-secondary); transform: scale(1.05); }

.service-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-primary);
  font-size: 11px;
  letter-spacing: 0.25em;
  font-weight: 600;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 220ms ease-out, gap 220ms ease-out;
}
.service-more-btn i { font-size: 10px; transition: transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1); }
.service-more-btn:hover { color: var(--color-secondary); gap: 1rem; }
.service-more-btn:hover i { transform: translateX(4px); }

/* =========================================================
   Process steps
   ========================================================= */
.process-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid #d8d1c8;
}
.process-step:last-child { border-bottom: 0; }
@media (min-width: 640px) {
  .process-step { grid-template-columns: auto 1fr; padding: 2.5rem 0; }
}
@media (min-width: 1024px) {
  .process-step {
    grid-template-columns: minmax(140px, 200px) minmax(240px, 360px) 1fr;
    gap: 3rem;
    padding: 3rem 0;
  }
}

.step-number {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
  color: #78A9CF;
  letter-spacing: 0.02em;
}
@media (min-width: 1024px) { .step-number { font-size: 5rem; } }

.step-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.5rem;
  color: #22366C;
  line-height: 1.2;
}
@media (min-width: 1024px) { .step-title { font-size: 2rem; } }

.step-description { color: #22366C; line-height: 1.65; max-width: 640px; }

/* =========================================================
   Modals
   ========================================================= */
dialog.bio-modal,
dialog.content-modal {
  max-width: 1200px;
  width: calc(100% - 2rem);
  max-height: calc(100vh - 4rem);
  padding: 0;
  border: none;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.45);
  overflow: visible;
}
dialog.content-modal { max-width: 800px; }
dialog.bio-modal[open],
dialog.content-modal[open] {
  animation: bioModalIn 320ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
dialog.bio-modal::backdrop,
dialog.content-modal::backdrop {
  background: rgba(11, 31, 58, 0.72);
  backdrop-filter: blur(4px);
  animation: bioModalBackdropIn 320ms ease-out both;
}
@keyframes bioModalIn {
  from { opacity: 0; transform: scale(0.94) translateY(18px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes bioModalBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.content-modal-body {
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 2rem;
}
@media (min-width: 768px) { .content-modal-body { padding: 3rem; } }
@media (min-width: 1024px) { .content-modal-body { padding: 4rem; } }

.content-modal-close {
  position: absolute;
  top: -1.25rem;
  right: -1.25rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: #22366C;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: transform 240ms cubic-bezier(0.2, 0.9, 0.3, 1), background-color 200ms ease-out, color 200ms ease-out;
}
.content-modal-close:hover,
.content-modal-close:focus-visible {
  background: #78A9CF;
  transform: rotate(90deg) scale(1.05);
  outline: none;
}

.content-modal-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: #f8fafc;
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

body:has(dialog.bio-modal[open]),
body:has(dialog.content-modal[open]) { overflow: hidden; }

dialog h2 { color: #22366C; }

.leadership-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .leadership-modal-grid { grid-template-columns: auto 1fr; gap: 40px; }
}

.team-card .headshot {
  cursor: pointer;
  transition: opacity 220ms ease-out, transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.team-card .headshot:hover { opacity: 0.92; transform: translateY(-2px); }

/* =========================================================
   Split sections — image flush with content on desktop
   ========================================================= */
@media (min-width: 1024px) {
  .section-split > .grid { align-items: stretch !important; }
  .section-split .split-content { padding-top: 20px; padding-bottom: 20px; align-self: center; }
  .section-split .split-image { height: 100%; }
  .section-split .split-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
}

/* =========================================================
   CTA buttons
   ========================================================= */
.cta-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border: 1px solid #22366C;
  color: #22366C;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.25em;
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color 200ms, color 200ms;
}
.cta-btn-outline i,
.cta-btn-outline span { line-height: 1; display: inline-flex; align-items: center; }
.cta-btn-outline:hover { background: #22366C; color: #ffffff; }

.cta-btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.25em;
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color 200ms, color 200ms;
}
.cta-btn-outline-light:hover { background: #ffffff; color: #22366C; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #22366C; color: #ffffff; }
.site-footer h2,
.site-footer p,
.site-footer li,
.site-footer span { color: #ffffff; }
.site-footer .w-24.h-px { background: #78A9CF; }
.site-footer i { color: #78A9CF; }
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: #78A9CF; }
.site-footer .social-circle { border-color: #ffffff; color: #ffffff; }
.site-footer .social-circle:hover { background: #fff; border-color: #fff; color: #78A9CF; }

.site-footer p,
.site-footer a {
  text-transform: none;
  letter-spacing: normal;
}

.site-footer-disclosure { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.site-footer-disclosure p { color: #c9d3e8; font-size: 0.75rem; }
.site-footer-disclosure a { color: #ffffff; text-decoration: underline; }
.site-footer-disclosure a:hover { color: #78A9CF; }

/* =========================================================
   Contact page panel/info — kept from source CSS
   ========================================================= */
.contact-panel { background: transparent; border-top: 0; padding: 0; }
.contact-info-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #d8d1c8;
}
.contact-info-row--last { border-bottom: 0; }
.contact-info-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #d8d1c8;
  color: #22366C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-info-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  color: #22366C;
  margin-bottom: 0.35rem;
}
.contact-info-value { color: #22366C; font-size: 0.95rem; line-height: 1.5; }
.contact-info-link {
  display: inline-block;
  color: #22366C;
  text-decoration: none;
  transition: color 180ms ease-out;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.contact-info-link:hover { color: #22366C; text-decoration: underline; }

/* =========================================================
   Card notch (decorative)
   ========================================================= */
.card-notch {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 14px solid #d8d1c8;
}

/* =========================================================
   M Financial blog feed plugin styling overrides
   ========================================================= */
#mf-blog-feed .mf-feed-row, .__mf_2025__mf-feed-row { align-items: flex-start; }
#mf-blog-feed .mf-feed-body { padding-top: 0; }
#mf-blog-feed .mf-feed h3 { font-size: 2.25rem; margin-bottom: .5rem; }
#mf-blog-feed .mf-feed-cats { font-size: .85rem; margin-bottom: 1rem; }
.mf-search-input, .__mf_2025__mf-search-input,
.mf-filter-select, .__mf_2025__mf-filter-select { border: 1px solid #000; height: 50px; }
#pom2-feed-root .__2025__pom-2-tier h2 { margin-bottom: 1rem; }
#pom2-feed-root .pom-2-section-3 .__2025__pom-wrap .content-right p,
#pom2-feed-root .pom-2-section-3 .__2025__pom-wrap .content-right h2,
#pom2-feed-root .pom-2-section-3 .__2025__pom-wrap .content-right li { color: #fff; }
#pom2-feed-root .pom-2-section-5 .__2025__pom-wrap .content-right p,
#pom2-feed-root .pom-2-section-3 .__2025__pom-wrap .content-right ul { margin-top: 1rem; }

@media screen and (max-width: 40em) {
	.hide-small-only {
	display: none !important;
	}
}

@media screen and (min-width: 64em) {
	.approach-hero {
	background-position: center bottom -150px;
}
	.edu-hero .inset-0{
		background-position: center top -100px;
	}


}
