/**
 * SK Auditors — Shared Regional Services Stylesheet
 * Reusable layout & components for dedicated regional practice pages (/usa/, and future /india/, /uae/).
 * Aligns strictly with HeroBiz main.css theme variables & typography.
 */

.rg-hero {
  background: linear-gradient(135deg, #2b3640 0%, #3a4753 60%, #244654 100%);
  color: #ffffff;
  padding: 46px 0 42px;
  border-top: 3px solid var(--accent-color);
  position: relative;
  overflow: hidden;
}

.rg-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(14, 162, 189, 0.24) 0%, transparent 70%);
  pointer-events: none;
}

.rg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7ee3f4;
  background: rgba(14, 162, 189, 0.16);
  border: 1px solid rgba(126, 227, 244, 0.28);
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.rg-hero h2 {
  font-family: var(--heading-font);
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 14px;
}

.rg-hero p.rg-lead {
  font-size: 16px;
  color: #dde6ee;
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: 650px;
}

.rg-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.rg-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-color);
  color: #ffffff;
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 4px;
  transition: 0.25s ease;
}

.rg-btn-primary:hover {
  background: #0b8ba3;
  color: #ffffff;
}

.rg-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 4px;
  transition: 0.25s ease;
}

.rg-btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  color: #ffffff;
}

.rg-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}

.rg-stat-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 3px solid var(--accent-color);
  border-radius: 6px;
  padding: 14px 16px;
}

.rg-stat-box i {
  font-size: 20px;
  color: #7ee3f4;
  display: block;
  margin-bottom: 6px;
}

.rg-stat-box strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.rg-stat-box span {
  display: block;
  font-size: 12.5px;
  color: #d0dce5;
  line-height: 1.4;
}

/* Quick-Jump Section Bar */
.rg-subnav-wrap {
  background: #f7f9fb;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
}

.rg-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.rg-subnav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  background: #ffffff;
  border: 1px solid #d5dfe7;
  color: var(--heading-color);
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.rg-subnav a:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: #eaf8fb;
}

/* Service Detail Cards & Grids */
.rg-soft-bg {
  background: #f8fafc;
}

.rg-track-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 26px;
  height: 100%;
  box-shadow: 0 3px 16px rgba(26, 31, 36, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rg-track-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(14, 162, 189, 0.1);
  border-color: rgba(14, 162, 189, 0.45);
}

.rg-track-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.rg-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #e7f7fa;
  color: var(--accent-color);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex: none;
}

.rg-track-head h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--heading-color);
}

.rg-track-head p.rg-sub {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

.rg-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 9px;
}

.rg-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--default-color);
}

.rg-checklist li i {
  color: var(--accent-color);
  font-size: 15px;
  margin-top: 3px;
  flex: none;
}

.rg-form-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid #eef2f6;
}

.rg-form-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 600;
  background: #f1f5f9;
  color: #3a4753;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid #dbe4ec;
}

/* Client Profiles & Incorporation Tracks */
.rg-entity-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--accent-color);
  border-radius: 6px;
  padding: 20px;
  height: 100%;
}

.rg-entity-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 8px;
}

.rg-entity-card p {
  font-size: 13.5px;
  color: #475569;
  margin: 0 0 10px;
  line-height: 1.55;
}

/* Engagement Steps */
.rg-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 22px 20px;
  height: 100%;
  position: relative;
}

.rg-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #ffffff;
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.rg-step-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--heading-color);
}

.rg-step-card p {
  font-size: 13.5px;
  color: #475569;
  margin: 0;
  line-height: 1.55;
}

/* Interactive IRS Forms Table & Filters */
.rg-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  justify-content: center;
}

.rg-filter-btn {
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--heading-color);
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rg-filter-btn:hover,
.rg-filter-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
}

.rg-forms-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: 0 2px 12px rgba(26, 31, 36, 0.04);
}

table.rg-forms-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.rg-forms-tbl th {
  background: #3a4753;
  color: #ffffff;
  font-family: var(--nav-font);
  font-size: 12.5px;
  font-weight: 600;
  padding: 11px 14px;
  text-align: left;
  white-space: nowrap;
}

table.rg-forms-tbl td {
  padding: 10px 14px;
  border-top: 1px solid #e2e8f0;
  vertical-align: top;
}

table.rg-forms-tbl tr:nth-child(even) td {
  background: #f8fafc;
}

.rg-scope-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.rg-scope-badge.efile {
  background: #e6f7ef;
  color: #007a3d;
}

.rg-scope-badge.adv {
  background: #e7f7fa;
  color: #09849b;
}

/* Cross-border Callout */
.rg-crossborder-box {
  background: linear-gradient(135deg, #f0f9fb 0%, #ffffff 100%);
  border: 1px solid rgba(14, 162, 189, 0.35);
  border-left: 4px solid var(--accent-color);
  border-radius: 8px;
  padding: 22px 24px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .rg-hero h2 {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .rg-hero {
    padding: 32px 0;
  }
  .rg-hero h2 {
    font-size: 24px;
  }
  .rg-highlights {
    grid-template-columns: 1fr;
  }
  .rg-track-card {
    padding: 20px 16px;
  }
  .rg-subnav {
    justify-content: flex-start;
  }
}

/* Sub-page Editorial & Service-Details Hybrid Layout */
.rg-card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #dbe4ec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rg-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--heading-font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-color);
  transition: gap 0.2s ease, color 0.2s ease;
}

.rg-card-link:hover {
  color: #09849b;
  gap: 10px;
}

.rg-sub-hero-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(26, 31, 36, 0.08);
  margin-bottom: 24px;
}

.rg-sub-article h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 14px;
}

.rg-sub-article h4 {
  font-size: 19px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 26px 0 12px;
}

.rg-sub-article p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--default-color);
  margin-bottom: 14px;
}

.rg-blockquote {
  background: #f0f9fb;
  border-left: 4px solid var(--accent-color);
  border-radius: 0 6px 6px 0;
  padding: 18px 22px;
  margin: 22px 0;
}

.rg-blockquote p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #293038;
  line-height: 1.65;
}

.rg-deliverable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}

.rg-deliverable-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--accent-color);
  border-radius: 6px;
  padding: 16px 18px;
}

.rg-deliverable-item h5 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rg-deliverable-item h5 i {
  color: var(--accent-color);
}

.rg-deliverable-item p {
  font-size: 13.5px;
  color: #475569;
  margin: 0;
  line-height: 1.55;
}

.rg-sidebar-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 22px 24px;
  margin-top: 22px;
  box-shadow: 0 2px 12px rgba(26, 31, 36, 0.04);
}

.rg-sidebar-box h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.rg-sidebar-box p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 14px;
}

.rg-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.rg-tag-list li span {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #dbe4ec;
  border-radius: 4px;
  background: #f8fafc;
  color: #3a4753;
}

.rg-prev-next {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.rg-prev-next a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #d5dfe7;
  border-radius: 4px;
  background: #ffffff;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.rg-prev-next a:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: #f0f9fb;
}

@media (max-width: 767px) {
  .rg-deliverable-grid {
    grid-template-columns: 1fr;
  }
}
