/* ============================================
   K K Ashok & Co. — Premium CA Theme
   Deep navy + teal accent, clean serif display
   ============================================ */

/* === TOKENS === */
:root {
  --navy:    #0f2444;
  --navy2:   #1a3a6b;
  --teal:    #0d7d70;
  --teal-lt: #14a898;
  --sky:     #e8f2fc;
  --white:   #ffffff;
  --text:    #1e293b;
  --muted:   #64748b;
  --border:  #dde6f0;
  --shadow:  0 4px 24px rgba(15,36,68,.10);
  --radius:  6px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === SKIP LINK === */
.skip-link {
  position: absolute; top: -50px; left: 16px;
  background: var(--teal); color: #fff; padding: 8px 14px;
  border-radius: 0 0 4px 4px; font-weight: 700; z-index: 999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* === CONTAINER === */
.container { width: min(1180px, 92%); margin: 0 auto; }

/* === TOPBAR === */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 9px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar a { color: inherit; transition: color .2s; }
.topbar a:hover { color: var(--teal-lt); }
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.topbar-contact span { display: flex; align-items: center; gap: 6px; }
.social-icons { display: flex; gap: 8px; }
.social-icons a {
  display: inline-flex; width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; transition: background .2s, border-color .2s;
}
.social-icons a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* === NAVBAR === */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(15,36,68,.07);
}
.navrow {
  height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 58px; width: auto; object-fit: contain; }
.logo-text { font-weight: 800; color: var(--navy); line-height: 1.2; font-size: 17px; }
.logo-text small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .6px; text-transform: uppercase; }

.menu { display: flex; gap: 6px; align-items: center; }
.menu a {
  padding: 8px 14px; border-radius: 4px;
  font-weight: 600; font-size: 14.5px; color: var(--text);
  transition: color .2s, background .2s;
}
.menu a:hover, .menu a.active {
  color: var(--navy);
  background: var(--sky);
}
.menu a.active { color: var(--teal); background: transparent; border-bottom: 2px solid var(--teal); border-radius: 0; }

.callbtn {
  background: var(--teal);
  color: var(--white);
  padding: 11px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 14px;
  white-space: nowrap;
  transition: background .2s, transform .15s;
}
.callbtn:hover { background: var(--teal-lt); transform: translateY(-1px); }

/* === HAMBURGER === */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center;
  width: 40px; height: 40px; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; height: 2px; background: var(--navy);
  border-radius: 2px; transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero {
  min-height: 640px;
  background:
    linear-gradient(110deg, rgba(10,28,58,.92) 0%, rgba(15,36,68,.70) 50%, rgba(26,58,107,.40) 100%),
    url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
  display: flex; align-items: center; color: var(--white);
  padding: 60px 0;
}
.hero-inner { max-width: 680px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(13,125,112,.18);
  border: 1px solid rgba(13,125,112,.4);
  color: var(--teal-lt); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.6px;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--teal-lt); font-style: normal; }
.hero p {
  font-size: 18px; color: rgba(255,255,255,.82);
  max-width: 560px; margin-bottom: 34px; line-height: 1.7;
}
.hero-stats {
  display: flex; gap: 32px; margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15);
  flex-wrap: wrap;
}
.hero-stat strong { display: block; font-size: 30px; font-weight: 800; color: var(--teal-lt); }
.hero-stat span { font-size: 13px; color: rgba(255,255,255,.7); }

/* === PAGE HERO === */
.page-hero {
  min-height: 320px;
  background:
    linear-gradient(110deg, rgba(10,28,58,.90) 0%, rgba(15,36,68,.70) 100%),
    url('https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
  display: flex; align-items: center; color: var(--white);
  padding: 50px 0;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 12px;
}
.page-hero p { font-size: 17px; color: rgba(255,255,255,.78); max-width: 600px; }

/* Breadcrumb */
.breadcrumb {
  display: flex; gap: 6px; align-items: center;
  font-size: 13px; color: rgba(255,255,255,.6);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--teal-lt); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* === BUTTONS === */
.btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; transition: all .2s;
  cursor: pointer; border: none;
}
.btn.primary { background: var(--teal); color: var(--white); }
.btn.primary:hover { background: var(--teal-lt); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13,125,112,.35); }
.btn.secondary { background: transparent; border: 2px solid rgba(255,255,255,.7); color: var(--white); }
.btn.secondary:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn.outline { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: var(--white); }

/* === SECTIONS === */
.section { padding: 80px 0; }
.section.light { background: var(--sky); }
.section.dark { background: var(--navy); color: var(--white); }

.section-title { text-align: center; margin-bottom: 52px; }
.section-title .sub {
  display: inline-block;
  color: var(--teal); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; font-size: 12px; margin-bottom: 10px;
}
.section-title h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  color: var(--navy); line-height: 1.15;
}
.section.dark .section-title h2 { color: var(--white); }
.section-title p { color: var(--muted); max-width: 580px; margin: 12px auto 0; font-size: 16px; }

/* === ABOUT SECTION === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px; align-items: center;
}
.about-img-wrap { position: relative; }
.about-img {
  min-height: 460px;
  background: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  border-radius: var(--radius);
}
.badge {
  position: absolute; right: -24px; bottom: 32px;
  background: var(--teal); color: var(--white);
  padding: 22px 26px; border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(13,125,112,.35);
  font-weight: 700; text-align: center; min-width: 110px;
}
.badge b { font-size: 36px; display: block; font-family: var(--font-display); }
.badge span { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: .9; }

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--navy); line-height: 1.15; margin-bottom: 18px;
}
.about-content p { color: var(--muted); margin-bottom: 14px; font-size: 15.5px; }

.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 28px;
}
.feature {
  border-left: 3px solid var(--teal);
  background: var(--sky);
  padding: 14px 16px;
  font-weight: 600; color: var(--navy); font-size: 14px;
  border-radius: 0 4px 4px 0;
}

/* === SERVICES GRID === */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-bottom: 3px solid transparent;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-6px);
  border-bottom-color: var(--teal);
  box-shadow: 0 12px 40px rgba(15,36,68,.13);
}
.icon {
  width: 56px; height: 56px;
  background: #e6f5f4; color: #0d7d70;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 24px; margin-bottom: 18px;
}
.card h3 { color: var(--navy); font-size: 17px; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* === TRADEMARK / PROCESS SECTION === */
.tm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tm-list { display: grid; gap: 16px; }
.tm-item {
  display: flex; gap: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  padding: 20px; border-radius: var(--radius);
  transition: background .2s;
}
.tm-item:hover { background: rgba(255,255,255,.11); }
.num {
  width: 44px; height: 44px; flex: 0 0 44px;
  background: var(--teal); color: var(--white);
  border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 16px;
}
.tm-item h3 { color: var(--white); margin-bottom: 4px; font-size: 16px; }
.tm-item p { color: rgba(255,255,255,.65); font-size: 14px; }
.tm-img {
  min-height: 420px; border-radius: var(--radius);
  background: url('https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
}

/* === CONTACT STRIP === */
.contact-strip { background: var(--navy); color: var(--white); padding: 48px 0; }
.contact-strip .container {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.contact-strip h2 { font-family: var(--font-display); font-size: 28px; margin-bottom: 6px; }
.contact-strip p { color: rgba(255,255,255,.7); font-size: 15px; }
.contact-strip .cta-wa {
  background: #25d366; color: var(--white);
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 700; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.contact-strip .cta-wa:hover { background: #1da951; transform: translateY(-2px); }

/* === FAQ === */
.faq-item {
  background: var(--white);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15,36,68,.06);
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 22px; cursor: pointer; user-select: none;
  color: var(--navy); font-weight: 700; font-size: 16px;
  background: none; border: none; width: 100%; text-align: left;
  gap: 16px; transition: background .2s;
}
.faq-q:hover { background: var(--sky); }
.faq-q .chevron { flex-shrink: 0; transition: transform .3s; color: var(--teal); font-size: 18px; }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 22px;
  color: var(--muted); font-size: 15px; line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 22px 20px; }

/* === CONTACT PAGE === */
.contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.info-box, .form-box {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.info-box h2, .form-box h2 {
  font-family: var(--font-display);
  font-size: 26px; color: var(--navy); margin-bottom: 22px;
}
.info-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px;
}
.info-row:last-child { border-bottom: none; }
.info-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: #e6f5f4; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px;
}
.info-row strong { display: block; color: var(--navy); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.info-row p, .info-row a { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.info-row a:hover { color: var(--teal); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14.5px; color: var(--text);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,125,112,.12);
}
.form-group textarea { height: 130px; resize: vertical; }

/* === ABOUT PAGE SECTIONS === */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.value-card .v-icon { font-size: 28px; margin-bottom: 12px; }
.value-card h4 { color: var(--navy); font-size: 16px; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 14px; }

.team-section { background: var(--sky); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 22px;
  box-shadow: var(--shadow);
}
.team-card h4 { color: var(--navy); font-size: 16px; margin-bottom: 8px; font-weight: 700; }
.team-card ul { list-style: none; }
.team-card li {
  font-size: 13.5px; color: var(--muted);
  padding: 4px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.team-card li:last-child { border-bottom: none; }
.team-card li::before { content: "›"; color: var(--teal); font-weight: 700; }

.specialisation { background: var(--white); }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.spec-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--sky); border-radius: var(--radius);
  font-size: 14.5px; color: var(--text); font-weight: 500;
}
.spec-item::before { content: "✓"; color: var(--teal); font-weight: 800; flex-shrink: 0; }

/* === CONTENT PAGES (privacy, terms) === */
.content {
  background: var(--white); border-radius: var(--radius);
  padding: 40px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.content h2 { font-family: var(--font-display); font-size: 28px; color: var(--navy); margin: 28px 0 12px; }
.content h2:first-child { margin-top: 0; }
.content p { color: var(--muted); margin-bottom: 14px; font-size: 15px; }
.content ul { margin-left: 22px; margin-bottom: 14px; }
.content li { color: var(--muted); font-size: 15px; margin-bottom: 8px; list-style: disc; }

/* === FOOTER === */
.footer { background: #07111f; color: #c8d8ea; padding: 64px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; }
.footer h3 { color: var(--white); font-size: 16px; margin-bottom: 20px; font-weight: 700; }
.footer p { font-size: 14px; line-height: 1.7; color: #8da3b8; }
.footer li { font-size: 14px; color: #8da3b8; margin-bottom: 10px; line-height: 1.6; }
.footer li a { transition: color .2s; }
.footer li a:hover { color: var(--teal-lt); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo img { height: 44px; width: auto; }
.footer-logo span { font-weight: 700; color: var(--white); font-size: 16px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07); border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #8da3b8;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--teal); color: var(--white); }
.footer-address { font-size: 13.5px; color: #8da3b8; line-height: 1.7; }
.footer-address strong { color: #b0c8e0; display: block; margin-top: 10px; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px; padding-top: 20px;
  text-align: center; color: #617387; font-size: 13px;
}

/* === FLOAT BUTTONS === */
.float {
  position: fixed; right: 18px; bottom: 20px;
  display: flex; flex-direction: column; gap: 10px; z-index: 200;
}
.float a {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--white); font-size: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
}
.float a:hover { transform: scale(1.1); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.float .whatsapp { background: #25d366; }
.float .phone { background: var(--teal); }

/* === BLOG PAGE (placeholder) === */
.blog-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(15,36,68,.12); }
.blog-img { height: 190px; background: var(--sky); overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 24px; }
.blog-tag { font-size: 11px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 1px; }
.blog-card h3 { color: var(--navy); font-size: 17px; margin: 8px 0 10px; }
.blog-card p { color: var(--muted); font-size: 14px; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .menu {
    display: none; flex-direction: column;
    position: absolute; top: 80px; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--border);
    padding: 16px 20px 24px; box-shadow: 0 12px 24px rgba(0,0,0,.1);
    gap: 4px; z-index: 99;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 16px; border-radius: 6px; }
  .menu a.active { background: var(--sky); color: var(--teal); border-bottom: none; }
  .navbar { position: sticky; }

  .hero { min-height: 540px; }
  .about-grid, .tm-grid, .contact-box { grid-template-columns: 1fr; }
  .badge { right: 10px; }
  .grid, .grid3, .foot-grid, .values-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .contact-strip .container { flex-direction: column; align-items: flex-start; }
  .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .topbar { display: none; }
  .logo img { height: 46px; }
  .logo-text { font-size: 14px; }
  .callbtn { padding: 9px 14px; font-size: 13px; }
  .grid, .grid3, .foot-grid, .values-grid, .team-grid, .features { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { min-height: 480px; }
  .hero-stats { gap: 20px; }
  .about-img { min-height: 300px; }
  .tm-img { min-height: 260px; }
}
