/* ===== S E Fleming CPA — shared styles ===== */
:root {
  --navy: #15222c;
  --navy-2: #1b2b37;
  --blue: #264c7d;
  --blue-2: #274975;
  --sky: #a9c7ea;
  --text: #616670;
  --heading: #15222c;
  --light: #f8f8f8;
  --white: #fff;
  --border: #e6e8eb;
  --radius: 5px;
  --shadow: 0 10px 30px rgba(21, 34, 44, .08);
  --ff-head: "Rajdhani", sans-serif;
  --ff-body: "Rubik", sans-serif;
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: .5px;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s, background .25s, border-color .25s; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ff-head); font-weight: 700; color: var(--heading); margin: 0 0 .5em; line-height: 1.2; letter-spacing: .5px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section { padding: 110px 0; }
.bg-light { background: var(--light); }
.center { text-align: center; }

.eyebrow {
  display: block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 14px;
}
.eyebrow.light { color: var(--white); }
.title { font-size: 48px; line-height: 60px; text-transform: capitalize; }
.title.light { color: var(--white); }
.section-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }

/* Buttons */
/* Sliding-fill buttons: two fill layers (one at 60%) slide out left on hover, 0.2s apart.
   .btn-outline is the reverse: layers slide in from the left. */
.btn {
  position: relative; z-index: 1; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-body); font-weight: 700; font-size: 16px;
  letter-spacing: 1.28px; text-transform: uppercase;
  padding: 20px 30px; border-radius: var(--radius);
  background: transparent; color: var(--white);
  border: 2px solid var(--blue-2);
  cursor: pointer; transition: color .4s;
}
.btn::before, .btn::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--blue-2); z-index: -1; transition: left .4s;
}
.btn::before { opacity: .6; }
.btn:hover { color: var(--blue-2); }
.btn:hover::before { transition-delay: .2s; }
.btn:hover::before, .btn:hover::after { left: -100%; }

.btn-outline-light { border-color: var(--white); }

.btn-outline { color: var(--blue-2); }
.btn-outline::before, .btn-outline::after { left: -100%; }
.btn-outline:hover { color: var(--white); }
.btn-outline:hover::before { transition-delay: 0s; }
.btn-outline:hover::after { transition-delay: .2s; }
.btn-outline:hover::before, .btn-outline:hover::after { left: 0; }
.btn-sm { padding: 12px 20px; font-size: 13px; }

/* ===== Top bar ===== */
.topbar { background: var(--blue); color: var(--white); font-size: 13px; }
.topbar .container { display: flex; justify-content: flex-end; align-items: center; min-height: 47px; }
.topbar a { font-weight: 700; text-transform: uppercase; letter-spacing: .5px; display: inline-flex; gap: 8px; align-items: center; }
.topbar a:hover { color: var(--sky); }

/* ===== Header ===== */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 100; transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 137px; gap: 24px; }
.logo img { width: 120px; height: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 36px; }
.main-nav a { font-weight: 500; font-size: 16px; color: var(--text); display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
/* Seven menu items: keep every label on one line and tighten spacing on smaller desktops */
@media (min-width: 992px) { .main-nav > ul > li > a { white-space: nowrap; } }
@media (min-width: 1200px) and (max-width: 1439px) { .main-nav > ul { gap: 24px; } }
@media (min-width: 992px) and (max-width: 1199px) {
  .main-nav > ul { gap: 14px !important; }
  .main-nav a { font-size: 15px; }
  .main-nav .btn { padding: 14px 18px; font-size: 15px; }
}
.has-sub { position: relative; }
.has-sub .chev { width: 10px; height: 10px; transition: transform .25s; }
.submenu {
  position: absolute; top: 100%; left: -20px; min-width: 230px;
  background: var(--white); box-shadow: var(--shadow); border-top: 3px solid var(--blue);
  padding: 12px 0; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s; z-index: 10;
}
.submenu a { display: block; padding: 8px 22px; font-size: 15px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .chev { transform: rotate(180deg); }
.main-nav .btn { padding: 16px 26px; text-transform: none; letter-spacing: .5px; font-size: 16px; color: var(--white); }
.main-nav .btn:hover { color: var(--blue-2); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
/* Layers, top to bottom: wave + dots (new.svg), navy left half, photo (555.jpg) */
.hero {
  position: relative; color: var(--white); overflow: hidden; padding: 50px 0;
  background:
    url("../images/uploads/2026/01/new.svg") 0 0 / 100% 100% no-repeat,
    linear-gradient(90deg, var(--navy) 50%, transparent 50%),
    url("../images/uploads/2026/02/555.jpg") 130% 0 / 70% 100% no-repeat,
    var(--navy);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 50%; padding: 100px 0; }
.hero .eyebrow { font-size: 15px; color: var(--white); line-height: 20px; margin-bottom: 10px; }
.hero h1 { font-size: 68px; color: var(--white); line-height: 90px; margin-bottom: 20px; }
.hero p { font-size: 16px; color: var(--white); }
.hero .btn { margin-top: 18px; }

/* ===== Services cards ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
  background: var(--white); padding: 40px 34px; border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,.03); transition: transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.service-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--blue); transition: width .35s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card:hover::after { width: 100%; }
.service-card .icon { width: 40px; height: 40px; color: var(--blue-2); margin-bottom: 18px; }
.service-card h4 { font-size: 20px; line-height: 30px; margin-bottom: 0; }
.service-card .tag { font-size: 16px; color: var(--text); margin-bottom: 16px; display: block; }
.service-card p { font-size: 16px; line-height: 26px; margin: 0; }

/* ===== Split (image + text) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-img { position: relative; }
.split-img img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.split-img .badge {
  position: absolute; right: -24px; bottom: -24px; background: var(--blue); color: var(--white);
  padding: 22px 28px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center;
}
.split-img .badge strong { display: block; font-family: var(--ff-head); font-size: 40px; line-height: 1; }
.split-img .badge span { font-size: 13px; }
.split-text .title { font-size: 48px; }
.involved .split { grid-template-columns: 470px 1fr; gap: 70px; }
.involved { position: relative; overflow: hidden; }
.split-text .btn { margin-top: 12px; }

/* ===== Dark advisory band ===== */
/* Full-width navy band starts 80px down; photo (30vw x 45vw) starts at the section top */
.advisory { position: relative; overflow: hidden; z-index: 0; }
.advisory::before { content: ""; position: absolute; top: 80px; left: 0; right: 0; bottom: 0; background: var(--navy); z-index: -1; }
.advisory .split { grid-template-columns: 1fr 1fr; align-items: start; gap: 30px; }
.advisory .split-text { margin-top: 80px; padding: 100px 0; color: rgba(255,255,255,.9); }
.advisory .split-img img { width: 30vw; height: 45vw; border-radius: 0; }
/* Laptop/desktop: the photo runs down to the end of the text column (its 100px bottom padding excluded),
   and is never shorter than 45vw, so wide screens look unchanged */
@media (min-width: 992px) {
  .advisory:not(.tall) .split { align-items: stretch; }
  .advisory:not(.tall) .split-img { position: relative; min-height: calc(45vw + 100px); }
  .advisory:not(.tall) .split-img img { position: absolute; top: 0; left: 0; height: calc(100% - 100px); object-fit: cover; }
}
.advisory .title { font-size: 48px; line-height: 60px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; font-size: 14px; }
.check-list svg { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--white); }
.advisory .btn { margin-top: 26px; }

/* ===== Approach cards ===== */
.approach { position: relative; overflow: hidden; }
.approach::before {
  content: ""; position: absolute; top: -50%; left: 0; width: 30%; height: 150%; pointer-events: none;
  background: url("../images/theme/v1-bg-shap.png") left top / contain no-repeat;
}
.approach .container { position: relative; }
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.approach-card {
  background: var(--light); border-radius: var(--radius); padding: 44px 38px; position: relative;
  transition: background .3s, color .3s;
}
.approach-grid { row-gap: 70px; }
.approach-card .star {
  position: absolute; top: -30px; right: 30px; width: 60px; height: 60px; background: var(--white);
  border-radius: 5px; display: grid; place-items: center; color: var(--blue-2);
  box-shadow: 0 4.8px 24.4px -6px rgba(19,16,34,.1), 0 4px 13px -2px rgba(19,16,34,.06);
  transition: background .3s, color .3s;
}
.approach-card .star svg { width: 26px; height: 26px; }
.approach-card .eyebrow { font-size: 16px; letter-spacing: .5px; text-transform: none; margin-bottom: 4px; }
.approach-card h4 { font-size: 24px; line-height: 36px; }
.approach-card .lead { font-size: 16px; margin-bottom: 16px; }
.approach-card p { font-size: 16px; line-height: 26px; }
.approach-card:hover .star { background: var(--blue); color: var(--white); }

/* ===== Talk to us ===== */
/* Two equal columns: white box centred in the left half, tagline in the right half */
.talk { background: var(--navy); padding: 100px 0; position: relative; overflow: hidden; }
.talk::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 40%; width: 60%; pointer-events: none;
  background: url("../images/theme/talk-to-us-bg-shap.png") 100% 50% / 100% 100% no-repeat;
}
.talk .container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; position: relative; z-index: 1; }
.talk-box {
  background: var(--white); border-radius: 5px; padding: 40px 60px; width: 100%; max-width: 520px; justify-self: center;
  display: flex; align-items: center; gap: 25px;
}
.talk-box svg { width: 50px; height: 50px; color: var(--blue-2); flex: none; }
.talk-box h4 { font-size: 24px; line-height: 36px; color: var(--text); margin: 0; }
.talk-box .phone { font-family: var(--ff-head); font-weight: 700; font-size: 32px; line-height: 44px; color: var(--navy); margin: -4px 0 0; }
.talk-box .phone a:hover { color: var(--blue); }
.talk .tagline { font-family: var(--ff-head); font-weight: 700; font-size: 18px; line-height: 28px; color: var(--white); letter-spacing: 4px; margin: 0; }

/* ===== Blog cards ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card { background: var(--light); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-thumb { position: relative; aspect-ratio: 29 / 20; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-cat {
  position: absolute; right: 14px; bottom: 14px; background: var(--blue); color: var(--white);
  font-size: 11px; font-weight: 500; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; max-width: 75%;
}
.post-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.post-date { font-size: 13px; color: var(--text); margin-bottom: 6px; }
.post-body h3 { font-size: 24px; margin-bottom: 22px; flex: 1; }
.post-body h3 a:hover { color: var(--blue); }
.post-body .btn { align-self: flex-start; }

/* ===== Affiliations ===== */
.logos { padding: 70px 0; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 56px; }
/* multiply blends each logo's baked-in white background into the grey section */
.logo-row img { height: 70px; width: auto; max-width: 180px; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.logo-row img:hover { transform: scale(1.06); }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.9); font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 50px; padding: 80px 0 60px; }
.footer-logo img { width: 150px; margin-bottom: 0; }
/* Live: 16/26 white text in a 350px column, 40px below the logo and between paragraphs */
.footer-about p { max-width: 350px; font-size: 16px; line-height: 26px; color: var(--white); margin: 40px 0 0; }
.site-footer h4 { color: var(--white); font-size: 22px; margin-bottom: 22px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover, .contact-list a:hover { color: var(--sky); }
.contact-list li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.contact-list svg { width: 16px; height: 16px; flex: none; margin-top: 4px; }
.socials { display: flex; gap: 10px; margin-top: 30px; }
.socials a { width: 32px; height: 32px; border-radius: 4px; background: var(--blue); display: grid; place-items: center; }
.socials a:hover { background: var(--white); color: var(--navy); }
.socials svg { width: 14px; height: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.6); }
.footer-bottom a { color: var(--white); }


/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===== Responsive ===== */
@media (min-width: 1400px) {
  :root { --container: 1320px; }
}
@media (max-width: 1199px) {
  .main-nav > ul { gap: 24px; }
  .hero h1 { font-size: 50px; }
}
@media (max-width: 991px) {
  .section { padding: 80px 0; }
  .title, .split-text .title { font-size: 36px; }
  .site-header .container { min-height: 84px; }
  .logo img { width: 90px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw);
    background: var(--white); box-shadow: -10px 0 30px rgba(0,0,0,.15);
    transform: translateX(100%); transition: transform .35s ease; padding: 90px 24px 30px; overflow-y: auto; z-index: 99;
  }
  .nav-open .main-nav { transform: none; }
  .nav-toggle { position: relative; z-index: 101; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--border); }
  .main-nav a { padding: 14px 0; width: 100%; justify-content: space-between; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 12px; display: none; min-width: 0; }
  .has-sub.open .submenu { display: block; }
  .has-sub:hover .chev { transform: none; }
  .has-sub.open .chev { transform: rotate(180deg); }
  .main-nav > ul > li:last-child { border: 0; margin-top: 20px; }
  .main-nav .btn { justify-content: center; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 98; opacity: 0; visibility: hidden; transition: opacity .3s; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; }

  .hero { padding: 0; background: var(--navy) url("../images/uploads/2026/02/555.jpg") 100% 0 / cover no-repeat; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(21,34,44,.96) 0%, rgba(21,34,44,.82) 100%); }
  .hero h1 { font-size: 48px; line-height: 1.2; }
  .hero-content { max-width: 600px; }
  .services-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .involved .split { grid-template-columns: 1fr; gap: 50px; }
  .approach::before { width: 60%; opacity: .6; }
  .split-img .badge { right: 16px; bottom: -20px; }
  .advisory { background: var(--navy); }
  .advisory::before { display: none; }
  .advisory .split { grid-template-columns: 1fr; gap: 40px; }
  .advisory .split-text { margin-top: 0; padding: 70px 0 0; }
  .advisory .split-img img { width: 100%; height: 420px; }
  .advisory .split-img { padding-bottom: 70px; }
  .advisory .title { font-size: 36px; line-height: 1.25; }
  .talk .container { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .talk::after { left: 0; width: 100%; opacity: .6; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  /* Phone readability and tap size */
  .post-cat { font-size: 12px; }
  .footer-bottom a { display: inline-block; padding: 6px 2px; }
  .section { padding: 64px 0; }
  .title, .split-text .title, .advisory .title { font-size: 30px; line-height: 1.25; }
  .advisory .split-img img { height: 320px; }
  .section-head { margin-bottom: 40px; }
  .eyebrow { font-size: 13px; letter-spacing: 3px; }
  .hero { min-height: 0; }
  .hero-content { padding: 70px 0; }
  .hero h1 { font-size: 36px; }
  .hero .eyebrow { font-size: 12px; }
  .btn { padding: 15px 22px; font-size: 13px; }
  .services-grid, .blog-grid, .approach-grid { grid-template-columns: 1fr; }
  .approach-grid { gap: 44px; }
  .service-card, .approach-card { padding: 34px 24px; }
  .talk { padding: 70px 0; }
  .talk-box { padding: 26px 22px; gap: 16px; text-align: left; }
  .talk-box h4 { font-size: 20px; line-height: 28px; }
  .talk-box .phone { font-size: 26px; line-height: 34px; }
  .talk .tagline { letter-spacing: 3px; }
  .logo-row { gap: 24px 32px; }
  .logo-row img { height: 52px; max-width: 130px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding: 60px 0 40px; }
  .topbar .container { justify-content: center; }
}
