/* ==========================================================================
   L SARAVANAN & CO — Chartered Accountants
   Master Stylesheet
   ==========================================================================
   Edit colours / fonts / spacing here and every page updates.
   ========================================================================== */

/* -------- 1. Design Tokens (change brand here) -------- */
:root {
  --navy:        #0d1f3c;
  --navy-dark:   #081530;
  --navy-light:  #1a3258;
  --gold:        #c9a449;
  --gold-dark:   #a8862c;
  --gold-light:  #e2c574;
  --bg:          #ffffff;
  --bg-soft:     #f7f8fa;
  --bg-muted:    #eef1f6;
  --text:        #1a1d24;
  --text-muted:  #5b6472;
  --border:      #e5e8ed;
  --success:     #16a34a;
  --shadow-sm:   0 1px 3px rgba(13, 31, 60, .06), 0 1px 2px rgba(13, 31, 60, .04);
  --shadow-md:   0 4px 12px rgba(13, 31, 60, .08), 0 2px 4px rgba(13, 31, 60, .04);
  --shadow-lg:   0 20px 40px rgba(13, 31, 60, .12), 0 8px 16px rgba(13, 31, 60, .06);
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --container:   1200px;
  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head:   'Playfair Display', Georgia, serif;
  --transition:  all .25s cubic-bezier(.4, 0, .2, 1);
}

/* -------- 2. Reset & Base -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;        /* stop sideways scroll / white gap on the right */
  width: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;        /* clip any element that exceeds viewport width */
  width: 100%;
  max-width: 100%;
  position: relative;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* -------- 3. Typography -------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--navy); line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: .75rem; }
h4 { font-size: 1.125rem; margin-bottom: .5rem; }
p  { color: var(--text-muted); margin-bottom: 1rem; }
.lead { font-size: 1.125rem; line-height: 1.7; color: var(--text-muted); }

/* -------- 4. Layout helpers -------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-bg { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: #fff; }
.section-navy p { color: rgba(255, 255, 255, .8); }

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-heading p { font-size: 1.0625rem; }

/* -------- 5. Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-light); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { color: var(--navy); }
.btn-ghost:hover { color: var(--gold-dark); }
.btn-block { width: 100%; justify-content: center; }

/* -------- 6. Top bar (above nav) -------- */
.topbar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .85);
  font-size: .85rem;
  padding: .5rem 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: var(--gold-light); }
.topbar-info { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: .35rem; }

/* -------- 7. Navbar (dark premium) -------- */
.navbar {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-bottom: 1px solid rgba(201, 164, 73, .18);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 1.5rem;
}

/* Brand block — ICAI logo + firm name + tagline */
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-icai {
  height: 56px;
  width: auto;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.brand-sub {
  font-size: .72rem;
  color: var(--gold-light);
  letter-spacing: .22em;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: .15rem;
}
.brand-tagline {
  font-family: var(--font-head);
  font-style: italic;
  font-size: .82rem;
  color: rgba(255, 255, 255, .7);
  margin-top: .2rem;
  letter-spacing: .01em;
}

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  color: rgba(255, 255, 255, .82);
  font-weight: 500;
  font-size: .92rem;
  position: relative;
  letter-spacing: .01em;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links a.active::after,
.nav-links a:hover::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--gold);
}

/* dropdown (still light card for readability) */
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 1rem;
  min-width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-drop-menu a {
  padding: .65rem .85rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--text);
}
.nav-drop-menu a:hover { background: var(--bg-soft); color: var(--navy); }
.nav-drop-menu a::after { display: none !important; }

.menu-toggle { display: none; width: 40px; height: 40px; }
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--gold-light); margin: 5px auto;
  transition: var(--transition);
}

/* -------- 8a. Video Hero (PwC-style) -------- */
.hero-video {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(201,164,73,.10) 0%, transparent 50%),
    linear-gradient(135deg, rgba(13,31,60,.88) 0%, rgba(13,31,60,.65) 60%, rgba(8,21,48,.92) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-video-content {
  position: relative;
  z-index: 2;
  width: 100%;
  color: #fff;
  padding: 5rem 0;
}
.hero-video-content h1 { color: #fff; margin-bottom: 1.25rem; max-width: 900px; }
.hero-video-content h1 .accent { color: var(--gold-light); }
.hero-video-content .lead { color: rgba(255,255,255,.88); max-width: 720px; font-size: 1.15rem; margin-bottom: 2rem; }
.hero-video-content .hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-video-content .hero-stats {
  display: grid; grid-template-columns: repeat(4, max-content);
  gap: 2.5rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15);
}
.hero-video-content .hero-stat-val { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--gold-light); }
.hero-video-content .hero-stat-lab { font-size: .82rem; color: rgba(255,255,255,.7); }

/* Video play state indicator (subtle dot, top-right) */
.hero-video-badge {
  position: absolute; top: 1.5rem; right: 1.5rem;
  z-index: 3;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  color: #fff; font-size: .75rem; font-weight: 500;
  padding: .4rem .85rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  display: inline-flex; align-items: center; gap: .5rem;
}
.hero-video-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .5; transform: scale(1.3); }
}

/* -------- 8b. Tech / Automation section -------- */
.tech-section {
  position: relative;
  background:
    radial-gradient(circle at 20% 30%, rgba(201,164,73,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201,164,73,.06) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  padding: 5rem 0;
  overflow: hidden;
}
.tech-section h2 { color: #fff; }
.tech-section .lead, .tech-section p { color: rgba(255,255,255,.82); }
.tech-section .eyebrow { color: var(--gold-light); }
.tech-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
}
.tech-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,.07);
  border-color: rgba(201,164,73,.4);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
.tech-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  display: grid; place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.tech-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: .5rem; }
.tech-card p  { color: rgba(255,255,255,.75); font-size: .92rem; margin: 0; }

/* -------- 8. Hero (original — kept for inner pages) -------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 6rem 0 5rem;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201, 164, 73, .12) 0%, transparent 50%),
              radial-gradient(circle at 10% 90%, rgba(201, 164, 73, .08) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--gold-light); }
.hero .lead { color: rgba(255, 255, 255, .85); font-size: 1.15rem; max-width: 600px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .15); }
.hero-stat-val { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--gold-light); }
.hero-stat-lab { font-size: .85rem; color: rgba(255, 255, 255, .7); }
.hero-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.hero-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: 1.25rem; }
.hero-card ul li {
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .9);
  display: flex; align-items: center; gap: .75rem;
}
.hero-card ul li:last-child { border: 0; }
.hero-card ul li::before {
  content: '✓'; color: var(--gold-light); font-weight: 700;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(201, 164, 73, .15); display: grid; place-items: center;
  font-size: .8rem; flex-shrink: 0;
}

/* -------- 9. Inner page header (non-home) -------- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: .5rem; }
.page-header p { color: rgba(255, 255, 255, .85); max-width: 700px; margin: 0 auto; }
.breadcrumbs { font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--gold-light); }
.breadcrumbs a:hover { color: #fff; }

/* -------- 10. Cards -------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.card p { font-size: .95rem; margin-bottom: 1rem; }
.card-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .9rem; font-weight: 600; color: var(--navy);
}
.card-link:hover { gap: .65rem; color: var(--gold-dark); }

/* numbered why-us card */
.why-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.75rem;
  transition: var(--transition);
  height: 100%;
  overflow: hidden;
}
.why-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.why-card:hover::before { transform: scaleX(1); }
.why-num {
  font-family: var(--font-head); font-weight: 700;
  font-size: 2.5rem; line-height: 1; color: var(--gold-dark);
  margin-bottom: .75rem; display: block;
}
.why-card h3 { font-size: 1.1rem; line-height: 1.3; margin-bottom: .65rem; }
.why-card p  { font-size: .92rem; margin: 0; line-height: 1.6; }

/* feature card variant */
.feature {
  display: flex; gap: 1.25rem; padding: 1.5rem; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--border);
}
.feature-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 10px;
  background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 1.25rem; }
.feature h4 { margin-bottom: .25rem; }
.feature p { font-size: .9rem; margin: 0; }

/* stats strip */
.stats-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.stat-item { background: #fff; padding: 2rem 1rem; text-align: center; }
.stat-val { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-lab { font-size: .85rem; color: var(--text-muted); margin-top: .5rem; letter-spacing: .03em; }

/* -------- 11. Why-us / list with check icons -------- */
.checklist li {
  padding: .65rem 0 .65rem 2rem;
  position: relative;
  color: var(--text);
}
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: .7rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
}

/* -------- 12. Industry pills -------- */
.pill-row { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.pill {
  padding: .55rem 1.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .9rem; font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.pill:hover { border-color: var(--gold); color: var(--navy); transform: translateY(-2px); }

/* -------- 13. Testimonial / quote -------- */
.quote {
  background: #fff; border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.quote p { font-style: italic; color: var(--text); font-size: 1.05rem; margin-bottom: 1.5rem; }
.quote-author { display: flex; align-items: center; gap: .85rem; }
.quote-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--gold); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700;
}
.quote-name { font-weight: 600; color: var(--navy); font-size: .95rem; }
.quote-role { font-size: .8rem; color: var(--text-muted); }

/* -------- 14. CTA band -------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(201, 164, 73, .15) 0%, transparent 50%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 600px; margin: 0 auto 2rem; }

/* -------- 15. Forms -------- */
.form-grid { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit; font-size: .95rem; color: var(--text);
  background: #fff; transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(13, 31, 60, .08);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--text-muted); }
.form-success {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534;
  padding: 1rem; border-radius: var(--radius); margin-top: 1rem; display: none;
}
.form-success.show { display: block; }

/* -------- 16. Contact info card -------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-info { display: grid; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; }
.contact-item-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg-soft); color: var(--navy); display: grid; place-items: center; font-size: 1.1rem;
}
.contact-item h4 { margin-bottom: .15rem; font-size: 1rem; }
.contact-item p, .contact-item a { font-size: .95rem; color: var(--text-muted); margin: 0; }

/* -------- 17. Blog -------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.blog-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition); display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img {
  height: 180px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: grid; place-items: center; color: var(--gold-light); font-family: var(--font-head); font-size: 1.5rem;
}
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: .8rem; color: var(--text-muted); letter-spacing: .05em; text-transform: uppercase; margin-bottom: .5rem; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: .75rem; }
.blog-card p { font-size: .9rem; flex: 1; }

.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.article h3 { font-size: 1.2rem; margin-top: 2rem; }
.article p { font-size: 1.0625rem; line-height: 1.8; margin-bottom: 1.25rem; color: var(--text); }
.article ul { padding-left: 1.5rem; list-style: disc; margin-bottom: 1.25rem; }
.article ul li { padding: .35rem 0; color: var(--text); }
.article-meta { color: var(--text-muted); font-size: .9rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }

/* -------- 18. Footer -------- */
.footer { background: var(--navy-dark); color: rgba(255, 255, 255, .75); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .95rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-brand p { color: rgba(255, 255, 255, .7); font-size: .9rem; max-width: 320px; }
.footer ul li { padding: .35rem 0; }
.footer ul li a { color: rgba(255, 255, 255, .7); font-size: .9rem; }
.footer ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  font-size: .85rem; color: rgba(255, 255, 255, .55);
}

/* -------- 18b. Financial Calendar -------- */
.cal-controls {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: end;
  background: #fff; padding: 1.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.cal-controls label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.cal-controls select {
  padding: .65rem .85rem; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: .95rem; background: #fff; color: var(--text);
  min-width: 140px;
}
.cal-controls select:focus { outline: none; border-color: var(--navy); }

.cal-title {
  font-family: var(--font-head); font-size: 1.75rem; color: var(--navy);
  margin-bottom: 1.25rem; text-align: center;
}

.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; padding: 4px;
}
.cal-head {
  background: var(--navy); color: var(--gold-light);
  text-align: center; font-size: .78rem; font-weight: 600;
  padding: .65rem .25rem; letter-spacing: .08em;
}
.cal-cell {
  background: #fff;
  min-height: 90px; padding: .5rem;
  position: relative; cursor: default;
  transition: background .2s ease;
}
.cal-cell.cal-blank { background: #fafafa; }
.cal-cell.cal-has-events { cursor: pointer; background: #fffdf7; }
.cal-cell.cal-has-events:hover { background: #fff8e7; }
.cal-cell.cal-selected { background: var(--navy); color: #fff; }
.cal-cell.cal-selected .cal-num, .cal-cell.cal-selected .cal-label { color: #fff; }

.cal-num { font-weight: 600; color: var(--navy); font-size: .95rem; }
.cal-dots { display: flex; gap: 3px; margin: .25rem 0; flex-wrap: wrap; }
.cal-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  vertical-align: middle;
}
/* Category colours */
.cal-gst               { background: #3b82f6; }   /* blue   */
.cal-income-tax        { background: #f59e0b; }   /* orange */
.cal-pf-esi            { background: #ef4444; }   /* red    */
.cal-mca               { background: #a855f7; }   /* purple */
.cal-income-tax-direct { background: #10b981; }   /* green  */
.cal-msme              { background: #14b8a6; }   /* teal   */
.cal-fema              { background: #1e3a8a; }   /* dark blue */
.cal-customs           { background: #92400e; }   /* brown  */
.cal-rbi               { background: #be123c; }   /* deep red */

.cal-label {
  font-size: .72rem; color: var(--text-muted); line-height: 1.25;
  margin-top: .15rem; word-break: break-word;
}

.cal-legend {
  display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center;
  margin: 2rem 0; padding: 1rem 1.5rem; background: #fffaf0;
  border-radius: var(--radius); border: 1px solid #f1e3c5;
  font-size: .85rem;
}
.cal-legend span { display: inline-flex; align-items: center; gap: .4rem; color: var(--text); }

.cal-details {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm); min-height: 100px;
}
.cal-prompt { color: var(--text-muted); margin: 0; font-style: italic; }
.cal-prompt-empty { color: #b45309; }
.cal-prompt-empty code { background: #fff3d0; padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: .85em; }

.cal-detail-title {
  font-family: var(--font-head); color: var(--navy);
  font-size: 1.25rem; margin-bottom: 1rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--border);
}
.cal-detail-item {
  display: flex; gap: .85rem; padding: .9rem 0;
  border-bottom: 1px solid var(--border);
}
.cal-detail-item:last-child { border: 0; }
.cal-detail-item .cal-dot { width: 14px; height: 14px; margin-top: 6px; flex-shrink: 0; }
.cal-detail-cat { font-size: .72rem; font-weight: 600; color: var(--gold-dark); letter-spacing: .08em; text-transform: uppercase; }
.cal-detail-name { font-weight: 600; color: var(--navy); font-size: 1rem; margin: .15rem 0 .25rem; }
.cal-detail-body { color: var(--text-muted); font-size: .92rem; line-height: 1.5; }

/* Coming-soon stub pages */
.coming-soon {
  text-align: center;
  padding: 5rem 1.5rem;
}
.coming-soon-icon {
  display: inline-grid; place-items: center;
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy); font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

/* Mobile calendar */
@media (max-width: 768px) {
  .cal-cell { min-height: 68px; padding: .35rem; }
  .cal-num { font-size: .85rem; }
  .cal-label { display: none; }
  .cal-dot { width: 8px; height: 8px; }
  .cal-controls { padding: 1rem; }
  .cal-controls select { min-width: 120px; }
}

/* -------- 19. Floating WhatsApp -------- */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  /* Hide the emoji text content and show the real WhatsApp logo instead */
  font-size: 0;
  background-image: url("../images/whatsapp.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px 32px;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; background-color: #1ebe57; }

/* -------- 20. Reveal-on-scroll animation -------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* -------- 21. Responsive (mobile) -------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .topbar-info { font-size: .75rem; gap: 1rem; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-dark);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: .85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .85);
  }
  .nav-links a:hover { color: var(--gold-light); }
  .nav-links a::after { display: none !important; }
  .nav-drop-menu {
    position: static; transform: none; min-width: 0; opacity: 1; visibility: visible;
    box-shadow: none; padding: 0 0 0 1rem; grid-template-columns: 1fr; display: none;
    background: transparent;
  }
  .nav-drop.open .nav-drop-menu { display: grid; }
  .nav-drop-menu a { color: rgba(255, 255, 255, .75); }
  .nav-drop-menu a:hover { background: rgba(255, 255, 255, .05); color: var(--gold-light); }

  .brand-icai { height: 44px; }
  .brand-name { font-size: 1.2rem; }
  .brand-tagline { display: none; }

  .hero { padding: 4rem 0 3rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-video { min-height: 60vh; }
  .hero-video-content { padding: 3rem 0; }
  .hero-video-content .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .tech-section { padding: 3.5rem 0; }
  .cta-band { padding: 2rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: left; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .topbar .container { justify-content: center; }
  .brand-icai { height: 38px; padding: 4px 8px; }
  .brand-name { font-size: 1.05rem; }
  .brand-sub { font-size: .65rem; letter-spacing: .15em; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
