/* 60 Point Capital - Unified Theme Styles */

:root {
  /* Coral/Red Colors - tuned closer to Pathstone */
  --color-coral-main: #E74A45;
  --color-coral-dark: #C83F3A;
  --color-coral-light: #F06A66;
  
  /* Legacy brand-red aliases for backward compatibility */
  --brand-red: var(--color-coral-main);
  --brand-red-dark: var(--color-coral-dark);
  
  /* Text Colors */
  --color-ink: #111111;
  --color-ink-soft: #333333;
  
  /* Background Colors */
  --color-offwhite: #fdf7f5;
  
  /* Outline/Border Colors */
  --color-outline: rgba(255, 255, 255, 0.3);
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

* { 
  box-sizing: border-box; 
}

body { 
  margin: 0; 
  font-family: var(--font-primary); 
  font-size: 16px;
  line-height: 1.4; 
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--color-ink);
  background: var(--color-offwhite);
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-primary);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-red);
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 700;
  z-index: 100;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* Layout */
.layout { 
  display: flex; 
  min-height: 100vh; 
}

/* Sidebar */
aside { 
  width: 280px; 
  background: linear-gradient(180deg, var(--color-coral-main), var(--color-coral-dark)); 
  color: #fff; 
  padding: 20px; 
  flex-shrink: 0; 
}

.logo { 
  font-family: var(--font-heading); 
  font-weight: 900; 
  font-size: 24px; 
  margin-bottom: 20px; 
}

/* Navigation */
.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav-item,
nav a { 
  display: block; 
  padding: 10px 0; 
  color: #fff; 
  text-decoration: none; 
  font-weight: 700; 
  border-top: 1px solid var(--color-outline); 
  transition: opacity 0.2s ease;
}

.sidebar-nav-item:first-child,
nav a:first-child { 
  border-top: 0; 
}

.sidebar-nav-item:hover,
nav a:hover {
  opacity: 0.8;
}

.sidebar-nav-item--active {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.6);
  text-underline-offset: 4px;
  opacity: 1;
}

.sidebar-nav-item:focus-visible,
nav a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  border-radius: 4px;
}

.sidebar-cta,
nav .cta { 
  margin-top: 10px; 
  padding: 12px 16px; 
  background: #fff; 
  color: var(--color-coral-main); 
  border-radius: 8px; 
  text-align: center; 
  font-weight: 800; 
  text-decoration: none; 
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sidebar-cta::after,
nav .cta::after {
  content: "→";
  font-size: 18px;
  line-height: 1;
}

.sidebar-cta:hover,
nav .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.sidebar-cta:focus-visible,
nav .cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Sidebar Search */
.sidebar-search {
  margin-top: 20px;
  margin-bottom: 20px;
  position: relative;
}

.sidebar-search-input {
  width: 100%;
  padding: 10px 36px 10px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--color-outline);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sidebar-search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.sidebar-search::after {
  content: "🔍";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.7;
  font-size: 16px;
}

/* Capabilities Box in Sidebar */
.capabilities-box {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.3);
}

.capabilities-box h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
  color: #fff;
}

.capabilities-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
}

.capabilities-box li {
  margin-bottom: 8px;
  color: rgba(255,255,255,0.9);
  position: relative;
  padding-left: 0;
}

.capabilities-box a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
  font-weight: 500;
}

.capabilities-box a:hover {
  opacity: 0.8;
  text-decoration-color: rgba(255,255,255,0.6);
}

/* Main Content */
main { 
  flex-grow: 1; 
  position: relative; 
  overflow-y: auto; 
}

/* Hero Background (for index.html) */
.hero-bg { 
  position: absolute; 
  inset: 0; 
  background: url('../img/hero-skyscraper.jpg') center/cover no-repeat; 
  background-color: #0b0e13; 
}

.hero-overlay { 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(90deg, rgba(0,0,0,0.8), rgba(0,0,0,0.1)); 
}

.hero-content { 
  position: relative; 
  z-index: 1; 
  max-width: 800px; 
  padding: 80px 40px; 
  color: #fff; 
}

.hero-content > div:first-child {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.hero-content h1 { 
  font-family: var(--font-heading); 
  font-weight: 900; 
  font-size: 48px; 
  margin: 0 0 20px; 
  line-height: 1.1; 
}

.hero-content p { 
  font-size: 18px; 
  max-width: 600px; 
  line-height: 1.4;
}

/* Capabilities Section (for index.html) */
.capabilities { 
  position: absolute; 
  bottom: 20px; 
  left: 20px; 
  background: var(--brand-red); 
  padding: 15px; 
  border-radius: 12px; 
  max-width: 260px; 
}

.capabilities h3 { 
  margin: 0 0 10px; 
  font-family: var(--font-heading); 
  font-weight: 900; 
  font-size: 18px; 
}

.capabilities ul { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  font-size: 14px; 
}

.capabilities li { 
  border-top: 1px solid rgba(255,255,255,0.3); 
  padding: 6px 0; 
}

.capabilities li:first-child {
  border-top: 0;
}

/* Typography - Normalized */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--color-ink);
}

h1 { 
  font-weight: 900; 
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
}

h2 { 
  font-weight: 800; 
  font-size: clamp(28px, 3.5vw, 36px);
}

h3 { 
  font-weight: 700; 
  font-size: clamp(22px, 2.5vw, 26px);
}

h4 { 
  font-weight: 700; 
  font-size: 20px;
}

p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--color-ink-soft);
}

/* Content Sections - moved to consolidated definition above */

.section {
  margin: 40px 0;
}

.hero {
  padding: 64px 0;
}

.hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.85), rgba(0,0,0,0.35));
}

.hero-section .hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 80px 0;
}

.hero-section .hero-content h1,
.hero-section .hero-content p,
.hero-section .hero-content .eyebrow {
  color: #fff;
}

.hero-section .hero-content p {
  font-size: 20px;
  line-height: 1.6;
  max-width: 720px;
}

.text-section {
  padding-top: 32px;
  padding-bottom: 32px;
  color: #1c1c1c;
}

/* Container - consolidated definition */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Heading styles - consolidated (override defaults for specific contexts) */
.container h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 16px;
}

.container h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.25rem);
  margin-top: 40px;
  margin-bottom: 16px;
}

.container h3 {
  font-size: clamp(1.5rem, 2vw, 1.625rem);
  margin-bottom: 12px;
}

/* Eyebrow text */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  opacity: 0.8;
  display: block;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid var(--brand-red);
  color: var(--brand-red);
  background: transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  margin-right: 12px;
  margin-bottom: 12px;
}

.cta-button:hover {
  background: var(--brand-red);
  color: #fff;
}

.cta-button:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 2px;
}

.cta-button.is-solid {
  background: var(--brand-red);
  color: #fff;
}

.cta-button.is-solid:hover {
  background: var(--brand-red-dark);
  color: #fff;
}

button.cta-button {
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: inherit;
}

/* Grid and Cards */
.grid {
  display: grid;
}

.grid.g-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.grid.g-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--brand-red);
}

.capabilities-card {
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--color-outline);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.capabilities-title,
.capabilities-card h3 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
  text-transform: uppercase;
  color: #fff;
}

.capabilities-list,
.capabilities-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

.capabilities-list li,
.capabilities-card li {
  margin-bottom: 8px;
  padding-left: 0;
}

.capabilities-view-more {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-outline);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.capabilities-view-more::before {
  content: "+";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.capabilities-view-more:hover {
  opacity: 0.8;
}

/* Typography utilities */
.small {
  font-size: 14px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(231, 74, 69, 0.1);
  color: var(--brand-red);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Lists */
.list-plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--brand-red-dark);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--brand-red);
  padding: 12px 24px;
  border: 2px solid var(--brand-red);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--brand-red);
  color: #fff;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Forms */
.form {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.input,
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 16px;
}

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

/* Footer */
.site-footer {
  padding: 40px 0 24px;
  border-top: 1px solid #e0e0e0;
  margin-top: 60px;
}

.site-footer .grid {
  margin-bottom: 24px;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 16px;
  margin-top: 18px;
  border-top: 1px solid #e0e0e0;
  color: #666;
}

.attention {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 16px;
  border-radius: 4px;
  margin: 24px 0;
}

/* Landing Page Hero Shell */
.hero-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--color-coral-main), var(--color-coral-dark));
  color: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 60px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  margin-bottom: 60px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
  flex-wrap: wrap;
}

.hero-stats span {
  display: inline-block;
}

/* Selector Grid & Cards */
.selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.selector-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #fff;
  display: block;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.selector-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: #fff;
}

.selector-card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  border-radius: 16px;
}

.selector-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-coral-main);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.selector-card h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 28px;
  margin: 0 0 16px;
  color: #fff;
  line-height: 1.2;
}

.selector-card p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  opacity: 0.95;
  color: #fff;
}

/* Scroll Cue */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.scroll-cue:hover {
  opacity: 1;
  color: #fff;
}

.scroll-cue-arrow {
  font-size: 24px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* Wordmark Section */
.wordmark-section {
  margin-top: auto;
  padding: 60px 60px 40px;
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
}

.wordmark-section h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 48px);
  margin: 0 0 20px;
  color: #fff;
  opacity: 0.9;
}

.wordmark-section p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

/* Full-Bleed Section Styles */
.full-bleed-section {
  position: relative;
  min-height: 60vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.full-bleed-section.section--tall {
  min-height: 80vh;
}

.section-inner {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 80px 40px;
  width: 100%;
}

.section--dark {
  color: #fff;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark p {
  color: #fff;
}

.section--light {
  color: var(--color-ink);
}

.section--light h1,
.section--light h2,
.section--light h3 {
  color: var(--color-ink);
}

.section--light p {
  color: var(--color-ink-soft);
}

/* Background Helpers */
.bg-photo-cover {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #0b0e13;
}

.bg-overlay-dark-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 0;
}

.bg-overlay-dark-center {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 0;
}

.bg-overlay-subtle {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 0;
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .fade-in-up.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .scroll-cue-arrow {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  aside { 
    width: 100%; 
  }
  .layout { 
    flex-direction: column; 
  }
  .hero-content { 
    padding: 40px 20px; 
  }
  .hero-content h1 { 
    font-size: 36px; 
  }
  .capabilities {
    position: relative;
    bottom: auto;
    left: auto;
    margin: 20px;
    max-width: 100%;
  }
  .hero-section {
    min-height: 50vh;
  }
  .hero-section .hero-content {
    padding: 60px 0;
  }
  .hero-section .hero-content p {
    font-size: 18px;
  }
  
  .hero-inner {
    padding: 60px 40px 40px;
  }
  
  .selector-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .wordmark-section {
    padding: 40px 40px 32px;
  }
}

@media (max-width: 600px) {
  .hero-content h1 { 
    font-size: 28px; 
  }
  .hero-content p { 
    font-size: 16px; 
  }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  
  .hero-inner {
    padding: 40px 24px 32px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }
  
  .selector-card {
    padding: 24px;
  }
  
  .selector-card h2 {
    font-size: 24px;
  }
  
  .wordmark-section h2 {
    font-size: 32px;
  }
  
  .wordmark-section p {
    font-size: 16px;
  }
  
  .full-bleed-section {
    min-height: 50vh;
  }
  
  .section-inner {
    padding: 60px 24px;
  }
  
  .full-bleed-section.section--tall {
    min-height: 60vh;
  }
}

