/* ==========================================================
   TAXLOCK CORPORATE ADVISORS — Light Corporate Theme (v3)
   Big-corporate look: white canvas, subtle blues, clean type
   Static HTML/CSS/JS — No external dependencies
   ========================================================== */

:root{
  --bg: #ffffff;
  --bg2:#f6f8fc;
  --panel:#ffffff;
  --panel2:#f7f9ff;

  --stroke:#e6eaf2;
  --stroke2:#d9deea;

  --text:#0b1220;
  --muted:#465166;
  --muted2:#6b768c;

  --brand:#2563eb;     /* blue */
  --brand2:#06b6d4;    /* cyan */
  --brand3:#7c3aed;    /* violet */

  --shadow: 0 18px 45px rgba(10, 20, 40, 0.10);
  --shadow2: 0 10px 25px rgba(10, 20, 40, 0.08);
  --radius: 14px;
  --radius2: 18px;
  --container: 1180px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(900px 650px at 12% 12%, rgba(37,99,235,0.10), transparent 55%),
    radial-gradient(900px 650px at 88% 14%, rgba(6,182,212,0.10), transparent 55%),
    radial-gradient(900px 650px at 50% 120%, rgba(124,58,237,0.08), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height:1.55;
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:0.95; }
img{ max-width:100%; display:block; }

.container{ width:min(var(--container), calc(100% - 40px)); margin:0 auto; }

.small{ font-size:0.95rem; color: var(--muted2); }
.muted{ color: var(--muted); }

.hr{
  height:1px;
  background: linear-gradient(90deg, transparent, var(--stroke), transparent);
  margin: 22px 0;
}

.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:9px 12px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,0.72);
  color: var(--muted);
}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke2);
  background: #fff;
  color: var(--text);
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  user-select:none;
  font-weight:700;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
  border-color: #cfd6e6;
}
.btn.primary{
  border:1px solid rgba(37,99,235,0.25);
  background: linear-gradient(135deg, var(--brand), #3b82f6);
  color: #fff;
  box-shadow: 0 18px 35px rgba(37,99,235,0.22);
}
.btn.primary:hover{ transform: translateY(-2px); }
.btn.ghost{
  background: transparent;
  border: 1px solid var(--stroke2);
}
.btn.full{ width:100%; }

.card{
  border-radius: var(--radius2);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--stroke);
  padding: 16px;
  box-shadow: var(--shadow2);
}
.card:hover{ border-color: #d8deeb; }

.icon{
  width:42px; height:42px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, #ffffff, #f6f8ff);
  color: var(--brand);
  font-weight:900;
}

.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid4{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* =========================
   Topbar + Header
   ========================= */
.topbar{
  border-bottom: 1px solid var(--stroke);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 14px;
  padding: 10px 0;
}
.topbar-left, .topbar-right{ display:flex; align-items:center; gap: 14px; flex-wrap:wrap; }
.inline-link{ color: var(--muted); font-weight:800; font-size: 0.95rem; }
.inline-link:hover{ color: var(--text); }

header{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 0;
}
.brand{ display:flex; align-items:center; gap:12px; }
.logo{
  width:42px; height:42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37,99,235,1), rgba(6,182,212,1));
  box-shadow: 0 14px 26px rgba(37,99,235,0.20);
}
.brand-title{ display:block; font-weight:900; letter-spacing:0.3px; font-size: 1.02rem; }
.brand-sub{ display:block; color: var(--muted2); font-size: 0.86rem; margin-top:2px; }

.navlinks{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
}
.navlinks > a, .dropbtn{
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid transparent;
  color: var(--muted);
  font-weight:800;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.navlinks > a:hover, .dropbtn:hover{
  background: rgba(37,99,235,0.06);
  border-color: rgba(37,99,235,0.10);
  color: var(--text);
}
.navlinks > a.active{
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.14);
  color: var(--text);
}
.nav-cta{ display:flex; gap:10px; align-items:center; }
.mobile-toggle{ display:none; }

/* Dropdown / Mega */
.dropdown{ position:relative; }
.dropbtn{
  background: transparent;
  cursor:pointer;
  font: inherit;
}
.mega{
  position:absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 780px;
  max-width: calc(100vw - 40px);
  padding: 14px;
  border-radius: var(--radius2);
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display:none;
}
.mega-inner{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}
.mega h4{ margin: 6px 0 10px; font-size: 1rem; color: var(--text); }
.mega a{
  display:flex; gap:10px; align-items:flex-start;
  padding: 10px;
  border-radius: 14px;
  border:1px solid var(--stroke);
  background: #fff;
}
.mega a:hover{
  background: #f7f9ff;
  border-color: #d5dced;
}
.mega a b{ display:block; font-size:0.95rem; color: var(--text); }
.mega a span{ display:block; font-size:0.88rem; color: var(--muted2); margin-top:2px; }
.dropdown.open .mega{ display:block; }

/* =========================
   Hero
   ========================= */
.hero{ padding: 44px 0 18px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: stretch;
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,0.85);
  color: var(--muted);
}
.kicker .dot{
  width:10px; height:10px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--brand));
  box-shadow: 0 0 16px rgba(37,99,235,0.30);
}
.hero h1{
  margin: 16px 0 10px;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height:1.12;
}
.hero p{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 72ch;
}
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top: 10px; }

.hero-panel{
  border-radius: var(--radius2);
  background: rgba(255,255,255,0.92);
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.hero-panel-inner{ padding: 18px; }

.search{
  display:flex; gap:10px;
  padding: 10px;
  border-radius: 16px;
  border:1px solid var(--stroke);
  background: #fff;
}
.search input{
  width:100%;
  border:none; outline:none;
  background:transparent;
  color: var(--text);
  font-size: 1rem;
}
.search input::placeholder{ color: #9aa4b7; }

.trustbar{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top: 14px;
}
.trust{
  display:flex; gap:10px; align-items:center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.85);
  border:1px solid var(--stroke);
  color: var(--muted);
}

/* =========================
   Sections
   ========================= */
.section{ padding: 30px 0; }
.section-title{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.section-title h2{ margin:0; font-size: 1.45rem; }
.section-title p{ margin:0; color: var(--muted2); max-width: 70ch; }

.service-card h3{ margin: 10px 0 6px; font-size: 1.05rem; }
.service-card p{ margin:0; color: var(--muted); }
.service-card .meta{ margin-top:10px; display:flex; gap:10px; flex-wrap:wrap; }
.tag{
  display:inline-flex; align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
}

.steps{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.step h3{ margin: 10px 0 6px; }
.step p{ margin:0; color: var(--muted); }

.testi{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.quote{ color: var(--muted); margin: 10px 0 12px; }
.person{ display:flex; align-items:center; justify-content:space-between; gap:10px; color: var(--muted2); font-size: 0.95rem; }

/* =========================
   FAQ
   ========================= */
.faq-item{
  border-radius: 16px;
  border:1px solid var(--stroke);
  background: #fff;
  overflow:hidden;
}
.faq-q{
  width:100%;
  text-align:left;
  padding: 14px 14px;
  background: transparent;
  border:none;
  color: var(--text);
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  gap: 12px;
  font: inherit;
  font-weight:900;
}
.faq-a{ padding: 0 14px 14px 14px; color: var(--muted); display:none; }
.faq-item.open .faq-a{ display:block; }

/* =========================
   Forms
   ========================= */
.form{ display:grid; gap:12px; }
.field{ display:grid; gap:6px; }
label{ color: var(--muted2); font-size: 0.95rem; }
input, textarea, select{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid var(--stroke2);
  background: #fff;
  color: var(--text);
  outline:none;
}
input:focus, textarea:focus, select:focus{
  border-color: rgba(37,99,235,0.55);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.10);
}
textarea{ min-height:120px; resize: vertical; }

/* =========================
   Footer
   ========================= */
footer{
  margin-top: 36px;
  border-top: 1px solid var(--stroke);
  background: #fff;
}
.footer-inner{
  padding: 24px 0;
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 16px;
}
.footer-inner h4{ margin:0 0 8px; font-size: 1rem; }
.footer-inner a, .footer-inner p{ color: var(--muted); font-size: 0.95rem; margin: 8px 0; }
.subfooter{
  padding: 14px 0 18px;
  border-top: 1px solid var(--stroke);
  color: var(--muted2);
  font-size: 0.9rem;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1060px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid4{ grid-template-columns: 1fr 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .testi{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
  .mega{ width: 680px; }
}
@media (max-width: 760px){
  .nav{ align-items:flex-start; }
  .navlinks{ display:none; width:100%; padding: 10px 0 0; }
  .navlinks.open{ display:flex; flex-direction:column; align-items:flex-start; }
  .mobile-toggle{ display:inline-flex; }
  .mega{ position:static; width:100%; margin-top: 10px; }
  .mega-inner{ grid-template-columns: 1fr; }
  .topbar-inner{ flex-direction:column; align-items:flex-start; }
  .footer-inner{ grid-template-columns: 1fr; }
}
