/*
Theme Name: NexFM
Theme URI: https://nexfmllc.com/
Author: NexFM LLC
Description: Lightweight premium accounting-services theme for NexFM LLC.
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nexfm
*/

:root{
  --navy:#10283f;
  --navy-2:#173b59;
  --ink:#18232d;
  --muted:#667482;
  --line:#dce4e9;
  --paper:#f7f9fa;
  --white:#ffffff;
  --accent:#d79a62;
  --accent-dark:#b97842;
  --radius:18px;
  --shadow:0 16px 50px rgba(16,40,63,.09);
}

*,
*::before,
*::after{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  color:var(--ink);
  background:var(--white);
  font-family:"Poppins",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:1.68;
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
a:hover{text-decoration:none}
img{max-width:100%;height:auto;display:block}
figure{margin:0}
address{font-style:normal}

.container{
  width:min(1180px,calc(100% - 40px));
  margin-inline:auto;
}

.site-main{
  width:100%;
  overflow:hidden;
}

h1,h2,h3,h4,h5,h6{
  font-family:"Poppins",sans-serif;
  color:var(--navy);
  line-height:1.14;
  letter-spacing:-.025em;
  margin:0 0 18px;
}

h1{font-size:clamp(2.7rem,6vw,5rem);font-weight:750}
h2{font-size:clamp(2rem,4vw,3.05rem);font-weight:720}
h3{font-size:1.22rem;font-weight:700}
p{margin:0 0 18px}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--accent-dark);
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.75rem;
  margin-bottom:12px;
}

.button,
.wp-block-button__link{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  border-radius:10px!important;
  padding:12px 19px!important;
  min-height:48px;
  font-family:"Poppins",sans-serif;
  font-weight:700!important;
  line-height:1.2;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .2s ease,background .2s ease,border-color .2s ease;
  text-decoration:none!important;
}

.button-primary,
.wp-block-button__link{
  background:var(--navy)!important;
  color:#fff!important;
}

.button-primary:hover,
.wp-block-button__link:hover{
  background:var(--navy-2)!important;
  transform:translateY(-1px);
}

.button-secondary{
  border-color:var(--line);
  background:#fff;
  color:var(--navy);
}

/* ---------------- Header ---------------- */

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  width:100%;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(220,228,233,.9);
}

.admin-bar .site-header{top:32px}

.header-inner{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

.header-brand-wrap,
.header-custom-logo{
  display:flex;
  align-items:center;
  flex:0 0 auto;
}

.brand{
  display:flex;
  align-items:center;
  gap:11px;
  font-weight:800;
  font-size:1.2rem;
  color:var(--navy);
}

.brand-mark{
  width:36px;
  height:36px;
  flex:0 0 36px;
  border-radius:10px;
  background:var(--navy);
  display:grid;
  place-items:center;
  color:#fff;
  font-size:.9rem;
  letter-spacing:-.06em;
}

.header-custom-logo .custom-logo-link{
  display:inline-flex;
  align-items:center;
}

.header-custom-logo .custom-logo{
  display:block;
  width:auto;
  max-width:240px;
  max-height:56px;
  object-fit:contain;
}

.main-nav{
  display:flex;
  align-items:center;
  gap:28px;
}

.main-nav ul{
  display:flex;
  align-items:center;
  gap:28px;
  list-style:none;
  padding:0;
  margin:0;
}

.main-nav li{margin:0;padding:0}

.main-nav a{
  color:#40505d;
  font-size:.94rem;
  font-weight:650;
  white-space:nowrap;
}

.main-nav a:hover{color:var(--navy)}

.header-right-area{
  display:flex;
  align-items:center;
  flex:0 0 auto;
}

.header-right-area .widget,
.header-right-area .widget p{margin:0}

.header-cta,
.header-right-area a.button,
.header-right-area .wp-block-button__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border-radius:10px;
  padding:10px 17px;
  background:var(--navy);
  color:#fff;
  font-weight:700;
}

.menu-toggle{
  display:none;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  padding:8px 12px;
  font:inherit;
  color:var(--navy);
}

/* ---------------- Homepage ---------------- */

/* The home page is composed of full-width section elements saved in Pages > Home.
   Do not constrain direct sections or allow editor wrappers to affect their geometry. */
.home .site-main > section{
  width:100%;
  max-width:none;
  margin:0;
}

.home .site-main > p:empty,
.home .site-main > br{
  display:none!important;
}

.hero{
  width:100%;
  padding:90px 0 80px;
  background:linear-gradient(135deg,#f8fafb 0%,#fff 62%);
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:70px;
  align-items:center;
}

.hero-copy{
  min-width:0;
}

.hero-copy p,
.section-intro{
  color:var(--muted);
  font-size:1.06rem;
  max-width:680px;
}

.hero-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:30px;
}

.hero-card{
  min-width:0;
  min-height:420px;
  border-radius:28px;
  background:var(--navy);
  padding:34px;
  color:#fff;
  box-shadow:var(--shadow);
}

.hero-card h2{color:#fff}
.hero-card p{color:#c7d4de}

.ledger{
  width:100%;
  background:#fff;
  color:var(--ink);
  border-radius:18px;
  padding:22px;
  margin-top:36px;
  box-shadow:0 22px 60px rgba(0,0,0,.18);
}

.ledger-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-bottom:1px solid var(--line);
  padding:14px 0;
}

.ledger-row:last-child{border-bottom:0}
.positive{font-weight:800;color:#356d55}

.section{
  width:100%;
  padding:92px 0;
}

.section-soft{background:var(--paper)}
.home-trust{padding-top:34px;padding-bottom:70px}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:40px;
  margin-bottom:42px;
}

.section-head > *{min-width:0}

.trust-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}

.trust-item{
  min-width:0;
  padding:25px;
  border-right:1px solid var(--line);
}

.trust-item:last-child{border-right:0}

.trust-item strong{
  display:block;
  color:var(--navy);
  margin-bottom:5px;
}

.trust-item span{
  display:block;
  color:var(--muted);
  font-size:.92rem;
}

.service-grid,
.cards{
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
}

.service-card,
.card{
  min-width:0;
  height:100%;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px;
  background:#fff;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}

.service-card:hover,
.card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
  border-color:#cbd7de;
}

.icon{
  width:46px;
  height:46px;
  border-radius:12px;
  background:#eef3f6;
  color:var(--navy);
  display:grid;
  place-items:center;
  margin-bottom:22px;
}

.service-card p,
.card p{color:var(--muted)}

.text-link{
  display:inline-flex;
  color:var(--navy);
  font-weight:750;
}

.split{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:70px;
  align-items:center;
}

.split > *{min-width:0}

.feature-panel{
  background:var(--navy);
  color:#fff;
  border-radius:26px;
  padding:45px;
}

.feature-panel h2,
.feature-panel h3{color:#fff}

.feature-panel p{color:#c7d4de}

.feature-list{
  display:grid;
  gap:14px;
  margin-top:28px;
}

.feature-list > div{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.check{
  color:var(--accent);
  font-weight:900;
}

.reasons{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
}

.reason{
  min-width:0;
  height:100%;
  padding:25px;
  border-top:3px solid var(--accent);
  background:#fff;
}

.reason p{
  color:var(--muted);
  font-size:.93rem;
}

.process{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
  align-items:stretch;
}

.step{
  min-width:0;
  height:100%;
  padding:10px 25px 10px 0;
}

.number{
  width:42px;
  height:42px;
  border-radius:50%;
  background:var(--navy);
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:800;
  margin-bottom:18px;
}

.testimonials{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
}

.quote-mark{
  color:var(--accent);
  font-size:3rem;
  line-height:.7;
}

.client{
  margin-top:20px;
  color:var(--navy);
  font-weight:800;
}

.client small{
  display:block;
  color:var(--muted);
  font-weight:500;
}

.faq-list{
  width:100%;
  max-width:900px;
}

.faq-list details{
  border-bottom:1px solid var(--line);
  padding:20px 0;
}

.faq-list summary{
  cursor:pointer;
  color:var(--navy);
  font-weight:750;
}

.cta{
  width:100%;
  background:var(--navy);
  color:#fff;
  border-radius:28px;
  padding:62px;
}

.cta h2{color:#fff}
.cta p{color:#c7d4de;max-width:650px}
.cta .button{background:var(--accent)!important;color:#18232d!important}

/* ---------------- Inner pages ---------------- */

.page-hero{
  width:100%;
  padding:75px 0;
  background:var(--paper);
}

.page-hero p{
  color:var(--muted);
  max-width:720px;
  font-size:1.05rem;
}

.prose{
  width:100%;
  max-width:940px;
}

.prose>p,
.prose>ul,
.prose>ol{color:#52616d}

.prose h2{
  font-size:2rem;
  margin-top:42px;
}

.nexfm-contact-layout{
  display:grid;
  grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
  gap:48px;
  align-items:start;
}

.contact-panel{
  background:var(--navy);
  color:#fff;
  border-radius:24px;
  padding:36px;
}

.contact-panel h2,
.contact-panel h3{color:#fff}
.contact-panel p,
.contact-panel a{color:#c7d4de}

.nexfm-contact-form{
  border:1px solid var(--line);
  border-radius:18px;
  padding:30px;
}

.nexfm-contact-form label{
  display:block;
  color:var(--navy);
  font-weight:650;
  margin-bottom:5px;
}

.nexfm-contact-form input,
.nexfm-contact-form textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  padding:13px;
  font:inherit;
  margin-bottom:17px;
}

.nexfm-contact-form textarea{min-height:150px}

.nexfm-form-message{
  padding:13px 16px;
  border-radius:10px;
  margin-bottom:18px;
}

.nexfm-form-message.success{background:#edf8f1;color:#28603f}
.nexfm-form-message.error{background:#fff0f0;color:#8a3333}

/* ---------------- Footer ---------------- */

.site-footer{
  width:100%;
  background:#0b1c2c;
  color:#bac8d3;
  padding:64px 0 24px;
}

.site-footer .footer-grid{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(0,.85fr) minmax(0,1.05fr) minmax(0,1.05fr);
  gap:42px;
  align-items:start;
}

.footer-column{min-width:0}

.site-footer h3,
.site-footer .widget-title{
  color:#fff;
  font-size:1rem;
  line-height:1.3;
  margin:0 0 15px;
}

.site-footer p{
  margin:7px 0;
  color:#bac8d3;
}

.footer-logo-wrap{
  min-height:58px;
  display:flex;
  align-items:center;
  margin-bottom:16px;
}

.footer-logo-link{
  display:inline-flex;
  align-items:center;
}

.footer-logo-image{
  display:block;
  width:auto;
  max-width:230px;
  max-height:64px;
  object-fit:contain;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:11px;
  color:#fff;
  font-weight:800;
  font-size:1.1rem;
}

.footer-brand .brand-mark{
  background:#fff;
  color:var(--navy);
}

.footer-address{
  color:#bac8d3;
  line-height:1.75;
  margin:0 0 14px;
}

.site-footer .widget{
  max-width:none;
  margin:0;
}

.site-footer .widget p:last-child{margin-bottom:0}

.site-footer ul,
.site-footer .footer-link-list,
.site-footer .wp-block-list{
  display:block!important;
  list-style:none!important;
  padding:0!important;
  margin:0!important;
}

.site-footer ul li,
.site-footer .footer-link-list li,
.site-footer .wp-block-list li{
  display:block!important;
  width:100%!important;
  float:none!important;
  margin:0 0 9px!important;
  padding:0!important;
  line-height:1.5!important;
}

.site-footer ul li a,
.site-footer .footer-link-list a{
  display:inline-block!important;
  color:#bac8d3!important;
}

.site-footer ul li a:hover,
.site-footer .footer-link-list a:hover{color:#fff!important}

.site-footer .wp-block-navigation,
.site-footer .wp-block-navigation__responsive-container,
.site-footer .wp-block-navigation__responsive-container-content{
  display:block!important;
  position:static!important;
  padding:0!important;
  background:transparent!important;
}

.site-footer .wp-block-navigation__container{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:9px!important;
}

.payment-row{
  margin-top:40px;
  padding:24px 0;
  border-top:1px solid rgba(255,255,255,.12);
  border-bottom:1px solid rgba(255,255,255,.12);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
}

.payment-copy .widget,
.payment-copy .custom-html-widget{margin:0}

.payment-copy .custom-html-widget{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.payment-copy strong{
  display:block;
  color:#fff;
}

.payment-copy span{
  color:#8fa4b5;
  font-size:.84rem;
}

.payment-methods{
  width:min(100%,455px);
  height:auto;
}

.footer-bottom{
  padding-top:20px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:#bac8d3;
  font-size:.87rem;
}

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

.legal-links a{color:#bac8d3}
.legal-links a:hover{color:#fff}

/* ---------------- Responsive ---------------- */

@media(max-width:1024px){
  .hero-grid{gap:45px}
  .split{gap:45px}
  .site-footer .footer-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:900px){
  .admin-bar .site-header{top:46px}

  .main-nav{display:none}
  .header-right-area{display:none}
  .menu-toggle{display:block}

  .site-header .main-nav.is-open{
    display:flex!important;
    position:absolute;
    top:78px;
    left:20px;
    right:20px;
    padding:18px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    box-shadow:var(--shadow);
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }

  .site-header .main-nav.is-open ul{
    display:flex;
    width:100%;
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }

  .hero-grid,
  .split,
  .nexfm-contact-layout{
    grid-template-columns:1fr;
  }

  .trust-grid,
  .service-grid,
  .cards,
  .testimonials,
  .reasons,
  .process{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .trust-item:nth-child(2){border-right:0}
  .payment-row{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media(max-width:600px){
  .container{
    width:min(100% - 28px,1180px);
  }

  .header-inner{min-height:70px}
  .header-custom-logo .custom-logo{
    max-width:190px;
    max-height:48px;
  }

  .site-header .main-nav.is-open{top:70px}

  .hero{padding:62px 0}
  .hero-card{min-height:350px;padding:24px}

  .section{padding:68px 0}
  .home-trust{padding-top:24px;padding-bottom:56px}

  .section-head{display:block}
  .section-intro{margin-top:12px}

  .trust-grid,
  .service-grid,
  .cards,
  .testimonials,
  .reasons,
  .process,
  .site-footer .footer-grid{
    grid-template-columns:1fr;
  }

  .trust-item{
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .trust-item:last-child{border-bottom:0}

  .cta{padding:40px 25px}

  .footer-logo-image{
    max-width:200px;
    max-height:58px;
  }

  .footer-bottom{display:block}
  .legal-links{margin-top:12px}
  .payment-methods{width:100%}
}
