/* J2R Investments — inspired by Main Capital Partners */

:root {
  --navy: #0c1a2e;
  --navy-light: #152a45;
  --accent: #1e4d8c;
  --accent-hover: #2563b0;
  --gold: #c9a227;
  --text: #1a1a1a;
  --text-muted: #5a6474;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --border: #e2e6ea;
  --max-width: 1200px;
  --header-height: 72px;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

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

.header.scrolled {
  box-shadow: 0 2px 20px rgba(12, 26, 46, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.logo__mark {
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav__cta {
  padding: 0.625rem 1.25rem;
  background: var(--navy);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.nav__cta:hover {
  background: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1a3a5c 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(30, 77, 140, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 4rem 0;
}

.hero__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn--primary {
  background: white;
  color: var(--navy);
}

.btn--primary:hover {
  background: var(--bg-alt);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.08);
}

.btn--navy {
  background: var(--navy);
  color: white;
  align-self: flex-start;
}

.btn--navy:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: 6rem 0;
}

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

.section--navy {
  background: var(--navy);
  padding: 4rem 0;
}

.section--contact {
  background: var(--bg-alt);
}

.section__header {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.section__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section__text {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Story / about */
.story-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}

.story-layout__main p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.story-layout__main p:last-child {
  margin-bottom: 0;
}

.story-lead {
  font-size: 1.125rem;
  color: var(--navy) !important;
  line-height: 1.7;
  margin-bottom: 1.25rem !important;
}

.trust-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2rem;
}

.trust-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trust-list li {
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Experience bar */
.experience-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.experience-bar__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.experience-stat__value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.experience-stat__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Expertise */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.expertise-card {
  background: white;
  border: 1px solid var(--border);
  padding: 2rem;
  transition: box-shadow 0.3s;
}

.expertise-card:hover {
  box-shadow: 0 8px 32px rgba(12, 26, 46, 0.08);
}

.expertise-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.expertise-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Partner banner */
.partner-banner {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.partner-banner__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.25rem;
}

.partner-banner__cite {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

/* Success stories */
.success-stories-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
}

.story-feature {
  background: white;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.story-feature:hover {
  box-shadow: 0 8px 32px rgba(12, 26, 46, 0.08);
}

.story-feature__content {
  padding: 2.5rem;
}

.story-feature__logo-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  transition: opacity 0.2s;
}

.story-feature__logo-link:hover {
  opacity: 0.75;
}

.story-feature__logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left;
}

.story-feature__logo--roxit {
  height: 32px;
  max-width: 120px;
  margin-bottom: 1.25rem;
}

.story-feature__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  background: var(--bg-alt);
  color: var(--text-muted);
}

.tag--active {
  background: rgba(30, 77, 140, 0.1);
  color: var(--accent);
}

.tag--exit {
  background: rgba(12, 26, 46, 0.08);
  color: var(--navy);
}

.story-feature__name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.story-feature__name a {
  transition: color 0.2s;
}

.story-feature__name a:hover {
  color: var(--accent);
}

.story-feature__desc {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.story-feature__detail {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.success-story-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s;
}

.success-story-card__link:hover {
  color: var(--navy);
}

/* Approach */
.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.approach-step {
  counter-increment: step;
  position: relative;
}

.approach-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.4;
  display: block;
  margin-bottom: 1rem;
}

.approach-step h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.approach-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 560px;
  margin-inline: auto;
}

.team-grid--detailed {
  max-width: 880px;
  gap: 3rem;
}

.team-card {
  text-align: center;
}

.team-card--detailed {
  background: white;
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.team-card__photo {
  width: 160px;
  height: 160px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 4px solid var(--navy);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(12, 26, 46, 0.12);
  background: var(--bg-alt);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.12);
}

.team-card__name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.team-card__bio {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  text-align: left;
}

.team-card__contact {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s;
}

.team-card__contact:hover {
  color: var(--navy);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-info__lead {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.contact-info__note {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 0 !important;
  margin-top: 1.5rem;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.contact-details a {
  color: var(--accent);
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.9375rem;
  background: white;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand .logo {
  color: white;
  margin-bottom: 1rem;
}

.footer__brand .logo__mark {
  background: white;
  color: var(--navy);
}

.footer__brand p {
  font-size: 0.875rem;
  max-width: 280px;
}

.footer__heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__links a {
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: white;
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

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

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

/* Responsive */
@media (max-width: 1024px) {
  .story-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .experience-bar__inner,
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .approach-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid,
  .team-grid--detailed {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }

  .nav.open {
    display: flex;
  }

  .nav__link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav__cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .story-layout,
  .contact-grid,
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .approach-steps {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .team-grid--detailed {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .story-feature__content {
    padding: 1.75rem;
  }

  .section {
    padding: 4rem 0;
  }
}
