/* SKArthajyoti - Finsmart-style professional accounting site */
:root {
  --navy: #07162e;
  --navy-light: #0f2645;
  --blue: #1b3d6d;
  --accent: #f4bf2a;
  --accent-hover: #deab1f;
  --text: #243447;
  --text-light: #66788a;
  --white: #ffffff;
  --gray-bg: #f4f8fc;
  --border: #dce6f1;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Inter', sans-serif;
  --btn-red: #c41e3a;
  --btn-red-hover: #a01830;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

/* ========== HEADER – Two-tier (Finsmart-style) ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

/* Top utility bar */
.header-utility {
  background: #f4f4f4;
  border-bottom: 1px solid #e8e8e8;
}
.header-utility-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.utility-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #555;
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}
.utility-link:hover { color: var(--navy); }
.utility-icon { flex-shrink: 0; }

/* Search – pill shape */
.utility-right { display: flex; align-items: center; }
.header-search {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 0 16px 0 18px;
  min-width: 220px;
  max-width: 280px;
}
.header-search-input {
  flex: 1;
  border: none;
  background: none;
  padding: 8px 10px 8px 0;
  font-size: 14px;
  color: var(--text);
  outline: none;
}
.header-search-input::placeholder { color: #999; }
.header-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: #666;
  cursor: pointer;
  padding: 6px 0 6px 8px;
}
.header-search-btn:hover { color: var(--navy); }

/* Main navigation bar */
.header-main {
  background: var(--white);
}
.header-main-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-block { flex-shrink: 0; }

/* Logo block: icon + brand name + tagline */
.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--btn-red);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.logo-tagline {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.3;
  margin-top: 2px;
}

/* Nav: flex container so menu + CTA sit on one row */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

/* Nav links with chevron */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav > ul > li { margin: 0; }
.main-nav ul a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 15px;
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.main-nav ul a:hover { color: var(--blue); }
.main-nav ul a.active { color: var(--blue); font-weight: 600; }
.nav-chevron { flex-shrink: 0; opacity: .8; }

/* CTA – pill with arrow, aligned right next to menu */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--btn-red);
  color: var(--white) !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  margin-left: 20px;
  transition: background .2s, transform .05s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-cta:hover { background: var(--btn-red-hover); color: var(--white); transform: translateY(-1px); }
.cta-arrow { flex-shrink: 0; }

/* Global solid button style (red) */
a.btn:not(.btn-outline) {
  background: var(--btn-red);
  color: var(--white);
}
a.btn:not(.btn-outline):hover { background: var(--btn-red-hover); color: var(--white); }

/* Dropdown – proper drop-down panel with stacked items */
.has-drop { position: relative; }
.has-drop .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--btn-red);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s, visibility .2s, transform .2s;
  list-style: none;
  margin: 0;
  z-index: 1002;
  display: block;
}
.has-drop:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Parent link + chevron on hover */
.has-drop:hover > a { color: #c17d2a; }
.has-drop:hover > a .nav-chevron { color: #c17d2a; }
/* Each dropdown item: block, stacked, no inline styling */
.has-drop .dropdown li {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}
.has-drop .dropdown a {
  display: block;
  padding: 12px 24px;
  color: #555;
  font-size: 15px;
  text-decoration: none;
  transition: color .15s, background .15s;
  border: none;
  white-space: nowrap;
}
.has-drop .dropdown a:hover {
  color: var(--navy);
  background: var(--gray-bg);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c41e3a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center no-repeat;
  cursor: pointer;
  background-color: transparent;
}

/* ========== HERO (Finsmart: big headline + tagline + CTAs) ========== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #061228 0%, var(--navy) 42%, var(--blue) 100%);
  color: var(--white);
  padding: 100px 24px 120px;
  text-align: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
/* Responsive background image (documents/banner1.jpg) */
.hero-with-bg {
  min-height: 420px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 40, .75);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}
.hero .hero-logo { height: 56px; width: auto; margin-bottom: 24px; filter: brightness(0) invert(1); }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero .tagline {
  font-size: 1.25rem;
  opacity: .92;
  margin: 0 0 40px;
  line-height: 1.5;
}
.hero .cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .05s, box-shadow .2s;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.hero .btn-primary {
  background: var(--btn-red);
  color: var(--white);
  border: none;
}
.hero .btn-primary:hover { background: var(--btn-red-hover); color: var(--white); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(196,30,58,.35); }
.hero .btn-second { background: var(--btn-red); color: var(--white); }
.hero .btn-second:hover { background: var(--btn-red-hover); color: var(--white); }
.hero .btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.hero .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.hero-btn-arrow { flex-shrink: 0; }

/* ========== SECTIONS (Finsmart: clear headings + divider) ========== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #335f92;
  margin-bottom: 12px;
}
.section-head {
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 16px;
  line-height: 1.3;
}
.section-head .divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 24px 0;
  border-radius: 2px;
}
.section-head p {
  color: var(--text-light);
  max-width: 640px;
  font-size: 1.0625rem;
  margin: 0;
  line-height: 1.7;
}

/* ========== ABOUT BLOCK (Finsmart: two-col possible) ========== */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .about-block { grid-template-columns: 1fr; } }
.about-block .text h2 { margin-top: 0; }
.about-block .text p { margin: 0 0 20px; }
.about-block .btn {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 28px;
  background: var(--btn-red);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.about-block .btn:hover { background: var(--btn-red-hover); color: var(--white); }

/* ========== SERVICE CARDS (Finsmart: grid, card with link) ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: box-shadow .25s, border-color .25s;
}
.service-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  border-color: var(--blue);
}
.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}
.service-card p {
  color: var(--text-light);
  font-size: .9375rem;
  margin: 0 0 20px;
  line-height: 1.6;
}
.service-card a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  font-size: .9375rem;
}
.service-card a:hover { text-decoration: underline; }

/* ========== DATA CONFIDENTIALITY & SECURITY PANEL ========== */
.security-panel {
  background: var(--btn-red);
  color: var(--white);
  padding: 56px 24px 64px;
  width: 100%;
}
.security-panel-inner {
  max-width: 800px;
  margin: 0 auto;
}
.security-panel h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--white);
}
.security-panel p {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,.95);
}
.security-panel p:last-child {
  margin-bottom: 0;
}

/* ========== STRENGTHS / STATS (Finsmart: counter blocks) ========== */
.strengths {
  background: var(--gray-bg);
  padding: 80px 24px;
}
.strengths-inner { max-width: 1200px; margin: 0 auto; }
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.strength-item {
  text-align: center;
}
.strength-item .num {
  font-size: 2.5rem;
  font-weight: 800;
  color: #254e81;
  line-height: 1.2;
  margin-bottom: 8px;
}
.strength-item .label {
  font-size: .9375rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ========== CTA STRIP (Finsmart: "Scale Smart. Grow Fast." style) ========== */
.cta-strip {
  background: var(--navy);
  color: var(--white);
  padding: 72px 24px;
  text-align: center;
}
.cta-strip h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 12px;
}
.cta-strip .sub {
  font-size: 1.0625rem;
  opacity: .9;
  margin: 0 0 28px;
}
.cta-strip .btn {
  display: inline-block;
  padding: 16px 36px;
  background: var(--btn-red);
  color: var(--white);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
}
.cta-strip .btn:hover { background: var(--btn-red-hover); color: var(--white); }

/* ========== FOOTER (Finsmart-style: full-width light gray top, full-width dark bar bottom) ========== */
.site-footer {
  color: #444;
  padding: 0;
  width: 100%;
}

/* Primary footer: full-width light gray band */
.footer-top {
  width: 100%;
  background: #e8eced;
  padding: 56px 0 48px;
}
.footer-top .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Bottom bar: full-width darker gray band */
.footer-bottom-bar {
  width: 100%;
  background: #d1d5db;
  padding: 16px 0;
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { padding: 40px 0 36px; }
  .footer-top .footer-inner { padding: 0 20px; }
}
.footer-col h4 {
  color: #2d3748;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-about-text {
  font-size: .9375rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 20px;
  max-width: 280px;
}
.footer-social-head {
  margin-top: 24px;
  margin-bottom: 12px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  color: #555;
  transition: color .2s, background .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.footer-social-icon:hover { color: var(--btn-red); background: var(--white); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: #555;
  text-decoration: none;
  font-size: .9375rem;
}
.footer-col a:hover { color: var(--btn-red); }
.footer-contact p {
  margin: 0 0 10px;
  font-size: .9375rem;
  line-height: 1.5;
  color: #555;
}
.footer-contact .footer-location {
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}
.footer-contact a { color: #555; text-decoration: none; }
.footer-contact a:hover { color: var(--btn-red); text-decoration: underline; }

/* Bottom bar content (inside .footer-bottom-inner) */
.footer-bottom-logo {
  display: flex;
  align-items: center;
}
.footer-bottom-logo img {
  height: 36px;
  width: auto;
  display: block;
}
.footer-copyright {
  margin: 0;
  font-size: .875rem;
  color: #374151;
  flex: 1;
  text-align: center;
}
.footer-back-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--btn-red);
  color: var(--white);
  border-radius: 6px;
  transition: background .2s;
  flex-shrink: 0;
}
.footer-back-top:hover { background: var(--btn-red-hover); color: var(--white); }
@media (max-width: 600px) {
  .footer-bottom-inner { padding: 14px 16px; flex-direction: column; text-align: center; }
  .footer-copyright { order: 2; flex: none; }
}

/* ========== PAGE CONTENT (About, Service detail, Contact) ========== */
.page-hero {
  background: linear-gradient(135deg, #061228 0%, var(--blue) 100%);
  color: var(--white);
  padding: 72px 24px 80px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 12px;
}
.page-hero .sub { font-size: 1.125rem; opacity: .92; margin: 0; }
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px;
}
.page-content h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 32px 0 16px;
}
.page-content p { margin: 0 0 20px; line-height: 1.7; }
.page-content ul { margin: 0 0 20px; padding-left: 24px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { font-size: 1.25rem; color: var(--navy); margin: 0 0 20px; }
.contact-info p { margin: 0 0 16px; }
/* Contact form — 4-column grid (matches Staff/Admin ERP style) */
.contact-form-erp .contact-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 18px;
  align-items: start;
}
.contact-form-erp .form-group { margin-bottom: 0; }
.contact-form-erp .contact-form-span-2 { grid-column: span 2; }
.contact-form-erp .contact-form-span-full { grid-column: 1 / -1; }
.contact-form-erp .contact-form-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) {
  .contact-form-erp .contact-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-form-erp .contact-form-span-2 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .contact-form-erp .contact-form-grid { grid-template-columns: 1fr; }
  .contact-form-erp .contact-form-span-2 { grid-column: 1 / -1; }
}
.contact-form .form-group { margin-bottom: 20px; }
.contact-form-erp .form-group { margin-bottom: 0; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text); }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: #f8f9fa;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 61, 109, .12);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  background: var(--btn-red);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.contact-form button:hover { background: var(--btn-red-hover); }
.map-wrap {
  background: var(--gray-bg);
  border-radius: 12px;
  overflow: hidden;
  min-height: 300px;
}
.map-wrap iframe { width: 100%; height: 300px; border: 0; display: block; }

/* Alerts */
.alert { padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

/* Mobile: compact top bar + red accent + stacked hero buttons */
@media (max-width: 900px) {
  .header-utility-inner { height: 36px; padding: 0 16px; }
  .utility-left { gap: 12px; }
  .utility-link { font-size: 12px; }
  .header-search { min-width: 140px; max-width: 180px; }
  .header-search-input { font-size: 13px; }
  .header-main-inner { height: auto; min-height: 56px; padding: 0 16px; }
  .logo-img { height: 38px; }
  .logo-name { font-size: 16px; }
  .logo-tagline { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 92px;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease-out;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    display: block;
    width: 100%;
  }
  .main-nav.is-open {
    max-height: 85vh;
    min-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .main-nav.is-open ul {
    flex-direction: column;
    padding: 16px 0 8px;
    align-items: stretch;
    border: none;
  }
  .main-nav ul { flex-direction: column; padding: 16px 0; align-items: stretch; }
  .main-nav ul li { margin: 0; border: none; }
  .main-nav ul a,
  .main-nav .btn-cta {
    display: block;
    padding: 14px 24px;
    color: var(--text);
    font-size: 16px;
    border: none;
  }
  .main-nav ul a:hover,
  .main-nav ul a.active { color: var(--blue); background: var(--gray-bg); }
  .main-nav .btn-cta {
    margin: 12px 24px 20px;
    justify-content: center;
    text-align: center;
    color: var(--white) !important;
  }
  .has-drop .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--gray-bg);
    margin: 0 0 4px 0;
    border-radius: 4px;
    transition: max-height .25s ease-out;
  }
  .has-drop.is-open .dropdown,
  .has-drop:hover .dropdown { max-height: 500px; }
  .has-drop .dropdown a { padding: 12px 24px 12px 32px; }
}

/* Hero: stacked red buttons on mobile (Finsmart-style) */
@media (max-width: 900px) {
  .hero { padding: 48px 20px 64px; }
  .hero .hero-logo { height: 44px; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 12px; }
  .hero .tagline { font-size: 1rem; margin-bottom: 28px; }
  .hero .cta {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 12px;
  }
  .hero .cta .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    justify-content: center;
  }
}
