/* Cowboy Nerds — Professional, clean, crisp */

:root {
  --white: #ffffff;
  --white-pure: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-600: #525252;
  --gray-800: #262626;
  --gray-900: #171717;
  --black: #0a0a0a;
  --accent: #1a1a1a;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hero: 'Outfit', var(--font-sans);
}

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

html {
  font-size: 115%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--white-pure);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header & Navigation */
.header {
  position: relative;
  z-index: 1;
  background-color: var(--white-pure);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: invert(1);
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--black);
}

/* Hero & Banner */
.hero {
  width: 100%;
  position: relative;
  z-index: 1;
}

.banner {
  position: relative;
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
  background-color: #ebebeb; /* match logo image for seamless background */
}

.banner-image {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 86%;
  height: 86%;
  object-fit: contain;
  object-position: center;
  display: block;
  z-index: 0;
  pointer-events: none; /* allow clicks to pass through to nav and links */
  clip-path: inset(6% 0 0 0); /* crop top so it doesn't bleed into header */
}

.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(
    to bottom,
    rgba(235, 235, 235, 0.5) 0%,
    rgba(235, 235, 235, 0.35) 50%,
    rgba(235, 235, 235, 0.55) 100%
  );
}

.hero-title {
  font-family: var(--font-hero);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--black);
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--gray-600);
  letter-spacing: 0.01em;
  max-width: 718px;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle-lead {
  font-weight: 700;
  color: var(--black);
}

.hero-subtitle-body {
  display: block;
  margin-top: 0.35em;
  padding-left: 1.5em;
  font-style: normal;
  line-height: 1.55;
}

/* Sections */
main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 5rem 2rem;
  background-color: var(--white-pure);
  scroll-margin-top: 5rem;
}

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

#about {
  padding-bottom: 0;
}

#services {
  padding-top: 0;
}

#our-services {
  padding-bottom: 2rem;
}

#contact {
  padding-top: 2rem;
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

.container-wide {
  max-width: 1000px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--black);
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-800);
  margin-bottom: 1.25rem;
}

.body-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray-600);
}

.body-text + .body-text {
  margin-top: 1rem;
}

.manifesto-heading {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.02em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.manifesto-heading:first-of-type {
  margin-top: 1rem;
}

.handshake-image-wrap {
  margin-top: 4.5rem;
  margin-bottom: 0;
  text-align: center;
}

.handshake-image {
  max-width: 100%;
  width: 560px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: grayscale(1);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  clip-path: inset(0 0 20% 0 round 16px);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  padding: 2rem 0;
  border-top: 1px solid var(--gray-200);
}

.service-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-600);
}

/* CTA */
.contact-intro {
  margin-bottom: 1.5rem;
}

.contact-subhead {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--black);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hide-phone {
  display: none !important;
}

.contact-phone {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-800);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-phone:hover {
  color: var(--black);
}

.cta-button {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white-pure);
  background-color: var(--black);
  padding: 0.875rem 1.75rem;
  margin-top: 1.5rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.cta-button:hover {
  background-color: var(--gray-800);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* Our Services block */
.section-services-block {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white-pure) 100%);
}

.services-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 0.5rem;
}

.services-label-line {
  width: 32px;
  height: 2px;
  background-color: var(--gray-600);
  margin: 0 auto 1.5rem;
}

.services-headline {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--black);
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin-bottom: 2.5rem;
  margin-left: auto;
  margin-right: auto;
}

.services-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
}

.services-portfolio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.services-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-800);
}

.services-icon svg {
  width: 48px;
  height: 48px;
}

.services-portfolio-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
  letter-spacing: 0.02em;
}

.services-portfolio-item-centered {
  grid-column: 2 / 4;
  justify-self: center;
}

@media (max-width: 900px) {
  .services-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-portfolio-item-centered {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .services-portfolio-grid {
    grid-template-columns: 1fr;
  }
  .services-portfolio-item-centered {
    grid-column: 1;
    justify-self: center;
  }
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--gray-200);
  background-color: var(--white-pure);
}

.footer-partners {
  margin-bottom: 2rem;
}

.footer-partners-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 1rem;
}

.footer-partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.footer-partner-logo {
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-partner-logo:hover {
  opacity: 1;
}

.footer-partner-logo img {
  display: block;
  height: 32px;
  width: auto;
  object-fit: contain;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--gray-600);
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .banner-overlay {
    padding: 2rem 1.5rem;
  }

  .section {
    padding: 3.5rem 1.5rem;
  }
}
