/* ==========================================================
   Darryn Vaz & Associates — Chartered Accountants
   Dark blue theme
   ========================================================== */

:root {
  /* Blues, darkest to lightest */
  --bg-deepest: #08111d;   /* footer, banner */
  --bg: #0d1a2b;           /* page */
  --bg-alt: #112238;       /* alternate sections */
  --surface: #152a44;      /* cards */
  --surface-2: #1a3352;    /* inputs, hover */
  --line: rgba(143, 179, 217, .14);
  --line-strong: rgba(143, 179, 217, .28);

  --blue: #1b5a8a;         /* CA India logo blue: buttons */
  --blue-hover: #236ea8;
  --accent: #8fb3d9;       /* soft steel blue: kickers, bullets, links */
  --accent-2: #5f93c8;

  --heading: #f2f6fb;
  --text: #d3deea;
  --muted: #93a7bd;

  --radius: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 28px rgba(0, 0, 0, .28);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #fff; }

h1, h2, h3 { font-family: var(--serif); color: var(--heading); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 2.5rem); }

/* ---------- Disclaimer banner ---------- */
.disclaimer-banner {
  background: var(--bg-deepest);
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
  text-align: center;
  padding: .55rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.disclaimer-banner p { margin: 0 auto; max-width: 1100px; }
.disclaimer-banner strong { color: var(--heading); font-weight: 600; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 26, 43, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }

.brand { margin-right: auto; display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--heading); }
.brand:hover { color: var(--heading); }
.brand-badge {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  background: #f4f7fb; box-shadow: 0 0 0 1px var(--line-strong);
}
.brand-logo { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.brand-sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.site-nav { margin-right: 1.4rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.site-nav a {
  text-decoration: none; color: var(--text); font-size: .95rem; font-weight: 500;
  padding: .3rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav a:hover, .site-nav a.active { color: #fff; border-bottom-color: var(--accent-2); }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--heading); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Professional / Personal switch ---------- */
.mode-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.nav-mode { display: none; }
.ms-opt { padding: .3rem .7rem; border-radius: 999px; color: var(--muted); transition: color .2s, background .2s; }
.ms-opt.is-on { background: var(--blue); color: #fff; }
.mode-switch:hover .ms-opt:not(.is-on) { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 .95rem var(--sans); letter-spacing: .02em;
  padding: .72rem 1.3rem; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1px solid var(--blue);
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--heading); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--accent-2); color: #fff; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 460px at 85% 15%, rgba(35, 110, 168, .28), transparent 60%),
    radial-gradient(700px 420px at 5% 95%, rgba(27, 90, 138, .22), transparent 60%),
    linear-gradient(180deg, #0f1f34 0%, var(--bg) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 1rem; }
.eyebrow .pin { color: var(--accent-2); font-size: .65rem; vertical-align: 2px; margin-right: .35rem; }
.hero h1 { margin-bottom: .3em; }
.hero-rule { width: 72px; height: 3px; margin: 0 0 1.4rem; background: linear-gradient(90deg, var(--blue-hover), var(--accent)); border-radius: 2px; }
.lead { font-size: 1.12rem; color: var(--text); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 1.2rem; }
.hours { font-size: .95rem; color: var(--muted); margin: 0; }
.hours strong { color: var(--heading); }
.hero-logo { display: flex; justify-content: center; }
.logo-tile {
  width: min(300px, 100%); aspect-ratio: 1; display: grid; place-items: center;
  background: #f4f7fb; border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(143, 179, 217, .08), 0 0 0 22px rgba(143, 179, 217, .04), var(--shadow);
}
.logo-tile img { width: 72%; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-head.left { text-align: left; margin-bottom: 0; }
.kicker { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: .4rem; }
.section-intro { color: var(--muted); max-width: 62ch; margin: 0 auto; }

/* ---------- Summary card ---------- */
.summary { padding-top: 3rem; padding-bottom: 1rem; }
.summary-card {
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--blue-hover);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem 2.2rem;
}
.card-title { font-size: 1.6rem; margin-bottom: 1.2rem; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; margin: 0; }
.summary-grid > div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px dashed var(--line-strong); }
.summary-grid dt { color: var(--muted); font-size: .92rem; }
.summary-grid dd { margin: 0; font-weight: 600; color: var(--heading); text-align: right; }

/* ---------- Practice-area cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow); position: relative;
  transition: transform .2s, border-color .2s, background .2s;
}
.card::before { content: ""; position: absolute; left: 1.6rem; top: 0; width: 40px; height: 3px; background: var(--accent-2); }
.card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: #183050; }
.card h3 { margin-top: .3rem; }
.card ul { margin: 0; padding-left: 1.1rem; color: var(--text); font-size: .96rem; }
.card li { margin-bottom: .35rem; }
.card li::marker { color: var(--accent-2); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
.about-body { font-size: 1.05rem; }
.sub { font-size: 1.3rem; margin-top: 1.6rem; }
.focus-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; }
.focus-list li { padding-left: 1.2rem; position: relative; }
.focus-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; background: var(--accent-2); border-radius: 50%; }

/* ---------- Knowledge ---------- */
.notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent-2); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.note p { margin: 0; color: var(--text); font-size: .97rem; }
.links-block { margin-top: 2.4rem; text-align: center; }
.links-block h3 { font-size: 1.25rem; }
.link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.link-list a {
  display: inline-block; padding: .45rem .95rem; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); text-decoration: none; font-size: .9rem; color: var(--text);
}
.link-list a:hover { border-color: var(--accent-2); color: #fff; background: var(--surface-2); }

/* ---------- Compliance calendar ---------- */
.cal-filter { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.3rem; }
.chip {
  font: 600 .88rem var(--sans); padding: .42rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer;
}
.chip:hover { border-color: var(--accent-2); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cal-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cal-table th { text-align: left; background: var(--bg-deepest); color: var(--accent); font-weight: 600; padding: .8rem 1rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.cal-table td { padding: .75rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.cal-table td:first-child { white-space: nowrap; font-weight: 600; color: var(--heading); }
.cal-table tr.past td { color: #5f738a; }
.cal-table tr.past .tag { opacity: .45; }
.cal-table tr.next td { background: rgba(35, 110, 168, .22); }
.cal-table tr.next td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.cal-table tr.hidden { display: none; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .12rem .55rem; border-radius: 4px; white-space: nowrap; }
.tag.it { background: rgba(95, 147, 200, .18); color: #a9c9ea; }
.tag.gst { background: rgba(143, 179, 217, .08); color: #c3d4e6; border: 1px solid var(--line-strong); }
.cal-note { font-size: .85rem; color: var(--muted); margin-top: .8rem; text-align: center; }

/* ---------- FAQ accordion ---------- */
.accordion { border-top: 1px solid var(--line-strong); }
.acc-item { border-bottom: 1px solid var(--line-strong); }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: none; border: 0; padding: 1.2rem .2rem; text-align: left; cursor: pointer;
  font: 600 1.25rem var(--serif); color: var(--heading);
}
.acc-btn:hover { color: var(--accent); }
.acc-icon { flex: none; width: 14px; height: 14px; position: relative; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: var(--accent); left: 0; top: 6px; width: 14px; height: 2px; transition: transform .25s; }
.acc-icon::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: rotate(0); }
.acc-panel { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.acc-panel p { padding: 0 .2rem 1.2rem; margin: 0; color: var(--text); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.5rem; align-items: start; }
.contact-info address { font-style: normal; margin-bottom: 1.2rem; line-height: 1.6; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.contact-list li { display: grid; grid-template-columns: 100px 1fr; padding: .45rem 0; border-bottom: 1px dashed var(--line-strong); font-size: .97rem; }
.contact-list span { color: var(--muted); font-size: .88rem; padding-top: .1rem; }
.map { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85) brightness(.92); }
.map-link { display: inline-block; margin-top: .6rem; font-size: .92rem; font-weight: 600; }

.enquiry { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--blue-hover); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; margin-bottom: 1rem; flex: 1; }
.field-row { display: flex; gap: 1rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--heading); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  font: 400 1rem var(--sans); color: var(--heading); padding: .7rem .8rem;
  border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.field select option { background: var(--bg); color: var(--heading); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(95, 147, 200, .25); }
.field textarea { resize: vertical; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: .4rem 0 1.3rem; line-height: 1.5; }
.consent input { margin-top: .25rem; accent-color: var(--blue-hover); }
.hidden-field { position: absolute; left: -9999px; }
.form-status { margin: .9rem 0 0; font-size: .95rem; font-weight: 600; }
.form-status.ok { color: #8fd3a8; }
.form-status.err { color: #f2a7a0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deepest); color: var(--muted); font-size: .92rem; padding-top: 2.8rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.footer-grid p { margin: 0 0 .35rem; }
.footer-name { font-family: var(--serif); font-size: 1.4rem; color: var(--heading); font-weight: 600; }
.footer-disclaimer { padding: 1.5rem 0 2rem; font-size: .84rem; line-height: 1.6; }
.footer-disclaimer strong { color: var(--heading); }
.copy { margin-top: 1rem; color: #607489; }

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .site-nav ul { gap: 1.1rem; }
  .site-nav { margin-right: 1rem; }
}

@media (max-width: 1020px) {
  .site-nav ul { gap: 1.1rem; }
  .site-nav a { font-size: .9rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1060px) {
  .nav-toggle { display: block; order: 3; }
  .mode-switch { order: 2; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.open { max-height: 420px; box-shadow: 0 14px 24px rgba(0, 0, 0, .35); }
  .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
  .site-nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a:hover, .site-nav a.active { border-bottom-color: var(--line); }

}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-logo { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 66px; }
  .brand-badge { width: 44px; height: 44px; }
  .brand-logo { width: 34px; }
  .brand-name { font-size: 1.12rem; }
  .brand-sub { font-size: .64rem; }
  .mode-switch { display: none; }
  .nav-mode { display: block; }
  .nav-mode a { color: var(--accent) !important; }
  .disclaimer-banner { font-size: .74rem; text-align: left; }
  .cards { grid-template-columns: 1fr; }
  .summary-card { padding: 1.5rem 1.2rem; }
  .summary-grid { grid-template-columns: 1fr; }
  .focus-list { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .enquiry { padding: 1.5rem 1.2rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 1rem; }
  .cal-table { font-size: .88rem; }
  .cal-table td, .cal-table th { padding: .65rem .7rem; }
  .acc-btn { font-size: 1.12rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
