/* ===== Reset & base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: #14161a;
  background: #f7f6f2;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f1115;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 40px;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

p {
  color: #55585f;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: #2f5eff;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(47, 94, 255, 0.25);
}

.btn-primary:hover {
  background: #1f4be0;
  transform: translateY(-1px);
}

.btn-link {
  color: #2f5eff;
  padding-left: 8px;
  padding-right: 8px;
}

.btn-link:hover {
  text-decoration: underline;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 242, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 17, 21, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #14161a;
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: #2f5eff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #14161a;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 88px;
}

.eyebrow {
  color: #2f5eff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero .lead {
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(15, 17, 21, 0.12);
}

/* ===== Services ===== */
.services {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid rgba(15, 17, 21, 0.08);
}

.services h2 {
  max-width: 640px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #2f5eff;
  margin-bottom: 16px;
}

.icon svg {
  width: 100%;
  height: 100%;
}

.service-card p {
  font-size: 0.9rem;
}

/* ===== Process ===== */
.process {
  padding-top: 64px;
  padding-bottom: 80px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process-step {
  border-top: 2px solid #2f5eff;
  padding-top: 20px;
}

.step-number {
  display: block;
  color: #2f5eff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.process-step p {
  font-size: 0.9rem;
}

/* ===== Portfolio ===== */
.portfolio {
  padding-top: 64px;
  padding-bottom: 88px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

/* ===== Contact ===== */
.contact {
  padding-top: 72px;
  padding-bottom: 96px;
}

.contact-inner {
  background: transparent;
  color: #14161a;
  padding: 0;
  text-align: left;
}

.contact-inner h2 {
  color: #0f1115;
  margin-bottom: 16px;
}

.contact-inner p {
  color: #55585f;
  max-width: 480px;
  margin: 0 0 32px;
}

.contact-details {
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: #14161a;
}

.contact-details a:hover {
  color: #2f5eff;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid rgba(15, 17, 21, 0.08);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #7a7d85;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-inner a:hover {
  color: #2f5eff;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .services-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    height: 280px;
  }

}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #f7f6f2;
    border-bottom: 1px solid rgba(15, 17, 21, 0.08);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.open {
    max-height: 320px;
  }

  .main-nav a {
    padding: 16px 24px;
    border-top: 1px solid rgba(15, 17, 21, 0.06);
  }

  .nav-toggle {
    display: flex;
  }

  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
}
