/* =========================================================
   Financial & Management Consult — style.css (full)
   - Logo ~3x bigger
   - Responsive nav + cards + sections
   - 4 themes (data-theme="1..4") + auto mode handled in JS
   ========================================================= */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  color: var(--text);
}

img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection { background: rgba(120, 140, 255, 0.25); }

/* ---------- Layout ---------- */
.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.section {
  padding: clamp(42px, 6vw, 78px) 0;
}

.section--alt {
  background: var(--surface-2);
}

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.2vw, 22px);
}

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

/* ---------- Themes (CSS variables) ---------- */
:root {
  /* defaults = theme 1 */
  --bg: #0b1220;
  --text: #eef2ff;
  --muted: rgba(238, 242, 255, 0.75);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.28);

  --brand: #7aa7ff;
  --brand-2: #60e3c2;
  --link: #a9c4ff;
  --focus: #ffd36a;

  --btn-bg: linear-gradient(135deg, rgba(122, 167, 255, 1), rgba(96, 227, 194, 1));
  --btn-text: #07101f;
  --btn-ghost-bg: transparent;
  --btn-ghost-text: #eef2ff;

  --header-bg: rgba(11, 18, 32, 0.72);
  --header-blur: blur(10px);

  --radius: 18px;
  --radius-sm: 12px;

  --pad: 18px;
}

html[data-theme="1"] {
  --bg: #0b1220;
  --text: #eef2ff;
  --muted: rgba(238, 242, 255, 0.75);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.28);

  --brand: #7aa7ff;
  --brand-2: #60e3c2;
  --link: #a9c4ff;
  --focus: #ffd36a;

  --btn-bg: linear-gradient(135deg, rgba(122, 167, 255, 1), rgba(96, 227, 194, 1));
  --btn-text: #07101f;
  --btn-ghost-text: #eef2ff;

  --header-bg: rgba(11, 18, 32, 0.72);
}

html[data-theme="2"] {
  --bg: #071a16;
  --text: #eafff9;
  --muted: rgba(234, 255, 249, 0.74);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.28);

  --brand: #41f0c5;
  --brand-2: #7aa7ff;
  --link: #9df7e2;
  --focus: #ffd36a;

  --btn-bg: linear-gradient(135deg, rgba(65, 240, 197, 1), rgba(122, 167, 255, 1));
  --btn-text: #041512;
  --btn-ghost-text: #eafff9;

  --header-bg: rgba(7, 26, 22, 0.72);
}

html[data-theme="3"] {
  --bg: #10121a;
  --text: #f3f4ff;
  --muted: rgba(243, 244, 255, 0.72);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: rgba(0, 0, 0, 0.3);

  --brand: #c5a3ff;
  --brand-2: #7aa7ff;
  --link: #d8c6ff;
  --focus: #ffd36a;

  --btn-bg: linear-gradient(135deg, rgba(197, 163, 255, 1), rgba(122, 167, 255, 1));
  --btn-text: #0b0f1a;
  --btn-ghost-text: #f3f4ff;

  --header-bg: rgba(16, 18, 26, 0.72);
}

html[data-theme="4"] {
  /* Light theme */
  --bg: #f6f7fb;
  --text: #0b1220;
  --muted: rgba(11, 18, 32, 0.7);
  --surface: rgba(255, 255, 255, 0.9);
  --surface-2: rgba(255, 255, 255, 0.6);
  --border: rgba(11, 18, 32, 0.12);
  --shadow: rgba(11, 18, 32, 0.12);

  --brand: #1f4cff;
  --brand-2: #0aa37f;
  --link: #1f4cff;
  --focus: #c47b00;

  --btn-bg: linear-gradient(135deg, rgba(31, 76, 255, 1), rgba(10, 163, 127, 1));
  --btn-text: #ffffff;
  --btn-ghost-text: #0b1220;

  --header-bg: rgba(246, 247, 251, 0.72);
}

/* ---------- Accessibility helper ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  z-index: 9999;
}
.skip-link:focus { left: 12px; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: var(--header-blur);
  -webkit-backdrop-filter: var(--header-blur);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  min-height: 140px; /* makes space for bigger logo */
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand__logo-img {
  height: 120px;       /* ✅ 3x bigger target */
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
}

.brand__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand__text strong {
  font-size: 18px;
  letter-spacing: 0.2px;
}

.brand__text span {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 18px;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  opacity: 0.95;
}

.nav a:hover {
  background: var(--surface);
  text-decoration: none;
}

.nav a.is-active {
  background: rgba(122, 167, 255, 0.18);
  border: 1px solid rgba(122, 167, 255, 0.35);
}

@media (max-width: 980px) {
  .header__inner { min-height: 120px; }
  .brand__logo-img { height: 96px; } /* responsive shrink */
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: var(--header-blur);
    -webkit-backdrop-filter: var(--header-blur);
  }
  .nav--open { display: flex; }
  .nav a { width: calc(100% - 2px); }
}

@media (max-width: 560px) {
  .brand__logo-img { height: 80px; }
  .brand__text strong { font-size: 16px; }
  .brand__text span { font-size: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 7vw, 90px) 0;
  background:
    radial-gradient(1200px 520px at 10% 10%, rgba(122, 167, 255, 0.22), transparent 60%),
    radial-gradient(900px 520px at 85% 20%, rgba(96, 227, 194, 0.18), transparent 60%),
    radial-gradient(800px 400px at 40% 90%, rgba(255, 211, 106, 0.12), transparent 55%),
    var(--bg);
}

.kicker {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.lead {
  max-width: 72ch;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 18px);
  margin: 10px 0 0;
}

.hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 12px;
}

.trust {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 70ch;
}

.trust li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--muted);
}

/* ---------- Typography ---------- */
h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  margin: 0 0 14px;
  letter-spacing: -0.2px;
}

h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

p { margin: 0 0 12px; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: 0 10px 24px var(--shadow);
  transition: transform 0.12s ease, filter 0.12s ease;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.02); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: var(--btn-ghost-bg);
  color: var(--btn-ghost-text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn--ghost:hover { background: var(--surface); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--pad);
  box-shadow: 0 10px 28px var(--shadow);
}

.card--soft {
  background: var(--surface-2);
  box-shadow: none;
}

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

.bullets li { margin: 6px 0; }
.list li { margin: 6px 0; }

/* ---------- References blocks ---------- */
.refs {
  display: grid;
  gap: 12px;
}

.ref {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.ref__title {
  font-weight: 900;
  margin-bottom: 4px;
}

.ref__meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.ref__desc { color: var(--muted); }

/* ---------- Form ---------- */
.form {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  max-width: 680px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

input, textarea {
  font: inherit;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

html[data-theme="4"] input,
html[data-theme="4"] textarea {
  background: rgba(255, 255, 255, 0.85);
}

input::placeholder, textarea::placeholder { color: rgba(140, 150, 170, 0.9); }

textarea { resize: vertical; min-height: 130px; }

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Contact cards ---------- */
.contact-cards {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

@media (max-width: 980px) {
  .contact-cards { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.footer__inner {
  display: grid;
  gap: 12px;
  align-items: center;
}

.footer small { color: var(--muted); }

.footer__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--link);
  font-weight: 700;
}

/* ---------- Theme switch ---------- */
.theme-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-switch__label {
  color: var(--muted);
  font-weight: 800;
}

.theme-switch__group {
  display: inline-flex;
  gap: 8px;
}

.theme-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 10px;
  min-width: 36px;
  font-weight: 900;
  cursor: pointer;
}

.theme-pill.is-active {
  background: rgba(122, 167, 255, 0.18);
  border-color: rgba(122, 167, 255, 0.4);
}

.theme-auto {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}

.theme-auto.is-active {
  background: rgba(96, 227, 194, 0.18);
  border-color: rgba(96, 227, 194, 0.45);
}

/* ---------- Small helpers ---------- */
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  overflow: auto;
}

/* ---------- Reduce motion (accessibility) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
