/*
Theme Name: EGIS Tax and Advisory
Theme URI: https://www.egistax.com
Author: EGIS Tax and Advisory
Description: Custom theme for EGIS Tax and Advisory — CPA & Tax Strategy, McKinney TX.
Version: 1.0.0
License: Private
Text Domain: egistax
*/

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

:root {
  --navy:       #1a2744;
  --navy-light: #243257;
  --green:      #2a6e4e;
  --green-hover:#235e42;
  --green-light:#e8f4ef;
  --gray-bg:    #f5f6f8;
  --gray-mid:   #e4e6ea;
  --text:       #1c1f26;
  --muted:      #5a6070;
  --white:      #ffffff;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; border-radius: 6px; }

/* ── SKIP LINK ── */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 0; top: 0; z-index: 9999; background: var(--green); color: #fff; padding: .5rem 1rem; }

/* ── HEADER / NAV ── */
#site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: .85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.site-branding a { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.site-name { font-size: 1.25rem; font-weight: 700; color: var(--white); letter-spacing: -.3px; }
.site-tagline { font-size: .78rem; color: rgba(255,255,255,.7); }

/* WordPress nav menu */
#primary-nav { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; }
#primary-nav ul { list-style: none; display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; }
#primary-nav ul li a {
  color: rgba(255,255,255,.85); font-size: .9rem; padding: .45rem .75rem;
  border-radius: 4px; transition: background .15s; display: block;
}
#primary-nav ul li a:hover,
#primary-nav ul li.current-menu-item > a,
#primary-nav ul li.current_page_item > a { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.nav-book-btn {
  background: var(--green); color: #fff !important; padding: .45rem 1.1rem !important;
  border-radius: 20px; font-weight: 600; margin-left: .5rem;
}
.nav-book-btn:hover { background: var(--green-hover) !important; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; font-weight: 600; padding: .75rem 1.6rem;
  border-radius: 4px; transition: all .15s; cursor: pointer; text-align: center; text-decoration: none;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); text-decoration: none; color: #fff; }
.btn-outline-dark { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline-dark:hover { background: var(--green); color: #fff; text-decoration: none; }
button.btn-primary { border: none; font-size: 1rem; font-family: var(--font); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0e3b2c 100%);
  color: var(--white); text-align: center; padding: 5rem 1.5rem 4rem;
}
.hero-label { font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: .75rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; max-width: 780px; margin: 0 auto 1.25rem; }
.hero h1 em { font-style: normal; color: #6fdc9e; }
.hero p { font-size: 1.1rem; max-width: 620px; margin: 0 auto 2rem; color: rgba(255,255,255,.8); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #0e3b2c 100%); color: #fff; padding: 3.5rem 1.5rem 3rem; text-align: center; }
.page-hero .hero-label { font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: .5rem; }
.page-hero h1 { font-size: clamp(1.8rem,4vw,2.75rem); font-weight: 800; color: #fff; margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ── TRUST / CREDENTIAL BAR ── */
.trust-bar { background: var(--navy-light); color: rgba(255,255,255,.75); padding: .85rem 1.5rem; text-align: center; font-size: .82rem; }
.trust-bar ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 2rem; }
.trust-bar li::before { content: "✓ "; color: #6fdc9e; font-weight: 700; }
.cred-bar { background: var(--gray-bg); border-bottom: 1px solid var(--gray-mid); padding: .9rem 1.5rem; text-align: center; }
.cred-bar-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; font-size: .82rem; color: var(--muted); }

/* ── SECTIONS ── */
section.wp-section { padding: 4rem 1.5rem; }
section.wp-section.bg-light { background: var(--gray-bg); }
section.wp-section.bg-navy { background: var(--navy); color: #fff; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--green); font-weight: 600; margin-bottom: .5rem; }
.bg-navy .section-label { color: #6fdc9e; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.section-title em { font-style: normal; color: var(--green); }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 640px; }
.bg-navy .section-title { color: #fff; }
.bg-navy .section-sub { color: rgba(255,255,255,.75); }

/* ── CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.card { background: var(--white); border: 1px solid var(--gray-mid); border-radius: 8px; padding: 1.75rem; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card a { display: inline-block; margin-top: 1rem; font-size: .9rem; font-weight: 600; color: var(--green); }

/* ── TWO COLUMN ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

/* ── BADGES ── */
.badge-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.badge { background: var(--green-light); color: var(--green); font-size: .8rem; font-weight: 600; padding: .35rem .8rem; border-radius: 20px; }
.badge-dark { background: rgba(255,255,255,.15); color: #fff; }

/* ── TESTIMONIALS ── */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
blockquote.testimonial { background: var(--white); border: 1px solid var(--gray-mid); border-left: 4px solid var(--green); border-radius: 6px; padding: 1.5rem; }
blockquote.testimonial p { font-size: .97rem; color: var(--text); font-style: italic; margin-bottom: .75rem; }
blockquote.testimonial cite { font-size: .82rem; color: var(--muted); font-style: normal; }

/* ── CTA BAND ── */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, #0e3b2c 100%); color: #fff; text-align: center; padding: 4rem 1.5rem; }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 1.75rem; font-size: 1.05rem; }
.cta-band .tel { display: block; margin-top: 1rem; color: rgba(255,255,255,.65); font-size: .95rem; }
.cta-band .tel a { color: rgba(255,255,255,.85); }

/* ── CREDENTIALS GRID ── */
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.cred-item { background: var(--gray-bg); border-radius: 6px; padding: .75rem 1rem; font-size: .88rem; font-weight: 600; color: var(--text); }

/* ── PROCESS STEPS ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.step { background: var(--white); border: 1px solid var(--gray-mid); border-radius: 8px; padding: 1.75rem; }
.step-num { width: 40px; height: 40px; background: var(--green); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem; }

/* ── SERVICE BLOCKS ── */
.service-block { padding: 3.5rem 1.5rem; }
.service-block:nth-of-type(even) { background: var(--gray-bg); }
.service-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 700px) { .service-inner { grid-template-columns: 1fr; } }
.service-tag { font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--green); font-weight: 600; margin-bottom: .5rem; }
.service-block h2 { font-size: clamp(1.4rem,3vw,2rem); font-weight: 800; margin-bottom: .75rem; }
.service-for { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.service-block ul { padding-left: 1.25rem; margin: .75rem 0 1.25rem; }
.service-block ul li { margin-bottom: .4rem; font-size: .95rem; }
.service-note { background: var(--green-light); border-left: 3px solid var(--green); padding: .75rem 1rem; border-radius: 4px; font-size: .9rem; margin-bottom: 1.25rem; }

/* ── ABOUT HERO ── */
.about-hero { background: linear-gradient(135deg, var(--navy) 0%, #0e3b2c 100%); color: #fff; padding: 4.5rem 1.5rem 3.5rem; }
.about-hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 700px) { .about-hero-inner { grid-template-columns: 1fr; } }
.about-hero h1 { font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; color: #fff; margin-bottom: .75rem; }
.about-photo-placeholder { background: rgba(255,255,255,.1); border-radius: 8px; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: .9rem; text-align: center; padding: 2rem; }

/* ── EDUCATION ── */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.edu-item { background: var(--gray-bg); border-radius: 8px; padding: 1.25rem 1.5rem; border-top: 3px solid var(--green); }
.edu-label { font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); font-weight: 600; margin-bottom: .5rem; }
.edu-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.edu-item p { color: var(--muted); font-size: .88rem; }

/* ── BLOG ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; margin-top: 2rem; }
.post-card { background: var(--white); border: 1px solid var(--gray-mid); border-radius: 8px; overflow: hidden; }
.post-card .post-thumb img { width: 100%; height: 200px; object-fit: cover; border-radius: 0; }
.post-body { padding: 1.5rem; }
.post-tag { font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); font-weight: 600; margin-bottom: .5rem; }
.post-body h2, .post-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.3; }
.post-body h2 a, .post-body h3 a { color: var(--text); }
.post-body h2 a:hover, .post-body h3 a:hover { color: var(--green); text-decoration: none; }
.post-meta { font-size: .8rem; color: var(--muted); margin-bottom: .75rem; }
.post-excerpt { color: var(--muted); font-size: .9rem; margin-bottom: .75rem; }
.read-more { font-size: .88rem; font-weight: 600; color: var(--green); }
.no-posts { color: var(--muted); }

/* Single post */
.single-post-wrap { max-width: 760px; margin: 4rem auto; padding: 0 1.5rem; }
.single-post-wrap h1 { font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 800; margin-bottom: 1rem; }
.single-post-wrap .post-meta { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gray-mid); }
.single-post-wrap .entry-content p { margin-bottom: 1.25rem; }
.single-post-wrap .entry-content h2,
.single-post-wrap .entry-content h3 { font-weight: 700; margin: 1.75rem 0 .75rem; }
.back-to-blog { display: inline-block; margin-top: 2rem; font-size: .9rem; font-weight: 600; color: var(--green); }

/* ── SUBSCRIBE BOX ── */
.subscribe-box { background: var(--navy); color: #fff; border-radius: 8px; padding: 2.5rem; text-align: center; margin-top: 3rem; }
.subscribe-box h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.subscribe-box p { color: rgba(255,255,255,.75); margin-bottom: 1.25rem; font-size: .95rem; }
.subscribe-row { display: flex; gap: .75rem; max-width: 440px; margin: 0 auto; }
.subscribe-row input { flex: 1; padding: .65rem 1rem; border: none; border-radius: 4px; font-size: .95rem; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-top: 2rem; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .35rem; }
.form-group input,
.form-group select,
.form-group textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%; padding: .65rem .85rem; border: 1px solid var(--gray-mid);
  border-radius: 4px; font-size: .95rem; font-family: var(--font); background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(42,110,78,.12); }
.form-group textarea { resize: vertical; min-height: 120px; }
.wpcf7-submit, .wpforms-submit { background: var(--green); color: #fff; border: none; padding: .75rem 1.6rem; border-radius: 4px; font-size: .95rem; font-weight: 600; cursor: pointer; width: 100%; font-family: var(--font); }
.wpcf7-submit:hover, .wpforms-submit:hover { background: var(--green-hover); }
.contact-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.contact-detail { margin-bottom: 1.25rem; }
.contact-detail strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: .2rem; }
.book-direct-box { background: var(--gray-bg); border-radius: 8px; padding: 1.5rem; margin-top: 1.5rem; }
.book-direct-box p { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }

/* ── FAQ ── */
.faq-section { margin-top: 4rem; }
.faq-list { margin-top: 1.5rem; }
.faq-item { border-bottom: 1px solid var(--gray-mid); padding: 1.25rem 0; }
.faq-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.faq-item p { color: var(--muted); font-size: .95rem; }

/* ── QUOTE PULLOUT ── */
.pullquote { background: none; border: none; border-left: 3px solid var(--green); padding: .75rem 1rem; margin: 1rem 0; }
.pullquote p { font-style: italic; color: var(--text); margin-bottom: .35rem; }
.pullquote cite { font-style: normal; font-size: .85rem; color: var(--muted); }

/* ── FOOTER ── */
#site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 3rem 1.5rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand .site-name { color: #fff; }
.footer-brand p { font-size: .88rem; margin-top: .5rem; max-width: 220px; }
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social a { color: rgba(255,255,255,.6); font-size: .85rem; }
.footer-social a:hover { color: #fff; text-decoration: none; }
#site-footer h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: .85rem; }
#site-footer ul { list-style: none; }
#site-footer ul li { margin-bottom: .45rem; }
#site-footer ul li a { color: rgba(255,255,255,.65); font-size: .88rem; }
#site-footer ul li a:hover { color: #fff; text-decoration: none; }
.footer-contact p, .footer-contact a { font-size: .88rem; color: rgba(255,255,255,.65); margin-bottom: .35rem; display: block; }
.footer-contact a:hover { color: #fff; }
.footer-bottom-bar { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-bottom-bar p, .footer-bottom-bar a { font-size: .8rem; color: rgba(255,255,255,.45); }
.footer-bottom-bar a:hover { color: rgba(255,255,255,.8); }
.footer-bottom-links { display: flex; gap: 1rem; }
.footer-legal { max-width: 1200px; margin: .75rem auto 0; font-size: .75rem; color: rgba(255,255,255,.35); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  section.wp-section { padding: 2.5rem 1rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .service-block { padding: 2.5rem 1rem; }
}
