/*
Theme Name: EGIS Consulting Theme
Theme URI: http://egisconsultingllc.com/
Author: EGIS Consulting LLC
Description: Professional redesigned theme for EGIS Consulting LLC — Fractional CFO & Financial Consulting Services.
Version: 2.0.0
Requires at least: 5.9
Tested up to: 7.0
Requires PHP: 7.4
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: egis-consulting-theme
Tags: custom-logo, custom-menu
*/

/* ── WP CONFLICT RESET ── */
.wp-site-blocks, .wp-block-group, .wp-block-cover,
.wp-block-columns, .wp-block-column,
.entry-content, .page-content, .post-content,
#primary, #secondary, #content, #main,
.site-content, .content-area {
  all: unset !important;
  display: block !important;
}
img { max-width: 100%; height: auto; }
body { margin: 0 !important; padding: 0 !important; }
body.home { padding-top: 0 !important; }




/* ── EGIS WRAPPER — overrides any WP body flex/grid ── */
body {
  display: block !important;
  flex-direction: unset !important;
  overflow-x: hidden !important;
}
#egis-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  position: relative !important;
}
#egis-wrapper > * {
  float: none !important;
  clear: both !important;
}

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:     #0D1F3C;
  --navy2:    #162d54;
  --slate:    #1E3A5F;
  --gold:     #C9A227;
  --gold-lt:  #E8BE45;
  --white:    #FFFFFF;
  --offwhite: #F7F8FA;
  --gray:     #6B7280;
  --gray-lt:  #E5E7EB;
  --text:     #1F2937;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Open Sans', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── NAV ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,31,60,0.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,162,39,0.2);
  height: 72px; display: flex; align-items: center;
  padding: 0 5%; justify-content: space-between;
}
.site-logo { display: flex; align-items: center; }
.site-logo img,
.site-logo .custom-logo-link img,
.custom-logo-link img.custom-logo { height: 48px !important; width: auto !important; max-width: none !important; }
.site-logo-text { font-family: 'Playfair Display','Georgia',serif; font-size: 1.3rem; font-weight: 700; color: var(--white); }
.site-logo-text span { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a { color: rgba(255,255,255,0.8); font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.site-nav a:hover { color: var(--gold); }
.site-nav .nav-tax {
  color: var(--gold-lt); font-weight: 600;
  border: 1px solid rgba(201,162,39,0.35);
  padding: 0.3rem 0.75rem; border-radius: 4px; font-size: 0.82rem;
  transition: background 0.2s, border-color 0.2s;
}
.site-nav .nav-tax:hover { background: rgba(201,162,39,0.12); border-color: var(--gold); color: var(--gold); }
.site-nav .nav-cta {
  background: var(--gold); color: var(--navy) !important;
  padding: 0.5rem 1.2rem; border-radius: 4px;
  font-weight: 700 !important; transition: background 0.2s;
}
.site-nav .nav-cta:hover { background: var(--gold-lt); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(105deg, rgba(13,31,60,0.92) 0%, rgba(13,31,60,0.88) 45%, rgba(22,45,84,0.65) 70%, rgba(30,58,95,0.45) 100%),
              url('./images/dallas-hero.jpg') center 30% / cover no-repeat;
  display: flex; align-items: center; padding: 0 5%;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23C9A227' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 700px; padding-top: 72px; }
.hero-badge {
  display: inline-block;
  background: rgba(201,162,39,0.15); border: 1px solid rgba(201,162,39,0.4); color: var(--gold);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35rem 1rem; border-radius: 2px; margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Playfair Display','Georgia',serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 700; line-height: 1.15;
  color: var(--white); margin-bottom: 1.25rem;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero > .hero-content > p { font-size: 1.1rem; line-height: 1.75; color: rgba(255,255,255,0.75); margin-bottom: 2rem; max-width: 580px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-num { font-family: 'Playfair Display','Georgia',serif; font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 0.25rem; }

/* ── BUTTONS ── */
.btn-primary { background: var(--gold); color: var(--navy); padding: 0.85rem 2rem; border-radius: 4px; font-weight: 700; font-size: 0.95rem; display: inline-block; transition: background 0.2s, transform 0.15s; }
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); padding: 0.85rem 2rem; border-radius: 4px; font-weight: 600; font-size: 0.95rem; display: inline-block; transition: border-color 0.2s, background 0.2s; }
.btn-outline:hover { border-color: var(--gold); background: rgba(201,162,39,0.08); }
.btn-outline-navy { border: 1.5px solid var(--navy); color: var(--navy); padding: 0.7rem 1.8rem; border-radius: 4px; font-weight: 600; font-size: 0.875rem; display: inline-block; transition: background 0.2s, color 0.2s; }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-outline-dark { border: 1.5px solid var(--gray-lt); color: var(--navy); padding: 0.7rem 1.5rem; border-radius: 4px; font-weight: 600; font-size: 0.875rem; display: inline-block; transition: border-color 0.2s; }
.btn-outline-dark:hover { border-color: var(--navy); }

/* ── TRUST BAR ── */
.trust-bar { background: var(--offwhite); border-bottom: 1px solid var(--gray-lt); padding: 1.1rem 5%; display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; font-weight: 500; color: var(--slate); }
.trust-icon { color: var(--gold); }

/* ── SECTION COMMONS ── */
section { padding: 5rem 5%; }
.section-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.section-title { font-family: 'Playfair Display','Georgia',serif; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 1rem; }
.section-sub { font-size: 1.05rem; color: var(--gray); line-height: 1.7; max-width: 580px; }

/* ── VALUE PROPS ── */
.value-section { background: var(--white); }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 3.5rem; }
.value-cards { display: flex; flex-direction: column; gap: 1.2rem; }
.value-card { background: var(--offwhite); border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; padding: 1.2rem 1.5rem; }
.value-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.value-card p { font-size: 0.875rem; color: var(--gray); line-height: 1.6; }

/* ── TAX SISTER BAND ── */
.tax-band {
  background: linear-gradient(90deg, var(--navy2) 0%, var(--slate) 100%);
  padding: 2rem 5%; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.tax-band-text h3 { font-family: 'Playfair Display','Georgia',serif; font-size: 1.2rem; color: var(--white); margin-bottom: 0.3rem; }
.tax-band-text p { font-size: 0.875rem; color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.tax-future-tag { color: var(--gold); font-size: 0.72rem; border: 1px solid rgba(201,162,39,0.4); border-radius: 3px; padding: 0.1rem 0.45rem; font-weight: 700; letter-spacing: 0.05em; }
.tax-band-cta { background: var(--gold); color: var(--navy); padding: 0.7rem 1.6rem; border-radius: 4px; font-weight: 700; font-size: 0.875rem; white-space: nowrap; transition: background 0.2s; }
.tax-band-cta:hover { background: var(--gold-lt); }

/* ── WHO NEEDS ── */
.who-section,
.projects-section { background: var(--navy); }
.who-section .section-title,
.projects-section .section-title { color: var(--white); }
.who-section .section-sub,
.projects-section .section-sub { color: rgba(255,255,255,0.6); }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.who-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(201,162,39,0.18); border-radius: 8px; padding: 1.75rem 1.5rem; transition: background 0.2s, border-color 0.2s; }
.who-card:hover { background: rgba(201,162,39,0.07); border-color: rgba(201,162,39,0.45); }
.who-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.who-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 0.4rem; }
.who-card p { font-size: 0.84rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ── SERVICES ── */
.services-section { background: var(--offwhite); }
.services-intro { max-width: 580px; margin-bottom: 3rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.pricing-card { background: var(--white); border-radius: 10px; border: 1px solid var(--gray-lt); padding: 2rem 1.75rem; position: relative; transition: box-shadow 0.2s, transform 0.2s; }
.pricing-card:hover { box-shadow: 0 8px 30px rgba(13,31,60,0.1); transform: translateY(-2px); }
.pricing-card.featured { border-color: var(--gold); box-shadow: 0 4px 20px rgba(201,162,39,0.15); }
.featured-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--navy); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.28rem 0.85rem; border-radius: 20px; white-space: nowrap; }
.card-tier { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.card-name { font-family: 'Playfair Display','Georgia',serif; font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 0.2rem; }
.card-subtitle { font-size: 0.78rem; color: var(--gray); margin-bottom: 1.25rem; font-style: italic; }
.card-price { margin-bottom: 1.5rem; }
.price-amount { font-family: 'Playfair Display','Georgia',serif; font-size: 2.1rem; font-weight: 700; color: var(--navy); }
.price-suffix { font-size: 0.8rem; color: var(--gray); }
.card-features { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.75rem; border-top: 1px solid var(--gray-lt); padding-top: 1.2rem; }
.card-features li { font-size: 0.84rem; color: var(--text); display: flex; gap: 0.55rem; align-items: flex-start; line-height: 1.5; }
.card-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.card-cta { display: block; text-align: center; background: var(--navy); color: var(--white); padding: 0.75rem; border-radius: 5px; font-weight: 600; font-size: 0.875rem; transition: background 0.2s; }
.card-cta:hover { background: var(--slate); }
.pricing-card.featured .card-cta { background: var(--gold); color: var(--navy); }
.pricing-card.featured .card-cta:hover { background: var(--gold-lt); }

/* ── FOUNDER ── */
.founder-section { background: var(--white); }
.founder-grid { display: grid; grid-template-columns: 0.75fr 1.7fr; gap: 4rem; align-items: center; margin-top: 3rem; }
.founder-img-wrap { background: linear-gradient(135deg, var(--navy), var(--slate)); border-radius: 12px; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; max-width: 100%; }
.founder-initials { font-family: 'Playfair Display','Georgia',serif; font-size: 5rem; font-weight: 700; color: rgba(201,162,39,0.25); }
.founder-img-badge { position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; background: rgba(201,162,39,0.95); border-radius: 6px; padding: 0.75rem 1rem; color: var(--navy); font-weight: 700; font-size: 0.85rem; line-height: 1.4; }
.founder-img-badge span { font-weight: 500; font-size: 0.78rem; opacity: 0.85; }
.founder-credentials { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.credential { background: var(--offwhite); border: 1px solid var(--gray-lt); border-radius: 4px; padding: 0.3rem 0.7rem; font-size: 0.78rem; font-weight: 600; color: var(--slate); }
.founder-bio { font-size: 0.975rem; line-height: 1.78; color: var(--gray); margin-bottom: 1.25rem; }
.founder-bio strong { color: var(--navy); }
.founder-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── BLOG ── */
.blog-section { background: var(--offwhite); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.blog-card { background: var(--white); border-radius: 8px; border: 1px solid var(--gray-lt); padding: 1.75rem; transition: box-shadow 0.2s; }
.blog-card:hover { box-shadow: 0 4px 18px rgba(13,31,60,0.09); }
.blog-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.blog-card h3 { font-size: 0.975rem; font-weight: 600; color: var(--navy); line-height: 1.4; margin-bottom: 0.5rem; }
.blog-card p { font-size: 0.84rem; color: var(--gray); line-height: 1.6; }
.blog-date { font-size: 0.78rem; color: var(--gray); margin-top: 0.75rem; }
.blog-all { text-align: center; margin-top: 2.5rem; }

/* ── CTA ── */
.cta-section { background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%); padding: 5rem 5%; text-align: center; }
.cta-section h2 { font-family: 'Playfair Display','Georgia',serif; font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 520px; margin: 0 auto 2rem; line-height: 1.7; }
.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.site-footer { background: #070F1E; color: rgba(255,255,255,0.5); padding: 3rem 5% 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-logo img { height: 42px; width: auto; margin-bottom: 0.75rem; }
.footer-logo-text { font-family: 'Playfair Display','Georgia',serif; font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; display: block; }
.footer-logo-text span { color: var(--gold); }
.footer-brand p { font-size: 0.84rem; line-height: 1.65; max-width: 300px; }
.site-footer h4 { color: var(--white); font-size: 0.78rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.84rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-links .tax-link { color: var(--gold-lt); }
.footer-contact { font-size: 0.84rem; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; flex-wrap: wrap; gap: 1rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .value-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-img-wrap { aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-nav a:not(.nav-cta):not(.nav-tax) { display: none; }
  .trust-bar { gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .tax-band { flex-direction: column; text-align: center; }
}

/* ── INSIGHTS ARCHIVE (home.php) ── */
.insights-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  padding: 8rem 5% 4rem;
  margin-top: 72px;
}
.insights-archive { background: var(--offwhite); padding: 4rem 5%; }
.insights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.blog-card-full { background: var(--white); border-radius: 10px; border: 1px solid var(--gray-lt); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.blog-card-full:hover { box-shadow: 0 6px 24px rgba(13,31,60,0.1); transform: translateY(-2px); }
.blog-card-img { height: 200px; overflow: hidden; background: var(--gray-lt); }
.blog-card-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-title { font-family: 'Playfair Display','Georgia',serif; font-size: 1.2rem; font-weight: 700; color: var(--navy); line-height: 1.35; margin: 0.5rem 0 0.75rem; }
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--gold); }
.blog-card-excerpt { font-size: 0.9rem; color: var(--gray); line-height: 1.65; flex: 1; margin-bottom: 1.25rem; }
.blog-card-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--gray-lt); padding-top: 1rem; }
.blog-read-more { font-size: 0.84rem; font-weight: 600; color: var(--gold); text-decoration: none; transition: color 0.2s; }
.blog-read-more:hover { color: var(--navy); }
.insights-pagination { text-align: center; margin-top: 3rem; display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.insights-pagination a, .insights-pagination span { padding: 0.5rem 1rem; border-radius: 4px; border: 1px solid var(--gray-lt); font-size: 0.875rem; color: var(--navy); text-decoration: none; }
.insights-pagination .current { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 700; }

/* ── PAGE TEMPLATE (page.php) ── */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%); padding: 7rem 5% 3rem; margin-top: 72px; }
.page-hero-inner { max-width: 900px; margin: 0 auto; }
.page-title { font-family: 'Playfair Display','Georgia',serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--white); margin: 0; }
.page-body { background: var(--white); padding: 3.5rem 5%; }
.page-body-inner { max-width: 900px; margin: 0 auto; }
.page-content { font-size: 1rem; line-height: 1.8; color: var(--text); }
.page-content h2 { font-family: 'Playfair Display','Georgia',serif; font-size: 1.6rem; color: var(--navy); margin: 2rem 0 0.75rem; }
.page-content h3 { font-size: 1.15rem; font-weight: 600; color: var(--navy); margin: 1.5rem 0 0.5rem; }
.page-content p { margin-bottom: 1.25rem; }
.page-content a { color: var(--gold); font-weight: 500; }
.page-content a:hover { color: var(--navy); }
.page-content ul, .page-content ol { margin: 0 0 1.25rem 1.5rem; }
.page-content li { margin-bottom: 0.4rem; }
