:root {
  --primary: #3f51b5;
  --primary-dark: #263238;
  --bg: #ffffff;
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --text: #0a0a0a;
  --text-light: #6b6b6b;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #a8a8a8;
  --border-dark: rgba(255,255,255,0.08);
  --border-light: #ececec;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}

.hero > * { position: relative; z-index: 5; }

header { padding: 1.75rem 0; }

nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
}

.nav-links { display: flex; align-items: center; gap: 2.5rem; }

.nav-links a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; }

.nav-phone {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  opacity: 1 !important;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--text-on-dark);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 600px;
  margin-bottom: 2.5rem;
  opacity: 0.92;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background: var(--text-on-dark);
  color: var(--bg-dark);
  text-decoration: none;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

/* ============ SERVICE CARDS OVERLAY (over the hero bottom) ============ */
.service-cards-overlay {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  width: 100%;
  background: var(--border-dark);
  margin-bottom: -5rem;
}

.service-card-dark {
  background: var(--bg-card);
  padding: 2.25rem 1.75rem;
  color: var(--text-on-dark);
}

.service-card-dark h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
}

.service-card-dark p {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  line-height: 1.5;
}

/* ============ SECTIONS ============ */
section { padding: 9rem 0 7rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* ============ SERVICES DETAIL ============ */
.services-detail { background: #fafaf8; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.service-number {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.service-card p { color: var(--text-light); }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-content h2 { margin-bottom: 1.5rem; text-align: left; }

.about-content p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.text-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

.text-link:hover { color: var(--primary); }

/* ============ CONTACT ============ */
.contact {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  text-align: center;
}

.contact h2 { margin-bottom: 1.5rem; color: var(--text-on-dark); }

.contact-intro {
  max-width: 600px;
  margin: 0 auto 4rem;
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-item {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s;
}

.contact-item:hover { border-color: var(--primary); }

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-on-dark-muted);
}

.contact-value { font-size: 1.1rem; font-weight: 600; }

/* ============ FOOTER ============ */
footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  border-top: 1px solid var(--border-dark);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo { color: var(--text-on-dark); }
footer p { font-size: 0.9rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links { gap: 1.25rem; }
  .nav-links a:not(.nav-phone) { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image img { aspect-ratio: 4/3; }
  .service-cards-overlay { grid-template-columns: repeat(2, 1fr); }
  section { padding: 7rem 0 5rem; }
}

@media (max-width: 600px) {
  .container, nav { padding: 0 1.25rem; }
  .service-cards-overlay { grid-template-columns: 1fr; }
}