/* ============================================
   Fabian Investments & Consulting -- Brand CSS
   Palette: Quiet Authority (blues/grays/white)
   ============================================ */

:root {
  --navy: #0f1a2e;
  --steel: #1e3a5f;
  --blue: #3b7dd8;
  --blue-soft: #5a9be6;
  --blue-light: #e8f0fa;
  --slate: #475569;
  --gray: #94a3b8;
  --gray-light: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: rgba(15, 26, 46, 0.08);
  --shadow-md: rgba(15, 26, 46, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--steel); }

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

.accent-script {
  font-family: 'Parisienne', cursive;
  color: var(--steel);
}

/* ---------- layout ---------- */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--gray-light);
}

.section--blue {
  background: var(--blue-light);
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-brand span {
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}

/* language toggle (nav) */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.lang-toggle button {
  background: transparent;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
  color: var(--gray);
  transition: background 0.2s, color 0.2s;
}

.lang-toggle button.active {
  background: var(--navy);
  color: var(--white);
}

.lang-toggle button:hover:not(.active) {
  background: var(--gray-light);
  color: var(--slate);
}

/* mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 32px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--border);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.1rem;
  }
}

/* ---------- hero ---------- */

.hero {
  padding: 140px 0 100px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(59, 125, 216, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(30, 58, 95, 0.04) 0%, transparent 50%),
    var(--white);
  text-align: center;
}

.hero-kicker {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .last {
  font-style: italic;
  color: var(--steel);
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-portrait {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 8px 40px var(--shadow-md), 0 0 0 1px var(--border);
  margin: 0 auto 36px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 16px var(--shadow);
}

.hero-cta:hover {
  background: var(--steel);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-md);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
}

/* ---------- feature cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 30px var(--shadow);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--steel);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  color: var(--navy);
}

.card p {
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ---------- section headers ---------- */

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-header .kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray);
  font-size: 1.05rem;
}

/* ---------- divider ---------- */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 0;
}

.divider .line {
  height: 1px;
  width: 48px;
  background: var(--border);
}

.divider .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.5;
}

/* ---------- two-col ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

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

/* ---------- timeline ---------- */

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue-light);
}

.timeline-year {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.timeline-item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 0.92rem;
  color: var(--gray);
  margin-bottom: 0;
}

/* ---------- contact ---------- */

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--slate);
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.25s, background 0.25s;
}

.contact-link:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--navy);
}

.contact-link .ico {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--steel);
}

.contact-link .ico svg {
  width: 18px;
  height: 18px;
}

.contact-link .txt {
  text-align: left;
  line-height: 1.3;
}

.contact-link .txt small {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 600;
  display: block;
}

/* ---------- footer ---------- */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray);
}

.footer a {
  color: var(--gray);
}

.footer a:hover {
  color: var(--navy);
}

.footer .sep {
  margin: 0 10px;
  color: var(--border);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 12px var(--shadow);
}

.btn--primary:hover {
  background: var(--steel);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--navy);
}

/* ---------- utilities ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* ---------- animations ---------- */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */

@media (max-width: 480px) {
  .hero { padding: 120px 0 60px; }
  .section { padding: 60px 0; }
  .container { padding: 0 20px; }
  .contact-card { padding: 28px 20px; }
}
