/* =========================
   Cyberweb Accounting
   styles.css (Mobile-first)
========================= */

/* ---------- CSS Variables ---------- */
:root {
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --color-bg: #ffffff;
  --color-surface: #f6f8fb;
  --color-surface-2: #eef3f9;

  --color-text: #0b1220;
  --color-muted: #4a5b73;

  --color-primary: #0b2a4a;
  --color-primary-2: #0f3a66;

  --color-border: #d9e3f0;
  --color-shadow: 0 10px 30px rgba(11, 18, 32, 0.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 44px;
  --space-8: 64px;

  --container: 1120px;

  --focus: 0 0 0 3px rgba(15, 58, 102, 0.22);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-color: var(--color-primary-2);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 9999;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
}
.skip-link:focus { left: 10px; }

/* ---------- Layout helpers ---------- */
.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  padding: var(--space-8) 0;
}
.section.alt {
  background: var(--color-surface);
}
.section.cta {
  background: linear-gradient(180deg, var(--color-surface-2), #ffffff);
}

.section-head {  
  margin-bottom: var(--space-6);
}
.section-head h2 { margin: 0 0 var(--space-2); }
.section-head p { margin: 0; color: var(--color-muted); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4.2vw, 52px); margin: 0 0 var(--space-3); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 18px; margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-3); color: var(--color-text); }
.muted { color: var(--color-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  user-select: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-2);
  box-shadow: var(--color-shadow);
}

.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  box-shadow: var(--color-shadow);
}

.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 227, 240, 0.75);
  transition: padding 180ms ease, box-shadow 180ms ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 18px;
}
.site-header.is-shrink .header-inner { padding: 10px 0; }
.site-header.is-shrink { box-shadow: 0 8px 20px rgba(11, 18, 32, 0.06); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    #0b2a4a,
    #0f3a66
  );color:#fff;
  box-shadow: 0 6px 16px rgba(11, 42, 74, 0.25);
}
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 14px; }
.brand-tag { font-size: 12px; color: var(--color-muted); }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
}
.nav-toggle-lines {
  width: 18px;
  height: 12px;
  display: inline-block;
  position: relative;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after,
.nav-toggle-lines {
  background: transparent;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 999px;
  transition: transform 160ms ease, top 160ms ease, opacity 160ms ease;
}
.nav-toggle-lines::before { top: 2px; }
.nav-toggle-lines::after  { top: 8px; }

.nav-panel {
  position: fixed;
  inset: 76px 16px auto 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--color-shadow);
  padding: 14px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.nav-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--color-text);
  font-weight: 600;
}
.nav-link:hover { background: var(--color-surface); }

.nav-cta { margin-top: 10px; width: 100%; }

/* Desktop nav */
@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .nav-panel {
    position: static;
    inset: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .nav-list { display: flex; gap: 6px; align-items: center; }
  .nav-link { padding: 10px 12px; }
  .nav-cta { margin-top: 0; width: auto; }
}

/* ---------- Hero ---------- */

/*
  Hero styling
  We extend the original hero section with subtle decorative shapes and gradients
  for a more contemporary feel (Option B). These pseudo‑elements live behind
  content and add depth without distracting from the message. The radial
  gradients fade out to allow underlying backgrounds to shine through.
*/
.hero {
  position: relative;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 65%);
  padding-top: calc(var(--space-8) + 12px);
  padding-bottom: calc(var(--space-8) + 12px);
  /* ensure decorative ::before/::after shapes are positioned
     relative to the hero container and do not overflow */
  position: relative;
  overflow: hidden;
  overflow: hidden;
}

/* top‑right blurred shape */
.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(15, 58, 102, 0.15), rgba(15, 58, 102, 0));
  transform: rotate(45deg);
  pointer-events: none;
  filter: blur(30px);
}

/* bottom‑left blurred shape */
.hero::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -180px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(15, 58, 102, 0.12), rgba(15, 58, 102, 0));
  transform: rotate(-30deg);
  pointer-events: none;
  filter: blur(40px);
}



.hero-grid {
  display: grid;
  gap: var(--space-7);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
}
.hero-subtext { font-size: 16px; color: var(--color-muted); max-width: 56ch; }

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: var(--space-4) 0;
  border-color: rgba(11, 42, 74, 0.50);
  font-weight: 700;
  background: transparent;
}

/* Slight hover feedback (desktop only) */
@media (hover: hover) {
  .trust-chips .chip:hover {
    background: #f1f5fb;
  }
}

.chip {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-weight: 600;
  font-size: 12px;
  color: var(--color-primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-4);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-4);
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.hero-note p { margin: 0; color: var(--color-muted); font-size: 13px; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-primary);
}

.hero-visual {
  position: relative;
}
.visual-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: var(--color-shadow);
  padding: 18px;
  overflow: hidden;
}
.visual-row { display: flex; gap: 10px; margin-bottom: 18px; }
.visual-pill {
  height: 10px;
  width: 64px;
  border-radius: 999px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
}
.visual-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  margin-bottom: 18px;
}
.bar {
  width: 16%;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--color-primary-2), var(--color-primary));
}
.visual-lines { display: grid; gap: 10px; }
.line {
  height: 10px;
  border-radius: 999px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
}
.line.short { width: 65%; }

.visual-badge {
  position: absolute;
  right: 10px;
  bottom: -10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  box-shadow: var(--color-shadow);
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 14px; }
.cards-4 { grid-template-columns: 1fr; }

/* Equal height cards */
.cards-4 .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cards-4 .card p {
  margin-top: auto;
}

.cards-3 { grid-template-columns: 1fr; }
.cards-2 { grid-template-columns: 1fr; }

@media (min-width: 720px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.02);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--color-shadow);
  border-color: rgba(11, 42, 74, 0.28);
}
.card p { margin: 0; color: var(--color-muted); }

/* Service cards text control */



.card-icon p {
  line-height: 1.45;
  max-width: 38ch;
}
.card-icon h3 { margin-top: 0; min-height: 44px;}
.card-icon::before {
  content: "✓";                 /* <-- THIS WAS MISSING */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0b2a4a, #0f3a66);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(11, 42, 74, 0.25);
}

.quote blockquote {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--color-text);
}
.quote figcaption { color: var(--color-muted); font-size: 13px; }

/* ---------- Two column panels ---------- */
.two-col {
  display: grid;
  gap: 18px;
}
.panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 20px;
}
.panel h2 { margin-top: 0; }

/* Solutions panel emphasis */
.panel-accent {
 background: linear-gradient(180deg, #ffffff, var(--color-surface));
  border-color: rgba(11, 42, 74, 0.25);
  box-shadow: 0 12px 28px rgba(11, 18, 32, 0.06);
}

@media (min-width: 980px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

.list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--color-muted);
}
.list li { margin: 10px 0; }

/* ---------- Steps ---------- */
/*
 * Process timeline styles
 *
 * The default `.steps` grid layout has been enhanced to render a
 * vertical timeline. A subtle vertical line connects each step,
 * and step numbers are positioned alongside the line to create a
 * clear progression from start to finish. Padding on the `.step`
 * element is adjusted so that the content aligns nicely to the
 * right of the timeline. These styles work responsively on both
 * mobile and desktop without additional markup changes.
 */
.steps {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* draw the connecting line down the timeline */
.steps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px; /* centers the line relative to the step numbers */
  width: 2px;
  background: var(--color-border);
}

.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 16px 16px 48px; /* extra left padding for the timeline */
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  margin-bottom: 18px;
}

/* remove extra margin on last step */
.step:last-child {
  margin-bottom: 0;
}

.step::before {
  /* hide the part of the line behind each card */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px;
  width: 2px;
  background: #fff;
  z-index: 1;
}

.step-num {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
}

.step-body p {
  margin: 0;
  color: var(--color-muted);
}

/* ---------- Pills ---------- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  border-radius: 16px;
  background: #f7f9fc;
  border: 1px solid #e3ebf7;
}

.pill {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  color: var(--color-primary);
}

/* ---------- CTA / Contact ---------- */
.cta-grid {
  display: grid;
  gap: 18px;
}
.cta-copy p { color: var(--color-muted); max-width: 60ch; }
.cta-points {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.cta-point {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  width: fit-content;
}
.check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

.cta-form {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--color-shadow);
  padding: 20px;
}
.cta-form h3 { margin-top: 0; }

.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 13px; }
input, select, textarea {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
textarea { resize: vertical; min-height: 110px; }
.error { color: #b42318; font-size: 12px; min-height: 16px; }
.form-note { margin: 0; color: var(--color-muted); font-size: 12px; }

@media (min-width: 980px) {
  .cta-grid { grid-template-columns: 1fr 0.9fr; align-items: start; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 30px 0;
  background: #fff;
}
.footer-grid {
  display: grid;
  gap: 18px;
}
.footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  margin-bottom: 10px;
}
.footer-title { font-weight: 800; margin: 0; }
.footer-sub { margin: 6px 0 0; color: var(--color-muted); }

.footer-nav {
  display: grid;
  gap: 10px;
}
.footer-nav a {
  color: var(--color-muted);
  font-weight: 600;
}
.footer-nav a:hover { color: var(--color-primary); }

.footer-note p { margin: 0 0 8px; color: var(--color-muted); }

@media (min-width: 980px) {
  .footer-grid { grid-template-columns: 1.2fr 0.6fr 1fr; align-items: start; }
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
}
.modal.is-open { display: block; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.55);
}
.modal-card {
  position: relative;
  width: min(560px, calc(100% - 32px));
  margin: 90px auto 0;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--color-shadow);
  padding: 18px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.icon-btn:hover { border-color: var(--color-primary); }
/* =========================
   MOBILE POLISH (HIGH PRIORITY)
========================= */

@media (max-width: 720px) {

  /* Hero spacing tightening */
  .hero {
    padding-top: calc(var(--space-7));
    padding-bottom: calc(var(--space-7));
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  .hero-subtext {
    font-size: 15px;
  }

  /* Stack hero actions cleanly */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Cards breathing room */
  .card {
    padding: 16px;
  }

  /* Reduce visual noise */
  .hero-visual {
    display: none;
  }

  /* Process steps – clearer separation */
  .step {
    gap: 12px;
  }

  /* CTA form full width comfort */
  .cta-form {
    padding: 18px;
  }

  /* Footer alignment */
  .footer-grid {
    text-align: left;
  }
}

/* =========================
   ACCESSIBILITY POLISH
========================= */

/* Better focus visibility */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 42, 74, 0.3);
}

/* Improve small text readability */
p,
li,
label {
  font-size: 14.5px;
}

/* Buttons minimum touch target */
button,
.btn {
  min-height: 44px;
}

/* Reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ========== Enhancements ==========
   Theme toggle button, scroll‑to‑top button, dark mode styles and fade‑in animations
==================================== */

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  margin-left: 6px;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover {
  box-shadow: var(--color-shadow);
  transform: translateY(-1px);background: #14223b;
}
.theme-toggle .theme-icon::before {
  content: "🌙";
  font-size: 20px;
  line-height: 1;
}
.dark-mode .theme-toggle {
  background: var(--color-surface);
  border-color: var(--color-border);
}
.dark-mode .theme-toggle .theme-icon::before {
  /* switch icon to sun in dark mode */
  content: "☀️";
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--color-shadow);
  z-index: 100;
  transition: background 0.2s ease, transform 0.2s ease;
}
.scroll-top:hover {
  background: var(--color-primary-2);
}
.scroll-top.show {
  display: flex;
}

/* Fade‑in effect for sections and cards */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dark mode variable overrides */
:root.dark-mode {
  --color-bg: #0b1220;
  --color-surface: #14223b;
  --color-surface-2: #1d2e50;
  --color-text: #eaf1fb;
  --color-muted: #a6b8d9;
  --color-primary: #0b63a3;
  --color-primary-2: #0f78c7;
  --color-border: #2a3d63;
  --color-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}

/* Dark mode component overrides */
.dark-mode body {
  background: var(--color-bg);
}
.dark-mode .site-header {
  background: rgba(11, 18, 32, 0.92);
  border-bottom: 1px solid rgba(42, 61, 99, 0.75);
}
.dark-mode .site-header.is-shrink {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}
.dark-mode .nav-panel {
  background: var(--color-surface);
  border-color: var(--color-border);
}
.dark-mode .card,
.dark-mode .panel,
.dark-mode .cta-form,
.dark-mode .nav-toggle,
.dark-mode .footer {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.dark-mode .card:hover,
.dark-mode .panel:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.08);
}
.dark-mode .chip,
.dark-mode .cta-point,
.dark-mode .pill {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}
.dark-mode .btn-primary {
  background: var(--color-primary);
}
.dark-mode .btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-border);
}
.dark-mode .btn-secondary:hover {
  border-color: var(--color-primary);
  box-shadow: var(--color-shadow);
}
.dark-mode .hero-visual .visual-card,
.dark-mode .visual-pill,
.dark-mode .visual-lines .line {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}
.dark-mode .visual-badge {
  background: var(--color-primary);
}
.dark-mode .footer-nav a:hover {
  color: var(--color-primary);
}

/* Dark mode hero background */
.dark-mode .hero {
  /* replace light gradient with a dark variant */
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 65%);
}
.dark-mode .hero-note {
  background: var(--color-surface);
  border-color: var(--color-border);
}
.dark-mode .hero-note p {
  color: var(--color-muted);
}

/* Active nav link styling: emphasize the current page across themes */
nav a.active {
  color: var(--color-primary);
  font-weight: 700;
  border-bottom: 2px solid var(--color-primary);
}



/* =========================
   Home: What to Expect + Leadership
========================= */
.expect-card{
  margin-top: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-surface) 0%, #ffffff 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--color-shadow);
}
.expect-card h3{
  margin: 0 0 var(--space-3);
  font-size: 1.05rem;
}
.expect-list{
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-text);
}
.expect-list li{
  margin: 0 0 var(--space-2);
  line-height: 1.5;
}
.expect-note{
  margin-top: var(--space-3);
  color: var(--color-muted);
}
.leadership,.team {
  background: linear-gradient(180deg, var(--color-surface) 0%, #0e355c3d 100%);}
.leadership-grid{
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  margin-top: var(--space-5);
}
.leader-card{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--color-shadow);
}
.leader-avatar{
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-2) 100%);
  color: #fff;
}
.leader-role{
  margin: 4px 0 10px;
  color: var(--color-muted);
  font-weight: 600;
}
.leader-text{
  margin: 0;
  color: var(--color-text);
  line-height: 1.6;
}
.leader-points{
  margin: var(--space-3) 0 0;
  padding-left: 1.1rem;
  color: var(--color-muted);
}
.leadership-cta{
  margin-top: var(--space-5);
  display: flex;
  justify-content: flex-start;
}

/* Team page extras */

/* =========================
   Leadership / Team Grid
========================= */
/*
 * The team page uses a flexible grid to showcase leadership and core team
 * members. Cards stack on small screens and arrange into multiple columns
 * on larger viewports. Highlighted cards (for Hiten & Hetali) have a
 * stronger border colour to subtly emphasise their strategic roles.
 */
.team-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: var(--space-6);
}

.team-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

/* Emphasise key executives */
.team-card.highlight {
  border-width: 2px;
  border-color: var(--color-primary);
}

.team-photo {
    width: 100%;
    aspect-ratio: 3 / 4;   /* Clean portrait ratio */
    overflow: hidden;
    background: #f3f4f6;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}
@media (max-width: 768px) {
  .team-photo {
    height: 340px;
  }
}

.team-card-body {
  padding: var(--space-4);
}

.team-card-body h3 {
  margin-top: 0;
  margin-bottom: var(--space-2);
  font-size: 18px;
  line-height: 1.3;
}
.team-card-body p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
}
.team-pillars .callout{
  margin-top: var(--space-6);
}
.callout{
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.callout-inner{
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 760px){
  .leadership-grid{
    grid-template-columns: repeat(2, 1fr);
  }
  .callout-inner{
    flex-direction: row;
    align-items: center;
  }
}
