/* ═══════════════════════════════════════════════════════
   Develecor LLC — Landing Page Styles
   Design: Institutional, architecture-adjacent, calm, premium
   v2 — Polish pass: scroll, spacing, alignment, mobile
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core palette */
  --charcoal: #1C1C1E;
  --near-black: #2C2C2E;
  --warm-white: #FAF9F6;
  --soft-gray: #F0EFEC;
  --accent-sand: #B8A88A;
  --accent-sand-light: #D4C9B5;
  --accent-sand-dark: #9A8D72;
  --text-primary: #2C2C2E;
  --text-secondary: #6B6B6B;
  --text-tertiary: #9A9A9A;
  --text-inverse: #FAF9F6;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-accent: rgba(184, 168, 138, 0.3);

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --section-padding-y: clamp(5rem, 10vw, 8rem);
  --section-padding-x: clamp(1.5rem, 5vw, 4rem);
  --container-max: 1120px;
  --container-narrow: 800px;

  /* Nav height/offset — calibrated in JS for precise anchor landings */
  --nav-height: 80px;
  --scroll-offset: 104px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: var(--scroll-offset);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--warm-white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--section-padding-x);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
}

h4 {
  font-size: 1.125rem;
  font-weight: 500;
}

p {
  max-width: 65ch;
}

.text-secondary {
  color: var(--text-secondary);
}

.text-inverse {
  color: var(--text-inverse);
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-sand);
  margin-bottom: 1rem;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-base), padding var(--transition-base),
    box-shadow var(--transition-base);
}

.nav.scrolled {
  background: rgba(28, 28, 30, 0.97);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(250, 249, 246, 0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  z-index: 101;
}

.nav-logo {
  height: 36px;
  width: auto;
  transition: height 0.3s ease;
}

.nav.scrolled .nav-logo {
  height: 32px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-menu a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(250, 249, 246, 0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.nav-menu a:hover {
  color: var(--text-inverse);
}

.nav-menu .nav-cta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  background: var(--accent-sand);
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-menu .nav-cta:hover {
  background: var(--accent-sand-light);
  color: var(--charcoal);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-inverse);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  transform-origin: center;
}

/* Hamburger animation */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  padding: calc(5rem + var(--nav-height)) var(--section-padding-x) 5rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 28, 30, 0.3) 0%,
    rgba(44, 44, 46, 0.1) 50%,
    rgba(28, 28, 30, 0.4) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero h1 {
  margin-bottom: 1.75rem;
  color: var(--text-inverse);
}

.hero-tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: rgba(250, 249, 246, 0.8);
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: 0.9375rem;
  color: rgba(250, 249, 246, 0.55);
  line-height: 1.7;
  margin-bottom: 2.75rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-sand);
  color: var(--charcoal);
  border-color: var(--accent-sand);
}

.btn-primary:hover {
  background: var(--accent-sand-light);
  border-color: var(--accent-sand-light);
}

.btn-secondary {
  background: transparent;
  color: var(--text-inverse);
  border-color: rgba(250, 249, 246, 0.25);
}

.btn-secondary:hover {
  border-color: rgba(250, 249, 246, 0.6);
  color: var(--text-inverse);
}

/* ── Credibility Strip ── */
.credibility {
  background: var(--near-black);
  padding: 2.25rem clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(184, 168, 138, 0.15);
}

.credibility-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
  list-style: none;
}

.credibility-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(250, 249, 246, 0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.credibility-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-sand);
  flex-shrink: 0;
}

/* ── Section Base ── */
.section {
  padding: var(--section-padding-y) var(--section-padding-x);
}

.section-header[id] {
  scroll-margin-top: var(--scroll-offset);
}

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

.section--dark {
  background: var(--charcoal);
  color: var(--text-inverse);
}

.section--dark .text-secondary {
  color: rgba(250, 249, 246, 0.6);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header p {
  margin: 1rem auto 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.section--dark .section-header p {
  color: rgba(250, 249, 246, 0.6);
}

/* ── Cards ── */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

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

.card-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--warm-white);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 2rem;
  transition: border-color var(--transition-base);
}

.card:hover {
  border-color: var(--border-accent);
}

.card h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ── Colfax Section ── */
.colfax {
  position: relative;
}

.colfax-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.colfax-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--near-black);
  border-radius: 2px;
  overflow: hidden;
}

.colfax-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.colfax-details h3 {
  margin-bottom: 0.5rem;
}

.colfax-details .location {
  color: var(--accent-sand);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.colfax-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.colfax-stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
}

.colfax-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
  display: block;
}

.colfax-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ── Founder Section ── */
.founder-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.founder-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  background: var(--soft-gray);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.55) contrast(1.05);
  transition: filter var(--transition-base);
}

.founder-photo:hover img {
  filter: saturate(0.75) contrast(1.05);
}

.founder-content {
  padding-top: 0.5rem;
}

.founder-name {
  margin-bottom: 0.25rem;
}

.founder-title {
  color: var(--accent-sand);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.founder-bio {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.founder-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.founder-focus li {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
}

/* ── Partners Grid ── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  max-width: 900px;
  margin: 0 auto;
}

.partners-grid li {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(250, 249, 246, 0.75);
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(250, 249, 246, 0.1);
  border-radius: 2px;
  text-align: center;
  transition: border-color var(--transition-base);
}

.partners-grid li:hover {
  border-color: rgba(184, 168, 138, 0.4);
}

/* ── Philosophy ── */
.philosophy-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  background: var(--warm-white);
}

.philosophy-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--accent-sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-sand);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.philosophy-card h3 {
  margin-bottom: 0.75rem;
}

.philosophy-card p {
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ── Contact Section ── */
.contact {
  text-align: center;
  padding-top: calc(var(--section-padding-y) + 1rem);
  padding-bottom: calc(var(--section-padding-y) + 1rem);
}

.contact p {
  margin: 0 auto 2.5rem;
  color: rgba(250, 249, 246, 0.65);
  font-size: 1.0625rem;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.contact-info a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(250, 249, 246, 0.8);
  transition: color var(--transition-fast);
}

.contact-info a:hover {
  color: var(--accent-sand);
}

/* ── Footer ── */
.footer {
  background: var(--charcoal);
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(250, 249, 246, 0.06);
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--text-inverse);
}

.footer-legal {
  font-size: 0.75rem;
  color: rgba(250, 249, 246, 0.4);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile Responsive ── */
@media (max-width: 900px) {
  .founder-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .founder-photo {
    max-width: 380px;
    margin: 0 auto;
  }

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

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

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 80vw);
    height: 100vh;
    background: var(--charcoal);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    transition: right var(--transition-base);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    font-size: 1rem;
  }

  .colfax-grid {
    grid-template-columns: 1fr;
  }

  .colfax-image {
    order: -1;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .credibility-grid {
    justify-content: center;
    gap: 0.5rem 1.5rem;
  }

  .colfax-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }

  .btn {
    width: 100%;
  }

  .credibility-item {
    font-size: 0.7rem;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }
}
