/* --------------------------------------------------------------
   Root variables and base styling
-------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --text: #151826;
  --muted: #5c6475;
  --accent: #28345b;
  --accent-soft: #e1e6f8;
  --border: #dde2ee;
  --border-strong: #8b94ad;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------
   Layout helpers
-------------------------------------------------------------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 40px 0;
}

.content {
  font-size: 0.98rem;
}

.content p {
  margin-bottom: 1em;
}

/* --------------------------------------------------------------
   Header
-------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(221, 226, 238, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.brand img {
  height: 36px;
  width: auto;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
}

.nav-main a {
  color: var(--muted);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 6px;
}

/* --------------------------------------------------------------
   Hero
-------------------------------------------------------------- */

.hero {
  padding: 48px 0 40px;
  background: radial-gradient(circle at 0% 0%, #eff3ff, #ffffff);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.hero-title {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 10px 0 14px;
  position: relative;
}

/* Accent bar under hero title */
.hero-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), var(--accent-soft));
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #1b2240;
}

.btn-secondary {
  background: #ffffff;
  color: var(--accent);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #f5f7fb;
}

.hero-image-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* --------------------------------------------------------------
   Section titles with accent dash
-------------------------------------------------------------- */

.section-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
  position: relative;
  padding-left: 24px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

/* --------------------------------------------------------------
   Cards
-------------------------------------------------------------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  border: 1px solid var(--border);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* --------------------------------------------------------------
   ABOUT page image
-------------------------------------------------------------- */

.about-photo {
  margin: 30px 0;
  text-align: center;
}

.about-photo img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

/* --------------------------------------------------------------
   ADVISORY BOARD — PURE MARKDOWN SUPPORT
-------------------------------------------------------------- */

/* LinkedIn icon (loaded as markdown image) */
img[src$="linkedin.svg"] {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-left: 6px;
  opacity: 0.85;
}

img[src$="linkedin.svg"]:hover {
  opacity: 1;
}

/* Optional: spacing under advisor headings */
.advisory-page h2 {
  margin-bottom: 6px;
}

/* --------------------------------------------------------------
   Contact form + GDPR consent
-------------------------------------------------------------- */

.contact-form {
  max-width: 480px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  padding: 10px 12px;
  font: inherit;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
}

.consent-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-top: -6px;
}

.consent-row input[type="checkbox"] {
  margin: 0;
}

.consent-row label {
  white-space: nowrap;
}

.consent-row a {
  text-decoration: underline;
}

button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-form button {
  align-self: flex-start;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover {
  background: #1b2240;
}

/* Honeypot anti-spam */
.honeypot {
  position: absolute;
  left: -5000px;
  top: 0;
  height: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------
   Footer
-------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  margin-top: auto;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: nowrap;
}

.footer-left {
  white-space: nowrap;
}

.footer-center {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.footer-right {
  display: flex;
  gap: 16px;
  align-items: center;
  white-space: nowrap;
}

.footer-right .icon {
  width: 20px;
  height: 20px;
  fill: var(--muted);
  transition: opacity 0.2s ease, fill 0.2s ease;
}

.footer-right a:hover .icon {
  fill: var(--accent);
}

@media (max-width: 600px) {
  .site-footer-inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

/* --------------------------------------------------------------
   Responsive layout adjustments
-------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: 220px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #ffffff;
    border-bottom: 1px solid rgba(221, 226, 238, 0.9);
    padding: 10px 20px;
    flex-direction: column;
    gap: 8px;
    display: none;
  }

  html.nav-open .nav-main {
    display: flex;
  }
}
