/* ============================================================
   Kandy Tax Solutions — Design System
   Professional Blue / Corporate Clean
   ============================================================ */

:root {
  /* Brand palette */
  --navy:        #0a2540;
  --blue:        #1d4ed8;
  --blue-600:    #2563eb;
  --blue-500:    #3b82f6;
  --blue-50:     #eff4ff;
  --sky:         #e8f0fe;
  --accent:      #0ea5e9;

  /* Brand gold (from logo) */
  --gold:        #c79a3a;
  --gold-bright: #e3b84f;
  --gold-deep:   #a87d24;
  --gold-50:     #fbf3df;

  /* Neutrals */
  --ink:         #0b1220;
  --slate:       #475569;
  --slate-400:   #94a3b8;
  --line:        #e6ebf2;
  --bg:          #ffffff;
  --bg-soft:     #f7f9fc;

  /* Effects */
  --shadow-sm:   0 1px 3px rgba(10,37,64,.06), 0 1px 2px rgba(10,37,64,.04);
  --shadow-md:   0 8px 24px rgba(10,37,64,.08);
  --shadow-lg:   0 24px 60px rgba(10,37,64,.14);
  --radius:      14px;
  --radius-lg:   22px;
  --maxw:        1180px;
  --ease:        cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p  { color: var(--slate); }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 1px solid transparent; transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--navy); box-shadow: 0 8px 22px rgba(199,154,58,.38); }
.btn--primary:hover { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--navy); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(199,154,58,.5); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: #06182c; transform: translateY(-2px); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-deep);
  background: var(--gold-50); padding: 7px 14px; border-radius: 999px;
}
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.08rem; }

/* ============================================================
   Header / Navigation
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: all .3s var(--ease);
}
.header.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: #fff; transition: color .3s; }
.header.scrolled .brand { color: var(--navy); }

/* Logo image in nav. Sits on a navy bar at the top, so we add a soft plate
   behind it for contrast; once scrolled the bar turns white. */
.brand__logo { height: 50px; width: auto; display: block; }
.header:not(.scrolled) .brand__logo {
  background: rgba(255,255,255,.92); padding: 5px 12px; border-radius: 12px; box-shadow: var(--shadow-sm);
}
.brand__mark {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(37,99,235,.4); flex: none;
}
.brand__name { font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.1; }
.brand__name small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }

.nav__links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav__links a { color: rgba(255,255,255,.9); font-weight: 500; font-size: .96rem; position: relative; transition: color .25s; }
.header.scrolled .nav__links a { color: var(--slate); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--blue-500); transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--blue-500); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 14px; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; border-radius: 2px; }
.header.scrolled .nav__toggle span { background: var(--navy); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; padding: 170px 0 110px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(59,130,246,.35), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(14,165,233,.22), transparent 55%),
    linear-gradient(160deg, #0a2540 0%, #0e2f54 55%, #123a66 100%);
  color: #fff; overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 600;
  letter-spacing: .05em; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 8px 16px; border-radius: 999px; color: #dbeafe; margin-bottom: 26px;
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
.hero h1 .grad { background: linear-gradient(120deg, #7dd3fc, #c7d2fe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { color: #c6d4e8; font-size: 1.18rem; max-width: 540px; margin: 24px 0 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 30px; margin-top: 46px; flex-wrap: wrap; }
.hero__trust .t { }
.hero__trust .t b { display: block; font-size: 1.7rem; color: #fff; letter-spacing: -.02em; }
.hero__trust .t span { font-size: .85rem; color: #93accb; }

/* Hero visual / image slot */
.hero__visual { position: relative; }
.hero__media {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4;
  background: linear-gradient(135deg, #1e3a5f, #2a4a72);
  display: grid; place-items: center; text-align: center;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.img-slot {
  color: #9db8d8; font-size: .8rem; padding: 30px; border: 2px dashed rgba(157,184,216,.4);
  border-radius: 16px; margin: 18px; line-height: 1.5;
}
.img-slot b { color: #cfe0f5; display: block; margin-bottom: 6px; font-size: .9rem; }

.hero__card {
  position: absolute; background: #fff; border-radius: 16px; padding: 16px 18px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
}
.hero__card .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--blue-50); display: grid; place-items: center; color: var(--blue-600); flex: none; }
.hero__card b { color: var(--navy); font-size: .95rem; display: block; }
.hero__card span { color: var(--slate); font-size: .8rem; }
.hero__card--1 { top: 28px; left: -28px; animation: float 5s ease-in-out infinite; }
.hero__card--2 { bottom: 40px; right: -22px; animation: float 6s ease-in-out infinite .5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Trusted strip */
.strip { background: var(--bg); border-bottom: 1px solid var(--line); padding: 26px 0; }
.strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.strip p { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--slate-400); }
.strip__logos { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; }
.strip__logos span { font-weight: 800; color: #c2ccd9; font-size: 1.15rem; letter-spacing: -.02em; }

/* ============================================================
   Services
   ============================================================ */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.service::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright)); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service__icon {
  width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-50), #dbe8ff); color: var(--blue-600); margin-bottom: 22px;
  transition: all .3s var(--ease);
}
.service:hover .service__icon { background: linear-gradient(135deg, var(--blue-600), var(--blue-500)); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service h3 { margin-bottom: 10px; }
.service p { font-size: .96rem; }
.service__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--blue-600); font-weight: 600; font-size: .9rem; transition: gap .25s; }
.service:hover .service__link { gap: 12px; }

/* ============================================================
   Why / About (split)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--blue-50), #d6e4ff); aspect-ratio: 1/1; position: relative; display: grid; place-items: center;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media .img-slot { color: #6b8cb5; border-color: rgba(107,140,181,.4); }
.split__media .img-slot b { color: #2d4a73; }
.feat-list { list-style: none; margin-top: 30px; display: grid; gap: 20px; }
.feat-list li { display: flex; gap: 16px; align-items: flex-start; }
.feat-list .chk { width: 30px; height: 30px; border-radius: 9px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; flex: none; }
.feat-list b { color: var(--navy); display: block; }
.feat-list span { color: var(--slate); font-size: .95rem; }

/* Stats band */
.stats { background: linear-gradient(135deg, var(--navy), #123a66); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stats__grid .s b { font-size: clamp(2.2rem, 4vw, 3rem); display: block; letter-spacing: -.02em; background: linear-gradient(120deg, #fff, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats__grid .s span { color: #a9c0dc; font-size: .95rem; }

/* ============================================================
   Process
   ============================================================ */
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: all .3s var(--ease); }
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.step__num {
  counter-increment: step; width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 18px;
}
.step__num::before { content: "0" counter(step); }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: .92rem; }

/* ============================================================
   Testimonials
   ============================================================ */
.tst__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tst {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: all .3s var(--ease);
}
.tst:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.tst__stars { color: #f59e0b; margin-bottom: 16px; letter-spacing: 2px; }
.tst__quote { color: var(--ink); font-size: 1.02rem; font-weight: 500; }
.tst__person { display: flex; align-items: center; gap: 13px; margin-top: 22px; }
.tst__avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.tst__person b { color: var(--navy); display: block; font-size: .95rem; }
.tst__person span { color: var(--slate-400); font-size: .85rem; }

/* ============================================================
   CTA + Contact
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.contact__info h2 { color: var(--navy); }
.contact__cards { display: grid; gap: 16px; margin-top: 32px; }
.cinfo { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: all .25s; }
.cinfo:hover { border-color: var(--blue-500); box-shadow: var(--shadow-sm); }
.cinfo .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; flex: none; }
.cinfo b { color: var(--navy); display: block; font-size: .95rem; }
.cinfo span { color: var(--slate); font-size: .92rem; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-md); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px;
  font-family: inherit; font-size: .96rem; color: var(--ink); background: var(--bg-soft); transition: all .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(59,130,246,.12); }
.field textarea { resize: vertical; min-height: 110px; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form__note { text-align: center; font-size: .82rem; color: var(--slate-400); margin-top: 14px; }
.form__success { display: none; text-align: center; padding: 20px; background: #ecfdf5; color: #047857; border-radius: 12px; font-weight: 600; margin-top: 16px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--navy); color: #c6d4e8; padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; margin-bottom: 18px; }
.brand__logo--footer { height: 64px; background: rgba(255,255,255,.95); padding: 8px 14px; border-radius: 14px; }
.footer p { color: #93accb; font-size: .94rem; max-width: 320px; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { color: #a9c0dc; font-size: .93rem; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer__social { display: flex; gap: 12px; margin-top: 22px; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #c6d4e8; transition: all .25s; }
.footer__social a:hover { background: var(--blue-600); color: #fff; transform: translateY(-3px); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 52px; padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; color: #7e96b6; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 460px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .services__grid, .tst__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid, .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; padding: 24px; gap: 18px; box-shadow: var(--shadow-md); border-top: 1px solid var(--line);
  }
  .nav__links.open a { color: var(--navy); }
  .services__grid, .tst__grid, .process__grid, .footer__grid, .form__row { grid-template-columns: 1fr; }
  .hero__card--1 { left: 8px; } .hero__card--2 { right: 8px; }
  .form { padding: 26px; }
}
