:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f5;
  --color-text: #141414;
  --color-muted: #666666;
  --color-border: #e9e9e9;
  --color-accent: #111111;
  --color-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --transition: all 0.3s ease;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

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

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

.section-padding {
  padding: 5rem 0;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

p {
  margin-top: 0;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--color-shadow);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.sticky {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--color-border);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.header:not(.sticky) .logo {
  color: #fff;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border: 1px solid #000;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}

.header:not(.sticky) .logo-mark {
  border-color: #fff;
}

.nav {
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav a {
  font-weight: 500;
  color: #1d1d1d;
}

.nav a.btn {
  color: #fff;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-content: center;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #111;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 4rem;
  position: relative;
  background-image: url("https://images.unsplash.com/photo-1600210492493-0946911123ea?auto=format&fit=crop&w=2100&q=80");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.24));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero .container.hero-content {
  width: min(100% - 1rem, var(--container));
}

.hero .eyebrow {
  color: #fff;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  display: grid;
  place-items: center;
  z-index: 1;
}

.scroll-indicator span {
  width: 4px;
  height: 10px;
  border-radius: 4px;
  background: #fff;
  animation: scrollDot 1.5s infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(-4px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(6px); opacity: 0; }
}

.grid-2 {
  display: grid;
  gap: 1.4rem;
}

.about-image img,
.detail-wrap img {
  border-radius: var(--radius-md);
  box-shadow: var(--color-shadow);
  min-height: 100%;
  object-fit: cover;
}

.about-meta {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.about-meta strong {
  display: block;
  margin-bottom: 0.1rem;
}

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

.cards {
  display: grid;
  gap: 1.2rem;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--color-shadow);
}

.feature {
  padding: 1.5rem;
}

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--color-bg-alt);
  margin-bottom: 0.9rem;
  font-weight: 700;
  color: #111;
}

.icon .material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
  font-variation-settings:
    "FILL" 0,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
}

.services,
.blog,
.references {
  background: var(--color-bg-alt);
}

.service-card img,
.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 1.2rem;
}

.text-link {
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-block;
  margin-top: 0.7rem;
}

.text-link:hover {
  text-decoration: underline;
}

.process-step {
  padding: 1.5rem;
}

.step {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-muted);
}

.detail-wrap {
  align-items: stretch;
}

.detail-list {
  padding-left: 1.1rem;
  margin-bottom: 1.4rem;
}

.detail-list li {
  margin-bottom: 0.6rem;
}

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

.gallery-item {
  border: 0;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.review {
  padding: 1.4rem;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.55rem;
}

.cta-wrap {
  background: #171717;
  color: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.contact .form-row {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
textarea {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #222;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

.error-message {
  display: block;
  color: #c01818;
  min-height: 1.1rem;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.form-feedback {
  margin-top: 0.9rem;
  font-weight: 600;
}

.form-feedback.success {
  color: #0f7d34;
}

.form-feedback.error {
  color: #c01818;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.3rem;
}

.map-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f8f8f8, #e9e9e9);
  color: #444;
}

.footer {
  border-top: 1px solid var(--color-border);
  padding: 1.4rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1200;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 1000px);
  max-height: 84vh;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 680px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

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

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

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

  .gallery-item img {
    height: 230px;
  }

  .about-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .header:not(.sticky) .logo,
  .header:not(.sticky) .nav a {
    color: #fff;
  }

  .header:not(.sticky) .logo-mark {
    border-color: #fff;
  }

  .header:not(.sticky) .nav a.btn {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
  }

  .header.sticky .nav a.btn {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: auto;
  }

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

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

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

  .cards-4 .feature {
    padding: 1.6rem;
  }

  .cta-wrap {
    flex-direction: row;
    align-items: center;
    padding: 2.2rem;
  }
}
