:root {
  --color-bg: #f7f4ef;
  --color-surface: #ffffff;
  --color-surface-dark: #171717;
  --color-text: #181818;
  --color-text-soft: #5e5a55;
  --color-border: rgba(0, 0, 0, 0.08);

  --color-primary: #1f2a37;
  --color-accent: #c58a2b;
  --color-accent-strong: #ad741b;
  --color-white: #ffffff;

  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 18px 50px rgba(0, 0, 0, 0.12);

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;

  --container: 1200px;

  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

/* Stage */

.hero-stage {
  color: var(--color-white);
  background:
    linear-gradient(rgba(18, 20, 24, 0.78), rgba(18, 20, 24, 0.7)),
    radial-gradient(circle at top right, rgba(197, 138, 43, 0.18), transparent 24%),
    linear-gradient(180deg, #0f141b 0%, #1a222d 100%);
  min-height: clamp(760px, min(100vh, calc(100vw * 0.75)), 920px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 0 0.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-mark {
  color: var(--color-white);
}

.logo-text {
  color: var(--color-accent);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.88);
  transition: color var(--transition);
}

.main-nav a:hover {
  color: var(--color-accent);
}

.mobile-nav {
  display: none;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 2vw, 2rem) 0 clamp(2rem, 3vw, 3rem);
}

.hero-copy h1 {
  margin: 0 0 1.2rem;
  max-width: 11ch;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 58ch;
  margin: 0 0 1.6rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0d8af;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-badges span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.hero-image-card {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-image-card img {
  height: 100%;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.4));
}

.hero-info-card {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem 1rem 0.95rem;
  border-radius: 20px;
  background: rgba(17, 17, 17, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-info-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.hero-info-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-strong);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary-light {
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  background: transparent;
}

.btn-nav {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Sections */

.section {
  padding: var(--space-3xl) 0;
}

.section-dark {
  background: #11161d;
  color: #fff;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.72);
}

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--color-text-soft);
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.trust-strip {
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.35rem 0;
}

.trust-item strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.trust-item span {
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.card-grid,
.steps-grid,
.testimonial-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.step-card,
.project-card,
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.service-card,
.step-card,
.testimonial-card {
  padding: 1.5rem;
}

.service-card h3,
.step-card h3,
.project-content h3 {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
}

.service-card p,
.step-card p,
.project-content p,
.testimonial-card p {
  margin: 0;
  color: var(--color-text-soft);
}

.step-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.step-card p {
  color: rgba(255, 255, 255, 0.72);
}

.step-number {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  overflow: hidden;
}

.project-image {
  overflow: hidden;
}

.project-image img {
  height: 280px;
  transition: transform 320ms ease;
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

.project-content {
  padding: 1.35rem;
}

.testimonials {
  background: #fcfaf6;
}

.testimonial-card strong {
  display: inline-block;
  margin-top: 1rem;
}

/* CTA */

.cta-section {
  padding-top: 0;
}

.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(197, 138, 43, 0.14), rgba(197, 138, 43, 0.04)),
    linear-gradient(180deg, #16202b, #10161d);
  color: #fff;
  box-shadow: var(--shadow-medium);
}

.cta-box h2 {
  margin: 0.8rem 0 1rem;
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.cta-box p {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.78);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Footer */

.site-footer {
  padding: 2rem 0;
  background: #111;
  color: rgba(255, 255, 255, 0.88);
}

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

.footer-inner p {
  margin: 0.3rem 0 0;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

/* Animations */

[data-animate] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-animate].active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 1080px) {
  .main-nav,
  .btn-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem 0 0.5rem;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .card-grid,
  .steps-grid,
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-box {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .hero-stage {
    min-height: auto;
    padding-bottom: 2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0 2rem;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .hero-image-card {
    min-height: 360px;
  }

  .project-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .site-header {
    padding-top: 0.9rem;
  }

  .hero-stage {
    min-height: 100svh;
    display: flex;
    align-items: flex-start;
  }

  .hero-grid {
    padding: 0.8rem 0 1.6rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
    line-height: 0.98;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-badges {
    gap: 0.5rem;
  }

  .hero-badges span {
    font-size: 0.86rem;
  }

  .hero-image-card {
    min-height: 280px;
    border-radius: 22px;
  }

  .hero-info-card {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .trust-grid,
  .card-grid,
  .steps-grid,
  .testimonial-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-head h2,
  .cta-box h2 {
    max-width: none;
  }

  .service-card,
  .step-card,
  .testimonial-card,
  .project-content {
    padding: 1.2rem;
  }

  .cta-box {
    padding: 1.4rem;
    border-radius: 24px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
}