/* ==========================================================================
   Taxfra Consultant Pages - Scoped Google-Inspired Design System
   Safe to load alongside style.min.v7.css and Bootstrap
   ========================================================================== */

.tf-modern {
  --g-blue: #1a73e8;
  --g-blue-dark: #1557b0;
  --g-blue-bg: #e8f0fe;
  --g-blue-tint: #f8faff;
  --g-green: #1e8e3e;
  --g-green-dark: #137333;
  --g-ink: #202124;
  --g-ink-secondary: #4d5156;
  --g-surface: #ffffff;
  --g-surface-subtle: #f8f9fa;
  --g-border: #dadce0;
  --g-border-light: #e8eaed;
  --g-amber-bg: #fef7e0;
  --g-amber-border: #f9ab00;
  --g-amber-ink: #7a4f01;
  --g-radius-sm: 8px;
  --g-radius-md: 12px;
  --g-radius-lg: 16px;
  --g-shadow-card: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  --g-shadow-hover: 0 4px 10px 0 rgba(60, 64, 67, 0.18);

  font-family: "Google Sans", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--g-ink);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  padding-bottom: 16px;
}

.tf-modern * {
  box-sizing: border-box;
}

/* Heading Scale */
.tf-modern h1 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--g-blue);
  margin: 0 0 12px 0;
}

.tf-modern h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--g-blue);
  margin: 34px 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--g-border);
}

.tf-modern h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--g-blue);
  margin: 0 0 8px 0;
}

.tf-modern h4 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--g-blue);
  margin: 0 0 6px 0;
}

.tf-modern p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--g-ink-secondary);
  margin: 0 0 14px 0;
}

.tf-modern p strong,
.tf-modern p b {
  color: var(--g-ink);
  font-weight: 500;
}

/* Top Square Image Strip (Always 4 in 1 Line) */
.tf-modern .tf-gallery {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
  width: 100% !important;
}

.tf-modern .tf-gallery img {
  width: 100% !important;
  min-width: 0 !important;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: var(--g-radius-md);
  border: 1px solid var(--g-border);
  background: var(--g-surface-subtle);
  cursor: zoom-in;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tf-modern .tf-gallery img:hover {
  transform: translateY(-2px);
  box-shadow: var(--g-shadow-hover);
}

/* Lightbox Modal */
.tf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tf-lightbox.is-open {
  display: flex;
}

.tf-lightbox-inner {
  position: relative;
  max-width: min(760px, 94vw);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tf-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--g-radius-md);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.tf-lightbox-caption {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  max-width: 90%;
  margin: 0;
}

.tf-lightbox-close {
  position: fixed;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tf-lightbox-close:hover {
  background: rgba(30, 41, 59, 0.95);
}

.tf-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tf-lightbox-nav:hover {
  background: rgba(30, 41, 59, 0.95);
}

.tf-lightbox-prev {
  left: 16px;
}

.tf-lightbox-next {
  right: 16px;
}

/* Breadcrumb */
.tf-modern .tf-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 8px 14px;
  margin: 0 0 20px 0;
  background: var(--g-surface-subtle);
  border: 1px solid var(--g-border-light);
  border-radius: var(--g-radius-sm);
  font-size: 13px;
  line-height: 1.4;
  color: var(--g-ink-secondary);
}

.tf-modern .tf-breadcrumb li + li::before {
  content: "/";
  padding: 0 8px;
  color: #80868b;
}

.tf-modern .tf-breadcrumb a {
  color: var(--g-blue);
  text-decoration: none;
  font-weight: 500;
}

.tf-modern .tf-breadcrumb a:hover {
  text-decoration: underline;
}

/* Hero Card */
.tf-modern .tf-hero {
  background: linear-gradient(180deg, var(--g-blue-tint) 0%, var(--g-surface) 100%);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius-lg);
  padding: 24px 26px;
  margin-bottom: 24px;
  box-shadow: var(--g-shadow-card);
}

.tf-modern .tf-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px 0;
}

.tf-modern .tf-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  white-space: nowrap;
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.015em;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.22);
}

.tf-modern .tf-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #81c995;
  flex-shrink: 0;
}

/* Hero Pricing & Consult Strip */
.tf-modern .tf-cta-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  margin-top: 20px !important;
  margin-bottom: 18px !important;
  align-items: stretch !important;
  width: 100% !important;
}

.tf-modern .tf-cta-grid > * {
  min-width: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.tf-modern .tf-combined-fee-box {
  background: #ffffff;
  border: 1px solid #d5dbe3;
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.tf-modern .tf-fee-split-item {
  padding: 13px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tf-modern .tf-fee-split-item + .tf-fee-split-item {
  border-left: 1px solid #e2e7ee;
}

.tf-modern .tf-fee-split-item .tf-label {
  display: block;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.3;
  color: #5f6368;
  margin-bottom: 5px;
}

.tf-modern .tf-fee-split-item .tf-amount {
  display: block;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #1a73e8;
}

.tf-modern .tf-consult-card {
  background: linear-gradient(180deg, #f2f7ff 0%, #e6f0ff 100%);
  border: 1px solid #bfd7fb;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 7px;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.08);
}

.tf-modern .tf-consult-heading {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #1665c1;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.tf-modern .tf-call-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 9px;
  background: #17873c;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.tf-modern .tf-call-pill-btn:hover {
  background: #126e30;
  box-shadow: 0 4px 10px rgba(23, 135, 60, 0.25);
  color: #ffffff;
}

.tf-modern .tf-call-pill-icon {
  width: 16px;
  height: 16px;
  color: #ffffff;
  flex-shrink: 0;
}

/* Consultant Overview Card */
.tf-modern .tf-consultant-banner {
  background: var(--g-surface-subtle);
  border: 1px solid var(--g-border);
  border-left: 4px solid var(--g-blue);
  border-radius: var(--g-radius-md);
  padding: 18px 20px;
  margin: 16px 0 20px 0;
}

.tf-modern .tf-consultant-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--g-ink-secondary);
  margin-bottom: 10px;
}

.tf-modern .tf-consultant-meta span {
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--g-ink);
}

/* 2x2 Services Grid */
.tf-modern .tf-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 18px 0;
}

.tf-modern .tf-card {
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius-md);
  padding: 20px;
  box-shadow: var(--g-shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tf-modern .tf-card:hover {
  box-shadow: var(--g-shadow-hover);
  border-color: #c6dafc;
}

.tf-modern .tf-card-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--g-blue-dark);
  background: var(--g-blue-bg);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.tf-modern .tf-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--g-ink-secondary);
  margin-bottom: 14px;
}

.tf-modern .tf-fee-pill {
  display: block;
  padding: 9px 12px;
  background: var(--g-surface-subtle);
  border: 1px solid var(--g-border-light);
  color: var(--g-ink-secondary);
  font-size: 13px;
  font-weight: 400;
  border-radius: var(--g-radius-sm);
}

.tf-modern .tf-fee-pill strong {
  color: var(--g-ink);
  font-weight: 500;
}

/* Quick Action Chips */
.tf-modern .tf-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.tf-modern .tf-quick-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: 999px;
  color: var(--g-blue);
  font-weight: 500;
  font-size: 13.5px;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.tf-modern .tf-quick-links a:hover {
  background: var(--g-blue-bg);
  border-color: #aecbfa;
  color: var(--g-blue-dark);
}

/* Benefits & When to Hire Grids */
.tf-modern .tf-feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}

.tf-modern .tf-feature-item {
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius-md);
  padding: 16px 18px;
  box-shadow: var(--g-shadow-card);
}

.tf-modern .tf-feature-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
  color: var(--g-ink-secondary);
}

/* FAQ Accordion */
.tf-modern .tf-faq-list {
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius-md);
  background: var(--g-surface);
  overflow: hidden;
  margin: 16px 0;
  box-shadow: var(--g-shadow-card);
}

.tf-modern .tf-faq-item + .tf-faq-item {
  border-top: 1px solid var(--g-border-light);
}

.tf-modern .tf-faq-item summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--g-blue);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease;
}

.tf-modern .tf-faq-item summary:hover {
  background: var(--g-surface-subtle);
}

.tf-modern .tf-faq-item summary::-webkit-details-marker {
  display: none;
}

.tf-modern .tf-faq-item summary::after {
  content: "▾";
  font-size: 14px;
  color: var(--g-ink-secondary);
  margin-left: 12px;
  transition: transform 0.2s ease;
}

.tf-modern .tf-faq-item[open] summary::after {
  transform: rotate(180deg);
  color: var(--g-blue);
}

.tf-modern .tf-faq-answer {
  padding: 12px 18px 16px 18px;
  color: var(--g-ink-secondary);
  font-size: 14.5px;
  line-height: 1.65;
  background: var(--g-surface-subtle);
  border-top: 1px solid var(--g-border-light);
}

/* Service Locations */
.tf-modern .tf-zone-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 16px 0;
}

.tf-modern .tf-zone-card {
  background: var(--g-surface-subtle);
  border: 1px solid var(--g-border-light);
  border-radius: var(--g-radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--g-ink-secondary);
}

.tf-modern .tf-zone-card strong {
  color: var(--g-ink);
  font-weight: 500;
}

/* Disclaimer */
.tf-modern .tf-disclaimer {
  background: var(--g-amber-bg);
  border: 1px solid var(--g-amber-border);
  color: var(--g-amber-ink);
  padding: 14px 16px;
  border-radius: var(--g-radius-sm);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 22px 0;
}

.tf-modern .tf-disclaimer a {
  color: var(--g-amber-ink);
  font-weight: 500;
  text-decoration: underline;
}

/* Contact Card */
.tf-modern .tf-contact-box {
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-top: 4px solid var(--g-blue);
  border-radius: var(--g-radius-lg);
  padding: 22px;
  margin-top: 16px;
  box-shadow: var(--g-shadow-card);
}

.tf-modern .tf-contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.tf-modern .tf-contact-item.tf-address-item {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid var(--g-border-light);
}

.tf-modern .tf-contact-item span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--g-ink-secondary);
  margin-bottom: 3px;
}

.tf-modern .tf-contact-item p,
.tf-modern .tf-contact-item a {
  color: var(--g-ink);
  font-weight: 500;
  font-size: 15px;
  margin: 0;
  text-decoration: none;
}

.tf-modern .tf-contact-item a {
  color: var(--g-blue);
}

.tf-modern .tf-contact-item a:hover {
  text-decoration: underline;
}

.tf-modern .tf-address-single-line {
  white-space: nowrap;
}

.tf-modern .tf-map-frame {
  border-radius: var(--g-radius-md);
  overflow: hidden;
  border: 1px solid var(--g-border);
}

/* Footer Metadata Pill Bar */
.tf-modern .tf-footer-meta-wrap {
  display: flex;
  justify-content: flex-start;
  margin-top: 22px;
}

.tf-modern .tf-meta-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  background: var(--g-surface);
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  padding: 9px 20px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  font-size: 13.5px;
  color: #334155;
}

.tf-modern .tf-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1.2;
}

.tf-modern .tf-meta-icon {
  width: 16px;
  height: 16px;
  color: #1e40af;
  flex-shrink: 0;
}

.tf-modern .tf-meta-label {
  color: #475569;
  font-weight: 500;
}

.tf-modern .tf-meta-value {
  color: #1e3a8a;
  font-weight: 700;
}

.tf-modern .tf-meta-divider {
  width: 1px;
  height: 16px;
  background: #cbd5e1;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .tf-modern .tf-feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .tf-modern .tf-contact-details {
    grid-template-columns: 1fr;
  }
  .tf-modern .tf-address-single-line {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .tf-modern .tf-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .tf-modern .tf-gallery img {
    border-radius: var(--g-radius-sm);
  }
  .tf-lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .tf-lightbox-prev {
    left: 8px;
  }
  .tf-lightbox-next {
    right: 8px;
  }
  .tf-modern .tf-cta-grid {
    grid-template-columns: 1fr !important;
  }
  .tf-modern .tf-combined-fee-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tf-modern .tf-service-grid,
  .tf-modern .tf-feature-list {
    grid-template-columns: 1fr;
  }
  .tf-modern .tf-badge-row {
    gap: 6px;
  }
  .tf-modern .tf-badge {
    font-size: 12px;
    gap: 5px;
    padding: 6px 12px;
  }
  .tf-modern .tf-badge-dot {
    width: 6px;
    height: 6px;
  }
  .tf-modern .tf-consult-card {
    align-items: center;
    padding: 13px 14px;
  }
  .tf-modern .tf-consult-heading {
    font-size: 17px;
  }
  .tf-modern .tf-call-pill-btn {
    font-size: 15px;
    padding: 8px 16px;
  }
  .tf-modern .tf-meta-bar {
    border-radius: var(--g-radius-md);
    gap: 10px;
    padding: 10px 14px;
    width: 100%;
  }
  .tf-modern .tf-meta-divider {
    display: none;
  }
  .tf-modern .tf-hero {
    padding: 10px;
  }
  .tf-modern h1 {
    font-size: 21px;
  }
  .tf-modern h2 {
    font-size: 18px;
  }
}