/* =============================================
   Base
   ============================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: #2d3436;
  color: #F5F0E8;
  font-family: 'Instrument Sans', sans-serif;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 9997;
}

/* =============================================
   Scroll progress bar
   ============================================= */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: #E8521A;
  z-index: 200;
  width: 0%;
  transition: width 0.1s;
}

/* =============================================
   Navigation
   ============================================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, padding 0.4s;
}

nav.scrolled {
  background: rgba(17, 17, 16, 0.92);
  backdrop-filter: blur(12px);
  padding: 1rem 3rem;
  border-bottom: 1px solid rgba(232, 82, 26, 0.15);
}

.nav-link {
  position: relative;
  color: #C9B99A;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #E8521A;
  transition: width 0.3s;
}

.nav-link:hover { color: #F5F0E8; }
.nav-link:hover::after { width: 100%; }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 16, 0.97);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu .nav-link {
  font-size: 2rem;
  font-weight: 700;
}

/* =============================================
   Buttons
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #E8521A;
  color: #F5F0E8;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  text-decoration: none;
  border: none;
}

.btn-primary:hover {
  background: #D4491A;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232, 82, 26, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1.5px solid rgba(245, 240, 232, 0.3);
  color: #F5F0E8;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 4px;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: #E8521A;
  background: rgba(232, 82, 26, 0.08);
  transform: translateY(-2px);
}

/* =============================================
   Hero
   ============================================= */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(232, 82, 26, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(201, 185, 154, 0.05) 0%, transparent 50%),
    #2d3436;
}

.hero-number {
  font-family: 'Syne', sans-serif;
  font-size: clamp(120px, 18vw, 280px);
  font-weight: 800;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 82, 26, 0.15);
  user-select: none;
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(42px, 7vw, 110px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(232, 82, 26, 0.4);
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E8521A;
}

/* =============================================
   Stats bar
   ============================================= */
.stats-bar {
  border-top: 1px solid rgba(245, 240, 232, 0.08);
  border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}

.stat-item + .stat-item {
  border-left: 1px solid rgba(245, 240, 232, 0.08);
}

/* =============================================
   Marquee
   ============================================= */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =============================================
   Services
   ============================================= */
.service-card {
  border: 1px solid rgba(245, 240, 232, 0.07);
  border-radius: 8px;
  padding: 2rem;
  background: rgba(245, 240, 232, 0.02);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(232, 82, 26, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  border-color: rgba(232, 82, 26, 0.35);
  background: rgba(232, 82, 26, 0.04);
  transform: translateY(-4px);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(232, 82, 26, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* =============================================
   Section headings
   ============================================= */
.section-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #E8521A;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.divider {
  width: 48px;
  height: 2px;
  background: #E8521A;
  margin: 1.5rem 0;
}

/* =============================================
   Contact form
   ============================================= */
.form-field {
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.12);
  border-radius: 4px;
  padding: 0.9rem 1.25rem;
  color: #F5F0E8;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.3s;
  outline: none;
}

.form-field::placeholder { color: rgba(245, 240, 232, 0.3); }

.form-field:focus {
  border-color: rgba(232, 82, 26, 0.5);
  background: rgba(245, 240, 232, 0.06);
}

label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C9B99A;
  display: block;
  margin-bottom: 0.5rem;
}

/* =============================================
   Animations
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
  nav { padding: 1.25rem 1.5rem; }
  nav.scrolled { padding: 0.9rem 1.5rem; }
  .hero-number { font-size: 28vw; opacity: 0.5; }
}
