/* =========================================
   1. GLOBAL & TYPOGRAPHY
   ========================================= */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  color: #111;
  background: white;
  line-height: 1.6;
  padding-top: 100px; /* Offset for fixed header */
}

.sub-page {
  background-color: #f9f9f9;
  color: #333;
}

/* =========================================
   2. HEADER & NAVIGATION (FIXED ALIGNMENT)
   ========================================= */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: white;
  border-bottom: 1px solid #eee;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100px;
  display: flex;
  align-items: center;
}

#site-header.scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand h1 {
  font-size: 24px;
  margin: 0;
  line-height: 1;
  transition: font-size 0.3s ease;
}

.logo {
  height: 100px;
  width: auto;
  transition: height 0.3s ease;
  display: block;
}

#site-header.scrolled .logo {
  height: 45px;
}

#site-header.scrolled .brand h1 {
  font-size: 20px;
}

/* Navigation Links */
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a, .dropbtn {
  text-decoration: none;
  color: #222;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

/* Hover Underline Animation (Moved to ::before to avoid caret conflicts) */
nav a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #0b57d0;
  transition: width 0.25s ease;
}

nav a:hover, .dropdown:hover .dropbtn {
  color: #0b57d0;
}

nav a:hover::before {
  width: 100%;
}

nav a.insight-highlight {
  font-weight: 600;
}

nav a.contact-link {
  margin-left: 10px;
  padding-left: 20px;
  border-left: 1px solid #ddd;
}

nav a.contact-link::before {
  display: none; /* Removes underline from contact button */
}

/* Dropdown Specifics */
.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropbtn::after {
  content: "▾";
  margin-left: 6px;
  font-size: 10px; /* Slightly smaller for a more "premium" look */
  display: inline-block;
  transition: transform 0.2s ease;
  vertical-align: middle;
}

/* Optional: Rotates the arrow when hovering for a nice interaction */
.dropdown:hover .dropbtn::after {
  transform: rotate(180deg);
  color: #0b57d0;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
  z-index: 1001;
  border-radius: 4px;
  top: 100%;
  left: 0;
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: #333 !important;
  padding: 12px 16px;
  border-bottom: 1px solid #f9f9f9;
}

.dropdown-content a::before {
  display: none; /* No underline in dropdown */
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #f7f8fa;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   3. SHARED COMPONENTS (BUTTONS & LABELS)
   ========================================= */
.primary-btn {
  background: #111;
  color: white;
  padding: 14px 28px;
  display: inline-block;
  margin-top: 30px;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.primary-btn:hover {
  background: #333;
  transform: translateY(-3px);
}

.taxmann-label {
  font-size: 12px;
  font-style: italic;
  color: #888;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.taxmann-label:hover {
  color: #c67a2c;
}

.read-more {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  color: #111;
}

.published, .publication {
  font-size: 13px;
  color: #777;
  font-style: italic;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

/* =========================================
   4. HOME PAGE LAYOUTS
   ========================================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 5% 40px 10%;
  gap: 40px;
  background: #f7f8fa;
  border-bottom: 1px solid #ececec;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 50px;
  line-height: 1.1;
  margin: 0;
}

.hero p {
  margin-top: 12px;
  font-size: 20px;
  color: #555;
}

.hero-image {
  width: 420px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.metrics {
  display: flex;
  justify-content: center;
  gap: 100px;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.metric h2 { font-size: 56px; margin: 0; }
.metric p { color: #666; margin-top: 8px; }

.services { padding: 50px 10%; }
.services h2 { text-align: center; font-size: 36px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 60px;
  margin-top: 70px;
}

.service-card h3 { margin-bottom: 10px; }
.service-card p { color: #555; }

.process { background: #f7f7f7; padding: 120px 10%; text-align: center; }
.steps { display: flex; justify-content: center; gap: 80px; margin-top: 70px; flex-wrap: wrap; }
.step { max-width: 260px; }
.steps span { font-size: 34px; color: #888; }

/* =========================================
   5. CARDS & GRIDS (Insights / Case Studies)
   ========================================= */
.insights { padding: 120px 10%; text-align: center; }

.insights-hero {
  max-width: 900px;
  margin: auto;
  padding: 10px;
}

.insights-hero h1 { font-size: 40px; margin-bottom: 0px; }

.insight-grid, .insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 60px auto 0;
  max-width: 1000px;
}

/* Consolidated Card Styling */
.insight-card {
  border: 1px solid #eee;
  padding: 28px;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.insight-card h3 {
  margin-top: 10px;
  font-size: 20px;
}

.insight-summary {
  margin-top: 10px;
  color: #555;
}

/* =========================================
   6. SERVICES PAGE (Methodology)
   ========================================= */
.methodology {
  background: #111;
  color: #fff;
  padding: 80px 10%;
  margin-top: 60px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.method-item h4 {
  color: #888;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.method-item p {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.4;
}

/* =========================================
   7. THOUGHT LEADERSHIP & ARTICLES
   ========================================= */
.thought { margin-top: 120px; }
.section-intro { color: #666; max-width: 600px; margin-bottom: 40px; }

.thought-layout, .thought-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.featured-story, .featured-article {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 40px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
  transition: all 0.2s ease;
}

.featured-story:hover, .featured-article:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.featured-story img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.featured-text h3, .featured-article h3 { font-size: 30px; margin: 10px 0; line-height: 1.3; }
.featured-text p, .article-desc { color: #555; line-height: 1.6; }

.side-articles, .story-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story-list { border-left: 1px solid #eee; padding-left: 30px; }
.story h4 { font-size: 18px; margin-bottom: 6px; }
.badge { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #666; }
.coming, .coming-soon { font-size: 12px; color: #aaa; }

.article-page, .article-wrapper, .article-container {
  max-width: 800px;
  margin: auto;
  padding: 100px 20px;
}

.article-header { max-width: 900px; margin: auto; padding: 30px 20px; }
.back-link { text-decoration: none; color: #666; font-size: 14px; }
.article-meta, .article-author { color: #777; margin-bottom: 30px; }
.article-lead { font-size: 20px; margin-bottom: 30px; }

.article-content p, .article-container p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.7;
}

.article-content h1, .article-container h1 { font-size: 42px; margin-bottom: 20px; }
.article-content h2, .article-container h2 { margin-top: 40px; margin-bottom: 10px; }
.article-content ul { margin-top: 15px; margin-bottom: 30px; }

/* =========================================
   8. FORMS, FOOTER & RESPONSIVE
   ========================================= */
.testimonial { background: #111; color: white; text-align: center; padding: 120px 20px; }
blockquote { font-size: 28px; max-width: 700px; margin: auto; }
.author { margin-top: 20px; color: #bbb; }

.contact { padding: 120px 10%; text-align: center; }
form { max-width: 420px; margin: auto; display: flex; flex-direction: column; gap: 15px; margin-top: 40px; }
input, textarea { padding: 14px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; }
button { padding: 14px; background: #111; color: white; border: none; border-radius: 6px; cursor: pointer; }
button:hover { background: #333; }

footer { text-align: center; padding: 40px; border-top: 1px solid #eee; color: #666; }

@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-image { width: 90%; }
  .metrics { flex-direction: column; gap: 40px; }
  .steps { flex-direction: column; align-items: center; }
  .nav-right { display: none; }
  .thought-layout, .thought-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .story-list { border-left: none; padding-left: 0; }
}

@media (max-width: 600px) {
  .method-grid { grid-template-columns: 1fr; }
}