@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  --primary-blue: #002878;
  --accent-blue: #014DDE;
  --accent-hover: #003cd0;
  --black: #000000;
  --dark-neutral: #0e1628;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --gray-light: #f1f5f9;
  --gray-medium: #cbd5e1;
  --gray-dark: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --shadow-sm: 0 2px 8px rgba(0, 40, 120, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 40, 120, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 40, 120, 0.08);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-headings: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: var(--dark-neutral);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.25;
}

p {
  color: var(--gray-dark);
  font-size: 0.95rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- UTILITY CLASSES --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 3.5rem 0;
}

.text-center {
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(1, 77, 222, 0.08);
  color: var(--accent-blue);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(1, 77, 222, 0.15);
  font-family: var(--font-headings);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.glow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--accent-blue) 0%, #0030aa 100%);
  color: var(--white);
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-headings);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(1, 77, 222, 0.3);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.glow-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #003cd0 0%, var(--accent-blue) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  border-radius: 50px;
}

.glow-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(1, 77, 222, 0.45);
}

.glow-btn:hover::before {
  opacity: 1;
}

.glow-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.glow-btn:active {
  transform: translateY(-1px) scale(1);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: transparent;
  color: var(--primary-blue);
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-headings);
  border: 2px solid rgba(0, 40, 120, 0.12);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.secondary-btn:hover {
  background-color: rgba(1, 77, 222, 0.04);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(1, 77, 222, 0.08);
}

.secondary-btn:active {
  transform: translateY(-1px) scale(1);
}

/* --- HEADER / NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.5rem 0;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

header .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 78px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-dark);
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #014DDE !important;
  color: #ffffff !important;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-headings);
  box-shadow: 0 4px 10px rgba(1, 77, 222, 0.2);
  transition: var(--transition);
}

.nav-cta:hover {
  background-color: #003cd0 !important;
  box-shadow: 0 6px 14px rgba(1, 77, 222, 0.35);
  transform: translateY(-1px);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-blue);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding-top: 6.5rem;
  padding-bottom: 2.5rem;
  background: radial-gradient(circle at 80% 20%, rgba(1, 77, 222, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(0, 40, 120, 0.03) 0%, transparent 40%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
  width: 100%;
}

.hero-content {
  z-index: 10;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-blue) 40%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--gray-dark);
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 2.5rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1;
}

.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background-color: rgba(1, 77, 222, 0.05);
  border: 1px solid rgba(1, 77, 222, 0.1);
  border-radius: 12px;
  flex-shrink: 0;
  transition: var(--transition);
}

.trust-item:hover .trust-icon {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(1, 77, 222, 0.25);
}

.trust-item:hover .trust-icon .trust-svg-icon {
  stroke: var(--white);
}

.trust-svg-icon {
  width: 24px;
  height: 24px;
  stroke: var(--accent-blue);
  transition: stroke 0.3s ease;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-text strong {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.25;
}

.trust-text span {
  font-size: 0.9rem;
  color: var(--gray-dark);
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* --- DETAILED TAX BOOKING FORM --- */
.review-form-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 40, 120, 0.08);
  border: 1px solid rgba(0, 40, 120, 0.05);
  padding: 2.5rem 2.25rem;
  width: 100%;
}

.review-form-title {
  font-family: var(--font-headings);
  font-size: 1.75rem;
  font-weight: 700;
  color: #0b1e4f;
  margin-bottom: 0.5rem;
}

.review-form-subtitle {
  font-size: 0.9rem;
  color: var(--gray-dark);
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-label-required::after {
  content: ' *';
  color: #ef4444;
}

/* Choice Buttons and Pills Selector layout */
.choice-group-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.choice-button {
  background-color: #f4f6fc;
  border: 1px solid #e1e7f5;
  color: #555555;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  white-space: nowrap;
  flex: 1 1 auto;
}

.choice-button:hover {
  background-color: #eaeffc;
  border-color: var(--accent-blue);
}

.choice-button.active {
  background-color: rgba(1, 77, 222, 0.08);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Choice Pills Selector layout */
.pills-group-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.choice-pill {
  background-color: #f4f6fc;
  border: 1px solid #e1e7f5;
  color: #555555;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.choice-pill:hover {
  background-color: #eaeffc;
  border-color: var(--accent-blue);
}

.choice-pill.active {
  background-color: rgba(1, 77, 222, 0.08);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* --- SERVICE ECOSYSTEM --- */
.services {
  background-color: var(--white);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 90%, rgba(1, 77, 222, 0.02) 0%, transparent 60%);
  pointer-events: none;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--light-bg);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 1px solid rgba(0, 40, 120, 0.03);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent-blue);
  transform: scaleY(0);
  transition: var(--transition);
  transform-origin: bottom;
}

.service-card:hover {
  transform: translateY(-5px);
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  border-color: rgba(1, 77, 222, 0.1);
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background-color: rgba(1, 77, 222, 0.06);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
  background-color: var(--accent-blue);
  color: var(--white);
  transform: rotate(5deg);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* --- WHY CHOOSE US --- */
.why-choose {
  background-color: var(--light-bg);
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 40, 120, 0.02);
  transition: var(--transition);
  position: relative;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.why-num {
  font-family: var(--font-headings);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(1, 77, 222, 0.08);
  position: absolute;
  top: 1.5rem;
  right: 2rem;
}

.why-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.why-card p {
  font-size: 0.9rem;
}

/* --- HOW IT WORKS --- */
.how-it-works {
  background-color: var(--white);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  position: relative;
  margin-top: 4rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background-color: var(--gray-light);
  z-index: 1;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--light-bg);
  border: 4px solid var(--white);
  color: var(--primary-blue);
  font-family: var(--font-headings);
  font-size: 1.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  transition: var(--transition);
}

.timeline-step:hover .step-number {
  background-color: var(--accent-blue);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(1, 77, 222, 0.3);
}

.timeline-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.timeline-step p {
  max-width: 280px;
  font-size: 0.9rem;
}

/* --- ACCORDION FAQs STYLE --- */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(0, 40, 120, 0.05);
  box-shadow: var(--shadow-sm);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.3s, 
              box-shadow 0.3s;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent-blue);
  transform: scaleY(0);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(1, 77, 222, 0.1);
}

.faq-item.active {
  border-color: rgba(1, 77, 222, 0.15);
  box-shadow: var(--shadow-md);
}

.faq-item.active::before {
  transform: scaleY(1);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 1.75rem 2rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-blue);
  outline: none;
  gap: 1.5rem;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(1, 77, 222, 0.06);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  background-color: var(--accent-blue);
  color: var(--white);
  transform: rotate(180deg);
}

.faq-answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer-wrapper {
  grid-template-rows: 1fr;
}

.faq-answer-content {
  overflow: hidden;
}

.faq-answer-content p {
  padding: 0 2rem 1.75rem 2rem;
  color: var(--gray-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- FOOTER & CTA SECTION --- */
.footer-cta {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #051433 100%);
  color: var(--white);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

footer {
  background-color: #030a18;
  color: rgba(255, 255, 255, 0.5);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand .logo-img {
  height: 60px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col a:hover {
  color: var(--accent-blue);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0b1e4f;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid #e1e7f5;
  border-radius: 8px;
  background-color: #f4f6fc;
  outline: none;
  transition: var(--transition);
  color: var(--dark-neutral);
}

.form-control:focus {
  border-color: var(--accent-blue);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(1, 77, 222, 0.1);
}

.form-control::placeholder {
  color: #94a3b8;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002878' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
}

.submit-btn {
  width: 100%;
  padding: 1rem 2.25rem;
  border-radius: var(--radius-sm);
  background-color: #014DDE !important;
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  font-family: var(--font-headings);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(1, 77, 222, 0.4);
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  background-color: #003cd0 !important;
  box-shadow: 0 6px 20px rgba(1, 77, 222, 0.6);
  transform: translateY(-2px);
}

/* --- THANK YOU PAGE SPECIFIC STYLES --- */
.thank-you-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0;
  background: radial-gradient(circle at 50% 30%, rgba(1, 77, 222, 0.05) 0%, transparent 60%);
}

.thank-you-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 40, 120, 0.06);
  max-width: 680px;
  width: 100%;
  padding: 4rem 3rem;
  text-align: center;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 2rem auto;
  box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.03);
}

.thank-you-card h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.thank-you-card p {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.next-steps-container {
  text-align: left;
  background-color: var(--light-bg);
  border-radius: var(--radius-sm);
  padding: 2rem;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(0, 40, 120, 0.03);
}

.next-steps-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.step-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text {
  font-size: 0.9rem;
  color: var(--gray-dark);
}

.timeline-5-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 4rem;
}

/* --- SCROLL REVEAL STYLES --- */
.reveal-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline, .timeline-5-steps {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .timeline::before {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }
  .why-card, .service-card {
    grid-column: auto !important;
  }
  .container {
    padding: 0 1.25rem;
  }
  header {
    padding: 1rem 0;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: var(--shadow-md);
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
  }
  .nav-cta {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: center;
  }
  .hero-ctas a, .hero-ctas button {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
  .hero-trust {
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
  }
  .review-form-card {
    padding: 1.75rem 1.25rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-bottom-links {
    flex-direction: column;
    gap: 1rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .choice-group-container {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .review-form-card {
    padding: 1.5rem 1rem;
  }
  .choice-pill {
    width: 100%;
    text-align: center;
  }
  .pills-group-container {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* --- WHO WE SERVE STRIP --- */
.who-we-serve-strip {
  background-color: var(--white);
  border-top: 1px solid rgba(0, 40, 120, 0.05);
  border-bottom: 1px solid rgba(0, 40, 120, 0.05);
  padding: 1.25rem 0;
}

.serve-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.serve-title {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--primary-blue);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.serve-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-start;
}

@media (min-width: 992px) {
  .serve-grid {
    justify-content: flex-end;
  }
}

.serve-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background-color: var(--white);
  border: 1px solid rgba(0, 40, 120, 0.06);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 40, 120, 0.02);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.serve-item:hover {
  transform: translateY(-2px);
  border-color: rgba(1, 77, 222, 0.15);
  box-shadow: 0 8px 24px rgba(1, 77, 222, 0.08);
}

.serve-flags-list {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.serve-flags-list .flag-svg {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 3px 8px rgba(0, 40, 120, 0.12);
  transition: transform 0.3s;
}

.serve-flags-list .flag-svg:hover {
  transform: translateY(-2px) scale(1.1);
  z-index: 10;
}

.serve-flags-list .flag-svg:not(:first-child) {
  margin-left: -12px;
}

.serve-text {
  display: flex;
  flex-direction: column;
}

.serve-text strong {
  color: var(--primary-blue);
  font-size: 0.95rem;
}

.serve-text span {
  font-size: 0.85rem;
  color: var(--gray-dark);
  margin-top: 0.25rem;
}

/* --- RE-ARCHITECTED SERVICES EXTRA STYLES --- */
.service-card {
  display: flex;
  flex-direction: column;
}

.highlighted-card {
  border: 2px solid var(--accent-blue) !important;
  box-shadow: var(--shadow-lg) !important;
}

.service-tier-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: rgba(1, 77, 222, 0.06);
  color: var(--accent-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-headings);
  text-transform: uppercase;
}

.service-tier-badge.pk-badge {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.service-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding-left: 0;
  flex-grow: 1;
}

.service-list li {
  font-size: 0.85rem;
  color: var(--gray-dark);
  position: relative;
  padding-left: 1.25rem;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: bold;
}

.highlighted-card .service-list li::before {
  color: var(--accent-blue);
}

/* Tax Portal CTA */
.tax-portal-cta {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 40, 120, 0.06);
}

.tax-portal-note {
  font-size: 0.8rem;
  color: var(--gray-dark);
  margin-bottom: 0.75rem;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-blue);
  color: var(--white) !important;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-headings);
  transition: var(--transition);
}

.portal-btn:hover {
  background-color: var(--accent-blue);
  transform: translateY(-1px);
}

/* --- CASE STUDIES & SNAPSHOTS --- */
.snapshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.snapshot-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 40, 120, 0.03);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.snapshot-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.snapshot-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.snapshot-metric {
  font-family: var(--font-headings);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1;
}

.snapshot-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.snapshot-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--primary-blue);
}

.snapshot-card p {
  font-size: 0.85rem;
  color: var(--gray-dark);
}

/* --- FOUNDER SECTION --- */
.founder-container {
  max-width: 1200px;
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.founder-img-area {
  position: relative;
  display: flex;
  justify-content: center;
}

.founder-photo-wrapper {
  width: 300px;
  height: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 40, 120, 0.05);
  position: relative;
}

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.founder-photo-wrapper:hover .founder-photo {
  transform: scale(1.05);
}

.founder-tag {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-blue);
  color: var(--white);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(1, 77, 222, 0.3);
}

.founder-info-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.leadership-points {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.lead-point {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lead-point strong {
  color: var(--accent-blue);
}

/* --- INDUSTRIES SERVED --- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.industry-card {
  background-color: var(--light-bg);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 40, 120, 0.02);
  transition: var(--transition);
}

.industry-card:hover {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  border-color: rgba(1, 77, 222, 0.08);
  transform: translateY(-3px);
}

.ind-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1.25rem;
}

.industry-card h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--primary-blue);
}

.industry-card p {
  font-size: 0.8rem;
  color: var(--gray-dark);
}

/* --- TIMELINE ADJUSTMENTS --- */
.timeline-3-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  position: relative;
  margin-top: 4rem;
}

/* Responsive updates for new sections */
@media (max-width: 1024px) {
  .snapshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .founder-info-area {
    align-items: center;
  }
  .founder-info-area .section-title {
    text-align: center !important;
  }
  .leadership-points {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .serve-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .serve-grid {
    justify-content: center;
    gap: 2rem;
  }
  .serve-item {
    flex-direction: column;
    align-items: center;
  }
  .snapshots-grid {
    grid-template-columns: 1fr;
  }
  .industries-grid {
    grid-template-columns: 1fr;
  }
  .timeline-3-steps {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

/* Center the 4th service card on desktop */
@media (min-width: 1025px) {
  #services .services-grid .tax-card {
    grid-column: 2;
  }
}

/* --- VIEW MORE & EXPANDABLE DETAILS --- */
.view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-blue);
  background: none;
  border: none;
  cursor: pointer;
  margin-top: auto;
  padding: 0.5rem 0 0 0;
  font-family: var(--font-headings);
  transition: var(--transition);
  text-align: left;
  width: fit-content;
  outline: none;
}

.view-more-btn:hover {
  color: var(--accent-hover);
}

.view-more-btn.active .arrow-icon {
  transform: rotate(180deg);
}

.service-details-expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
  overflow: hidden;
}

.service-details-expand.expanded {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(0, 40, 120, 0.08);
}

.expand-content {
  overflow: hidden;
}

.expand-content ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.expand-content ul li {
  font-size: 0.8rem;
  color: var(--gray-dark);
  position: relative;
  padding-left: 1rem;
}

.expand-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: bold;
}

/* --- RAINBOW BORDERS EFFECT --- */
@keyframes rotate-rainbow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.rainbow-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: none !important;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.rainbow-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    #ff007f,
    #7f00ff,
    #00f0ff,
    #00ff7f,
    #ffef00,
    #ff007f
  );
  animation: rotate-rainbow 4s linear infinite;
  z-index: -2;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.rainbow-card::after {
  content: '';
  position: absolute;
  top: 2px; /* border thickness */
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: calc(var(--radius-md) - 2px);
  z-index: -1;
  transition: background-color 0.3s;
}

/* Specific background masks for card types to preserve their base colors */
.service-card.rainbow-card::after {
  background-color: var(--light-bg);
}
.highlighted-card.rainbow-card::after {
  background-color: var(--white);
}
.why-card.rainbow-card::after {
  background-color: var(--white);
}
.snapshot-card.rainbow-card::after {
  background-color: var(--white);
}
.industry-card.rainbow-card::after {
  background-color: var(--light-bg);
}

.rainbow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(1, 77, 222, 0.15);
}

.rainbow-card:hover::before {
  opacity: 1;
}

/* --- STICKY / REVEAL FOOTER EFFECT --- */
body {
  position: relative;
  background-color: var(--light-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main, header, section, .who-we-serve-strip {
  position: relative;
  z-index: 2;
}

/* Ensure solid cover backgrounds for scroll reveal */
.hero {
  background-color: var(--light-bg) !important;
}

.services {
  background-color: var(--white) !important;
}

#core-capabilities {
  background-color: var(--light-bg) !important;
}

.why-choose {
  background-color: var(--white) !important;
}

#case-studies {
  background-color: var(--light-bg) !important;
}

#founder {
  background-color: var(--white) !important;
}

#process {
  background-color: var(--light-bg) !important;
}

#industries {
  background-color: var(--white) !important;
}

#faqs {
  background-color: var(--light-bg) !important;
}

#contact {
  background-color: var(--white) !important;
  box-shadow: 0 15px 30px rgba(0, 40, 120, 0.05); /* overlays footer shadow */
}

footer {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1; /* sits behind content */
  background-color: #030a18;
}

/* --- PREMIUM POSITIONING & SOLUTIONS OVERRIDES --- */
.hero-ctas-wrapper {
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.hero-supporting-line {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-dark);
  margin-top: 0.5rem;
  font-family: var(--font-headings);
}

.solutions-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(1, 77, 222, 0.05);
  color: var(--accent-blue);
  padding: 0.85rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-headings);
  margin-top: 2rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(1, 77, 222, 0.1);
  text-decoration: none;
}

.service-card:hover .solutions-card-cta {
  background-color: var(--accent-blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(1, 77, 222, 0.2);
}

/* Solution 5 Tax Card Specific Styling */
.service-card.tax-card .solutions-card-cta.portal-btn {
  background-color: rgba(16, 185, 129, 0.08);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.15);
}

.service-card.tax-card:hover .solutions-card-cta.portal-btn {
  background-color: var(--success);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  border-color: var(--success);
}

.service-card .service-tier-badge {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  background-color: rgba(1, 77, 222, 0.06);
  color: var(--accent-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-headings);
}

.service-card.tax-card .service-tier-badge.pk-badge {
  background-color: rgba(16, 185, 129, 0.08);
  color: var(--success);
}

.glow-btn.tax-btn {
  background: linear-gradient(135deg, var(--success) 0%, #0c9463 100%);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.secondary-btn.tax-btn {
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.secondary-btn.tax-btn:hover {
  background-color: rgba(16, 185, 129, 0.04);
  border-color: var(--success);
  color: var(--success);
}

/* Service Card List Adjustments */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0;
  text-align: left;
}

.service-list li {
  font-size: 0.9rem;
  color: var(--gray-dark);
  position: relative;
  padding-left: 1.25rem;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: bold;
}

.service-card.tax-card .service-list li::before {
  color: var(--success);
}

/* Responsive Grid Optimization */
@media (max-width: 991px) {
  .services-grid.solutions-grid-6, .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .services-grid.solutions-grid-6, .why-grid {
    grid-template-columns: 1fr;
  }
}

