:root {
  --gold: #b08d57; /* Brown/yellow accent */
  --gold-hover: #c9a46c;
  --dark: transparent; /* Changed to transparent to let body gradient show through */
  --darker: transparent; /* Match --dark for seamless flow */
  --navy: #0b1a2e; /* The original solid navy blue */
  --panel-bg: #142842;
  --panel-border: #1f3b5e;
  --glass: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --text-muted: #9eb6d1;
  --text-light: #ffffff; /* Touch of white */
  --yellow-bg: #c98d52;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, #0b1a2e 0%, #061121 50%, #03080e 100%);
  background-attachment: fixed; /* Ensures the gradient flows beautifully behind scrolling content */
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.ta-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

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

/* Typography */
.ta-tagline {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 15px;
}

.ta-title {
  color: white;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.1;
  margin: 0 0 40px 0;
  font-weight: 800;
}

.ta-description {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 0 40px 0;
  line-height: 1.6;
}

.ta-gradient {
  background: linear-gradient(90deg, #e3c498, #b08d57);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ta-section-title {
  font-size: clamp(32px, 4vw, 42px);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.ta-section-desc {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 700px;
  margin-bottom: 30px;
}

/* Buttons */
.ta-btn-primary {
  display: inline-block;
  background: var(--gold);
  color: black;
  padding: 16px 32px;
  border-radius: 40px; /* Pill shape */
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ta-btn-primary:hover {
  background: var(--gold-hover);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.ta-btn-secondary {
  display: inline-block;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-light);
  padding: 16px 32px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}
.ta-btn-secondary:hover {
  background: var(--glass);
  border-color: var(--gold);
}

.ta-btn-outline {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text-light);
  padding: 10px 24px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}
.ta-btn-outline:hover {
  border-color: var(--text-light);
}

.ta-btn-small {
  padding: 10px 24px;
  font-size: 12px;
}

/* Header */
.ta-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
  border-bottom: 3px solid var(--gold);
}

.ta-nav-container {
  max-width: 1800px; /* Very wide to push actions far right */
  margin: 0 auto;
  padding: 10px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* Perfect centering */
  align-items: center;
  gap: 20px;
}

.ta-logo-img {
  height: 160px; /* Slightly smaller to free up space */
  width: auto;
  display: block;
  object-fit: contain;
}

.ta-nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px; /* Neat, even spacing */
}

.ta-nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600; /* Slightly lighter weight */
  font-size: 14px; /* Smaller font size to avoid crowding */
  white-space: nowrap; /* Prevent text wrapping */
  transition: color 0.3s;
}
.ta-nav-links a:hover {
  color: var(--gold);
}
.ta-nav-links a:hover { color: var(--gold); }

.ta-nav-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end; /* Push button all the way right */
  align-items: center;
}

/* Hero Section */
.ta-hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 240px 20px 100px;
  text-align: center;
  overflow: hidden;
}

.ta-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ta-button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CEO Section */
.ta-ceo-section {
  padding: 100px 0;
  background: var(--darker);
  position: relative;
  z-index: 2;
}

.ta-ceo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ta-ceo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background: var(--dark);
}

.ta-ceo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ta-ceo-card:hover .ta-ceo-img {
  transform: scale(1.05);
}

.ta-ceo-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 100px;
  height: 100px;
  animation: spin 15s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.ta-ceo-overlay {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 26, 46, 1) 0%, rgba(11, 26, 46, 0.6) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  transition: background 0.4s ease;
  z-index: 2;
}

.ta-ceo-card:hover .ta-ceo-overlay,
.ta-ceo-card:focus-within .ta-ceo-overlay {
  background: rgba(11, 26, 46, 0.95);
  justify-content: center;
}

.ta-ceo-subtitle {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
  transition: transform 0.4s ease;
}

.ta-ceo-title {
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  transition: transform 0.4s ease;
}

.ta-ceo-card:hover .ta-ceo-title, 
.ta-ceo-card:hover .ta-ceo-subtitle,
.ta-ceo-card:focus-within .ta-ceo-title,
.ta-ceo-card:focus-within .ta-ceo-subtitle {
  transform: translateY(-20px);
}

.ta-ceo-hidden-text {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.ta-ceo-card:hover .ta-ceo-hidden-text,
.ta-ceo-card:focus-within .ta-ceo-hidden-text {
  max-height: 500px;
  opacity: 1;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 10px;
}

.ta-ceo-hidden-text p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.ta-ceo-btn {
  padding: 12px 24px;
  font-size: 14px;
  width: auto;
  display: inline-block;
}

.ta-ceo-text-content {
  padding: 20px;
}

/* Split Cards Section (Community) */
.ta-split-section {
  position: relative;
  padding: 80px 0;
}

.ta-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
}

.ta-split-image-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  border: 1px solid var(--border);
}

.ta-split-image-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.ta-split-image-circle {
  position: absolute;
  top: 30px; right: 30px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow-bg), #a86c38);
  color: #111;
}

.ta-split-overlay {
  position: relative;
  z-index: 2;
}

.ta-split-overlay h2 {
  font-size: 36px;
  line-height: 1.2;
  max-width: 400px;
}

.ta-split-cards {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ta-mission-card {
  position: relative;
  padding: 40px;
  border-radius: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.ta-mission-card:hover {
  transform: translateY(-8px);
  border: 2px solid var(--gold);
  box-shadow: 0 10px 30px rgba(176, 141, 87, 0.3);
}

.ta-card-circle {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
}
.ta-circle-dark { background: var(--dark); }

.ta-card-yellow { background: var(--yellow-bg); color: black; }
.ta-card-gold { background: #7a5c33; color: white; } /* Darker gold/brown panel */

.ta-mission-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.ta-mission-card p {
  font-size: 15px;
  line-height: 1.6;
}

/* Our Process Section */
.ta-process-section {
  padding: 100px 0;
  background: var(--darker);
}

.ta-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ta-process-card {
  padding: 0 40px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.ta-process-card:last-child { border-right: none; }

.ta-process-icon {
  width: 80px; height: 80px;
  margin: 0 auto 30px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ta-process-icon svg { width: 40px; height: 40px; }

.ta-process-title {
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 600;
}

.ta-process-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.ta-read-more {
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

/* Tech Services Grid Section */
.ta-tech-services {
  padding: 100px 0;
  position: relative;
  background: var(--darker);
}

.ta-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.ta-service-card-glass {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 40px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.ta-service-card-glass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.ta-service-card-glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border-color: var(--gold);
}

.ta-service-card-glass:hover::before {
  opacity: 1;
}

.ta-tech-icon {
  width: 50px; height: 50px;
  margin-bottom: 25px;
  background: rgba(176, 141, 87, 0.1); /* gold with opacity */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ta-tech-icon svg {
  width: 24px; height: 24px;
}

.ta-service-card-glass h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text-light);
}

.ta-service-card-glass p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}



/* FAQ Layout Updated */
.ta-faq-section {
  padding: 120px 0;
  background: var(--darker);
}

.ta-faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.ta-faq-item-new {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  margin-bottom: 15px;
  background: var(--panel-bg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.ta-faq-item-new:hover,
.ta-faq-item-new.ta-faq-active {
  border-color: var(--gold);
  box-shadow: 0 4px 15px rgba(176, 141, 87, 0.15);
}

.ta-faq-header {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.ta-faq-header h4 {
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.ta-faq-item-new:hover .ta-faq-header h4,
.ta-faq-item-new.ta-faq-active .ta-faq-header h4 {
  color: var(--gold);
}

.ta-faq-icon {
  color: var(--text-muted);
  transition: transform 0.3s ease;
  display: inline-block;
}

.ta-faq-item-new.ta-faq-active .ta-faq-icon {
  transform: rotate(180deg);
}

.ta-faq-body {
  padding: 0 25px 25px;
  color: var(--gold); /* Gold text for answers like screenshot */
  font-size: 15px;
  display: none;
}

.ta-faq-item-new.ta-faq-active .ta-faq-body {
  display: block;
}

/* Contact CTA Section */
.ta-contact-cta {
  padding: 120px 0;
  position: relative;
  background: var(--dark);
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.ta-contact-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.15) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.ta-contact-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.ta-contact-content h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 25px;
  color: var(--text-light);
}

.ta-contact-content p {
  color: var(--gold);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.ta-contact-btn {
  display: inline-block;
  background: linear-gradient(90deg, #c9a46c, #a87b40);
  color: white;
  border: none;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.ta-contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(201, 164, 108, 0.4);
}
/* Footer */
.ta-footer {
  padding: 10px 0 20px; /* Reduced padding to make it significantly thinner */
  border-top: 1px solid var(--border);
  position: relative;
  background: var(--darker);
  overflow: hidden;
}

.ta-footer-white {
  background: #ffffff !important;
  border-top: none;
}

.ta-logo-img-footer {
  width: 100%;
  max-width: 400px; /* Large logo matching screenshot */
  height: auto;
  margin-top: -50px; /* Cut out top transparent padding of image file */
  margin-bottom: -40px; /* Cut out bottom transparent padding of image file */
  display: block;
}

.ta-footer-centered {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ta-footer-copyright {
  color: var(--gold); /* Gold color matching TaxAlchemy copyright text */
  font-size: 14px;
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto;
}

/* Scroll Animations */
.ta-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.ta-fade-up.ta-visible {
  opacity: 1;
  transform: translateY(0);
}
.ta-delay-1 { transition-delay: 0.1s; }
.ta-delay-2 { transition-delay: 0.2s; }
.ta-delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1000px) {
  .ta-nav-links, .ta-btn-outline { display: none; }
  .ta-split-grid, .ta-process-grid, .ta-faq-layout, .ta-ceo-grid { grid-template-columns: 1fr; }
  .ta-process-card { border-right: none; border-bottom: 1px solid var(--border); padding: 40px 0; }
  .ta-services-grid { grid-template-columns: 1fr; }
  .ta-case-grid { grid-template-columns: 1fr; }
  .ta-ceo-card { aspect-ratio: auto; height: 500px; }
}
