@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

/* CSS Variables */
:root {
  --background: hsl(240, 10%, 3.9%);
  --foreground: hsl(0, 0%, 98%);
  --primary: hsl(39, 35%, 50%);
  --primary-foreground: hsl(240, 10%, 3.9%);
  --secondary: hsl(240, 5%, 12%);
  --muted-foreground: hsl(240, 5%, 64.9%);
  --brass: hsl(39, 35%, 50%);
  --brass-light: hsl(39, 30%, 65%);
  --silver: hsl(240, 5%, 64.9%);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  text-wrap: balance;
  line-height: 1.1;
}

/* Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }
}

.text-brass { color: var(--brass); }
.text-silver { color: var(--silver); }
.text-muted { color: var(--muted-foreground); }

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

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

.btn-primary:hover {
  background: var(--brass-light);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.navbar-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--foreground);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-items {
  display: none;
  gap: 2.5rem;
}

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

.nav-item {
  position: relative;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-sans);
}

.nav-item:hover {
  color: var(--foreground);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.nav-item:hover::after {
  width: 100%;
  left: 0;
}

.nav-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-cta {
    display: block;
  }
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  background: var(--background);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu .nav-item {
  display: block;
  padding: 1rem 0;
  text-align: left;
}

.mobile-menu .btn {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    padding: 8rem 0 8rem;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background) 0%, rgba(10, 10, 11, 0.6) 50%, transparent 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 10, 11, 0.7) 0%, rgba(10, 10, 11, 0.3) 50%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
}

.hero-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--brass);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  color: var(--foreground);
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.05;
  margin-bottom: 2rem;
}

.hero-description {
  color: var(--silver);
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 36rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

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

/* Section Styles */
section {
  padding: 8rem 0;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--brass);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  color: var(--foreground);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.bg-secondary {
  background: rgba(20, 20, 24, 0.5);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 6rem;
}

.stat-item {
  padding: 1.5rem 0;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-family: var(--font-serif);
  color: var(--brass);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
}

/* Grid Layout */
.grid-12 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .grid-12 {
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
  }
}

.col-4 {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .col-4 {
    grid-column: span 4;
  }
}

.col-7 {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .col-7 {
    grid-column: span 7;
  }
}

.col-5 {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .col-5 {
    grid-column: span 5;
  }

  .col-5.offset-7 {
    grid-column: 8 / span 5;
  }
}

/* Companies */
.companies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 1024px) {
  .companies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.company-card {
  padding: 2rem;
  border: 1px solid var(--border-subtle);
}

@media (min-width: 1024px) {
  .company-card {
    padding: 3rem;
  }
}

.company-name {
  font-family: var(--font-serif);
  color: var(--foreground);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.company-subtitle {
  color: var(--brass);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.company-description {
  color: var(--silver);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.services-list {
  list-style: none;
}

.services-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  color: var(--silver);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.services-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--brass);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

/* Capabilities */
.capability-item {
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-subtle);
  cursor: default;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

@media (min-width: 1024px) {
  .capability-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

.capability-item:hover .capability-title {
  color: var(--brass);
}

.capability-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.capability-num {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.capability-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  color: var(--foreground);
  transition: color 0.2s;
}

.capability-desc {
  color: var(--silver);
  font-size: 0.875rem;
  line-height: 1.75;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 0.75rem;
}

@media (min-width: 1024px) {
  .capability-desc {
    max-width: 28rem;
    margin-top: 0;
  }
}

.capability-item:hover .capability-desc {
  max-height: 200px;
  opacity: 1;
}

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-img {
  height: 4rem;
  width: 4rem;
  object-fit: contain;
}

/* Contact */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-icon {
  color: var(--brass);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.contact-value {
  color: var(--foreground);
  font-size: 0.875rem;
  line-height: 1.75;
}

.contact-value a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-value a:hover {
  color: var(--brass);
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.footer-address {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.footer-copy {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s cubic-bezier(0.2, 0, 0, 1) forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Icon styles */
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.icon-menu,
.icon-close {
  width: 24px;
  height: 24px;
}
