/* ============================================================
   Texas Tax Consulting Group — Global Stylesheet
   Hand-written Vanilla CSS. Premium finance: navy + gold.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --primary: #0B2545;
  --primary-2: #13315C;
  --accent: #1B6CA8;
  --gold: #C9A227;
  --gold-2: #E0C56E;
  --bg: #0B1B30;
  --surface: #FFFFFF;
  --surface-2: #F5F7FA;
  --text: #0F172A;
  --text-invert: #E8EEF6;
  --muted: #475569;
  --border: #E2E8F0;

  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 2px 6px rgba(11, 37, 69, .08);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, .12), 0 2px 8px rgba(11, 37, 69, .08);
  --shadow-lg: 0 24px 60px rgba(11, 37, 69, .22), 0 8px 24px rgba(11, 37, 69, .14);
  --shadow-gold: 0 10px 30px rgba(201, 162, 39, .28);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1240px;
  --header-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; color: var(--primary); letter-spacing: -.01em; }
p { color: var(--muted); }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 9999;
  background: var(--gold); color: var(--primary); padding: 12px 18px; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.bg-surface-2 { background: var(--surface-2); }
.bg-navy { background: var(--primary); color: var(--text-invert); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy p { color: var(--text-invert); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.bg-navy .eyebrow { color: var(--gold-2); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem); position: relative; padding-bottom: 18px; margin-bottom: 16px;
}
.section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 3px;
}
.section-head.center h2::after { left: 50%; transform: translateX(-50%); }
.section-head p { font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: 14px 26px; border-radius: 50px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform; line-height: 1.1; text-align: center;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--primary); box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(201,162,39,.42); }
.btn-navy { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.btn-navy:hover { transform: translateY(-3px); background: var(--primary-2); }
.btn-ghost { background: transparent; color: #fff; border: 1.6px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-3px); }
.btn-outline { background: #fff; color: var(--primary); border: 1.6px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--bg); color: var(--text-invert); font-size: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--text-invert); transition: color .2s; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--gold-2); }
.topbar svg { width: 15px; height: 15px; }
.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-loc { color: var(--gold-2); font-weight: 600; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a svg { width: 17px; height: 17px; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
  transition: box-shadow .3s, background .3s;
}
.header.scrolled { box-shadow: var(--shadow-md); background: rgba(255,255,255,.97); }
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 18px; }

/* Wordmark */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .b1 { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; color: var(--primary); letter-spacing: .02em; }
.brand-text .b2 { font-family: var(--font-head); font-weight: 700; font-size: .64rem; letter-spacing: .26em; color: var(--gold); text-transform: uppercase; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: .96rem; color: var(--primary);
  padding: 9px 14px; border-radius: 8px; position: relative; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--accent); }

.header-cta { display: flex; align-items: center; gap: 12px; }

/* Hamburger */
.hamburger { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--border); position: relative; background: #fff; }
.hamburger span { position: absolute; left: 12px; right: 12px; height: 2.4px; background: var(--primary); border-radius: 3px; transition: transform .3s, opacity .3s; }
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 22px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-bg {
  position: absolute; inset: -8% 0 0 0; height: 116%; z-index: 0; will-change: transform;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, rgba(11,27,48,.95) 0%, rgba(11,37,69,.88) 45%, rgba(19,49,92,.72) 100%);
}
.hero-overlay::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201,162,39,.18), transparent 45%);
}
.hero .container { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; }
.hero-inner { max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 4rem); margin-bottom: 22px; }
.hero h1 .hl { color: var(--gold-2); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--text-invert); max-width: 620px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.15); }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--text-invert); }
.hero-badge svg { width: 22px; height: 22px; color: var(--gold-2); flex: none; }

/* floating accent */
.float-accent { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; z-index: 1; }
.fa-1 { width: 120px; height: 120px; right: 8%; top: 22%; background: radial-gradient(circle, rgba(201,162,39,.5), transparent 70%); animation: floaty 9s ease-in-out infinite; }
.fa-2 { width: 80px; height: 80px; right: 28%; bottom: 18%; background: radial-gradient(circle, rgba(27,108,168,.5), transparent 70%); animation: floaty 11s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-26px) } }

/* ---------- Stat Strip (glass counters) ---------- */
.stat-strip { background: var(--primary-2); position: relative; z-index: 5; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card {
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md); transition: transform .35s var(--ease);
}
.stat-card:hover { transform: translateY(-6px); }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold-2); line-height: 1; }
.stat-num .suffix { color: #fff; }
.stat-label { margin-top: 10px; color: var(--text-invert); font-size: .95rem; font-weight: 500; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(145deg, var(--primary), var(--primary-2)); color: var(--gold-2); box-shadow: var(--shadow-md);
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.card p { font-size: .98rem; margin-bottom: 18px; }
.card-link { font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: .95rem; display: inline-flex; align-items: center; gap: 7px; }
.card-link svg { width: 16px; height: 16px; transition: transform .25s; }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Why-us / split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split-img { position: relative; }
.split-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; height: 100%; object-fit: cover; }
.split-img .badge-float {
  position: absolute; bottom: -22px; left: -22px; background: var(--primary); color: #fff;
  padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 220px;
  border-left: 4px solid var(--gold);
}
.split-img .badge-float .bf-num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--gold-2); }
.split-img .badge-float .bf-txt { font-size: .85rem; color: var(--text-invert); }

.feature-list { display: grid; gap: 18px; margin-top: 24px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item .fi-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--surface-2); color: var(--gold); border: 1px solid var(--border);
}
.feature-item .fi-icon svg { width: 22px; height: 22px; }
.feature-item h4 { font-size: 1.08rem; margin-bottom: 4px; }
.feature-item p { font-size: .95rem; margin: 0; }

/* ---------- Industries grid ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ind-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 190px;
  display: flex; align-items: flex-end; box-shadow: var(--shadow-md); color: #fff;
  transition: transform .4s var(--ease);
}
.ind-card:hover { transform: translateY(-6px) scale(1.012); }
.ind-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .6s var(--ease); }
.ind-card:hover img { transform: scale(1.08); }
.ind-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,37,69,.92), rgba(11,37,69,.2) 60%, transparent); z-index: 1; }
.ind-card span { position: relative; z-index: 2; padding: 20px; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; }

/* ---------- Reviews ---------- */
.review-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.review-tab {
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; padding: 10px 18px; border-radius: 50px;
  border: 1.4px solid var(--border); color: var(--primary); background: #fff; transition: all .25s;
}
.review-tab:hover { border-color: var(--gold); }
.review-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stars { display: flex; gap: 3px; margin-bottom: 14px; color: var(--gold); }
.stars svg { width: 19px; height: 19px; }
.review-card blockquote { font-size: 1rem; color: var(--text); line-height: 1.7; margin-bottom: 20px; flex: 1; }
.review-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
.review-author .ra-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--primary), var(--accent)); color: var(--gold-2);
  font-family: var(--font-head); font-weight: 800;
}
.review-author .ra-name { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--primary); }
.review-author .ra-role { font-size: .82rem; color: var(--muted); }
.review-cat-tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
#reviews-note { text-align: center; margin-top: 26px; font-size: .85rem; color: var(--muted); font-style: italic; }

/* ---------- Process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 36px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); z-index: 0; }
.tl-step { position: relative; z-index: 1; text-align: center; }
.tl-num {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center;
  background: var(--primary); color: var(--gold-2); font-family: var(--font-head); font-weight: 800; font-size: 1.6rem;
  border: 3px solid var(--gold); box-shadow: var(--shadow-md);
}
.tl-step h4 { font-size: 1.25rem; margin-bottom: 10px; }
.tl-step p { font-size: .97rem; }

/* ---------- Service area list ---------- */
.area-list { display: flex; flex-wrap: wrap; gap: 14px; }
.area-chip {
  background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: 10px; padding: 14px 20px; font-family: var(--font-head); font-weight: 600;
  color: var(--primary); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; display: flex; align-items: center; gap: 10px;
}
.area-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.area-chip svg { width: 18px; height: 18px; color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--primary), var(--primary-2)); color: #fff; border-radius: 0; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(201,162,39,.25), transparent 70%); }
.cta-band .container { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta-band p { color: var(--text-invert); font-size: 1.1rem; max-width: 620px; margin: 0 auto 30px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--primary); margin-bottom: 7px; }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: var(--font-body); font-size: 1rem; color: var(--text); background: var(--surface-2); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(27,108,168,.12); outline: none; }
.field .error-msg { color: #c0392b; font-size: .82rem; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.field.invalid .error-msg { display: block; }
.form-success {
  display: none; text-align: center; padding: 30px; background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: var(--radius); color: #065F46;
}
.form-success.show { display: block; }
.form-success svg { width: 52px; height: 52px; color: #059669; margin: 0 auto 14px; }
.form-success h3 { color: #065F46; margin-bottom: 8px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- Mini consult form (home) ---------- */
.consult-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.consult-list { display: grid; gap: 16px; margin-top: 24px; }
.consult-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-invert); }
.consult-list svg { width: 22px; height: 22px; color: var(--gold-2); flex: none; margin-top: 2px; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; color: var(--primary);
}
.faq-q .faq-ico { width: 26px; height: 26px; flex: none; position: relative; transition: transform .3s; }
.faq-q .faq-ico::before, .faq-q .faq-ico::after { content: ""; position: absolute; background: var(--gold); border-radius: 2px; }
.faq-q .faq-ico::before { width: 14px; height: 2.4px; top: 12px; left: 6px; }
.faq-q .faq-ico::after { width: 2.4px; height: 14px; top: 6px; left: 12px; transition: transform .3s; }
.faq-item.open .faq-q .faq-ico::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Service detail rows ---------- */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--border); }
.svc-row:nth-child(even) .svc-media { order: -1; }
.svc-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.svc-content .card-icon { margin-bottom: 18px; }
.svc-content h3 { font-size: 1.7rem; margin-bottom: 14px; }
.svc-content p { font-size: 1.02rem; margin-bottom: 14px; }
.svc-tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

/* ---------- Team cards ---------- */
.team-card { text-align: center; }
.team-card .tc-photo { width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow-md); margin-bottom: 18px; }
.team-card h4 { font-size: 1.18rem; margin-bottom: 4px; }
.team-card .tc-role { color: var(--accent); font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.team-card p { font-size: .92rem; }

/* ---------- Values ---------- */
.value-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform .3s; }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value-card .v-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--gold); margin-bottom: 16px; }
.value-card .v-ico svg { width: 26px; height: 26px; }
.value-card h4 { font-size: 1.15rem; margin-bottom: 8px; }
.value-card p { font-size: .94rem; }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; color: #fff; padding: 76px 0 64px; overflow: hidden; background: linear-gradient(120deg, var(--primary), var(--primary-2)); }
.page-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(201,162,39,.22), transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 14px; }
.page-hero p { color: var(--text-invert); font-size: 1.12rem; max-width: 640px; }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: var(--gold-2); margin-bottom: 18px; align-items: center; }
.breadcrumb a { color: var(--text-invert); }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb span { opacity: .6; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-md);
  aspect-ratio: 4/3; transition: transform .4s var(--ease);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover { transform: translateY(-5px); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gi-overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,37,69,.85), transparent 55%);
  display: flex; align-items: flex-end; padding: 18px; opacity: 0; transition: opacity .3s; color: #fff;
  font-family: var(--font-head); font-weight: 700;
}
.gallery-item:hover .gi-overlay { opacity: 1; }
.gallery-item.hide { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(8,18,33,.94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 22px; right: 26px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; }
.lightbox-close:hover { background: var(--gold); color: var(--primary); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; display: grid; place-items: center; }
.lightbox-nav:hover { background: var(--gold); color: var(--primary); }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
.lightbox-cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: var(--text-invert); font-family: var(--font-head); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.office-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 22px; border-top: 4px solid var(--gold); }
.office-card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.office-line { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; font-size: .98rem; color: var(--text); }
.office-line svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.office-line a:hover { color: var(--accent); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); margin-top: 26px; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); color: var(--text-invert); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer p, .footer a, .footer li { color: var(--text-invert); font-size: .94rem; }
.footer a:hover { color: var(--gold-2); }
.footer-brand .brand-text .b1 { color: #fff; }
.footer-links { display: grid; gap: 11px; }
.footer-nap { display: grid; gap: 14px; }
.footer-nap .fn-block { display: flex; gap: 11px; align-items: flex-start; }
.footer-nap svg { width: 18px; height: 18px; color: var(--gold-2); flex: none; margin-top: 3px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .25s, transform .25s; }
.footer-social a:hover { background: var(--gold); transform: translateY(-3px); }
.footer-social a:hover svg { color: var(--primary); }
.footer-social svg { width: 19px; height: 19px; color: var(--text-invert); }
.footer-bottom { padding: 22px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .86rem; }
.footer-bottom .credit { color: var(--gold-2); font-weight: 600; }

/* ---------- Mobile bottom bar ---------- */
.mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1500; background: var(--primary); box-shadow: 0 -6px 22px rgba(0,0,0,.25); }
.mobile-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 56px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .98rem; }
.mobile-bar a svg { width: 22px; height: 22px; }
.mobile-bar .mb-call { background: var(--accent); }
.mobile-bar .mb-wa { background: #25D366; color: #063b22; }

/* ---------- Image fallback ---------- */
.img-fallback { background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important; position: relative; }
.img-fallback::after { content: "Texas Tax Consulting Group"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-2); font-family: var(--font-head); font-weight: 700; font-size: .85rem; text-align: center; padding: 12px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .4s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3, .ind-grid, .review-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav, .header-cta .btn { display: none; }
  .hamburger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 22px; gap: 6px; transform: translateX(100%);
    transition: transform .35s var(--ease); box-shadow: var(--shadow-lg); overflow-y: auto; z-index: 1001;
  }
  .nav.open { transform: translateX(0); display: flex; }
  .nav a { padding: 15px 12px; font-size: 1.1rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav a::after { display: none; }
  .nav .btn { display: inline-flex; margin-top: 14px; }
  .split, .consult-wrap, .contact-grid, .svc-row { grid-template-columns: 1fr; gap: 36px; }
  .svc-row:nth-child(even) .svc-media { order: 0; }
  .timeline { grid-template-columns: 1fr; gap: 38px; }
  .timeline::before { display: none; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 56px; }
  .split-img .badge-float { position: static; margin-top: 18px; max-width: none; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .grid-3, .grid-2, .ind-grid, .review-grid, .gallery-grid, .stat-grid, .form-row { grid-template-columns: 1fr; }
  .topbar-left { gap: 14px; font-size: .8rem; }
  .topbar-loc { display: none; }
  .form-card { padding: 26px 20px; }
  .hero { min-height: 86vh; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { transform: none !important; }
}
