@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family:
    "Satoshi",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  overflow-x: hidden;
  color: #000;
  width: 100%;
  max-width: 100%;
}

/* Section theme variables & backgrounds */
body {
  --section-bg: #fff;
  --section-link-hover: #000000;
  transition: background-color 0.4s ease;
  background-color: var(--section-bg);
}

body.section-operating {
  --section-bg: #fcecec;
  --section-link-hover: #7f4447;
}
body.section-consulting {
  --section-bg: #eceffc;
  --section-link-hover: #4c5484;
}
body.section-investing {
  --section-bg: #e2fcfc;
  --section-link-hover: #006567;
}
body.section-about {
  --section-bg: #e2fde6;
  --section-link-hover: #35643f;
}

/* Canvas background */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Content overlay */
.content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  padding-bottom: 150px;
}

body.section-welcome .content {
  padding-bottom: 0;
}

/* Add padding on tablet+ where fixed nav appears */
@media (min-width: 768px) {
  .content {
    padding-bottom: 200px;
  }
}

/* Header */
header {
  height: 100px;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: left;
  align-items: center;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}

/* Center header on desktop */
@media (min-width: 768px) {
  header {
    padding: 1rem 5%;
    justify-content: center;
  }
}

.logo {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  color: #000;
}

@media (max-width: 767px) {
  :root {
    --mobile-header-height: 80px;
  }

  header {
    padding: 0.5rem 5%;
    margin-bottom: 1rem;
    height: var(--mobile-header-height);
  }

  .logo {
    font-size: 2rem;
  }
}

/* Navigation Container - Responsive */
.nav-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: none;
}

/* Mobile styles (<768px) */
@media (max-width: 767px) {
  /* Hide nav on welcome section */
  body.section-welcome .nav-container {
    display: none;
  }

  .nav-container {
    display: block;
    padding: 20px 18px;
  }

  .nav-container nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 0;
  }

  nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
    max-width: 100%;
    width: auto;
    margin: 0 auto;
    padding: 4px;
    list-style: none;
    border-radius: 100px;
    background: #0000000d;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  nav ul li {
    flex: 0 1 auto;
    list-style: none;
  }

  nav ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #454545;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    background: transparent;
    width: 80px;
  }

  nav ul li a:hover {
    color: #000000;
  }

  nav ul li a.nav-active {
    color: #ffffff;
    background-color: var(--section-accent-color);
  }

  nav ul li a:active {
    transform: scale(0.92);
  }
}

/* Desktop styles (>=768px) */
@media (min-width: 768px) {
  .nav-container {
    display: block;
    height: 100px;
    background: transparent;
    transform: none !important;
  }

  .nav-container nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 24px 0;
  }

  nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 6px;
    border-radius: 100px;
    background: #0000000d;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  nav a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: block;
    color: #454545;
    padding: 10px 30px;
    border-radius: 100px;
    transition: background-color 0.3s ease;
    width: 140px;
    text-align: center;
  }

  nav a:hover {
    color: #000000;
  }

  nav a.nav-active,
  nav a:hover {
    background-color: var(--section-accent-color);
    color: #ffffff;
  }
}

/* Main Content Container */
main {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  overflow: hidden;
}

.section-content {
  transition: opacity 0.3s ease;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  display: none;
  overflow-x: hidden;
}

.section-content.section-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  display: block;
  position: relative;
}

/* Section-aware link hover color */
.section-content a {
  transition: color 0.15s ease;
}

.section-content a:hover {
  color: var(--section-link-hover);
}

/* SEO-Friendly section visibility - kept in DOM for SEO purposes */

/* Separated List Utility */
.separated-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.5rem;
  list-style: none;
}

.separated-list li:not(:last-child)::after {
  content: "·";
  margin-left: 0.5rem;
  opacity: 0.6;
}

.lead-form input {
  background-color: #f1fef2;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #bbd5bf;
  border-radius: 12px;
}

.lead-form textarea {
  background-color: #f1fef2;
  border: 1px solid #bbd5bf;
  border-radius: 12px;
  width: 100%;
  padding: 10px 16px;
  height: 200px;
  resize: none;
}

.lead-form button {
  color: #ffffff;
  padding: 10px 30px;
  border-radius: 100px;
  font-size: 1rem;
  background: #000000;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Hide utility */
.hidden {
  display: none !important;
}

/* ============================================
   MOBILE CTA BUTTON
   ============================================ */

@media (max-width: 767px) {
  /* Hide header on welcome section */
  body.section-welcome header {
    display: none;
  }

  /* Welcome section - full height on mobile */
  #section-welcome {
    height: calc(100vh - var(--mobile-header-height));
  }

  #welcome-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 24px 48px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  #welcome-nav.show {
    display: block;
    animation: welcomeNavSlide 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  #welcome-nav a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 14px 0;
    font-size: 2rem;
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }

  #welcome-nav a span {
    padding-left: 10px;
    font-size: 16px;
  }
}

/* Two-column section alignment fix (desktop) */
@media (min-width: 1024px) {
  .two-col-offset-right {
    padding-top: 0.5rem; /* adjust if needed */
  }
}

@keyframes welcomeNavSlide {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
